@fullstackhouse/cerber 0.36.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,248 @@
1
+ var SE=Object.defineProperty;var NE=(s,a,r)=>a in s?SE(s,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[a]=r;var xt=(s,a,r)=>NE(s,typeof a!="symbol"?a+"":a,r);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const p of d.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function r(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(u){if(u.ep)return;u.ep=!0;const d=r(u);fetch(u.href,d)}})();function Ab(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var yu={exports:{}},ks={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var jm;function wE(){if(jm)return ks;jm=1;var s=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(l,u,d){var p=null;if(d!==void 0&&(p=""+d),u.key!==void 0&&(p=""+u.key),"key"in u){d={};for(var y in u)y!=="key"&&(d[y]=u[y])}else d=u;return u=d.ref,{$$typeof:s,type:l,key:p,ref:u!==void 0?u:null,props:d}}return ks.Fragment=a,ks.jsx=r,ks.jsxs=r,ks}var Bm;function TE(){return Bm||(Bm=1,yu.exports=wE()),yu.exports}var f=TE(),vu={exports:{}},Ye={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Im;function xE(){if(Im)return Ye;Im=1;var s=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),p=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function w(_){return _===null||typeof _!="object"?null:(_=S&&_[S]||_["@@iterator"],typeof _=="function"?_:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,x={};function k(_,L,I){this.props=_,this.context=L,this.refs=x,this.updater=I||T}k.prototype.isReactComponent={},k.prototype.setState=function(_,L){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,L,"setState")},k.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function B(){}B.prototype=k.prototype;function M(_,L,I){this.props=_,this.context=L,this.refs=x,this.updater=I||T}var ae=M.prototype=new B;ae.constructor=M,O(ae,k.prototype),ae.isPureReactComponent=!0;var $=Array.isArray;function X(){}var ie={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function P(_,L,I){var re=I.ref;return{$$typeof:s,type:_,key:L,ref:re!==void 0?re:null,props:I}}function ee(_,L){return P(_.type,L,_.props)}function Z(_){return typeof _=="object"&&_!==null&&_.$$typeof===s}function me(_){var L={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(I){return L[I]})}var ce=/\/+/g;function Ee(_,L){return typeof _=="object"&&_!==null&&_.key!=null?me(""+_.key):L.toString(36)}function J(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(X,X):(_.status="pending",_.then(function(L){_.status==="pending"&&(_.status="fulfilled",_.value=L)},function(L){_.status==="pending"&&(_.status="rejected",_.reason=L)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function z(_,L,I,re,K){var de=typeof _;(de==="undefined"||de==="boolean")&&(_=null);var ge=!1;if(_===null)ge=!0;else switch(de){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(_.$$typeof){case s:case a:ge=!0;break;case b:return ge=_._init,z(ge(_._payload),L,I,re,K)}}if(ge)return K=K(_),ge=re===""?"."+Ee(_,0):re,$(K)?(I="",ge!=null&&(I=ge.replace(ce,"$&/")+"/"),z(K,L,I,"",function(Ge){return Ge})):K!=null&&(Z(K)&&(K=ee(K,I+(K.key==null||_&&_.key===K.key?"":(""+K.key).replace(ce,"$&/")+"/")+ge)),L.push(K)),1;ge=0;var Oe=re===""?".":re+":";if($(_))for(var Me=0;Me<_.length;Me++)re=_[Me],de=Oe+Ee(re,Me),ge+=z(re,L,I,de,K);else if(Me=w(_),typeof Me=="function")for(_=Me.call(_),Me=0;!(re=_.next()).done;)re=re.value,de=Oe+Ee(re,Me++),ge+=z(re,L,I,de,K);else if(de==="object"){if(typeof _.then=="function")return z(J(_),L,I,re,K);throw L=String(_),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ge}function le(_,L,I){if(_==null)return _;var re=[],K=0;return z(_,re,"","",function(de){return L.call(I,de,K++)}),re}function pe(_){if(_._status===-1){var L=_._result;L=L(),L.then(function(I){(_._status===0||_._status===-1)&&(_._status=1,_._result=I)},function(I){(_._status===0||_._status===-1)&&(_._status=2,_._result=I)}),_._status===-1&&(_._status=0,_._result=L)}if(_._status===1)return _._result.default;throw _._result}var Se=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},De={map:le,forEach:function(_,L,I){le(_,function(){L.apply(this,arguments)},I)},count:function(_){var L=0;return le(_,function(){L++}),L},toArray:function(_){return le(_,function(L){return L})||[]},only:function(_){if(!Z(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Ye.Activity=v,Ye.Children=De,Ye.Component=k,Ye.Fragment=r,Ye.Profiler=u,Ye.PureComponent=M,Ye.StrictMode=l,Ye.Suspense=g,Ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ie,Ye.__COMPILER_RUNTIME={__proto__:null,c:function(_){return ie.H.useMemoCache(_)}},Ye.cache=function(_){return function(){return _.apply(null,arguments)}},Ye.cacheSignal=function(){return null},Ye.cloneElement=function(_,L,I){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var re=O({},_.props),K=_.key;if(L!=null)for(de in L.key!==void 0&&(K=""+L.key),L)!C.call(L,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&L.ref===void 0||(re[de]=L[de]);var de=arguments.length-2;if(de===1)re.children=I;else if(1<de){for(var ge=Array(de),Oe=0;Oe<de;Oe++)ge[Oe]=arguments[Oe+2];re.children=ge}return P(_.type,K,re)},Ye.createContext=function(_){return _={$$typeof:p,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:d,_context:_},_},Ye.createElement=function(_,L,I){var re,K={},de=null;if(L!=null)for(re in L.key!==void 0&&(de=""+L.key),L)C.call(L,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(K[re]=L[re]);var ge=arguments.length-2;if(ge===1)K.children=I;else if(1<ge){for(var Oe=Array(ge),Me=0;Me<ge;Me++)Oe[Me]=arguments[Me+2];K.children=Oe}if(_&&_.defaultProps)for(re in ge=_.defaultProps,ge)K[re]===void 0&&(K[re]=ge[re]);return P(_,de,K)},Ye.createRef=function(){return{current:null}},Ye.forwardRef=function(_){return{$$typeof:y,render:_}},Ye.isValidElement=Z,Ye.lazy=function(_){return{$$typeof:b,_payload:{_status:-1,_result:_},_init:pe}},Ye.memo=function(_,L){return{$$typeof:m,type:_,compare:L===void 0?null:L}},Ye.startTransition=function(_){var L=ie.T,I={};ie.T=I;try{var re=_(),K=ie.S;K!==null&&K(I,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(X,Se)}catch(de){Se(de)}finally{L!==null&&I.types!==null&&(L.types=I.types),ie.T=L}},Ye.unstable_useCacheRefresh=function(){return ie.H.useCacheRefresh()},Ye.use=function(_){return ie.H.use(_)},Ye.useActionState=function(_,L,I){return ie.H.useActionState(_,L,I)},Ye.useCallback=function(_,L){return ie.H.useCallback(_,L)},Ye.useContext=function(_){return ie.H.useContext(_)},Ye.useDebugValue=function(){},Ye.useDeferredValue=function(_,L){return ie.H.useDeferredValue(_,L)},Ye.useEffect=function(_,L){return ie.H.useEffect(_,L)},Ye.useEffectEvent=function(_){return ie.H.useEffectEvent(_)},Ye.useId=function(){return ie.H.useId()},Ye.useImperativeHandle=function(_,L,I){return ie.H.useImperativeHandle(_,L,I)},Ye.useInsertionEffect=function(_,L){return ie.H.useInsertionEffect(_,L)},Ye.useLayoutEffect=function(_,L){return ie.H.useLayoutEffect(_,L)},Ye.useMemo=function(_,L){return ie.H.useMemo(_,L)},Ye.useOptimistic=function(_,L){return ie.H.useOptimistic(_,L)},Ye.useReducer=function(_,L,I){return ie.H.useReducer(_,L,I)},Ye.useRef=function(_){return ie.H.useRef(_)},Ye.useState=function(_){return ie.H.useState(_)},Ye.useSyncExternalStore=function(_,L,I){return ie.H.useSyncExternalStore(_,L,I)},Ye.useTransition=function(){return ie.H.useTransition()},Ye.version="19.2.8",Ye}var Hm;function qf(){return Hm||(Hm=1,vu.exports=xE()),vu.exports}var F=qf();const AE=Ab(F);var Eu={exports:{}},Cs={},_u={exports:{}},Su={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var qm;function RE(){return qm||(qm=1,(function(s){function a(z,le){var pe=z.length;z.push(le);e:for(;0<pe;){var Se=pe-1>>>1,De=z[Se];if(0<u(De,le))z[Se]=le,z[pe]=De,pe=Se;else break e}}function r(z){return z.length===0?null:z[0]}function l(z){if(z.length===0)return null;var le=z[0],pe=z.pop();if(pe!==le){z[0]=pe;e:for(var Se=0,De=z.length,_=De>>>1;Se<_;){var L=2*(Se+1)-1,I=z[L],re=L+1,K=z[re];if(0>u(I,pe))re<De&&0>u(K,I)?(z[Se]=K,z[re]=pe,Se=re):(z[Se]=I,z[L]=pe,Se=L);else if(re<De&&0>u(K,pe))z[Se]=K,z[re]=pe,Se=re;else break e}}return le}function u(z,le){var pe=z.sortIndex-le.sortIndex;return pe!==0?pe:z.id-le.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var p=Date,y=p.now();s.unstable_now=function(){return p.now()-y}}var g=[],m=[],b=1,v=null,S=3,w=!1,T=!1,O=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function ae(z){for(var le=r(m);le!==null;){if(le.callback===null)l(m);else if(le.startTime<=z)l(m),le.sortIndex=le.expirationTime,a(g,le);else break;le=r(m)}}function $(z){if(O=!1,ae(z),!T)if(r(g)!==null)T=!0,X||(X=!0,me());else{var le=r(m);le!==null&&J($,le.startTime-z)}}var X=!1,ie=-1,C=5,P=-1;function ee(){return x?!0:!(s.unstable_now()-P<C)}function Z(){if(x=!1,X){var z=s.unstable_now();P=z;var le=!0;try{e:{T=!1,O&&(O=!1,B(ie),ie=-1),w=!0;var pe=S;try{t:{for(ae(z),v=r(g);v!==null&&!(v.expirationTime>z&&ee());){var Se=v.callback;if(typeof Se=="function"){v.callback=null,S=v.priorityLevel;var De=Se(v.expirationTime<=z);if(z=s.unstable_now(),typeof De=="function"){v.callback=De,ae(z),le=!0;break t}v===r(g)&&l(g),ae(z)}else l(g);v=r(g)}if(v!==null)le=!0;else{var _=r(m);_!==null&&J($,_.startTime-z),le=!1}}break e}finally{v=null,S=pe,w=!1}le=void 0}}finally{le?me():X=!1}}}var me;if(typeof M=="function")me=function(){M(Z)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Ee=ce.port2;ce.port1.onmessage=Z,me=function(){Ee.postMessage(null)}}else me=function(){k(Z,0)};function J(z,le){ie=k(function(){z(s.unstable_now())},le)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(z){z.callback=null},s.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<z?Math.floor(1e3/z):5},s.unstable_getCurrentPriorityLevel=function(){return S},s.unstable_next=function(z){switch(S){case 1:case 2:case 3:var le=3;break;default:le=S}var pe=S;S=le;try{return z()}finally{S=pe}},s.unstable_requestPaint=function(){x=!0},s.unstable_runWithPriority=function(z,le){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var pe=S;S=z;try{return le()}finally{S=pe}},s.unstable_scheduleCallback=function(z,le,pe){var Se=s.unstable_now();switch(typeof pe=="object"&&pe!==null?(pe=pe.delay,pe=typeof pe=="number"&&0<pe?Se+pe:Se):pe=Se,z){case 1:var De=-1;break;case 2:De=250;break;case 5:De=1073741823;break;case 4:De=1e4;break;default:De=5e3}return De=pe+De,z={id:b++,callback:le,priorityLevel:z,startTime:pe,expirationTime:De,sortIndex:-1},pe>Se?(z.sortIndex=pe,a(m,z),r(g)===null&&z===r(m)&&(O?(B(ie),ie=-1):O=!0,J($,pe-Se))):(z.sortIndex=De,a(g,z),T||w||(T=!0,X||(X=!0,me()))),z},s.unstable_shouldYield=ee,s.unstable_wrapCallback=function(z){var le=S;return function(){var pe=S;S=le;try{return z.apply(this,arguments)}finally{S=pe}}}})(Su)),Su}var Gm;function OE(){return Gm||(Gm=1,_u.exports=RE()),_u.exports}var Nu={exports:{}},Ln={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var $m;function kE(){if($m)return Ln;$m=1;var s=qf();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(g,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:g,containerInfo:m,implementation:b}}var p=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Ln.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return d(g,m,null,b)},Ln.flushSync=function(g){var m=p.T,b=l.p;try{if(p.T=null,l.p=2,g)return g()}finally{p.T=m,l.p=b,l.d.f()}},Ln.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,l.d.C(g,m))},Ln.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},Ln.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?l.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:w}):b==="script"&&l.d.X(g,{crossOrigin:v,integrity:S,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ln.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=y(m.as,m.crossOrigin);l.d.M(g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&l.d.M(g)},Ln.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin);l.d.L(g,b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Ln.preloadModule=function(g,m){if(typeof g=="string")if(m){var b=y(m.as,m.crossOrigin);l.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else l.d.m(g)},Ln.requestFormReset=function(g){l.d.r(g)},Ln.unstable_batchedUpdates=function(g,m){return g(m)},Ln.useFormState=function(g,m,b){return p.H.useFormState(g,m,b)},Ln.useFormStatus=function(){return p.H.useHostTransitionStatus()},Ln.version="19.2.8",Ln}var Ym;function Rb(){if(Ym)return Nu.exports;Ym=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(a){console.error(a)}}return s(),Nu.exports=kE(),Nu.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Fm;function CE(){if(Fm)return Cs;Fm=1;var s=OE(),a=qf(),r=Rb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(d(e)!==e)throw Error(l(188))}function m(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,i=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){n=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===i)return g(o),t;c=c.sibling}throw Error(l(188))}if(n.return!==i.return)n=o,i=c;else{for(var h=!1,E=o.child;E;){if(E===n){h=!0,n=o,i=c;break}if(E===i){h=!0,i=o,n=c;break}E=E.sibling}if(!h){for(E=c.child;E;){if(E===n){h=!0,n=c,i=o;break}if(E===i){h=!0,i=c,n=o;break}E=E.sibling}if(!h)throw Error(l(189))}}if(n.alternate!==i)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),M=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=Z&&e[Z]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Ee(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 O:return"Fragment";case k:return"Profiler";case x:return"StrictMode";case $:return"Suspense";case X:return"SuspenseList";case P:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case M:return e.displayName||"Context";case B:return(e._context.displayName||"Context")+".Consumer";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:Ee(e.type)||"Memo";case C:t=e._payload,e=e._init;try{return Ee(e(t))}catch{}}return null}var J=Array.isArray,z=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe={pending:!1,data:null,method:null,action:null},Se=[],De=-1;function _(e){return{current:e}}function L(e){0>De||(e.current=Se[De],Se[De]=null,De--)}function I(e,t){De++,Se[De]=e.current,e.current=t}var re=_(null),K=_(null),de=_(null),ge=_(null);function Oe(e,t){switch(I(de,t),I(K,e),I(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sm(t),e=rm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(re),I(re,e)}function Me(){L(re),L(K),L(de)}function Ge(e){e.memoizedState!==null&&I(ge,e);var t=re.current,n=rm(t,e.type);t!==n&&(I(K,e),I(re,n))}function Fe(e){K.current===e&&(L(re),L(K)),ge.current===e&&(L(ge),xs._currentValue=pe)}var Ce,Ct;function Pe(e){if(Ce===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||"",Ct=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ce+e+Ct}var In=!1;function Je(e,t){if(!e||In)return"";In=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(V){var Y=V}Reflect.construct(e,[],oe)}else{try{oe.call()}catch(V){Y=V}e.call(oe.prototype)}}else{try{throw Error()}catch(V){Y=V}(oe=e())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(V){if(V&&Y&&typeof V.stack=="string")return[V.stack,Y.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),h=c[0],E=c[1];if(h&&E){var R=h.split(`
44
+ `),G=E.split(`
45
+ `);for(o=i=0;i<R.length&&!R[i].includes("DetermineComponentFrameRoot");)i++;for(;o<G.length&&!G[o].includes("DetermineComponentFrameRoot");)o++;if(i===R.length||o===G.length)for(i=R.length-1,o=G.length-1;1<=i&&0<=o&&R[i]!==G[o];)o--;for(;1<=i&&0<=o;i--,o--)if(R[i]!==G[o]){if(i!==1||o!==1)do if(i--,o--,0>o||R[i]!==G[o]){var ne=`
46
+ `+R[i].replace(" at new "," at ");return e.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",e.displayName)),ne}while(1<=i&&0<=o);break}}}finally{In=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Pe(n):""}function St(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 Je(e.type,!1);case 11:return Je(e.type.render,!1);case 1:return Je(e.type,!0);case 31:return Pe("Activity");default:return""}}function On(e){try{var t="",n=null;do t+=St(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var Mt=Object.prototype.hasOwnProperty,It=s.unstable_scheduleCallback,ct=s.unstable_cancelCallback,Hn=s.unstable_shouldYield,Zn=s.unstable_requestPaint,$e=s.unstable_now,Jt=s.unstable_getCurrentPriorityLevel,vt=s.unstable_ImmediatePriority,yn=s.unstable_UserBlockingPriority,vn=s.unstable_NormalPriority,kn=s.unstable_LowPriority,En=s.unstable_IdlePriority,Xn=s.log,ra=s.unstable_setDisableYieldValue,Cn=null,Ut=null;function qt(e){if(typeof Xn=="function"&&ra(e),Ut&&typeof Ut.setStrictMode=="function")try{Ut.setStrictMode(Cn,e)}catch{}}var Dt=Math.clz32?Math.clz32:Mn,ya=Math.log,_n=Math.LN2;function Mn(e){return e>>>=0,e===0?32:31-(ya(e)/_n|0)|0}var Ie=256,Gt=262144,dn=4194304;function Kt(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 A(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=Kt(i):(h&=E,h!==0?o=Kt(h):n||(n=E&~e,n!==0&&(o=Kt(n))))):(E=i&~c,E!==0?o=Kt(E):h!==0?o=Kt(h):n||(n=i&~e,n!==0&&(o=Kt(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 te(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ye(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 ze(){var e=dn;return dn<<=1,(dn&62914560)===0&&(dn=4194304),e}function et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function we(e,t,n,i,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,R=e.expirationTimes,G=e.hiddenUpdates;for(n=h&~n;0<n;){var ne=31-Dt(n),oe=1<<ne;E[ne]=0,R[ne]=-1;var Y=G[ne];if(Y!==null)for(G[ne]=null,ne=0;ne<Y.length;ne++){var V=Y[ne];V!==null&&(V.lane&=-536870913)}n&=~oe}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-Dt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function je(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Dt(n),o=1<<i;o&t|e[i]&t&&(e[i]|=t),n&=~o}}function Rt(e,t){var n=t&-t;return n=(n&42)!==0?1:gt(n),(n&(e.suspendedLanes|t))!==0?0:n}function gt(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 Sn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vn(){var e=le.p;return e!==0?e:(e=window.event,e===void 0?32:km(e.type))}function Qn(e,t){var n=le.p;try{return le.p=e,t()}finally{le.p=n}}var Zt=Math.random().toString(36).slice(2),Ot="__reactFiber$"+Zt,en="__reactProps$"+Zt,ut="__reactContainer$"+Zt,qn="__reactEvents$"+Zt,ai="__reactListeners$"+Zt,oa="__reactHandles$"+Zt,va="__reactResources$"+Zt,Wn="__reactMarker$"+Zt;function Ea(e){delete e[Ot],delete e[en],delete e[qn],delete e[ai],delete e[oa]}function tn(e){var t=e[Ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[Ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pm(e);e!==null;){if(n=e[Ot])return n;e=pm(e)}return t}e=n,n=e.parentNode}return null}function H(e){if(e=e[Ot]||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 he(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function xe(e){var t=e[va];return t||(t=e[va]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function be(e){e[Wn]=!0}var Qe=new Set,Ht={};function $t(e,t){fe(e,t),fe(e+"Capture",t)}function fe(e,t){for(Ht[e]=t,e=0;e<t.length;e++)Qe.add(t[e])}var Ne=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]*$"),qe={},dt={};function kt(e){return Mt.call(dt,e)?!0:Mt.call(qe,e)?!1:Ne.test(e)?dt[e]=!0:(qe[e]=!0,!1)}function nn(e,t,n){if(kt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function pn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Xt(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 ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nl(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ii(e){if(!e._valueTracker){var t=jt(e)?"checked":"value";e._valueTracker=nl(e,t,""+e[t])}}function li(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=jt(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function ja(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var al=/[\n"\\]/g;function Dn(e){return e.replace(al,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function si(e,t,n,i,o,c,h,E){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ht(t)):e.value!==""+ht(t)&&(e.value=""+ht(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?ri(e,h,ht(t)):n!=null?ri(e,h,ht(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=""+ht(E):e.removeAttribute("name")}function Ba(e,t,n,i,o,c,h,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ii(e);return}n=n!=null?""+ht(n):"",t=t!=null?""+ht(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=E?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),ii(e)}function ri(e,t,n){t==="number"&&ja(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function an(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=""+ht(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=""+ht(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ht(n):""}function Aa(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(l(92));if(J(i)){if(1<i.length)throw Error(l(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=ht(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),ii(e)}function Q(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var N=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function U(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||N.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function W(e,t,n){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&n[o]!==i&&U(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&U(e,c,t[c])}function Te(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Re=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),He=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function tt(e){return He.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ue(){}var ve=null;function Le(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 ca(e){var t=H(e);if(t&&(e=t.stateNode)){var n=e[en]||null;e:switch(e=t.stateNode,t.type){case"input":if(si(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Dn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=i[en]||null;if(!o)throw Error(l(90));si(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&li(i)}break e;case"textarea":Ia(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&an(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,ca(t),e)))for(t=0;t<e.length;t++)ca(e[t])}}function $l(e,t){var n=e.stateNode;if(n===null)return null;var i=n[en]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var Ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yo=!1;if(Ha)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){yo=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{yo=!1}var oi=null,vo=null,Ps=null;function rd(){if(Ps)return Ps;var e,t=vo,n=t.length,i,o="value"in oi?oi.value:oi.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(i=1;i<=h&&t[n-i]===o[c-i];i++);return 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 od(){return!1}function Gn(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:od,this.isPropagationStopped=od,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Zs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zs)},persist:function(){},isPersistent:Zs}),t}var Ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=Gn(Ui),Fl=v({},Ui,{view:0,detail:0}),Ey=Gn(Fl),Eo,_o,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:No,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pl&&(Pl&&e.type==="mousemove"?(Eo=e.screenX-Pl.screenX,_o=e.screenY-Pl.screenY):_o=Eo=0,Pl=e),Eo)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),cd=Gn(Vs),_y=v({},Vs,{dataTransfer:0}),Sy=Gn(_y),Ny=v({},Fl,{relatedTarget:0}),So=Gn(Ny),wy=v({},Ui,{animationName:0,elapsedTime:0,pseudoElement:0}),Ty=Gn(wy),xy=v({},Ui,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ay=Gn(xy),Ry=v({},Ui,{data:0}),ud=Gn(Ry),Oy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ky={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"},Cy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function My(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cy[e])?!!t[e]:!1}function No(){return My}var Dy=v({},Fl,{key:function(e){if(e.key){var t=Oy[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"?ky[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:No,charCode:function(e){return e.type==="keypress"?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}}),Ly=Gn(Dy),zy=v({},Vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fd=Gn(zy),Uy=v({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:No}),jy=Gn(Uy),By=v({},Ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),Iy=Gn(By),Hy=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}),qy=Gn(Hy),Gy=v({},Ui,{newState:0,oldState:0}),$y=Gn(Gy),Yy=[9,13,27,32],wo=Ha&&"CompositionEvent"in window,Kl=null;Ha&&"documentMode"in document&&(Kl=document.documentMode);var Fy=Ha&&"TextEvent"in window&&!Kl,dd=Ha&&(!wo||Kl&&8<Kl&&11>=Kl),hd=" ",pd=!1;function md(e,t){switch(e){case"keyup":return Yy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function Py(e,t){switch(e){case"compositionend":return gd(t);case"keypress":return t.which!==32?null:(pd=!0,hd);case"textInput":return e=t.data,e===hd&&pd?null:e;default:return null}}function Ky(e,t){if(il)return e==="compositionend"||!wo&&md(e,t)?(e=rd(),Ps=vo=oi=null,il=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return dd&&t.locale!=="ko"?null:t.data;default:return null}}var Zy={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 bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zy[e.type]:t==="textarea"}function yd(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 Xy(e){em(e,0)}function Qs(e){var t=he(e);if(li(t))return e}function vd(e,t){if(e==="change")return t}var Ed=!1;if(Ha){var To;if(Ha){var xo="oninput"in document;if(!xo){var _d=document.createElement("div");_d.setAttribute("oninput","return;"),xo=typeof _d.oninput=="function"}To=xo}else To=!1;Ed=To&&(!document.documentMode||9<document.documentMode)}function Sd(){Zl&&(Zl.detachEvent("onpropertychange",Nd),Xl=Zl=null)}function Nd(e){if(e.propertyName==="value"&&Qs(Xl)){var t=[];yd(t,Xl,e,Le(e)),Fs(Xy,t)}}function Vy(e,t,n){e==="focusin"?(Sd(),Zl=t,Xl=n,Zl.attachEvent("onpropertychange",Nd)):e==="focusout"&&Sd()}function Qy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qs(Xl)}function Wy(e,t){if(e==="click")return Qs(t)}function Jy(e,t){if(e==="input"||e==="change")return Qs(t)}function ev(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jn=typeof Object.is=="function"?Object.is:ev;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(!Mt.call(t,o)||!Jn(e[o],t[o]))return!1}return!0}function wd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Td(e,t){var n=wd(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=wd(n)}}function xd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ad(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ja(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ja(e.document)}return t}function Ao(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tv=Ha&&"documentMode"in document&&11>=document.documentMode,ll=null,Ro=null,Ql=null,Oo=!1;function Rd(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Oo||ll==null||ll!==ja(i)||(i=ll,"selectionStart"in i&&Ao(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ql&&Vl(Ql,i)||(Ql=i,i=Ir(Ro,"onSelect"),0<i.length&&(t=new Xs("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ll)))}function ji(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sl={animationend:ji("Animation","AnimationEnd"),animationiteration:ji("Animation","AnimationIteration"),animationstart:ji("Animation","AnimationStart"),transitionrun:ji("Transition","TransitionRun"),transitionstart:ji("Transition","TransitionStart"),transitioncancel:ji("Transition","TransitionCancel"),transitionend:ji("Transition","TransitionEnd")},ko={},Od={};Ha&&(Od=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);function Bi(e){if(ko[e])return ko[e];if(!sl[e])return e;var t=sl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Od)return ko[e]=t[n];return e}var kd=Bi("animationend"),Cd=Bi("animationiteration"),Md=Bi("animationstart"),nv=Bi("transitionrun"),av=Bi("transitionstart"),iv=Bi("transitioncancel"),Dd=Bi("transitionend"),Ld=new Map,Co="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Co.push("scrollEnd");function _a(e,t){Ld.set(e,t),$t(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)},ua=[],rl=0,Mo=0;function Js(){for(var e=rl,t=Mo=rl=0;t<e;){var n=ua[t];ua[t++]=null;var i=ua[t];ua[t++]=null;var o=ua[t];ua[t++]=null;var c=ua[t];if(ua[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&&zd(n,o,c)}}function er(e,t,n,i){ua[rl++]=e,ua[rl++]=t,ua[rl++]=n,ua[rl++]=i,Mo|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Do(e,t,n,i){return er(e,t,n,i),tr(e)}function Ii(e,t){return er(e,null,null,t),tr(e)}function zd(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-Dt(n),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=n|536870912),c):null}function tr(e){if(50<vs)throw vs=0,Gc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ol={};function lv(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 lv(e,t,n,i)}function Lo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qa(e,t){var n=e.alternate;return n===null?(n=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 Ud(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nr(e,t,n,i,o,c){var h=0;if(i=e,typeof e=="function")Lo(e)&&(h=1);else if(typeof e=="string")h=uE(e,n,re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case P:return e=ea(31,n,t,o),e.elementType=P,e.lanes=c,e;case O:return Hi(n.children,o,c,t);case x:h=8,o|=24;break;case k:return e=ea(12,n,t,o|2),e.elementType=k,e.lanes=c,e;case $:return e=ea(13,n,t,o),e.elementType=$,e.lanes=c,e;case X:return e=ea(19,n,t,o),e.elementType=X,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:h=10;break e;case B:h=9;break e;case ae:h=11;break e;case ie:h=14;break e;case C:h=16,i=null;break e}h=29,n=Error(l(130,e===null?"null":typeof e,"")),i=null}return t=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 zo(e,t,n){return e=ea(6,e,null,t),e.lanes=n,e}function jd(e){var t=ea(18,null,null,0);return t.stateNode=e,t}function Uo(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 Bd=new WeakMap;function fa(e,t){if(typeof e=="object"&&e!==null){var n=Bd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:On(t)},Bd.set(e,t),t)}return{value:e,source:t,stack:On(t)}}var cl=[],ul=0,ar=null,Wl=0,da=[],ha=0,ci=null,Ra=1,Oa="";function Ga(e,t){cl[ul++]=Wl,cl[ul++]=ar,ar=e,Wl=t}function Id(e,t,n){da[ha++]=Ra,da[ha++]=Oa,da[ha++]=ci,ci=e;var i=Ra;e=Oa;var o=32-Dt(i)-1;i&=~(1<<o),n+=1;var c=32-Dt(t)+o;if(30<c){var h=o-o%5;c=(i&(1<<h)-1).toString(32),i>>=h,o-=h,Ra=1<<32-Dt(t)+o|n<<o|i,Oa=c+e}else Ra=1<<c|n<<o|i,Oa=e}function jo(e){e.return!==null&&(Ga(e,1),Id(e,1,0))}function Bo(e){for(;e===ar;)ar=cl[--ul],cl[ul]=null,Wl=cl[--ul],cl[ul]=null;for(;e===ci;)ci=da[--ha],da[ha]=null,Oa=da[--ha],da[ha]=null,Ra=da[--ha],da[ha]=null}function Hd(e,t){da[ha++]=Ra,da[ha++]=Oa,da[ha++]=ci,Ra=t.id,Oa=t.overflow,ci=e}var Nn=null,Lt=null,ot=!1,ui=null,pa=!1,Io=Error(l(519));function fi(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jl(fa(t,e)),Io}function qd(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[Ot]=e,t[en]=i,n){case"dialog":at("cancel",t),at("close",t);break;case"iframe":case"object":case"embed":at("load",t);break;case"video":case"audio":for(n=0;n<_s.length;n++)at(_s[n],t);break;case"source":at("error",t);break;case"img":case"image":case"link":at("error",t),at("load",t);break;case"details":at("toggle",t);break;case"input":at("invalid",t),Ba(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":at("invalid",t);break;case"textarea":at("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||im(t.textContent,n)?(i.popover!=null&&(at("beforetoggle",t),at("toggle",t)),i.onScroll!=null&&at("scroll",t),i.onScrollEnd!=null&&at("scrollend",t),i.onClick!=null&&(t.onclick=ue),t=!0):t=!1,t||fi(e,!0)}function Gd(e){for(Nn=e.return;Nn;)switch(Nn.tag){case 5:case 31:case 13:pa=!1;return;case 27:case 3:pa=!0;return;default:Nn=Nn.return}}function fl(e){if(e!==Nn)return!1;if(!ot)return Gd(e),ot=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||au(e.type,e.memoizedProps)),n=!n),n&&Lt&&fi(e),Gd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Lt=hm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Lt=hm(e)}else t===27?(t=Lt,Ti(e.type)?(e=ou,ou=null,Lt=e):Lt=t):Lt=Nn?ga(e.stateNode.nextSibling):null;return!0}function qi(){Lt=Nn=null,ot=!1}function Ho(){var e=ui;return e!==null&&(Pn===null?Pn=e:Pn.push.apply(Pn,e),ui=null),e}function Jl(e){ui===null?ui=[e]:ui.push(e)}var qo=_(null),Gi=null,$a=null;function di(e,t,n){I(qo,t._currentValue),t._currentValue=n}function Ya(e){e._currentValue=qo.current,L(qo)}function Go(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function $o(e,t,n,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=o;for(var R=0;R<t.length;R++)if(E.context===t[R]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),Go(c.return,n,e),i||(h=null);break e}c=E.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(l(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Go(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function dl(e,t,n,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(l(387));if(h=h.memoizedProps,h!==null){var E=o.type;Jn(o.pendingProps.value,h.value)||(e!==null?e.push(E):e=[E])}}else if(o===ge.current){if(h=o.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(xs):e=[xs])}o=o.return}e!==null&&$o(t,e,n,i),t.flags|=262144}function ir(e){for(e=e.firstContext;e!==null;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,$a=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wn(e){return $d(Gi,e)}function lr(e,t){return Gi===null&&$i(e),$d(e,t)}function $d(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},$a===null){if(e===null)throw Error(l(308));$a=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $a=$a.next=t;return n}var sv=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()})}},rv=s.unstable_scheduleCallback,ov=s.unstable_NormalPriority,ln={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yo(){return{controller:new sv,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&rv(ov,function(){e.controller.abort()})}var ts=null,Fo=0,hl=0,pl=null;function cv(e,t){if(ts===null){var n=ts=[];Fo=0,hl=Zc(),pl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Fo++,t.then(Yd,Yd),t}function Yd(){if(--Fo===0&&ts!==null){pl!==null&&(pl.status="fulfilled");var e=ts;ts=null,hl=0,pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function uv(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 Fd=z.S;z.S=function(e,t){Rp=$e(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&cv(e,t),Fd!==null&&Fd(e,t)};var Yi=_(null);function Po(){var e=Yi.current;return e!==null?e:At.pooledCache}function sr(e,t){t===null?I(Yi,Yi.current):I(Yi,t.pool)}function Pd(){var e=Po();return e===null?null:{parent:ln._currentValue,pool:e}}var ml=Error(l(460)),Ko=Error(l(474)),rr=Error(l(542)),or={then:function(){}};function Kd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zd(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,Vd(e),e;default:if(typeof t.status=="string")t.then(ue,ue);else{if(e=At,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vd(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 Xd(){if(Pi===null)throw Error(l(459));var e=Pi;return Pi=null,e}function Vd(e){if(e===ml||e===rr)throw Error(l(483))}var gl=null,ns=0;function cr(e){var t=ns;return ns+=1,gl===null&&(gl=[]),Zd(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===S?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Qd(e){function t(j,D){if(e){var q=j.deletions;q===null?(j.deletions=[D],j.flags|=16):q.push(D)}}function n(j,D){if(!e)return null;for(;D!==null;)t(j,D),D=D.sibling;return null}function i(j){for(var D=new Map;j!==null;)j.key!==null?D.set(j.key,j):D.set(j.index,j),j=j.sibling;return D}function o(j,D){return j=qa(j,D),j.index=0,j.sibling=null,j}function c(j,D,q){return j.index=q,e?(q=j.alternate,q!==null?(q=q.index,q<D?(j.flags|=67108866,D):q):(j.flags|=67108866,D)):(j.flags|=1048576,D)}function h(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function E(j,D,q,se){return D===null||D.tag!==6?(D=zo(q,j.mode,se),D.return=j,D):(D=o(D,q),D.return=j,D)}function R(j,D,q,se){var Ue=q.type;return Ue===O?ne(j,D,q.props.children,se,q.key):D!==null&&(D.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===C&&Fi(Ue)===D.type)?(D=o(D,q.props),as(D,q),D.return=j,D):(D=nr(q.type,q.key,q.props,null,j.mode,se),as(D,q),D.return=j,D)}function G(j,D,q,se){return D===null||D.tag!==4||D.stateNode.containerInfo!==q.containerInfo||D.stateNode.implementation!==q.implementation?(D=Uo(q,j.mode,se),D.return=j,D):(D=o(D,q.children||[]),D.return=j,D)}function ne(j,D,q,se,Ue){return D===null||D.tag!==7?(D=Hi(q,j.mode,se,Ue),D.return=j,D):(D=o(D,q),D.return=j,D)}function oe(j,D,q){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=zo(""+D,j.mode,q),D.return=j,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case w:return q=nr(D.type,D.key,D.props,null,j.mode,q),as(q,D),q.return=j,q;case T:return D=Uo(D,j.mode,q),D.return=j,D;case C:return D=Fi(D),oe(j,D,q)}if(J(D)||me(D))return D=Hi(D,j.mode,q,null),D.return=j,D;if(typeof D.then=="function")return oe(j,cr(D),q);if(D.$$typeof===M)return oe(j,lr(j,D),q);ur(j,D)}return null}function Y(j,D,q,se){var Ue=D!==null?D.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Ue!==null?null:E(j,D,""+q,se);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case w:return q.key===Ue?R(j,D,q,se):null;case T:return q.key===Ue?G(j,D,q,se):null;case C:return q=Fi(q),Y(j,D,q,se)}if(J(q)||me(q))return Ue!==null?null:ne(j,D,q,se,null);if(typeof q.then=="function")return Y(j,D,cr(q),se);if(q.$$typeof===M)return Y(j,D,lr(j,q),se);ur(j,q)}return null}function V(j,D,q,se,Ue){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return j=j.get(q)||null,E(D,j,""+se,Ue);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case w:return j=j.get(se.key===null?q:se.key)||null,R(D,j,se,Ue);case T:return j=j.get(se.key===null?q:se.key)||null,G(D,j,se,Ue);case C:return se=Fi(se),V(j,D,q,se,Ue)}if(J(se)||me(se))return j=j.get(q)||null,ne(D,j,se,Ue,null);if(typeof se.then=="function")return V(j,D,q,cr(se),Ue);if(se.$$typeof===M)return V(j,D,q,lr(D,se),Ue);ur(D,se)}return null}function Ae(j,D,q,se){for(var Ue=null,pt=null,ke=D,Xe=D=0,rt=null;ke!==null&&Xe<q.length;Xe++){ke.index>Xe?(rt=ke,ke=null):rt=ke.sibling;var mt=Y(j,ke,q[Xe],se);if(mt===null){ke===null&&(ke=rt);break}e&&ke&&mt.alternate===null&&t(j,ke),D=c(mt,D,Xe),pt===null?Ue=mt:pt.sibling=mt,pt=mt,ke=rt}if(Xe===q.length)return n(j,ke),ot&&Ga(j,Xe),Ue;if(ke===null){for(;Xe<q.length;Xe++)ke=oe(j,q[Xe],se),ke!==null&&(D=c(ke,D,Xe),pt===null?Ue=ke:pt.sibling=ke,pt=ke);return ot&&Ga(j,Xe),Ue}for(ke=i(ke);Xe<q.length;Xe++)rt=V(ke,j,Xe,q[Xe],se),rt!==null&&(e&&rt.alternate!==null&&ke.delete(rt.key===null?Xe:rt.key),D=c(rt,D,Xe),pt===null?Ue=rt:pt.sibling=rt,pt=rt);return e&&ke.forEach(function(ki){return t(j,ki)}),ot&&Ga(j,Xe),Ue}function Be(j,D,q,se){if(q==null)throw Error(l(151));for(var Ue=null,pt=null,ke=D,Xe=D=0,rt=null,mt=q.next();ke!==null&&!mt.done;Xe++,mt=q.next()){ke.index>Xe?(rt=ke,ke=null):rt=ke.sibling;var ki=Y(j,ke,mt.value,se);if(ki===null){ke===null&&(ke=rt);break}e&&ke&&ki.alternate===null&&t(j,ke),D=c(ki,D,Xe),pt===null?Ue=ki:pt.sibling=ki,pt=ki,ke=rt}if(mt.done)return n(j,ke),ot&&Ga(j,Xe),Ue;if(ke===null){for(;!mt.done;Xe++,mt=q.next())mt=oe(j,mt.value,se),mt!==null&&(D=c(mt,D,Xe),pt===null?Ue=mt:pt.sibling=mt,pt=mt);return ot&&Ga(j,Xe),Ue}for(ke=i(ke);!mt.done;Xe++,mt=q.next())mt=V(ke,j,Xe,mt.value,se),mt!==null&&(e&&mt.alternate!==null&&ke.delete(mt.key===null?Xe:mt.key),D=c(mt,D,Xe),pt===null?Ue=mt:pt.sibling=mt,pt=mt);return e&&ke.forEach(function(_E){return t(j,_E)}),ot&&Ga(j,Xe),Ue}function Tt(j,D,q,se){if(typeof q=="object"&&q!==null&&q.type===O&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case w:e:{for(var Ue=q.key;D!==null;){if(D.key===Ue){if(Ue=q.type,Ue===O){if(D.tag===7){n(j,D.sibling),se=o(D,q.props.children),se.return=j,j=se;break e}}else if(D.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===C&&Fi(Ue)===D.type){n(j,D.sibling),se=o(D,q.props),as(se,q),se.return=j,j=se;break e}n(j,D);break}else t(j,D);D=D.sibling}q.type===O?(se=Hi(q.props.children,j.mode,se,q.key),se.return=j,j=se):(se=nr(q.type,q.key,q.props,null,j.mode,se),as(se,q),se.return=j,j=se)}return h(j);case T:e:{for(Ue=q.key;D!==null;){if(D.key===Ue)if(D.tag===4&&D.stateNode.containerInfo===q.containerInfo&&D.stateNode.implementation===q.implementation){n(j,D.sibling),se=o(D,q.children||[]),se.return=j,j=se;break e}else{n(j,D);break}else t(j,D);D=D.sibling}se=Uo(q,j.mode,se),se.return=j,j=se}return h(j);case C:return q=Fi(q),Tt(j,D,q,se)}if(J(q))return Ae(j,D,q,se);if(me(q)){if(Ue=me(q),typeof Ue!="function")throw Error(l(150));return q=Ue.call(q),Be(j,D,q,se)}if(typeof q.then=="function")return Tt(j,D,cr(q),se);if(q.$$typeof===M)return Tt(j,D,lr(j,q),se);ur(j,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,D!==null&&D.tag===6?(n(j,D.sibling),se=o(D,q),se.return=j,j=se):(n(j,D),se=zo(q,j.mode,se),se.return=j,j=se),h(j)):n(j,D)}return function(j,D,q,se){try{ns=0;var Ue=Tt(j,D,q,se);return gl=null,Ue}catch(ke){if(ke===ml||ke===rr)throw ke;var pt=ea(29,ke,null,j.mode);return pt.lanes=se,pt.return=j,pt}finally{}}}var Ki=Qd(!0),Wd=Qd(!1),hi=!1;function Zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function pi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function mi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(bt&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),zd(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,je(e,n)}}function Vo(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 Qo=!1;function ls(){if(Qo){var e=pl;if(e!==null)throw e}}function ss(e,t,n,i){Qo=!1;var o=e.updateQueue;hi=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var R=E,G=R.next;R.next=null,h===null?c=G:h.next=G,h=R;var ne=e.alternate;ne!==null&&(ne=ne.updateQueue,E=ne.lastBaseUpdate,E!==h&&(E===null?ne.firstBaseUpdate=G:E.next=G,ne.lastBaseUpdate=R))}if(c!==null){var oe=o.baseState;h=0,ne=G=R=null,E=c;do{var Y=E.lane&-536870913,V=Y!==E.lane;if(V?(st&Y)===Y:(i&Y)===Y){Y!==0&&Y===hl&&(Qo=!0),ne!==null&&(ne=ne.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Ae=e,Be=E;Y=t;var Tt=n;switch(Be.tag){case 1:if(Ae=Be.payload,typeof Ae=="function"){oe=Ae.call(Tt,oe,Y);break e}oe=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Be.payload,Y=typeof Ae=="function"?Ae.call(Tt,oe,Y):Ae,Y==null)break e;oe=v({},oe,Y);break e;case 2:hi=!0}}Y=E.callback,Y!==null&&(e.flags|=64,V&&(e.flags|=8192),V=o.callbacks,V===null?o.callbacks=[Y]:V.push(Y))}else V={lane:Y,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ne===null?(G=ne=V,R=oe):ne=ne.next=V,h|=Y;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;V=E,E=V.next,V.next=null,o.lastBaseUpdate=V,o.shared.pending=null}}while(!0);ne===null&&(R=oe),o.baseState=R,o.firstBaseUpdate=G,o.lastBaseUpdate=ne,c===null&&(o.shared.lanes=0),Ei|=h,e.lanes=h,e.memoizedState=oe}}function Jd(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function eh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Jd(n[e],t)}var bl=_(null),fr=_(0);function th(e,t){e=Ja,I(fr,e),I(bl,t),Ja=e|t.baseLanes}function Wo(){I(fr,Ja),I(bl,bl.current)}function Jo(){Ja=fr.current,L(bl),L(fr)}var ta=_(null),ma=null;function gi(e){var t=e.alternate;I(Vt,Vt.current&1),I(ta,e),ma===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(ma=e)}function ec(e){I(Vt,Vt.current),I(ta,e),ma===null&&(ma=e)}function nh(e){e.tag===22?(I(Vt,Vt.current),I(ta,e),ma===null&&(ma=e)):bi()}function bi(){I(Vt,Vt.current),I(ta,ta.current)}function na(e){L(ta),ma===e&&(ma=null),L(Vt)}var Vt=_(0);function dr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||su(n)||ru(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fa=0,Ke=null,Nt=null,sn=null,hr=!1,yl=!1,Zi=!1,pr=0,rs=0,vl=null,fv=0;function Yt(){throw Error(l(321))}function tc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function nc(e,t,n,i,o,c){return Fa=c,Ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Ih:bc,Zi=!1,c=n(i,o),Zi=!1,yl&&(c=ih(t,n,i,o)),ah(e),c}function ah(e){z.H=us;var t=Nt!==null&&Nt.next!==null;if(Fa=0,sn=Nt=Ke=null,hr=!1,rs=0,vl=null,t)throw Error(l(300));e===null||rn||(e=e.dependencies,e!==null&&ir(e)&&(rn=!0))}function ih(e,t,n,i){Ke=e;var o=0;do{if(yl&&(vl=null),rs=0,yl=!1,25<=o)throw Error(l(301));if(o+=1,sn=Nt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=Hh,c=t(n,i)}while(yl);return c}function dv(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(Nt!==null?Nt.memoizedState:null)!==e&&(Ke.flags|=1024),t}function ac(){var e=pr!==0;return pr=0,e}function ic(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function lc(e){if(hr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hr=!1}Fa=0,sn=Nt=Ke=null,yl=!1,rs=pr=0,vl=null}function jn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sn===null?Ke.memoizedState=sn=e:sn=sn.next=e,sn}function Qt(){if(Nt===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=Nt.next;var t=sn===null?Ke.memoizedState:sn.next;if(t!==null)sn=t,Nt=e;else{if(e===null)throw Ke.alternate===null?Error(l(467)):Error(l(310));Nt=e,e={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},sn===null?Ke.memoizedState=sn=e:sn=sn.next=e}return sn}function mr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=rs;return rs+=1,vl===null&&(vl=[]),e=Zd(vl,e,t),t=Ke,(sn===null?t.memoizedState:sn.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Ih:bc),e}function gr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===M)return wn(e)}throw Error(l(438,String(e)))}function sc(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]=ee;return t.index++,n}function Pa(e,t){return typeof t=="function"?t(e):t}function br(e){var t=Qt();return rc(t,Nt,e)}function rc(e,t,n){var i=e.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=n;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=h=null,R=null,G=t,ne=!1;do{var oe=G.lane&-536870913;if(oe!==G.lane?(st&oe)===oe:(Fa&oe)===oe){var Y=G.revertLane;if(Y===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),oe===hl&&(ne=!0);else if((Fa&Y)===Y){G=G.next,Y===hl&&(ne=!0);continue}else oe={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},R===null?(E=R=oe,h=c):R=R.next=oe,Ke.lanes|=Y,Ei|=Y;oe=G.action,Zi&&n(c,oe),c=G.hasEagerState?G.eagerState:n(c,oe)}else Y={lane:oe,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},R===null?(E=R=Y,h=c):R=R.next=Y,Ke.lanes|=oe,Ei|=oe;G=G.next}while(G!==null&&G!==t);if(R===null?h=c:R.next=E,!Jn(c,e.memoizedState)&&(rn=!0,ne&&(n=pl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=R,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function oc(e){var t=Qt(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var i=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);Jn(c,t.memoizedState)||(rn=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function lh(e,t,n){var i=Ke,o=Qt(),c=ot;if(c){if(n===void 0)throw Error(l(407));n=n()}else n=t();var h=!Jn((Nt||o).memoizedState,n);if(h&&(o.memoizedState=n,rn=!0),o=o.queue,fc(oh.bind(null,i,o,e),[e]),o.getSnapshot!==t||h||sn!==null&&sn.memoizedState.tag&1){if(i.flags|=2048,El(9,{destroy:void 0},rh.bind(null,i,o,n,t),null),At===null)throw Error(l(349));c||(Fa&127)!==0||sh(i,t,n)}return n}function sh(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 rh(e,t,n,i){t.value=n,t.getSnapshot=i,ch(t)&&uh(e)}function oh(e,t,n){return n(function(){ch(t)&&uh(e)})}function ch(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch{return!0}}function uh(e){var t=Ii(e,2);t!==null&&Kn(t,e,2)}function cc(e){var t=jn();if(typeof e=="function"){var n=e;if(e=n(),Zi){qt(!0);try{n()}finally{qt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t}function fh(e,t,n,i){return e.baseState=n,rc(e,Nt,typeof i=="function"?i:Pa)}function hv(e,t,n,i,o){if(Er(e))throw Error(l(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};z.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,dh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function dh(e,t){var n=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=z.T,h={};z.T=h;try{var E=n(o,i),R=z.S;R!==null&&R(h,E),hh(e,t,E)}catch(G){uc(e,t,G)}finally{c!==null&&h.types!==null&&(c.types=h.types),z.T=c}}else try{c=n(o,i),hh(e,t,c)}catch(G){uc(e,t,G)}}function hh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){ph(e,t,i)},function(i){return uc(e,t,i)}):ph(e,t,n)}function ph(e,t,n){t.status="fulfilled",t.value=n,mh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,dh(e,n)))}function uc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,mh(t),t=t.next;while(t!==i)}e.action=null}function mh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gh(e,t){return t}function bh(e,t){if(ot){var n=At.formState;if(n!==null){e:{var i=Ke;if(ot){if(Lt){t:{for(var o=Lt,c=pa;o.nodeType!==8;){if(!c){o=null;break t}if(o=ga(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Lt=ga(o.nextSibling),i=o.data==="F!";break e}}fi(i)}i=!1}i&&(t=n[0])}}return n=jn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gh,lastRenderedState:t},n.queue=i,n=Uh.bind(null,Ke,i),i.dispatch=n,i=cc(!1),c=gc.bind(null,Ke,!1,i.queue),i=jn(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,n=hv.bind(null,Ke,o,c,n),o.dispatch=n,i.memoizedState=e,[t,n,!1]}function yh(e){var t=Qt();return vh(t,Nt,e)}function vh(e,t,n){if(t=rc(e,t,gh)[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=Qt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Ke.flags|=2048,El(9,{destroy:void 0},pv.bind(null,o,n),null)),[i,c,e]}function pv(e,t){e.action=t}function Eh(e){var t=Qt(),n=Nt;if(n!==null)return vh(t,n,e);Qt(),t=t.memoizedState,n=Qt();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 _h(){return Qt().memoizedState}function yr(e,t,n,i){var o=jn();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=Qt();i=i===void 0?null:i;var c=o.memoizedState.inst;Nt!==null&&i!==null&&tc(i,Nt.memoizedState.deps)?o.memoizedState=El(t,c,n,i):(Ke.flags|=e,o.memoizedState=El(1|t,c,n,i))}function Sh(e,t){yr(8390656,8,e,t)}function fc(e,t){vr(2048,8,e,t)}function mv(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 Nh(e){var t=Qt().memoizedState;return mv({ref:t,nextImpl:e}),function(){if((bt&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function wh(e,t){return vr(4,2,e,t)}function Th(e,t){return vr(4,4,e,t)}function xh(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 Ah(e,t,n){n=n!=null?n.concat([e]):null,vr(4,4,xh.bind(null,t,e),n)}function dc(){}function Rh(e,t){var n=Qt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&tc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Oh(e,t){var n=Qt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&tc(t,i[1]))return i[0];if(i=e(),Zi){qt(!0);try{e()}finally{qt(!1)}}return n.memoizedState=[i,t],i}function hc(e,t,n){return n===void 0||(Fa&1073741824)!==0&&(st&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=kp(),Ke.lanes|=e,Ei|=e,n)}function kh(e,t,n,i){return Jn(n,t)?n:bl.current!==null?(e=hc(e,n,i),Jn(e,t)||(rn=!0),e):(Fa&42)===0||(Fa&1073741824)!==0&&(st&261930)===0?(rn=!0,e.memoizedState=n):(e=kp(),Ke.lanes|=e,Ei|=e,t)}function Ch(e,t,n,i,o){var c=le.p;le.p=c!==0&&8>c?c:8;var h=z.T,E={};z.T=E,gc(e,!1,t,n);try{var R=o(),G=z.S;if(G!==null&&G(E,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var ne=uv(R,i);cs(e,t,ne,la(e))}else cs(e,t,i,la(e))}catch(oe){cs(e,t,{then:function(){},status:"rejected",reason:oe},la())}finally{le.p=c,h!==null&&E.types!==null&&(h.types=E.types),z.T=h}}function gv(){}function pc(e,t,n,i){if(e.tag!==5)throw Error(l(476));var o=Mh(e).queue;Ch(e,o,t,pe,n===null?gv:function(){return Dh(e),n(i)})}function Mh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:pe,baseState:pe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:pe},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 Dh(e){var t=Mh(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},la())}function mc(){return wn(xs)}function Lh(){return Qt().memoizedState}function zh(){return Qt().memoizedState}function bv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=la();e=pi(n);var i=mi(t,e,n);i!==null&&(Kn(i,t,n),is(i,t,n)),t={cache:Yo()},e.payload=t;return}t=t.return}}function yv(e,t,n){var i=la();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Er(e)?jh(t,n):(n=Do(e,t,n,i),n!==null&&(Kn(n,e,i),Bh(n,t,i)))}function Uh(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))jh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,E=c(h,n);if(o.hasEagerState=!0,o.eagerState=E,Jn(E,h))return er(e,t,o,0),At===null&&Js(),!1}catch{}finally{}if(n=Do(e,t,o,i),n!==null)return Kn(n,e,i),Bh(n,t,i),!0}return!1}function gc(e,t,n,i){if(i={lane:2,revertLane:Zc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Er(e)){if(t)throw Error(l(479))}else t=Do(e,n,i,2),t!==null&&Kn(t,e,2)}function Er(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function jh(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 Bh(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,je(e,n)}}var us={readContext:wn,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 Ih={readContext:wn,use:gr,useCallback:function(e,t){return jn().memoizedState=[e,t===void 0?null:t],e},useContext:wn,useEffect:Sh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yr(4194308,4,xh.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=jn();t=t===void 0?null:t;var i=e();if(Zi){qt(!0);try{e()}finally{qt(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=jn();if(n!==void 0){var o=n(t);if(Zi){qt(!0);try{n(t)}finally{qt(!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=yv.bind(null,Ke,e),[i.memoizedState,e]},useRef:function(e){var t=jn();return e={current:e},t.memoizedState=e},useState:function(e){e=cc(e);var t=e.queue,n=Uh.bind(null,Ke,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:dc,useDeferredValue:function(e,t){var n=jn();return hc(n,e,t)},useTransition:function(){var e=cc(!1);return e=Ch.bind(null,Ke,e.queue,!0,!1),jn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ke,o=jn();if(ot){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),At===null)throw Error(l(349));(st&127)!==0||sh(i,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,Sh(oh.bind(null,i,c,e),[e]),i.flags|=2048,El(9,{destroy:void 0},rh.bind(null,i,c,n,t),null),n},useId:function(){var e=jn(),t=At.identifierPrefix;if(ot){var n=Oa,i=Ra;n=(i&~(1<<32-Dt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=fv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:mc,useFormState:bh,useActionState:bh,useOptimistic:function(e){var t=jn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=gc.bind(null,Ke,!0,n),n.dispatch=t,[e,t]},useMemoCache:sc,useCacheRefresh:function(){return jn().memoizedState=bv.bind(null,Ke)},useEffectEvent:function(e){var t=jn(),n={impl:e};return t.memoizedState=n,function(){if((bt&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},bc={readContext:wn,use:gr,useCallback:Rh,useContext:wn,useEffect:fc,useImperativeHandle:Ah,useInsertionEffect:wh,useLayoutEffect:Th,useMemo:Oh,useReducer:br,useRef:_h,useState:function(){return br(Pa)},useDebugValue:dc,useDeferredValue:function(e,t){var n=Qt();return kh(n,Nt.memoizedState,e,t)},useTransition:function(){var e=br(Pa)[0],t=Qt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:lh,useId:Lh,useHostTransitionStatus:mc,useFormState:yh,useActionState:yh,useOptimistic:function(e,t){var n=Qt();return fh(n,Nt,e,t)},useMemoCache:sc,useCacheRefresh:zh};bc.useEffectEvent=Nh;var Hh={readContext:wn,use:gr,useCallback:Rh,useContext:wn,useEffect:fc,useImperativeHandle:Ah,useInsertionEffect:wh,useLayoutEffect:Th,useMemo:Oh,useReducer:oc,useRef:_h,useState:function(){return oc(Pa)},useDebugValue:dc,useDeferredValue:function(e,t){var n=Qt();return Nt===null?hc(n,e,t):kh(n,Nt.memoizedState,e,t)},useTransition:function(){var e=oc(Pa)[0],t=Qt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:lh,useId:Lh,useHostTransitionStatus:mc,useFormState:Eh,useActionState:Eh,useOptimistic:function(e,t){var n=Qt();return Nt!==null?fh(n,Nt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:sc,useCacheRefresh:zh};Hh.useEffectEvent=Nh;function yc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vc={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=la(),o=pi(i);o.payload=t,n!=null&&(o.callback=n),t=mi(e,o,i),t!==null&&(Kn(t,e,i),is(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=la(),o=pi(i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=mi(e,o,i),t!==null&&(Kn(t,e,i),is(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=la(),i=pi(n);i.tag=2,t!=null&&(i.callback=t),t=mi(e,i,n),t!==null&&(Kn(t,e,n),is(t,e,n))}};function qh(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 Gh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&vc.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function $h(e){Ws(e)}function Yh(e){console.error(e)}function Fh(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 Ph(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Ec(e,t,n){return n=pi(n),n.tag=3,n.payload={element:null},n.callback=function(){_r(e,t)},n}function Kh(e){return e=pi(e),e.tag=3,e}function Zh(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(){Ph(t,n,i)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Ph(t,n,i),typeof o!="function"&&(_i===null?_i=new Set([this]):_i.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function vv(e,t,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&dl(t,n,o,!0),n=ta.current,n!==null){switch(n.tag){case 31:case 13:return ma===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),Fc(e,i,o)),!1;case 22:return n.flags|=65536,i===or?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Fc(e,i,o)),!1}throw Error(l(435,n.tag))}return Fc(e,i,o),Dr(),!1}if(ot)return t=ta.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Io&&(e=Error(l(422),{cause:i}),Jl(fa(e,n)))):(i!==Io&&(t=Error(l(423),{cause:i}),Jl(fa(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=fa(i,n),o=Ec(e.stateNode,i,o),Vo(e,o),Ft!==4&&(Ft=2)),!1;var c=Error(l(520),{cause:i});if(c=fa(c,n),ys===null?ys=[c]:ys.push(c),Ft!==4&&(Ft=2),t===null)return!0;i=fa(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Ec(n.stateNode,i,e),Vo(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(_i===null||!_i.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Kh(o),Zh(o,e,n,i),Vo(n,o),!1}n=n.return}while(n!==null);return!1}var _c=Error(l(461)),rn=!1;function Tn(e,t,n,i){t.child=e===null?Wd(t,null,n,i):Ki(t,e.child,n,i)}function Xh(e,t,n,i,o){n=n.render;var c=t.ref;if("ref"in i){var h={};for(var E in i)E!=="ref"&&(h[E]=i[E])}else h=i;return $i(t),i=nc(e,t,n,h,c,o),E=ac(),e!==null&&!rn?(ic(e,t,o),Ka(e,t,o)):(ot&&E&&jo(t),t.flags|=1,Tn(e,t,i,o),t.child)}function Vh(e,t,n,i,o){if(e===null){var c=n.type;return typeof c=="function"&&!Lo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Qh(e,t,c,i,o)):(e=nr(n.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Oc(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n: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 Qh(e,t,n,i,o){if(e!==null){var c=e.memoizedProps;if(Vl(c,i)&&e.ref===t.ref)if(rn=!1,t.pendingProps=i=c,Oc(e,o))(e.flags&131072)!==0&&(rn=!0);else return t.lanes=e.lanes,Ka(e,t,o)}return Sc(e,t,n,i,o)}function Wh(e,t,n,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return Jh(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sr(t,c!==null?c.cachePool:null),c!==null?th(t,c):Wo(),nh(t);else return i=t.lanes=536870912,Jh(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(sr(t,c.cachePool),th(t,c),bi(),t.memoizedState=null):(e!==null&&sr(t,null),Wo(),bi());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 Jh(e,t,n,i,o){var c=Po();return c=c===null?null:{parent:ln._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&sr(t,null),Wo(),nh(t),e!==null&&dl(e,t,i,!0),t.childLanes=o,null}function Sr(e,t){return t=wr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ep(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 Ev(e,t,n){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ot){if(i.mode==="hidden")return e=Sr(t,i),t.lanes=536870912,fs(null,e);if(ec(t),(e=Lt)?(e=dm(e,pa),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ci!==null?{id:Ra,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},n=jd(e),n.return=t,t.child=n,Nn=t,Lt=null)):e=null,e===null)throw fi(t);return t.lanes=536870912,null}return Sr(t,i)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(ec(t),o)if(t.flags&256)t.flags&=-257,t=ep(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(rn||dl(e,t,n,!1),o=(n&e.childLanes)!==0,rn||o){if(i=At,i!==null&&(h=Rt(i,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Ii(e,h),Kn(i,e,h),_c;Dr(),t=ep(e,t,n)}else e=c.treeContext,Lt=ga(h.nextSibling),Nn=t,ot=!0,ui=null,pa=!1,e!==null&&Hd(t,e),t=Sr(t,i),t.flags|=4096;return t}return e=qa(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Nr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(l(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Sc(e,t,n,i,o){return $i(t),n=nc(e,t,n,i,void 0,o),i=ac(),e!==null&&!rn?(ic(e,t,o),Ka(e,t,o)):(ot&&i&&jo(t),t.flags|=1,Tn(e,t,n,o),t.child)}function tp(e,t,n,i,o,c){return $i(t),t.updateQueue=null,n=ih(t,i,n,o),ah(e),i=ac(),e!==null&&!rn?(ic(e,t,c),Ka(e,t,c)):(ot&&i&&jo(t),t.flags|=1,Tn(e,t,n,c),t.child)}function np(e,t,n,i,o){if($i(t),t.stateNode===null){var c=ol,h=n.contextType;typeof h=="object"&&h!==null&&(c=wn(h)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=vc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Zo(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?wn(h):ol,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(yc(t,n,h,i),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&vc.enqueueReplaceState(c,c.state,null),ss(t,i,c,o),ls(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,R=Xi(n,E);c.props=R;var G=c.context,ne=n.contextType;h=ol,typeof ne=="object"&&ne!==null&&(h=wn(ne));var oe=n.getDerivedStateFromProps;ne=typeof oe=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,ne||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||G!==h)&&Gh(t,c,i,h),hi=!1;var Y=t.memoizedState;c.state=Y,ss(t,i,c,o),ls(),G=t.memoizedState,E||Y!==G||hi?(typeof oe=="function"&&(yc(t,n,oe,i),G=t.memoizedState),(R=hi||qh(t,n,R,i,Y,G,h))?(ne||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=G),c.props=i,c.state=G,c.context=h,i=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Xo(e,t),h=t.memoizedProps,ne=Xi(n,h),c.props=ne,oe=t.pendingProps,Y=c.context,G=n.contextType,R=ol,typeof G=="object"&&G!==null&&(R=wn(G)),E=n.getDerivedStateFromProps,(G=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==oe||Y!==R)&&Gh(t,c,i,R),hi=!1,Y=t.memoizedState,c.state=Y,ss(t,i,c,o),ls();var V=t.memoizedState;h!==oe||Y!==V||hi||e!==null&&e.dependencies!==null&&ir(e.dependencies)?(typeof E=="function"&&(yc(t,n,E,i),V=t.memoizedState),(ne=hi||qh(t,n,ne,i,Y,V,R)||e!==null&&e.dependencies!==null&&ir(e.dependencies))?(G||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,V,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,V,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=V),c.props=i,c.state=V,c.context=R,i=ne):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&Y===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 ap(e,t,n,i){return qi(),t.flags|=256,Tn(e,t,n,i),t.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wc(e){return{baseLanes:e,cachePool:Pd()}}function Tc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=ia),e}function ip(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:(Vt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(ot){if(o?gi(t):bi(),(e=Lt)?(e=dm(e,pa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ci!==null?{id:Ra,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},n=jd(e),n.return=t,t.child=n,Nn=t,Lt=null)):e=null,e===null)throw fi(t);return ru(e)?t.lanes=32:t.lanes=536870912,null}var E=i.children;return i=i.fallback,o?(bi(),o=t.mode,E=wr({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=wc(n),i.childLanes=Tc(e,h,n),t.memoizedState=Nc,fs(null,i)):(gi(t),xc(t,E))}var R=e.memoizedState;if(R!==null&&(E=R.dehydrated,E!==null)){if(c)t.flags&256?(gi(t),t.flags&=-257,t=Ac(e,t,n)):t.memoizedState!==null?(bi(),t.child=e.child,t.flags|=128,t=null):(bi(),E=i.fallback,o=t.mode,i=wr({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=wc(n),i.childLanes=Tc(e,h,n),t.memoizedState=Nc,t=fs(null,i));else if(gi(t),ru(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var G=h.dgst;h=G,i=Error(l(419)),i.stack="",i.digest=h,Jl({value:i,source:null,stack:null}),t=Ac(e,t,n)}else if(rn||dl(e,t,n,!1),h=(n&e.childLanes)!==0,rn||h){if(h=At,h!==null&&(i=Rt(h,n),i!==0&&i!==R.retryLane))throw R.retryLane=i,Ii(e,i),Kn(h,e,i),_c;su(E)||Dr(),t=Ac(e,t,n)}else su(E)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Lt=ga(E.nextSibling),Nn=t,ot=!0,ui=null,pa=!1,e!==null&&Hd(t,e),t=xc(t,i.children),t.flags|=4096);return t}return o?(bi(),E=i.fallback,o=t.mode,R=e.child,G=R.sibling,i=qa(R,{mode:"hidden",children:i.children}),i.subtreeFlags=R.subtreeFlags&65011712,G!==null?E=qa(G,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=wc(n):(o=E.cachePool,o!==null?(R=ln._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=Pd(),E={baseLanes:E.baseLanes|n,cachePool:o}),i.memoizedState=E,i.childLanes=Tc(e,h,n),t.memoizedState=Nc,fs(e.child,i)):(gi(t),n=e.child,e=n.sibling,n=qa(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=wr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wr(e,t){return e=ea(22,e,null,t),e.lanes=0,e}function Ac(e,t,n){return Ki(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Go(e.return,t,n)}function Rc(e,t,n,i,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function sp(e,t,n){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var h=Vt.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,I(Vt,h),Tn(e,t,i,n),i=ot?Wl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lp(e,n,t);else if(e.tag===19)lp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&dr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Rc(t,!1,o,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&dr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Rc(t,!0,n,null,c,i);break;case"together":Rc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ei|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(dl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=qa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ir(e)))}function _v(e,t,n){switch(t.tag){case 3:Oe(t,t.stateNode.containerInfo),di(t,ln,e.memoizedState.cache),qi();break;case 27:case 5:Ge(t);break;case 4:Oe(t,t.stateNode.containerInfo);break;case 10:di(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ec(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(gi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ip(e,t,n):(gi(t),e=Ka(e,t,n),e!==null?e.sibling:null);gi(t);break;case 19:var o=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(dl(e,t,n,!1),i=(n&t.childLanes)!==0),o){if(i)return sp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),I(Vt,Vt.current),i)break;return null;case 22:return t.lanes=0,Wh(e,t,n,t.pendingProps);case 24:di(t,ln,e.memoizedState.cache)}return Ka(e,t,n)}function rp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)rn=!0;else{if(!Oc(e,n)&&(t.flags&128)===0)return rn=!1,_v(e,t,n);rn=(e.flags&131072)!==0}else rn=!1,ot&&(t.flags&1048576)!==0&&Id(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")Lo(e)?(i=Xi(e,i),t.tag=1,t=np(null,t,e,i,n)):(t.tag=0,t=Sc(null,t,e,i,n));else{if(e!=null){var o=e.$$typeof;if(o===ae){t.tag=11,t=Xh(null,t,e,i,n);break e}else if(o===ie){t.tag=14,t=Vh(null,t,e,i,n);break e}}throw t=Ee(e)||e,Error(l(306,t,""))}}return t;case 0:return Sc(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,o=Xi(i,t.pendingProps),np(e,t,i,o,n);case 3:e:{if(Oe(t,t.stateNode.containerInfo),e===null)throw Error(l(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,Xo(e,t),ss(t,i,null,n);var h=t.memoizedState;if(i=h.cache,di(t,ln,i),i!==c.cache&&$o(t,[ln],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=ap(e,t,i,n);break e}else if(i!==o){o=fa(Error(l(424)),t),Jl(o),t=ap(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(Lt=ga(e.firstChild),Nn=t,ot=!0,ui=null,pa=!0,n=Wd(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=ym(t.type,null,t.pendingProps,null))?t.memoizedState=n:ot||(n=t.type,e=t.pendingProps,i=Hr(de.current).createElement(n),i[Ot]=t,i[en]=e,xn(i,n,e),be(i),t.stateNode=i):t.memoizedState=ym(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ge(t),e===null&&ot&&(i=t.stateNode=mm(t.type,t.pendingProps,de.current),Nn=t,pa=!0,o=Lt,Ti(t.type)?(ou=o,Lt=ga(i.firstChild)):Lt=o),Tn(e,t,t.pendingProps.children,n),Nr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ot&&((o=i=Lt)&&(i=Qv(i,t.type,t.pendingProps,pa),i!==null?(t.stateNode=i,Nn=t,Lt=ga(i.firstChild),pa=!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,au(o,c)?i=null:h!==null&&au(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=nc(e,t,dv,null,null,n),xs._currentValue=o),Nr(e,t),Tn(e,t,i,n),t.child;case 6:return e===null&&ot&&((e=n=Lt)&&(n=Wv(n,t.pendingProps,pa),n!==null?(t.stateNode=n,Nn=t,Lt=null,e=!0):e=!1),e||fi(t)),null;case 13:return ip(e,t,n);case 4:return Oe(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 Xh(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,di(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=wn(o),i=i(o),t.flags|=1,Tn(e,t,i,n),t.child;case 14:return Vh(e,t,t.type,t.pendingProps,n);case 15:return Qh(e,t,t.type,t.pendingProps,n);case 19:return sp(e,t,n);case 31:return Ev(e,t,n);case 22:return Wh(e,t,n,t.pendingProps);case 24:return $i(t),i=wn(ln),e===null?(o=Po(),o===null&&(o=At,c=Yo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:i,cache:o},Zo(t),di(t,ln,o)):((e.lanes&n)!==0&&(Xo(e,t),ss(t,null,null,n),ls()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),di(t,ln,i)):(i=c.cache,di(t,ln,i),i!==o.cache&&$o(t,[ln],n,!0))),Tn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Za(e){e.flags|=4}function kc(e,t,n,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Lp())e.flags|=8192;else throw Pi=or,Ko}else e.flags&=-16777217}function op(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nm(t))if(Lp())e.flags|=8192;else throw Pi=or,Ko}function Tr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ze():536870912,e.lanes|=t,wl|=t)}function ds(e,t){if(!ot)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 zt(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 Sv(e,t,n){var i=t.pendingProps;switch(Bo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(t),null;case 1:return zt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ya(ln),Me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fl(t)?Za(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ho())),zt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Za(t),c!==null?(zt(t),op(t,c)):(zt(t),kc(t,o,null,i,n))):c?c!==e.memoizedState?(Za(t),zt(t),op(t,c)):(zt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Za(t),zt(t),kc(t,o,e,i,n)),null;case 27:if(Fe(t),n=de.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return zt(t),null}e=re.current,fl(t)?qd(t):(e=mm(o,i,n),t.stateNode=e,Za(t))}return zt(t),null;case 5:if(Fe(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return zt(t),null}if(c=re.current,fl(t))qd(t);else{var h=Hr(de.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?h.createElement(o,{is:i.is}):h.createElement(o)}}c[Ot]=t,c[en]=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(xn(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 zt(t),kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(l(166));if(e=de.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[Ot]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||im(e.nodeValue,n)),e||fi(t,!0)}else e=Hr(e).createTextNode(i),e[Ot]=t,t.stateNode=e}return zt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=fl(t),n!==null){if(e===null){if(!i)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Ot]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;zt(t),e=!1}else n=Ho(),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(l(558))}return zt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[Ot]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;zt(t),o=!1}else o=Ho(),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),zt(t),null);case 4:return Me(),e===null&&Wc(t.stateNode.containerInfo),zt(t),null;case 10:return Ya(t.type),zt(t),null;case 19:if(L(Vt),i=t.memoizedState,i===null)return zt(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)ds(i,!1);else{if(Ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=dr(e),c!==null){for(t.flags|=128,ds(i,!1),e=c.updateQueue,t.updateQueue=e,Tr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ud(n,e),n=n.sibling;return I(Vt,Vt.current&1|2),ot&&Ga(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&$e()>kr&&(t.flags|=128,o=!0,ds(i,!1),t.lanes=4194304)}else{if(!o)if(e=dr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Tr(t,e),ds(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!ot)return zt(t),null}else 2*$e()-i.renderingStartTime>kr&&n!==536870912&&(t.flags|=128,o=!0,ds(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=$e(),e.sibling=null,n=Vt.current,I(Vt,o?n&1|2:n&1),ot&&Ga(t,i.treeForkCount),e):(zt(t),null);case 22:case 23:return na(t),Jo(),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&&(zt(t),t.subtreeFlags&6&&(t.flags|=8192)):zt(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&&L(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ya(ln),zt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function Nv(e,t){switch(Bo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ya(ln),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fe(t),null;case 31:if(t.memoizedState!==null){if(na(t),t.alternate===null)throw Error(l(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(na(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Vt),null;case 4:return Me(),null;case 10:return Ya(t.type),null;case 22:case 23:return na(t),Jo(),e!==null&&L(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ya(ln),null;case 25:return null;default:return null}}function cp(e,t){switch(Bo(t),t.tag){case 3:Ya(ln),Me();break;case 26:case 27:case 5:Fe(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&na(t);break;case 13:na(t);break;case 19:L(Vt);break;case 10:Ya(t.type);break;case 22:case 23:na(t),Jo(),e!==null&&L(Yi);break;case 24:Ya(ln)}}function hs(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&e)===e){i=void 0;var c=n.create,h=n.inst;i=c(),h.destroy=i}n=n.next}while(n!==o)}}catch(E){_t(t,t.return,E)}}function yi(e,t,n){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var h=i.inst,E=h.destroy;if(E!==void 0){h.destroy=void 0,o=t;var R=n,G=E;try{G()}catch(ne){_t(o,R,ne)}}}i=i.next}while(i!==c)}}catch(ne){_t(t,t.return,ne)}}function up(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{eh(t,n)}catch(i){_t(e,e.return,i)}}}function fp(e,t,n){n.props=Xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){_t(e,t,i)}}function ps(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(o){_t(e,t,o)}}function ka(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(o){_t(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){_t(e,t,o)}else n.current=null}function dp(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(o){_t(e,e.return,o)}}function Cc(e,t,n){try{var i=e.stateNode;Fv(i,e.type,n,t),i[en]=t}catch(o){_t(e,e.return,o)}}function hp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ti(e.type)||e.tag===4}function Mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hp(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 Dc(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ue));else if(i!==4&&(i===27&&Ti(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Dc(e,t,n),e=e.sibling;e!==null;)Dc(e,t,n),e=e.sibling}function xr(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&Ti(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 pp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);xn(t,i,n),t[Ot]=e,t[en]=n}catch(c){_t(e,e.return,c)}}var Xa=!1,on=!1,Lc=!1,mp=typeof WeakSet=="function"?WeakSet:Set,mn=null;function wv(e,t){if(e=e.containerInfo,tu=Kr,e=Ad(e),Ao(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,E=-1,R=-1,G=0,ne=0,oe=e,Y=null;t:for(;;){for(var V;oe!==n||o!==0&&oe.nodeType!==3||(E=h+o),oe!==c||i!==0&&oe.nodeType!==3||(R=h+i),oe.nodeType===3&&(h+=oe.nodeValue.length),(V=oe.firstChild)!==null;)Y=oe,oe=V;for(;;){if(oe===e)break t;if(Y===n&&++G===o&&(E=h),Y===c&&++ne===i&&(R=h),(V=oe.nextSibling)!==null)break;oe=Y,Y=oe.parentNode}oe=V}n=E===-1||R===-1?null:{start:E,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(nu={focusedElem:e,selectionRange:n},Kr=!1,mn=t;mn!==null;)if(t=mn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mn=e;else for(;mn!==null;){switch(t=mn,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var Ae=Xi(n.type,o);e=i.getSnapshotBeforeUpdate(Ae,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(Be){_t(n,n.return,Be)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)lu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":lu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,mn=e;break}mn=t.return}}function gp(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&&up(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{eh(e,t)}catch(h){_t(n,n.return,h)}}break;case 27:t===null&&i&4&&pp(n);case 26:case 5:Qa(e,n),t===null&&i&4&&dp(n),i&512&&ps(n,n.return);break;case 12:Qa(e,n);break;case 31:Qa(e,n),i&4&&vp(e,n);break;case 13:Qa(e,n),i&4&&Ep(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Dv.bind(null,n),Jv(e,n))));break;case 22:if(i=n.memoizedState!==null||Xa,!i){t=t!==null&&t.memoizedState!==null||on,o=Xa;var c=on;Xa=i,(on=t)&&!c?Wa(e,n,(n.subtreeFlags&8772)!==0):Qa(e,n),Xa=o,on=c}break;case 30:break;default:Qa(e,n)}}function bp(e){var t=e.alternate;t!==null&&(e.alternate=null,bp(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,$n=!1;function Va(e,t,n){for(n=n.child;n!==null;)yp(e,t,n),n=n.sibling}function yp(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(Cn,n)}catch{}switch(n.tag){case 26:on||ka(n,t),Va(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:on||ka(n,t);var i=Bt,o=$n;Ti(n.type)&&(Bt=n.stateNode,$n=!1),Va(e,t,n),Ns(n.stateNode),Bt=i,$n=o;break;case 5:on||ka(n,t);case 6:if(i=Bt,o=$n,Bt=null,Va(e,t,n),Bt=i,$n=o,Bt!==null)if($n)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&&($n?(e=Bt,um(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ml(e)):um(Bt,n.stateNode));break;case 4:i=Bt,o=$n,Bt=n.stateNode.containerInfo,$n=!0,Va(e,t,n),Bt=i,$n=o;break;case 0:case 11:case 14:case 15:yi(2,n,t),on||yi(4,n,t),Va(e,t,n);break;case 1:on||(ka(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&fp(n,t,i)),Va(e,t,n);break;case 21:Va(e,t,n);break;case 22:on=(i=on)||n.memoizedState!==null,Va(e,t,n),on=i;break;default:Va(e,t,n)}}function vp(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 Ep(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 Tv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new mp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new mp),t;default:throw Error(l(435,e.tag))}}function Ar(e,t){var n=Tv(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var o=Lv.bind(null,e,i);i.then(o,o)}})}function Yn(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,$n=!1;break e}break;case 5:Bt=E.stateNode,$n=!1;break e;case 3:case 4:Bt=E.stateNode.containerInfo,$n=!0;break e}E=E.return}if(Bt===null)throw Error(l(160));yp(c,h,o),Bt=null,$n=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_p(t,e),t=t.sibling}var Sa=null;function _p(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yn(t,e),Fn(e),i&4&&(yi(3,e,e.return),hs(3,e),yi(5,e,e.return));break;case 1:Yn(t,e),Fn(e),i&512&&(on||n===null||ka(n,n.return)),i&64&&Xa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var o=Sa;if(Yn(t,e),Fn(e),i&512&&(on||n===null||ka(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Wn]||c[Ot]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),xn(c,i,n),c[Ot]=e,be(c),i=c;break e;case"link":var h=_m("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),xn(c,i,n),o.head.appendChild(c);break;case"meta":if(h=_m("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),xn(c,i,n),o.head.appendChild(c);break;default:throw Error(l(468,i))}c[Ot]=e,be(c),i=c}e.stateNode=i}else Sm(o,e.type,e.stateNode);else e.stateNode=Em(o,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?Sm(o,e.type,e.stateNode):Em(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Cc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Yn(t,e),Fn(e),i&512&&(on||n===null||ka(n,n.return)),n!==null&&i&4&&Cc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Yn(t,e),Fn(e),i&512&&(on||n===null||ka(n,n.return)),e.flags&32){o=e.stateNode;try{Q(o,"")}catch(Ae){_t(e,e.return,Ae)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Cc(e,o,n!==null?n.memoizedProps:o)),i&1024&&(Lc=!0);break;case 6:if(Yn(t,e),Fn(e),i&4){if(e.stateNode===null)throw Error(l(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(Ae){_t(e,e.return,Ae)}}break;case 3:if($r=null,o=Sa,Sa=qr(t.containerInfo),Yn(t,e),Sa=o,Fn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ml(t.containerInfo)}catch(Ae){_t(e,e.return,Ae)}Lc&&(Lc=!1,Sp(e));break;case 4:i=Sa,Sa=qr(e.stateNode.containerInfo),Yn(t,e),Fn(e),Sa=i;break;case 12:Yn(t,e),Fn(e);break;case 31:Yn(t,e),Fn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 13:Yn(t,e),Fn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Or=$e()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 22:o=e.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,G=Xa,ne=on;if(Xa=G||o,on=ne||R,Yn(t,e),on=ne,Xa=G,Fn(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||R||Xa||on||Vi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){R=n=t;try{if(c=R.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=R.stateNode;var oe=R.memoizedProps.style,Y=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;E.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(Ae){_t(R,R.return,Ae)}}}else if(t.tag===6){if(n===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(Ae){_t(R,R.return,Ae)}}}else if(t.tag===18){if(n===null){R=t;try{var V=R.stateNode;o?fm(V,!0):fm(R.stateNode,!1)}catch(Ae){_t(R,R.return,Ae)}}}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:Yn(t,e),Fn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 30:break;case 21:break;default:Yn(t,e),Fn(e)}}function Fn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(hp(i)){n=i;break}i=i.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,c=Mc(e);xr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(Q(h,""),n.flags&=-33);var E=Mc(e);xr(e,E,h);break;case 3:case 4:var R=n.stateNode.containerInfo,G=Mc(e);Dc(e,G,R);break;default:throw Error(l(161))}}catch(ne){_t(e,e.return,ne)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sp(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;)gp(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:yi(4,t,t.return),Vi(t);break;case 1:ka(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&fp(t,t.return,n),Vi(t);break;case 27:Ns(t.stateNode);case 26:case 5:ka(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(G){_t(i,i.return,G)}if(i=c,o=i.updateQueue,o!==null){var E=i.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)Jd(R[o],E)}catch(G){_t(i,i.return,G)}}n&&h&64&&up(c),ps(c,c.return);break;case 27:pp(c);case 26:case 5:Wa(o,c,n),n&&i===null&&h&4&&dp(c),ps(c,c.return);break;case 12:Wa(o,c,n);break;case 31:Wa(o,c,n),n&&h&4&&vp(o,c);break;case 13:Wa(o,c,n),n&&h&4&&Ep(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 zc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&es(n))}function Uc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e))}function Na(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Np(e,t,n,i),t=t.sibling}function Np(e,t,n,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Na(e,t,n,i),o&2048&&hs(9,t);break;case 1:Na(e,t,n,i);break;case 3:Na(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){Na(e,t,n,i),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,E=c.onPostCommit;typeof E=="function"&&E(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){_t(t,t.return,R)}}else Na(e,t,n,i);break;case 31:Na(e,t,n,i);break;case 13:Na(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?Na(e,t,n,i):ms(e,t):c._visibility&2?Na(e,t,n,i):(c._visibility|=2,_l(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&zc(h,t);break;case 24:Na(e,t,n,i),o&2048&&Uc(t.alternate,t);break;default:Na(e,t,n,i)}}function _l(e,t,n,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,E=n,R=i,G=h.flags;switch(h.tag){case 0:case 11:case 15:_l(c,h,E,R,o),hs(8,h);break;case 23:break;case 22:var ne=h.stateNode;h.memoizedState!==null?ne._visibility&2?_l(c,h,E,R,o):ms(c,h):(ne._visibility|=2,_l(c,h,E,R,o)),o&&G&2048&&zc(h.alternate,h);break;case 24:_l(c,h,E,R,o),o&&G&2048&&Uc(h.alternate,h);break;default:_l(c,h,E,R,o)}t=t.sibling}}function ms(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,o=i.flags;switch(i.tag){case 22:ms(n,i),o&2048&&zc(i.alternate,i);break;case 24:ms(n,i),o&2048&&Uc(i.alternate,i);break;default:ms(n,i)}t=t.sibling}}var gs=8192;function Sl(e,t,n){if(e.subtreeFlags&gs)for(e=e.child;e!==null;)wp(e,t,n),e=e.sibling}function wp(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&gs&&e.memoizedState!==null&&fE(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 Tp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];mn=i,Ap(i,e)}Tp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xp(e),e=e.sibling}function xp(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&yi(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rr(e)):bs(e);break;default:bs(e)}}function Rr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];mn=i,Ap(i,e)}Tp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:yi(8,t,t.return),Rr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rr(t));break;default:Rr(t)}e=e.sibling}}function Ap(e,t){for(;mn!==null;){var n=mn;switch(n.tag){case 0:case 11:case 15:yi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:es(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,mn=i;else e:for(n=e;mn!==null;){i=mn;var o=i.sibling,c=i.return;if(bp(i),i===n){mn=null;break e}if(o!==null){o.return=c,mn=o;break e}mn=c}}}var xv={getCacheForType:function(e){var t=wn(ln),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return wn(ln).controller.signal}},Av=typeof WeakMap=="function"?WeakMap:Map,bt=0,At=null,nt=null,st=0,Et=0,aa=null,vi=!1,Nl=!1,jc=!1,Ja=0,Ft=0,Ei=0,Qi=0,Bc=0,ia=0,wl=0,ys=null,Pn=null,Ic=!1,Or=0,Rp=0,kr=1/0,Cr=null,_i=null,hn=0,Si=null,Tl=null,ei=0,Hc=0,qc=null,Op=null,vs=0,Gc=null;function la(){return(bt&2)!==0&&st!==0?st&-st:z.T!==null?Zc():Vn()}function kp(){if(ia===0)if((st&536870912)===0||ot){var e=Gt;Gt<<=1,(Gt&3932160)===0&&(Gt=262144),ia=e}else ia=536870912;return e=ta.current,e!==null&&(e.flags|=32),ia}function Kn(e,t,n){(e===At&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(xl(e,0),Ni(e,st,ia,!1)),lt(e,n),((bt&2)===0||e!==At)&&(e===At&&((bt&2)===0&&(Qi|=n),Ft===4&&Ni(e,st,ia,!1)),Ca(e))}function Cp(e,t,n){if((bt&6)!==0)throw Error(l(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||te(e,t),o=i?kv(e,t):Yc(e,t,!0),c=i;do{if(o===0){Nl&&!i&&Ni(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Rv(n)){o=Yc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var E=e;o=ys;var R=E.current.memoizedState.isDehydrated;if(R&&(xl(E,h).flags|=256),h=Yc(E,h,!1),h!==2){if(jc&&!R){E.errorRecoveryDisabledLanes|=c,Qi|=c,o=4;break e}c=Pn,Pn=o,c!==null&&(Pn===null?Pn=c:Pn.push.apply(Pn,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){xl(e,0),Ni(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Ni(i,t,ia,!vi);break e;case 2:Pn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Or+300-$e(),10<o)){if(Ni(i,t,ia,!vi),A(i,0,!0)!==0)break e;ei=t,i.timeoutHandle=om(Mp.bind(null,i,n,Pn,Cr,Ic,t,ia,Qi,wl,vi,c,"Throttled",-0,0),o);break e}Mp(i,n,Pn,Cr,Ic,t,ia,Qi,wl,vi,c,null,-0,0)}}break}while(!0);Ca(e)}function Mp(e,t,n,i,o,c,h,E,R,G,ne,oe,Y,V){if(e.timeoutHandle=-1,oe=t.subtreeFlags,oe&8192||(oe&16785408)===16785408){oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ue},wp(t,c,oe);var Ae=(c&62914560)===c?Or-$e():(c&4194048)===c?Rp-$e():0;if(Ae=dE(oe,Ae),Ae!==null){ei=c,e.cancelPendingCommit=Ae(Hp.bind(null,e,t,c,n,i,o,h,E,R,ne,oe,null,Y,V)),Ni(e,c,h,!G);return}}Hp(e,t,c,n,i,o,h,E,R)}function Rv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var o=n[i],c=o.getSnapshot;o=o.value;try{if(!Jn(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ni(e,t,n,i){t&=~Bc,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-Dt(o),h=1<<c;i[c]=-1,o&=~h}n!==0&&_e(e,n,t)}function Mr(){return(bt&6)===0?(Es(0),!1):!0}function $c(){if(nt!==null){if(Et===0)var e=nt.return;else e=nt,$a=Gi=null,lc(e),gl=null,ns=0,e=nt;for(;e!==null;)cp(e.alternate,e),e=e.return;nt=null}}function xl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Zv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ei=0,$c(),At=e,nt=n=qa(e.current,null),st=t,Et=0,aa=null,vi=!1,Nl=te(e,t),jc=!1,wl=ia=Bc=Qi=Ei=Ft=0,Pn=ys=null,Ic=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Dt(i),c=1<<o;t|=e[o],i&=~c}return Ja=t,Js(),n}function Dp(e,t){Ke=null,z.H=us,t===ml||t===rr?(t=Xd(),Et=3):t===Ko?(t=Xd(),Et=4):Et=t===_c?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,aa=t,nt===null&&(Ft=1,_r(e,fa(t,e.current)))}function Lp(){var e=ta.current;return e===null?!0:(st&4194048)===st?ma===null:(st&62914560)===st||(st&536870912)!==0?e===ma:!1}function zp(){var e=z.H;return z.H=us,e===null?us:e}function Up(){var e=z.A;return z.A=xv,e}function Dr(){Ft=4,vi||(st&4194048)!==st&&ta.current!==null||(Nl=!0),(Ei&134217727)===0&&(Qi&134217727)===0||At===null||Ni(At,st,ia,!1)}function Yc(e,t,n){var i=bt;bt|=2;var o=zp(),c=Up();(At!==e||st!==t)&&(Cr=null,xl(e,t)),t=!1;var h=Ft;e:do try{if(Et!==0&&nt!==null){var E=nt,R=aa;switch(Et){case 8:$c(),h=6;break e;case 3:case 2:case 9:case 6:ta.current===null&&(t=!0);var G=Et;if(Et=0,aa=null,Al(e,E,R,G),n&&Nl){h=0;break e}break;default:G=Et,Et=0,aa=null,Al(e,E,R,G)}}Ov(),h=Ft;break}catch(ne){Dp(e,ne)}while(!0);return t&&e.shellSuspendCounter++,$a=Gi=null,bt=i,z.H=o,z.A=c,nt===null&&(At=null,st=0,Js()),h}function Ov(){for(;nt!==null;)jp(nt)}function kv(e,t){var n=bt;bt|=2;var i=zp(),o=Up();At!==e||st!==t?(Cr=null,kr=$e()+500,xl(e,t)):Nl=te(e,t);e:do try{if(Et!==0&&nt!==null){t=nt;var c=aa;t:switch(Et){case 1:Et=0,aa=null,Al(e,t,c,1);break;case 2:case 9:if(Kd(c)){Et=0,aa=null,Bp(t);break}t=function(){Et!==2&&Et!==9||At!==e||(Et=7),Ca(e)},c.then(t,t);break e;case 3:Et=7;break e;case 4:Et=5;break e;case 7:Kd(c)?(Et=0,aa=null,Bp(t)):(Et=0,aa=null,Al(e,t,c,7));break;case 5:var h=null;switch(nt.tag){case 26:h=nt.memoizedState;case 5:case 27:var E=nt;if(h?Nm(h):E.stateNode.complete){Et=0,aa=null;var R=E.sibling;if(R!==null)nt=R;else{var G=E.return;G!==null?(nt=G,Lr(G)):nt=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:$c(),Ft=6;break e;default:throw Error(l(462))}}Cv();break}catch(ne){Dp(e,ne)}while(!0);return $a=Gi=null,z.H=i,z.A=o,bt=n,nt!==null?0:(At=null,st=0,Js(),Ft)}function Cv(){for(;nt!==null&&!Hn();)jp(nt)}function jp(e){var t=rp(e.alternate,e,Ja);e.memoizedProps=e.pendingProps,t===null?Lr(e):nt=t}function Bp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=tp(n,t,t.pendingProps,t.type,void 0,st);break;case 11:t=tp(n,t,t.pendingProps,t.type.render,t.ref,st);break;case 5:lc(t);default:cp(n,t),t=nt=Ud(t,Ja),t=rp(n,t,Ja)}e.memoizedProps=e.pendingProps,t===null?Lr(e):nt=t}function Al(e,t,n,i){$a=Gi=null,lc(t),gl=null,ns=0;var o=t.return;try{if(vv(e,o,t,n,st)){Ft=1,_r(e,fa(n,e.current)),nt=null;return}}catch(c){if(o!==null)throw nt=o,c;Ft=1,_r(e,fa(n,e.current)),nt=null;return}t.flags&32768?(ot||i===1?e=!0:Nl||(st&536870912)!==0?e=!1:(vi=e=!0,(i===2||i===9||i===3||i===6)&&(i=ta.current,i!==null&&i.tag===13&&(i.flags|=16384))),Ip(t,e)):Lr(t)}function Lr(e){var t=e;do{if((t.flags&32768)!==0){Ip(t,vi);return}e=t.return;var n=Sv(t.alternate,t,Ja);if(n!==null){nt=n;return}if(t=t.sibling,t!==null){nt=t;return}nt=t=e}while(t!==null);Ft===0&&(Ft=5)}function Ip(e,t){do{var n=Nv(e.alternate,e);if(n!==null){n.flags&=32767,nt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){nt=e;return}nt=e=n}while(e!==null);Ft=6,nt=null}function Hp(e,t,n,i,o,c,h,E,R){e.cancelPendingCommit=null;do zr();while(hn!==0);if((bt&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=Mo,we(e,n,c,h,E,R),e===At&&(nt=At=null,st=0),Tl=t,Si=e,ei=n,Hc=c,qc=o,Op=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,zv(vn,function(){return Fp(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=z.T,z.T=null,o=le.p,le.p=2,h=bt,bt|=4;try{wv(e,t,n)}finally{bt=h,le.p=o,z.T=i}}hn=1,qp(),Gp(),$p()}}function qp(){if(hn===1){hn=0;var e=Si,t=Tl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var i=le.p;le.p=2;var o=bt;bt|=4;try{_p(t,e);var c=nu,h=Ad(e.containerInfo),E=c.focusedElem,R=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&xd(E.ownerDocument.documentElement,E)){if(R!==null&&Ao(E)){var G=R.start,ne=R.end;if(ne===void 0&&(ne=G),"selectionStart"in E)E.selectionStart=G,E.selectionEnd=Math.min(ne,E.value.length);else{var oe=E.ownerDocument||document,Y=oe&&oe.defaultView||window;if(Y.getSelection){var V=Y.getSelection(),Ae=E.textContent.length,Be=Math.min(R.start,Ae),Tt=R.end===void 0?Be:Math.min(R.end,Ae);!V.extend&&Be>Tt&&(h=Tt,Tt=Be,Be=h);var j=Td(E,Be),D=Td(E,Tt);if(j&&D&&(V.rangeCount!==1||V.anchorNode!==j.node||V.anchorOffset!==j.offset||V.focusNode!==D.node||V.focusOffset!==D.offset)){var q=oe.createRange();q.setStart(j.node,j.offset),V.removeAllRanges(),Be>Tt?(V.addRange(q),V.extend(D.node,D.offset)):(q.setEnd(D.node,D.offset),V.addRange(q))}}}}for(oe=[],V=E;V=V.parentNode;)V.nodeType===1&&oe.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<oe.length;E++){var se=oe[E];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}Kr=!!tu,nu=tu=null}finally{bt=o,le.p=i,z.T=n}}e.current=t,hn=2}}function Gp(){if(hn===2){hn=0;var e=Si,t=Tl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var i=le.p;le.p=2;var o=bt;bt|=4;try{gp(e,t.alternate,t)}finally{bt=o,le.p=i,z.T=n}}hn=3}}function $p(){if(hn===4||hn===3){hn=0,Zn();var e=Si,t=Tl,n=ei,i=Op;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?hn=5:(hn=0,Tl=Si=null,Yp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(_i=null),Sn(n),t=t.stateNode,Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(Cn,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=z.T,o=le.p,le.p=2,z.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{z.T=t,le.p=o}}(ei&3)!==0&&zr(),Ca(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Gc?vs++:(vs=0,Gc=e):vs=0,Es(0)}}function Yp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,es(t)))}function zr(){return qp(),Gp(),$p(),Fp()}function Fp(){if(hn!==5)return!1;var e=Si,t=Hc;Hc=0;var n=Sn(ei),i=z.T,o=le.p;try{le.p=32>n?32:n,z.T=null,n=qc,qc=null;var c=Si,h=ei;if(hn=0,Tl=Si=null,ei=0,(bt&6)!==0)throw Error(l(331));var E=bt;if(bt|=4,xp(c.current),Np(c,c.current,h,n),bt=E,Es(0,!1),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(Cn,c)}catch{}return!0}finally{le.p=o,z.T=i,Yp(e,t)}}function Pp(e,t,n){t=fa(n,t),t=Ec(e.stateNode,t,2),e=mi(e,t,2),e!==null&&(lt(e,2),Ca(e))}function _t(e,t,n){if(e.tag===3)Pp(e,e,n);else for(;t!==null;){if(t.tag===3){Pp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(_i===null||!_i.has(i))){e=fa(n,e),n=Kh(2),i=mi(t,n,2),i!==null&&(Zh(n,i,t,e),lt(i,2),Ca(i));break}}t=t.return}}function Fc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Av;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(n)||(jc=!0,o.add(n),e=Mv.bind(null,e,t,n),t.then(e,e))}function Mv(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,At===e&&(st&n)===n&&(Ft===4||Ft===3&&(st&62914560)===st&&300>$e()-Or?(bt&2)===0&&xl(e,0):Bc|=n,wl===st&&(wl=0)),Ca(e)}function Kp(e,t){t===0&&(t=ze()),e=Ii(e,t),e!==null&&(lt(e,t),Ca(e))}function Dv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kp(e,n)}function Lv(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(l(314))}i!==null&&i.delete(t),Kp(e,n)}function zv(e,t){return It(e,t)}var Ur=null,Rl=null,Pc=!1,jr=!1,Kc=!1,wi=0;function Ca(e){e!==Rl&&e.next===null&&(Rl===null?Ur=Rl=e:Rl=Rl.next=e),jr=!0,Pc||(Pc=!0,jv())}function Es(e,t){if(!Kc&&jr){Kc=!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-Dt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Qp(i,c))}else c=st,c=A(i,i===At?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||te(i,c)||(n=!0,Qp(i,c));i=i.next}while(n);Kc=!1}}function Uv(){Zp()}function Zp(){jr=Pc=!1;var e=0;wi!==0&&Kv()&&(e=wi);for(var t=$e(),n=null,i=Ur;i!==null;){var o=i.next,c=Xp(i,t);c===0?(i.next=null,n===null?Ur=o:n.next=o,o===null&&(Rl=n)):(n=i,(e!==0||(c&3)!==0)&&(jr=!0)),i=o}hn!==0&&hn!==5||Es(e),wi!==0&&(wi=0)}function Xp(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Dt(c),E=1<<h,R=o[h];R===-1?((E&n)===0||(E&i)!==0)&&(o[h]=ye(E,t)):R<=t&&(e.expiredLanes|=E),c&=~E}if(t=At,n=st,n=A(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&&ct(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||te(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&ct(i),Sn(n)){case 2:case 8:n=yn;break;case 32:n=vn;break;case 268435456:n=En;break;default:n=vn}return i=Vp.bind(null,e),n=It(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&ct(i),e.callbackPriority=2,e.callbackNode=null,2}function Vp(e,t){if(hn!==0&&hn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zr()&&e.callbackNode!==n)return null;var i=st;return i=A(e,e===At?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Cp(e,i,t),Xp(e,$e()),e.callbackNode!=null&&e.callbackNode===n?Vp.bind(null,e):null)}function Qp(e,t){if(zr())return null;Cp(e,t,!0)}function jv(){Xv(function(){(bt&6)!==0?It(vt,Uv):Zp()})}function Zc(){if(wi===0){var e=hl;e===0&&(e=Ie,Ie<<=1,(Ie&261888)===0&&(Ie=256)),wi=e}return wi}function Wp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:tt(""+e)}function Jp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Bv(e,t,n,i,o){if(t==="submit"&&n&&n.stateNode===o){var c=Wp((o[en]||null).action),h=i.submitter;h&&(t=(t=h[en]||null)?Wp(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(wi!==0){var R=h?Jp(o,h):new FormData(o);pc(n,{pending:!0,data:R,method:o.method,action:c},null,R)}}else typeof c=="function"&&(E.preventDefault(),R=h?Jp(o,h):new FormData(o),pc(n,{pending:!0,data:R,method:o.method,action:c},c,R))},currentTarget:o}]})}}for(var Xc=0;Xc<Co.length;Xc++){var Vc=Co[Xc],Iv=Vc.toLowerCase(),Hv=Vc[0].toUpperCase()+Vc.slice(1);_a(Iv,"on"+Hv)}_a(kd,"onAnimationEnd"),_a(Cd,"onAnimationIteration"),_a(Md,"onAnimationStart"),_a("dblclick","onDoubleClick"),_a("focusin","onFocus"),_a("focusout","onBlur"),_a(nv,"onTransitionRun"),_a(av,"onTransitionStart"),_a(iv,"onTransitionCancel"),_a(Dd,"onTransitionEnd"),fe("onMouseEnter",["mouseout","mouseover"]),fe("onMouseLeave",["mouseout","mouseover"]),fe("onPointerEnter",["pointerout","pointerover"]),fe("onPointerLeave",["pointerout","pointerover"]),$t("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$t("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$t("onBeforeInput",["compositionend","keypress","textInput","paste"]),$t("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$t("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$t("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(" "),qv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_s));function em(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var h=i.length-1;0<=h;h--){var E=i[h],R=E.instance,G=E.currentTarget;if(E=E.listener,R!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=G;try{c(o)}catch(ne){Ws(ne)}o.currentTarget=null,c=R}else for(h=0;h<i.length;h++){if(E=i[h],R=E.instance,G=E.currentTarget,E=E.listener,R!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=G;try{c(o)}catch(ne){Ws(ne)}o.currentTarget=null,c=R}}}}function at(e,t){var n=t[qn];n===void 0&&(n=t[qn]=new Set);var i=e+"__bubble";n.has(i)||(tm(t,e,2,!1),n.add(i))}function Qc(e,t,n){var i=0;t&&(i|=4),tm(n,e,i,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Wc(e){if(!e[Br]){e[Br]=!0,Qe.forEach(function(n){n!=="selectionchange"&&(qv.has(n)||Qc(n,!1,e),Qc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Br]||(t[Br]=!0,Qc("selectionchange",!1,t))}}function tm(e,t,n,i){switch(km(t)){case 2:var o=mE;break;case 8:o=gE;break;default:o=hu}n=o.bind(null,t,n,e),o=void 0,!yo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Jc(e,t,n,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var E=i.stateNode.containerInfo;if(E===o)break;if(h===4)for(h=i.return;h!==null;){var R=h.tag;if((R===3||R===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=tn(E),h===null)return;if(R=h.tag,R===5||R===6||R===26||R===27){i=c=h;continue e}E=E.parentNode}}i=i.return}Fs(function(){var G=c,ne=Le(n),oe=[];e:{var Y=Ld.get(e);if(Y!==void 0){var V=Xs,Ae=e;switch(e){case"keypress":if(Ks(n)===0)break e;case"keydown":case"keyup":V=Ly;break;case"focusin":Ae="focus",V=So;break;case"focusout":Ae="blur",V=So;break;case"beforeblur":case"afterblur":V=So;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=cd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=Sy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=jy;break;case kd:case Cd:case Md:V=Ty;break;case Dd:V=Iy;break;case"scroll":case"scrollend":V=Ey;break;case"wheel":V=qy;break;case"copy":case"cut":case"paste":V=Ay;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=fd;break;case"toggle":case"beforetoggle":V=$y}var Be=(t&4)!==0,Tt=!Be&&(e==="scroll"||e==="scrollend"),j=Be?Y!==null?Y+"Capture":null:Y;Be=[];for(var D=G,q;D!==null;){var se=D;if(q=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||q===null||j===null||(se=$l(D,j),se!=null&&Be.push(Ss(D,se,q))),Tt)break;D=D.return}0<Be.length&&(Y=new V(Y,Ae,null,n,ne),oe.push({event:Y,listeners:Be}))}}if((t&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",Y&&n!==ve&&(Ae=n.relatedTarget||n.fromElement)&&(tn(Ae)||Ae[ut]))break e;if((V||Y)&&(Y=ne.window===ne?ne:(Y=ne.ownerDocument)?Y.defaultView||Y.parentWindow:window,V?(Ae=n.relatedTarget||n.toElement,V=G,Ae=Ae?tn(Ae):null,Ae!==null&&(Tt=d(Ae),Be=Ae.tag,Ae!==Tt||Be!==5&&Be!==27&&Be!==6)&&(Ae=null)):(V=null,Ae=G),V!==Ae)){if(Be=cd,se="onMouseLeave",j="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(Be=fd,se="onPointerLeave",j="onPointerEnter",D="pointer"),Tt=V==null?Y:he(V),q=Ae==null?Y:he(Ae),Y=new Be(se,D+"leave",V,n,ne),Y.target=Tt,Y.relatedTarget=q,se=null,tn(ne)===G&&(Be=new Be(j,D+"enter",Ae,n,ne),Be.target=q,Be.relatedTarget=Tt,se=Be),Tt=se,V&&Ae)t:{for(Be=Gv,j=V,D=Ae,q=0,se=j;se;se=Be(se))q++;se=0;for(var Ue=D;Ue;Ue=Be(Ue))se++;for(;0<q-se;)j=Be(j),q--;for(;0<se-q;)D=Be(D),se--;for(;q--;){if(j===D||D!==null&&j===D.alternate){Be=j;break t}j=Be(j),D=Be(D)}Be=null}else Be=null;V!==null&&nm(oe,Y,V,Be,!1),Ae!==null&&Tt!==null&&nm(oe,Tt,Ae,Be,!0)}}e:{if(Y=G?he(G):window,V=Y.nodeName&&Y.nodeName.toLowerCase(),V==="select"||V==="input"&&Y.type==="file")var pt=vd;else if(bd(Y))if(Ed)pt=Jy;else{pt=Qy;var ke=Vy}else V=Y.nodeName,!V||V.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?G&&Te(G.elementType)&&(pt=vd):pt=Wy;if(pt&&(pt=pt(e,G))){yd(oe,pt,n,ne);break e}ke&&ke(e,Y,G),e==="focusout"&&G&&Y.type==="number"&&G.memoizedProps.value!=null&&ri(Y,"number",Y.value)}switch(ke=G?he(G):window,e){case"focusin":(bd(ke)||ke.contentEditable==="true")&&(ll=ke,Ro=G,Ql=null);break;case"focusout":Ql=Ro=ll=null;break;case"mousedown":Oo=!0;break;case"contextmenu":case"mouseup":case"dragend":Oo=!1,Rd(oe,n,ne);break;case"selectionchange":if(tv)break;case"keydown":case"keyup":Rd(oe,n,ne)}var Xe;if(wo)e:{switch(e){case"compositionstart":var rt="onCompositionStart";break e;case"compositionend":rt="onCompositionEnd";break e;case"compositionupdate":rt="onCompositionUpdate";break e}rt=void 0}else il?md(e,n)&&(rt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(rt="onCompositionStart");rt&&(dd&&n.locale!=="ko"&&(il||rt!=="onCompositionStart"?rt==="onCompositionEnd"&&il&&(Xe=rd()):(oi=ne,vo="value"in oi?oi.value:oi.textContent,il=!0)),ke=Ir(G,rt),0<ke.length&&(rt=new ud(rt,e,null,n,ne),oe.push({event:rt,listeners:ke}),Xe?rt.data=Xe:(Xe=gd(n),Xe!==null&&(rt.data=Xe)))),(Xe=Fy?Py(e,n):Ky(e,n))&&(rt=Ir(G,"onBeforeInput"),0<rt.length&&(ke=new ud("onBeforeInput","beforeinput",null,n,ne),oe.push({event:ke,listeners:rt}),ke.data=Xe)),Bv(oe,e,G,n,ne)}em(oe,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 Gv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function nm(e,t,n,i,o){for(var c=t._reactName,h=[];n!==null&&n!==i;){var E=n,R=E.alternate,G=E.stateNode;if(E=E.tag,R!==null&&R===i)break;E!==5&&E!==26&&E!==27||G===null||(R=G,o?(G=$l(n,c),G!=null&&h.unshift(Ss(n,G,R))):o||(G=$l(n,c),G!=null&&h.push(Ss(n,G,R)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var $v=/\r\n?/g,Yv=/\u0000|\uFFFD/g;function am(e){return(typeof e=="string"?e:""+e).replace($v,`
49
+ `).replace(Yv,"")}function im(e,t){return t=am(t),am(e)===t}function wt(e,t,n,i,o,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Q(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Q(e,""+i);break;case"className":pn(e,"class",i);break;case"tabIndex":pn(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":pn(e,n,i);break;case"style":W(e,i,c);break;case"data":if(t!=="object"){pn(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=tt(""+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"&&wt(e,t,"name",o.name,o,null),wt(e,t,"formEncType",o.formEncType,o,null),wt(e,t,"formMethod",o.formMethod,o,null),wt(e,t,"formTarget",o.formTarget,o,null)):(wt(e,t,"encType",o.encType,o,null),wt(e,t,"method",o.method,o,null),wt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=tt(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=ue);break;case"onScroll":i!=null&&at("scroll",e);break;case"onScrollEnd":i!=null&&at("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=tt(""+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":at("beforetoggle",e),at("toggle",e),nn(e,"popover",i);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":nn(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=Re.get(n)||n,nn(e,n,i))}}function eu(e,t,n,i,o,c){switch(n){case"style":W(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Q(e,i):(typeof i=="number"||typeof i=="bigint")&&Q(e,""+i);break;case"onScroll":i!=null&&at("scroll",e);break;case"onScrollEnd":i!=null&&at("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(!Ht.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[en]||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,""):nn(e,n,i)}}}function xn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",e),at("load",e);var i=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:wt(e,t,c,h,n,null)}}o&&wt(e,t,"srcSet",n.srcSet,n,null),i&&wt(e,t,"src",n.src,n,null);return;case"input":at("invalid",e);var E=c=h=o=null,R=null,G=null;for(i in n)if(n.hasOwnProperty(i)){var ne=n[i];if(ne!=null)switch(i){case"name":o=ne;break;case"type":h=ne;break;case"checked":R=ne;break;case"defaultChecked":G=ne;break;case"value":c=ne;break;case"defaultValue":E=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(l(137,t));break;default:wt(e,t,i,ne,n,null)}}Ba(e,c,E,R,G,h,o,!1);return;case"select":at("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:wt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!i,t!=null?an(e,!!i,t,!1):n!=null&&an(e,!!i,n,!0);return;case"textarea":at("invalid",e),c=o=i=null;for(h in n)if(n.hasOwnProperty(h)&&(E=n[h],E!=null))switch(h){case"value":i=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(l(91));break;default:wt(e,t,h,E,n,null)}Aa(e,i,o,c);return;case"option":for(R in n)if(n.hasOwnProperty(R)&&(i=n[R],i!=null))switch(R){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:wt(e,t,R,i,n,null)}return;case"dialog":at("beforetoggle",e),at("toggle",e),at("cancel",e),at("close",e);break;case"iframe":case"object":at("load",e);break;case"video":case"audio":for(i=0;i<_s.length;i++)at(_s[i],e);break;case"image":at("error",e),at("load",e);break;case"details":at("toggle",e);break;case"embed":case"source":case"link":at("error",e),at("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(G in n)if(n.hasOwnProperty(G)&&(i=n[G],i!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:wt(e,t,G,i,n,null)}return;default:if(Te(t)){for(ne in n)n.hasOwnProperty(ne)&&(i=n[ne],i!==void 0&&eu(e,t,ne,i,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(i=n[E],i!=null&&wt(e,t,E,i,n,null))}function Fv(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,E=null,R=null,G=null,ne=null;for(V in n){var oe=n[V];if(n.hasOwnProperty(V)&&oe!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":R=oe;default:i.hasOwnProperty(V)||wt(e,t,V,null,i,oe)}}for(var Y in i){var V=i[Y];if(oe=n[Y],i.hasOwnProperty(Y)&&(V!=null||oe!=null))switch(Y){case"type":c=V;break;case"name":o=V;break;case"checked":G=V;break;case"defaultChecked":ne=V;break;case"value":h=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(l(137,t));break;default:V!==oe&&wt(e,t,Y,V,i,oe)}}si(e,h,E,R,G,ne,c,o);return;case"select":V=h=E=Y=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":V=R;default:i.hasOwnProperty(c)||wt(e,t,c,null,i,R)}for(o in i)if(c=i[o],R=n[o],i.hasOwnProperty(o)&&(c!=null||R!=null))switch(o){case"value":Y=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==R&&wt(e,t,o,c,i,R)}t=E,n=h,i=V,Y!=null?an(e,!!n,Y,!1):!!i!=!!n&&(t!=null?an(e,!!n,t,!0):an(e,!!n,n?[]:"",!1));return;case"textarea":V=Y=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:wt(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":Y=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&wt(e,t,h,o,i,c)}Ia(e,Y,V);return;case"option":for(var Ae in n)if(Y=n[Ae],n.hasOwnProperty(Ae)&&Y!=null&&!i.hasOwnProperty(Ae))switch(Ae){case"selected":e.selected=!1;break;default:wt(e,t,Ae,null,i,Y)}for(R in i)if(Y=i[R],V=n[R],i.hasOwnProperty(R)&&Y!==V&&(Y!=null||V!=null))switch(R){case"selected":e.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:wt(e,t,R,Y,i,V)}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 Be in n)Y=n[Be],n.hasOwnProperty(Be)&&Y!=null&&!i.hasOwnProperty(Be)&&wt(e,t,Be,null,i,Y);for(G in i)if(Y=i[G],V=n[G],i.hasOwnProperty(G)&&Y!==V&&(Y!=null||V!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(l(137,t));break;default:wt(e,t,G,Y,i,V)}return;default:if(Te(t)){for(var Tt in n)Y=n[Tt],n.hasOwnProperty(Tt)&&Y!==void 0&&!i.hasOwnProperty(Tt)&&eu(e,t,Tt,void 0,i,Y);for(ne in i)Y=i[ne],V=n[ne],!i.hasOwnProperty(ne)||Y===V||Y===void 0&&V===void 0||eu(e,t,ne,Y,i,V);return}}for(var j in n)Y=n[j],n.hasOwnProperty(j)&&Y!=null&&!i.hasOwnProperty(j)&&wt(e,t,j,null,i,Y);for(oe in i)Y=i[oe],V=n[oe],!i.hasOwnProperty(oe)||Y===V||Y==null&&V==null||wt(e,t,oe,Y,i,V)}function lm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Pv(){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&&lm(h)){for(h=0,E=o.responseEnd,i+=1;i<n.length;i++){var R=n[i],G=R.startTime;if(G>E)break;var ne=R.transferSize,oe=R.initiatorType;ne&&lm(oe)&&(R=R.responseEnd,h+=ne*(R<E?1:(E-G)/(R-G)))}if(--i,t+=8*(c+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var tu=null,nu=null;function Hr(e){return e.nodeType===9?e:e.ownerDocument}function sm(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 rm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function au(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var iu=null;function Kv(){var e=window.event;return e&&e.type==="popstate"?e===iu?!1:(iu=e,!0):(iu=null,!1)}var om=typeof setTimeout=="function"?setTimeout:void 0,Zv=typeof clearTimeout=="function"?clearTimeout:void 0,cm=typeof Promise=="function"?Promise:void 0,Xv=typeof queueMicrotask=="function"?queueMicrotask:typeof cm<"u"?function(e){return cm.resolve(null).then(e).catch(Vv)}:om;function Vv(e){setTimeout(function(){throw e})}function Ti(e){return e==="head"}function um(e,t){var n=t,i=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(o),Ml(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ns(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ns(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[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);Ml(t)}function fm(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function lu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":lu(n),Ea(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Qv(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=ga(e.nextSibling),e===null)break}return null}function Wv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ga(e.nextSibling),e===null))return null;return e}function dm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ga(e.nextSibling),e===null))return null;return e}function su(e){return e.data==="$?"||e.data==="$~"}function ru(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Jv(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 ga(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ou=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ga(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function pm(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 mm(e,t,n){switch(t=Hr(n),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Ns(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ea(e)}var ba=new Map,gm=new Set;function qr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ti=le.d;le.d={f:eE,r:tE,D:nE,C:aE,L:iE,m:lE,X:rE,S:sE,M:oE};function eE(){var e=ti.f(),t=Mr();return e||t}function tE(e){var t=H(e);t!==null&&t.tag===5&&t.type==="form"?Dh(t):ti.r(e)}var Ol=typeof document>"u"?null:document;function bm(e,t,n){var i=Ol;if(i&&typeof t=="string"&&t){var o=Dn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),gm.has(o)||(gm.add(o),e={rel:e,crossOrigin:n,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),xn(t,"link",e),be(t),i.head.appendChild(t)))}}function nE(e){ti.D(e),bm("dns-prefetch",e,null)}function aE(e,t){ti.C(e,t),bm("preconnect",e,t)}function iE(e,t,n){ti.L(e,t,n);var i=Ol;if(i&&e&&t){var o='link[rel="preload"][as="'+Dn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Dn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Dn(n.imageSizes)+'"]')):o+='[href="'+Dn(e)+'"]';var c=o;switch(t){case"style":c=kl(e);break;case"script":c=Cl(e)}ba.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ba.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(ws(c))||t==="script"&&i.querySelector(Ts(c))||(t=i.createElement("link"),xn(t,"link",e),be(t),i.head.appendChild(t)))}}function lE(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="'+Dn(i)+'"][href="'+Dn(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Cl(e)}if(!ba.has(c)&&(e=v({rel:"modulepreload",href:e},t),ba.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"),xn(i,"link",e),be(i),n.head.appendChild(i)}}}function sE(e,t,n){ti.S(e,t,n);var i=Ol;if(i&&e){var o=xe(i).hoistableStyles,c=kl(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=i.querySelector(ws(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ba.get(c))&&cu(e,n);var R=h=i.createElement("link");be(R),xn(R,"link",e),R._p=new Promise(function(G,ne){R.onload=G,R.onerror=ne}),R.addEventListener("load",function(){E.loading|=1}),R.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Gr(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function rE(e,t){ti.X(e,t);var n=Ol;if(n&&e){var i=xe(n).hoistableScripts,o=Cl(e),c=i.get(o);c||(c=n.querySelector(Ts(o)),c||(e=v({src:e,async:!0},t),(t=ba.get(o))&&uu(e,t),c=n.createElement("script"),be(c),xn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function oE(e,t){ti.M(e,t);var n=Ol;if(n&&e){var i=xe(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=ba.get(o))&&uu(e,t),c=n.createElement("script"),be(c),xn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function ym(e,t,n,i){var o=(o=de.current)?qr(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=kl(n.href),n=xe(o).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=kl(n.href);var c=xe(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(ws(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ba.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},ba.set(e,n),c||cE(o,e,n,h.state))),t&&i===null)throw Error(l(528,""));return h}if(t&&i!==null)throw Error(l(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Cl(n),n=xe(o).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function kl(e){return'href="'+Dn(e)+'"'}function ws(e){return'link[rel="stylesheet"]['+e+"]"}function vm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function cE(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}),xn(t,"link",n),be(t),e.head.appendChild(t))}function Cl(e){return'[src="'+Dn(e)+'"]'}function Ts(e){return"script[async]"+e}function Em(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Dn(n.href)+'"]');if(i)return t.instance=i,be(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"),be(i),xn(i,"style",o),Gr(i,n.precedence,e),t.instance=i;case"stylesheet":o=kl(n.href);var c=e.querySelector(ws(o));if(c)return t.state.loading|=4,t.instance=c,be(c),c;i=vm(n),(o=ba.get(o))&&cu(i,o),c=(e.ownerDocument||e).createElement("link"),be(c);var h=c;return h._p=new Promise(function(E,R){h.onload=E,h.onerror=R}),xn(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,be(o),o):(i=n,(o=ba.get(c))&&(i=v({},n),uu(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),be(o),xn(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Gr(i,n.precedence,e));return t.instance}function Gr(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,h=0;h<i.length;h++){var E=i[h];if(E.dataset.precedence===t)c=E;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function cu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function uu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $r=null;function _m(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[Ot]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var E=i.get(h);E?E.push(c):i.set(h,[c])}}return i}function Sm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function uE(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 Nm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function fE(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=kl(i.href),c=t.querySelector(ws(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,be(c);return}c=t.ownerDocument||t,i=vm(i),(o=ba.get(o))&&cu(i,o),c=c.createElement("link"),be(c);var h=c;h._p=new Promise(function(E,R){h.onload=E,h.onerror=R}),xn(c,"link",i),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Yr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var fu=0;function dE(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&&fu===0&&(fu=62500*Pv());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>fu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Yr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)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(hE,e),Fr=null,Yr.call(e))}function hE(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:M,Provider:null,Consumer:null,_currentValue:pe,_currentValue2:pe,_threadCount:0};function pE(e,t,n,i,o,c,h,E,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function wm(e,t,n,i,o,c,h,E,R,G,ne,oe){return e=new pE(e,t,n,h,R,G,ne,oe,E),t=1,c===!0&&(t|=24),c=ea(3,null,null,t),e.current=c,c.stateNode=e,t=Yo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Zo(c),e}function Tm(e){return e?(e=ol,e):ol}function xm(e,t,n,i,o,c){o=Tm(o),i.context===null?i.context=o:i.pendingContext=o,i=pi(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=mi(e,i,t),n!==null&&(Kn(n,e,t),is(n,e,t))}function Am(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function du(e,t){Am(e,t),(e=e.alternate)&&Am(e,t)}function Rm(e){if(e.tag===13||e.tag===31){var t=Ii(e,67108864);t!==null&&Kn(t,e,67108864),du(e,67108864)}}function Om(e){if(e.tag===13||e.tag===31){var t=la();t=gt(t);var n=Ii(e,t);n!==null&&Kn(n,e,t),du(e,t)}}var Kr=!0;function mE(e,t,n,i){var o=z.T;z.T=null;var c=le.p;try{le.p=2,hu(e,t,n,i)}finally{le.p=c,z.T=o}}function gE(e,t,n,i){var o=z.T;z.T=null;var c=le.p;try{le.p=8,hu(e,t,n,i)}finally{le.p=c,z.T=o}}function hu(e,t,n,i){if(Kr){var o=pu(i);if(o===null)Jc(e,t,i,Zr,n),Cm(e,i);else if(yE(o,e,t,n,i))i.stopPropagation();else if(Cm(e,i),t&4&&-1<bE.indexOf(e)){for(;o!==null;){var c=H(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=Kt(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var R=1<<31-Dt(h);E.entanglements[1]|=R,h&=~R}Ca(c),(bt&6)===0&&(kr=$e()+500,Es(0))}}break;case 31:case 13:E=Ii(c,2),E!==null&&Kn(E,c,2),Mr(),du(c,2)}if(c=pu(i),c===null&&Jc(e,t,i,Zr,n),c===o)break;o=c}o!==null&&i.stopPropagation()}else Jc(e,t,i,null,n)}}function pu(e){return e=Le(e),mu(e)}var Zr=null;function mu(e){if(Zr=null,e=tn(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zr=e,null}function km(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(Jt()){case vt:return 2;case yn:return 8;case vn:case kn:return 32;case En:return 268435456;default:return 32}default:return 32}}var gu=!1,xi=null,Ai=null,Ri=null,As=new Map,Rs=new Map,Oi=[],bE="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 Cm(e,t){switch(e){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":Ai=null;break;case"mouseover":case"mouseout":Ri=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rs.delete(t.pointerId)}}function Os(e,t,n,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=H(t),t!==null&&Rm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function yE(e,t,n,i,o){switch(t){case"focusin":return xi=Os(xi,e,t,n,i,o),!0;case"dragenter":return Ai=Os(Ai,e,t,n,i,o),!0;case"mouseover":return Ri=Os(Ri,e,t,n,i,o),!0;case"pointerover":var c=o.pointerId;return As.set(c,Os(As.get(c)||null,e,t,n,i,o)),!0;case"gotpointercapture":return c=o.pointerId,Rs.set(c,Os(Rs.get(c)||null,e,t,n,i,o)),!0}return!1}function Mm(e){var t=tn(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,Qn(e.priority,function(){Om(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,Qn(e.priority,function(){Om(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pu(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);ve=i,n.target.dispatchEvent(i),ve=null}else return t=H(n),t!==null&&Rm(t),e.blockedOn=n,!1;t.shift()}return!0}function Dm(e,t,n){Xr(e)&&n.delete(t)}function vE(){gu=!1,xi!==null&&Xr(xi)&&(xi=null),Ai!==null&&Xr(Ai)&&(Ai=null),Ri!==null&&Xr(Ri)&&(Ri=null),As.forEach(Dm),Rs.forEach(Dm)}function Vr(e,t){e.blockedOn===t&&(e.blockedOn=null,gu||(gu=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,vE)))}var Qr=null;function Lm(e){Qr!==e&&(Qr=e,s.unstable_scheduleCallback(s.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(mu(i||n)===null)continue;break}var c=H(n);c!==null&&(e.splice(t,3),t-=3,pc(c,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function Ml(e){function t(R){return Vr(R,e)}xi!==null&&Vr(xi,e),Ai!==null&&Vr(Ai,e),Ri!==null&&Vr(Ri,e),As.forEach(t),Rs.forEach(t);for(var n=0;n<Oi.length;n++){var i=Oi[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Oi.length&&(n=Oi[0],n.blockedOn===null);)Mm(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[en]||null;if(typeof c=="function")h||Lm(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[en]||null)E=h.formAction;else if(mu(o)!==null)continue}else E=h.action;typeof E=="function"?n[i+1]=E:(n.splice(i,3),i-=3),Lm(n)}}}function zm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function bu(e){this._internalRoot=e}Wr.prototype.render=bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,i=la();xm(n,i,e,t,null,null)},Wr.prototype.unmount=bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xm(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=Vn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Oi.length&&t!==0&&t<Oi[n].priority;n++);Oi.splice(n,0,e),n===0&&Mm(e)}};var Um=a.version;if(Um!=="19.2.8")throw Error(l(527,Um,"19.2.8"));le.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var EE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jr.isDisabled&&Jr.supportsFiber)try{Cn=Jr.inject(EE),Ut=Jr}catch{}}return Cs.createRoot=function(e,t){if(!u(e))throw Error(l(299));var n=!1,i="",o=$h,c=Yh,h=Fh;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=wm(e,1,!1,null,null,n,i,null,o,c,h,zm),e[ut]=t.current,Wc(e),new bu(t)},Cs.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var i=!1,o="",c=$h,h=Yh,E=Fh,R=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),t=wm(e,1,!0,t,n??null,i,o,R,c,h,E,zm),t.context=Tm(null),n=t.current,i=la(),i=gt(i),o=pi(i),o.callback=null,mi(n,o,i),n=i,t.current.lanes=n,lt(t,n),Ca(t),e[ut]=t.current,Wc(e),new Wr(t)},Cs.version="19.2.8",Cs}var Pm;function ME(){if(Pm)return Eu.exports;Pm=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(a){console.error(a)}}return s(),Eu.exports=CE(),Eu.exports}var DE=ME(),cn;(function(s){s.INSERT="insert",s.DELETE="delete",s.CONTEXT="context"})(cn||(cn={}));const LE={LINE_BY_LINE:"line-by-line"},zE={NONE:"none"},UE={WORD:"word"};var Bl;(function(s){s.AUTO="auto",s.DARK="dark",s.LIGHT="light"})(Bl||(Bl={}));const jE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],BE=RegExp("["+jE.join("\\")+"]","g");function IE(s){return s.replace(BE,"\\$&")}function Km(s){return s&&s.replace(/\\/g,"/")}function HE(s){let a,r,l,u=0;for(a=0,l=s.length;a<l;a++)r=s.charCodeAt(a),u=(u<<5)-u+r,u|=0;return u}function Ob(s){const a=s.length;let r=-1/0;for(let l=0;l<a;l++)r=Math.max(r,s[l]);return r}function Zm(s,a){const r=s.split(".");return r.length>1?r[r.length-1]:a}function Xm(s,a){return a.reduce((r,l)=>r||s.startsWith(l),!1)}const Vm=["a/","b/","i/","w/","c/","o/"];function Di(s,a,r){const l=r!==void 0?[...Vm,r]:Vm,u=a?new RegExp(`^${IE(a)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,d=""]=u.exec(s)||[],p=l.find(g=>d.indexOf(g)===0);return(p?d.slice(p.length):d).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function qE(s,a){return Di(s,"---",a)}function GE(s,a){return Di(s,"+++",a)}function $E(s,a={}){const r=[];let l=null,u=null,d=null,p=null,y=null,g=null,m=null;const b="--- ",v="+++ ",S="@@",w=/^old mode (\d{6})/,T=/^new mode (\d{6})/,O=/^deleted file mode (\d{6})/,x=/^new file mode (\d{6})/,k=/^copy from "?(.+)"?/,B=/^copy to "?(.+)"?/,M=/^rename from "?(.+)"?/,ae=/^rename to "?(.+)"?/,$=/^similarity index (\d+)%/,X=/^dissimilarity index (\d+)%/,ie=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,C=/^Binary files (.*) and (.*) differ/,P=/^GIT binary patch/,ee=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,Z=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,me=/^new file mode (\d{6})/,ce=/^deleted file mode (\d{6}),(\d{6})/,Ee=s.replace(/\/g,"").replace(/\r\n?/g,`
50
+ `).split(`
51
+ `);function J(){u!==null&&l!==null&&(l.blocks.push(u),u=null)}function z(){l!==null&&(!l.oldName&&g!==null&&(l.oldName=g),!l.newName&&m!==null&&(l.newName=m),l.newName&&(r.push(l),l=null)),g=null,m=null}function le(){J(),z(),l={blocks:[],deletedLines:0,addedLines:0}}function pe(_){J();let L;l!==null&&((L=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(_))?(l.isCombined=!1,d=parseInt(L[1],10),y=parseInt(L[2],10)):(L=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(_))?(l.isCombined=!0,d=parseInt(L[1],10),p=parseInt(L[2],10),y=parseInt(L[3],10)):(_.startsWith(S)&&console.error("Failed to parse lines, starting in 0!"),d=0,y=0,l.isCombined=!1)),u={lines:[],oldStartLine:d,oldStartLine2:p,newStartLine:y,header:_}}function Se(_){if(l===null||u===null||d===null||y===null)return;const L={content:_},I=l.isCombined?["+ "," +","++"]:["+"],re=l.isCombined?["- "," -","--"]:["-"];Xm(_,I)?(l.addedLines++,L.type=cn.INSERT,L.oldNumber=void 0,L.newNumber=y++):Xm(_,re)?(l.deletedLines++,L.type=cn.DELETE,L.oldNumber=d++,L.newNumber=void 0):(L.type=cn.CONTEXT,L.oldNumber=d++,L.newNumber=y++),u.lines.push(L)}function De(_,L){let I=L;for(;I<Ee.length-3;){if(_.startsWith("diff"))return!1;if(Ee[I].startsWith(b)&&Ee[I+1].startsWith(v)&&Ee[I+2].startsWith(S))return!0;I++}return!1}return Ee.forEach((_,L)=>{if(!_||_.startsWith("*"))return;let I;const re=Ee[L-1],K=Ee[L+1],de=Ee[L+2];if(_.startsWith("diff --git")||_.startsWith("diff --combined")){if(le(),(I=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(_))&&(g=Di(I[1],void 0,a.dstPrefix),m=Di(I[2],void 0,a.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isGitDiff=!0;return}if(_.startsWith("Binary files")&&!(l!=null&&l.isGitDiff)){if(le(),(I=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(_))&&(g=Di(I[1],void 0,a.dstPrefix),m=Di(I[2],void 0,a.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isBinary=!0;return}if((!l||!l.isGitDiff&&l&&_.startsWith(b)&&K.startsWith(v)&&de.startsWith(S))&&le(),l!=null&&l.isTooBig)return;if(l&&(typeof a.diffMaxChanges=="number"&&l.addedLines+l.deletedLines>a.diffMaxChanges||typeof a.diffMaxLineLength=="number"&&_.length>a.diffMaxLineLength)){l.isTooBig=!0,l.addedLines=0,l.deletedLines=0,l.blocks=[],u=null;const Oe=typeof a.diffTooBigMessage=="function"?a.diffTooBigMessage(r.length):"Diff too big to be displayed";pe(Oe);return}if(_.startsWith(b)&&K.startsWith(v)||_.startsWith(v)&&re.startsWith(b)){if(l&&!l.oldName&&_.startsWith("--- ")&&(I=qE(_,a.srcPrefix))){l.oldName=I,l.language=Zm(l.oldName,l.language);return}if(l&&!l.newName&&_.startsWith("+++ ")&&(I=GE(_,a.dstPrefix))){l.newName=I,l.language=Zm(l.newName,l.language);return}}if(l&&(_.startsWith(S)||l.isGitDiff&&l.oldName&&l.newName&&!u)){pe(_);return}if(u&&(_.startsWith("+")||_.startsWith("-")||_.startsWith(" "))){Se(_);return}const ge=!De(_,L);if(l===null)throw new Error("Where is my file !!!");(I=w.exec(_))?l.oldMode=I[1]:(I=T.exec(_))?l.newMode=I[1]:(I=O.exec(_))?(l.deletedFileMode=I[1],l.isDeleted=!0):(I=x.exec(_))?(l.newFileMode=I[1],l.isNew=!0):(I=k.exec(_))?(ge&&(l.oldName=I[1]),l.isCopy=!0):(I=B.exec(_))?(ge&&(l.newName=I[1]),l.isCopy=!0):(I=M.exec(_))?(ge&&(l.oldName=I[1]),l.isRename=!0):(I=ae.exec(_))?(ge&&(l.newName=I[1]),l.isRename=!0):(I=C.exec(_))?(l.isBinary=!0,l.oldName=Di(I[1],void 0,a.srcPrefix),l.newName=Di(I[2],void 0,a.dstPrefix),pe("Binary file")):P.test(_)?(l.isBinary=!0,pe(_)):(I=$.exec(_))?l.unchangedPercentage=parseInt(I[1],10):(I=X.exec(_))?l.changedPercentage=parseInt(I[1],10):(I=ie.exec(_))?(l.checksumBefore=I[1],l.checksumAfter=I[2],I[3]&&(l.mode=I[3])):(I=ee.exec(_))?(l.checksumBefore=[I[2],I[3]],l.checksumAfter=I[1]):(I=Z.exec(_))?(l.oldMode=[I[2],I[3]],l.newMode=I[1]):(I=me.exec(_))?(l.newFileMode=I[1],l.isNew=!0):(I=ce.exec(_))&&(l.deletedFileMode=I[1],l.isDeleted=!0)}),J(),z(),r}class kb{diff(a,r,l={}){let u;typeof l=="function"?(u=l,l={}):"callback"in l&&(u=l.callback);const d=this.castInput(a,l),p=this.castInput(r,l),y=this.removeEmpty(this.tokenize(d,l)),g=this.removeEmpty(this.tokenize(p,l));return this.diffWithOptionsObj(y,g,l,u)}diffWithOptionsObj(a,r,l,u){var d;const p=B=>{if(B=this.postProcess(B,l),u){setTimeout(function(){u(B)},0);return}else return B},y=r.length,g=a.length;let m=1,b=y+g;l.maxEditLength!=null&&(b=Math.min(b,l.maxEditLength));const v=(d=l.timeout)!==null&&d!==void 0?d:1/0,S=Date.now()+v,w=[{oldPos:-1,lastComponent:void 0}];let T=this.extractCommon(w[0],r,a,0,l);if(w[0].oldPos+1>=g&&T+1>=y)return p(this.buildValues(w[0].lastComponent,r,a));let O=-1/0,x=1/0;const k=()=>{for(let B=Math.max(O,-m);B<=Math.min(x,m);B+=2){let M;const ae=w[B-1],$=w[B+1];ae&&(w[B-1]=void 0);let X=!1;if($){const C=$.oldPos-B;X=$&&0<=C&&C<y}const ie=ae&&ae.oldPos+1<g;if(!X&&!ie){w[B]=void 0;continue}if(!ie||X&&ae.oldPos<$.oldPos?M=this.addToPath($,!0,!1,0,l):M=this.addToPath(ae,!1,!0,1,l),T=this.extractCommon(M,r,a,B,l),M.oldPos+1>=g&&T+1>=y)return p(this.buildValues(M.lastComponent,r,a))||!0;w[B]=M,M.oldPos+1>=g&&(x=Math.min(x,B-1)),T+1>=y&&(O=Math.max(O,B+1))}m++};if(u)(function B(){setTimeout(function(){if(m>b||Date.now()>S)return u(void 0);k()||B()},0)})();else for(;m<=b&&Date.now()<=S;){const B=k();if(B)return B}}addToPath(a,r,l,u,d){const p=a.lastComponent;return p&&!d.oneChangePerToken&&p.added===r&&p.removed===l?{oldPos:a.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:l,previousComponent:p.previousComponent}}:{oldPos:a.oldPos+u,lastComponent:{count:1,added:r,removed:l,previousComponent:p}}}extractCommon(a,r,l,u,d){const p=r.length,y=l.length;let g=a.oldPos,m=g-u,b=0;for(;m+1<p&&g+1<y&&this.equals(l[g+1],r[m+1],d);)m++,g++,b++,d.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return b&&!d.oneChangePerToken&&(a.lastComponent={count:b,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=g,m}equals(a,r,l){return l.comparator?l.comparator(a,r):a===r||!!l.ignoreCase&&a.toLowerCase()===r.toLowerCase()}removeEmpty(a){const r=[];for(let l=0;l<a.length;l++)a[l]&&r.push(a[l]);return r}castInput(a,r){return a}tokenize(a,r){return Array.from(a)}join(a){return a.join("")}postProcess(a,r){return a}get useLongestToken(){return!1}buildValues(a,r,l){const u=[];let d;for(;a;)u.push(a),d=a.previousComponent,delete a.previousComponent,a=d;u.reverse();const p=u.length;let y=0,g=0,m=0;for(;y<p;y++){const b=u[y];if(b.removed)b.value=this.join(l.slice(m,m+b.count)),m+=b.count;else{if(!b.added&&this.useLongestToken){let v=r.slice(g,g+b.count);v=v.map(function(S,w){const T=l[m+w];return T.length>S.length?T: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 YE extends kb{}const FE=new YE;function PE(s,a,r){return FE.diff(s,a,r)}const Qm="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class KE extends kb{tokenize(a){const r=new RegExp(`(\\r?\\n)|[${Qm}]+|[^\\S\\n\\r]+|[^${Qm}]`,"ug");return a.match(r)||[]}}const ZE=new KE;function XE(s,a,r){return ZE.diff(s,a,r)}function VE(s,a){if(s.length===0)return a.length;if(a.length===0)return s.length;const r=[];let l;for(l=0;l<=a.length;l++)r[l]=[l];let u;for(u=0;u<=s.length;u++)r[0][u]=u;for(l=1;l<=a.length;l++)for(u=1;u<=s.length;u++)a.charAt(l-1)===s.charAt(u-1)?r[l][u]=r[l-1][u-1]:r[l][u]=Math.min(r[l-1][u-1]+1,Math.min(r[l][u-1]+1,r[l-1][u]+1));return r[a.length][s.length]}function Gf(s){return(a,r)=>{const l=s(a).trim(),u=s(r).trim();return VE(l,u)/(l.length+u.length)}}function $f(s){function a(l,u,d=new Map){let p=1/0,y;for(let g=0;g<l.length;++g)for(let m=0;m<u.length;++m){const b=JSON.stringify([l[g],u[m]]);let v;d.has(b)&&(v=d.get(b))||(v=s(l[g],u[m]),d.set(b,v)),v<p&&(p=v,y={indexA:g,indexB:m,score:p})}return y}function r(l,u,d=0,p=new Map){const y=a(l,u,p);if(!y||l.length+u.length<3)return[[l,u]];const g=l.slice(0,y.indexA),m=u.slice(0,y.indexB),b=[l[y.indexA]],v=[u[y.indexB]],S=y.indexA+1,w=y.indexB+1,T=l.slice(S),O=u.slice(w),x=r(g,m,d+1,p),k=r(b,v,d+1,p),B=r(T,O,d+1,p);let M=k;return(y.indexA>0||y.indexB>0)&&(M=x.concat(M)),(l.length>S||u.length>w)&&(M=M.concat(B)),M}return r}const Bn={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},mo={matching:zE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:UE.WORD,colorScheme:Bl.LIGHT},Ma="/",Cb=Gf(s=>s.value),QE=$f(Cb);function wu(s){return s.indexOf("dev/null")!==-1}function WE(s){return s.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function JE(s){return s.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function oo(s){switch(s){case cn.CONTEXT:return Bn.CONTEXT;case cn.INSERT:return Bn.INSERTS;case cn.DELETE:return Bn.DELETES}}function Yf(s){switch(s){case Bl.DARK:return"d2h-dark-color-scheme";case Bl.AUTO:return"d2h-auto-color-scheme";case Bl.LIGHT:default:return"d2h-light-color-scheme"}}function e_(s){return s?2:1}function Il(s){return s.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function La(s,a,r=!0){const l=e_(a);return{prefix:s.substring(0,l),content:r?Il(s.substring(l)):s.substring(l)}}function go(s){const a=Km(s.oldName),r=Km(s.newName);if(a!==r&&!wu(a)&&!wu(r)){const l=[],u=[],d=a.split(Ma),p=r.split(Ma),y=d.length,g=p.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&d[m]===p[m];)l.push(p[m]),m+=1;for(;b>m&&v>m&&d[b]===p[v];)u.unshift(p[v]),b-=1,v-=1;const S=l.join(Ma),w=u.join(Ma),T=d.slice(m,b+1).join(Ma),O=p.slice(m,v+1).join(Ma);return S.length&&w.length?S+Ma+"{"+T+" → "+O+"}"+Ma+w:S.length?S+Ma+"{"+T+" → "+O+"}":w.length?"{"+T+" → "+O+"}"+Ma+w:a+" → "+r}else return wu(r)?a:r}function Ff(s){return`d2h-${HE(go(s)).toString().slice(-6)}`}function Pf(s){let a="file-changed";return s.isRename||s.isCopy?a="file-renamed":s.isNew?a="file-added":s.isDeleted?a="file-deleted":s.newName!==s.oldName&&(a="file-renamed"),a}function Mb(s,a,r,l={}){const{matching:u,maxLineLengthHighlight:d,matchWordsThreshold:p,diffStyle:y}=Object.assign(Object.assign({},mo),l),g=La(s,r,!1),m=La(a,r,!1);if(g.content.length>d||m.content.length>d)return{oldLine:{prefix:g.prefix,content:Il(g.content)},newLine:{prefix:m.prefix,content:Il(m.content)}};const b=y==="char"?PE(g.content,m.content):XE(g.content,m.content),v=[];if(y==="word"&&u==="words"){const w=b.filter(x=>x.removed),T=b.filter(x=>x.added);QE(T,w).forEach(x=>{x[0].length===1&&x[1].length===1&&Cb(x[0][0],x[1][0])<p&&(v.push(x[0][0]),v.push(x[1][0]))})}const S=b.reduce((w,T)=>{const O=T.added?"ins":T.removed?"del":null,x=v.indexOf(T)>-1?' class="d2h-change"':"",k=Il(T.value);return O!==null?`${w}<${O}${x}>${k}</${O}>`:`${w}${k}`},"");return{oldLine:{prefix:g.prefix,content:WE(S)},newLine:{prefix:m.prefix,content:JE(S)}}}const Wm="file-summary",t_="icon",n_={colorScheme:mo.colorScheme};class a_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},n_),r)}render(a){const r=a.map(l=>this.hoganUtils.render(Wm,"line",{fileHtmlId:Ff(l),oldName:l.oldName,newName:l.newName,fileName:go(l),deletedLines:"-"+l.deletedLines,addedLines:"+"+l.addedLines},{fileIcon:this.hoganUtils.template(t_,Pf(l))})).join(`
52
+ `);return this.hoganUtils.render(Wm,"wrapper",{colorScheme:Yf(this.config.colorScheme),filesNumber:a.length,files:r})}}const Db=Object.assign(Object.assign({},mo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ms="generic",Jm="line-by-line",i_="icon",l_="tag";class s_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Db),r)}render(a){const r=a.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
53
+ `);return this.hoganUtils.render(Ms,"wrapper",{colorScheme:Yf(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const l=this.hoganUtils.template(Jm,"file-diff"),u=this.hoganUtils.template(Ms,"file-path"),d=this.hoganUtils.template(i_,"file"),p=this.hoganUtils.template(l_,Pf(a));return l.render({file:a,fileHtmlId:Ff(a),diffs:r,filePath:u.render({fileDiffName:go(a)},{fileIcon:d,fileTag:p})})}generateEmptyDiff(){return this.hoganUtils.render(Ms,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Bn})}generateFileHtml(a){const r=$f(Gf(l=>La(l.content,a.isCombined).content));return a.blocks.map(l=>{let u=this.hoganUtils.render(Ms,"block-header",{CSSLineClass:Bn,blockHeader:a.isTooBig?l.header:Il(l.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(l).forEach(([d,p,y])=>{if(p.length&&y.length&&!d.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a,a.isCombined,g,m);u+=b,u+=v});else if(d.length)d.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined);u+=this.generateSingleLineHtml(a,{type:Bn.CONTEXT,prefix:m,content:b,oldNumber:g.oldNumber,newNumber:g.newNumber})});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(a,a.isCombined,p,y);u+=g,u+=m}else console.error("Unknown state reached while processing groups of lines",d,p,y)}),u}).join(`
54
+ `)}applyLineGroupping(a){const r=[];let l=[],u=[];for(let d=0;d<a.lines.length;d++){const p=a.lines[d];(p.type!==cn.INSERT&&u.length||p.type===cn.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),p.type===cn.CONTEXT?r.push([[p],[],[]]):p.type===cn.INSERT&&l.length===0?r.push([[],[],[p]]):p.type===cn.INSERT&&l.length>0?u.push(p):p.type===cn.DELETE&&l.push(p)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(a,r,l){const u=a.length*r.length,d=Ob(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(a,r):[[a,r]]}processChangedLines(a,r,l,u){const d={right:"",left:""},p=Math.max(l.length,u.length);for(let y=0;y<p;y++){const g=l[y],m=u[y],b=g!==void 0&&m!==void 0?Mb(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:Bn.DELETE_CHANGES}:Object.assign(Object.assign({},La(g.content,r)),{type:oo(g.type)})),{oldNumber:g.oldNumber,newNumber:g.newNumber}):void 0,S=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.newLine.prefix,content:b.newLine.content,type:Bn.INSERT_CHANGES}:Object.assign(Object.assign({},La(m.content,r)),{type:oo(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:w,right:T}=this.generateLineHtml(a,v,S);d.left+=w,d.right+=T}return d}generateLineHtml(a,r,l){return{left:this.generateSingleLineHtml(a,r),right:this.generateSingleLineHtml(a,l)}}generateSingleLineHtml(a,r){if(r===void 0)return"";const l=this.hoganUtils.render(Jm,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Ms,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?"&nbsp;":r.prefix,content:r.content,lineNumber:l,line:r,file:a})}}const Lb=Object.assign(Object.assign({},mo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ds="generic",r_="side-by-side",o_="icon",c_="tag";class u_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Lb),r)}render(a){const r=a.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
55
+ `);return this.hoganUtils.render(Ds,"wrapper",{colorScheme:Yf(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const l=this.hoganUtils.template(r_,"file-diff"),u=this.hoganUtils.template(Ds,"file-path"),d=this.hoganUtils.template(o_,"file"),p=this.hoganUtils.template(c_,Pf(a));return l.render({file:a,fileHtmlId:Ff(a),diffs:r,filePath:u.render({fileDiffName:go(a)},{fileIcon:d,fileTag:p})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Ds,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Bn})}}generateFileHtml(a){const r=$f(Gf(l=>La(l.content,a.isCombined).content));return a.blocks.map(l=>{const u={left:this.makeHeaderHtml(l.header,a),right:this.makeHeaderHtml("")};return this.applyLineGroupping(l).forEach(([d,p,y])=>{if(p.length&&y.length&&!d.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a.isCombined,g,m);u.left+=b,u.right+=v});else if(d.length)d.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined),{left:v,right:S}=this.generateLineHtml({type:Bn.CONTEXT,prefix:m,content:b,number:g.oldNumber},{type:Bn.CONTEXT,prefix:m,content:b,number:g.newNumber});u.left+=v,u.right+=S});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(a.isCombined,p,y);u.left+=g,u.right+=m}else console.error("Unknown state reached while processing groups of lines",d,p,y)}),u}).reduce((l,u)=>({left:l.left+u.left,right:l.right+u.right}),{left:"",right:""})}applyLineGroupping(a){const r=[];let l=[],u=[];for(let d=0;d<a.lines.length;d++){const p=a.lines[d];(p.type!==cn.INSERT&&u.length||p.type===cn.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),p.type===cn.CONTEXT?r.push([[p],[],[]]):p.type===cn.INSERT&&l.length===0?r.push([[],[],[p]]):p.type===cn.INSERT&&l.length>0?u.push(p):p.type===cn.DELETE&&l.push(p)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(a,r,l){const u=a.length*r.length,d=Ob(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(a,r):[[a,r]]}makeHeaderHtml(a,r){return this.hoganUtils.render(Ds,"block-header",{CSSLineClass:Bn,blockHeader:r!=null&&r.isTooBig?a:Il(a),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(a,r,l){const u={right:"",left:""},d=Math.max(r.length,l.length);for(let p=0;p<d;p++){const y=r[p],g=l[p],m=y!==void 0&&g!==void 0?Mb(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:Bn.DELETE_CHANGES}:Object.assign(Object.assign({},La(y.content,a)),{type:oo(y.type)})),{number:y.oldNumber}):void 0,v=g!==void 0&&g.newNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.newLine.prefix,content:m.newLine.content,type:Bn.INSERT_CHANGES}:Object.assign(Object.assign({},La(g.content,a)),{type:oo(g.type)})),{number:g.newNumber}):void 0,{left:S,right:w}=this.generateLineHtml(b,v);u.left+=S,u.right+=w}return u}generateLineHtml(a,r){return{left:this.generateSingleHtml(a),right:this.generateSingleHtml(r)}}generateSingleHtml(a){const r="d2h-code-side-linenumber",l="d2h-code-side-line";return this.hoganUtils.render(Ds,"line",{type:(a==null?void 0:a.type)||`${Bn.CONTEXT} d2h-emptyplaceholder`,lineClass:a!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:a!==void 0?l:`${l} d2h-code-side-emptyplaceholder`,prefix:(a==null?void 0:a.prefix)===" "?"&nbsp;":a==null?void 0:a.prefix,content:a==null?void 0:a.content,lineNumber:a==null?void 0:a.number})}}var Tu={},eg;function f_(){return eg||(eg=1,(function(s){(function(a){var r=/\S/,l=/\"/g,u=/\n/g,d=/\r/g,p=/\\/g,y=/\u2028/,g=/\u2029/;a.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},a.scan=function(P,ee){var Z=P.length,me=0,ce=1,Ee=2,J=me,z=null,le=null,pe="",Se=[],De=!1,_=0,L=0,I="{{",re="}}";function K(){pe.length>0&&(Se.push({tag:"_t",text:new String(pe)}),pe="")}function de(){for(var Me=!0,Ge=L;Ge<Se.length;Ge++)if(Me=a.tags[Se[Ge].tag]<a.tags._v||Se[Ge].tag=="_t"&&Se[Ge].text.match(r)===null,!Me)return!1;return Me}function ge(Me,Ge){if(K(),Me&&de())for(var Fe=L,Ce;Fe<Se.length;Fe++)Se[Fe].text&&((Ce=Se[Fe+1])&&Ce.tag==">"&&(Ce.indent=Se[Fe].text.toString()),Se.splice(Fe,1));else Ge||Se.push({tag:`
56
+ `});De=!1,L=Se.length}function Oe(Me,Ge){var Fe="="+re,Ce=Me.indexOf(Fe,Ge),Ct=b(Me.substring(Me.indexOf("=",Ge)+1,Ce)).split(" ");return I=Ct[0],re=Ct[Ct.length-1],Ce+Fe.length-1}for(ee&&(ee=ee.split(" "),I=ee[0],re=ee[1]),_=0;_<Z;_++)J==me?v(I,P,_)?(--_,K(),J=ce):P.charAt(_)==`
57
+ `?ge(De):pe+=P.charAt(_):J==ce?(_+=I.length-1,le=a.tags[P.charAt(_+1)],z=le?P.charAt(_+1):"_v",z=="="?(_=Oe(P,_),J=me):(le&&_++,J=Ee),De=_):v(re,P,_)?(Se.push({tag:z,n:b(pe),otag:I,ctag:re,i:z=="/"?De-I.length:_+re.length}),pe="",_+=re.length-1,J=me,z=="{"&&(re=="}}"?_++:m(Se[Se.length-1]))):pe+=P.charAt(_);return ge(De,!0),Se};function m(C){C.n.substr(C.n.length-1)==="}"&&(C.n=C.n.substring(0,C.n.length-1))}function b(C){return C.trim?C.trim():C.replace(/^\s*|\s*$/g,"")}function v(C,P,ee){if(P.charAt(ee)!=C.charAt(0))return!1;for(var Z=1,me=C.length;Z<me;Z++)if(P.charAt(ee+Z)!=C.charAt(Z))return!1;return!0}var S={_t:!0,"\n":!0,$:!0,"/":!0};function w(C,P,ee,Z){var me=[],ce=null,Ee=null,J=null;for(Ee=ee[ee.length-1];C.length>0;){if(J=C.shift(),Ee&&Ee.tag=="<"&&!(J.tag in S))throw new Error("Illegal content in < super tag.");if(a.tags[J.tag]<=a.tags.$||T(J,Z))ee.push(J),J.nodes=w(C,J.tag,ee,Z);else if(J.tag=="/"){if(ee.length===0)throw new Error("Closing tag without opener: /"+J.n);if(ce=ee.pop(),J.n!=ce.n&&!O(J.n,ce.n,Z))throw new Error("Nesting error: "+ce.n+" vs. "+J.n);return ce.end=J.i,me}else J.tag==`
58
+ `&&(J.last=C.length==0||C[0].tag==`
59
+ `);me.push(J)}if(ee.length>0)throw new Error("missing closing tag: "+ee.pop().n);return me}function T(C,P){for(var ee=0,Z=P.length;ee<Z;ee++)if(P[ee].o==C.n)return C.tag="#",!0}function O(C,P,ee){for(var Z=0,me=ee.length;Z<me;Z++)if(ee[Z].c==C&&ee[Z].o==P)return!0}function x(C){var P=[];for(var ee in C)P.push('"'+M(ee)+'": function(c,p,t,i) {'+C[ee]+"}");return"{ "+P.join(",")+" }"}function k(C){var P=[];for(var ee in C.partials)P.push('"'+M(ee)+'":{name:"'+M(C.partials[ee].name)+'", '+k(C.partials[ee])+"}");return"partials: {"+P.join(",")+"}, subs: "+x(C.subs)}a.stringify=function(C,P,ee){return"{code: function (c,p,i) { "+a.wrapMain(C.code)+" },"+k(C)+"}"};var B=0;a.generate=function(C,P,ee){B=0;var Z={code:"",subs:{},partials:{}};return a.walk(C,Z),ee.asString?this.stringify(Z,P,ee):this.makeTemplate(Z,P,ee)},a.wrapMain=function(C){return'var t=this;t.b(i=i||"");'+C+"return t.fl();"},a.template=a.Template,a.makeTemplate=function(C,P,ee){var Z=this.makePartials(C);return Z.code=new Function("c","p","i",this.wrapMain(C.code)),new this.template(Z,P,this,ee)},a.makePartials=function(C){var P,ee={subs:{},partials:C.partials,name:C.name};for(P in ee.partials)ee.partials[P]=this.makePartials(ee.partials[P]);for(P in C.subs)ee.subs[P]=new Function("c","p","t","i",C.subs[P]);return ee};function M(C){return C.replace(p,"\\\\").replace(l,'\\"').replace(u,"\\n").replace(d,"\\r").replace(y,"\\u2028").replace(g,"\\u2029")}function ae(C){return~C.indexOf(".")?"d":"f"}function $(C,P){var ee="<"+(P.prefix||""),Z=ee+C.n+B++;return P.partials[Z]={name:C.n,partials:{}},P.code+='t.b(t.rp("'+M(Z)+'",c,p,"'+(C.indent||"")+'"));',Z}a.codegen={"#":function(C,P){P.code+="if(t.s(t."+ae(C.n)+'("'+M(C.n)+'",c,p,1),c,p,0,'+C.i+","+C.end+',"'+C.otag+" "+C.ctag+'")){t.rs(c,p,function(c,p,t){',a.walk(C.nodes,P),P.code+="});c.pop();}"},"^":function(C,P){P.code+="if(!t.s(t."+ae(C.n)+'("'+M(C.n)+'",c,p,1),c,p,1,0,0,"")){',a.walk(C.nodes,P),P.code+="};"},">":$,"<":function(C,P){var ee={partials:{},code:"",subs:{},inPartial:!0};a.walk(C.nodes,ee);var Z=P.partials[$(C,P)];Z.subs=ee.subs,Z.partials=ee.partials},$:function(C,P){var ee={subs:{},code:"",partials:P.partials,prefix:C.n};a.walk(C.nodes,ee),P.subs[C.n]=ee.code,P.inPartial||(P.code+='t.sub("'+M(C.n)+'",c,p,i);')},"\n":function(C,P){P.code+=ie('"\\n"'+(C.last?"":" + i"))},_v:function(C,P){P.code+="t.b(t.v(t."+ae(C.n)+'("'+M(C.n)+'",c,p,0)));'},_t:function(C,P){P.code+=ie('"'+M(C.text)+'"')},"{":X,"&":X};function X(C,P){P.code+="t.b(t.t(t."+ae(C.n)+'("'+M(C.n)+'",c,p,0)));'}function ie(C){return"t.b("+C+");"}a.walk=function(C,P){for(var ee,Z=0,me=C.length;Z<me;Z++)ee=a.codegen[C[Z].tag],ee&&ee(C[Z],P);return P},a.parse=function(C,P,ee){return ee=ee||{},w(C,"",[],ee.sectionTags||[])},a.cache={},a.cacheKey=function(C,P){return[C,!!P.asString,!!P.disableLambda,P.delimiters,!!P.modelGet].join("||")},a.compile=function(C,P){P=P||{};var ee=a.cacheKey(C,P),Z=this.cache[ee];if(Z){var me=Z.partials;for(var ce in me)delete me[ce].instance;return Z}return Z=this.generate(this.parse(this.scan(C,P.delimiters),C,P),C,P),this.cache[ee]=Z}})(s)})(Tu)),Tu}var xu={},tg;function d_(){return tg||(tg=1,(function(s){(function(a){a.Template=function(w,T,O,x){w=w||{},this.r=w.code||this.r,this.c=O,this.options=x||{},this.text=T||"",this.partials=w.partials||{},this.subs=w.subs||{},this.buf=""},a.Template.prototype={r:function(w,T,O){return""},v,t:b,render:function(T,O,x){return this.ri([T],O||{},x)},ri:function(w,T,O){return this.r(w,T,O)},ep:function(w,T){var O=this.partials[w],x=T[O.name];if(O.instance&&O.base==x)return O.instance;if(typeof x=="string"){if(!this.c)throw new Error("No compiler available.");x=this.c.compile(x,this.options)}if(!x)return null;if(this.partials[w].base=x,O.subs){T.stackText||(T.stackText={});for(key in O.subs)T.stackText[key]||(T.stackText[key]=this.activeSub!==void 0&&T.stackText[this.activeSub]?T.stackText[this.activeSub]:this.text);x=l(x,O.subs,O.partials,this.stackSubs,this.stackPartials,T.stackText)}return this.partials[w].instance=x,x},rp:function(w,T,O,x){var k=this.ep(w,O);return k?k.ri(T,O,x):""},rs:function(w,T,O){var x=w[w.length-1];if(!S(x)){O(w,T,this);return}for(var k=0;k<x.length;k++)w.push(x[k]),O(w,T,this),w.pop()},s:function(w,T,O,x,k,B,M){var ae;return S(w)&&w.length===0?!1:(typeof w=="function"&&(w=this.ms(w,T,O,x,k,B,M)),ae=!!w,!x&&ae&&T&&T.push(typeof w=="object"?w:T[T.length-1]),ae)},d:function(w,T,O,x){var k,B=w.split("."),M=this.f(B[0],T,O,x),ae=this.options.modelGet,$=null;if(w==="."&&S(T[T.length-2]))M=T[T.length-1];else for(var X=1;X<B.length;X++)k=r(B[X],M,ae),k!==void 0?($=M,M=k):M="";return x&&!M?!1:(!x&&typeof M=="function"&&(T.push($),M=this.mv(M,T,O),T.pop()),M)},f:function(w,T,O,x){for(var k=!1,B=null,M=!1,ae=this.options.modelGet,$=T.length-1;$>=0;$--)if(B=T[$],k=r(w,B,ae),k!==void 0){M=!0;break}return M?(!x&&typeof k=="function"&&(k=this.mv(k,T,O)),k):x?!1:""},ls:function(w,T,O,x,k,B){var M=this.options.delimiters;return this.options.delimiters=B,this.b(this.ct(b(w.call(T,k,O)),T,x)),this.options.delimiters=M,!1},ct:function(w,T,O){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(w,this.options).render(T,O)},b:function(w){this.buf+=w},fl:function(){var w=this.buf;return this.buf="",w},ms:function(w,T,O,x,k,B,M){var ae,$=T[T.length-1],X=w.call($);return typeof X=="function"?x?!0:(ae=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(X,$,T,O,ae.substring(k,B),M)):X},mv:function(w,T,O){var x=T[T.length-1],k=w.call(x);return typeof k=="function"?this.ct(b(k.call(x)),x,O):k},sub:function(w,T,O,x){var k=this.subs[w];k&&(this.activeSub=w,k(T,O,this,x),this.activeSub=!1)}};function r(w,T,O){var x;return T&&typeof T=="object"&&(T[w]!==void 0?x=T[w]:O&&T.get&&typeof T.get=="function"&&(x=T.get(w))),x}function l(w,T,O,x,k,B){function M(){}M.prototype=w;function ae(){}ae.prototype=w.subs;var $,X=new M;X.subs=new ae,X.subsText={},X.buf="",x=x||{},X.stackSubs=x,X.subsText=B;for($ in T)x[$]||(x[$]=T[$]);for($ in x)X.subs[$]=x[$];k=k||{},X.stackPartials=k;for($ in O)k[$]||(k[$]=O[$]);for($ in k)X.partials[$]=k[$];return X}var u=/&/g,d=/</g,p=/>/g,y=/\'/g,g=/\"/g,m=/[&<>\"\']/;function b(w){return String(w??"")}function v(w){return w=b(w),m.test(w)?w.replace(u,"&amp;").replace(d,"&lt;").replace(p,"&gt;").replace(y,"&#39;").replace(g,"&quot;"):w}var S=Array.isArray||function(w){return Object.prototype.toString.call(w)==="[object Array]"}})(s)})(xu)),xu}var Au,ng;function h_(){if(ng)return Au;ng=1;var s=f_();return s.Template=d_().Template,s.template=s.Template,Au=s,Au}var Wt=h_();const fn={};fn["file-summary-line"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<li class="d2h-file-list-line">'),l.b(`
60
+ `+r),l.b(' <span class="d2h-file-name-wrapper">'),l.b(`
61
+ `+r),l.b(l.rp("<fileIcon0",s,a," ")),l.b(' <a href="#'),l.b(l.v(l.f("fileHtmlId",s,a,0))),l.b('" class="d2h-file-name">'),l.b(l.v(l.f("fileName",s,a,0))),l.b("</a>"),l.b(`
62
+ `+r),l.b(' <span class="d2h-file-stats">'),l.b(`
63
+ `+r),l.b(' <span class="d2h-lines-added">'),l.b(l.v(l.f("addedLines",s,a,0))),l.b("</span>"),l.b(`
64
+ `+r),l.b(' <span class="d2h-lines-deleted">'),l.b(l.v(l.f("deletedLines",s,a,0))),l.b("</span>"),l.b(`
65
+ `+r),l.b(" </span>"),l.b(`
66
+ `+r),l.b(" </span>"),l.b(`
67
+ `+r),l.b("</li>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});fn["file-summary-wrapper"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-file-list-wrapper '),l.b(l.v(l.f("colorScheme",s,a,0))),l.b('">'),l.b(`
68
+ `+r),l.b(' <div class="d2h-file-list-header">'),l.b(`
69
+ `+r),l.b(' <span class="d2h-file-list-title">Files changed ('),l.b(l.v(l.f("filesNumber",s,a,0))),l.b(")</span>"),l.b(`
70
+ `+r),l.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),l.b(`
71
+ `+r),l.b(' <a class="d2h-file-switch d2h-show">show</a>'),l.b(`
72
+ `+r),l.b(" </div>"),l.b(`
73
+ `+r),l.b(' <ol class="d2h-file-list">'),l.b(`
74
+ `+r),l.b(" "),l.b(l.t(l.f("files",s,a,0))),l.b(`
75
+ `+r),l.b(" </ol>"),l.b(`
76
+ `+r),l.b("</div>"),l.fl()},partials:{},subs:{}});fn["generic-block-header"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
77
+ `+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,a,0))),l.b(" "),l.b(l.v(l.d("CSSLineClass.INFO",s,a,0))),l.b('"></td>'),l.b(`
78
+ `+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,a,0))),l.b('">'),l.b(`
79
+ `+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,a,0))),l.b('">'),l.s(l.f("blockHeader",s,a,1),s,a,0,156,173,"{{ }}")&&(l.rs(s,a,function(u,d,p){p.b(p.t(p.f("blockHeader",u,d,0)))}),s.pop()),l.s(l.f("blockHeader",s,a,1),s,a,1,0,0,"")||l.b("&nbsp;"),l.b("</div>"),l.b(`
80
+ `+r),l.b(" </td>"),l.b(`
81
+ `+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});fn["generic-empty-diff"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
82
+ `+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,a,0))),l.b('">'),l.b(`
83
+ `+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,a,0))),l.b('">'),l.b(`
84
+ `+r),l.b(" File without changes"),l.b(`
85
+ `+r),l.b(" </div>"),l.b(`
86
+ `+r),l.b(" </td>"),l.b(`
87
+ `+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});fn["generic-file-path"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-file-name-wrapper">'),l.b(`
88
+ `+r),l.b(l.rp("<fileIcon0",s,a," ")),l.b(' <span class="d2h-file-name">'),l.b(l.v(l.f("fileDiffName",s,a,0))),l.b("</span>"),l.b(`
89
+ `+r),l.b(l.rp("<fileTag1",s,a," ")),l.b("</span>"),l.b(`
90
+ `+r),l.b('<label class="d2h-file-collapse">'),l.b(`
91
+ `+r),l.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),l.b(`
92
+ `+r),l.b(" Viewed"),l.b(`
93
+ `+r),l.b("</label>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});fn["generic-line"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
94
+ `+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,a,0))),l.b(" "),l.b(l.v(l.f("type",s,a,0))),l.b('">'),l.b(`
95
+ `+r),l.b(" "),l.b(l.t(l.f("lineNumber",s,a,0))),l.b(`
96
+ `+r),l.b(" </td>"),l.b(`
97
+ `+r),l.b(' <td class="'),l.b(l.v(l.f("type",s,a,0))),l.b('">'),l.b(`
98
+ `+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,a,0))),l.b('">'),l.b(`
99
+ `+r),l.s(l.f("prefix",s,a,1),s,a,0,162,238,"{{ }}")&&(l.rs(s,a,function(u,d,p){p.b(' <span class="d2h-code-line-prefix">'),p.b(p.t(p.f("prefix",u,d,0))),p.b("</span>"),p.b(`
100
+ `+r)}),s.pop()),l.s(l.f("prefix",s,a,1),s,a,1,0,0,"")||(l.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),l.b(`
101
+ `+r)),l.s(l.f("content",s,a,1),s,a,0,371,445,"{{ }}")&&(l.rs(s,a,function(u,d,p){p.b(' <span class="d2h-code-line-ctn">'),p.b(p.t(p.f("content",u,d,0))),p.b("</span>"),p.b(`
102
+ `+r)}),s.pop()),l.s(l.f("content",s,a,1),s,a,1,0,0,"")||(l.b(' <span class="d2h-code-line-ctn"><br></span>'),l.b(`
103
+ `+r)),l.b(" </div>"),l.b(`
104
+ `+r),l.b(" </td>"),l.b(`
105
+ `+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});fn["generic-wrapper"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-wrapper '),l.b(l.v(l.f("colorScheme",s,a,0))),l.b('">'),l.b(`
106
+ `+r),l.b(" "),l.b(l.t(l.f("content",s,a,0))),l.b(`
107
+ `+r),l.b("</div>"),l.fl()},partials:{},subs:{}});fn["icon-file-added"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),l.b(`
108
+ `+r),l.b(' width="14">'),l.b(`
109
+ `+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),l.b(`
110
+ `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});fn["icon-file-changed"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),l.b(`
111
+ `+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
112
+ `+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),l.b(`
113
+ `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});fn["icon-file-deleted"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),l.b(`
114
+ `+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
115
+ `+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),l.b(`
116
+ `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});fn["icon-file-renamed"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),l.b(`
117
+ `+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
118
+ `+r),l.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),l.b(`
119
+ `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});fn["icon-file"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),l.b(`
120
+ `+r),l.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),l.b(`
121
+ `+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});fn["line-by-line-file-diff"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,a,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,a,0))),l.b('">'),l.b(`
122
+ `+r),l.b(' <div class="d2h-file-header">'),l.b(`
123
+ `+r),l.b(" "),l.b(l.t(l.f("filePath",s,a,0))),l.b(`
124
+ `+r),l.b(" </div>"),l.b(`
125
+ `+r),l.b(' <div class="d2h-file-diff">'),l.b(`
126
+ `+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
127
+ `+r),l.b(' <table class="d2h-diff-table">'),l.b(`
128
+ `+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
129
+ `+r),l.b(" "),l.b(l.t(l.f("diffs",s,a,0))),l.b(`
130
+ `+r),l.b(" </tbody>"),l.b(`
131
+ `+r),l.b(" </table>"),l.b(`
132
+ `+r),l.b(" </div>"),l.b(`
133
+ `+r),l.b(" </div>"),l.b(`
134
+ `+r),l.b("</div>"),l.fl()},partials:{},subs:{}});fn["line-by-line-numbers"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div class="line-num1">'),l.b(l.v(l.f("oldNumber",s,a,0))),l.b("</div>"),l.b(`
135
+ `+r),l.b('<div class="line-num2">'),l.b(l.v(l.f("newNumber",s,a,0))),l.b("</div>"),l.fl()},partials:{},subs:{}});fn["side-by-side-file-diff"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,a,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,a,0))),l.b('">'),l.b(`
136
+ `+r),l.b(' <div class="d2h-file-header">'),l.b(`
137
+ `+r),l.b(" "),l.b(l.t(l.f("filePath",s,a,0))),l.b(`
138
+ `+r),l.b(" </div>"),l.b(`
139
+ `+r),l.b(' <div class="d2h-files-diff">'),l.b(`
140
+ `+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
141
+ `+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
142
+ `+r),l.b(' <table class="d2h-diff-table">'),l.b(`
143
+ `+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
144
+ `+r),l.b(" "),l.b(l.t(l.d("diffs.left",s,a,0))),l.b(`
145
+ `+r),l.b(" </tbody>"),l.b(`
146
+ `+r),l.b(" </table>"),l.b(`
147
+ `+r),l.b(" </div>"),l.b(`
148
+ `+r),l.b(" </div>"),l.b(`
149
+ `+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
150
+ `+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
151
+ `+r),l.b(' <table class="d2h-diff-table">'),l.b(`
152
+ `+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
153
+ `+r),l.b(" "),l.b(l.t(l.d("diffs.right",s,a,0))),l.b(`
154
+ `+r),l.b(" </tbody>"),l.b(`
155
+ `+r),l.b(" </table>"),l.b(`
156
+ `+r),l.b(" </div>"),l.b(`
157
+ `+r),l.b(" </div>"),l.b(`
158
+ `+r),l.b(" </div>"),l.b(`
159
+ `+r),l.b("</div>"),l.fl()},partials:{},subs:{}});fn["tag-file-added"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),l.fl()},partials:{},subs:{}});fn["tag-file-changed"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),l.fl()},partials:{},subs:{}});fn["tag-file-deleted"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),l.fl()},partials:{},subs:{}});fn["tag-file-renamed"]=new Wt.Template({code:function(s,a,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),l.fl()},partials:{},subs:{}});class p_{constructor({compiledTemplates:a={},rawTemplates:r={}}){const l=Object.entries(r).reduce((u,[d,p])=>{const y=Wt.compile(p,{asString:!1});return Object.assign(Object.assign({},u),{[d]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},fn),a),l)}static compile(a){return Wt.compile(a,{asString:!1})}render(a,r,l,u,d){const p=this.templateKey(a,r);try{return this.preCompiledTemplates[p].render(l,u,d)}catch{throw new Error(`Could not find template to render '${p}'`)}}template(a,r){return this.preCompiledTemplates[this.templateKey(a,r)]}templateKey(a,r){return`${a}-${r}`}}const m_=Object.assign(Object.assign(Object.assign({},Db),Lb),{outputFormat:LE.LINE_BY_LINE,drawFileList:!0});function g_(s,a={}){const r=Object.assign(Object.assign({},m_),a),l=typeof s=="string"?$E(s,r):s,u=new p_(r),{colorScheme:d}=r,p={colorScheme:d},y=r.drawFileList?new a_(u,p).render(l):"",g=r.outputFormat==="side-by-side"?new u_(u,r).render(l):new s_(u,r).render(l);return y+g}var Ru=Rb();function Ua(s){const a=[],r=s.split(`
160
+ `);let l=null,u=null;const d=()=>{l&&u&&a.push({path:u,patch:l.join(`
161
+ `)}),l=null,u=null};for(const p of r)if(p.startsWith("diff --git ")){d(),l=[p];const y=p.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:p.slice(11)}else if(l&&(l.push(p),p.startsWith("--- a/")&&u==="/dev/null"&&(u=p.slice(6)),p==="+++ /dev/null")){const y=l.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return d(),a}function b_(s,a){const r=new Set(a);return Ua(s).filter(l=>r.has(l.path)).map(l=>l.patch).join(`
162
+ `)}function y_(s){return v_(s)}function v_(s,a){const l=new Map;for(const{path:u,patch:d}of Ua(s)){const p=new Map;let y=0,g=!1;const m=d.split(`
163
+ `);for(let b=0;b<m.length;b++){const v=m[b],S=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(S){y=Number(S[2]),g=!0;continue}g&&(v===""&&b===m.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(p.set(y,v===""?"":v.slice(1)),y++))}l.set(u,p)}return l}function E_(s){const a=new Map;for(const[r,l]of y_(s))a.set(r,new Set(l.keys()));return a}function __(s,a){const r=new Set(a.flatMap(l=>l.files));return Ua(s).map(l=>l.path).filter(l=>!r.has(l))}function S_(s){return new Map(Ua(s).map(a=>[a.path,a.patch.split(`
164
+ `).length]))}function N_(s){const a=s.split(`
165
+ `),r=a.findIndex(p=>p.startsWith("@@")),l=r<0?[]:a.slice(r).filter(p=>/^[+\- ]/.test(p)),u=(l.length>0?l:a).join(`
166
+ `);let d=2166136261;for(let p=0;p<u.length;p++)d^=u.charCodeAt(p),d=Math.imul(d,16777619);return(d>>>0).toString(16).padStart(8,"0")}const zb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function ag(s,a){return a?`${zb[a]} **${a}** — ${s}`:s}const w_=["inbox","awaiting","drafted"],xf=["requests","settled","sent","archived"],Ou={inbox:{label:"inbox",title:"Everything still waiting on you — drafted reviews and PRs the poll found but nobody has read."},awaiting:{label:"awaiting",title:"Found by the inbox poll, not drafted yet — or a run is in flight right now."},drafted:{label:"drafted",title:"A draft is written and waiting for you to read it."},requests:{label:"open requests",title:"GitHub still lists you as a requested reviewer on these. You settled or archived them here without submitting a review, so they also appear under whichever tab you filed them in."},settled:{label:"settled",title:"You marked these reviewed or skipped, or handed them to somebody else. No review of yours was sent to GitHub."},sent:{label:"sent",title:"Reviews that reached GitHub. Kept here as a record."},archived:{label:"archived",title:"PRs that have since been merged or closed."}};function ig(s){return s.status==="awaiting"||s.status==="running"?"awaiting":s.status==="sent"?"sent":"drafted"}const Hs=s=>!!s.pr.state&&s.pr.state!=="OPEN",lg=["ready","awaiting","running","failed","reviewed","skipped","sent"];function jl(s){return[...s].sort((a,r)=>lg.indexOf(a.status)-lg.indexOf(r.status)||r.updatedAt.localeCompare(a.updatedAt))}const Ub=["sent","reviewed","skipped"];function qs(s){return jl(s.filter(a=>!Hs(a)&&!Ub.includes(a.status)))}function T_(s,a,r){return qs(s).filter(l=>l.key===a||!r.has(l.key))}function x_(s,a){if(!(a!=null&&a.enabled)||a.awaiting.length===0)return[];const r=new Set(qs(s).map(u=>u.id)),l=new Set(a.awaiting.map(u=>u.id));return jl(s.filter(u=>l.has(u.id)&&!r.has(u.id)))}const A_=(s,a)=>a.some(r=>r.id===s.id);function R_(s,a){const r=s.filter(u=>!Hs(u)),l=jl(r.filter(u=>!Ub.includes(u.status)));return{inbox:l,awaiting:l.filter(u=>ig(u)==="awaiting"),drafted:l.filter(u=>ig(u)==="drafted"),requests:x_(s,a),settled:jl(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:jl(r.filter(u=>u.status==="sent")),archived:jl(s.filter(Hs))}}function O_(s,a){return xf.includes(s)&&a[s].length===0?"inbox":s}function jb(s){var a,r;return s.reason==="own-review"?((a=s.review)==null?void 0:a.at)??s.at:s.reason==="own-reply"?((r=s.reply)==null?void 0:r.at)??s.at:s.at}const co={"own-review":{tag:"reviewed on GitHub",meta:s=>`you reviewed this on GitHub on ${s}`,reasoning:"GitHub stopped asking you for a review and already had one of yours, so this draft was filed rather than left in the inbox. It was never sent — open it to read or send it.",requested:"You submitted a review on GitHub, outside cerber, so this draft was filed."},"own-reply":{tag:"replied on GitHub",meta:s=>`you replied on GitHub on ${s}`,reasoning:"You answered in the PR conversation and nobody has answered back, so the draft was filed rather than left in the inbox. GitHub does not count a comment as a review, but whoever opened the PR is the one holding it. Nothing was sent — open it to read or send it.",requested:"You commented on the PR and nobody answered, so this draft was filed."},"request-withdrawn":{tag:"request withdrawn",meta:s=>`nobody was asking for this any more on ${s}`,reasoning:"Whoever asked for this review took the request back, and you had said nothing on the PR, so the draft was filed rather than left in the inbox. It is still a review — open it to read or send it.",requested:"The review request had gone away when this draft was filed."}};function k_(s){var a;return Hs(s)?((a=s.pr.state)==null?void 0:a.toLowerCase())??null:s.handoff?`handed to @${s.handoff.to}`:s.filed?co[s.filed.reason].tag:s.status==="reviewed"||s.status==="skipped"?s.status:null}function C_(s,a){var r;return a!=null&&a.enabled?((r=a.awaiting.find(l=>l.id===s.id))==null?void 0:r.reply)??"unknown":"unknown"}const M_={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."}},D_=s=>M_[s];function L_(s){const a=Kf[s.event]??s.event,r=new Date(s.at).toLocaleDateString();return{label:s.auto?"auto-sent a review":"you replied with a review",title:`${s.auto?"The daemon auto-sent this review":"You sent this review"} to GitHub on ${r} as ${a}. The last inbox poll still listed a review request for you — a request can lag a send, and GitHub holds some open even after one.`}}function z_(s){const a=co[s.reason],r=new Date(jb(s)).toLocaleDateString();return{label:a.tag,title:`${a.requested} That was ${r}. GitHub lists a review request for you now — most likely the author has asked for another look since. Re-review it to draft against the current head.`}}function U_(s){const a=new Date(s.at).toLocaleDateString();return{label:`handed to @${s.to}`,title:s.withdrewYours?`You handed this to @${s.to} on ${a} and cerber took your own review request off the PR. GitHub still lists one for you — most likely the last inbox poll ran before the swap, or somebody has asked you again since.`:`You handed this to @${s.to} on ${a}, but cerber could not take your own review request off the PR — so GitHub is asking both of you. Remove yourself on GitHub if that is not what you wanted.`}}const j_=(s,a)=>s.handoff?U_(s.handoff):s.sent?L_(s.sent):s.filed?z_(s.filed):D_(a);function B_(s){const a=s.length,r=a===1?"1 review request":`${a} review requests`,l=s.some(Hs)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${l} ${a===1?"it":"them"} here without submitting a review, so ${a===1?"it is":"they are"} under open requests, tagged with whose move it is.`}function Bb(s,a=Date.now()){const r=Math.max(0,Math.round((a-new Date(s).getTime())/1e3));return r<45?"now":r<3600?`${Math.round(r/60)}m`:r<86400?`${Math.round(r/3600)}h`:`${Math.round(r/86400)}d`}const I_={approve:"approve",comment:"comment",request_changes:"changes"},Kf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function H_(s){return s.status==="running"?{label:"reviewing…",tone:"running"}:s.status==="awaiting"?{label:"review now",tone:"awaiting"}:s.status==="failed"?{label:"run failed",tone:"failed"}:s.sent?{label:`sent · ${Kf[s.sent.event]??s.sent.event}`,tone:"sent"}:s.verdict?{label:`${s.verdict.recommendation.replace("_"," ")} ${s.verdict.confidence}%`,tone:I_[s.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function ku(s){return s.trusted?"ran the code":s.withSource?"read the full source":"read the diff only"}function q_(s){if(s.commentCount===0)return"no comments drafted";const a=[`${s.commentCount} comment${s.commentCount===1?"":"s"} drafted`];return s.driftedCount&&a.push(`${s.driftedCount} off-diff`),s.gradedCount&&a.push(s.blockerCount?`${s.blockerCount} blocker${s.blockerCount===1?"":"s"}`:"no blockers"),a.join(", ")}function G_(s,a,r=Date.now()){var u,d;if(s.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Bb(s.updatedAt,r)} ago`,ku(s)]};if(s.status==="awaiting")return{reasoning:"Found by the inbox poll, not drafted yet — auto-review was off when it arrived, or it is still queued behind another run.",meta:["no run yet","press r to review now"]};if(s.status==="failed")return{reasoning:s.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(s.sent)return{reasoning:`Sent to GitHub as ${Kf[s.sent.event]??s.sent.event} on ${new Date(s.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue.`+(s.handoff?` GitHub asks @${s.handoff.to} for it now.`:""),meta:[...s.handoff?[`you handed this to @${s.handoff.to}`]:[],s.sent.auto?"auto-sent by the daemon":"sent by you",ku(s)]};const l=[ku(s)];if(s.handoff?l.unshift(`you handed this to @${s.handoff.to} on ${new Date(s.handoff.at).toLocaleDateString()}`):s.filed?l.unshift(co[s.filed.reason].meta(new Date(jb(s.filed)).toLocaleDateString())):s.status==="reviewed"?l.unshift("you marked this reviewed"):s.status==="skipped"&&l.unshift("you skipped this"),s.costUsd!=null&&l.push(`≈$${s.costUsd.toFixed(2)} at API rates`),l.push(q_(s)),a!=null&&a.enabled&&s.status==="ready"&&((u=s.verdict)==null?void 0:u.recommendation)==="approve"&&l.push(s.verdict.confidence>=a.autoSendThreshold?`auto-send candidate at ${s.verdict.confidence}%`:`below the ${a.autoSendThreshold}% auto-send bar`),s.handoff){const p=s.commentCount>0||s.verdict!=null;return{reasoning:`GitHub asks @${s.handoff.to} for this review now${s.handoff.withdrewYours?" and no longer asks you":" — and still asks you, because your own request could not be taken off"}. `+(p?"The draft was never sent: it is still yours to read or send.":"Nothing was drafted here, and nothing was sent."),meta:l}}return s.filed?{reasoning:co[s.filed.reason].reasoning,meta:l}:{reasoning:((d=s.verdict)==null?void 0:d.reasoning)??"This review has a draft but no verdict.",meta:l}}const $_="/favicon.svg",Y_="/favicon-dot.svg",F_=s=>qs(s).length>0,P_=s=>s?Y_:$_;function K_(s){const a=P_(F_(s)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===a||r.setAttribute("href",a)}async function Pt(s,a){const r=await fetch(s,{...a,headers:a!=null&&a.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let l=`${(a==null?void 0:a.method)??"GET"} ${s}: ${r.status}`;try{const u=await r.json();u.error&&(l=u.error)}catch{}throw new Error(l)}return r.json()}const Zf=async()=>{const s=await Pt("/api/reviews");return K_(s),s},Ib=()=>Pt("/api/daemon"),sg=s=>Pt(`/api/reviews/${encodeURIComponent(s)}`),Z_=(s,a,r)=>Pt(`/api/reviews/${encodeURIComponent(s)}/viewed`,{method:"PUT",body:JSON.stringify({path:a,fingerprint:r})}),io=(s,a)=>Pt(`/api/reviews/${encodeURIComponent(s)}`,{method:"PATCH",body:JSON.stringify(a)}),X_=(s,a,r)=>Pt(`/api/reviews/${encodeURIComponent(s)}/comments/${a}`,{method:"PATCH",body:JSON.stringify(r)}),V_=(s,a)=>Pt(`/api/reviews/${encodeURIComponent(s)}/comments`,{method:"POST",body:JSON.stringify(a)}),Q_=(s,a)=>Pt(`/api/reviews/${encodeURIComponent(s)}/comments/${a}`,{method:"DELETE"}),W_=s=>Pt("/api/reviews",{method:"POST",body:JSON.stringify({input:s})}),J_=s=>Pt(`/api/reviews/${encodeURIComponent(s)}/refresh`,{method:"POST"}),Hb=(s,a)=>Pt(`/api/reviews/${encodeURIComponent(s)}/rerun`+(a===void 0?"":`?source=${a?"1":"0"}`),{method:"POST"}),Af=(s,a)=>Pt(`/api/reviews/${encodeURIComponent(s)}/chat`,{method:"POST",body:JSON.stringify(a)}),e0=s=>Pt(`/api/reviews/${encodeURIComponent(s)}/chat/pending`,{method:"DELETE"}),t0=s=>Pt(`/api/reviews/${encodeURIComponent(s)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),qb=(s,a)=>Pt(`/api/reviews/${encodeURIComponent(s)}/send-preview?event=${a}`),n0=(s,a)=>Pt(`/api/reviews/${encodeURIComponent(s)}/send`,{method:"POST",body:JSON.stringify({event:a,confirm:!0})}),a0=s=>Pt(`/api/reviews/${encodeURIComponent(s)}/raised`,{method:"POST"}),i0=s=>Pt(`/api/reviews/${encodeURIComponent(s)}/reviewers`),l0=(s,a)=>Pt(`/api/reviews/${encodeURIComponent(s)}/handoff`,{method:"POST",body:JSON.stringify({...a,confirm:!0})}),s0=s=>`/api/reviews/${encodeURIComponent(s)}/export`,r0=()=>Pt("/api/config"),Cu=(s,a=!1)=>Pt("/api/config/trust",{method:"POST",body:JSON.stringify({rule:s,remove:a})}),Mu=s=>Pt("/api/config/daemon",{method:"POST",body:JSON.stringify(s)}),Gb="cerber.handoff.recent",$b=5,o0=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,Yb=s=>o0.test(s);function c0(s){try{const a=JSON.parse(s??"");return Array.isArray(a)?a.filter(r=>typeof r=="string"&&Yb(r)).slice(0,$b):[]}catch{return[]}}function Fb(){try{return c0(localStorage.getItem(Gb))}catch{return[]}}function u0(s,a){const r=s.filter(l=>l.toLowerCase()!==a.toLowerCase());return[a,...r].slice(0,$b)}function f0(s){const a=u0(Fb(),s);try{localStorage.setItem(Gb,JSON.stringify(a))}catch{}return a}const Rf=s=>s.trim().replace(/^@/,"");function d0(s,a){const r=new Set,l=[];for(const u of[...a,...s]){const d=u.toLowerCase();r.has(d)||(r.add(d),l.push({login:u,recent:a.some(p=>p.toLowerCase()===d)}))}return l}function h0(s,a){const r=Rf(a).toLowerCase();if(!r)return s;const l=s.filter(p=>p.login.toLowerCase().includes(r)),u=p=>p.login.toLowerCase()===r,d=p=>p.login.toLowerCase().startsWith(r);return[...l.filter(u),...l.filter(p=>!u(p)&&d(p)),...l.filter(p=>!d(p))]}function Du(s){return s.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function Of(s){return s.nodeName.toLowerCase()}function rg(s){const a=[],r=(l,u)=>{for(let d=l.firstChild;d;d=d.nextSibling)d.nodeType===3&&d.nodeValue!==null?u+=d.nodeValue.length:d.nodeType===1&&(a.push({event:"start",offset:u,node:d}),u=r(d,u),Of(d).match(/br|hr|img|input/)||a.push({event:"stop",offset:u,node:d}));return u};return r(s,0),a}function p0(s,a,r){let l=0,u="";const d=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!s.length||!a.length?s.length?s:a:s[0].offset!==a[0].offset?s[0].offset<a[0].offset?s:a:a[0].event==="start"?s:a}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${Of(v)} ${Array().map.call(v.attributes,S=>`${S.nodeName}="${Du(S.value).replace(/"/g,"&quot;")}"`).join(" ")}>`}function m(v){u+="</"+Of(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;s.length||a.length;){let v=y();if(u+=Du(r.substring(l,v[0].offset)),l=v[0].offset,v===s){d.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();while(v===s&&v.length&&v[0].offset===l);d.reverse().forEach(g)}else v[0].event==="start"?d.push(v[0].node):d.pop(),b(v.splice(0,1)[0])}return u+Du(r.substr(l))}const m0={"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 g0(s){var a;return(a=m0[s])!==null&&a!==void 0?a:"plaintext"}var Lu,og;function b0(){if(og)return Lu;og=1;function s(A){return A instanceof Map?A.clear=A.delete=A.set=function(){throw new Error("map is read-only")}:A instanceof Set&&(A.add=A.clear=A.delete=function(){throw new Error("set is read-only")}),Object.freeze(A),Object.getOwnPropertyNames(A).forEach(te=>{const ye=A[te],ze=typeof ye;(ze==="object"||ze==="function")&&!Object.isFrozen(ye)&&s(ye)}),A}class a{constructor(te){te.data===void 0&&(te.data={}),this.data=te.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function l(A,...te){const ye=Object.create(null);for(const ze in A)ye[ze]=A[ze];return te.forEach(function(ze){for(const et in ze)ye[et]=ze[et]}),ye}const u="</span>",d=A=>!!A.scope,p=(A,{prefix:te})=>{if(A.startsWith("language:"))return A.replace("language:","language-");if(A.includes(".")){const ye=A.split(".");return[`${te}${ye.shift()}`,...ye.map((ze,et)=>`${ze}${"_".repeat(et+1)}`)].join(" ")}return`${te}${A}`};class y{constructor(te,ye){this.buffer="",this.classPrefix=ye.classPrefix,te.walk(this)}addText(te){this.buffer+=r(te)}openNode(te){if(!d(te))return;const ye=p(te.scope,{prefix:this.classPrefix});this.span(ye)}closeNode(te){d(te)&&(this.buffer+=u)}value(){return this.buffer}span(te){this.buffer+=`<span class="${te}">`}}const g=(A={})=>{const te={children:[]};return Object.assign(te,A),te};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(te){this.top.children.push(te)}openNode(te){const ye=g({scope:te});this.add(ye),this.stack.push(ye)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(te){return this.constructor._walk(te,this.rootNode)}static _walk(te,ye){return typeof ye=="string"?te.addText(ye):ye.children&&(te.openNode(ye),ye.children.forEach(ze=>this._walk(te,ze)),te.closeNode(ye)),te}static _collapse(te){typeof te!="string"&&te.children&&(te.children.every(ye=>typeof ye=="string")?te.children=[te.children.join("")]:te.children.forEach(ye=>{m._collapse(ye)}))}}class b extends m{constructor(te){super(),this.options=te}addText(te){te!==""&&this.add(te)}startScope(te){this.openNode(te)}endScope(){this.closeNode()}__addSublanguage(te,ye){const ze=te.root;ye&&(ze.scope=`language:${ye}`),this.add(ze)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(A){return A?typeof A=="string"?A:A.source:null}function S(A){return O("(?=",A,")")}function w(A){return O("(?:",A,")*")}function T(A){return O("(?:",A,")?")}function O(...A){return A.map(ye=>v(ye)).join("")}function x(A){const te=A[A.length-1];return typeof te=="object"&&te.constructor===Object?(A.splice(A.length-1,1),te):{}}function k(...A){return"("+(x(A).capture?"":"?:")+A.map(ze=>v(ze)).join("|")+")"}function B(A){return new RegExp(A.toString()+"|").exec("").length-1}function M(A,te){const ye=A&&A.exec(te);return ye&&ye.index===0}const ae=new RegExp(k(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function $(A,{joinWith:te}){let ye=0;return A.map(ze=>{ye+=1;const et=ye;let lt=v(ze),we="";for(;lt.length>0;){const _e=ae.exec(lt);if(!_e){we+=lt;break}we+=lt.substring(0,_e.index),lt=lt.substring(_e.index+_e[0].length),_e[0][0]==="\\"&&_e[1]?we+="\\"+String(Number(_e[1])+et):(we+=_e[0],(_e[0]==="("||/^\(\?[<']/.test(_e[0]))&&ye++)}return we}).map(ze=>`(${ze})`).join(te)}const X=/\b\B/,ie="[a-zA-Z]\\w*",C="[a-zA-Z_]\\w*",P="\\b\\d+(\\.\\d+)?",ee="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Z="\\b(0b[01]+)",me="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ce=(A={})=>{const te=/^#![ ]*\//;return A.binary&&(A.begin=O(te,/.*\b/,A.binary,/\b.*/)),l({scope:"meta",begin:te,end:/$/,relevance:0,"on:begin":(ye,ze)=>{ye.index!==0&&ze.ignoreMatch()}},A)},Ee={begin:"\\\\[\\s\\S]",relevance:0},J={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ee]},z={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ee]},le={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/},pe=function(A,te,ye={}){const ze=l({scope:"comment",begin:A,end:te,contains:[]},ye);ze.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 et=k("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return ze.contains.push({begin:O(/[ ]+/,"(",et,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ze},Se=pe("//","$"),De=pe("/\\*","\\*/"),_=pe("#","$"),L={scope:"number",begin:P,relevance:0},I={scope:"number",begin:ee,relevance:0},re={scope:"number",begin:Z,relevance:0},K={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ee,{begin:/\[/,end:/\]/,relevance:0,contains:[Ee]}]},de={scope:"title",begin:ie,relevance:0},ge={scope:"title",begin:C,relevance:0},Oe={begin:"\\.\\s*"+C,relevance:0};var Ge=Object.freeze({__proto__:null,APOS_STRING_MODE:J,BACKSLASH_ESCAPE:Ee,BINARY_NUMBER_MODE:re,BINARY_NUMBER_RE:Z,COMMENT:pe,C_BLOCK_COMMENT_MODE:De,C_LINE_COMMENT_MODE:Se,C_NUMBER_MODE:I,C_NUMBER_RE:ee,END_SAME_AS_BEGIN:function(A){return Object.assign(A,{"on:begin":(te,ye)=>{ye.data._beginMatch=te[1]},"on:end":(te,ye)=>{ye.data._beginMatch!==te[1]&&ye.ignoreMatch()}})},HASH_COMMENT_MODE:_,IDENT_RE:ie,MATCH_NOTHING_RE:X,METHOD_GUARD:Oe,NUMBER_MODE:L,NUMBER_RE:P,PHRASAL_WORDS_MODE:le,QUOTE_STRING_MODE:z,REGEXP_MODE:K,RE_STARTERS_RE:me,SHEBANG:ce,TITLE_MODE:de,UNDERSCORE_IDENT_RE:C,UNDERSCORE_TITLE_MODE:ge});function Fe(A,te){A.input[A.index-1]==="."&&te.ignoreMatch()}function Ce(A,te){A.className!==void 0&&(A.scope=A.className,delete A.className)}function Ct(A,te){te&&A.beginKeywords&&(A.begin="\\b("+A.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",A.__beforeBegin=Fe,A.keywords=A.keywords||A.beginKeywords,delete A.beginKeywords,A.relevance===void 0&&(A.relevance=0))}function Pe(A,te){Array.isArray(A.illegal)&&(A.illegal=k(...A.illegal))}function In(A,te){if(A.match){if(A.begin||A.end)throw new Error("begin & end are not supported with match");A.begin=A.match,delete A.match}}function Je(A,te){A.relevance===void 0&&(A.relevance=1)}const St=(A,te)=>{if(!A.beforeMatch)return;if(A.starts)throw new Error("beforeMatch cannot be used with starts");const ye=Object.assign({},A);Object.keys(A).forEach(ze=>{delete A[ze]}),A.keywords=ye.keywords,A.begin=O(ye.beforeMatch,S(ye.begin)),A.starts={relevance:0,contains:[Object.assign(ye,{endsParent:!0})]},A.relevance=0,delete ye.beforeMatch},On=["of","and","for","in","not","or","if","then","parent","list","value"],Mt="keyword";function It(A,te,ye=Mt){const ze=Object.create(null);return typeof A=="string"?et(ye,A.split(" ")):Array.isArray(A)?et(ye,A):Object.keys(A).forEach(function(lt){Object.assign(ze,It(A[lt],te,lt))}),ze;function et(lt,we){te&&(we=we.map(_e=>_e.toLowerCase())),we.forEach(function(_e){const je=_e.split("|");ze[je[0]]=[lt,ct(je[0],je[1])]})}}function ct(A,te){return te?Number(te):Hn(A)?0:1}function Hn(A){return On.includes(A.toLowerCase())}const Zn={},$e=A=>{console.error(A)},Jt=(A,...te)=>{console.log(`WARN: ${A}`,...te)},vt=(A,te)=>{Zn[`${A}/${te}`]||(console.log(`Deprecated as of ${A}. ${te}`),Zn[`${A}/${te}`]=!0)},yn=new Error;function vn(A,te,{key:ye}){let ze=0;const et=A[ye],lt={},we={};for(let _e=1;_e<=te.length;_e++)we[_e+ze]=et[_e],lt[_e+ze]=!0,ze+=B(te[_e-1]);A[ye]=we,A[ye]._emit=lt,A[ye]._multi=!0}function kn(A){if(Array.isArray(A.begin)){if(A.skip||A.excludeBegin||A.returnBegin)throw $e("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),yn;if(typeof A.beginScope!="object"||A.beginScope===null)throw $e("beginScope must be object"),yn;vn(A,A.begin,{key:"beginScope"}),A.begin=$(A.begin,{joinWith:""})}}function En(A){if(Array.isArray(A.end)){if(A.skip||A.excludeEnd||A.returnEnd)throw $e("skip, excludeEnd, returnEnd not compatible with endScope: {}"),yn;if(typeof A.endScope!="object"||A.endScope===null)throw $e("endScope must be object"),yn;vn(A,A.end,{key:"endScope"}),A.end=$(A.end,{joinWith:""})}}function Xn(A){A.scope&&typeof A.scope=="object"&&A.scope!==null&&(A.beginScope=A.scope,delete A.scope)}function ra(A){Xn(A),typeof A.beginScope=="string"&&(A.beginScope={_wrap:A.beginScope}),typeof A.endScope=="string"&&(A.endScope={_wrap:A.endScope}),kn(A),En(A)}function Cn(A){function te(we,_e){return new RegExp(v(we),"m"+(A.case_insensitive?"i":"")+(A.unicodeRegex?"u":"")+(_e?"g":""))}class ye{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(_e,je){je.position=this.position++,this.matchIndexes[this.matchAt]=je,this.regexes.push([je,_e]),this.matchAt+=B(_e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const _e=this.regexes.map(je=>je[1]);this.matcherRe=te($(_e,{joinWith:"|"}),!0),this.lastIndex=0}exec(_e){this.matcherRe.lastIndex=this.lastIndex;const je=this.matcherRe.exec(_e);if(!je)return null;const Rt=je.findIndex((Sn,Vn)=>Vn>0&&Sn!==void 0),gt=this.matchIndexes[Rt];return je.splice(0,Rt),Object.assign(je,gt)}}class ze{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 je=new ye;return this.rules.slice(_e).forEach(([Rt,gt])=>je.addRule(Rt,gt)),je.compile(),this.multiRegexes[_e]=je,je}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(_e,je){this.rules.push([_e,je]),je.type==="begin"&&this.count++}exec(_e){const je=this.getMatcher(this.regexIndex);je.lastIndex=this.lastIndex;let Rt=je.exec(_e);if(this.resumingScanAtSamePosition()&&!(Rt&&Rt.index===this.lastIndex)){const gt=this.getMatcher(0);gt.lastIndex=this.lastIndex+1,Rt=gt.exec(_e)}return Rt&&(this.regexIndex+=Rt.position+1,this.regexIndex===this.count&&this.considerAll()),Rt}}function et(we){const _e=new ze;return we.contains.forEach(je=>_e.addRule(je.begin,{rule:je,type:"begin"})),we.terminatorEnd&&_e.addRule(we.terminatorEnd,{type:"end"}),we.illegal&&_e.addRule(we.illegal,{type:"illegal"}),_e}function lt(we,_e){const je=we;if(we.isCompiled)return je;[Ce,In,ra,St].forEach(gt=>gt(we,_e)),A.compilerExtensions.forEach(gt=>gt(we,_e)),we.__beforeBegin=null,[Ct,Pe,Je].forEach(gt=>gt(we,_e)),we.isCompiled=!0;let Rt=null;return typeof we.keywords=="object"&&we.keywords.$pattern&&(we.keywords=Object.assign({},we.keywords),Rt=we.keywords.$pattern,delete we.keywords.$pattern),Rt=Rt||/\w+/,we.keywords&&(we.keywords=It(we.keywords,A.case_insensitive)),je.keywordPatternRe=te(Rt,!0),_e&&(we.begin||(we.begin=/\B|\b/),je.beginRe=te(je.begin),!we.end&&!we.endsWithParent&&(we.end=/\B|\b/),we.end&&(je.endRe=te(je.end)),je.terminatorEnd=v(je.end)||"",we.endsWithParent&&_e.terminatorEnd&&(je.terminatorEnd+=(we.end?"|":"")+_e.terminatorEnd)),we.illegal&&(je.illegalRe=te(we.illegal)),we.contains||(we.contains=[]),we.contains=[].concat(...we.contains.map(function(gt){return qt(gt==="self"?we:gt)})),we.contains.forEach(function(gt){lt(gt,je)}),we.starts&&lt(we.starts,_e),je.matcher=et(je),je}if(A.compilerExtensions||(A.compilerExtensions=[]),A.contains&&A.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return A.classNameAliases=l(A.classNameAliases||{}),lt(A)}function Ut(A){return A?A.endsWithParent||Ut(A.starts):!1}function qt(A){return A.variants&&!A.cachedVariants&&(A.cachedVariants=A.variants.map(function(te){return l(A,{variants:null},te)})),A.cachedVariants?A.cachedVariants:Ut(A)?l(A,{starts:A.starts?l(A.starts):null}):Object.isFrozen(A)?l(A):A}var Dt="11.12.0";class ya extends Error{constructor(te,ye){super(te),this.name="HTMLInjectionError",this.html=ye}}const _n=r,Mn=l,Ie=Symbol("nomatch"),Gt=7,dn=function(A){const te=Object.create(null),ye=Object.create(null),ze=[];let et=!0;const lt="Could not find the language '{}', did you forget to load/include a language module?",we={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 je(fe){return _e.noHighlightRe.test(fe)}function Rt(fe){let Ne=fe.className+" ";Ne+=fe.parentNode?fe.parentNode.className:"";const qe=_e.languageDetectRe.exec(Ne);if(qe){const dt=tn(qe[1]);return dt||(Jt(lt.replace("{}",qe[1])),Jt("Falling back to no-highlight mode for this block.",fe)),dt?qe[1]:"no-highlight"}return Ne.split(/\s+/).find(dt=>je(dt)||tn(dt))}function gt(fe,Ne,qe){let dt="",kt="";typeof Ne=="object"?(dt=fe,qe=Ne.ignoreIllegals,kt=Ne.language):(vt("10.7.0","highlight(lang, code, ...args) has been deprecated."),vt("10.7.0",`Please use highlight(code, options) instead.
167
+ https://github.com/highlightjs/highlight.js/issues/2277`),kt=fe,dt=Ne),qe===void 0&&(qe=!0);const nn={code:dt,language:kt};Ht("before:highlight",nn);const pn=nn.result?nn.result:Sn(nn.language,nn.code,qe);return pn.code=nn.code,Ht("after:highlight",pn),pn}function Sn(fe,Ne,qe,dt){const kt=Object.create(null);function nn(ue,ve){return ue.keywords[ve]}function pn(){if(!Q.keywords){U.addText(W);return}let ue=0;Q.keywordPatternRe.lastIndex=0;let ve=Q.keywordPatternRe.exec(W),Le="";for(;ve;){Le+=W.substring(ue,ve.index);const Ve=an.case_insensitive?ve[0].toLowerCase():ve[0],We=nn(Q,Ve);if(We){const[ca,Gl]=We;if(U.addText(Le),Le="",kt[Ve]=(kt[Ve]||0)+1,kt[Ve]<=Gt&&(Te+=Gl),ca.startsWith("_"))Le+=ve[0];else{const Fs=an.classNameAliases[ca]||ca;jt(ve[0],Fs)}}else Le+=ve[0];ue=Q.keywordPatternRe.lastIndex,ve=Q.keywordPatternRe.exec(W)}Le+=W.substring(ue),U.addText(Le)}function Xt(){if(W==="")return;let ue=null;if(typeof Q.subLanguage=="string"){if(!te[Q.subLanguage]){U.addText(W);return}ue=Sn(Q.subLanguage,W,!0,N[Q.subLanguage]),N[Q.subLanguage]=ue._top}else ue=Qn(W,Q.subLanguage.length?Q.subLanguage:null);Q.relevance>0&&(Te+=ue.relevance),U.__addSublanguage(ue._emitter,ue.language)}function ht(){Q.subLanguage!=null?Xt():pn(),W=""}function jt(ue,ve){ue!==""&&(U.startScope(ve),U.addText(ue),U.endScope())}function nl(ue,ve){let Le=1;const Ve=ve.length-1;for(;Le<=Ve;){if(!ue._emit[Le]){Le++;continue}const We=an.classNameAliases[ue[Le]]||ue[Le],ca=ve[Le];We?jt(ca,We):(W=ca,pn(),W=""),Le++}}function ii(ue,ve){return ue.scope&&typeof ue.scope=="string"&&U.openNode(an.classNameAliases[ue.scope]||ue.scope),ue.beginScope&&(ue.beginScope._wrap?(jt(W,an.classNameAliases[ue.beginScope._wrap]||ue.beginScope._wrap),W=""):ue.beginScope._multi&&(nl(ue.beginScope,ve),W="")),Q=Object.create(ue,{parent:{value:Q}}),Q}function li(ue,ve,Le){let Ve=M(ue.endRe,Le);if(Ve){if(ue["on:end"]){const We=new a(ue);ue["on:end"](ve,We),We.isMatchIgnored&&(Ve=!1)}if(Ve){for(;ue.endsParent&&ue.parent;)ue=ue.parent;return ue}}if(ue.endsWithParent)return li(ue.parent,ve,Le)}function ja(ue){return Q.matcher.regexIndex===0?(W+=ue[0],1):(tt=!0,0)}function al(ue){const ve=ue[0],Le=ue.rule,Ve=new a(Le),We=[Le.__beforeBegin,Le["on:begin"]];for(const ca of We)if(ca&&(ca(ue,Ve),Ve.isMatchIgnored))return ja(ve);return Le.skip?W+=ve:(Le.excludeBegin&&(W+=ve),ht(),!Le.returnBegin&&!Le.excludeBegin&&(W=ve)),ii(Le,ue),Le.returnBegin?0:ve.length}function Dn(ue){const ve=ue[0],Le=Ne.substring(ue.index),Ve=li(Q,ue,Le);if(!Ve)return Ie;const We=Q;Q.endScope&&Q.endScope._wrap?(ht(),jt(ve,Q.endScope._wrap)):Q.endScope&&Q.endScope._multi?(ht(),nl(Q.endScope,ue)):We.skip?W+=ve:(We.returnEnd||We.excludeEnd||(W+=ve),ht(),We.excludeEnd&&(W=ve));do Q.scope&&U.closeNode(),!Q.skip&&!Q.subLanguage&&(Te+=Q.relevance),Q=Q.parent;while(Q!==Ve.parent);return Ve.starts&&ii(Ve.starts,ue),We.returnEnd?0:ve.length}function si(){const ue=[];for(let ve=Q;ve!==an;ve=ve.parent)ve.scope&&ue.unshift(ve.scope);ue.forEach(ve=>U.openNode(ve))}let Ba={};function ri(ue,ve){const Le=ve&&ve[0];if(W+=ue,Le==null)return ht(),0;if(Ba.type==="begin"&&ve.type==="end"&&Ba.index===ve.index&&Le===""){if(W+=Ne.slice(ve.index,ve.index+1),!et){const Ve=new Error(`0 width match regex (${fe})`);throw Ve.languageName=fe,Ve.badRule=Ba.rule,Ve}return 1}if(Ba=ve,ve.type==="begin")return al(ve);if(ve.type==="illegal"&&!qe){const Ve=new Error('Illegal lexeme "'+Le+'" for mode "'+(Q.scope||"<unnamed>")+'"');throw Ve.mode=Q,Ve}else if(ve.type==="end"){const Ve=Dn(ve);if(Ve!==Ie)return Ve}if(ve.type==="illegal"&&Le==="")return ve.index===Ne.length||(W+=`
168
+ `),1;if(He>1e5&&He>ve.index*3)throw new Error("potential infinite loop, way more iterations than matches");return W+=Le,Le.length}const an=tn(fe);if(!an)throw $e(lt.replace("{}",fe)),new Error('Unknown language: "'+fe+'"');const Ia=Cn(an);let Aa="",Q=dt||Ia;const N={},U=new _e.__emitter(_e);si();let W="",Te=0,Re=0,He=0,tt=!1;try{if(an.__emitTokens)an.__emitTokens(Ne,U);else{for(Q.matcher.considerAll();;){He++,tt?tt=!1:Q.matcher.considerAll(),Q.matcher.lastIndex=Re;const ue=Q.matcher.exec(Ne);if(!ue)break;const ve=Ne.substring(Re,ue.index),Le=ri(ve,ue);Re=ue.index+Le}ri(Ne.substring(Re))}return U.finalize(),Aa=U.toHTML(),{language:fe,value:Aa,relevance:Te,illegal:!1,_emitter:U,_top:Q}}catch(ue){if(ue.message&&ue.message.includes("Illegal"))return{language:fe,value:_n(Ne),illegal:!0,relevance:0,_illegalBy:{message:ue.message,index:Re,context:Ne.slice(Re-100,Re+100),mode:ue.mode,resultSoFar:Aa},_emitter:U};if(et)return{language:fe,value:_n(Ne),illegal:!1,relevance:0,errorRaised:ue,_emitter:U,_top:Q};throw ue}}function Vn(fe){const Ne={value:_n(fe),illegal:!1,relevance:0,_top:we,_emitter:new _e.__emitter(_e)};return Ne._emitter.addText(fe),Ne}function Qn(fe,Ne){Ne=Ne||_e.languages||Object.keys(te);const qe=Vn(fe),dt=Ne.filter(tn).filter(he).map(ht=>Sn(ht,fe,!1));dt.unshift(qe);const kt=dt.sort((ht,jt)=>{if(ht.relevance!==jt.relevance)return jt.relevance-ht.relevance;if(ht.language&&jt.language){if(tn(ht.language).supersetOf===jt.language)return 1;if(tn(jt.language).supersetOf===ht.language)return-1}return 0}),[nn,pn]=kt,Xt=nn;return Xt.secondBest=pn,Xt}function Zt(fe,Ne,qe){const dt=Ne&&ye[Ne]||qe;fe.classList.add("hljs"),fe.classList.add(`language-${dt}`)}function Ot(fe){let Ne=null;const qe=Rt(fe);if(je(qe))return;if(Ht("before:highlightElement",{el:fe,language:qe}),fe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",fe);return}if(fe.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(fe)),_e.throwUnescapedHTML))throw new ya("One of your code blocks includes unescaped HTML.",fe.innerHTML);Ne=fe;const dt=Ne.textContent,kt=qe?gt(dt,{language:qe,ignoreIllegals:!0}):Qn(dt);fe.innerHTML=kt.value,fe.dataset.highlighted="yes",Zt(fe,qe,kt.language),fe.result={language:kt.language,re:kt.relevance,relevance:kt.relevance},kt.secondBest&&(fe.secondBest={language:kt.secondBest.language,relevance:kt.secondBest.relevance}),Ht("after:highlightElement",{el:fe,result:kt,text:dt})}function en(fe){_e=Mn(_e,fe)}const ut=()=>{oa(),vt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function qn(){oa(),vt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ai=!1;function oa(){function fe(){oa()}if(document.readyState==="loading"){ai||window.addEventListener("DOMContentLoaded",fe,!1),ai=!0;return}document.querySelectorAll(_e.cssSelector).forEach(Ot)}function va(fe,Ne){let qe=null;try{qe=Ne(A)}catch(dt){if($e("Language definition for '{}' could not be registered.".replace("{}",fe)),et)$e(dt);else throw dt;qe=we}qe.name||(qe.name=fe),te[fe]=qe,qe.rawDefinition=Ne.bind(null,A),qe.aliases&&H(qe.aliases,{languageName:fe})}function Wn(fe){delete te[fe];for(const Ne of Object.keys(ye))ye[Ne]===fe&&delete ye[Ne]}function Ea(){return Object.keys(te)}function tn(fe){return fe=(fe||"").toLowerCase(),te[fe]||te[ye[fe]]}function H(fe,{languageName:Ne}){typeof fe=="string"&&(fe=[fe]),fe.forEach(qe=>{ye[qe.toLowerCase()]=Ne})}function he(fe){const Ne=tn(fe);return Ne&&!Ne.disableAutodetect}function xe(fe){fe["before:highlightBlock"]&&!fe["before:highlightElement"]&&(fe["before:highlightElement"]=Ne=>{fe["before:highlightBlock"](Object.assign({block:Ne.el},Ne))}),fe["after:highlightBlock"]&&!fe["after:highlightElement"]&&(fe["after:highlightElement"]=Ne=>{fe["after:highlightBlock"](Object.assign({block:Ne.el},Ne))})}function be(fe){xe(fe),ze.push(fe)}function Qe(fe){const Ne=ze.indexOf(fe);Ne!==-1&&ze.splice(Ne,1)}function Ht(fe,Ne){const qe=fe;ze.forEach(function(dt){dt[qe]&&dt[qe](Ne)})}function $t(fe){return vt("10.7.0","highlightBlock will be removed entirely in v12.0"),vt("10.7.0","Please use highlightElement now."),Ot(fe)}Object.assign(A,{highlight:gt,highlightAuto:Qn,highlightAll:oa,highlightElement:Ot,highlightBlock:$t,configure:en,initHighlighting:ut,initHighlightingOnLoad:qn,registerLanguage:va,unregisterLanguage:Wn,listLanguages:Ea,getLanguage:tn,registerAliases:H,autoDetection:he,inherit:Mn,addPlugin:be,removePlugin:Qe}),A.debugMode=function(){et=!1},A.safeMode=function(){et=!0},A.versionString=Dt,A.regex={concat:O,lookahead:S,either:k,optional:T,anyNumberOfTimes:w};for(const fe in Ge)typeof Ge[fe]=="object"&&s(Ge[fe]);return Object.assign(A,Ge),A},Kt=dn({});return Kt.newInstance=()=>dn({}),Lu=Kt,Kt.HighlightJS=Kt,Kt.default=Kt,Lu}var zu,cg;function y0(){if(cg)return zu;cg=1;function s(a){const r=a.regex,l=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,d={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},p={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},y=a.inherit(p,{begin:/\(/,end:/\)/}),g=a.inherit(a.APOS_STRING_MODE,{className:"string"}),m=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[d]},{begin:/'/,end:/'/,contains:[d]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[p,m,g,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[p,y,m,g]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},d,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(l,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return zu=s,zu}var Uu,ug;function v0(){if(ug)return Uu;ug=1;function s(a){const r=a.regex,l={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[l]}]};Object.assign(l,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const d={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},p=a.inherit(a.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),y={begin:/<<-?\s*(?=\w+)/,starts:{contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,l,d]};d.contains.push(g);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},S={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,l]},w=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],T=a.SHEBANG({binary:`(${w.join("|")})`,relevance:10}),O={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},x=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],k=["true","false"],B={match:/(\/[a-z._-]+)+/},M=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],ae=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],$=["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"],X=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:x,literal:k,built_in:[...M,...ae,"set","shopt",...$,...X]},contains:[T,a.SHEBANG(),O,S,p,y,B,g,m,b,v,l]}}return Uu=s,Uu}var ju,fg;function E0(){if(fg)return ju;fg=1;function s(a){const r=a.regex,l=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g=r.concat(/\batomic_/,r.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),m={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:g}]},v={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},S={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},w={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},l,a.C_BLOCK_COMMENT_MODE]},T={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(v,{className:"string"}),l,a.C_BLOCK_COMMENT_MODE]},O=[w,T],x={className:"title",begin:r.optional(d)+a.IDENT_RE,relevance:0},k=r.optional(d)+a.IDENT_RE+"\\s*\\(",B=12,$={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"},X=[...O,m,l,a.C_BLOCK_COMMENT_MODE,S,v],ie={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:$,contains:X.concat([{begin:/\(/,end:/\)/,keywords:$,contains:X.concat(["self"]),relevance:0}]),relevance:0},C={begin:"("+y+"[\\*&\\s]+){1,"+B+"}"+k,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:$,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:$,relevance:0},{begin:k,returnBegin:!0,contains:[a.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:[l,a.C_BLOCK_COMMENT_MODE,v,S,m,{begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:["self",l,a.C_BLOCK_COMMENT_MODE,v,S,m]}]},m,l,a.C_BLOCK_COMMENT_MODE,...O]};return{name:"C",aliases:["h"],keywords:$,disableAutodetect:!0,illegal:"</",contains:[].concat(ie,C,X,[...O,{begin:a.IDENT_RE+"::",keywords:$},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:T,strings:v,keywords:$}}}return ju=s,ju}var Bu,dg;function _0(){if(dg)return Bu;dg=1;function s(a){const r=a.regex,l=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},v={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},S={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},b,{scope:"string",begin:/<.*?>/},l,a.C_BLOCK_COMMENT_MODE]},w={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(b,{className:"string"}),l,a.C_BLOCK_COMMENT_MODE]},T=[S,w],O={className:"title",begin:r.optional(d)+a.IDENT_RE,relevance:0},x=r.optional(d)+a.IDENT_RE+"\\s*\\(",k=12,B=["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"],M=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],ae=["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"],$=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:M,keyword:B,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:ae},P={className:"function.dispatch",relevance:0,keywords:{_hint:$},begin:r.concat(/\b/,`(?!${B.join("|")})`,a.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},ee=[P,...T,g,l,a.C_BLOCK_COMMENT_MODE,v,b],Z={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:ee.concat([{begin:/\(/,end:/\)/,keywords:C,contains:ee.concat(["self"]),relevance:0}]),relevance:0},me={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+k+"}"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:C,relevance:0},{begin:x,returnBegin:!0,contains:[O],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[l,a.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",l,a.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,l,a.C_BLOCK_COMMENT_MODE,...T]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(Z,me,P,ee,[...T,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",g]},{begin:a.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Bu=s,Bu}var Iu,hg;function S0(){if(hg)return Iu;hg=1;function s(a){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],l=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],d=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],p=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],y={keyword:d.concat(p),built_in:r,literal:u},g=a.inherit(a.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",S={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+b},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+b},{begin:"(-?)(\\b"+m+"(\\.("+m+")?)?|\\."+m+")([eE][-+]?"+m+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},w={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},T={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},O=a.inherit(T,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:y},k=a.inherit(x,{illegal:/\n/}),B={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},a.BACKSLASH_ESCAPE,k]},M={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},ae=a.inherit(M,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},k]});x.contains=[M,B,T,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,S,a.C_BLOCK_COMMENT_MODE],k.contains=[ae,B,O,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,S,a.inherit(a.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const $={variants:[w,M,B,T,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},X={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},ie=a.IDENT_RE+"(<"+a.IDENT_RE+"(\\s*,\\s*"+a.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+a.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:y,illegal:/::/,contains:[a.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},$,S,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,X,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,X,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:"("+ie+"\\s+)+"+a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:l.join(" "),relevance:0},{begin:a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[a.TITLE_MODE,X],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[$,S,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},C]}}return Iu=s,Iu}var Hu,pg;function N0(){if(pg)return Hu;pg=1;const s=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=m.regex,v=s(m),S={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},w="and or not only",T=/@-?\w[\w]*(-\w+)*/,O="[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,S,v.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+O,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+d.join("|")+")"},{begin:":(:)?("+p.join("|")+")"}]},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[v.BLOCK_COMMENT,v.HEXCOLOR,v.IMPORTANT,v.CSS_NUMBER_MODE,v.UNICODE_RANGE,...x,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...x,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:T},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:w,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...x,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b"}]}}return Hu=g,Hu}var qu,mg;function w0(){if(mg)return qu;mg=1;function s(a){const r=a.regex,l={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},d={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},p={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},y={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},v={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},S=a.inherit(b,{contains:[]}),w=a.inherit(v,{contains:[]});b.contains.push(w),v.contains.push(S);let T=[l,m];return[b,v,S,w].forEach(B=>{B.contains=B.contains.concat(T)}),T=T.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:T},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:T}]}]},l,p,u,b,v,{className:"quote",begin:"^>\\s+",contains:T,end:"$"},d,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return qu=s,qu}var Gu,gg;function T0(){if(gg)return Gu;gg=1;function s(a){const r=a.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Gu=s,Gu}var $u,bg;function x0(){if(bg)return $u;bg=1;function s(a){const r=a.regex,l="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),d=r.concat(u,/(::\w+)*/),y={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},b=[a.COMMENT("#","$",{contains:[g]}),a.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),a.COMMENT("^__END__",a.MATCH_NOTHING_RE)],v={className:"subst",begin:/#\{/,end:/\}/,keywords:y},S={className:"string",contains:[a.BACKSLASH_ESCAPE,v],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[a.BACKSLASH_ESCAPE,v]})]}]},w="[1-9](_?[0-9])*|0",T="[0-9](_?[0-9])*",O={className:"number",relevance:0,variants:[{begin:`\\b(${w})(\\.(${T}))?([eE][+-]?(${T})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},x={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},ie=[S,{variants:[{match:[/class\s+/,d,/\s+<\s+/,d]},{match:[/\b(class|module)\s+/,d]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,d],scope:{2:"title.class"},keywords:y},{relevance:0,match:[d,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:u,scope:"title.class"},{match:[/def/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[x]},{begin:"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[S,{begin:l}],relevance:0},O,{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=ie,x.contains=ie;const Z=[{begin:/^\s*=>/,starts:{end:"$",contains:ie}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:ie}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(Z).concat(b).concat(ie)}}return $u=s,$u}var Yu,yg;function A0(){if(yg)return Yu;yg=1;function s(a){const p={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:p,illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"string",variants:[a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[a.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,illegal:/["']/}]}]}}return Yu=s,Yu}var Fu,vg;function R0(){if(vg)return Fu;vg=1;function s(a){const r=a.regex,l=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[a.HASH_COMMENT_MODE,a.QUOTE_STRING_MODE,a.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(l,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Fu=s,Fu}var Pu,Eg;function O0(){if(Eg)return Pu;Eg=1;function s(a){const r=a.regex,l={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},u=a.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const d={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},p={className:"literal",begin:/\bon|off|true|false|yes|no\b/},y={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[u,p,d,y,l,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,S=r.either(m,b,v),w=r.concat(S,"(\\s*\\.\\s*",S,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[u,{className:"section",begin:/\[+/,end:/\]+/},{begin:w,className:"attr",starts:{end:/$/,contains:[u,g,p,d,y,l]}}]}}return Pu=s,Pu}var Ku,_g;function k0(){if(_g)return Ku;_g=1;var s="[0-9](_*[0-9])*",a=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${a})|\\.)?|(${a}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(p,y,g){return g===-1?"":p.replace(y,m=>u(p,y,g-1))}function d(p){const y=p.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=g+"<@@@>"+m,S="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",w=u("(?:\\s*<\\s*"+S+"(?:\\s*,\\s*"+S+")*\\s*>)?",/<@@@>/g,2),B={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"]},M={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},ae={className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[p.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:B,illegal:/<\/|#/,contains:[p.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[p.BACKSLASH_ESCAPE]},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,g],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[g,y.concat(w,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[ae,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(w,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:B,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[M,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,l,p.C_BLOCK_COMMENT_MODE]},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},l,M]}}return Ku=d,Ku}var Zu,Sg;function C0(){if(Sg)return Zu;Sg=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],l=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],d=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(d,l,u);function g(m){const b=m.regex,v=(ge,{after:Oe})=>{const Me="</"+ge[0].slice(1);return ge.input.indexOf(Me,Oe)!==-1},S=s,w={begin:"<>",end:"</>"},T=/<[A-Za-z0-9\\._:-]+\s*\/>/,O={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ge,Oe)=>{const Me=ge[0].length+ge.index,Ge=ge.input[Me];if(Ge==="<"||Ge===","){Oe.ignoreMatch();return}Ge===">"&&(v(ge,{after:Me})||Oe.ignoreMatch());let Fe;const Ce=ge.input.substring(Me);if(Fe=Ce.match(/^\s*=/)){Oe.ignoreMatch();return}if((Fe=Ce.match(/^\s+extends\s+/))&&Fe.index===0){Oe.ignoreMatch();return}}},x={$pattern:s,keyword:a,literal:r,built_in:y,"variable.language":p},k="[0-9](_?[0-9])*",B=`\\.(${k})`,M="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",ae={className:"number",variants:[{begin:`(\\b(${M})((${B})|\\.)?|(${B}))[eE][+-]?(${k})\\b`},{begin:`\\b(${M})\\b((${B})\\b|\\.)?|(${B})\\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},$={className:"subst",begin:"\\$\\{",end:"\\}",keywords:x,contains:[]},X={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,$],subLanguage:"xml"}},ie={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,$],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,$],subLanguage:"graphql"}},P={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,$]},Z={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+"(?=\\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,X,ie,C,P,{match:/\$\d+/},ae];$.contains=me.concat({begin:/\{/,end:/\}/,keywords:x,contains:["self"].concat(me)});const ce=[].concat(Z,$.contains),Ee=ce.concat([{begin:/(\s*)\(/,end:/\)/,keywords:x,contains:["self"].concat(ce)}]),J={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:Ee},z={variants:[{match:[/class/,/\s+/,S,/\s+/,/extends/,/\s+/,b.concat(S,"(",b.concat(/\./,S),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,S],scope:{1:"keyword",3:"title.class"}}]},le={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},pe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Se={variants:[{match:[/function/,/\s+/,S,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[J],illegal:/%/},De={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function _(ge){return b.concat("(?!",ge.join("|"),")")}const L={match:b.concat(/\b/,_([...d,"super","import","await"].map(ge=>`${ge}\\s*\\(`)),S,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},I={begin:b.concat(/\./,b.lookahead(b.concat(S,/(?![0-9A-Za-z$_(])/))),end:S,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},re={match:[/get|set/,/\s+/,S,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},J]},K="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",de={match:[/const|var|let/,/\s+/,S,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(K)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[J]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:x,exports:{PARAMS_CONTAINS:Ee,CLASS_REFERENCE:le},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),pe,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,X,ie,C,P,Z,{match:/\$\d+/},ae,le,{scope:"attr",match:S+b.lookahead(":"),relevance:0},de,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Z,m.REGEXP_MODE,{className:"function",begin:K,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:Ee}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:w.begin,end:w.end},{match:T},{begin:O.begin,"on:begin":O.isTrulyOpeningTag,end:O.end}],subLanguage:"xml",contains:[{begin:O.begin,end:O.end,skip:!0,contains:["self"]}]}]},Se,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[J,m.inherit(m.TITLE_MODE,{begin:S,className:"title.function"})]},{match:/\.\.\./,relevance:0},I,{match:"\\$"+S,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[J]},L,De,z,re,{match:/\$[(.]/}]}}return Zu=g,Zu}var Xu,Ng;function M0(){if(Ng)return Xu;Ng=1;const a={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(l){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},d={match:/[{}[\],:]/,className:"punctuation",relevance:0},p=["true","false","null"],y={scope:"literal",beginKeywords:p.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:p},contains:[u,d,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,a,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Xu=r,Xu}var Vu,wg;function D0(){if(wg)return Vu;wg=1;var s="[0-9](_*[0-9])*",a=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${a})|\\.)?|(${a}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(d){const p={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},y={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},g={className:"symbol",begin:d.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[d.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+d.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[d.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[d.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const S={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+d.UNDERSCORE_IDENT_RE+")?"},w={className:"meta",begin:"@"+d.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[d.inherit(v,{className:"string"}),"self"]}]},T=l,O=d.COMMENT("/\\*","\\*/",{contains:[d.C_BLOCK_COMMENT_MODE]}),x={variants:[{className:"type",begin:d.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},k=x;return k.variants[1].contains=[x],x.variants[1].contains=[k],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:p,contains:[d.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),d.C_LINE_COMMENT_MODE,O,y,g,S,w,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:p,relevance:5,contains:[{begin:d.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[d.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[x,d.C_LINE_COMMENT_MODE,O],relevance:0},d.C_LINE_COMMENT_MODE,O,S,w,v,d.C_NUMBER_MODE]},O]},{begin:[/class|interface|trait/,/\s+/,d.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},d.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},S,w]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
169
+ `},T]}}return Vu=u,Vu}var Qu,Tg;function L0(){if(Tg)return Qu;Tg=1;const s=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),g=d.concat(p).sort().reverse();function m(b){const v=s(b),S=g,w="and or not only",T="[\\w-]+",O="("+T+"|@\\{"+T+"\\})",x=[],k=[],B=function(ce){return{className:"string",begin:"~?"+ce+".*?"+ce}},M=function(ce,Ee,J){return{className:ce,begin:Ee,relevance:J}},ae={$pattern:/[a-z-]+/,keyword:w,attribute:u.join(" ")},$={begin:"\\(",end:"\\)",contains:k,keywords:ae,relevance:0};k.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,B("'"),B('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,$,M("variable","@@?"+T,10),M("variable","@\\{"+T+"\\}"),M("built_in","~?`[^`]*?`"),{className:"attribute",begin:T+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const X=k.concat({begin:/\{/,end:/\}/,contains:x}),ie={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(k)},C={begin:O+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:k}}]},P={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:ae,returnEnd:!0,contains:k,relevance:0}},ee={className:"variable",variants:[{begin:"@"+T+"\\s*:",relevance:15},{begin:"@"+T}],starts:{end:"[;}]",returnEnd:!0,contains:X}},Z={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:O,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,ie,M("keyword","all\\b"),M("variable","@\\{"+T+"\\}"),{begin:"\\b("+l.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,M("selector-tag",O,0),M("selector-id","#"+O),M("selector-class","\\."+O,0),M("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+d.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:X},{begin:"!important"},v.FUNCTION_DISPATCH]},me={begin:T+`:(:)?(${S.join("|")})`,returnBegin:!0,contains:[Z]};return x.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,P,ee,me,C,Z,ie,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:x}}return Qu=m,Qu}var Wu,xg;function z0(){if(xg)return Wu;xg=1;function s(a){const r="\\[=*\\[",l="\\]=*\\]",u={begin:r,end:l,contains:["self"]},d=[a.COMMENT("--(?!"+r+")","$"),a.COMMENT("--"+r,l,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:a.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:d.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[a.inherit(a.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:d}].concat(d)},a.C_NUMBER_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:r,end:l,contains:[u],relevance:5}])}}return Wu=s,Wu}var Ju,Ag;function U0(){if(Ag)return Ju;Ag=1;function s(a){const r={className:"variable",variants:[{begin:"\\$\\("+a.UNDERSCORE_IDENT_RE+"\\)",contains:[a.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},l={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,r]},u={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,l]},d={begin:"^"+a.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},p={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},y={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[a.HASH_COMMENT_MODE,r,l,u,d,p,y]}}return Ju=s,Ju}var ef,Rg;function j0(){if(Rg)return ef;Rg=1;function s(a){const r=a.regex,l=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,d={$pattern:/[\w.]+/,keyword:l.join(" ")},p={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:d},y={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},b={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},v=[a.BACKSLASH_ESCAPE,p,m],S=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],w=(x,k,B="\\1")=>{const M=B==="\\1"?B:r.concat(B,k);return r.concat(r.concat("(?:",x,")"),k,/(?:\\.|[^\\\/])*?/,M,/(?:\\.|[^\\\/])*?/,B,u)},T=(x,k,B)=>r.concat(r.concat("(?:",x,")"),k,/(?:\\.|[^\\\/])*?/,B,u),O=[m,a.HASH_COMMENT_MODE,a.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),y,{className:"string",contains:v,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},b,{begin:"(\\/\\/|"+a.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[a.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:w("s|tr|y",r.either(...S,{capture:!0}))},{begin:w("s|tr|y","\\(","\\)")},{begin:w("s|tr|y","\\[","\\]")},{begin:w("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:T("(?:m|qr)?",/\//,/\//)},{begin:T("m|qr",r.either(...S,{capture:!0}),/\1/)},{begin:T("m|qr",/\(/,/\)/)},{begin:T("m|qr",/\[/,/\]/)},{begin:T("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return p.contains=O,y.contains=O,{name:"Perl",aliases:["pl","pm"],keywords:d,contains:O}}return ef=s,ef}var tf,Og;function B0(){if(Og)return tf;Og=1;function s(a){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},l=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:l,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:l,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:g,illegal:"</",contains:[r,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.C_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[a.UNDERSCORE_TITLE_MODE]},{begin:"\\."+a.UNDERSCORE_IDENT_RE,relevance:0}]}}return tf=s,tf}var nf,kg;function I0(){if(kg)return nf;kg=1;function s(a){const r=a.regex,l=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,l),d=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,l),p=r.concat(/[A-Z]+/,l),y={scope:"variable",match:"\\$+"+u},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=a.inherit(a.APOS_STRING_MODE,{illegal:null}),v=a.inherit(a.QUOTE_STRING_MODE,{illegal:null,contains:a.QUOTE_STRING_MODE.contains.concat(m)}),S={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:a.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(J,z)=>{z.data._beginMatch=J[1]||J[2]},"on:end":(J,z)=>{z.data._beginMatch!==J[1]&&z.ignoreMatch()}},w=a.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),T=`[
170
+ ]`,O={scope:"string",variants:[v,b,S,w]},x={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},k=["false","null","true"],B=["__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"],M=["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"],$={keyword:B,literal:(J=>{const z=[];return J.forEach(le=>{z.push(le),le.toLowerCase()===le?z.push(le.toUpperCase()):z.push(le.toLowerCase())}),z})(k),built_in:M},X=J=>J.map(z=>z.replace(/\|\d+$/,"")),ie={variants:[{match:[/new/,r.concat(T,"+"),r.concat("(?!",X(M).join("\\b|"),"\\b)"),d],scope:{1:"keyword",4:"title.class"}}]},C=r.concat(u,"\\b(?!\\()"),P={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),C],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[d,r.concat(/::/,r.lookahead(/(?!class\b)/)),C],scope:{1:"title.class",3:"variable.constant"}},{match:[d,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[d,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ee={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},Z={relevance:0,begin:/\(/,end:/\)/,keywords:$,contains:[ee,y,P,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,O,x,ie]},me={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",X(B).join("\\b|"),"|",X(M).join("\\b|"),"\\b)"),u,r.concat(T,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[Z]};Z.contains.push(me);const ce=[ee,P,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,O,x,ie],Ee={begin:r.concat(/#\[\s*\\?/,r.either(d,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:k,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:k,keyword:["new","array"]},contains:["self",...ce]},...ce,{scope:"meta",variants:[{match:d},{match:p}]}]};return{case_insensitive:!1,keywords:$,contains:[Ee,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,P,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},ie,{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:$,contains:["self",Ee,y,P,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,O,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]},O,x]}}return nf=s,nf}var af,Cg;function H0(){if(Cg)return af;Cg=1;function s(a){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},a.inherit(a.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),a.inherit(a.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return af=s,af}var lf,Mg;function q0(){if(Mg)return lf;Mg=1;function s(a){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return lf=s,lf}var sf,Dg;function G0(){if(Dg)return sf;Dg=1;function s(a){const r=a.regex,l=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],g={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},v={begin:/\{\{/,relevance:0},S={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,m,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m,v,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[a.BACKSLASH_ESCAPE,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,v,b]},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},w="[0-9](_?[0-9])*",T=`(\\b(${w}))?\\.(${w})|\\b(${w})\\.`,O=`\\b|${u.join("|")}`,x={className:"number",relevance:0,variants:[{begin:`(\\b(${w})|(${T}))[eE][+-]?(${w})[jJ]?(?=${O})`},{begin:`(${T})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${O})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${O})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${O})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${O})`},{begin:`\\b(${w})[jJ](?=${O})`}]},k={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},B={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,x,S,a.HASH_COMMENT_MODE]}]};return b.contains=[S,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"},S,k,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[B]},{variants:[{match:[/\bclass/,/\s+/,l,/\s*/,/\(\s*/,l,/\s*\)/]},{match:[/\bclass/,/\s+/,l]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[x,B,S]}]}}return sf=s,sf}var rf,Lg;function $0(){if(Lg)return rf;Lg=1;function s(a){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return rf=s,rf}var of,zg;function Y0(){if(zg)return of;zg=1;function s(a){const r=a.regex,l=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),d=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,p=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:l,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[a.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:l},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),a.HASH_COMMENT_MODE,{scope:"string",contains:[a.BACKSLASH_ESCAPE],variants:[a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[d,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[p,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[l,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:d},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:p},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return of=s,of}var cf,Ug;function F0(){if(Ug)return cf;Ug=1;function s(a){const r=a.regex,l=/(r#)?/,u=r.concat(l,a.UNDERSCORE_IDENT_RE),d=r.concat(l,a.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,d,r.lookahead(/\s*\(/))},y="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],v=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:a.IDENT_RE+"!?",type:v,keyword:g,literal:m,built_in:b},illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.COMMENT("/\\*","\\*/",{contains:["self"]}),a.inherit(a.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+y},{begin:"\\b0o([0-7_]+)"+y},{begin:"\\b0x([A-Fa-f0-9_]+)"+y},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+y}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,u],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,u,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:a.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:v}},{scope:"punctuation",begin:"->"},p]}}return cf=s,cf}var uf,jg;function P0(){if(jg)return uf;jg=1;const s=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=s(m),v=p,S=d,w="@[a-z-]+",T="and or not only",x={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+S.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},x,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,x,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:w,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},contains:[{begin:w,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},x,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return uf=g,uf}var ff,Bg;function K0(){if(Bg)return ff;Bg=1;function s(a){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return ff=s,ff}var df,Ig;function Z0(){if(Ig)return df;Ig=1;function s(a){const r=a.regex,l=a.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},d={begin:/"/,end:/"/,contains:[{match:/""/}]},p=["true","false","unknown"],y=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],v=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],S=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],w=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],T=v,O=[...b,...m].filter(X=>!v.includes(X)),x={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},k={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},B={match:r.concat(/\b/,r.either(...T),/\s*\(/),relevance:0,keywords:{built_in:T}};function M(X){return r.concat(/\b/,r.either(...X.map(ie=>ie.replace(/\s+/,"\\s+"))),/\b/)}const ae={scope:"keyword",match:M(w),relevance:0};function $(X,{exceptions:ie,when:C}={}){const P=C;return ie=ie||[],X.map(ee=>ee.match(/\|\d+$/)||ie.includes(ee)?ee:P(ee)?`${ee}|0`:ee)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:$(O,{when:X=>X.length<3}),literal:p,type:g,built_in:S},contains:[{scope:"type",match:M(y)},ae,B,x,u,d,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,l,k]}}return df=s,df}var hf,Hg;function X0(){if(Hg)return hf;Hg=1;function s(C){return C?typeof C=="string"?C:C.source:null}function a(C){return r("(?=",C,")")}function r(...C){return C.map(ee=>s(ee)).join("")}function l(C){const P=C[C.length-1];return typeof P=="object"&&P.constructor===Object?(C.splice(C.length-1,1),P):{}}function u(...C){return"("+(l(C).capture?"":"?:")+C.map(Z=>s(Z)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const d=C=>r(/\b/,C,/\w$/.test(C)?/\b/:/\B/),p=["Protocol","Type"].map(d),y=["init","self"].map(d),g=["Any","Self"],m=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],b=["false","nil","true"],v=["assignment","associativity","higherThan","left","lowerThan","none","right"],S=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],w=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],T=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),O=u(T,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),x=r(T,O,"*"),k=u(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),B=u(k,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),M=r(k,B,"*"),ae=r(/[A-Z]/,B,"*"),$=["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\(/,M,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],X=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ie(C){const P={match:/\s+/,relevance:0},ee=C.COMMENT("/\\*","\\*/",{contains:["self"]}),Z=[C.C_LINE_COMMENT_MODE,ee],me={match:[/\./,u(...p,...y)],className:{2:"keyword"}},ce={match:r(/\./,u(...m)),relevance:0},Ee=m.filter(Ie=>typeof Ie=="string").concat(["_|0"]),J=m.filter(Ie=>typeof Ie!="string").concat(g).map(d),z={variants:[{className:"keyword",match:u(...J,...y)}]},le={$pattern:u(/\b\w+/,/#\w+/),keyword:Ee.concat(S),literal:b},pe=[me,ce,z],Se={match:r(/\./,u(...w)),relevance:0},De={className:"built_in",match:r(/\b/,u(...w),/(?=\()/)},_=[Se,De],L={match:/->/,relevance:0},I={className:"operator",relevance:0,variants:[{match:x},{match:`\\.(\\.|${O})+`}]},re=[L,I],K="([0-9]_*)+",de="([0-9a-fA-F]_*)+",ge={className:"number",relevance:0,variants:[{match:`\\b(${K})(\\.(${K}))?([eE][+-]?(${K}))?\\b`},{match:`\\b0x(${de})(\\.(${de}))?([pP][+-]?(${K}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Oe=(Ie="")=>({className:"subst",variants:[{match:r(/\\/,Ie,/[0\\tnr"']/)},{match:r(/\\/,Ie,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Me=(Ie="")=>({className:"subst",match:r(/\\/,Ie,/[\t ]*(?:[\r\n]|\r\n)/)}),Ge=(Ie="")=>({className:"subst",label:"interpol",begin:r(/\\/,Ie,/\(/),end:/\)/}),Fe=(Ie="")=>({begin:r(Ie,/"""/),end:r(/"""/,Ie),contains:[Oe(Ie),Me(Ie),Ge(Ie)]}),Ce=(Ie="")=>({begin:r(Ie,/"/),end:r(/"/,Ie),contains:[Oe(Ie),Ge(Ie)]}),Ct={className:"string",variants:[Fe(),Fe("#"),Fe("##"),Fe("###"),Ce(),Ce("#"),Ce("##"),Ce("###")]},Pe=[C.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[C.BACKSLASH_ESCAPE]}],In={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Pe},Je=Ie=>{const Gt=r(Ie,/\//),dn=r(/\//,Ie);return{begin:Gt,end:dn,contains:[...Pe,{scope:"comment",begin:`#(?!.*${dn})`,end:/$/}]}},St={scope:"regexp",variants:[Je("###"),Je("##"),Je("#"),In]},On={match:r(/`/,M,/`/)},Mt={className:"variable",match:/\$\d+/},It={className:"variable",match:`\\$${B}+`},ct=[On,Mt,It],Hn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:X,contains:[...re,ge,Ct]}]}},Zn={scope:"keyword",match:r(/@/,u(...$),a(u(/\(/,/\s+/)))},$e={scope:"meta",match:r(/@/,M)},Jt=[Hn,Zn,$e],vt={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)/,B,"+")},{className:"type",match:ae,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,a(ae)),relevance:0}]},yn={begin:/</,end:/>/,keywords:le,contains:[...Z,...pe,...Jt,L,vt]};vt.contains.push(yn);const vn={match:r(M,/\s*:/),keywords:"_|0",relevance:0},kn={begin:/\(/,end:/\)/,relevance:0,keywords:le,contains:["self",vn,...Z,St,...pe,..._,...re,ge,Ct,...ct,...Jt,vt]},En={begin:/</,end:/>/,keywords:"repeat each",contains:[...Z,vt]},Xn={begin:u(a(r(M,/\s*:/)),a(r(M,/\s+/,M,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:M}]},ra={begin:/\(/,end:/\)/,keywords:le,contains:[Xn,...Z,...pe,...re,ge,Ct,...Jt,vt,kn],endsParent:!0,illegal:/["']/},Cn={match:[/(func|macro)/,/\s+/,u(On.match,M,x)],className:{1:"keyword",3:"title.function"},contains:[En,ra,P],illegal:[/\[/,/%/]},Ut={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[En,ra,P],illegal:/\[|%/},qt={match:[/operator/,/\s+/,x],className:{1:"keyword",3:"title"}},Dt={begin:[/precedencegroup/,/\s+/,ae],className:{1:"keyword",3:"title"},contains:[vt],keywords:[...v,...b],end:/}/},ya={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+/,M,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:le,contains:[En,...pe,{begin:/:/,end:/\{/,keywords:le,contains:[{scope:"title.class.inherited",match:ae},...pe],relevance:0}]};for(const Ie of Ct.variants){const Gt=Ie.contains.find(Kt=>Kt.label==="interpol");Gt.keywords=le;const dn=[...pe,..._,...re,ge,Ct,...ct];Gt.contains=[...dn,{begin:/\(/,end:/\)/,contains:["self",...dn]}]}return{name:"Swift",keywords:le,contains:[...Z,Cn,Ut,ya,_n,Mn,qt,Dt,{beginKeywords:"import",end:/$/,contains:[...Z],relevance:0},St,...pe,..._,...re,ge,Ct,...ct,...Jt,vt,kn]}}return hf=ie,hf}var pf,qg;function V0(){if(qg)return pf;qg=1;function s(a){const r="true false yes no null",l="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},d={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},p={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},y={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[a.BACKSLASH_ESCAPE,d]},g=a.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),w={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},T={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},O={begin:/\{/,end:/\}/,contains:[T],illegal:"\\n",relevance:0},x={begin:"\\[",end:"\\]",contains:[T],illegal:"\\n",relevance:0},k=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+l},{className:"type",begin:"!<"+l+">"},{className:"type",begin:"!"+l},{className:"type",begin:"!!"+l},{className:"meta",begin:"&"+a.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+a.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},a.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},w,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},O,x,p,y],B=[...k];return B.pop(),B.push(g),T.contains=B,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:k}}return pf=s,pf}var mf,Gg;function Q0(){if(Gg)return mf;Gg=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],l=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],d=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(d,l,u);function g(b){const v=b.regex,S=(Oe,{after:Me})=>{const Ge="</"+Oe[0].slice(1);return Oe.input.indexOf(Ge,Me)!==-1},w=s,T={begin:"<>",end:"</>"},O=/<[A-Za-z0-9\\._:-]+\s*\/>/,x={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Oe,Me)=>{const Ge=Oe[0].length+Oe.index,Fe=Oe.input[Ge];if(Fe==="<"||Fe===","){Me.ignoreMatch();return}Fe===">"&&(S(Oe,{after:Ge})||Me.ignoreMatch());let Ce;const Ct=Oe.input.substring(Ge);if(Ce=Ct.match(/^\s*=/)){Me.ignoreMatch();return}if((Ce=Ct.match(/^\s+extends\s+/))&&Ce.index===0){Me.ignoreMatch();return}}},k={$pattern:s,keyword:a,literal:r,built_in:y,"variable.language":p},B="[0-9](_?[0-9])*",M=`\\.(${B})`,ae="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",$={className:"number",variants:[{begin:`(\\b(${ae})((${M})|\\.)?|(${M}))[eE][+-]?(${B})\\b`},{begin:`\\b(${ae})\\b((${M})\\b|\\.)?|(${M})\\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},X={className:"subst",begin:"\\$\\{",end:"\\}",keywords:k,contains:[]},ie={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,X],subLanguage:"xml"}},C={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,X],subLanguage:"css"}},P={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,X],subLanguage:"graphql"}},ee={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,X]},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:w+"(?=\\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,ie,C,P,ee,{match:/\$\d+/},$];X.contains=ce.concat({begin:/\{/,end:/\}/,keywords:k,contains:["self"].concat(ce)});const Ee=[].concat(me,X.contains),J=Ee.concat([{begin:/(\s*)\(/,end:/\)/,keywords:k,contains:["self"].concat(Ee)}]),z={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:k,contains:J},le={variants:[{match:[/class/,/\s+/,w,/\s+/,/extends/,/\s+/,v.concat(w,"(",v.concat(/\./,w),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,w],scope:{1:"keyword",3:"title.class"}}]},pe={relevance:0,match:v.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},Se={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},De={variants:[{match:[/function/,/\s+/,w,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[z],illegal:/%/},_={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(Oe){return v.concat("(?!",Oe.join("|"),")")}const I={match:v.concat(/\b/,L([...d,"super","import","await"].map(Oe=>`${Oe}\\s*\\(`)),w,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},re={begin:v.concat(/\./,v.lookahead(v.concat(w,/(?![0-9A-Za-z$_(])/))),end:w,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,w,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},z]},de="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",ge={match:[/const|var|let/,/\s+/,w,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(de)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[z]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:k,exports:{PARAMS_CONTAINS:J,CLASS_REFERENCE:pe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),Se,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ie,C,P,ee,me,{match:/\$\d+/},$,pe,{scope:"attr",match:w+v.lookahead(":"),relevance:0},ge,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[me,b.REGEXP_MODE,{className:"function",begin:de,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:b.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:k,contains:J}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:T.begin,end:T.end},{match:O},{begin:x.begin,"on:begin":x.isTrulyOpeningTag,end:x.end}],subLanguage:"xml",contains:[{begin:x.begin,end:x.end,skip:!0,contains:["self"]}]}]},De,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[z,b.inherit(b.TITLE_MODE,{begin:w,className:"title.function"})]},{match:/\.\.\./,relevance:0},re,{match:"\\$"+w,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[z]},I,_,le,K,{match:/\$[(.]/}]}}function m(b){const v=b.regex,S=g(b),w=s,T=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],O={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},x={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:T},contains:[S.exports.CLASS_REFERENCE]},k={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},B=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],M={$pattern:s,keyword:a.concat(B),literal:r,built_in:y.concat(T),"variable.language":p},ae={className:"meta",begin:"@"+w},$=(P,ee,Z)=>{const me=P.contains.findIndex(ce=>ce.label===ee);if(me===-1)throw new Error("can not find mode to replace");P.contains.splice(me,1,Z)};Object.assign(S.keywords,M),S.exports.PARAMS_CONTAINS.push(ae);const X=S.contains.find(P=>P.scope==="attr"),ie=Object.assign({},X,{match:v.concat(w,v.lookahead(/\s*\?:/))});S.exports.PARAMS_CONTAINS.push([S.exports.CLASS_REFERENCE,X,ie]),S.contains=S.contains.concat([ae,O,x,ie]),$(S,"shebang",b.SHEBANG()),$(S,"use_strict",k);const C=S.contains.find(P=>P.label==="func.def");return C.relevance=0,Object.assign(S,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),S}return mf=m,mf}var gf,$g;function W0(){if($g)return gf;$g=1;function s(a){const r=a.regex,l={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},d=/\d{1,2}\/\d{1,2}\/\d{4}/,p=/\d{4}-\d{1,2}-\d{1,2}/,y=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:r.concat(/# */,r.either(p,d),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(p,d),/ +/,r.either(y,g),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},v={className:"label",begin:/^\w+:/},S=a.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),w=a.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[l,u,m,b,v,S,w,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[w]}]}}return gf=s,gf}var bf,Yg;function J0(){if(Yg)return bf;Yg=1;function s(a){a.regex;const r=a.COMMENT(/\(;/,/;\)/);r.contains.push("self");const l=a.COMMENT(/;;/,/$/),u=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],d={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},p={className:"variable",begin:/\$[\w_]+/},y={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[l,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,y,d,a.QUOTE_STRING_MODE,m,b,g]}}return bf=s,bf}var yf,Fg;function eS(){if(Fg)return yf;Fg=1;var s=b0();return s.registerLanguage("xml",y0()),s.registerLanguage("bash",v0()),s.registerLanguage("c",E0()),s.registerLanguage("cpp",_0()),s.registerLanguage("csharp",S0()),s.registerLanguage("css",N0()),s.registerLanguage("markdown",w0()),s.registerLanguage("diff",T0()),s.registerLanguage("ruby",x0()),s.registerLanguage("go",A0()),s.registerLanguage("graphql",R0()),s.registerLanguage("ini",O0()),s.registerLanguage("java",k0()),s.registerLanguage("javascript",C0()),s.registerLanguage("json",M0()),s.registerLanguage("kotlin",D0()),s.registerLanguage("less",L0()),s.registerLanguage("lua",z0()),s.registerLanguage("makefile",U0()),s.registerLanguage("perl",j0()),s.registerLanguage("objectivec",B0()),s.registerLanguage("php",I0()),s.registerLanguage("php-template",H0()),s.registerLanguage("plaintext",q0()),s.registerLanguage("python",G0()),s.registerLanguage("python-repl",$0()),s.registerLanguage("r",Y0()),s.registerLanguage("rust",F0()),s.registerLanguage("scss",P0()),s.registerLanguage("shell",K0()),s.registerLanguage("sql",Z0()),s.registerLanguage("swift",X0()),s.registerLanguage("yaml",V0()),s.registerLanguage("typescript",Q0()),s.registerLanguage("vbnet",W0()),s.registerLanguage("wasm",J0()),s.HighlightJS=s,s.default=s,yf=s,yf}var tS=eS();const Xf=Ab(tS),nS={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},aS=2e5,Pb="http://www.w3.org/1999/xhtml";function iS(s){for(const a of s.querySelectorAll(".d2h-file-wrapper")){const r=lS(a.dataset.lang??"");if(r)for(const l of sS(a))Pg(l.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Pg(l.filter(u=>u.kind!=="del"),()=>!0,r)}}function lS(s){const a=nS[s]??g0(s);return a==="plaintext"||!Xf.getLanguage(a)?null:a}function sS(s){const a=[];let r=[];for(const l of s.querySelectorAll(".d2h-diff-tbody > tr")){const u=l.querySelector("td:last-child"),d=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!d){r.length&&a.push(r),r=[];continue}const p=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:p,ctn:d})}return r.length&&a.push(r),a}function Pg(s,a,r){if(s.filter(a).length===0)return;const u=s.map(y=>y.ctn.textContent??"").join(`
171
+ `);if(!u.trim()||u.length>aS)return;const d=oS(u)&&cS(r)?`/**
172
+ `:"",p=fS(Xf.highlight(d+u,{language:r,ignoreIllegals:!0}).value).slice(d?1:0);s.forEach((y,g)=>{const m=p[g];m===void 0||!a(y)||uS(y.ctn,m)})}const rS=/(^|\s)\*\//m,Kg=/^\s*\*(\s|$)/;function oS(s){const a=s.search(rS);if(a===-1){const l=s.split(`
173
+ `).filter(u=>u.trim());return l.length>0&&l.every(u=>Kg.test(u))}return s.slice(0,a).split(`
174
+ `).every(l=>Kg.test(l)||!l.includes("/*"))}function cS(s){return Xf.highlight("/* */",{language:s,ignoreIllegals:!0}).value.startsWith('<span class="hljs-comment">')}function uS(s,a){const r=rg(s);let l=a;if(r.length){const u=document.createElementNS(Pb,"div");u.innerHTML=a,l=p0(r,rg(u),s.textContent??"")}s.classList.add("hljs"),s.innerHTML=l}function fS(s){const a=document.createElementNS(Pb,"div");a.innerHTML=s;const r=[],l=[];let u="";const d=p=>{if(p.nodeType===Node.TEXT_NODE){(p.textContent??"").split(`
175
+ `).forEach((m,b)=>{b>0&&(u+="</span>".repeat(l.length),r.push(u),u=l.join("")),u+=dS(m)});return}const y=`<span class="${p.className}">`;u+=y,l.push(y),p.childNodes.forEach(d),l.pop(),u+="</span>"};return a.childNodes.forEach(d),r.push(u),r}function dS(s){return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const hS={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"]},pS={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}]},mS={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Ze({name:s,size:a=13}){const r=[...hS[s]??[],...mS[s]??[]];return f.jsxs("svg",{className:"icon",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(pS[s]??[]).map((l,u)=>f.jsx("circle",{cx:l.cx,cy:l.cy,r:l.r},u)),r.map((l,u)=>f.jsx("path",{d:l},u))]})}function gS({size:s=17}){return f.jsxs("svg",{className:"logo",width:s,height:s,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[f.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),f.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),f.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),f.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function za({children:s}){return f.jsx("span",{className:"key",children:s})}/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function Zg(s,a){(a==null||a>s.length)&&(a=s.length);for(var r=0,l=Array(a);r<a;r++)l[r]=s[r];return l}function bS(s){if(Array.isArray(s))return s}function yS(s,a){var r=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(r!=null){var l,u,d,p,y=[],g=!0,m=!1;try{if(d=(r=r.call(s)).next,a!==0)for(;!(g=(l=d.call(r)).done)&&(y.push(l.value),y.length!==a);g=!0);}catch(b){m=!0,u=b}finally{try{if(!g&&r.return!=null&&(p=r.return(),Object(p)!==p))return}finally{if(m)throw u}}return y}}function vS(){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 ES(s,a){return bS(s)||yS(s,a)||_S(s,a)||vS()}function _S(s,a){if(s){if(typeof s=="string")return Zg(s,a);var r={}.toString.call(s).slice(8,-1);return r==="Object"&&s.constructor&&(r=s.constructor.name),r==="Map"||r==="Set"?Array.from(s):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zg(s,a):void 0}}const Kb=Object.entries,Xg=Object.setPrototypeOf,SS=Object.isFrozen,NS=Object.getPrototypeOf,wS=Object.getOwnPropertyDescriptor;let An=Object.freeze,Rn=Object.seal,Ul=Object.create,Zb=typeof Reflect<"u"&&Reflect,kf=Zb.apply,Cf=Zb.construct;An||(An=function(a){return a});Rn||(Rn=function(a){return a});kf||(kf=function(a,r){for(var l=arguments.length,u=new Array(l>2?l-2:0),d=2;d<l;d++)u[d-2]=arguments[d];return a.apply(r,u)});Cf||(Cf=function(a){for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return new a(...l)});const Dl=un(Array.prototype.forEach),TS=un(Array.prototype.lastIndexOf),Vg=un(Array.prototype.pop),Ll=un(Array.prototype.push),xS=un(Array.prototype.splice),Li=Array.isArray,js=un(String.prototype.toLowerCase),vf=un(String.prototype.toString),Qg=un(String.prototype.match),Ls=un(String.prototype.replace),Wg=un(String.prototype.indexOf),AS=un(String.prototype.trim),RS=un(Number.prototype.toString),OS=un(Boolean.prototype.toString),Jg=typeof BigInt>"u"?null:un(BigInt.prototype.toString),eb=typeof Symbol>"u"?null:un(Symbol.prototype.toString),bn=un(Object.prototype.hasOwnProperty),zs=un(Object.prototype.toString),gn=un(RegExp.prototype.test),Wi=kS(TypeError);function un(s){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return kf(s,a,l)}}function kS(s){return function(){for(var a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return Cf(s,r)}}function ft(s,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:js;if(Xg&&Xg(s,null),!Li(a))return s;let l=a.length;for(;l--;){let u=a[l];if(typeof u=="string"){const d=r(u);d!==u&&(SS(a)||(a[l]=d),u=d)}s[u]=!0}return s}function CS(s){for(let a=0;a<s.length;a++)bn(s,a)||(s[a]=null);return s}function zn(s){const a=Ul(null);for(const l of Kb(s)){var r=ES(l,2);const u=r[0],d=r[1];bn(s,u)&&(Li(d)?a[u]=CS(d):d&&typeof d=="object"&&d.constructor===Object?a[u]=zn(d):a[u]=d)}return a}function MS(s){switch(typeof s){case"string":return s;case"number":return RS(s);case"boolean":return OS(s);case"bigint":return Jg?Jg(s):"0";case"symbol":return eb?eb(s):"Symbol()";case"undefined":return zs(s);case"function":case"object":{if(s===null)return zs(s);const a=s,r=wa(a,"toString");if(typeof r=="function"){const l=r(a);return typeof l=="string"?l:zs(l)}return zs(s)}default:return zs(s)}}function wa(s,a){for(;s!==null;){const l=wS(s,a);if(l){if(l.get)return un(l.get);if(typeof l.value=="function")return un(l.value)}s=NS(s)}function r(){return null}return r}function DS(s){try{return gn(s,""),!0}catch{return!1}}const tb=An(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ef=An(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_f=An(["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"]),LS=An(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sf=An(["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"]),zS=An(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),nb=An(["#text"]),ab=An(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Nf=An(["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"]),ib=An(["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=An(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),US=Rn(/{{[\w\W]*|^[\w\W]*}}/g),jS=Rn(/<%[\w\W]*|^[\w\W]*%>/g),BS=Rn(/\${[\w\W]*/g),IS=Rn(/^data-[\-\w.\u00B7-\uFFFF]+$/),HS=Rn(/^aria-[\-\w]+$/),lb=Rn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qS=Rn(/^(?:\w+script|data):/i),GS=Rn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$S=Rn(/^html$/i),YS=Rn(/^[a-z][.\w]*(-[.\w]+)+$/i),sb=Rn(/<[/\w!]/g),rb=Rn(/<[/\w]/g),FS=Rn(/<\/no(script|embed|frames)/i),PS=Rn(/\/>/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},KS=function(){return typeof window>"u"?null:window},ZS=function(a,r){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let l=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(l=r.getAttribute(u));const d="dompurify"+(l?"#"+l:"");try{return a.createPolicy(d,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},ob=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ci=function(a,r,l,u){return bn(a,r)&&Li(a[r])?ft(u.base?zn(u.base):{},a[r],u.transform):l};function Xb(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:KS();const a=Q=>Xb(Q);if(a.version="3.4.13",a.removed=[],!s||!s.document||s.document.nodeType!==sa.document||!s.Element)return a.isSupported=!1,a;let r=s.document;const l=r,u=l.currentScript;s.DocumentFragment;const d=s.HTMLTemplateElement,p=s.Node,y=s.Element,g=s.NodeFilter,m=s.NamedNodeMap;m===void 0&&(s.NamedNodeMap||s.MozNamedAttrMap),s.HTMLFormElement;const b=s.DOMParser,v=s.trustedTypes,S=y.prototype,w=wa(S,"cloneNode"),T=wa(S,"remove"),O=wa(S,"nextSibling"),x=wa(S,"childNodes"),k=wa(S,"parentNode"),B=wa(S,"shadowRoot"),M=wa(S,"attributes"),ae=p&&p.prototype?wa(p.prototype,"nodeType"):null,$=p&&p.prototype?wa(p.prototype,"nodeName"):null,X=p&&p.prototype?wa(p.prototype,"ownerDocument"):null;if(typeof d=="function"){const Q=r.createElement("template");Q.content&&Q.content.ownerDocument&&(r=Q.content.ownerDocument)}let ie,C="",P,ee=!1,Z=0;const me=function(){if(Z>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(),Z++;try{return ie.createHTML(N)}finally{Z--}},Ee=function(N){me(),Z++;try{return ie.createScriptURL(N)}finally{Z--}},J=function(){return ee||(P=ZS(v,u),ee=!0),P},z=r,le=z.implementation,pe=z.createNodeIterator,Se=z.createDocumentFragment,De=z.getElementsByTagName,_=l.importNode;let L=ob();a.isSupported=typeof Kb=="function"&&typeof k=="function"&&le&&le.createHTMLDocument!==void 0;const I=US,re=jS,K=BS,de=IS,ge=HS,Oe=qS,Me=GS,Ge=YS;let Fe=lb,Ce=null;const Ct=ft({},[...tb,...Ef,..._f,...Sf,...nb]);let Pe=null;const In=ft({},[...ab,...Nf,...ib,...eo]);let Je=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}})),St=null,On=null;const Mt=Object.seal(Ul(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let It=!0,ct=!0,Hn=!1,Zn=!0,$e=!1,Jt=!0,vt=!1,yn=!1,vn=null,kn=null,En=!1,Xn=!1,ra=!1,Cn=!1,Ut=!0,qt=!1;const Dt="user-content-";let ya=!0,_n=!1,Mn={},Ie=null;const Gt=ft({},["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 dn=null;const Kt=ft({},["audio","video","img","source","image","track"]);let A=null;const te=ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ye="http://www.w3.org/1998/Math/MathML",ze="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let lt=et,we=!1,_e=null;const je=ft({},[ye,ze,et],vf),Rt=An(["mi","mo","mn","ms","mtext"]);let gt=ft({},Rt);const Sn=An(["annotation-xml"]);let Vn=ft({},Sn);const Qn=ft({},["title","style","font","a","script"]);let Zt=null;const Ot=["application/xhtml+xml","text/html"],en="text/html";let ut=null,qn=null;const ai=r.createElement("form"),oa=function(N){return N instanceof RegExp||N instanceof Function},va=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(qn&&qn===N)return;(!N||typeof N!="object")&&(N={}),N=zn(N),Zt=Ot.indexOf(N.PARSER_MEDIA_TYPE)===-1?en:N.PARSER_MEDIA_TYPE,ut=Zt==="application/xhtml+xml"?vf:js,Ce=Ci(N,"ALLOWED_TAGS",Ct,{transform:ut}),Pe=Ci(N,"ALLOWED_ATTR",In,{transform:ut}),_e=Ci(N,"ALLOWED_NAMESPACES",je,{transform:vf}),A=Ci(N,"ADD_URI_SAFE_ATTR",te,{transform:ut,base:te}),dn=Ci(N,"ADD_DATA_URI_TAGS",Kt,{transform:ut,base:Kt}),Ie=Ci(N,"FORBID_CONTENTS",Gt,{transform:ut}),St=Ci(N,"FORBID_TAGS",zn({}),{transform:ut}),On=Ci(N,"FORBID_ATTR",zn({}),{transform:ut}),Mn=bn(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?zn(N.USE_PROFILES):N.USE_PROFILES:!1,It=N.ALLOW_ARIA_ATTR!==!1,ct=N.ALLOW_DATA_ATTR!==!1,Hn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Zn=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$e=N.SAFE_FOR_TEMPLATES||!1,Jt=N.SAFE_FOR_XML!==!1,vt=N.WHOLE_DOCUMENT||!1,Xn=N.RETURN_DOM||!1,ra=N.RETURN_DOM_FRAGMENT||!1,Cn=N.RETURN_TRUSTED_TYPE||!1,En=N.FORCE_BODY||!1,Ut=N.SANITIZE_DOM!==!1,qt=N.SANITIZE_NAMED_PROPS||!1,ya=N.KEEP_CONTENT!==!1,_n=N.IN_PLACE||!1,Fe=DS(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:lb,lt=typeof N.NAMESPACE=="string"?N.NAMESPACE:et,gt=bn(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?zn(N.MATHML_TEXT_INTEGRATION_POINTS):ft({},Rt),Vn=bn(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?zn(N.HTML_INTEGRATION_POINTS):ft({},Sn);const U=bn(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?zn(N.CUSTOM_ELEMENT_HANDLING):Ul(null);if(Je=Ul(null),bn(U,"tagNameCheck")&&oa(U.tagNameCheck)&&(Je.tagNameCheck=U.tagNameCheck),bn(U,"attributeNameCheck")&&oa(U.attributeNameCheck)&&(Je.attributeNameCheck=U.attributeNameCheck),bn(U,"allowCustomizedBuiltInElements")&&typeof U.allowCustomizedBuiltInElements=="boolean"&&(Je.allowCustomizedBuiltInElements=U.allowCustomizedBuiltInElements),Rn(Je),$e&&(ct=!1),ra&&(Xn=!0),Mn&&(Ce=ft({},nb),Pe=Ul(null),Mn.html===!0&&(ft(Ce,tb),ft(Pe,ab)),Mn.svg===!0&&(ft(Ce,Ef),ft(Pe,Nf),ft(Pe,eo)),Mn.svgFilters===!0&&(ft(Ce,_f),ft(Pe,Nf),ft(Pe,eo)),Mn.mathMl===!0&&(ft(Ce,Sf),ft(Pe,ib),ft(Pe,eo))),Mt.tagCheck=null,Mt.attributeCheck=null,bn(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?Mt.tagCheck=N.ADD_TAGS:Li(N.ADD_TAGS)&&(Ce===Ct&&(Ce=zn(Ce)),ft(Ce,N.ADD_TAGS,ut))),bn(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?Mt.attributeCheck=N.ADD_ATTR:Li(N.ADD_ATTR)&&(Pe===In&&(Pe=zn(Pe)),ft(Pe,N.ADD_ATTR,ut))),bn(N,"ADD_URI_SAFE_ATTR")&&Li(N.ADD_URI_SAFE_ATTR)&&ft(A,N.ADD_URI_SAFE_ATTR,ut),bn(N,"FORBID_CONTENTS")&&Li(N.FORBID_CONTENTS)&&(Ie===Gt&&(Ie=zn(Ie)),ft(Ie,N.FORBID_CONTENTS,ut)),bn(N,"ADD_FORBID_CONTENTS")&&Li(N.ADD_FORBID_CONTENTS)&&(Ie===Gt&&(Ie=zn(Ie)),ft(Ie,N.ADD_FORBID_CONTENTS,ut)),ya&&(Ce["#text"]=!0),vt&&ft(Ce,["html","head","body"]),Ce.table&&(ft(Ce,["tbody"]),delete St.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 W=ie;ie=N.TRUSTED_TYPES_POLICY;try{C=ce("")}catch(Te){throw ie=W,Te}}else N.TRUSTED_TYPES_POLICY===null?(ie=void 0,C=""):(ie===void 0&&(ie=J()),ie&&typeof C=="string"&&(C=ce("")));An&&An(N),qn=N},Wn=ft({},[...Ef,..._f,...LS]),Ea=ft({},[...Sf,...zS]),tn=function(N,U,W){return U.namespaceURI===et?N==="svg":U.namespaceURI===ye?N==="svg"&&(W==="annotation-xml"||gt[W]):!!Wn[N]},H=function(N,U,W){return U.namespaceURI===et?N==="math":U.namespaceURI===ze?N==="math"&&Vn[W]:!!Ea[N]},he=function(N,U,W){return U.namespaceURI===ze&&!Vn[W]||U.namespaceURI===ye&&!gt[W]?!1:!Ea[N]&&(Qn[N]||!Wn[N])},xe=function(N){let U=k(N);(!U||!U.tagName)&&(U={namespaceURI:lt,tagName:"template"});const W=js(N.tagName),Te=js(U.tagName);return _e[N.namespaceURI]?N.namespaceURI===ze?tn(W,U,Te):N.namespaceURI===ye?H(W,U,Te):N.namespaceURI===et?he(W,U,Te):!!(Zt==="application/xhtml+xml"&&_e[N.namespaceURI]):!1},be=function(N){Ll(a.removed,{element:N});try{k(N).removeChild(N)}catch{if(T(N),!k(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")}},Qe=function(N){fe(N);const U=x(N);if(U){const Te=[];Dl(U,Re=>{Ll(Te,Re)}),Dl(Te,Re=>{try{T(Re)}catch{}})}const W=M(N);if(W)for(let Te=W.length-1;Te>=0;--Te){const Re=W[Te],He=Re&&Re.name;if(typeof He=="string")try{N.removeAttribute(He)}catch{}}},Ht=function(N,U){try{Ll(a.removed,{attribute:U.getAttributeNode(N),from:U})}catch{Ll(a.removed,{attribute:null,from:U})}if(U.removeAttribute(N),N==="is")if(Xn||ra)try{be(U)}catch{}else try{U.setAttribute(N,"")}catch{}},$t=function(N){const U=M(N);if(U)for(let W=U.length-1;W>=0;--W){const Te=U[W],Re=Te&&Te.name;if(!(typeof Re!="string"||Pe[ut(Re)]))try{N.removeAttribute(Re)}catch{}}},fe=function(N){const U=[N];for(;U.length>0;){const W=U.pop();(ae?ae(W):W.nodeType)===sa.element&&$t(W);const Re=x(W);if(Re)for(let He=Re.length-1;He>=0;--He)U.push(Re[He])}},Ne=function(N){if(!Jt)return;const U=[N];for(;U.length>0;){const W=U.pop(),Te=ae?ae(W):W.nodeType;if(Te===sa.processingInstruction||Te===sa.comment&&gn(rb,W.data)){try{T(W)}catch{}continue}if(Te===sa.element){const He=W,tt=ut($?$(W):W.nodeName);try{He.hasAttribute&&He.hasAttribute("patchsrc")&&He.removeAttribute("patchsrc"),He.hasAttribute&&He.hasAttribute("for")&&tt!=="label"&&tt!=="output"&&He.removeAttribute("for")}catch{}}const Re=x(W);if(Re)for(let He=Re.length-1;He>=0;--He)U.push(Re[He])}},qe=function(N){let U=null,W=null;if(En)N="<remove></remove>"+N;else{const He=Qg(N,/^[\r\n\t ]+/);W=He&&He[0]}Zt==="application/xhtml+xml"&&lt===et&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Te=ie?ce(N):N;if(lt===et)try{U=new b().parseFromString(Te,Zt)}catch{}if(!U||!U.documentElement){U=le.createDocument(lt,"template",null);try{U.documentElement.innerHTML=we?C:Te}catch{}}const Re=U.body||U.documentElement;return N&&W&&Re.insertBefore(r.createTextNode(W),Re.childNodes[0]||null),lt===et?De.call(U,vt?"html":"body")[0]:vt?U.documentElement:Re},dt=function(N){const U=X?X(N):N.ownerDocument;return pe.call(U||N,N,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},kt=function(N){return N=Ls(N,I," "),N=Ls(N,re," "),N=Ls(N,K," "),N},nn=function(N){var U;N.normalize();const W=X?X(N):N.ownerDocument,Te=pe.call(W||N,N,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let Re=Te.nextNode();for(;Re;)Re.data=kt(Re.data),Re=Te.nextNode();const He=(U=N.querySelectorAll)===null||U===void 0?void 0:U.call(N,"template");He&&Dl(He,tt=>{Xt(tt.content)&&nn(tt.content)})},pn=function(N){const U=$?$(N):null;return typeof U!="string"||ut(U)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==M(N)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function"||N.nodeType!==ae(N)||N.childNodes!==x(N)},Xt=function(N){if(!ae||typeof N!="object"||N===null)return!1;try{return ae(N)===sa.documentFragment}catch{return!1}},ht=function(N){if(!ae||typeof N!="object"||N===null)return!1;try{return typeof ae(N)=="number"}catch{return!1}};function jt(Q,N,U){Q.length!==0&&Dl(Q,W=>{W.call(a,N,U,qn)})}const nl=function(N,U){return!!(Jt&&N.hasChildNodes()&&!ht(N.firstElementChild)&&gn(sb,N.textContent)&&gn(sb,N.innerHTML)||Jt&&N.namespaceURI===et&&U==="style"&&ht(N.firstElementChild)||N.nodeType===sa.processingInstruction||Jt&&N.nodeType===sa.comment&&gn(rb,N.data))},ii=function(N,U,W){if(!St[U]&&si(U)&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,U)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(U)))return!1;if(ya&&!Ie[U]){const Te=k(N),Re=x(N);if(Re&&Te){const He=Re.length;for(let tt=He-1;tt>=0;--tt){const ue=N===W?w(Re[tt],!0):Re[tt];Te.insertBefore(ue,O(N))}}}return be(N),!0},li=function(N,U,W,Te){return N.length===0?U:U===W||U===Te?zn(U):U},ja=function(N,U){if(jt(L.beforeSanitizeElements,N,null),N!==U&&k(N)===null)return _n&&fe(N),!0;if(pn(N))return be(N),!0;const W=ut($?$(N):N.nodeName);if(Ce=li(L.uponSanitizeElement,Ce,Ct,vn),jt(L.uponSanitizeElement,N,{tagName:W,allowedTags:Ce}),N!==U&&k(N)===null)return _n&&fe(N),!0;if(nl(N,W))return be(N),!0;if(St[W]||!(Mt.tagCheck instanceof Function&&Mt.tagCheck(W))&&!Ce[W]){const Re=ii(N,W,U);return Re===!1&&jt(L.afterSanitizeElements,N,null),Re}if((ae?ae(N):N.nodeType)===sa.element&&!xe(N)||(W==="noscript"||W==="noembed"||W==="noframes")&&gn(FS,N.innerHTML))return be(N),!0;if($e&&N.nodeType===sa.text){const Re=kt(N.textContent);N.textContent!==Re&&(Ll(a.removed,{element:N.cloneNode()}),N.textContent=Re)}return jt(L.afterSanitizeElements,N,null),!1},al=function(N,U,W){if(On[U]||Jt&&U==="patchsrc"||Jt&&U==="for"&&N!=="label"&&N!=="output"||Ut&&(U==="id"||U==="name")&&(W in r||W in ai))return!1;const Te=Pe[U]||Mt.attributeCheck instanceof Function&&Mt.attributeCheck(U,N);if(!(ct&&gn(de,U))){if(!(It&&gn(ge,U))){if(Te){if(!A[U]){if(!gn(Fe,Ls(W,Me,""))){if(!((U==="src"||U==="xlink:href"||U==="href")&&N!=="script"&&Wg(W,"data:")===0&&dn[N])){if(!(Hn&&!gn(Oe,Ls(W,Me,"")))){if(W)return!1}}}}}else if(!(si(N)&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,N)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(N))&&(Je.attributeNameCheck instanceof RegExp&&gn(Je.attributeNameCheck,U)||Je.attributeNameCheck instanceof Function&&Je.attributeNameCheck(U,N))||U==="is"&&Je.allowCustomizedBuiltInElements&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,W)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(W))))return!1}}return!0},Dn=ft({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),si=function(N){return!Dn[js(N)]&&gn(Ge,N)},Ba=function(N,U,W,Te){if(ie&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!W)switch(v.getAttributeType(N,U)){case"TrustedHTML":return ce(Te);case"TrustedScriptURL":return Ee(Te)}return Te},ri=function(N,U,W,Te){try{W?N.setAttributeNS(W,U,Te):N.setAttribute(U,Te),pn(N)?be(N):Vg(a.removed)}catch{Ht(U,N)}},an=function(N){jt(L.beforeSanitizeAttributes,N,null);const U=N.attributes;if(!U||pn(N))return;Pe=li(L.uponSanitizeAttribute,Pe,In,kn);const W={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pe,forceKeepAttr:void 0};let Te=U.length;const Re=ut(N.nodeName);for(;Te--;){const He=U[Te],tt=He.name,ue=He.namespaceURI,ve=He.value,Le=ut(tt),Ve=ve;let We=tt==="value"?Ve:AS(Ve);if(W.attrName=Le,W.attrValue=We,W.keepAttr=!0,W.forceKeepAttr=void 0,jt(L.uponSanitizeAttribute,N,W),We=W.attrValue,qt&&(Le==="id"||Le==="name")&&Wg(We,Dt)!==0&&(Ht(tt,N),We=Dt+We),Jt&&gn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,We)){Ht(tt,N);continue}if(Le==="attributename"&&Qg(We,"href")){Ht(tt,N);continue}if(!W.forceKeepAttr){if(!W.keepAttr){Ht(tt,N);continue}if(!Zn&&gn(PS,We)){Ht(tt,N);continue}if($e&&(We=kt(We)),!al(Re,Le,We)){Ht(tt,N);continue}We=Ba(Re,Le,ue,We),We!==Ve&&ri(N,tt,ue,We)}}jt(L.afterSanitizeAttributes,N,null)},Ia=function(N){let U=null;const W=dt(N);for(jt(L.beforeSanitizeShadowDOM,N,null);U=W.nextNode();)if(jt(L.uponSanitizeShadowNode,U,null),ja(U,N),an(U),Xt(U.content)&&Ia(U.content),(ae?ae(U):U.nodeType)===sa.element){const Re=B(U);Xt(Re)&&(Aa(Re),Ia(Re))}jt(L.afterSanitizeShadowDOM,N,null)},Aa=function(N){const U=[{node:N,shadow:null}];for(;U.length>0;){const W=U.pop();if(W.shadow){Ia(W.shadow);continue}const Te=W.node,He=(ae?ae(Te):Te.nodeType)===sa.element,tt=x(Te);if(tt)for(let ue=tt.length-1;ue>=0;--ue)U.push({node:tt[ue],shadow:null});if(He){const ue=$?$(Te):null;if(typeof ue=="string"&&ut(ue)==="template"){const ve=Te.content;Xt(ve)&&U.push({node:ve,shadow:null})}}if(He){const ue=B(Te);Xt(ue)&&U.push({node:null,shadow:ue},{node:ue,shadow:null})}}};return a.sanitize=function(Q){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,W=null,Te=null,Re=null;if(we=!Q,we&&(Q="<!-->"),typeof Q!="string"&&!ht(Q)&&(Q=MS(Q),typeof Q!="string"))throw Wi("dirty is not a string, aborting");if(!a.isSupported)return Q;yn?(Ce=vn,Pe=kn):va(N),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(Ce=zn(Ce)),L.uponSanitizeAttribute.length>0&&(Pe=zn(Pe)),a.removed=[];const He=_n&&typeof Q!="string"&&ht(Q);if(He){Ne(Q);const ve=$?$(Q):Q.nodeName;if(typeof ve=="string"){const Le=ut(ve);if(!Ce[Le]||St[Le])throw Qe(Q),Wi("root node is forbidden and cannot be sanitized in-place")}if(pn(Q))throw Qe(Q),Wi("root node is clobbered and cannot be sanitized in-place");try{Aa(Q)}catch(Le){throw Qe(Q),Le}}else if(ht(Q))U=qe("<!---->"),W=U.ownerDocument.importNode(Q,!0),W.nodeType===sa.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?U=W:U.appendChild(W),Aa(W);else{if(!Xn&&!$e&&!vt&&Q.indexOf("<")===-1)return ie&&Cn?ce(Q):Q;if(U=qe(Q),!U)return Xn?null:Cn?C:""}U&&En&&be(U.firstChild);const tt=He?Q:U;try{const ve=dt(tt);for(;Te=ve.nextNode();)ja(Te,tt),an(Te),Xt(Te.content)&&Ia(Te.content)}catch(ve){throw He&&(Qe(Q),Dl(a.removed,Le=>{Le.element&&fe(Le.element)})),ve}if(He)return Dl(a.removed,ve=>{ve.element&&fe(ve.element)}),$e&&nn(Q),Q;if(Xn){if($e&&nn(U),ra)for(Re=Se.call(U.ownerDocument);U.firstChild;)Re.appendChild(U.firstChild);else Re=U;return(Pe.shadowroot||Pe.shadowrootmode)&&(Re=_.call(l,Re,!0)),Re}let ue=vt?U.outerHTML:U.innerHTML;return vt&&Ce["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&gn($S,U.ownerDocument.doctype.name)&&(ue="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
177
+ `+ue),$e&&(ue=kt(ue)),ie&&Cn?ce(ue):ue},a.setConfig=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};va(Q),yn=!0,vn=Ce,kn=Pe},a.clearConfig=function(){qn=null,yn=!1,vn=null,kn=null,ie=P,C=""},a.isValidAttribute=function(Q,N,U){qn||va({});const W=ut(Q),Te=ut(N);return al(W,Te,U)},a.addHook=function(Q,N){typeof N=="function"&&bn(L,Q)&&Ll(L[Q],N)},a.removeHook=function(Q,N){if(bn(L,Q)){if(N!==void 0){const U=TS(L[Q],N);return U===-1?void 0:xS(L[Q],U,1)[0]}return Vg(L[Q])}},a.removeHooks=function(Q){bn(L,Q)&&(L[Q]=[])},a.removeAllHooks=function(){L=ob()},a}var XS=Xb();function Vf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var tl=Vf();function Vb(s){tl=s}var Ji={exec:()=>null};function zl(s){let a=[];return r=>{let l=Math.max(0,Math.min(3,r-1)),u=a[l];return u||(u=s(l),a[l]=u),u}}function it(s,a=""){let r=typeof s=="string"?s:s.source,l={replace:(u,d)=>{let p=typeof d=="string"?d:d.source;return p=p.replace(Un.caret,"$1"),r=r.replace(u,p),l},getRegex:()=>new RegExp(r,a)};return l}var VS=((s="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+s)}catch{return!1}})(),Un={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:s=>new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:zl(s=>new RegExp(`^ {0,${s}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:zl(s=>new RegExp(`^ {0,${s}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:zl(s=>new RegExp(`^ {0,${s}}(?:\`\`\`|~~~)`)),headingBeginRegex:zl(s=>new RegExp(`^ {0,${s}}#`)),htmlBeginRegex:zl(s=>new RegExp(`^ {0,${s}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:zl(s=>new RegExp(`^ {0,${s}}>`))},QS=/^(?:[ \t]*(?:\n|$))+/,WS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,JS=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Gs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,eN=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Qf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Qb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Wb=it(Qb).replace(/bull/g,Qf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),tN=it(Qb).replace(/bull/g,Qf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Wf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,nN=/^[^\n]+/,Jf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,aN=it(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Jf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),iN=it(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Qf).getRegex(),bo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ed=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,lN=it("^ {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",ed).replace("tag",bo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Jb=s=>it(Wf).replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",s).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo).getRegex(),sN=Jb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),rN=Jb(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),oN=it(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",rN).getRegex(),td={blockquote:oN,code:WS,def:aN,fences:JS,heading:eN,hr:Gs,html:lN,lheading:Wb,list:iN,newline:QS,paragraph:sN,table:Ji,text:nN},cb=it("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo).getRegex(),cN={...td,lheading:tN,table:cb,paragraph:it(Wf).replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",cb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo).getRegex()},uN={...td,html:it(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ed).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:Ji,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:it(Wf).replace("hr",Gs).replace("heading",` *#{1,6} *[^
178
+ ]`).replace("lheading",Wb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},fN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,dN=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ey=/^( {2,}|\\)\n(?!\s*$)/,hN=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ni=/[\p{P}\p{S}]/u,ql=/[\s\p{P}\p{S}]/u,$s=/[^\s\p{P}\p{S}]/u,pN=it(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ql).getRegex(),mN=/[\p{Pi}\p{Ps}"']/u,ty=/(?!~)[\p{P}\p{S}]/u,gN=/(?!~)[\s\p{P}\p{S}]/u,bN=/(?:[^\s\p{P}\p{S}]|~)/u,yN=it(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",VS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ny=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,vN=it(ny,"u").replace(/punct/g,ni).getRegex(),EN=it(ny,"u").replace(/punct/g,ty).getRegex(),_N=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,SN=it(_N,"u").replace(/openQuote/g,mN).replace(/punct/g,ni).getRegex(),ay="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",NN=it(ay,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ni).getRegex(),wN=it(ay,"gu").replace(/notPunctSpace/g,bN).replace(/punctSpace/g,gN).replace(/punct/g,ty).getRegex(),TN="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",xN=it(TN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ni).getRegex(),AN=it("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ni).getRegex(),RN="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",ON=it(RN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ni).getRegex(),kN=it(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ni).getRegex(),CN="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",MN=it(CN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ni).getRegex(),DN=it(/\\(punct)/,"gu").replace(/punct/g,ni).getRegex(),LN=it(/^<(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(),zN=it(ed).replace("(?:-->|$)","-->").getRegex(),UN=it("^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",zN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),uo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,jN=it(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",uo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),iy=it(/^!?\[(label)\]\[(ref)\]/).replace("label",uo).replace("ref",Jf).getRegex(),ly=it(/^!?\[(ref)\](?:\[\])?/).replace("ref",Jf).getRegex(),BN=it("reflink|nolink(?!\\()","g").replace("reflink",iy).replace("nolink",ly).getRegex(),ub=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,nd={_backpedal:Ji,anyPunctuation:DN,autolink:LN,blockSkip:yN,br:ey,code:dN,del:Ji,delLDelim:Ji,delRDelim:Ji,emStrongLDelim:vN,emStrongRDelimAst:NN,emStrongRDelimUnd:AN,escape:fN,link:jN,nolink:ly,punctuation:pN,reflink:iy,reflinkSearch:BN,tag:UN,text:hN,url:Ji},IN={...nd,emStrongLDelim:SN,emStrongRDelimAst:xN,emStrongRDelimUnd:ON,link:it(/^!?\[(label)\]\((.*?)\)/).replace("label",uo).getRegex(),reflink:it(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",uo).getRegex()},Mf={...nd,emStrongRDelimAst:wN,emStrongLDelim:EN,delLDelim:kN,delRDelim:MN,url:it(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ub).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:it(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ub).getRegex()},HN={...Mf,br:it(ey).replace("{2,}","*").getRegex(),text:it(Mf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},to={normal:td,gfm:cN,pedantic:uN},Us={normal:nd,gfm:Mf,breaks:HN,pedantic:IN},qN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fb=s=>qN[s];function Da(s,a){if(a){if(Un.escapeTest.test(s))return s.replace(Un.escapeReplace,fb)}else if(Un.escapeTestNoEncode.test(s))return s.replace(Un.escapeReplaceNoEncode,fb);return s}function db(s){try{s=encodeURI(s).replace(Un.percentDecode,"%")}catch{return null}return s}function hb(s,a){var d;let r=s.replace(Un.findPipe,(p,y,g)=>{let m=!1,b=y;for(;--b>=0&&g[b]==="\\";)m=!m;return m?"|":" |"}),l=r.split(Un.splitPipe),u=0;if(l[0].trim()||l.shift(),l.length>0&&!((d=l.at(-1))!=null&&d.trim())&&l.pop(),a)if(l.length>a)l.splice(a);else for(;l.length<a;)l.push("");for(;u<l.length;u++)l[u]=l[u].trim().replace(Un.slashPipe,"|");return l}function Mi(s,a,r){let l=s.length;if(l===0)return"";let u=0;for(;u<l&&s.charAt(l-u-1)===a;)u++;return s.slice(0,l-u)}function pb(s){let a=s.split(`
179
+ `),r=a.length-1;for(;r>=0&&Un.blankLine.test(a[r]);)r--;return a.length-r<=2?s:a.slice(0,r+1).join(`
180
+ `)}function GN(s,a){if(s.indexOf(a[1])===-1)return-1;let r=0;for(let l=0;l<s.length;l++)if(s[l]==="\\")l++;else if(s[l]===a[0])r++;else if(s[l]===a[1]&&(r--,r<0))return l;return r>0?-2:-1}function $N(s,a=0){let r=a,l="";for(let u of s)if(u===" "){let d=4-r%4;l+=" ".repeat(d),r+=d}else l+=u,r++;return l}function mb(s,a,r,l,u){let d=a.href,p=a.title||null,y=s[1].replace(u.other.outputLinkReplace,"$1");l.state.inLink=!0;let g={type:s[0].charAt(0)==="!"?"image":"link",raw:r,href:d,title:p,text:y,tokens:l.inlineTokens(y)};return l.state.inLink=!1,g}function YN(s,a,r){let l=s.match(r.other.indentCodeCompensation);if(l===null)return a;let u=l[1];return a.split(`
181
+ `).map(d=>{let p=d.match(r.other.beginningSpace);if(p===null)return d;let[y]=p;return y.length>=u.length?d.slice(u.length):d}).join(`
182
+ `)}var fo=class{constructor(s){xt(this,"options");xt(this,"rules");xt(this,"lexer");this.options=s||tl}space(s){let a=this.rules.block.newline.exec(s);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(s){let a=this.rules.block.code.exec(s);if(a){let r=this.options.pedantic?a[0]:pb(a[0]),l=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:l}}}fences(s){let a=this.rules.block.fences.exec(s);if(a){let r=a[0],l=YN(r,a[3]||"",this.rules);return{type:"code",raw:r,lang:a[2]?a[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):a[2],text:l}}}heading(s){let a=this.rules.block.heading.exec(s);if(a){let r=a[2].trim();if(this.rules.other.endingHash.test(r)){let l=Mi(r,"#");(this.options.pedantic||!l||this.rules.other.endingSpaceChar.test(l))&&(r=l.trim())}return{type:"heading",raw:Mi(a[0],`
183
+ `),depth:a[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(s){let a=this.rules.block.hr.exec(s);if(a)return{type:"hr",raw:Mi(a[0],`
184
+ `)}}blockquote(s){let a=this.rules.block.blockquote.exec(s);if(a){let r=Mi(a[0],`
185
+ `).split(`
186
+ `),l="",u="",d=[];for(;r.length>0;){let p=!1,y=[],g;for(g=0;g<r.length;g++)if(this.rules.other.blockquoteStart.test(r[g]))y.push(r[g]),p=!0;else if(!p)y.push(r[g]);else break;r=r.slice(g);let m=y.join(`
187
+ `),b=m.replace(this.rules.other.blockquoteSetextReplace,`
188
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");l=l?`${l}
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,d,!0),this.lexer.state.top=v,r.length===0)break;let S=d.at(-1);if((S==null?void 0:S.type)==="code")break;if((S==null?void 0:S.type)==="blockquote"){let w=S,T=r.join(`
191
+ `),O=w.raw+`
192
+ `+T.replace(this.rules.other.blockquoteSetextReplace2,""),x=this.blockquote(O);d[d.length-1]=x,l=`${l}
193
+ ${T}`,u=u.substring(0,u.length-w.text.length)+x.text;break}else if((S==null?void 0:S.type)==="list"){let w=S,T=w.raw+`
194
+ `+r.join(`
195
+ `),O=this.list(T);d[d.length-1]=O,l=l.substring(0,l.length-S.raw.length)+O.raw,u=u.substring(0,u.length-w.raw.length)+O.raw,r=T.substring(d.at(-1).raw.length).split(`
196
+ `);continue}}return{type:"blockquote",raw:l,tokens:d,text:u}}}list(s){let a=this.rules.block.list.exec(s);if(a){let r=a[1].trim(),l=r.length>1,u={type:"list",raw:"",ordered:l,start:l?+r.slice(0,-1):"",loose:!1,items:[]};r=l?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=l?r:"[*+-]");let d=this.rules.other.listItemRegex(r),p=!1;for(;s;){let g=!1,m="",b="";if(!(a=d.exec(s))||this.rules.block.hr.test(s))break;m=a[0],s=s.substring(m.length);let v=$N(a[2].split(`
197
+ `,1)[0],a[1].length),S=s.split(`
198
+ `,1)[0],w=!v.trim(),T=0;if(this.options.pedantic?(T=2,b=v.trimStart()):w?T=a[1].length+1:(T=v.search(this.rules.other.nonSpaceChar),T=T>4?1:T,b=v.slice(T),T+=a[1].length),w&&this.rules.other.blankLine.test(S)&&(m+=S+`
199
+ `,s=s.substring(S.length+1),g=!0),!g){let O=this.rules.other.nextBulletRegex(T),x=this.rules.other.hrRegex(T),k=this.rules.other.fencesBeginRegex(T),B=this.rules.other.headingBeginRegex(T),M=this.rules.other.htmlBeginRegex(T),ae=this.rules.other.blockquoteBeginRegex(T);for(;s;){let $=s.split(`
200
+ `,1)[0],X;if(S=$,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),X=S):X=S.replace(this.rules.other.tabCharGlobal," "),k.test(S)||B.test(S)||M.test(S)||ae.test(S)||O.test(S)||x.test(S))break;if(X.search(this.rules.other.nonSpaceChar)>=T||!S.trim())b+=`
201
+ `+X.slice(T);else{if(w||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(v)||B.test(v)||x.test(v))break;b+=`
202
+ `+S}w=!S.trim(),m+=$+`
203
+ `,s=s.substring($.length+1),v=X.slice(T)}}u.loose||(p?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(p=!0)),u.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(b),loose:!1,text:b,tokens:[]}),u.raw+=m}let y=u.items.at(-1);if(y)y.raw=y.raw.trimEnd(),y.text=y.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let g of u.items)if(this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]),!u.loose){let m=g.tokens.filter(v=>v.type==="space"),b=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));u.loose=b}for(let g of u.items){let m=g.tokens[0];if(g.task&&((m==null?void 0:m.type)==="text"||(m==null?void 0:m.type)==="paragraph")){g.text=g.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}let b=this.rules.other.listTaskCheckbox.exec(g.raw);if(b){let v={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};g.checked=v.checked,u.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=v.raw+g.tokens[0].raw,g.tokens[0].text=v.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(v)):g.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):g.tokens.unshift(v)}}else g.task&&(g.task=!1)}if(u.loose)for(let g of u.items){g.loose=!0;for(let m of g.tokens)m.type==="text"&&(m.type="paragraph")}return u}}html(s){let a=this.rules.block.html.exec(s);if(a){let r=pb(a[0]);return{type:"html",block:!0,raw:r,pre:a[1]==="pre"||a[1]==="script"||a[1]==="style",text:r}}}def(s){let a=this.rules.block.def.exec(s);if(a){let r=a[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),l=a[2]?a[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=a[3]?a[3].substring(1,a[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):a[3];return{type:"def",tag:r,raw:Mi(a[0],`
204
+ `),href:l,title:u}}}table(s){var p;let a=this.rules.block.table.exec(s);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let r=hb(a[1]),l=a[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(p=a[3])!=null&&p.trim()?a[3].replace(this.rules.other.tableRowBlankLine,"").split(`
205
+ `):[],d={type:"table",raw:Mi(a[0],`
206
+ `),header:[],align:[],rows:[]};if(r.length===l.length){for(let y of l)this.rules.other.tableAlignRight.test(y)?d.align.push("right"):this.rules.other.tableAlignCenter.test(y)?d.align.push("center"):this.rules.other.tableAlignLeft.test(y)?d.align.push("left"):d.align.push(null);for(let y=0;y<r.length;y++)d.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:d.align[y]});for(let y of u)d.rows.push(hb(y,d.header.length).map((g,m)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:d.align[m]})));return d}}lheading(s){let a=this.rules.block.lheading.exec(s);if(a){let r=a[1].trim();return{type:"heading",raw:Mi(a[0],`
207
+ `),depth:a[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(s){let a=this.rules.block.paragraph.exec(s);if(a){let r=a[1].charAt(a[1].length-1)===`
208
+ `?a[1].slice(0,-1):a[1];return{type:"paragraph",raw:a[0],text:r,tokens:this.lexer.inline(r)}}}text(s){let a=this.rules.block.text.exec(s);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(s){let a=this.rules.inline.escape.exec(s);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(s){let a=this.rules.inline.tag.exec(s);if(a)return!this.lexer.state.inLink&&this.rules.other.startATag.test(a[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(a[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(a[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(a[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:a[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:a[0]}}link(s){let a=this.rules.inline.link.exec(s);if(a){let r=a[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let d=Mi(r.slice(0,-1),"\\");if((r.length-d.length)%2===0)return}else{let d=GN(a[2],"()");if(d===-2)return;if(d>-1){let p=(a[0].indexOf("!")===0?5:4)+a[1].length+d;a[2]=a[2].substring(0,d),a[0]=a[0].substring(0,p).trim(),a[3]=""}}let l=a[2],u="";if(this.options.pedantic){let d=this.rules.other.pedanticHrefTitle.exec(l);d&&(l=d[1],u=d[3])}else u=a[3]?a[3].slice(1,-1):"";return l=l.trim(),this.rules.other.startAngleBracket.test(l)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?l=l.slice(1):l=l.slice(1,-1)),mb(a,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},a[0],this.lexer,this.rules)}}reflink(s,a){let r;if((r=this.rules.inline.reflink.exec(s))||(r=this.rules.inline.nolink.exec(s))){let l=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=a[l.toLowerCase()];if(!u){let d=r[0].charAt(0);return{type:"text",raw:d,text:d}}return mb(r,u,r[0],this.lexer,this.rules)}}emStrong(s,a,r=""){let l=this.rules.inline.emStrongLDelim.exec(s);if(!(!l||!l[1]&&!l[2]&&!l[3]&&!l[4]||l[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(l[1]||l[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,d,p,y=u,g=0,m=l[0][0],b=r===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,a=a.slice(-1*s.length+u);(l=v.exec(a))!==null;){if(d=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!d)continue;if(p=[...d].length,l[3]||l[4]){y+=p;continue}else if(l[5]||l[6]){if(u%3&&!((u+p)%3)){g+=p;continue}if(b)break}if(y-=p,y>0)continue;p=Math.min(p,p+y+g);let S=[...l[0]][0].length,w=s.slice(0,u+l.index+S+p);if(Math.min(u,p)%2){let O=w.slice(1,-1);return{type:"em",raw:w,text:O,tokens:this.lexer.inlineTokens(O)}}let T=w.slice(2,-2);return{type:"strong",raw:w,text:T,tokens:this.lexer.inlineTokens(T)}}}}codespan(s){let a=this.rules.inline.code.exec(s);if(a){let r=a[2].replace(this.rules.other.newLineCharGlobal," "),l=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return l&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:a[0],text:r}}}br(s){let a=this.rules.inline.br.exec(s);if(a)return{type:"br",raw:a[0]}}del(s,a,r=""){let l=this.rules.inline.delLDelim.exec(s);if(l&&(!l[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,d,p,y=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,a=a.slice(-1*s.length+u);(l=g.exec(a))!==null;){if(d=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!d||(p=[...d].length,p!==u))continue;if(l[3]||l[4]){y+=p;continue}if(y-=p,y>0)continue;p=Math.min(p,p+y);let m=[...l[0]][0].length,b=s.slice(0,u+l.index+m+p),v=b.slice(u,-u);return{type:"del",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(s){let a=this.rules.inline.autolink.exec(s);if(a){let r,l;return a[2]==="@"?(r=a[1],l="mailto:"+r):(r=a[1],l=r),{type:"link",raw:a[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}url(s){var r;let a;if(a=this.rules.inline.url.exec(s)){let l,u;if(a[2]==="@")l=a[0],u="mailto:"+l;else{let d;do d=a[0],a[0]=((r=this.rules.inline._backpedal.exec(a[0]))==null?void 0:r[0])??"";while(d!==a[0]);l=a[0],a[1]==="www."?u="http://"+a[0]:u=a[0]}return{type:"link",raw:a[0],text:l,href:u,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(s){let a=this.rules.inline.text.exec(s);if(a){let r=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:r}}}},Ta=class Df{constructor(a){xt(this,"tokens");xt(this,"options");xt(this,"state");xt(this,"inlineQueue");xt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=a||tl,this.options.tokenizer=this.options.tokenizer||new fo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Un,block:to.normal,inline:Us.normal};this.options.pedantic?(r.block=to.pedantic,r.inline=Us.pedantic):this.options.gfm&&(r.block=to.gfm,this.options.breaks?r.inline=Us.breaks:r.inline=Us.gfm),this.tokenizer.rules=r}static get rules(){return{block:to,inline:Us}}static lex(a,r){return new Df(r).lex(a)}static lexInline(a,r){return new Df(r).inlineTokens(a)}lex(a){a=a.replace(Un.carriageReturn,`
209
+ `),this.blockTokens(a,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let l=this.inlineQueue[r];this.inlineTokens(l.src,l.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(a,r=[],l=!1){var d,p,y;this.tokenizer.lexer=this,this.options.pedantic&&(a=a.replace(Un.tabCharGlobal," ").replace(Un.spaceLine,""));let u=1/0;for(;a;){if(a.length<u)u=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}let g;if((p=(d=this.options.extensions)==null?void 0:d.block)!=null&&p.some(b=>(g=b.call({lexer:this},a,r))?(a=a.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.space(a)){a=a.substring(g.raw.length);let b=r.at(-1);g.raw.length===1&&b!==void 0?b.raw+=`
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
+ `)?"":`
212
+ `)+g.raw,b.text+=`
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
+ `)?"":`
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),S;this.options.extensions.startBlock.forEach(w=>{S=w.call({lexer:this},v),typeof S=="number"&&S>=0&&(b=Math.min(b,S))}),b<1/0&&b>=0&&(m=a.substring(0,b+1))}if(this.state.top&&(g=this.tokenizer.paragraph(m))){let b=r.at(-1);l&&(b==null?void 0:b.type)==="paragraph"?(b.raw+=(b.raw.endsWith(`
217
+ `)?"":`
218
+ `)+g.raw,b.text+=`
219
+ `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g),l=m.length!==a.length,a=a.substring(g.raw.length);continue}if(g=this.tokenizer.text(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
220
+ `)?"":`
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 l=a;if(this.tokens.links){let S=Object.keys(this.tokens.links);S.length>0&&(l=l.replace(this.tokenizer.rules.inline.reflinkSearch,w=>S.includes(w.slice(w.lastIndexOf("[")+1,-1))?"["+"a".repeat(w.length-2)+"]":w))}l=l.replace(this.tokenizer.rules.inline.anyPunctuation,S=>"+".repeat(S.length)),l=l.replace(this.tokenizer.rules.inline.blockSkip,(S,w,T)=>{let O=T?T.length:0;return S.slice(0,O)+"["+"a".repeat(S.length-O-2)+"]"}),l=((g=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:g.call({lexer:this},l))??l;let u=!1,d="",p=1/0;for(;a;){if(a.length<p)p=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}u||(d=""),u=!1;let S;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(T=>(S=T.call({lexer:this},a,r))?(a=a.substring(S.raw.length),r.push(S),!0):!1))continue;if(S=this.tokenizer.escape(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.tag(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.link(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(S.raw.length);let T=r.at(-1);S.type==="text"&&(T==null?void 0:T.type)==="text"?(T.raw+=S.raw,T.text+=S.text):r.push(S);continue}if(S=this.tokenizer.emStrong(a,l,d)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.codespan(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.br(a)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.del(a,l,d)){a=a.substring(S.raw.length),r.push(S);continue}if(S=this.tokenizer.autolink(a)){a=a.substring(S.raw.length),r.push(S);continue}if(!this.state.inLink&&(S=this.tokenizer.url(a))){a=a.substring(S.raw.length),r.push(S);continue}let w=a;if((v=this.options.extensions)!=null&&v.startInline){let T=1/0,O=a.slice(1),x;this.options.extensions.startInline.forEach(k=>{x=k.call({lexer:this},O),typeof x=="number"&&x>=0&&(T=Math.min(T,x))}),T<1/0&&T>=0&&(w=a.substring(0,T+1))}if(S=this.tokenizer.inlineText(w)){a=a.substring(S.raw.length),S.raw.slice(-1)!=="_"&&(d=S.raw.slice(-1)),u=!0;let T=r.at(-1);(T==null?void 0:T.type)==="text"?(T.raw+=S.raw,T.text+=S.text):r.push(S);continue}if(a){this.infiniteLoopError(a.charCodeAt(0));break}}return r}infiniteLoopError(a){let r="Infinite loop on byte: "+a;if(this.options.silent)console.error(r);else throw new Error(r)}},ho=class{constructor(s){xt(this,"options");xt(this,"parser");this.options=s||tl}space(s){return""}code({text:s,lang:a,escaped:r}){var d;let l=(d=(a||"").match(Un.notSpaceStart))==null?void 0:d[0],u=s.replace(Un.endingNewline,"")+`
223
+ `;return l?'<pre><code class="language-'+Da(l)+'">'+(r?u:Da(u,!0))+`</code></pre>
224
+ `:"<pre><code>"+(r?u:Da(u,!0))+`</code></pre>
225
+ `}blockquote({tokens:s}){return`<blockquote>
226
+ ${this.parser.parse(s)}</blockquote>
227
+ `}html({text:s}){return s}def(s){return""}heading({tokens:s,depth:a}){return`<h${a}>${this.parser.parseInline(s)}</h${a}>
228
+ `}hr(s){return`<hr>
229
+ `}list(s){let a=s.ordered,r=s.start,l="";for(let p=0;p<s.items.length;p++){let y=s.items[p];l+=this.listitem(y)}let u=a?"ol":"ul",d=a&&r!==1?' start="'+r+'"':"";return"<"+u+d+`>
230
+ `+l+"</"+u+`>
231
+ `}listitem(s){return`<li>${this.parser.parse(s.tokens)}</li>
232
+ `}checkbox({checked:s}){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:s}){return`<p>${this.parser.parseInline(s)}</p>
233
+ `}table(s){let a="",r="";for(let u=0;u<s.header.length;u++)r+=this.tablecell(s.header[u]);a+=this.tablerow({text:r});let l="";for(let u=0;u<s.rows.length;u++){let d=s.rows[u];r="";for(let p=0;p<d.length;p++)r+=this.tablecell(d[p]);l+=this.tablerow({text:r})}return l&&(l=`<tbody>${l}</tbody>`),`<table>
234
+ <thead>
235
+ `+a+`</thead>
236
+ `+l+`</table>
237
+ `}tablerow({text:s}){return`<tr>
238
+ ${s}</tr>
239
+ `}tablecell(s){let a=this.parser.parseInline(s.tokens),r=s.header?"th":"td";return(s.align?`<${r} align="${s.align}">`:`<${r}>`)+a+`</${r}>
240
+ `}strong({tokens:s}){return`<strong>${this.parser.parseInline(s)}</strong>`}em({tokens:s}){return`<em>${this.parser.parseInline(s)}</em>`}codespan({text:s}){return`<code>${Da(s,!0)}</code>`}br(s){return"<br>"}del({tokens:s}){return`<del>${this.parser.parseInline(s)}</del>`}link({href:s,title:a,tokens:r}){let l=this.parser.parseInline(r),u=db(s);if(u===null)return l;s=u;let d='<a href="'+s+'"';return a&&(d+=' title="'+Da(a)+'"'),d+=">"+l+"</a>",d}image({href:s,title:a,text:r,tokens:l}){l&&(r=this.parser.parseInline(l,this.parser.textRenderer));let u=db(s);if(u===null)return Da(r);s=u;let d=`<img src="${s}" alt="${Da(r)}"`;return a&&(d+=` title="${Da(a)}"`),d+=">",d}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:Da(s.text)}},ad=class{strong({text:s}){return s}em({text:s}){return s}codespan({text:s}){return s}del({text:s}){return s}html({text:s}){return s}text({text:s}){return s}link({text:s}){return""+s}image({text:s}){return""+s}br(){return""}checkbox({raw:s}){return s}},xa=class Lf{constructor(a){xt(this,"options");xt(this,"renderer");xt(this,"textRenderer");this.options=a||tl,this.options.renderer=this.options.renderer||new ho,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ad}static parse(a,r){return new Lf(r).parse(a)}static parseInline(a,r){return new Lf(r).parseInline(a)}parse(a){var l,u;this.renderer.parser=this;let r="";for(let d=0;d<a.length;d++){let p=a[d];if((u=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&u[p.type]){let g=p,m=this.options.extensions.renderers[g.type].call({parser:this},g);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(g.type)){r+=m||"";continue}}let y=p;switch(y.type){case"space":{r+=this.renderer.space(y);break}case"hr":{r+=this.renderer.hr(y);break}case"heading":{r+=this.renderer.heading(y);break}case"code":{r+=this.renderer.code(y);break}case"table":{r+=this.renderer.table(y);break}case"blockquote":{r+=this.renderer.blockquote(y);break}case"list":{r+=this.renderer.list(y);break}case"checkbox":{r+=this.renderer.checkbox(y);break}case"html":{r+=this.renderer.html(y);break}case"def":{r+=this.renderer.def(y);break}case"paragraph":{r+=this.renderer.paragraph(y);break}case"text":{r+=this.renderer.text(y);break}default:{let g='Token with "'+y.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return r}parseInline(a,r=this.renderer){var u,d;this.renderer.parser=this;let l="";for(let p=0;p<a.length;p++){let y=a[p];if((d=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&d[y.type]){let m=this.options.extensions.renderers[y.type].call({parser:this},y);if(m!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(y.type)){l+=m||"";continue}}let g=y;switch(g.type){case"escape":{l+=r.text(g);break}case"html":{l+=r.html(g);break}case"link":{l+=r.link(g);break}case"image":{l+=r.image(g);break}case"checkbox":{l+=r.checkbox(g);break}case"strong":{l+=r.strong(g);break}case"em":{l+=r.em(g);break}case"codespan":{l+=r.codespan(g);break}case"br":{l+=r.br(g);break}case"del":{l+=r.del(g);break}case"text":{l+=r.text(g);break}default:{let m='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return l}},ao,Bs=(ao=class{constructor(s){xt(this,"options");xt(this,"block");this.options=s||tl}preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}emStrongMask(s){return s}provideLexer(s=this.block){return s?Ta.lex:Ta.lexInline}provideParser(s=this.block){return s?xa.parse:xa.parseInline}},xt(ao,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),xt(ao,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ao),FN=class{constructor(...s){xt(this,"defaults",Vf());xt(this,"options",this.setOptions);xt(this,"parse",this.parseMarkdown(!0));xt(this,"parseInline",this.parseMarkdown(!1));xt(this,"Parser",xa);xt(this,"Renderer",ho);xt(this,"TextRenderer",ad);xt(this,"Lexer",Ta);xt(this,"Tokenizer",fo);xt(this,"Hooks",Bs);this.use(...s)}walkTokens(s,a){var l,u;let r=[];for(let d of s)switch(r=r.concat(a.call(this,d)),d.type){case"table":{let p=d;for(let y of p.header)r=r.concat(this.walkTokens(y.tokens,a));for(let y of p.rows)for(let g of y)r=r.concat(this.walkTokens(g.tokens,a));break}case"list":{let p=d;r=r.concat(this.walkTokens(p.items,a));break}default:{let p=d;(u=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&u[p.type]?this.defaults.extensions.childTokens[p.type].forEach(y=>{let g=p[y].flat(1/0);r=r.concat(this.walkTokens(g,a))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,a)))}}return r}use(...s){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(r=>{let l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let d=a.renderers[u.name];d?a.renderers[u.name]=function(...p){let y=u.renderer.apply(this,p);return y===!1&&(y=d.apply(this,p)),y}:a.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let d=a[u.level];d?d.unshift(u.tokenizer):a[u.level]=[u.tokenizer],u.start&&(u.level==="block"?a.startBlock?a.startBlock.push(u.start):a.startBlock=[u.start]:u.level==="inline"&&(a.startInline?a.startInline.push(u.start):a.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(a.childTokens[u.name]=u.childTokens)}),l.extensions=a),r.renderer){let u=this.defaults.renderer||new ho(this.defaults);for(let d in r.renderer){if(!(d in u))throw new Error(`renderer '${d}' does not exist`);if(["options","parser"].includes(d))continue;let p=d,y=r.renderer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b||""}}l.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new fo(this.defaults);for(let d in r.tokenizer){if(!(d in u))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;let p=d,y=r.tokenizer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}l.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new Bs;for(let d in r.hooks){if(!(d in u))throw new Error(`hook '${d}' does not exist`);if(["options","block"].includes(d))continue;let p=d,y=r.hooks[p],g=u[p];Bs.passThroughHooks.has(d)?u[p]=m=>{if(this.defaults.async&&Bs.passThroughHooksRespectAsync.has(d))return(async()=>{let v=await y.call(u,m);return g.call(u,v)})();let b=y.call(u,m);return g.call(u,b)}:u[p]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await y.apply(u,m);return v===!1&&(v=await g.apply(u,m)),v})();let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}l.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,d=r.walkTokens;l.walkTokens=function(p){let y=[];return y.push(d.call(this,p)),u&&(y=y.concat(u.call(this,p))),y}}this.defaults={...this.defaults,...l}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,a){return Ta.lex(s,a??this.defaults)}parser(s,a){return xa.parse(s,a??this.defaults)}parseMarkdown(s){return(a,r)=>{let l={...r},u={...this.defaults,...l},d=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&l.async===!1)return d(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));if(u.hooks&&(u.hooks.options=u,u.hooks.block=s),u.async)return(async()=>{let p=u.hooks?await u.hooks.preprocess(a):a,y=await(u.hooks?await u.hooks.provideLexer(s):s?Ta.lex:Ta.lexInline)(p,u),g=u.hooks?await u.hooks.processAllTokens(y):y;u.walkTokens&&await Promise.all(this.walkTokens(g,u.walkTokens));let m=await(u.hooks?await u.hooks.provideParser(s):s?xa.parse:xa.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(d);try{u.hooks&&(a=u.hooks.preprocess(a));let p=(u.hooks?u.hooks.provideLexer(s):s?Ta.lex:Ta.lexInline)(a,u);u.hooks&&(p=u.hooks.processAllTokens(p)),u.walkTokens&&this.walkTokens(p,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(s):s?xa.parse:xa.parseInline)(p,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(p){return d(p)}}}onError(s,a){return r=>{if(r.message+=`
241
+ Please report this to https://github.com/markedjs/marked.`,s){let l="<p>An error occurred:</p><pre>"+Da(r.message+"",!0)+"</pre>";return a?Promise.resolve(l):l}if(a)return Promise.reject(r);throw r}}},el=new FN;function yt(s,a){return el.parse(s,a)}yt.options=yt.setOptions=function(s){return el.setOptions(s),yt.defaults=el.defaults,Vb(yt.defaults),yt};yt.getDefaults=Vf;yt.defaults=tl;function PN(...s){return el.use(...s),yt.defaults=el.defaults,Vb(yt.defaults),yt}yt.use=PN;yt.walkTokens=function(s,a){return el.walkTokens(s,a)};yt.parseInline=el.parseInline;yt.Parser=xa;yt.parser=xa.parse;yt.Renderer=ho;yt.TextRenderer=ad;yt.Lexer=Ta;yt.lexer=Ta.lex;yt.Tokenizer=fo;yt.Hooks=Bs;yt.parse=yt;yt.options;yt.setOptions;yt.walkTokens;yt.parseInline;xa.parse;Ta.lex;yt.setOptions({gfm:!0,breaks:!1});function id(s){const a=yt.parse(s??"",{async:!1});return XS.sanitize(a)}function zi({text:s,className:a}){const r=F.useMemo(()=>id(s),[s]);return s!=null&&s.trim()?f.jsx("div",{className:`md ${a??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const KN={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function ZN(s){return s.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(a,r)=>KN[r.toLowerCase()]??a).replace(/\s+/g," ").trim()}function XN(s,a){return ZN(a)!==s.replace(/\s+/g," ").trim()}function Ys({text:s,className:a}){const r=F.useMemo(()=>s!=null&&s.trim()?id(s):"",[s]);return!r||!XN(s,r)?null:f.jsxs("div",{className:"md-preview",children:[f.jsx("div",{className:"lab",children:"preview"}),f.jsx("div",{className:`md prose ${a??""}`,dangerouslySetInnerHTML:{__html:r}})]})}const VN=/\.(md|markdown)$/i;function ld(s){return VN.test(s)}function QN(s){return/^new file mode /m.test(s)||/^--- \/dev\/null$/m.test(s)}function WN(s){const a=[];let r=0,l=!1;const u=s.split(`
242
+ `);for(let d=0;d<u.length;d++){const p=u[d],y=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),l=!0;continue}l&&(p===""&&d===u.length-1||p.startsWith("\\")||p.startsWith("-")||(p.startsWith("+")||p.startsWith(" ")||p==="")&&(a.push({n:r,text:p===""?"":p.slice(1),added:p.startsWith("+")}),r++))}return a}const no=s=>(s.match(/\n/g)??[]).length;function sd(s){const a=WN(s),r=QN(s),l=[];let u=[];const d=()=>{if(u.length===0)return;const p=u[0].n,y=new Set(u.filter(b=>b.added).map(b=>b.n)),g=u.map(b=>b.text).join(`
243
+ `)+`
244
+ `;let m=p;for(const b of yt.lexer(g)){const v=b.raw,S=v.trimEnd();if(S===""){m+=no(v);continue}const w=v.length-v.trimStart().length,T=m+no(v.slice(0,w)),O=T+no(S.slice(w));let x=!1;for(let k=T;k<=O&&!x;k++)x=y.has(k);l.push({kind:"block",raw:S.slice(w),from:T,to:O,changed:x}),m+=no(v)}u=[]};for(const p of a){const y=u[u.length-1];if(y&&p.n!==y.n+1){const g=p.n-y.n-1;d(),l.push({kind:"gap",lines:g})}u.push(p)}return d(),{items:l,isNew:r,lines:a.length}}const zf="cerber.stickyChapters";function JN(s){return s!=="off"}function ew(){try{return JN(localStorage.getItem(zf))}catch{return!0}}function sy(){const[s,a]=F.useState(ew);return[s,l=>{try{l?localStorage.removeItem(zf):localStorage.setItem(zf,"off")}catch{}a(l)}]}function lo(s){const a=s.alreadyRaised;return!a||a.decision==="send"?"post":a.decision==="reply"?a.where.kind==="thread"?"reply":"hold":a.where.kind==="thread"&&a.where.state==="resolved"?"post":"hold"}const gb={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},tw={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function nw(s){return(s==null?void 0:s.recommendation)==="approve"?"APPROVE":(s==null?void 0:s.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function ry(s,a){const r=E_(s);return a.filter(l=>{var u;return!l.drifted&&l.line!=null&&((u=r.get(l.path))==null?void 0:u.has(l.line))})}function bb(s,a){const r=d=>{const p=Number((d??"").trim());return Number.isInteger(p)&&p>0?p:null},l=r(a);if(l!=null)return{line:l,side:"new"};const u=r(s);return u!=null?{line:u,side:"old"}:null}function oy(s){const a=s.comments.filter(y=>y.status==="dropped"),r=s.comments.filter(y=>y.status!=="dropped"),l=r.filter(y=>lo(y)==="reply"),u=r.filter(y=>lo(y)==="hold"),d=r.filter(y=>lo(y)==="post"),p=ry(s.diff,d);return{inline:p,folded:d.filter(y=>!p.includes(y)),dropped:a,replies:l,held:u}}function aw(s,a){const r=s.alreadyRaised;if(!r)return null;if(s.status==="dropped")return a?"dropped — not posted":"dropped — never posts";if(r.replied)return"replied in their thread";const l=lo(s);return a?l==="reply"?"the reply in their thread did not post":l==="hold"?"left out of the review":"posted as a comment of its own":l==="reply"?"replies in their thread when you send":l==="hold"?"left out of Send":r.decision==="send"?"posts as a comment of its own":"posts — their thread was resolved, and the problem is still here"}function iw(s){return s.where.kind==="thread"?`${s.where.state} thread`:"review"}function wf(s){const a=s.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:a.filter(d=>d.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:d})=>`${zb[u]} ${d} ${u}${d===1?"":"s"}`).join(" · ")}function lw(s){if(!s.comments.some(l=>l.severity!=null))return null;const r=s.comments.filter(l=>l.status!=="dropped"&&l.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function sw(s){if(!s.verdict||!s.comments.some(u=>u.severity!=null))return null;const r=s.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,l=s.verdict.recommendation;return l==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:l==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function Uf(s){const{inline:a,folded:r,replies:l,held:u}=oy(s),d=[l.length>0?`${l.length} ${l.length===1?"reply":"replies"} in another reviewer's thread`:"",u.length>0?`${u.length} already raised, left out`:""].filter(Boolean);return[rw(s,a,r),...d].join(" · ")}function rw(s,a,r){if(s.bodyOverride!=null)return`${a.length===0?"no inline comments":`${a.length} inline`} · body you wrote`;if(a.length===0&&r.length===0)return"no inline comments · body only";const l=[`${a.length} inline`];return r.length>0&&l.push(`${r.length} folded into the body`),l.join(" · ")}const yb={approve:"approve",comment:"comment",request_changes:"changes"},ow={approve:"approve",comment:"comment",request_changes:"changes"};function cw(s,a){return s.status==="dropped"?"none":s.drifted?"comment":s.origin==="user"?"awaiting":a}function cy(s,a=20){const r=document.getElementById(`c-${s}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}a>0&&requestAnimationFrame(()=>cy(s,a-1))}function uw(s){const a=s,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function vb(s,a){const r=document.createElement("tr");r.className=a;const l=document.createElement("td");l.colSpan=2;const u=document.createElement("div");return l.appendChild(u),r.appendChild(l),s.after(r),{tr:r,holder:u}}function Eb(s,a,r){s.querySelectorAll(".d2h-file-wrapper").forEach(l=>{const u=l.dataset.path;if(!u)return;const d=a.has(u);l.classList.toggle("file-viewed-on",d),l.classList.toggle("file-peek",d&&r.has(u));const p=l.querySelector("input[data-viewed-path]");p&&(p.checked=d)})}function fw(s){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=s,a.append(r," Viewed"),a}function uy({pick:s,chatBusy:a,onAdd:r,onAsk:l,onClose:u}){const[d,p]=F.useState(""),y=F.useRef(null);F.useEffect(()=>{var m;return(m=y.current)==null?void 0:m.focus()},[]);const g=d.trim();return f.jsxs("div",{className:"line-composer",children:[f.jsxs("div",{className:"line-composer-head",children:[f.jsxs("span",{className:"comment-loc",children:[s.path,":",s.line]}),s.side==="old"&&f.jsx("span",{className:"faint",title:"GitHub only takes inline comments on the new side of a diff.",children:"this line is gone from the new file — a comment on it posts on the file, not the line"})]}),f.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:d,onChange:m=>p(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),f.jsx(Ys,{className:"comment-body",text:d}),f.jsxs("div",{className:"line-composer-actions",children:[f.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[f.jsx(Ze,{name:"plus"}),"add comment",f.jsx(za,{children:"⌘↵"})]}),f.jsxs("button",{className:"btn btn-accent",disabled:!g||a,title:a?"the reviewer is still answering the last question":"Ask the reviewer about this line — the answer lands in the chat below",onClick:()=>l(g),children:[f.jsx(Ze,{name:"comment"}),"ask the reviewer"]}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function dw({patch:s,comments:a,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:y,viewedState:g}){const m=F.useMemo(()=>s.trim()?g_(s,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[s]),b=F.useMemo(()=>Ua(s).map(ce=>ce.path),[s]),v=F.useMemo(()=>new Set(Ua(s).filter(ce=>ld(ce.path)&&sd(ce.patch).lines>0).map(ce=>ce.path)),[s]),S=F.useMemo(()=>a.map(ce=>`${ce.id}@${ce.path}:${ce.line}`).join("|"),[a]),w=F.useRef(null),T=F.useRef(y);T.current=y;const O=F.useRef(g);O.current=g;const[x,k]=F.useState([]),[B,M]=F.useState([]),[ae,$]=F.useState(null),[X,ie]=F.useState(null);F.useEffect(()=>{var De,_;const ce=w.current;if(!ce)return;ce.innerHTML=m,iS(ce);const Ee=new Map,J=[];ce.querySelectorAll(".d2h-file-wrapper").forEach((L,I)=>{var de,ge,Oe,Me,Ge;const re=(ge=(de=L.querySelector(".d2h-file-name"))==null?void 0:de.textContent)==null?void 0:ge.trim(),K=re&&b.includes(re)?re:b[I];if(re&&Ee.set(re,L),K){Ee.set(K,L),L.dataset.path=K;const Fe=document.createElement("div");if(Fe.className="file-comments",(Oe=L.querySelector(".d2h-file-header"))==null||Oe.after(Fe),J.push({path:K,el:Fe}),v.has(K)){const Ce=document.createElement("button");Ce.type="button",Ce.className="btn btn-sm md-read-toggle",Ce.dataset.readPath=K,Ce.textContent="read as a document",Ce.title="Render this markdown instead of showing it line by line",(Me=L.querySelector(".d2h-file-header"))==null||Me.appendChild(Ce)}(Ge=L.querySelector(".d2h-file-header"))==null||Ge.appendChild(fw(K))}}),Eb(ce,O.current.viewed,O.current.peeked);const z=[],le=new Map;for(const L of a){if(L.line==null)continue;const I=Ee.get(L.path);if(!I)continue;const re=Array.from(I.querySelectorAll(".d2h-diff-tbody > tr")).find(de=>{var ge,Oe;return((Oe=(ge=de.querySelector(".line-num2"))==null?void 0:ge.textContent)==null?void 0:Oe.trim())===String(L.line)});if(!re)continue;const K=vb(le.get(re)??re,"inline-comment-row");le.set(re,K.tr),z.push({id:L.id,el:K.holder})}k(z),M(J);const pe=L=>{var Ge;const I=L.target,re=I.closest(".md-read-toggle");if(re!=null&&re.dataset.readPath){T.current(re.dataset.readPath);return}if(I instanceof HTMLInputElement&&I.dataset.viewedPath){O.current.onToggleViewed(I.dataset.viewedPath);return}if(I.closest(".file-viewed"))return;const K=(Ge=I.closest(".d2h-file-header"))==null?void 0:Ge.closest(".file-viewed-on");if(K!=null&&K.dataset.path){O.current.onTogglePeek(K.dataset.path);return}const de=L.target.closest(".line-add");if(!de)return;const{path:ge,line:Oe,side:Me}=de.dataset;!ge||!Oe||$({path:ge,line:Number(Oe),side:Me==="old"?"old":"new"})};ce.addEventListener("click",pe);const Se=()=>ce.removeEventListener("click",pe);if(l)return $(null),ie(null),Se;for(const L of ce.querySelectorAll(".d2h-file-wrapper")){const I=L.dataset.path;if(I)for(const re of L.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const K=bb((De=re.querySelector(".line-num1"))==null?void 0:De.textContent,(_=re.querySelector(".line-num2"))==null?void 0:_.textContent);if(!K)continue;const de=document.createElement("button");de.type="button",de.className="line-add";const ge=`Say something about ${I}:${K.line}`;de.title=ge,de.setAttribute("aria-label",ge),de.tabIndex=-1,de.dataset.path=I,de.dataset.line=String(K.line),de.dataset.side=K.side,re.appendChild(de)}}return ie(null),Se},[m,S,b,v,l]);const C=b.filter(ce=>g.viewed.has(ce)).join(`
245
+ `),P=b.filter(ce=>g.peeked.has(ce)).join(`
246
+ `);F.useEffect(()=>{w.current&&Eb(w.current,g.viewed,g.peeked)},[C,P]),F.useEffect(()=>{const ce=w.current;if(!ce||!ae||l){ie(null);return}const Ee=Array.from(ce.querySelectorAll(".d2h-file-wrapper")).find(le=>le.dataset.path===ae.path),J=Array.from((Ee==null?void 0:Ee.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(le=>{var De,_;const pe=le.querySelector(".d2h-code-linenumber"),Se=bb((De=pe==null?void 0:pe.querySelector(".line-num1"))==null?void 0:De.textContent,(_=pe==null?void 0:pe.querySelector(".line-num2"))==null?void 0:_.textContent);return(Se==null?void 0:Se.line)===ae.line&&Se.side===ae.side});if(!J){$(null);return}const z=vb(J,"line-composer-row");return ie(z.holder),()=>z.tr.remove()},[ae,x,l]);const ee=a.filter(ce=>!x.some(Ee=>Ee.id===ce.id)),Z=B.map(ce=>({...ce,comments:ee.filter(Ee=>Ee.path===ce.path)})).filter(ce=>ce.comments.length>0),me=ee.filter(ce=>!B.some(Ee=>Ee.path===ce.path));return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"diff",ref:w}),x.map(({id:ce,el:Ee})=>{const J=a.find(z=>z.id===ce);return J?Ru.createPortal(r(J),Ee,ce):null}),Z.map(({path:ce,el:Ee,comments:J})=>Ru.createPortal(f.jsx(f.Fragment,{children:J.map(r)}),Ee,`file:${ce}`)),ae&&X&&Ru.createPortal(f.jsx(uy,{pick:ae,chatBusy:u,onAdd:ce=>{d(ae,ce),$(null)},onAsk:ce=>{p(ae,ce),$(null)},onClose:()=>$(null)}),X,`pick-${ae.path}-${ae.side}-${ae.line}`),me.map(ce=>r(ce))]})}function hw({block:s,path:a,changed:r,readOnly:l,onPick:u}){const d=F.useMemo(()=>id(s.raw),[s.raw]),p=`Say something about ${a}:${s.from}`;return f.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!l&&f.jsx("button",{type:"button",className:"md-block-add",title:p,"aria-label":p,tabIndex:-1,onClick:u,children:f.jsx(Ze,{name:"plus"})}),f.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:d}})]})}function pw({path:s,doc:a,comments:r,renderComment:l,readOnly:u,chatBusy:d,onAddLineComment:p,onAskAboutLine:y,onShowDiff:g,viewedState:m}){const[b,v]=F.useState(null),S=m.viewed.has(s),w=S&&!m.peeked.has(s),T=F.useMemo(()=>{const O=new Map,x=a.items.flatMap((B,M)=>B.kind==="block"?[{item:B,i:M}]:[]),k=[];for(const B of r){const M=B.line==null?void 0:x.filter(ae=>ae.item.from<=B.line).pop()??x[0];if(!M){k.push(B);continue}O.set(M.i,[...O.get(M.i)??[],B])}return{at:O,rest:k}},[a,r]);return f.jsxs("div",{className:"md-file",children:[f.jsxs("div",{className:`md-file-head${S?" md-file-head-viewed":""}${w?" md-file-head-folded":""}`,onClick:O=>{S&&!O.target.closest("button, label")&&m.onTogglePeek(s)},children:[f.jsx(Ze,{name:"file"}),f.jsx("span",{className:"md-file-name",children:s}),a.isNew?f.jsx("span",{className:"tag tag-added",children:"new file"}):f.jsx("span",{className:"faint",title:"A diff carries the lines around a change, not the file.",children:"the diff's lines only — what the PR removed isn't here"}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:g,title:"Back to the line-by-line diff",children:"show the diff"}),f.jsxs("label",{className:"file-viewed",title:"Mark as viewed — folds the file until its diff changes",children:[f.jsx("input",{type:"checkbox",checked:S,onChange:()=>m.onToggleViewed(s)})," ","Viewed"]})]}),!w&&T.rest.length>0&&f.jsx("div",{className:"file-comments",children:T.rest.map(l)}),!w&&a.items.map((O,x)=>f.jsxs(F.Fragment,{children:[O.kind==="gap"?f.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",O.lines.toLocaleString()," line",O.lines===1?"":"s"," the diff skips"]}):f.jsx(hw,{block:O,path:s,changed:O.changed&&!a.isNew,readOnly:u,onPick:()=>v({path:s,line:O.from,side:"new"})}),(T.at.get(x)??[]).map(l),O.kind==="block"&&(b==null?void 0:b.line)===O.from&&f.jsx(uy,{pick:b,chatBusy:d,onAdd:k=>{p(b,k),v(null)},onAsk:k=>{y(b,k),v(null)},onClose:()=>v(null)})]},x))]})}function mw({patch:s,comments:a,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,viewedState:y}){const g=F.useMemo(()=>s.trim()?Ua(s):[],[s]),m=F.useMemo(()=>new Map(g.filter(x=>ld(x.path)).map(x=>[x.path,sd(x.patch)]).filter(([,x])=>x.lines>0)),[g]),[b,v]=F.useState({}),S=x=>{var k;return b[x]??((k=m.get(x))==null?void 0:k.isNew)??!1},w=[];for(const x of g){const k=w[w.length-1];if(m.has(x.path)&&S(x.path)){w.push({kind:"read",paths:[x.path],patch:x.patch});continue}(k==null?void 0:k.kind)==="diff"?(k.paths.push(x.path),k.patch+=`
247
+ ${x.patch}`):w.push({kind:"diff",paths:[x.path],patch:x.patch})}if(g.length===0)return f.jsx("p",{className:"muted",children:"No diff for this chapter."});const T=new Set(g.map(x=>x.path)),O=x=>a.filter(k=>x(k.path));return f.jsxs(f.Fragment,{children:[w.map(x=>{const k=new Set(x.paths);if(x.kind==="read"){const B=x.paths[0];return f.jsx(pw,{path:B,doc:m.get(B),comments:O(M=>M===B),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onShowDiff:()=>v(M=>({...M,[B]:!1})),viewedState:y},`read:${B}`)}return f.jsx(dw,{patch:x.patch,comments:O(B=>k.has(B)),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:B=>v(M=>({...M,[B]:!0})),viewedState:y},`diff:${x.paths[0]}`)}),O(x=>!T.has(x)).map(r)]})}function gw({check:s,raised:a,held:r,replies:l}){if(!s)return null;const u=[r>0&&`${r} left out`,l>0&&`${l} as replies`].filter(Boolean),d=a>0?f.jsxs("div",{className:"warn",title:"Findings another reviewer already raised on the PR — each card says who, and what Send does with it.",children:[a," already raised",u.length>0?` · ${u.join(" · ")}`:""]}):null;return s.checkingSince?f.jsxs(f.Fragment,{children:[d,f.jsx("div",{className:"faint",children:"checking what others already raised…"})]}):s.error?f.jsxs(f.Fragment,{children:[d,f.jsx("div",{className:"warn",title:s.error,children:"couldn't check what others already raised"})]}):d||(s.remarks.length>0?f.jsx("div",{className:"faint",children:"none already raised by others"}):null)}function bw({comment:s,readOnly:a,onDecide:r}){var y;const l=s.alreadyRaised;if(!l)return null;const u=aw(s,a),d=l.where.kind==="thread",p=!a&&s.status!=="dropped";return f.jsxs("div",{className:"raised",children:[f.jsxs("div",{className:"raised-head",children:[f.jsxs("span",{className:"tag tag-raised",children:[f.jsx(Ze,{name:"comment"}),"already raised by @",l.by," · ",iw(l)]}),l.url&&f.jsxs("a",{href:l.url,target:"_blank",rel:"noreferrer",className:"faint",children:["see it on GitHub ",f.jsx(Ze,{name:"external"})]}),f.jsx("span",{className:"grow"}),p&&f.jsxs(f.Fragment,{children:[d&&f.jsx("button",{className:`btn btn-sm${l.decision==="reply"?" btn-keep-on":""}`,title:"Send posts this as a reply in their thread instead of a new comment — for when it adds something",onClick:()=>r(l.decision==="reply"?null:"reply"),children:"reply in their thread"}),f.jsx("button",{className:`btn btn-sm${l.decision==="send"?" btn-keep-on":""}`,title:"Send posts it as a comment of its own all the same",onClick:()=>r(l.decision==="send"?null:"send"),children:"send anyway"})]})]}),f.jsxs("p",{className:"raised-reason",children:[l.reason,u&&f.jsxs("span",{className:"raised-fate",children:[" — ",(y=l.replied)!=null&&y.url?f.jsx("a",{href:l.replied.url,target:"_blank",rel:"noreferrer",children:u}):u,"."]})]})]})}function fy({comment:s,onUpdate:a,onDelete:r,onDiscuss:l,readOnly:u,flash:d}){const[p,y]=F.useState(!1),[g,m]=F.useState(s.body),b=s.status==="approved",v=s.status==="dropped",S=s.origin==="user"?"yours":v?"dropped":b?"kept":"drafted";return f.jsxs("div",{id:`c-${s.id}`,className:`comment comment-${s.status}${d?" comment-flash":""}`,children:[f.jsxs("div",{className:"comment-head",children:[f.jsxs("span",{className:"comment-loc",children:[s.path,s.line!=null?`:${s.line}`:""]}),f.jsx("span",{className:`tag tag-${s.origin==="user"?"yours":S}`,children:S}),s.drifted?f.jsx("span",{className:"tag tag-drift",title:"The code this comment pointed at is gone from the diff, so it can't post inline.",children:"drifted — posts in the body"}):s.line==null&&f.jsx("span",{className:"tag tag-drift",title:"A comment with no line — either about the file as a whole, or on a line the PR removed, which GitHub can't take inline.",children:"on the file — posts in the body"}),!s.drifted&&s.originalLine!=null&&s.originalLine!==s.line&&f.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",s.originalLine]}),f.jsx("span",{className:"grow"}),!u&&(p?f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"btn btn-sm",onClick:()=>{a({body:g}),y(!1)},children:"save"}),f.jsx("button",{className:"btn btn-sm",onClick:()=>{m(s.body),y(!1)},children:"cancel"})]}):f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:`btn btn-sm${b?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>a({status:b?"draft":"approved"}),children:[f.jsx(Ze,{name:"check"}),"keep"]}),f.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[f.jsx(Ze,{name:"edit"}),"edit"]}),f.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>a({status:v?"draft":"dropped"}),children:[f.jsx(Ze,{name:"drop"}),v?"dropped":"drop"]}),l&&f.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:l,children:[f.jsx(Ze,{name:"comment"}),"discuss"]}),s.origin==="user"&&f.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),f.jsx(bw,{comment:s,readOnly:u,onDecide:w=>a({raisedDecision:w})}),p?f.jsxs(f.Fragment,{children:[f.jsx("textarea",{className:"comment-edit",value:g,onChange:w=>m(w.target.value),rows:Math.max(3,g.split(`
248
+ `).length)}),f.jsx(Ys,{className:"comment-body",text:ag(g,s.severity??null)})]}):f.jsx(zi,{className:"comment-body prose",text:ag(s.body,s.severity??null)})]})}function yw({files:s,chapterId:a,onAdd:r}){const[l,u]=F.useState(!1),[d,p]=F.useState(s[0]??""),[y,g]=F.useState(""),[m,b]=F.useState("");return l?f.jsxs("div",{className:"add-comment",children:[f.jsxs("div",{className:"add-comment-row",children:[f.jsx("select",{value:d,onChange:v=>p(v.target.value),children:s.map(v=>f.jsx("option",{value:v,children:v},v))}),f.jsx("input",{placeholder:"line (optional)",value:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),f.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(v.target.value),rows:3}),f.jsx(Ys,{className:"comment-body",text:m}),f.jsxs("div",{className:"add-comment-row",children:[f.jsx("button",{className:"btn",disabled:!m.trim()||!d,onClick:()=>{r({path:d,line:y?Number(y):null,body:m.trim(),chapterId:a}),b(""),g(""),u(!1)},children:"add"}),f.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):f.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[f.jsx(Ze,{name:"plus"}),"add a comment of your own"]})}const vw=2e3;function Ew({chapter:s,n:a,diff:r,comments:l,open:u,heavy:d,onToggle:p,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:S,readOnly:w,anchorRef:T,flash:O,viewedState:x,sticky:k,stuck:B}){const[M,ae]=F.useState(!1);F.useEffect(()=>{B||ae(!1)},[B]);const $=k&&B&&u,X=F.useRef(null),ie=()=>{p(),$&&requestAnimationFrame(()=>{var J;return(J=X.current)==null?void 0:J.scrollIntoView({block:"start"})})},C=F.useMemo(()=>b_(r,s.files),[r,s.files]),P=s.files.filter(J=>x.viewed.has(J)).length,ee=F.useMemo(()=>ry(C,l),[C,l]),Z=F.useMemo(()=>new Set(Ua(C).map(J=>J.path)),[C]),me=l.filter(J=>!ee.includes(J)&&!Z.has(J.path)),ce=l.filter(J=>ee.includes(J)||Z.has(J.path)),Ee=J=>f.jsx(fy,{comment:J,onUpdate:z=>y(J.id,z),onDelete:()=>g(J.id),onDiscuss:b&&(()=>b({target:"comment",id:J.id})),readOnly:w,flash:O===J.id},J.id);return f.jsxs("section",{className:`chapter${k?" chapter-sticky":""}`,ref:J=>{X.current=J,T(J)},children:[f.jsxs("header",{className:`chapter-head${k?" chapter-head-sticky":""}${$?" chapter-head-stuck":""}`,onClick:ie,children:[f.jsx("span",{className:"faint",children:u?"▾":"▸"}),f.jsxs("h3",{children:[a," · ",s.title]}),f.jsxs("span",{className:"faint chapter-meta",children:[s.files.length," file",s.files.length===1?"":"s",l.length>0?` · ${l.length} comment${l.length===1?"":"s"}`:" · no comments",P>0&&` · ${P}/${s.files.length} viewed`,d!=null&&!u&&f.jsx("span",{title:"Drawing this many lines at once would leave the page too slow to scroll. Open it if you want it — nothing else on the page is affected.",children:` · ${d.toLocaleString()} lines to draw, folded to keep the page quick`})]}),f.jsx("span",{className:"grow"}),k&&u&&f.jsx("button",{className:`btn btn-sm${$?"":" chapter-about-idle"}`,"aria-expanded":M,onClick:J=>{J.stopPropagation(),ae(z=>!z)},children:M?"hide explanation":"what this chapter is about"}),b&&f.jsxs("button",{className:"btn btn-sm",onClick:J=>{J.stopPropagation(),b({target:"chapter",id:s.id})},children:[f.jsx(Ze,{name:"comment"}),"discuss"]}),$&&M&&f.jsx("div",{className:"chapter-head-about",onClick:J=>J.stopPropagation(),children:f.jsx(zi,{className:"prose",text:s.explanation})})]}),u&&f.jsxs("div",{className:"chapter-body",children:[f.jsx(zi,{className:"prose chapter-explanation",text:s.explanation}),me.map(Ee),f.jsx(mw,{patch:C,comments:ce,renderComment:Ee,readOnly:w,chatBusy:S,onAddLineComment:(J,z)=>m({path:J.path,line:J.side==="new"?J.line:null,body:z,chapterId:s.id}),onAskAboutLine:v,viewedState:x}),!w&&s.files.length>0&&f.jsx(yw,{files:s.files,chapterId:s.id,onAdd:m})]})]})}function _w(s,a){switch(s.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${s.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=a.chapters.find(l=>l.id===s.chapterId);return`rewrote the "${(r==null?void 0:r.title)??s.chapterId}" chapter`}case"comment-edit":{const r=a.comments.find(l=>l.id===s.commentId);return r?`rewrote the comment on ${r.path}:${r.line??"file"}`:"rewrote a comment"}case"comment-drop":{const r=a.comments.find(l=>l.id===s.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${s.path}:${s.line??"file"}`}}function jf(s,a){var l;if(s.target==="summary")return"the summary";if(s.target==="verdict")return"the verdict";if(s.target==="chapter")return((l=a.chapters.find(u=>u.id===s.id))==null?void 0:l.title)??"a chapter";if(s.target==="line")return s.path==null||s.line==null?"a line of the diff":`${s.path}:${s.line}${s.side==="old"?" (removed)":""}`;const r=a.comments.find(u=>u.id===s.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function Sw({turn:s,artifact:a}){return f.jsxs("div",{className:`chat-turn chat-turn-${s.role}`,children:[f.jsx("div",{className:"chat-turn-who",children:s.role==="user"?"You":"Reviewer"}),s.refs.length>0&&f.jsx("div",{className:"chat-refs",children:s.refs.map((r,l)=>f.jsx("span",{className:"chat-ref",children:jf(r,a)},l))}),f.jsx(zi,{className:"chat-turn-body prose",text:s.body}),s.revisions.map((r,l)=>f.jsxs("div",{className:"chat-revision",children:["↳ ",_w(r,a)]},l)),s.refused.map((r,l)=>f.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},l))]})}function Nw({artifact:s,reviewKey:a,refs:r,onClearRefs:l,onDropRef:u,onArtifact:d,readOnly:p,inputRef:y,anchorRef:g}){const[m,b]=F.useState(""),[v,S]=F.useState(!1),[w,T]=F.useState(null),O=s.chat??[],x=s.pendingChat??null,k=x!=null&&x.error==null,B=v||k,M=($,X,ie)=>{!$||B||(S(!0),T(null),Af(a,{message:$,refs:X}).then(C=>{d(C),ie==null||ie()}).catch(C=>T(String(C.message??C))).finally(()=>S(!1)))},ae=()=>M(m.trim(),r,()=>{b(""),l()});return f.jsxs("section",{className:"card chat-panel",ref:g,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"talk to the reviewer"}),f.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),f.jsxs("div",{className:"card-body",children:[(O.length>0||x)&&f.jsxs("div",{className:"chat-log",children:[O.map($=>f.jsx(Sw,{turn:$,artifact:s},$.id)),x&&f.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[f.jsx("div",{className:"chat-turn-who",children:"You"}),x.refs.length>0&&f.jsx("div",{className:"chat-refs",children:x.refs.map(($,X)=>f.jsx("span",{className:"chat-ref",children:jf($,s)},X))}),f.jsx(zi,{className:"chat-turn-body prose",text:x.message}),x.error?f.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",x.error,!p&&f.jsxs(f.Fragment,{children:[" ",f.jsx("button",{className:"btn btn-sm",onClick:()=>M(x.message,x.refs),children:"ask again"})," ",f.jsx("button",{className:"btn btn-sm",onClick:()=>e0(a).then(d).catch($=>T(String($.message??$))),children:"dismiss"})]})]}):f.jsx("div",{className:"chat-waiting",children:x.progress.length>0?f.jsx("ol",{className:"chat-progress",children:x.progress.map(($,X)=>f.jsx("li",{className:X===x.progress.length-1?"now":void 0,children:$},X))}):"Thinking… it re-reads the code before answering."})]})]}),p?f.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):f.jsxs(f.Fragment,{children:[r.length>0&&f.jsxs("div",{className:"chat-refs chat-refs-pending",children:[f.jsx("span",{className:"faint",children:"about:"}),r.map(($,X)=>f.jsxs("button",{className:"chat-ref",onClick:()=>u(X),title:"Remove",children:[jf($,s)," ✕"]},X))]}),f.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,disabled:v,placeholder:O.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:$=>b($.target.value),onKeyDown:$=>{$.key==="Enter"&&($.metaKey||$.ctrlKey)&&ae()}}),f.jsx(Ys,{className:"chat-turn-body",text:m}),f.jsxs("div",{className:"chat-actions",children:[f.jsxs("button",{className:"btn btn-dark",onClick:ae,disabled:B||m.trim()==="",children:[f.jsx(Ze,{name:"send"}),k?"waiting for the answer…":v?"sending…":"send message",f.jsx(za,{children:"⌘↵"})]}),f.jsx("span",{className:"grow"}),s.preChat&&f.jsx("button",{className:"btn btn-sm",disabled:B,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{S(!0),t0(a).then(d).catch($=>T(String($.message??$))).finally(()=>S(!1))},children:"reset the review"})]})]}),w&&f.jsx("div",{className:"error",children:w})]})]})}function dy(s){const a=F.useRef(null),r=F.useCallback(()=>{const l=a.current;l&&(l.style.height="auto",l.style.height=`${Math.min(l.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return F.useEffect(r,[s,r]),F.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),a}function ww({initial:s,onSave:a,onCancel:r}){const[l,u]=F.useState(s),[d,p]=F.useState(!1),[y,g]=F.useState(null),m=dy(l),b=()=>{d||(p(!0),g(null),a(l).catch(v=>{g(String((v==null?void 0:v.message)??v)),p(!1)}))};return f.jsxs("div",{className:"body-edit-wrap",children:[f.jsx("textarea",{ref:m,className:"body-edit",autoFocus:!0,value:l,onChange:v=>u(v.target.value),rows:10,onKeyDown:v=>{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),b()),v.key==="Escape"&&!d&&r()}}),f.jsx(Ys,{className:"body-md",text:l}),y&&f.jsx("p",{className:"error",children:y}),f.jsxs("div",{className:"card-actions",children:[f.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:d,children:[d?"saving…":"save this body",f.jsx(za,{children:"⌘↵"})]}),f.jsx("button",{className:"btn btn-sm",onClick:r,disabled:d,children:"cancel"}),f.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const Tw=s=>s?`@${s} — handing this review over to you.`:"";function xw({artifact:s,reviewKey:a,onConfirm:r,onCancel:l}){const[u]=F.useState(Fb),[d,p]=F.useState(""),[y,g]=F.useState(""),[m,b]=F.useState(!1),[v,S]=F.useState(!1),[w,T]=F.useState(null),[O,x]=F.useState(null),[k,B]=F.useState(null),[M,ae]=F.useState(!1),[$,X]=F.useState(null),[ie,C]=F.useState(null),[P,ee]=F.useState(!1),[Z,me]=F.useState(-1),ce=dy(y),Ee=F.useRef(null),J=Rf(d),z=Yb(J),le=!s.sent&&(s.summary!==""||s.comments.length>0),pe=M?JSON.stringify([s.bodyOverride,s.summary,s.chapters.map(K=>[K.title,K.explanation]),s.comments.map(K=>{var de,ge;return[K.path,K.line,K.body,K.severity,K.status,K.drifted,(de=K.alreadyRaised)==null?void 0:de.decision,(ge=K.alreadyRaised)==null?void 0:ge.where]})]):"";F.useEffect(()=>{if(!M)return;let K=!1;return C(null),X(null),qb(a,"COMMENT").then(de=>!K&&X(de)).catch(de=>{K||(X(null),C(String((de==null?void 0:de.message)??de)))}),()=>{K=!0}},[M,a,pe]);const Se=!M||$!=null;F.useEffect(()=>{var K;Z<0||(K=document.getElementById(`handoff-option-${Z}`))==null||K.scrollIntoView({block:"nearest"})},[Z]);const De=F.useMemo(()=>d0(O??[],u),[O,u]),_=F.useMemo(()=>h0(De,d),[De,d]);F.useEffect(()=>{let K=!1;return i0(a).then(de=>!K&&x(de.logins)).catch(de=>!K&&B(String((de==null?void 0:de.message)??de))),()=>{K=!0}},[a]);const L=K=>{p(K),m||g(Tw(Rf(K)))},I=K=>{L(K),ee(!1),me(-1)};F.useLayoutEffect(()=>{var K;(K=Ee.current)==null||K.showModal()},[]);const re=()=>{v||!z||!Se||(S(!0),T(null),r(J,y.trim(),M).catch(K=>{T(String((K==null?void 0:K.message)??K)),S(!1)}))};return f.jsx("dialog",{className:"handoff-dialog",ref:Ee,"aria-label":`Hand off ${s.id}`,onCancel:K=>{K.preventDefault(),v||l()},onClick:K=>{K.target===Ee.current&&!v&&l()},children:f.jsxs("div",{className:"handoff-body",children:[f.jsxs("div",{className:"send-top",children:[f.jsx("span",{className:"lab",children:"hand off"}),f.jsx("span",{className:"grow"}),f.jsx("span",{className:"faint",children:s.id})]}),f.jsxs("div",{className:"handoff-who",children:[f.jsx("span",{className:"handoff-at",children:"@"}),f.jsxs("div",{className:"handoff-combo",children:[f.jsx("input",{className:"handoff-login",autoFocus:!0,value:d,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":P&&_.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":Z>=0?`handoff-option-${Z}`:void 0,onFocus:()=>ee(!0),onBlur:()=>ee(!1),onChange:K=>{L(K.target.value),ee(!0),me(0)},onKeyDown:K=>{const de=P&&_.length>0;if(K.key==="ArrowDown"||K.key==="ArrowUp"){if(K.preventDefault(),!de)return ee(!0);const ge=K.key==="ArrowDown"?1:-1;me(Oe=>(Oe+ge+_.length)%_.length);return}if(K.key==="Enter"){const ge=de&&Z>=0?_[Z]:void 0;ge&&ge.login.toLowerCase()!==J.toLowerCase()?I(ge.login):re();return}K.key==="Escape"&&de&&(K.preventDefault(),ee(!1),me(-1))}}),P&&_.length>0&&f.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:_.map((K,de)=>f.jsxs("li",{id:`handoff-option-${de}`,role:"option","aria-selected":de===Z,className:de===Z?"on":void 0,onMouseEnter:()=>me(de),onMouseDown:ge=>{ge.preventDefault(),I(K.login)},children:[f.jsxs("span",{className:"handoff-option-login",children:["@",K.login]}),K.recent&&f.jsx("span",{className:"faint",children:"handed to before"})]},K.login))})]})]}),k&&f.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),f.jsx("textarea",{ref:ce,className:"body-edit",rows:2,value:y,onChange:K=>{b(!0),g(K.target.value)},onKeyDown:K=>{K.key==="Enter"&&(K.metaKey||K.ctrlKey)&&(K.preventDefault(),re())}}),f.jsxs("div",{className:"body-source",children:[f.jsx("span",{className:"faint",children:y.trim()?"goes on the PR as a plain comment, not a review":"nothing will be posted — only the review request moves"}),y.trim()!==""&&f.jsx("button",{className:"link",onClick:()=>{b(!0),g("")},disabled:v,children:"post no note"})]}),le&&f.jsxs("div",{className:"handoff-with-review",children:[f.jsxs("label",{children:[f.jsx("input",{type:"checkbox",checked:M,disabled:v,onChange:K=>ae(K.target.checked)}),f.jsxs("span",{children:["also post the review — ",f.jsx("span",{className:"faint",children:Uf(s)})]})]}),M&&f.jsxs(f.Fragment,{children:[f.jsxs("p",{className:"faint",children:["Posts as a ",f.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",z?J:"them","'s to make. The findings keep their grades."]}),ie?f.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",ie]}):$?f.jsx("pre",{className:"body-preview",children:$.body}):f.jsx("p",{className:"faint",children:"building the body…"})]})]}),w&&f.jsx("p",{className:"error",children:w}),f.jsxs("p",{className:"faint handoff-says",children:[z?f.jsxs(f.Fragment,{children:["@",J]}):"They"," will be asked for this review and you will be taken off it."," ",M?"This row goes under sent, with the review on the PR.":s.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),f.jsxs("div",{className:"card-actions",children:[f.jsxs("button",{className:"btn btn-sm",onClick:re,disabled:v||!z||!Se,children:[f.jsx(Ze,{name:"arrowRight"}),v?"handing over…":z?`hand off to @${J}`:"hand off",f.jsx(za,{children:"⌘↵"})]}),f.jsx("button",{className:"btn btn-sm",onClick:l,disabled:v,children:"cancel"})]})]})})}function Aw({artifact:s,reviewKey:a,event:r,sending:l,checking:u,onSend:d,error:p,footer:y,next:g,onAdvance:m,onBody:b,anchorRef:v}){const[S,w]=F.useState(null),[T,O]=F.useState(null),[x,k]=F.useState(s.bodyOverride!=null),[B,M]=F.useState(!1),ae=s.bodyOverride!=null;F.useEffect(()=>{ae&&k(!0)},[ae]);const $=x&&!B?JSON.stringify([s.bodyOverride,s.summary,s.chapters.map(X=>[X.title,X.explanation]),s.comments.map(X=>{var ie,C;return[X.path,X.line,X.body,X.severity,X.status,X.drifted,(ie=X.alreadyRaised)==null?void 0:ie.decision,(C=X.alreadyRaised)==null?void 0:C.where]})]):"";return F.useEffect(()=>{if(!x||B)return;let X=!1;return w(null),O(null),qb(a,r).then(ie=>{X||(w(ie),O(null))}).catch(ie=>{X||O(String(ie))}),()=>{X=!0}},[a,r,$,x,B]),s.sent?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"sent-strip",ref:v,children:[f.jsxs("strong",{children:["✔ sent as ",gb[s.sent.event]]}),f.jsxs("span",{className:"faint",children:[new Date(s.sent.at).toLocaleString()," · ",Uf(s),s.sent.auto?" · auto-sent by the daemon":""]}),f.jsx("span",{className:"grow"}),s.sent.url&&f.jsxs("a",{href:s.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",f.jsx(Ze,{name:"external"})]}),f.jsxs("button",{className:"btn",onClick:m,children:[g?`next review: ${g.pr.repo}#${g.pr.number}`:"back to the queue",f.jsx(Ze,{name:"arrowRight"})]})]}),f.jsx("div",{className:"post-actions",children:y})]}):f.jsxs("div",{className:"send-panel",ref:v,children:[f.jsxs("div",{className:"send-top",children:[f.jsx("span",{className:"lab",children:"send to github"}),f.jsx("span",{className:"grow"}),f.jsx("span",{className:"faint",children:Uf(s)}),f.jsxs("button",{className:"link",onClick:()=>k(!x),disabled:B,title:B?"save or cancel the body you are writing first":void 0,children:[f.jsx(Ze,{name:"eye"}),x?"hide what gets posted":"see what gets posted"]})]}),f.jsx("div",{className:"send-action",children:f.jsxs("button",{className:`send-btn tone-bg-${tw[r]}`,disabled:l||u,onClick:d,children:[f.jsx(Ze,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),l?"sending…":u?"checking what others already raised…":`${gb[r]} on ${s.id}`," ",f.jsx(za,{children:"s"})]})}),p&&f.jsx("p",{className:"error",children:p}),x&&f.jsxs(f.Fragment,{children:[T&&f.jsx("p",{className:"error",children:T}),S?B?f.jsx(ww,{initial:S.body,onSave:X=>b(X).then(()=>M(!1)),onCancel:()=>M(!1)}):f.jsxs(f.Fragment,{children:[f.jsx("pre",{className:"body-preview",children:S.body}),f.jsxs("div",{className:"body-source",children:[ae?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),f.jsx("button",{className:"link",onClick:()=>b(null).catch(X=>O(String((X==null?void 0:X.message)??X))),children:"build it from the review again"})]}):f.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),f.jsxs("button",{className:"link",onClick:()=>M(!0),children:[f.jsx(Ze,{name:"edit"}),ae?"keep editing it":"write it yourself"]})]})]}):!T&&f.jsx("p",{className:"faint",children:"building the body…"})]}),f.jsx("div",{className:"send-footer",children:y})]})}function Rw({filed:s}){var l,u,d;const a=((l=s.review)==null?void 0:l.url)??((u=s.reply)==null?void 0:u.url)??null,r=p=>new Date(p).toLocaleDateString();return s.reason==="own-reply"&&s.reply?f.jsxs("div",{children:[f.jsxs("strong",{children:["You answered on this PR on ",r(s.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",a?f.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"comment"}):"comment"," ","as a review, but the PR is with its author either way. Nothing here was changed or sent — the draft is still yours to send."]}):s.reason==="request-withdrawn"?f.jsxs("div",{children:[f.jsx("strong",{children:"Nobody is asking for this review any more."})," The request that put this PR in the inbox was taken back on or before ",r(s.at),", and you had said nothing on the PR, so cerber filed the draft under settled rather than leaving it out for you. Nothing here was changed or sent — the draft is still yours to send."]}):f.jsxs("div",{children:[f.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((d=s.review)==null?void 0:d.at)??s.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",a?f.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"already on the PR"}):"already on the PR",". Nothing here was changed or sent — the draft is still yours to send."]})}function Ow({entries:s,open:a,onToggle:r,anchorRef:l}){const u=d=>{const p=new Date(d);return Number.isNaN(p.getTime())?d:`${p.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${p.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return f.jsxs("section",{className:"card",ref:l,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"history"}),f.jsx("span",{className:"faint",children:s.length>0?`${s.length} entr${s.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),f.jsx("span",{className:"grow"}),f.jsxs("button",{className:"btn btn-sm","aria-expanded":a,onClick:r,children:[f.jsx(Ze,{name:a?"up":"down",size:12}),a?"hide":"show"]})]}),a&&f.jsx("div",{className:"card-body",children:s.length===0?f.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):f.jsx("ol",{className:"history",children:s.map((d,p)=>({e:d,i:p})).reverse().map(({e:d,i:p})=>f.jsxs("li",{className:"history-row",title:d.at,children:[f.jsx("span",{className:"history-at",children:u(d.at)}),f.jsx("span",{className:"history-by",children:d.by}),f.jsx("span",{className:"history-what",children:d.what}),d.cause&&f.jsx("span",{className:"history-cause",children:d.cause})]},`${p}-${d.at}`))})})]})}function kw({handoff:s,sent:a,hasDraft:r}){const l=new Date(s.at).toLocaleDateString();return f.jsxs("div",{children:[f.jsxs("strong",{children:["You handed this to @",s.to," on ",l,"."]})," ","GitHub asks them for this review now",s.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",s.note?s.note.url?f.jsxs(f.Fragment,{children:["A"," ",f.jsx("a",{href:s.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):f.jsx(f.Fragment,{children:"A note on the PR says so."}):f.jsx(f.Fragment,{children:"No note was posted — only the request moved."})," ",a?f.jsx(f.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?f.jsx(f.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):f.jsx(f.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function Cw({artifact:s,freshness:a,rerunning:r,onRerun:l}){const u=s.status==="running",d=(a==null?void 0:a.prState)??s.pr.state,p=d==="CLOSED"||d==="MERGED",y=s.refresh,g=a!=null&&a.changed?y:null;if(u)return f.jsxs("div",{className:"freshness freshness-running",children:[f.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]});const m=s.filed,b=s.handoff;return!p&&!g&&!m&&!b?null:f.jsxs("div",{className:"freshness",children:[b&&f.jsx(kw,{handoff:b,sent:s.sent,hasDraft:s.summary!==""||s.comments.length>0}),m&&f.jsx(Rw,{filed:m}),p&&f.jsxs("div",{children:[f.jsxs("strong",{children:["This PR is ",d==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&f.jsxs("div",{children:[f.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",f.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",f.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&f.jsxs(f.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&f.jsxs(f.Fragment,{children:[g.drifted," could not — the code they point at is gone, so they will post in the review body instead of inline."," "]}),"The summary and verdict still describe the commit that was reviewed.",!s.sent&&f.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>l(),children:r?"starting…":"re-review at the new head"})]})]})}function Mw({reviewKey:s}){var oa,va,Wn,Ea,tn;const[a,r]=F.useState(null),[l,u]=F.useState(null),[d,p]=F.useState(null),[y,g]=F.useState(null),[m,b]=F.useState(!1),[v,S]=F.useState([]),[w,T]=F.useState(new Set),O=H=>T(he=>new Set(he).add(H)),[x,k]=F.useState(!1),[B,M]=F.useState([]),ae=F.useRef(null),[$,X]=F.useState(new Set),[ie,C]=F.useState(new Set),P=F.useRef(Promise.resolve()),ee=F.useRef(0),[Z,me]=F.useState(0),ce=F.useRef(new Map),[Ee]=sy(),[J,z]=F.useState(null),le=F.useRef(null),pe=F.useRef(null),Se=F.useRef(null),De=F.useRef(null),_=F.useRef(null),L=F.useRef(null),[I,re]=F.useState(!1),K=F.useRef(null),[de,ge]=F.useState(!1),[Oe,Me]=F.useState(!1),[Ge,Fe]=F.useState(null),[Ce,Ct]=F.useState(null);F.useEffect(()=>{if(!Ce)return;const H=setTimeout(()=>Ct(null),1800);return()=>clearTimeout(H)},[Ce]);const Pe=H=>{var he,xe;M(be=>be.some(Qe=>Qe.target===H.target&&Qe.id===H.id)?be:[...be,H]),(he=ae.current)==null||he.scrollIntoView({behavior:"smooth",block:"center"}),(xe=ae.current)==null||xe.focus()};F.useEffect(()=>{let H=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),Fe(null),Me(!1),sg(s).then(he=>{if(!H)return r(he),J_(s).then(xe=>{H||(p(xe),xe.changed&&r(xe.artifact))}).catch(xe=>!H&&g(String(xe.message??xe))).then(()=>{if(!(H||he.sent||he.status==="running"||he.comments.length===0))return Me(!0),a0(s).then(xe=>!H&&r(xe)).catch(()=>{}).finally(()=>!H&&Me(!1))})}).catch(he=>!H&&u(String(he))),()=>{H=!0}},[s]),F.useEffect(()=>{Zf().then(S).catch(()=>{})},[]),F.useEffect(()=>{const H=K.current;if(!H)return;const he=()=>document.documentElement.style.setProperty("--top-h",`${H.offsetHeight}px`);he();const xe=new ResizeObserver(he);return xe.observe(H),()=>{xe.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[a==null?void 0:a.id]);const In=(a==null?void 0:a.pendingChat)!=null&&a.pendingChat.error==null,Je=((oa=a==null?void 0:a.raisedCheck)==null?void 0:oa.checkingSince)!=null||Oe;F.useEffect(()=>{if((a==null?void 0:a.status)!=="running"&&!In&&!Je)return;const H=setInterval(()=>{sg(s).then(he=>{r(he),he.status!=="running"&&b(!1)}).catch(()=>{})},3e3);return()=>clearInterval(H)},[a==null?void 0:a.status,In,Je,s]);const St=(a==null?void 0:a.sent)!=null,On=F.useMemo(()=>T_(v,s,w),[v,s,w]),Mt=On.findIndex(H=>H.key===s),It=(Mt>0?On[Mt-1]:null)??null,ct=(Mt>=0&&Mt<On.length-1?On[Mt+1]:null)??null,Hn=H=>{window.location.hash=`#/r/${encodeURIComponent(H)}`},Zn=()=>{ct?Hn(ct.key):window.location.hash="#/"},$e=F.useMemo(()=>{if(!a)return[];const H=__(a.diff,a.chapters);return H.length>0?[...a.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:H}]:a.chapters},[a]);F.useEffect(()=>{let H=0;const he=()=>{var fe;H=0;const Qe=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--top-h"))||0,Ht=Qe+16;let $t=null;for(const Ne of $e){const qe=(fe=ce.current.get(Ne.id))==null?void 0:fe.getBoundingClientRect();qe&&qe.top<=Ht&&qe.bottom>Ht&&($t={id:Ne.id,stuck:qe.top<Qe-1})}z(Ne=>(Ne==null?void 0:Ne.id)===($t==null?void 0:$t.id)&&(Ne==null?void 0:Ne.stuck)===($t==null?void 0:$t.stuck)?Ne:$t)},xe=()=>{H||(H=requestAnimationFrame(he))};he(),window.addEventListener("scroll",xe,{passive:!0}),window.addEventListener("resize",xe);const be=new ResizeObserver(xe);return be.observe(document.body),()=>{cancelAnimationFrame(H),window.removeEventListener("scroll",xe),window.removeEventListener("resize",xe),be.disconnect()}},[$e]);const Jt=F.useMemo(()=>{const H=S_((a==null?void 0:a.diff)??""),he=new Set(Ua((a==null?void 0:a.diff)??"").filter(be=>ld(be.path)&&sd(be.patch).isNew).map(be=>be.path)),xe=be=>{const Qe=H.get(be)??0;return he.has(be)?Math.round(Qe/4):Qe};return new Map($e.map(be=>[be.id,be.files.reduce((Qe,Ht)=>Qe+xe(Ht),0)]))},[a==null?void 0:a.diff,$e]),vt=H=>{const he=Jt.get(H)??0;return he>vw?he:null},yn=H=>$.has(H)?vt(H)!=null:vt(H)==null,vn=H=>X(he=>{const xe=new Set(he);return xe.has(H)?xe.delete(H):xe.add(H),xe});F.useEffect(()=>{X(new Set),C(new Set)},[s]);const kn=F.useMemo(()=>Object.fromEntries(Ua((a==null?void 0:a.diff)??"").map(H=>[H.path,N_(H.patch)])),[a==null?void 0:a.diff]),En=F.useMemo(()=>new Set(Object.keys(kn).filter(H=>{var he;return((he=a==null?void 0:a.viewed)==null?void 0:he[H])===kn[H]})),[kn,a==null?void 0:a.viewed]),Cn={viewed:En,peeked:ie,onToggleViewed:H=>{const he=En.has(H)?null:kn[H]??null;C(be=>{const Qe=new Set(be);return Qe.delete(H),Qe}),r(be=>{if(!be)return be;const Qe={...be.viewed};return he===null?delete Qe[H]:Qe[H]=he,{...be,viewed:Qe}});const xe=++ee.current;P.current=P.current.then(()=>Z_(s,H,he)).then(be=>{xe===ee.current&&r(Qe=>Qe&&Qe.id===be.id?{...Qe,viewed:be.viewed}:Qe)}).catch(be=>u(String(be)))},onTogglePeek:H=>C(he=>{const xe=new Set(he);return xe.has(H)?xe.delete(H):xe.add(H),xe})},Ut=H=>{const he=$e[H];return he?(me(H),yn(he.id)||vn(he.id),he):null},qt=(...H)=>{for(const he of H)if(he.current)return he.current.scrollIntoView({behavior:"smooth",block:"start"})},Dt=H=>{var xe;const he=Ut(H);he&&((xe=ce.current.get(he.id))==null||xe.scrollIntoView({behavior:"smooth",block:"start"}))},ya=(H,he)=>{var be;Ut(H);const xe=(be=a==null?void 0:a.comments.find(Qe=>Qe.id===he))==null?void 0:be.path;xe&&En.has(xe)&&C(Qe=>new Set(Qe).add(xe)),Ct(he),cy(he)},_n=nw(a==null?void 0:a.verdict);F.useEffect(()=>Fe(null),[_n]);const Mn=()=>{!a||a.sent||de||Je||(ge(!0),Fe(null),n0(s,_n).then(({replyError:H,...he})=>{r(he),H&&Fe(`Sent — but ${H}`),O(s)}).catch(H=>Fe(String(H.message??H))).finally(()=>ge(!1)))};if(F.useEffect(()=>{const H=he=>{uw(he.target)||he.metaKey||he.ctrlKey||he.altKey||(he.key==="["&&It?Hn(It.key):he.key==="]"&&ct?Hn(ct.key):he.key==="n"?Dt(Math.min($e.length-1,Z+1)):he.key==="N"?Dt(Math.max(0,Z-1)):he.key==="s"&&!St&&Mn())};return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[It==null?void 0:It.key,ct==null?void 0:ct.key,$e,Z,St,_n,a==null?void 0:a.sent,de,Je]),l&&!a)return f.jsx("p",{className:"error pad",children:l});if(!a)return f.jsx("p",{className:"muted pad",children:"Loading…"});const Ie=H=>{b(!0),u(null),Hb(s,H).then(r).catch(he=>{u(String(he)),b(!1)})},Gt=H=>H.then(r).catch(he=>u(String(he))),dn=H=>io(s,{status:H}).then(()=>{O(s),Zn()}).catch(he=>u(String(he))),Kt=(H,he,xe)=>l0(s,{to:H,note:he,postReview:xe}).then(({artifact:be,noteError:Qe,sendError:Ht,replyError:$t})=>{f0(H),r(be),k(!1),O(s);const fe=[Ht&&`the review did not post: ${Ht}`,$t,Qe&&`the note did not post: ${Qe}`].filter(Boolean);fe.length>0?u(`Handed to @${H}, but ${fe.join("; and ")}`):Zn()}),A=(H,he)=>Gt(X_(s,H,he)),te=H=>Gt(Q_(s,H)),ye=H=>Gt(V_(s,H)),ze=a.comments.filter(H=>!H.chapterId||!$e.some(he=>he.id===H.chapterId)),{inline:et,folded:lt,dropped:we,held:_e,replies:je}=oy(a),Rt=a.comments.filter(H=>H.alreadyRaised&&H.status!=="dropped").length,gt=a.comments.filter(H=>H.status!=="dropped"&&H.drifted).length,Sn=a.verdict?yb[a.verdict.recommendation]:"none",Vn=sw(a),Qn=lw(a),Zt=a.pendingChat!=null&&a.pendingChat.error==null,Ot=a.status==="running"||Zt,en=()=>Gt(Af(s,{message:"Some findings were dropped, edited or re-graded after this review was drafted. Update the summary and verdict to match what still stands — do not re-review the whole PR.",refs:[{target:"verdict",id:null}]})),ut=(H,he)=>{Gt(Af(s,{message:he,refs:[{target:"line",id:null,path:H.path,line:H.line,side:H.side}]}).then(xe=>{var be;return(be=De.current)==null||be.scrollIntoView({behavior:"smooth",block:"start"}),xe}))},qn=(va=a.run)!=null&&va.trusted?"ran the code":(Wn=a.run)!=null&&Wn.withSource?"read the full source":a.run?"read the diff only":"no run yet",ai=H=>{var he;return f.jsxs("button",{className:`verdict-pick${((he=a.verdict)==null?void 0:he.recommendation)===H?` verdict-pick-on tone-${yb[H]}`:""}`,title:H==="approve"?"Approve":H==="comment"?"Comment without blocking":"Request changes",onClick:()=>Gt(io(s,{verdictRecommendation:H})),children:[f.jsx(Ze,{name:ow[H]}),H.replace("_"," ")]},H)};return f.jsxs("div",{className:"review",children:[f.jsxs("div",{className:"review-top",ref:K,children:[f.jsx("div",{className:"crumb",children:f.jsxs("div",{className:"bar-inner",children:[f.jsx("a",{href:"#/",children:"← queue"}),f.jsx("span",{className:"crumb-sep",children:"/"}),f.jsx("span",{className:"crumb-slug",children:a.id}),f.jsxs("span",{className:"walk",children:[f.jsx("button",{className:"walk-btn",disabled:!It,title:It?`[ — ${It.id}: ${It.pr.title}`:"no more reviews this way",onClick:()=>It&&Hn(It.key),children:f.jsx(Ze,{name:"chevronLeft"})}),f.jsx("button",{className:"walk-btn",disabled:!ct,title:ct?`] — ${ct.id}: ${ct.pr.title}`:"no more reviews this way",onClick:()=>ct&&Hn(ct.key),children:f.jsx(Ze,{name:"chevronRight"})})]}),Mt>=0&&f.jsxs("span",{className:"faint",children:[Mt+1," of ",On.length," awaiting"]}),f.jsx("span",{className:"faint crumb-next",children:ct?`next: ${ct.pr.title}`:Mt>=0?"last in the queue":""}),f.jsx("span",{className:"grow"}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Ze,{name:"settings",size:15})})]})}),f.jsx("div",{className:"review-head",children:f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"review-head-top",children:[f.jsx("a",{className:"review-title",href:a.pr.url,target:"_blank",rel:"noreferrer",children:a.pr.title}),f.jsx("span",{className:"grow"}),a.verdict&&(St?f.jsxs("span",{className:`chip tone-${Sn}`,children:[a.verdict.recommendation.replace("_"," "),Qn&&` · ${Qn}`," · ",a.verdict.confidence,"%"]}):f.jsxs("button",{className:`chip chip-btn tone-${Sn}`,title:"change it, or send — both are at the foot of the page",onClick:()=>qt(le,_),children:[a.verdict.recommendation.replace("_"," "),Qn&&` · ${Qn}`," · ",a.verdict.confidence,"%",f.jsx(Ze,{name:"down",size:12})]})),!St&&a.status!=="running"&&f.jsxs("button",{className:"btn btn-sm",disabled:m,title:a.run?"Review the current head again — this draft is replaced, your own comments are kept":"Draft a review of this PR",onClick:()=>Ie(!0),children:[f.jsx(Ze,{name:"rerun"}),m?"starting…":a.run?"re-review at head":"review now"]})]}),f.jsxs("div",{className:"review-head-meta",children:[f.jsx("span",{children:a.pr.author}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[a.pr.headRefName," → ",a.pr.baseRefName,a.pr.headSha?` · ${a.pr.headSha.slice(0,7)}`:""]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[a.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",a.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",a.pr.deletions]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:qn}),((Ea=a.run)==null?void 0:Ea.costUsd)!=null&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{title:"What this review would cost at API token rates. Riding a Claude subscription, it draws on your usage limits instead.",children:["≈$",a.run.costUsd.toFixed(2)," at API rates"]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:a.status})]})]})})]}),f.jsxs("div",{className:"wrap review-body",children:[f.jsxs("aside",{className:"rail",children:[f.jsxs("div",{className:"rail-jumps",children:[f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>qt(pe),children:"summary"}),a.verdict&&f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>qt(Se),children:"why"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var H;qt(De),(H=ae.current)==null||H.focus()},children:"chat"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{re(!0),qt(L)},children:"history"})]}),$e.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>Dt(0),children:"changes"}),$e.map((H,he)=>{const xe=H.files.length>0&&H.files.every(be=>En.has(be));return f.jsxs("div",{className:"rail-group",children:[f.jsxs("button",{className:`rail-item${yn(H.id)?" rail-item-on":""}${xe?" rail-item-done":""}${(J==null?void 0:J.id)===H.id?" rail-item-here":""}`,onClick:()=>Dt(he),children:[f.jsxs("span",{className:"grow",children:[he+1," · ",H.title]}),f.jsxs("span",{className:"rail-count",title:xe?"every file viewed":void 0,children:[xe?"✓ ":"",H.files.length,"f"]})]}),a.comments.filter(be=>be.chapterId===H.id).map(be=>f.jsxs("button",{className:`rail-comment${be.status==="dropped"?" rail-comment-dropped":""}`,title:`${be.path}${be.line!=null?`:${be.line}`:""} — ${be.body}`,onClick:()=>ya(he,be.id),children:[f.jsx("span",{className:`rail-dot tone-${cw(be,Sn)}`,children:"●"}),f.jsxs("span",{className:"rail-comment-loc",children:[be.path.split("/").pop(),be.line!=null?`:${be.drifted?"~":""}${be.line}`:""]})]},be.id))]},H.id)})]}),f.jsx("button",{className:`lab rail-lab-btn${$e.length>0?" rail-lab":""}`,onClick:()=>qt(le,_),children:"verdict"}),f.jsxs("div",{className:"rail-facts",children:[f.jsxs("div",{children:[a.comments.length-we.length," keeping · ",we.length," dropped"]}),f.jsxs("div",{children:[et.length," inline · ",lt.length," folded into body"]}),gt>0&&f.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[gt," drifted"]}),f.jsx(gw,{check:a.raisedCheck??null,raised:Rt,held:_e.length,replies:je.length})]})]}),f.jsxs("div",{className:"main",children:[f.jsx(Cw,{artifact:a,freshness:d,rerunning:m,onRerun:Ie}),y&&f.jsxs("div",{className:"freshness",title:y,children:[f.jsx("strong",{children:"Couldn't check GitHub for newer commits."})," This is the review as it was drafted — if the PR has moved on since, nothing here knows it yet."]}),l&&f.jsx("div",{className:"error",children:l}),((tn=a.run)==null?void 0:tn.error)&&f.jsxs("div",{className:"error",children:["Run failed: ",a.run.error]}),f.jsx("div",{className:"card card-summary",ref:pe,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"summary"}),f.jsx(zi,{className:"prose lead",text:a.summary||"(no summary)"}),!St&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>Pe({target:"summary",id:null}),children:[f.jsx(Ze,{name:"comment"}),"discuss the summary"]})]})}),a.verdict&&f.jsx("div",{className:`card card-why tone-border-${Sn}`,ref:Se,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"why"}),f.jsxs("div",{className:"sev-counts",children:[wf(a)&&f.jsx("span",{title:"Live findings by grade. Only blockers block.",children:wf(a)}),wf(a)&&f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{title:"How sure the review is that its own findings and grades are right — not how good an idea merging is. That is the verdict, and it follows from the blockers.",children:[a.verdict.confidence,"% sure of the findings"]})]}),f.jsx(zi,{className:"prose lead",text:a.verdict.reasoning}),!St&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>Pe({target:"verdict",id:null}),children:[f.jsx(Ze,{name:"comment"}),"discuss the verdict"]})]})}),$e.map((H,he)=>f.jsx(Ew,{chapter:H,n:he+1,diff:a.diff,comments:a.comments.filter(xe=>xe.chapterId===H.id),open:yn(H.id),heavy:vt(H.id),onToggle:()=>vn(H.id),onUpdateComment:A,onDeleteComment:te,onAddComment:ye,onDiscuss:St?void 0:Pe,onAskAboutLine:ut,chatBusy:Zt,readOnly:St,flash:Ce,viewedState:Cn,sticky:Ee,stuck:(J==null?void 0:J.id)===H.id&&J.stuck,anchorRef:xe=>{xe?ce.current.set(H.id,xe):ce.current.delete(H.id)}},H.id)),ze.length>0&&f.jsxs("section",{className:"card",children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"unattached comments"}),f.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),f.jsx("div",{className:"card-body",children:ze.map(H=>f.jsx(fy,{comment:H,onUpdate:he=>A(H.id,he),onDelete:()=>te(H.id),onDiscuss:St?void 0:()=>Pe({target:"comment",id:H.id}),readOnly:St},H.id))})]}),f.jsx(Ow,{entries:a.history??[],open:I,onToggle:()=>re(H=>!H),anchorRef:L})]}),f.jsxs("aside",{className:"cockpit",children:[f.jsx(Nw,{artifact:a,reviewKey:s,refs:B,onClearRefs:()=>M([]),onDropRef:H=>M(he=>he.filter((xe,be)=>be!==H)),onArtifact:r,readOnly:St,inputRef:ae,anchorRef:De}),f.jsxs("div",{className:"cockpit-decide",children:[!St&&Vn&&f.jsxs("div",{className:"verdict-hint",children:[f.jsxs("span",{children:[f.jsx("strong",{children:Vn})," — the verdict was written before those edits."]}),f.jsxs("button",{className:"btn btn-sm",onClick:en,disabled:Zt,children:[f.jsx(Ze,{name:"comment"}),Zt?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),a.verdict&&!St&&f.jsxs("div",{className:"verdict-bar",ref:le,children:[f.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(ai)]}),f.jsx(Aw,{artifact:a,reviewKey:s,event:_n,sending:de,checking:Je,onSend:Mn,error:Ge,next:ct,onAdvance:Zn,onBody:H=>io(s,{bodyOverride:H}).then(r),anchorRef:_,footer:f.jsxs(f.Fragment,{children:[!St&&f.jsx("span",{className:"faint",children:"not sending?"}),!St&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"btn btn-sm",title:ct?`Settle it locally and go to ${ct.id}`:"Settle it locally and go back to the queue",onClick:()=>dn("reviewed"),children:[f.jsx(Ze,{name:"check"}),"mark reviewed"]}),f.jsxs("button",{className:"btn btn-sm",title:ct?`Leave it and go to ${ct.id}`:"Leave it and go back to the queue",onClick:()=>dn("skipped"),children:[f.jsx(Ze,{name:"skip"}),"skip"]})]}),f.jsxs("button",{className:"btn btn-sm",title:Ot?"Wait for the run to finish — a handoff settles the row it is rewriting":"Move GitHub's review request to somebody else, and settle this row",onClick:()=>k(!0),disabled:x||Ot,children:[f.jsx(Ze,{name:"arrowRight"}),"hand off"]}),f.jsxs("a",{className:"btn btn-sm",href:s0(s),children:[f.jsx(Ze,{name:"download"}),"export .md"]})]})}),x&&f.jsx(xw,{artifact:a,reviewKey:s,onConfirm:Kt,onCancel:()=>k(!1)})]})]})]})]})}const _b="cerber.notify.seen.v2",Dw="cerber.notify.seen",Bf="cerber.notify",Lw=1e4,Is=s=>s.status==="ready",If=s=>{try{return localStorage.getItem(s)}catch{return null}},Hf=(s,a)=>{try{localStorage.setItem(s,a)}catch{}};function zw(s,a){return s?!!(s.enabled&&s.pollEnabled&&s.autoReview):a}function hy(s,a){return s.announceable===!1||s.status==="running"?!1:s.status==="awaiting"?!a:!0}const py=":draft",so=s=>`${s.key}${py}`,my=s=>Is(s)?so(s):s.key;function Uw(s,a,r){const l=new Set(a);return qs(s).filter(u=>hy(u,r)&&!l.has(my(u)))}function jw(s,a,r=[]){const l=new Set(r),u=new Set(qs(s).map(p=>p.key)),d=[];for(const p of s){if(u.has(p.key)&&!hy(p,a)){for(const y of[p.key,so(p)])l.has(y)&&d.push(y);continue}d.push(p.key),(Is(p)||!u.has(p.key)||l.has(so(p)))&&d.push(so(p))}return d}const Tf=s=>`${s.pr.repo}#${s.pr.number}`,Bw={approve:"approves",comment:"comments",request_changes:"requests changes"};function Iw(s){const a=s.verdict?Bw[s.verdict.recommendation]:"drafted",r=s.blockerCount??0;return r===0?a:`${a} · ${r} blocker${r===1?"":"s"}`}function Hw(s){if(s.length===0)return null;const a=`cerber:${s.map(my).sort().join("|")}`;if(s.length===1){const u=s[0];return{title:Is(u)?`${Tf(u)} draft ready`:`${Tf(u)} awaits your review`,body:Is(u)?`${Iw(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:a,key:u.key}}const r=s.slice(0,3).map(Tf),l=s.length-r.length;return{title:s.every(Is)?`${s.length} drafts ready`:`${s.length} PRs await your review`,body:l>0?`${r.join(", ")} and ${l} more`:r.join(", "),tag:a,key:null}}const qw=new Set(["127.0.0.1","localhost","::1","[::1]"]);function Gw(s,a=window.location.hostname){return!(s!=null&&s.enabled)||!s.notify?!1:qw.has(a)}function Hl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":If(Bf)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function $w(){const s=Hl();if(s==="unsupported"||s==="blocked")return s;if(s==="on")return Hf(Bf,"off"),Hl();if(Hf(Bf,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Hl()}function Yw(s){const a=new Notification(s.title,{body:s.body,tag:s.tag,icon:"/favicon.svg"});a.onclick=()=>{window.focus(),window.location.hash=s.key?`#/r/${encodeURIComponent(s.key)}`:"#/",a.close()}}function Fw(s,a){const r=s??a;if(!r)return null;let l;try{l=JSON.parse(r)}catch{return null}if(!Array.isArray(l))return null;const u=l.filter(d=>typeof d=="string");return s?u:u.flatMap(d=>[d,`${d}${py}`])}function Pw(){const s=F.useRef(null),a=F.useRef(!0),[r,l]=F.useState(!1);return F.useEffect(()=>{let u=!0;s.current=Fw(If(_b),If(Dw));const d=()=>Promise.all([Zf(),Ib().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=Gw(g);l(m),a.current=zw(g,a.current);const b=a.current,v=s.current;if(s.current=jw(y,b,v??[]),Hf(_b,JSON.stringify(s.current)),!v||Hl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const S=Hw(Uw(y,v,b));S&&Yw(S)}).catch(()=>{});d();const p=setInterval(d,Lw);return()=>{u=!1,clearInterval(p)}},[]),r}function gy(){const[s,a]=F.useState(Hl);return F.useEffect(()=>{const r=()=>a(Hl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[s,()=>void $w().then(a)]}const ro=s=>{window.location.hash=`#/r/${encodeURIComponent(s)}`};function Kw(s){const a=s,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function Zw({daemon:s}){return s!=null&&s.enabled?f.jsx("div",{className:"daemon-bar",children:f.jsxs("div",{className:"bar-inner",children:[s.pollEnabled?f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot"}),s.repos.length>0?s.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(s.intervalMs/6e4),"m"]}):f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),f.jsxs("span",{children:["auto-review ",f.jsx("b",{children:s.autoReview?"on":"off"})]}),f.jsxs("span",{children:["auto-send ",f.jsx("b",{children:s.autoSend==="on"?"on":"shadow"})," ≥",s.autoSendThreshold,"%",s.autoSend==="on"?` · ${s.autoSent} sent`:` · ${s.autoSendCandidates} candidate${s.autoSendCandidates===1?"":"s"}`]}),s.trustedRuns&&f.jsxs("span",{className:"warn",title:"Trust rules are set and auto-review is on: reviews of matching PRs run their code unattended. Settings → Trusted PRs, or serve --no-trust.",children:[f.jsx(Ze,{name:"zap",size:12})," trusted PRs run with Bash"]}),f.jsx("span",{className:"grow"}),s.lastPollError?f.jsx("span",{className:"danger",title:s.lastPollError,children:"discovery offline — showing local reviews only"}):f.jsx("span",{className:"faint",children:s.polling?"polling now…":[s.lastSummary?`last: ${s.lastSummary}`:null,s.nextPollAt?`next ${new Date(s.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function Xw({r:s,selected:a,onSelect:r,onOpen:l,awaiting:u}){const d=H_(s),p=k_(s),y=u?j_(s,u):null;return f.jsxs("div",{className:`row${a?" row-on":""}`,onClick:l,onMouseEnter:r,role:"button",tabIndex:-1,children:[f.jsx("span",{className:"col-caret",children:"›"}),f.jsxs("span",{className:"col-slug",title:`${s.pr.owner}/${s.pr.repo}#${s.pr.number}`,children:[s.pr.repo,"#",s.pr.number]}),f.jsx("span",{className:"col-author",title:s.pr.author,children:s.pr.author}),f.jsx("span",{className:"col-title",title:s.pr.title,children:s.pr.title}),s.pr.isDraft&&f.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&f.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),p&&f.jsx("span",{className:"tag tag-done",children:p}),f.jsx("span",{className:"col-comments",children:s.commentCount||""}),f.jsx("span",{className:"col-size",children:s.pr.changedFiles>0?f.jsxs(f.Fragment,{children:[s.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",s.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",s.pr.deletions]})]}):"—"}),f.jsx("span",{className:`col-verdict tone-${d.tone}`,children:d.label}),f.jsx("span",{className:"col-age",children:Bb(s.updatedAt)})]})}function Sb({autoFocus:s}){const[a,r]=F.useState(""),[l,u]=F.useState(!1),[d,p]=F.useState(null),y=g=>{g.preventDefault();const m=a.trim();!m||l||(u(!0),p(null),W_(m).then(b=>ro(b.key)).catch(b=>{p(String(b instanceof Error?b.message:b)),u(!1)}))};return f.jsxs("form",{className:"pull",onSubmit:y,children:[f.jsx(Ze,{name:"plus"}),f.jsx("input",{className:"pull-input",value:a,autoFocus:s,disabled:l,onChange:g=>{r(g.target.value),d&&p(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),a.trim()&&f.jsx("button",{className:"btn btn-small",type:"submit",disabled:l,children:l?"starting…":"review"}),d&&f.jsx("span",{className:"pull-error",children:d})]})}function Vw({text:s}){const a=F.useRef(null),[r,l]=F.useState(!1);return F.useLayoutEffect(()=>{const u=a.current;if(!u)return;const d=()=>l(u.scrollHeight-u.clientHeight>4);d();const p=new ResizeObserver(d);return p.observe(u),()=>p.disconnect()},[s]),f.jsx("div",{ref:a,className:`strip-prose${r?" strip-prose-clipped":""}`,children:f.jsx(zi,{className:"prose",text:s})})}function Qw(){var ee;const[s,a]=F.useState(null),[r,l]=F.useState(null),[u,d]=F.useState(null),[p,y]=F.useState(new Set),[g,m]=F.useState("inbox"),[b,v]=F.useState(null),S=F.useRef(!0);F.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]);const w=()=>{Zf().then(Z=>S.current&&a(Z)).catch(Z=>S.current&&d(String(Z))),Ib().then(Z=>S.current&&l(Z)).catch(()=>{})};F.useEffect(()=>{w();const Z=setInterval(w,1e4);return()=>clearInterval(Z)},[]);const T=s??[],O=F.useMemo(()=>R_(T,r),[T,r]),x=O.requests,k=O_(g,O),B=O[k];F.useEffect(()=>{k!==g&&m(k)},[k,g]);const M=B.find(Z=>Z.key===b)??B[0]??null,ae=Z=>{y(me=>new Set(me).add(Z)),Hb(Z).then(()=>w()).catch(me=>S.current&&d(String(me))).finally(()=>{S.current&&y(me=>{const ce=new Set(me);return ce.delete(Z),ce})})};if(F.useEffect(()=>{const Z=me=>{if(Kw(me.target)||me.metaKey||me.ctrlKey||me.altKey)return;const ce=B.findIndex(J=>J.key===(M==null?void 0:M.key)),Ee=J=>{const z=B[Math.min(B.length-1,Math.max(0,ce+J))];z&&v(z.key)};me.key==="j"||me.key==="ArrowDown"?(me.preventDefault(),Ee(1)):me.key==="k"||me.key==="ArrowUp"?(me.preventDefault(),Ee(-1)):me.key==="Enter"&&M?ro(M.key):me.key==="r"&&M&&M.status!=="sent"&&M.status!=="running"&&ae(M.key)};return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)},[B,M==null?void 0:M.key]),u&&!s)return f.jsx("p",{className:"error",children:u});if(!s)return f.jsx("p",{className:"muted pad",children:"Loading…"});const $=B.reduce((Z,me)=>Z+(me.costUsd??0),0),X=M?G_(M,r):null,ie=M?p.has(M.key):!1,C=xf.filter(Z=>O[Z].length>0),P=Z=>f.jsxs("button",{className:`tab${k===Z?" tab-on":""}${xf.includes(Z)?" tab-filed":""}${Z==="requests"?" tab-requests":""}`,title:Ou[Z].title,onClick:()=>m(Z),children:[Ou[Z].label," ",f.jsx("span",{className:"tab-count",children:O[Z].length})]},Z);return f.jsxs(f.Fragment,{children:[f.jsx(Zw,{daemon:r}),u&&f.jsx("div",{className:"wrap",children:f.jsx("p",{className:"error",children:u})}),T.length===0?f.jsx("div",{className:"wrap",children:f.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?f.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):f.jsx("p",{children:"No reviews yet."}),f.jsx(Sb,{autoFocus:!0})]})}):f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"tabs",children:[w_.map(P),C.length>0&&f.jsx("span",{className:"tab-split","aria-hidden":"true"}),C.map(P),f.jsx("span",{className:"grow"}),f.jsx(Sb,{}),$>0&&f.jsxs("span",{className:"faint",title:"What these reviews would cost at API token rates. Riding a Claude subscription, they draw on your usage limits instead.",children:["≈$",$.toFixed(2)," at API rates"]})]}),f.jsxs("div",{className:"table-head",children:[f.jsx("span",{className:"col-caret"}),f.jsx("span",{className:"col-slug",children:"repo#pr"}),f.jsx("span",{className:"col-author",children:"author"}),f.jsx("span",{className:"col-title",children:"title"}),f.jsx("span",{className:"col-comments",children:"c"}),f.jsx("span",{className:"col-size",children:"size"}),f.jsx("span",{className:"col-verdict",children:"verdict"}),f.jsx("span",{className:"col-age",children:"upd"})]}),B.length===0?f.jsx("div",{className:"empty-tab",children:k==="inbox"&&x.length>0?f.jsxs(f.Fragment,{children:[f.jsx("p",{children:B_(x)}),f.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[f.jsx(Ze,{name:"arrowRight"}),"show ",x.length===1?"it":`all ${x.length}`]})]}):f.jsx("p",{className:"muted",children:k==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Ou[k].label} right now.`})}):B.map(Z=>f.jsx(Xw,{r:Z,selected:Z.key===(M==null?void 0:M.key),onSelect:()=>v(Z.key),onOpen:()=>ro(Z.key),awaiting:A_(Z,x)?C_(Z,r):null},Z.key)),M&&X&&f.jsxs("div",{className:"cursor-strip",children:[f.jsxs("div",{className:"cursor-strip-body",children:[f.jsxs("div",{className:"lab",children:[M.pr.owner,"/",M.pr.repo,"#",M.pr.number,M.pr.headRefName&&M.pr.baseRefName?` · ${M.pr.headRefName} → ${M.pr.baseRefName}`:""]}),f.jsx(Vw,{text:X.reasoning}),f.jsxs("div",{className:"cursor-strip-meta",children:[X.meta.join(" · "),((ee=M.sent)==null?void 0:ee.url)&&f.jsxs(f.Fragment,{children:[" · ",f.jsx("a",{href:M.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),f.jsxs("div",{className:"cursor-strip-actions",children:[f.jsxs("button",{className:"btn-primary",onClick:()=>ro(M.key),children:[f.jsx(Ze,{name:"arrowRight"}),"open review ",f.jsx(za,{children:"↵"})]}),f.jsxs("div",{className:"cursor-strip-row",children:[f.jsxs("button",{className:"btn",disabled:M.status==="sent"||M.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>io(M.key,{status:"skipped"}).then(w).catch(Z=>d(String(Z))),children:[f.jsx(Ze,{name:"skip"}),"skip"]}),f.jsxs("button",{className:"btn",disabled:ie||M.status==="running"||M.status==="sent",title:M.status==="sent"?"This review was sent — it is a record now.":"Draft a review of the PR's current head.",onClick:()=>ae(M.key),children:[f.jsx(Ze,{name:"rerun"}),ie?"starting…":M.status==="awaiting"||M.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const po="cerber.theme";function by(s){return s==="light"||s==="dark"?s:"system"}function Ww(){try{return by(localStorage.getItem(po))}catch{return"system"}}function yy(s,a=document.documentElement){s==="system"?delete a.dataset.theme:a.dataset.theme=s}function Jw(s,a){try{const r=a??localStorage;s==="system"?r.removeItem(po):r.setItem(po,s)}catch{}}function eT(){vy(yy)}function vy(s){const a=r=>{(r.key===po||r.key===null)&&s(by(r.newValue))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)}function tT(){const[s,a]=F.useState(Ww);return F.useEffect(()=>vy(a),[]),[s,l=>{Jw(l),yy(l),a(l)}]}const nT=[{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"}],Nb=s=>s instanceof Error?s.message:String(s),aT={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"},iT=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}];function lT({daemonAnnounces:s}){const[a,r]=gy(),[l,u]=tT(),[d,p]=sy(),[y,g]=F.useState(null),[m,b]=F.useState(""),[v,S]=F.useState(null),[w,T]=F.useState(!1);F.useEffect(()=>{r0().then(g).catch(k=>S(Nb(k)))},[]);const O=k=>{T(!0),S(null),k.then(g).catch(B=>S(Nb(B))).finally(()=>T(!1))};if(v&&!y)return f.jsx("p",{className:"error",children:v});if(!y)return f.jsx("p",{className:"muted",children:"Loading…"});const x=s&&y.daemon.poll&&y.daemon.notify;return f.jsxs("div",{className:"settings",children:[f.jsx("a",{href:"#/",className:"back",children:"← queue"}),f.jsx("h1",{children:"Inbox"}),f.jsx("p",{children:"By default cerber keeps the queue itself: it polls GitHub for PRs awaiting your review and drafts a review for each, so they're ready when you open the cockpit. Nothing is ever sent without you. Changes apply on the next poll — no restart."}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:y.daemon.poll,disabled:w,onChange:k=>O(Mu({poll:k.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",y.daemon.intervalMinutes,"m)"]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:y.daemon.autoReview,disabled:w||!y.daemon.poll,onChange:k=>O(Mu({autoReview:k.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),f.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",f.jsx("code",{children:y.path})," under"," ",f.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),f.jsx("h1",{children:"Notifications"}),f.jsx("p",{children:'When a PR is worth coming back for, cerber says so: one desktop notification per poll. With auto-review on that moment is the draft landing, not the PR arriving — a tap that leads to "no run yet" costs you the walk back and gives you nothing — and the notification names what the review found. A PR nobody is drafting (auto-review off, or a run that failed) is announced as it lands, since that is all the news there will be — and if a retry then drafts it after all, that is new news and you are told. Several at once fold into one notification, and a PR whose draft has been announced never arrives twice, however its next re-review ends.'}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:y.daemon.notify,disabled:w||!y.daemon.poll,onChange:k=>O(Mu({notify:k.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),f.jsxs("p",{className:"muted",children:["This is the one that works while you're somewhere else: it rides the poll, so it needs nothing open but ",f.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",f.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",f.jsx("strong",{children:"opens that review when you click it"}),', through a small app cerber builds for the job (the first one asks you to allow notifications from "Cerber"); a'," ",f.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:a==="on",disabled:a==="unsupported"||a==="blocked"||x,onChange:r})," ",x?"let this browser announce them instead":aT[a]]}),f.jsx("p",{className:"muted",children:x?f.jsx(f.Fragment,{children:"Standing down while the machine's own notification is on — two popups for one PR is one too many. Untick the machine one above and this browser takes over: it names the PR and opens that review on click just the same, but only while a cockpit tab is open and this browser has granted the permission."}):f.jsxs(f.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",f.jsx("code",{children:y.path}),". Granting it is the browser's prompt, not cerber's — a browser that has blocked cerber has to be un-blocked from the padlock next to the address bar. Nothing is announced while you're looking straight at the cockpit."]})}),f.jsx("h1",{id:"appearance",children:"Appearance"}),f.jsx("div",{role:"radiogroup","aria-labelledby":"appearance",children:iT.map(({choice:k,label:B})=>f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"radio",name:"theme",checked:l===k,onChange:()=>u(k)})," ",B]},k))}),f.jsxs("p",{className:"muted",children:["Per-browser, like the notification switch: it's about this screen, not your reviews, so it lives here rather than in ",f.jsx("code",{children:y.path}),"."]}),f.jsx("h1",{children:"Review page"}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:d,onChange:k=>p(k.target.checked)})," ","keep the chapter title pinned while scrolling through it"]}),f.jsx("p",{className:"muted",children:"Ten files into a chapter you still see which one you're in, and the pinned title can open the chapter's explanation. Per-browser, like the theme."}),f.jsx("h1",{children:"Trusted PRs"}),f.jsxs("p",{children:["Every review reads the PR's code. A ",f.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",f.jsx("code",{children:"git log"})," — so it can report what happened instead of guessing. That means executing code from the PR on this machine, the same as checking the branch out and running the tests yourself."]}),f.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",f.jsx("code",{children:y.path}),"."]}),f.jsx("p",{className:"muted",children:'Only people can be trusted — there is no way to trust a repository. Anyone can open a PR against a repo you own, so trusting the repo would trust them too. Membership is checked against GitHub when the review runs, and a check that fails counts as "not a member".'}),f.jsxs("div",{className:"trust-add",children:[f.jsx("input",{value:m,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:w,onChange:k=>b(k.target.value),onKeyDown:k=>{k.key==="Enter"&&!w&&m.trim()&&(O(Cu(m.trim())),b(""))}}),f.jsx("button",{className:"btn",disabled:w||!m.trim(),onClick:()=>{O(Cu(m.trim())),b("")},children:"trust"})]}),v&&f.jsx("p",{className:"error",children:v}),y.trust.length===0?f.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:y.trust.map(k=>f.jsxs("tr",{className:k.denies?"trust-deny":void 0,children:[f.jsx("td",{children:f.jsx("code",{children:k.rule})}),f.jsx("td",{className:"muted",children:k.explanation}),f.jsx("td",{className:"trust-actions",children:f.jsx("button",{className:"btn",disabled:w,onClick:()=>O(Cu(k.rule,!0)),children:"remove"})})]},k.rule))})}),f.jsx("h2",{children:"Rule syntax"}),f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:nT.map(k=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx("code",{children:k.rule})}),f.jsx("td",{className:"muted",children:k.meaning})]},k.rule))})}),f.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",f.jsx("code",{children:"gh"})," login, no git or ssh identity — so a push fails to authenticate rather than being merely discouraged. It is not a sandbox though: it has ",f.jsx("code",{children:"Bash"})," and this machine, so trust people you would let run their branch here anyway. The daemon reviews unattended, so with rules set it runs matching PRs' code with nobody watching — start it with ",f.jsx("code",{children:"--no-trust"})," to prevent that."]})]})}function wb(){const s=window.location.hash,a=s.match(/^#\/r\/(.+)$/);return a?{view:"detail",key:decodeURIComponent(a[1])}:s==="#/settings"?{view:"settings"}:{view:"queue"}}const Tb={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."},xb="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 sT({daemonAnnounces:s}){const[a,r]=gy();return s?f.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:xb,"aria-label":xb,children:f.jsx(Ze,{name:"bell",size:15})}):a==="unsupported"?null:f.jsx("button",{className:`topbar-link bell bell-${a}`,title:Tb[a],"aria-label":Tb[a],"aria-pressed":a==="on",onClick:r,children:f.jsx(Ze,{name:a==="on"?"bell":"bellOff",size:15})})}function rT(){const[s,a]=F.useState(wb()),r=Pw();return F.useEffect(()=>{const l=()=>a(wb());return window.addEventListener("hashchange",l),()=>window.removeEventListener("hashchange",l)},[]),s.view==="detail"?f.jsx("div",{className:"app",children:f.jsx(Mw,{reviewKey:s.key})}):f.jsxs("div",{className:"app",children:[f.jsx("header",{className:"topbar",children:f.jsxs("div",{className:"bar-inner",children:[f.jsxs("a",{href:"#/",className:"brand",children:[f.jsx(gS,{}),"cerber"]}),f.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),f.jsx("span",{className:"grow"}),s.view==="queue"&&f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:"hint",children:[f.jsx(za,{children:"j"}),f.jsx(za,{children:"k"}),"move"]}),f.jsxs("span",{className:"hint",children:[f.jsx(za,{children:"↵"}),"open"]}),f.jsxs("span",{className:"hint",children:[f.jsx(za,{children:"r"}),"review now"]})]}),f.jsx(sT,{daemonAnnounces:r}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Ze,{name:"settings",size:15})})]})}),s.view==="queue"?f.jsx(Qw,{}):f.jsx(lT,{daemonAnnounces:r})]})}eT();DE.createRoot(document.getElementById("root")).render(f.jsx(AE.StrictMode,{children:f.jsx(rT,{})}));