@fullstackhouse/cerber 1.3.0-pr.82.b6c3f2b → 1.3.1-pr.84.9e96edf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
var jE=Object.defineProperty;var UE=(i,a,r)=>a in i?jE(i,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[a]=r;var At=(i,a,r)=>UE(i,typeof a!="symbol"?a+"":a,r);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function Ub(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var wu={exports:{}},Ms={};/**
|
|
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 Fm;function BE(){if(Fm)return Ms;Fm=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,u,f){var p=null;if(f!==void 0&&(p=""+f),u.key!==void 0&&(p=""+u.key),"key"in u){f={};for(var y in u)y!=="key"&&(f[y]=u[y])}else f=u;return u=f.ref,{$$typeof:i,type:s,key:p,ref:u!==void 0?u:null,props:f}}return Ms.Fragment=a,Ms.jsx=r,Ms.jsxs=r,Ms}var Pm;function IE(){return Pm||(Pm=1,wu.exports=BE()),wu.exports}var d=IE(),Nu={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 Km;function HE(){if(Km)return Ye;Km=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function x(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,A={};function O(w,z,B){this.props=w,this.context=z,this.refs=A,this.updater=B||_}O.prototype.isReactComponent={},O.prototype.setState=function(w,z){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,z,"setState")},O.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function G(){}G.prototype=O.prototype;function D(w,z,B){this.props=w,this.context=z,this.refs=A,this.updater=B||_}var V=D.prototype=new G;V.constructor=D,C(V,O.prototype),V.isPureReactComponent=!0;var j=Array.isArray;function le(){}var X={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function q(w,z,B){var re=B.ref;return{$$typeof:i,type:w,key:z,ref:re!==void 0?re:null,props:B}}function ee(w,z){return q(w.type,z,w.props)}function ce(w){return typeof w=="object"&&w!==null&&w.$$typeof===i}function Se(w){var z={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(B){return z[B]})}var Z=/\/+/g;function pe(w,z){return typeof w=="object"&&w!==null&&w.key!=null?Se(""+w.key):z.toString(36)}function he(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(le,le):(w.status="pending",w.then(function(z){w.status==="pending"&&(w.status="fulfilled",w.value=z)},function(z){w.status==="pending"&&(w.status="rejected",w.reason=z)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function M(w,z,B,re,me){var ve=typeof w;(ve==="undefined"||ve==="boolean")&&(w=null);var Q=!1;if(w===null)Q=!0;else switch(ve){case"bigint":case"string":case"number":Q=!0;break;case"object":switch(w.$$typeof){case i:case a:Q=!0;break;case b:return Q=w._init,M(Q(w._payload),z,B,re,me)}}if(Q)return me=me(w),Q=re===""?"."+pe(w,0):re,j(me)?(B="",Q!=null&&(B=Q.replace(Z,"$&/")+"/"),M(me,z,B,"",function(Ge){return Ge})):me!=null&&(ce(me)&&(me=ee(me,B+(me.key==null||w&&w.key===me.key?"":(""+me.key).replace(Z,"$&/")+"/")+Q)),z.push(me)),1;Q=0;var be=re===""?".":re+":";if(j(w))for(var xe=0;xe<w.length;xe++)re=w[xe],ve=be+pe(re,xe),Q+=M(re,z,B,ve,me);else if(xe=x(w),typeof xe=="function")for(w=xe.call(w),xe=0;!(re=w.next()).done;)re=re.value,ve=be+pe(re,xe++),Q+=M(re,z,B,ve,me);else if(ve==="object"){if(typeof w.then=="function")return M(he(w),z,B,re,me);throw z=String(w),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return Q}function J(w,z,B){if(w==null)return w;var re=[],me=0;return M(w,re,"","",function(ve){return z.call(B,ve,me++)}),re}function fe(w){if(w._status===-1){var z=w._result;z=z(),z.then(function(B){(w._status===0||w._status===-1)&&(w._status=1,w._result=B)},function(B){(w._status===0||w._status===-1)&&(w._status=2,w._result=B)}),w._status===-1&&(w._status=0,w._result=z)}if(w._status===1)return w._result.default;throw w._result}var we=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},De={map:J,forEach:function(w,z,B){J(w,function(){z.apply(this,arguments)},B)},count:function(w){var z=0;return J(w,function(){z++}),z},toArray:function(w){return J(w,function(z){return z})||[]},only:function(w){if(!ce(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return Ye.Activity=v,Ye.Children=De,Ye.Component=O,Ye.Fragment=r,Ye.Profiler=u,Ye.PureComponent=D,Ye.StrictMode=s,Ye.Suspense=g,Ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,Ye.__COMPILER_RUNTIME={__proto__:null,c:function(w){return X.H.useMemoCache(w)}},Ye.cache=function(w){return function(){return w.apply(null,arguments)}},Ye.cacheSignal=function(){return null},Ye.cloneElement=function(w,z,B){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var re=C({},w.props),me=w.key;if(z!=null)for(ve in z.key!==void 0&&(me=""+z.key),z)!T.call(z,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&z.ref===void 0||(re[ve]=z[ve]);var ve=arguments.length-2;if(ve===1)re.children=B;else if(1<ve){for(var Q=Array(ve),be=0;be<ve;be++)Q[be]=arguments[be+2];re.children=Q}return q(w.type,me,re)},Ye.createContext=function(w){return w={$$typeof:p,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},Ye.createElement=function(w,z,B){var re,me={},ve=null;if(z!=null)for(re in z.key!==void 0&&(ve=""+z.key),z)T.call(z,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(me[re]=z[re]);var Q=arguments.length-2;if(Q===1)me.children=B;else if(1<Q){for(var be=Array(Q),xe=0;xe<Q;xe++)be[xe]=arguments[xe+2];me.children=be}if(w&&w.defaultProps)for(re in Q=w.defaultProps,Q)me[re]===void 0&&(me[re]=Q[re]);return q(w,ve,me)},Ye.createRef=function(){return{current:null}},Ye.forwardRef=function(w){return{$$typeof:y,render:w}},Ye.isValidElement=ce,Ye.lazy=function(w){return{$$typeof:b,_payload:{_status:-1,_result:w},_init:fe}},Ye.memo=function(w,z){return{$$typeof:m,type:w,compare:z===void 0?null:z}},Ye.startTransition=function(w){var z=X.T,B={};X.T=B;try{var re=w(),me=X.S;me!==null&&me(B,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(le,we)}catch(ve){we(ve)}finally{z!==null&&B.types!==null&&(z.types=B.types),X.T=z}},Ye.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},Ye.use=function(w){return X.H.use(w)},Ye.useActionState=function(w,z,B){return X.H.useActionState(w,z,B)},Ye.useCallback=function(w,z){return X.H.useCallback(w,z)},Ye.useContext=function(w){return X.H.useContext(w)},Ye.useDebugValue=function(){},Ye.useDeferredValue=function(w,z){return X.H.useDeferredValue(w,z)},Ye.useEffect=function(w,z){return X.H.useEffect(w,z)},Ye.useEffectEvent=function(w){return X.H.useEffectEvent(w)},Ye.useId=function(){return X.H.useId()},Ye.useImperativeHandle=function(w,z,B){return X.H.useImperativeHandle(w,z,B)},Ye.useInsertionEffect=function(w,z){return X.H.useInsertionEffect(w,z)},Ye.useLayoutEffect=function(w,z){return X.H.useLayoutEffect(w,z)},Ye.useMemo=function(w,z){return X.H.useMemo(w,z)},Ye.useOptimistic=function(w,z){return X.H.useOptimistic(w,z)},Ye.useReducer=function(w,z,B){return X.H.useReducer(w,z,B)},Ye.useRef=function(w){return X.H.useRef(w)},Ye.useState=function(w){return X.H.useState(w)},Ye.useSyncExternalStore=function(w,z,B){return X.H.useSyncExternalStore(w,z,B)},Ye.useTransition=function(){return X.H.useTransition()},Ye.version="19.2.8",Ye}var Zm;function Xd(){return Zm||(Zm=1,Nu.exports=HE()),Nu.exports}var H=Xd();const qE=Ub(H);var xu={exports:{}},Ds={},Tu={exports:{}},Au={};/**
|
|
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 Xm;function GE(){return Xm||(Xm=1,(function(i){function a(M,J){var fe=M.length;M.push(J);e:for(;0<fe;){var we=fe-1>>>1,De=M[we];if(0<u(De,J))M[we]=J,M[fe]=De,fe=we;else break e}}function r(M){return M.length===0?null:M[0]}function s(M){if(M.length===0)return null;var J=M[0],fe=M.pop();if(fe!==J){M[0]=fe;e:for(var we=0,De=M.length,w=De>>>1;we<w;){var z=2*(we+1)-1,B=M[z],re=z+1,me=M[re];if(0>u(B,fe))re<De&&0>u(me,B)?(M[we]=me,M[re]=fe,we=re):(M[we]=B,M[z]=fe,we=z);else if(re<De&&0>u(me,fe))M[we]=me,M[re]=fe,we=re;else break e}}return J}function u(M,J){var fe=M.sortIndex-J.sortIndex;return fe!==0?fe:M.id-J.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var p=Date,y=p.now();i.unstable_now=function(){return p.now()-y}}var g=[],m=[],b=1,v=null,S=3,x=!1,_=!1,C=!1,A=!1,O=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function V(M){for(var J=r(m);J!==null;){if(J.callback===null)s(m);else if(J.startTime<=M)s(m),J.sortIndex=J.expirationTime,a(g,J);else break;J=r(m)}}function j(M){if(C=!1,V(M),!_)if(r(g)!==null)_=!0,le||(le=!0,Se());else{var J=r(m);J!==null&&he(j,J.startTime-M)}}var le=!1,X=-1,T=5,q=-1;function ee(){return A?!0:!(i.unstable_now()-q<T)}function ce(){if(A=!1,le){var M=i.unstable_now();q=M;var J=!0;try{e:{_=!1,C&&(C=!1,G(X),X=-1),x=!0;var fe=S;try{t:{for(V(M),v=r(g);v!==null&&!(v.expirationTime>M&&ee());){var we=v.callback;if(typeof we=="function"){v.callback=null,S=v.priorityLevel;var De=we(v.expirationTime<=M);if(M=i.unstable_now(),typeof De=="function"){v.callback=De,V(M),J=!0;break t}v===r(g)&&s(g),V(M)}else s(g);v=r(g)}if(v!==null)J=!0;else{var w=r(m);w!==null&&he(j,w.startTime-M),J=!1}}break e}finally{v=null,S=fe,x=!1}J=void 0}}finally{J?Se():le=!1}}}var Se;if(typeof D=="function")Se=function(){D(ce)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,pe=Z.port2;Z.port1.onmessage=ce,Se=function(){pe.postMessage(null)}}else Se=function(){O(ce,0)};function he(M,J){X=O(function(){M(i.unstable_now())},J)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(M){M.callback=null},i.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<M?Math.floor(1e3/M):5},i.unstable_getCurrentPriorityLevel=function(){return S},i.unstable_next=function(M){switch(S){case 1:case 2:case 3:var J=3;break;default:J=S}var fe=S;S=J;try{return M()}finally{S=fe}},i.unstable_requestPaint=function(){A=!0},i.unstable_runWithPriority=function(M,J){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var fe=S;S=M;try{return J()}finally{S=fe}},i.unstable_scheduleCallback=function(M,J,fe){var we=i.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?we+fe:we):fe=we,M){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=fe+De,M={id:b++,callback:J,priorityLevel:M,startTime:fe,expirationTime:De,sortIndex:-1},fe>we?(M.sortIndex=fe,a(m,M),r(g)===null&&M===r(m)&&(C?(G(X),X=-1):C=!0,he(j,fe-we))):(M.sortIndex=De,a(g,M),_||x||(_=!0,le||(le=!0,Se()))),M},i.unstable_shouldYield=ee,i.unstable_wrapCallback=function(M){var J=S;return function(){var fe=S;S=J;try{return M.apply(this,arguments)}finally{S=fe}}}})(Au)),Au}var Vm;function $E(){return Vm||(Vm=1,Tu.exports=GE()),Tu.exports}var Ru={exports:{}},Cn={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Qm;function YE(){if(Qm)return Cn;Qm=1;var i=Xd();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(g,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:g,containerInfo:m,implementation:b}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Cn.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return f(g,m,null,b)},Cn.flushSync=function(g){var m=p.T,b=s.p;try{if(p.T=null,s.p=2,g)return g()}finally{p.T=m,s.p=b,s.d.f()}},Cn.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(g,m))},Cn.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Cn.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?s.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:x}):b==="script"&&s.d.X(g,{crossOrigin:v,integrity:S,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Cn.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=y(m.as,m.crossOrigin);s.d.M(g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(g)},Cn.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin);s.d.L(g,b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Cn.preloadModule=function(g,m){if(typeof g=="string")if(m){var b=y(m.as,m.crossOrigin);s.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(g)},Cn.requestFormReset=function(g){s.d.r(g)},Cn.unstable_batchedUpdates=function(g,m){return g(m)},Cn.useFormState=function(g,m,b){return p.H.useFormState(g,m,b)},Cn.useFormStatus=function(){return p.H.useHostTransitionStatus()},Cn.version="19.2.8",Cn}var Wm;function Bb(){if(Wm)return Ru.exports;Wm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),Ru.exports=YE(),Ru.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 Jm;function FE(){if(Jm)return Ds;Jm=1;var i=$E(),a=Xd(),r=Bb();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===l)return g(o),t;c=c.sibling}throw Error(s(188))}if(n.return!==l.return)n=o,l=c;else{for(var h=!1,E=o.child;E;){if(E===n){h=!0,n=o,l=c;break}if(E===l){h=!0,l=o,n=c;break}E=E.sibling}if(!h){for(E=c.child;E;){if(E===n){h=!0,n=c,l=o;break}if(E===l){h=!0,l=c,n=o;break}E=E.sibling}if(!h)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),D=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function Se(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var Z=Symbol.for("react.client.reference");function pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Z?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case O:return"Profiler";case A:return"StrictMode";case j:return"Suspense";case le:return"SuspenseList";case q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case D:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var he=Array.isArray,M=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},we=[],De=-1;function w(e){return{current:e}}function z(e){0>De||(e.current=we[De],we[De]=null,De--)}function B(e,t){De++,we[De]=e.current,e.current=t}var re=w(null),me=w(null),ve=w(null),Q=w(null);function be(e,t){switch(B(ve,t),B(me,e),B(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pm(t),e=mm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(re),B(re,e)}function xe(){z(re),z(me),z(ve)}function Ge(e){e.memoizedState!==null&&B(Q,e);var t=re.current,n=mm(t,e.type);t!==n&&(B(me,e),B(re,n))}function $e(e){me.current===e&&(z(re),z(me)),Q.current===e&&(z(Q),Rs._currentValue=fe)}var Ce,St;function Ze(e){if(Ce===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||"",St=-1<n.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Ce+e+St}var In=!1;function Je(e,t){if(!e||In)return"";In=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={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(W){var K=W}Reflect.construct(e,[],oe)}else{try{oe.call()}catch(W){K=W}e.call(oe.prototype)}}else{try{throw Error()}catch(W){K=W}(oe=e())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(W){if(W&&K&&typeof W.stack=="string")return[W.stack,K.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),h=c[0],E=c[1];if(h&&E){var k=h.split(`
|
|
44
|
-
`),P=E.split(`
|
|
45
|
-
`);for(o=l=0;l<k.length&&!k[l].includes("DetermineComponentFrameRoot");)l++;for(;o<P.length&&!P[o].includes("DetermineComponentFrameRoot");)o++;if(l===k.length||o===P.length)for(l=k.length-1,o=P.length-1;1<=l&&0<=o&&k[l]!==P[o];)o--;for(;1<=l&&0<=o;l--,o--)if(k[l]!==P[o]){if(l!==1||o!==1)do if(l--,o--,0>o||k[l]!==P[o]){var ie=`
|
|
46
|
-
`+k[l].replace(" at new "," at ");return e.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",e.displayName)),ie}while(1<=l&&0<=o);break}}}finally{In=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ze(n):""}function Ln(e,t){switch(e.tag){case 26:case 27:case 5:return Ze(e.type);case 16:return Ze("Lazy");case 13:return e.child!==t&&t!==null?Ze("Suspense Fallback"):Ze("Suspense");case 19:return Ze("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 Ze("Activity");default:return""}}function Hn(e){try{var t="",n=null;do t+=Ln(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
-
Error generating stack: `+l.message+`
|
|
48
|
-
`+l.stack}}var It=Object.prototype.hasOwnProperty,Rt=i.unstable_scheduleCallback,on=i.unstable_cancelCallback,yn=i.unstable_shouldYield,Ft=i.unstable_requestPaint,je=i.unstable_now,Lt=i.unstable_getCurrentPriorityLevel,vt=i.unstable_ImmediatePriority,Ot=i.unstable_UserBlockingPriority,Tn=i.unstable_NormalPriority,zn=i.unstable_LowPriority,An=i.unstable_IdlePriority,jn=i.log,Rn=i.unstable_setDisableYieldValue,cn=null,Ht=null;function kn(e){if(typeof jn=="function"&&Rn(e),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(cn,e)}catch{}}var qt=Math.clz32?Math.clz32:hn,la=Math.log,un=Math.LN2;function hn(e){return e>>>=0,e===0?32:31-(la(e)/un|0)|0}var qe=256,pn=262144,Pt=4194304;function Gt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function R(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var E=l&134217727;return E!==0?(l=E&~c,l!==0?o=Gt(l):(h&=E,h!==0?o=Gt(h):n||(n=E&~e,n!==0&&(o=Gt(n))))):(E=l&~c,E!==0?o=Gt(E):h!==0?o=Gt(h):n||(n=l&~e,n!==0&&(o=Gt(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function ne(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=Pt;return Pt<<=1,(Pt&62914560)===0&&(Pt=4194304),e}function Qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ae(e,t,n,l,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,k=e.expirationTimes,P=e.hiddenUpdates;for(n=h&~n;0<n;){var ie=31-qt(n),oe=1<<ie;E[ie]=0,k[ie]=-1;var K=P[ie];if(K!==null)for(P[ie]=null,ie=0;ie<K.length;ie++){var W=K[ie];W!==null&&(W.lane&=-536870913)}n&=~oe}l!==0&&_e(e,l,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 l=31-qt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Ue(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-qt(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function Ct(e,t){var n=t&-t;return n=(n&42)!==0?1:mt(n),(n&(e.suspendedLanes|t))!==0?0:n}function mt(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 qn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function sa(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Bm(e.type))}function Na(e,t){var n=J.p;try{return J.p=e,t()}finally{J.p=n}}var dn=Math.random().toString(36).slice(2),wt="__reactFiber$"+dn,Kt="__reactProps$"+dn,tt="__reactContainer$"+dn,vn="__reactEvents$"+dn,Ua="__reactListeners$"+dn,ba="__reactHandles$"+dn,xa="__reactResources$"+dn,ra="__reactMarker$"+dn;function Ta(e){delete e[wt],delete e[Kt],delete e[vn],delete e[Ua],delete e[ba]}function Wt(e){var t=e[wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sm(e);e!==null;){if(n=e[wt])return n;e=Sm(e)}return t}e=n,n=e.parentNode}return null}function Gn(e){if(e=e[wt]||e[tt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Vn(e){var t=e[xa];return t||(t=e[xa]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[ra]=!0}var $=new Set,ue={};function Ne(e,t){Y(e,t),Y(e+"Capture",t)}function Y(e,t){for(ue[e]=t,e=0;e<t.length;e++)$.add(t[e])}var ge=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]*$"),Ie={},Fe={};function dt(e){return It.call(Fe,e)?!0:It.call(Ie,e)?!1:ge.test(e)?Fe[e]=!0:(Ie[e]=!0,!1)}function gt(e,t,n){if(dt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Bt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Zt(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function il(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.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:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){if(!e._valueTracker){var t=zt(e)?"checked":"value";e._valueTracker=il(e,t,""+e[t])}}function si(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=zt(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Ba(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 ll=/[\n"\\]/g;function On(e){return e.replace(ll,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ri(e,t,n,l,o,c,h,E){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ft(t)):e.value!==""+ft(t)&&(e.value=""+ft(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?oi(e,h,ft(t)):n!=null?oi(e,h,ft(n)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+ft(E):e.removeAttribute("name")}function Ia(e,t,n,l,o,c,h,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){li(e);return}n=n!=null?""+ft(n):"",t=t!=null?""+ft(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=E?e.checked:!!l,e.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),li(e)}function oi(e,t,n){t==="number"&&Ba(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Jt(e,t,n,l){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&&l&&(e[n].defaultSelected=!0)}else{for(n=""+ft(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ha(e,t,n){if(t!=null&&(t=""+ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ft(n):""}function Aa(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(he(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=ft(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),li(e)}function te(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 l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?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 ae(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&n[o]!==l&&U(e,o,l)}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 ke=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 nt(e){return He.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function de(){}var Ee=null;function Me(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ve=null,We=null;function oa(e){var t=Gn(e);if(t&&(e=t.stateNode)){var n=e[Kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ri(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+On(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[Kt]||null;if(!o)throw Error(s(90));ri(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&si(l)}break e;case"textarea":Ha(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}}}var Yl=!1;function Ks(e,t,n){if(Yl)return e(t,n);Yl=!0;try{var l=e(t);return l}finally{if(Yl=!1,(Ve!==null||We!==null)&&(Lr(),Ve&&(t=Ve,e=We,We=Ve=null,oa(t),e)))for(t=0;t<e.length;t++)oa(e[t])}}function Fl(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Kt]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var qa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wo=!1;if(qa)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){wo=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{wo=!1}var ci=null,No=null,Zs=null;function mf(){if(Zs)return Zs;var e,t=No,n=t.length,l,o="value"in ci?ci.value:ci.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(l=1;l<=h&&t[n-l]===o[c-l];l++);return Zs=o.slice(e,1<l?1-l:void 0)}function Xs(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 Vs(){return!0}function gf(){return!1}function $n(e){function t(n,l,o,c,h){this._reactName=n,this._targetInst=o,this.type=l,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)?Vs:gf,this.isPropagationStopped=gf,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=Vs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vs)},persist:function(){},isPersistent:Vs}),t}var ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qs=$n(ji),Kl=v({},ji,{view:0,detail:0}),Ly=$n(Kl),xo,To,Zl,Ws=v({},Kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ro,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!==Zl&&(Zl&&e.type==="mousemove"?(xo=e.screenX-Zl.screenX,To=e.screenY-Zl.screenY):To=xo=0,Zl=e),xo)},movementY:function(e){return"movementY"in e?e.movementY:To}}),bf=$n(Ws),zy=v({},Ws,{dataTransfer:0}),jy=$n(zy),Uy=v({},Kl,{relatedTarget:0}),Ao=$n(Uy),By=v({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),Iy=$n(By),Hy=v({},ji,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qy=$n(Hy),Gy=v({},ji,{data:0}),yf=$n(Gy),$y={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yy={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"},Fy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Py(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Fy[e])?!!t[e]:!1}function Ro(){return Py}var Ky=v({},Kl,{key:function(e){if(e.key){var t=$y[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Yy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ro,charCode:function(e){return e.type==="keypress"?Xs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zy=$n(Ky),Xy=v({},Ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vf=$n(Xy),Vy=v({},Kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ro}),Qy=$n(Vy),Wy=v({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jy=$n(Wy),ev=v({},Ws,{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}),tv=$n(ev),nv=v({},ji,{newState:0,oldState:0}),av=$n(nv),iv=[9,13,27,32],ko=qa&&"CompositionEvent"in window,Xl=null;qa&&"documentMode"in document&&(Xl=document.documentMode);var lv=qa&&"TextEvent"in window&&!Xl,Ef=qa&&(!ko||Xl&&8<Xl&&11>=Xl),_f=" ",Sf=!1;function wf(e,t){switch(e){case"keyup":return iv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sl=!1;function sv(e,t){switch(e){case"compositionend":return Nf(t);case"keypress":return t.which!==32?null:(Sf=!0,_f);case"textInput":return e=t.data,e===_f&&Sf?null:e;default:return null}}function rv(e,t){if(sl)return e==="compositionend"||!ko&&wf(e,t)?(e=mf(),Zs=No=ci=null,sl=!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 Ef&&t.locale!=="ko"?null:t.data;default:return null}}var ov={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 xf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ov[e.type]:t==="textarea"}function Tf(e,t,n,l){Ve?We?We.push(l):We=[l]:Ve=l,t=qr(t,"onChange"),0<t.length&&(n=new Qs("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Vl=null,Ql=null;function cv(e){om(e,0)}function Js(e){var t=Xn(e);if(si(t))return e}function Af(e,t){if(e==="change")return t}var Rf=!1;if(qa){var Oo;if(qa){var Co="oninput"in document;if(!Co){var kf=document.createElement("div");kf.setAttribute("oninput","return;"),Co=typeof kf.oninput=="function"}Oo=Co}else Oo=!1;Rf=Oo&&(!document.documentMode||9<document.documentMode)}function Of(){Vl&&(Vl.detachEvent("onpropertychange",Cf),Ql=Vl=null)}function Cf(e){if(e.propertyName==="value"&&Js(Ql)){var t=[];Tf(t,Ql,e,Me(e)),Ks(cv,t)}}function uv(e,t,n){e==="focusin"?(Of(),Vl=t,Ql=n,Vl.attachEvent("onpropertychange",Cf)):e==="focusout"&&Of()}function dv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Js(Ql)}function fv(e,t){if(e==="click")return Js(t)}function hv(e,t){if(e==="input"||e==="change")return Js(t)}function pv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qn=typeof Object.is=="function"?Object.is:pv;function Wl(e,t){if(Qn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!It.call(t,o)||!Qn(e[o],t[o]))return!1}return!0}function Mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Df(e,t){var n=Mf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mf(n)}}function Lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ba(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=Ba(e.document)}return t}function Mo(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 mv=qa&&"documentMode"in document&&11>=document.documentMode,rl=null,Do=null,Jl=null,Lo=!1;function jf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lo||rl==null||rl!==Ba(l)||(l=rl,"selectionStart"in l&&Mo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Jl&&Wl(Jl,l)||(Jl=l,l=qr(Do,"onSelect"),0<l.length&&(t=new Qs("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=rl)))}function Ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ol={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionrun:Ui("Transition","TransitionRun"),transitionstart:Ui("Transition","TransitionStart"),transitioncancel:Ui("Transition","TransitionCancel"),transitionend:Ui("Transition","TransitionEnd")},zo={},Uf={};qa&&(Uf=document.createElement("div").style,"AnimationEvent"in window||(delete ol.animationend.animation,delete ol.animationiteration.animation,delete ol.animationstart.animation),"TransitionEvent"in window||delete ol.transitionend.transition);function Bi(e){if(zo[e])return zo[e];if(!ol[e])return e;var t=ol[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Uf)return zo[e]=t[n];return e}var Bf=Bi("animationend"),If=Bi("animationiteration"),Hf=Bi("animationstart"),gv=Bi("transitionrun"),bv=Bi("transitionstart"),yv=Bi("transitioncancel"),qf=Bi("transitionend"),Gf=new Map,jo="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(" ");jo.push("scrollEnd");function ya(e,t){Gf.set(e,t),Ne(t,[e])}var er=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ca=[],cl=0,Uo=0;function tr(){for(var e=cl,t=Uo=cl=0;t<e;){var n=ca[t];ca[t++]=null;var l=ca[t];ca[t++]=null;var o=ca[t];ca[t++]=null;var c=ca[t];if(ca[t++]=null,l!==null&&o!==null){var h=l.pending;h===null?o.next=o:(o.next=h.next,h.next=o),l.pending=o}c!==0&&$f(n,o,c)}}function nr(e,t,n,l){ca[cl++]=e,ca[cl++]=t,ca[cl++]=n,ca[cl++]=l,Uo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Bo(e,t,n,l){return nr(e,t,n,l),ar(e)}function Ii(e,t){return nr(e,null,null,t),ar(e)}function $f(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.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-qt(n),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),c):null}function ar(e){if(50<_s)throw _s=0,Kc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ul={};function vv(e,t,n,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wn(e,t,n,l){return new vv(e,t,n,l)}function Io(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ga(e,t){var n=e.alternate;return n===null?(n=Wn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Yf(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 ir(e,t,n,l,o,c){var h=0;if(l=e,typeof e=="function")Io(e)&&(h=1);else if(typeof e=="string")h=NE(e,n,re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case q:return e=Wn(31,n,t,o),e.elementType=q,e.lanes=c,e;case C:return Hi(n.children,o,c,t);case A:h=8,o|=24;break;case O:return e=Wn(12,n,t,o|2),e.elementType=O,e.lanes=c,e;case j:return e=Wn(13,n,t,o),e.elementType=j,e.lanes=c,e;case le:return e=Wn(19,n,t,o),e.elementType=le,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:h=10;break e;case G:h=9;break e;case V:h=11;break e;case X:h=14;break e;case T:h=16,l=null;break e}h=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Wn(h,n,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function Hi(e,t,n,l){return e=Wn(7,e,l,t),e.lanes=n,e}function Ho(e,t,n){return e=Wn(6,e,null,t),e.lanes=n,e}function Ff(e){var t=Wn(18,null,null,0);return t.stateNode=e,t}function qo(e,t,n){return t=Wn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pf=new WeakMap;function ua(e,t){if(typeof e=="object"&&e!==null){var n=Pf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Hn(t)},Pf.set(e,t),t)}return{value:e,source:t,stack:Hn(t)}}var dl=[],fl=0,lr=null,es=0,da=[],fa=0,ui=null,Ra=1,ka="";function $a(e,t){dl[fl++]=es,dl[fl++]=lr,lr=e,es=t}function Kf(e,t,n){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,ui=e;var l=Ra;e=ka;var o=32-qt(l)-1;l&=~(1<<o),n+=1;var c=32-qt(t)+o;if(30<c){var h=o-o%5;c=(l&(1<<h)-1).toString(32),l>>=h,o-=h,Ra=1<<32-qt(t)+o|n<<o|l,ka=c+e}else Ra=1<<c|n<<o|l,ka=e}function Go(e){e.return!==null&&($a(e,1),Kf(e,1,0))}function $o(e){for(;e===lr;)lr=dl[--fl],dl[fl]=null,es=dl[--fl],dl[fl]=null;for(;e===ui;)ui=da[--fa],da[fa]=null,ka=da[--fa],da[fa]=null,Ra=da[--fa],da[fa]=null}function Zf(e,t){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,Ra=t.id,ka=t.overflow,ui=e}var En=null,Mt=null,ot=!1,di=null,ha=!1,Yo=Error(s(519));function fi(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ts(ua(t,e)),Yo}function Xf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[wt]=e,t[Kt]=l,n){case"dialog":it("cancel",t),it("close",t);break;case"iframe":case"object":case"embed":it("load",t);break;case"video":case"audio":for(n=0;n<ws.length;n++)it(ws[n],t);break;case"source":it("error",t);break;case"img":case"image":case"link":it("error",t),it("load",t);break;case"details":it("toggle",t);break;case"input":it("invalid",t),Ia(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":it("invalid",t);break;case"textarea":it("invalid",t),Aa(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||fm(t.textContent,n)?(l.popover!=null&&(it("beforetoggle",t),it("toggle",t)),l.onScroll!=null&&it("scroll",t),l.onScrollEnd!=null&&it("scrollend",t),l.onClick!=null&&(t.onclick=de),t=!0):t=!1,t||fi(e,!0)}function Vf(e){for(En=e.return;En;)switch(En.tag){case 5:case 31:case 13:ha=!1;return;case 27:case 3:ha=!0;return;default:En=En.return}}function hl(e){if(e!==En)return!1;if(!ot)return Vf(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")||ou(e.type,e.memoizedProps)),n=!n),n&&Mt&&fi(e),Vf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Mt=_m(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Mt=_m(e)}else t===27?(t=Mt,Ti(e.type)?(e=hu,hu=null,Mt=e):Mt=t):Mt=En?ma(e.stateNode.nextSibling):null;return!0}function qi(){Mt=En=null,ot=!1}function Fo(){var e=di;return e!==null&&(Kn===null?Kn=e:Kn.push.apply(Kn,e),di=null),e}function ts(e){di===null?di=[e]:di.push(e)}var Po=w(null),Gi=null,Ya=null;function hi(e,t,n){B(Po,t._currentValue),t._currentValue=n}function Fa(e){e._currentValue=Po.current,z(Po)}function Ko(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Zo(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=o;for(var k=0;k<t.length;k++)if(E.context===t[k]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),Ko(c.return,n,e),l||(h=null);break e}c=E.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Ko(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 pl(e,t,n,l){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var E=o.type;Qn(o.pendingProps.value,h.value)||(e!==null?e.push(E):e=[E])}}else if(o===Q.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Rs):e=[Rs])}o=o.return}e!==null&&Zo(t,e,n,l),t.flags|=262144}function sr(e){for(e=e.firstContext;e!==null;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,Ya=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _n(e){return Qf(Gi,e)}function rr(e,t){return Gi===null&&$i(e),Qf(e,t)}function Qf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ya===null){if(e===null)throw Error(s(308));Ya=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ya=Ya.next=t;return n}var Ev=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},_v=i.unstable_scheduleCallback,Sv=i.unstable_NormalPriority,en={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xo(){return{controller:new Ev,data:new Map,refCount:0}}function ns(e){e.refCount--,e.refCount===0&&_v(Sv,function(){e.controller.abort()})}var as=null,Vo=0,ml=0,gl=null;function wv(e,t){if(as===null){var n=as=[];Vo=0,ml=Jc(),gl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Vo++,t.then(Wf,Wf),t}function Wf(){if(--Vo===0&&as!==null){gl!==null&&(gl.status="fulfilled");var e=as;as=null,ml=0,gl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Nv(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var Jf=M.S;M.S=function(e,t){jp=je(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&wv(e,t),Jf!==null&&Jf(e,t)};var Yi=w(null);function Qo(){var e=Yi.current;return e!==null?e:kt.pooledCache}function or(e,t){t===null?B(Yi,Yi.current):B(Yi,t.pool)}function eh(){var e=Qo();return e===null?null:{parent:en._currentValue,pool:e}}var bl=Error(s(460)),Wo=Error(s(474)),cr=Error(s(542)),ur={then:function(){}};function th(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(de,de),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ih(e),e;default:if(typeof t.status=="string")t.then(de,de);else{if(e=kt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ih(e),e}throw Pi=t,bl}}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,bl):n}}var Pi=null;function ah(){if(Pi===null)throw Error(s(459));var e=Pi;return Pi=null,e}function ih(e){if(e===bl||e===cr)throw Error(s(483))}var yl=null,is=0;function dr(e){var t=is;return is+=1,yl===null&&(yl=[]),nh(yl,e,t)}function ls(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fr(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function lh(e){function t(I,L){if(e){var F=I.deletions;F===null?(I.deletions=[L],I.flags|=16):F.push(L)}}function n(I,L){if(!e)return null;for(;L!==null;)t(I,L),L=L.sibling;return null}function l(I){for(var L=new Map;I!==null;)I.key!==null?L.set(I.key,I):L.set(I.index,I),I=I.sibling;return L}function o(I,L){return I=Ga(I,L),I.index=0,I.sibling=null,I}function c(I,L,F){return I.index=F,e?(F=I.alternate,F!==null?(F=F.index,F<L?(I.flags|=67108866,L):F):(I.flags|=67108866,L)):(I.flags|=1048576,L)}function h(I){return e&&I.alternate===null&&(I.flags|=67108866),I}function E(I,L,F,se){return L===null||L.tag!==6?(L=Ho(F,I.mode,se),L.return=I,L):(L=o(L,F),L.return=I,L)}function k(I,L,F,se){var Le=F.type;return Le===C?ie(I,L,F.props.children,se,F.key):L!==null&&(L.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===T&&Fi(Le)===L.type)?(L=o(L,F.props),ls(L,F),L.return=I,L):(L=ir(F.type,F.key,F.props,null,I.mode,se),ls(L,F),L.return=I,L)}function P(I,L,F,se){return L===null||L.tag!==4||L.stateNode.containerInfo!==F.containerInfo||L.stateNode.implementation!==F.implementation?(L=qo(F,I.mode,se),L.return=I,L):(L=o(L,F.children||[]),L.return=I,L)}function ie(I,L,F,se,Le){return L===null||L.tag!==7?(L=Hi(F,I.mode,se,Le),L.return=I,L):(L=o(L,F),L.return=I,L)}function oe(I,L,F){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Ho(""+L,I.mode,F),L.return=I,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case x:return F=ir(L.type,L.key,L.props,null,I.mode,F),ls(F,L),F.return=I,F;case _:return L=qo(L,I.mode,F),L.return=I,L;case T:return L=Fi(L),oe(I,L,F)}if(he(L)||Se(L))return L=Hi(L,I.mode,F,null),L.return=I,L;if(typeof L.then=="function")return oe(I,dr(L),F);if(L.$$typeof===D)return oe(I,rr(I,L),F);fr(I,L)}return null}function K(I,L,F,se){var Le=L!==null?L.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return Le!==null?null:E(I,L,""+F,se);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case x:return F.key===Le?k(I,L,F,se):null;case _:return F.key===Le?P(I,L,F,se):null;case T:return F=Fi(F),K(I,L,F,se)}if(he(F)||Se(F))return Le!==null?null:ie(I,L,F,se,null);if(typeof F.then=="function")return K(I,L,dr(F),se);if(F.$$typeof===D)return K(I,L,rr(I,F),se);fr(I,F)}return null}function W(I,L,F,se,Le){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return I=I.get(F)||null,E(L,I,""+se,Le);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case x:return I=I.get(se.key===null?F:se.key)||null,k(L,I,se,Le);case _:return I=I.get(se.key===null?F:se.key)||null,P(L,I,se,Le);case T:return se=Fi(se),W(I,L,F,se,Le)}if(he(se)||Se(se))return I=I.get(F)||null,ie(L,I,se,Le,null);if(typeof se.then=="function")return W(I,L,F,dr(se),Le);if(se.$$typeof===D)return W(I,L,F,rr(L,se),Le);fr(L,se)}return null}function Re(I,L,F,se){for(var Le=null,ht=null,Oe=L,Xe=L=0,rt=null;Oe!==null&&Xe<F.length;Xe++){Oe.index>Xe?(rt=Oe,Oe=null):rt=Oe.sibling;var pt=K(I,Oe,F[Xe],se);if(pt===null){Oe===null&&(Oe=rt);break}e&&Oe&&pt.alternate===null&&t(I,Oe),L=c(pt,L,Xe),ht===null?Le=pt:ht.sibling=pt,ht=pt,Oe=rt}if(Xe===F.length)return n(I,Oe),ot&&$a(I,Xe),Le;if(Oe===null){for(;Xe<F.length;Xe++)Oe=oe(I,F[Xe],se),Oe!==null&&(L=c(Oe,L,Xe),ht===null?Le=Oe:ht.sibling=Oe,ht=Oe);return ot&&$a(I,Xe),Le}for(Oe=l(Oe);Xe<F.length;Xe++)rt=W(Oe,I,Xe,F[Xe],se),rt!==null&&(e&&rt.alternate!==null&&Oe.delete(rt.key===null?Xe:rt.key),L=c(rt,L,Xe),ht===null?Le=rt:ht.sibling=rt,ht=rt);return e&&Oe.forEach(function(Ci){return t(I,Ci)}),ot&&$a(I,Xe),Le}function Be(I,L,F,se){if(F==null)throw Error(s(151));for(var Le=null,ht=null,Oe=L,Xe=L=0,rt=null,pt=F.next();Oe!==null&&!pt.done;Xe++,pt=F.next()){Oe.index>Xe?(rt=Oe,Oe=null):rt=Oe.sibling;var Ci=K(I,Oe,pt.value,se);if(Ci===null){Oe===null&&(Oe=rt);break}e&&Oe&&Ci.alternate===null&&t(I,Oe),L=c(Ci,L,Xe),ht===null?Le=Ci:ht.sibling=Ci,ht=Ci,Oe=rt}if(pt.done)return n(I,Oe),ot&&$a(I,Xe),Le;if(Oe===null){for(;!pt.done;Xe++,pt=F.next())pt=oe(I,pt.value,se),pt!==null&&(L=c(pt,L,Xe),ht===null?Le=pt:ht.sibling=pt,ht=pt);return ot&&$a(I,Xe),Le}for(Oe=l(Oe);!pt.done;Xe++,pt=F.next())pt=W(Oe,I,Xe,pt.value,se),pt!==null&&(e&&pt.alternate!==null&&Oe.delete(pt.key===null?Xe:pt.key),L=c(pt,L,Xe),ht===null?Le=pt:ht.sibling=pt,ht=pt);return e&&Oe.forEach(function(zE){return t(I,zE)}),ot&&$a(I,Xe),Le}function Tt(I,L,F,se){if(typeof F=="object"&&F!==null&&F.type===C&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case x:e:{for(var Le=F.key;L!==null;){if(L.key===Le){if(Le=F.type,Le===C){if(L.tag===7){n(I,L.sibling),se=o(L,F.props.children),se.return=I,I=se;break e}}else if(L.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===T&&Fi(Le)===L.type){n(I,L.sibling),se=o(L,F.props),ls(se,F),se.return=I,I=se;break e}n(I,L);break}else t(I,L);L=L.sibling}F.type===C?(se=Hi(F.props.children,I.mode,se,F.key),se.return=I,I=se):(se=ir(F.type,F.key,F.props,null,I.mode,se),ls(se,F),se.return=I,I=se)}return h(I);case _:e:{for(Le=F.key;L!==null;){if(L.key===Le)if(L.tag===4&&L.stateNode.containerInfo===F.containerInfo&&L.stateNode.implementation===F.implementation){n(I,L.sibling),se=o(L,F.children||[]),se.return=I,I=se;break e}else{n(I,L);break}else t(I,L);L=L.sibling}se=qo(F,I.mode,se),se.return=I,I=se}return h(I);case T:return F=Fi(F),Tt(I,L,F,se)}if(he(F))return Re(I,L,F,se);if(Se(F)){if(Le=Se(F),typeof Le!="function")throw Error(s(150));return F=Le.call(F),Be(I,L,F,se)}if(typeof F.then=="function")return Tt(I,L,dr(F),se);if(F.$$typeof===D)return Tt(I,L,rr(I,F),se);fr(I,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,L!==null&&L.tag===6?(n(I,L.sibling),se=o(L,F),se.return=I,I=se):(n(I,L),se=Ho(F,I.mode,se),se.return=I,I=se),h(I)):n(I,L)}return function(I,L,F,se){try{is=0;var Le=Tt(I,L,F,se);return yl=null,Le}catch(Oe){if(Oe===bl||Oe===cr)throw Oe;var ht=Wn(29,Oe,null,I.mode);return ht.lanes=se,ht.return=I,ht}finally{}}}var Ki=lh(!0),sh=lh(!1),pi=!1;function Jo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ec(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function mi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gi(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(bt&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=ar(e),$f(e,null,n),t}return nr(e,l,t,n),ar(e)}function ss(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Ue(e,n)}}function tc(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){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:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var nc=!1;function rs(){if(nc){var e=gl;if(e!==null)throw e}}function os(e,t,n,l){nc=!1;var o=e.updateQueue;pi=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var k=E,P=k.next;k.next=null,h===null?c=P:h.next=P,h=k;var ie=e.alternate;ie!==null&&(ie=ie.updateQueue,E=ie.lastBaseUpdate,E!==h&&(E===null?ie.firstBaseUpdate=P:E.next=P,ie.lastBaseUpdate=k))}if(c!==null){var oe=o.baseState;h=0,ie=P=k=null,E=c;do{var K=E.lane&-536870913,W=K!==E.lane;if(W?(st&K)===K:(l&K)===K){K!==0&&K===ml&&(nc=!0),ie!==null&&(ie=ie.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Re=e,Be=E;K=t;var Tt=n;switch(Be.tag){case 1:if(Re=Be.payload,typeof Re=="function"){oe=Re.call(Tt,oe,K);break e}oe=Re;break e;case 3:Re.flags=Re.flags&-65537|128;case 0:if(Re=Be.payload,K=typeof Re=="function"?Re.call(Tt,oe,K):Re,K==null)break e;oe=v({},oe,K);break e;case 2:pi=!0}}K=E.callback,K!==null&&(e.flags|=64,W&&(e.flags|=8192),W=o.callbacks,W===null?o.callbacks=[K]:W.push(K))}else W={lane:K,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ie===null?(P=ie=W,k=oe):ie=ie.next=W,h|=K;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;W=E,E=W.next,W.next=null,o.lastBaseUpdate=W,o.shared.pending=null}}while(!0);ie===null&&(k=oe),o.baseState=k,o.firstBaseUpdate=P,o.lastBaseUpdate=ie,c===null&&(o.shared.lanes=0),_i|=h,e.lanes=h,e.memoizedState=oe}}function rh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function oh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)rh(n[e],t)}var vl=w(null),hr=w(0);function ch(e,t){e=ei,B(hr,e),B(vl,t),ei=e|t.baseLanes}function ac(){B(hr,ei),B(vl,vl.current)}function ic(){ei=hr.current,z(vl),z(hr)}var Jn=w(null),pa=null;function bi(e){var t=e.alternate;B(Xt,Xt.current&1),B(Jn,e),pa===null&&(t===null||vl.current!==null||t.memoizedState!==null)&&(pa=e)}function lc(e){B(Xt,Xt.current),B(Jn,e),pa===null&&(pa=e)}function uh(e){e.tag===22?(B(Xt,Xt.current),B(Jn,e),pa===null&&(pa=e)):yi()}function yi(){B(Xt,Xt.current),B(Jn,Jn.current)}function ea(e){z(Jn),pa===e&&(pa=null),z(Xt)}var Xt=w(0);function pr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||du(n)||fu(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 Pa=0,Pe=null,Nt=null,tn=null,mr=!1,El=!1,Zi=!1,gr=0,cs=0,_l=null,xv=0;function $t(){throw Error(s(321))}function sc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function rc(e,t,n,l,o,c){return Pa=c,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Kh:Sc,Zi=!1,c=n(l,o),Zi=!1,El&&(c=fh(t,n,l,o)),dh(e),c}function dh(e){M.H=fs;var t=Nt!==null&&Nt.next!==null;if(Pa=0,tn=Nt=Pe=null,mr=!1,cs=0,_l=null,t)throw Error(s(300));e===null||nn||(e=e.dependencies,e!==null&&sr(e)&&(nn=!0))}function fh(e,t,n,l){Pe=e;var o=0;do{if(El&&(_l=null),cs=0,El=!1,25<=o)throw Error(s(301));if(o+=1,tn=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)}M.H=Zh,c=t(n,l)}while(El);return c}function Tv(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?us(t):t,e=e.useState()[0],(Nt!==null?Nt.memoizedState:null)!==e&&(Pe.flags|=1024),t}function oc(){var e=gr!==0;return gr=0,e}function cc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function uc(e){if(mr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mr=!1}Pa=0,tn=Nt=Pe=null,El=!1,cs=gr=0,_l=null}function Un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tn===null?Pe.memoizedState=tn=e:tn=tn.next=e,tn}function Vt(){if(Nt===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Nt.next;var t=tn===null?Pe.memoizedState:tn.next;if(t!==null)tn=t,Nt=e;else{if(e===null)throw Pe.alternate===null?Error(s(467)):Error(s(310));Nt=e,e={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},tn===null?Pe.memoizedState=tn=e:tn=tn.next=e}return tn}function br(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function us(e){var t=cs;return cs+=1,_l===null&&(_l=[]),e=nh(_l,e,t),t=Pe,(tn===null?t.memoizedState:tn.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Kh:Sc),e}function yr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return us(e);if(e.$$typeof===D)return _n(e)}throw Error(s(438,String(e)))}function dc(e){var t=null,n=Pe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Pe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=br(),Pe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ee;return t.index++,n}function Ka(e,t){return typeof t=="function"?t(e):t}function vr(e){var t=Vt();return fc(t,Nt,e)}function fc(e,t,n){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=h=null,k=null,P=t,ie=!1;do{var oe=P.lane&-536870913;if(oe!==P.lane?(st&oe)===oe:(Pa&oe)===oe){var K=P.revertLane;if(K===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),oe===ml&&(ie=!0);else if((Pa&K)===K){P=P.next,K===ml&&(ie=!0);continue}else oe={lane:0,revertLane:P.revertLane,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},k===null?(E=k=oe,h=c):k=k.next=oe,Pe.lanes|=K,_i|=K;oe=P.action,Zi&&n(c,oe),c=P.hasEagerState?P.eagerState:n(c,oe)}else K={lane:oe,revertLane:P.revertLane,gesture:P.gesture,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},k===null?(E=k=K,h=c):k=k.next=K,Pe.lanes|=oe,_i|=oe;P=P.next}while(P!==null&&P!==t);if(k===null?h=c:k.next=E,!Qn(c,e.memoizedState)&&(nn=!0,ie&&(n=gl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=k,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function hc(e){var t=Vt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var l=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);Qn(c,t.memoizedState)||(nn=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function hh(e,t,n){var l=Pe,o=Vt(),c=ot;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var h=!Qn((Nt||o).memoizedState,n);if(h&&(o.memoizedState=n,nn=!0),o=o.queue,gc(gh.bind(null,l,o,e),[e]),o.getSnapshot!==t||h||tn!==null&&tn.memoizedState.tag&1){if(l.flags|=2048,Sl(9,{destroy:void 0},mh.bind(null,l,o,n,t),null),kt===null)throw Error(s(349));c||(Pa&127)!==0||ph(l,t,n)}return n}function ph(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Pe.updateQueue,t===null?(t=br(),Pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mh(e,t,n,l){t.value=n,t.getSnapshot=l,bh(t)&&yh(e)}function gh(e,t,n){return n(function(){bh(t)&&yh(e)})}function bh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch{return!0}}function yh(e){var t=Ii(e,2);t!==null&&Zn(t,e,2)}function pc(e){var t=Un();if(typeof e=="function"){var n=e;if(e=n(),Zi){kn(!0);try{n()}finally{kn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:e},t}function vh(e,t,n,l){return e.baseState=n,fc(e,Nt,typeof l=="function"?l:Ka)}function Av(e,t,n,l,o){if(Sr(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};M.T!==null?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,Eh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Eh(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=M.T,h={};M.T=h;try{var E=n(o,l),k=M.S;k!==null&&k(h,E),_h(e,t,E)}catch(P){mc(e,t,P)}finally{c!==null&&h.types!==null&&(c.types=h.types),M.T=c}}else try{c=n(o,l),_h(e,t,c)}catch(P){mc(e,t,P)}}function _h(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Sh(e,t,l)},function(l){return mc(e,t,l)}):Sh(e,t,n)}function Sh(e,t,n){t.status="fulfilled",t.value=n,wh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Eh(e,n)))}function mc(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,wh(t),t=t.next;while(t!==l)}e.action=null}function wh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nh(e,t){return t}function xh(e,t){if(ot){var n=kt.formState;if(n!==null){e:{var l=Pe;if(ot){if(Mt){t:{for(var o=Mt,c=ha;o.nodeType!==8;){if(!c){o=null;break t}if(o=ma(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Mt=ma(o.nextSibling),l=o.data==="F!";break e}}fi(l)}l=!1}l&&(t=n[0])}}return n=Un(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nh,lastRenderedState:t},n.queue=l,n=Yh.bind(null,Pe,l),l.dispatch=n,l=pc(!1),c=_c.bind(null,Pe,!1,l.queue),l=Un(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=Av.bind(null,Pe,o,c,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function Th(e){var t=Vt();return Ah(t,Nt,e)}function Ah(e,t,n){if(t=fc(e,t,Nh)[0],e=vr(Ka)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=us(t)}catch(h){throw h===bl?cr:h}else l=t;t=Vt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Pe.flags|=2048,Sl(9,{destroy:void 0},Rv.bind(null,o,n),null)),[l,c,e]}function Rv(e,t){e.action=t}function Rh(e){var t=Vt(),n=Nt;if(n!==null)return Ah(t,n,e);Vt(),t=t.memoizedState,n=Vt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Sl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Pe.updateQueue,t===null&&(t=br(),Pe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function kh(){return Vt().memoizedState}function Er(e,t,n,l){var o=Un();Pe.flags|=e,o.memoizedState=Sl(1|t,{destroy:void 0},n,l===void 0?null:l)}function _r(e,t,n,l){var o=Vt();l=l===void 0?null:l;var c=o.memoizedState.inst;Nt!==null&&l!==null&&sc(l,Nt.memoizedState.deps)?o.memoizedState=Sl(t,c,n,l):(Pe.flags|=e,o.memoizedState=Sl(1|t,c,n,l))}function Oh(e,t){Er(8390656,8,e,t)}function gc(e,t){_r(2048,8,e,t)}function kv(e){Pe.flags|=4;var t=Pe.updateQueue;if(t===null)t=br(),Pe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ch(e){var t=Vt().memoizedState;return kv({ref:t,nextImpl:e}),function(){if((bt&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Mh(e,t){return _r(4,2,e,t)}function Dh(e,t){return _r(4,4,e,t)}function Lh(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 zh(e,t,n){n=n!=null?n.concat([e]):null,_r(4,4,Lh.bind(null,t,e),n)}function bc(){}function jh(e,t){var n=Vt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&sc(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Uh(e,t){var n=Vt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&sc(t,l[1]))return l[0];if(l=e(),Zi){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[l,t],l}function yc(e,t,n){return n===void 0||(Pa&1073741824)!==0&&(st&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Bp(),Pe.lanes|=e,_i|=e,n)}function Bh(e,t,n,l){return Qn(n,t)?n:vl.current!==null?(e=yc(e,n,l),Qn(e,t)||(nn=!0),e):(Pa&42)===0||(Pa&1073741824)!==0&&(st&261930)===0?(nn=!0,e.memoizedState=n):(e=Bp(),Pe.lanes|=e,_i|=e,t)}function Ih(e,t,n,l,o){var c=J.p;J.p=c!==0&&8>c?c:8;var h=M.T,E={};M.T=E,_c(e,!1,t,n);try{var k=o(),P=M.S;if(P!==null&&P(E,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var ie=Nv(k,l);ds(e,t,ie,aa(e))}else ds(e,t,l,aa(e))}catch(oe){ds(e,t,{then:function(){},status:"rejected",reason:oe},aa())}finally{J.p=c,h!==null&&E.types!==null&&(h.types=E.types),M.T=h}}function Ov(){}function vc(e,t,n,l){if(e.tag!==5)throw Error(s(476));var o=Hh(e).queue;Ih(e,o,t,fe,n===null?Ov:function(){return qh(e),n(l)})}function Hh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qh(e){var t=Hh(e);t.next===null&&(t=e.alternate.memoizedState),ds(e,t.next.queue,{},aa())}function Ec(){return _n(Rs)}function Gh(){return Vt().memoizedState}function $h(){return Vt().memoizedState}function Cv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=aa();e=mi(n);var l=gi(t,e,n);l!==null&&(Zn(l,t,n),ss(l,t,n)),t={cache:Xo()},e.payload=t;return}t=t.return}}function Mv(e,t,n){var l=aa();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Sr(e)?Fh(t,n):(n=Bo(e,t,n,l),n!==null&&(Zn(n,e,l),Ph(n,t,l)))}function Yh(e,t,n){var l=aa();ds(e,t,n,l)}function ds(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sr(e))Fh(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,Qn(E,h))return nr(e,t,o,0),kt===null&&tr(),!1}catch{}finally{}if(n=Bo(e,t,o,l),n!==null)return Zn(n,e,l),Ph(n,t,l),!0}return!1}function _c(e,t,n,l){if(l={lane:2,revertLane:Jc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Sr(e)){if(t)throw Error(s(479))}else t=Bo(e,n,l,2),t!==null&&Zn(t,e,2)}function Sr(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function Fh(e,t){El=mr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ph(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Ue(e,n)}}var fs={readContext:_n,use:yr,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};fs.useEffectEvent=$t;var Kh={readContext:_n,use:yr,useCallback:function(e,t){return Un().memoizedState=[e,t===void 0?null:t],e},useContext:_n,useEffect:Oh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Er(4194308,4,Lh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Er(4194308,4,e,t)},useInsertionEffect:function(e,t){Er(4,2,e,t)},useMemo:function(e,t){var n=Un();t=t===void 0?null:t;var l=e();if(Zi){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Un();if(n!==void 0){var o=n(t);if(Zi){kn(!0);try{n(t)}finally{kn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=Mv.bind(null,Pe,e),[l.memoizedState,e]},useRef:function(e){var t=Un();return e={current:e},t.memoizedState=e},useState:function(e){e=pc(e);var t=e.queue,n=Yh.bind(null,Pe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bc,useDeferredValue:function(e,t){var n=Un();return yc(n,e,t)},useTransition:function(){var e=pc(!1);return e=Ih.bind(null,Pe,e.queue,!0,!1),Un().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Pe,o=Un();if(ot){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),kt===null)throw Error(s(349));(st&127)!==0||ph(l,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,Oh(gh.bind(null,l,c,e),[e]),l.flags|=2048,Sl(9,{destroy:void 0},mh.bind(null,l,c,n,t),null),n},useId:function(){var e=Un(),t=kt.identifierPrefix;if(ot){var n=ka,l=Ra;n=(l&~(1<<32-qt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=gr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=xv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ec,useFormState:xh,useActionState:xh,useOptimistic:function(e){var t=Un();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=_c.bind(null,Pe,!0,n),n.dispatch=t,[e,t]},useMemoCache:dc,useCacheRefresh:function(){return Un().memoizedState=Cv.bind(null,Pe)},useEffectEvent:function(e){var t=Un(),n={impl:e};return t.memoizedState=n,function(){if((bt&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Sc={readContext:_n,use:yr,useCallback:jh,useContext:_n,useEffect:gc,useImperativeHandle:zh,useInsertionEffect:Mh,useLayoutEffect:Dh,useMemo:Uh,useReducer:vr,useRef:kh,useState:function(){return vr(Ka)},useDebugValue:bc,useDeferredValue:function(e,t){var n=Vt();return Bh(n,Nt.memoizedState,e,t)},useTransition:function(){var e=vr(Ka)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:us(e),t]},useSyncExternalStore:hh,useId:Gh,useHostTransitionStatus:Ec,useFormState:Th,useActionState:Th,useOptimistic:function(e,t){var n=Vt();return vh(n,Nt,e,t)},useMemoCache:dc,useCacheRefresh:$h};Sc.useEffectEvent=Ch;var Zh={readContext:_n,use:yr,useCallback:jh,useContext:_n,useEffect:gc,useImperativeHandle:zh,useInsertionEffect:Mh,useLayoutEffect:Dh,useMemo:Uh,useReducer:hc,useRef:kh,useState:function(){return hc(Ka)},useDebugValue:bc,useDeferredValue:function(e,t){var n=Vt();return Nt===null?yc(n,e,t):Bh(n,Nt.memoizedState,e,t)},useTransition:function(){var e=hc(Ka)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:us(e),t]},useSyncExternalStore:hh,useId:Gh,useHostTransitionStatus:Ec,useFormState:Rh,useActionState:Rh,useOptimistic:function(e,t){var n=Vt();return Nt!==null?vh(n,Nt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:dc,useCacheRefresh:$h};Zh.useEffectEvent=Ch;function wc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Nc={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=aa(),o=mi(l);o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,l),t!==null&&(Zn(t,e,l),ss(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=aa(),o=mi(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,l),t!==null&&(Zn(t,e,l),ss(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=aa(),l=mi(n);l.tag=2,t!=null&&(l.callback=t),t=gi(e,l,n),t!==null&&(Zn(t,e,n),ss(t,e,n))}};function Xh(e,t,n,l,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,h):t.prototype&&t.prototype.isPureReactComponent?!Wl(n,l)||!Wl(o,c):!0}function Vh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Nc.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}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 Qh(e){er(e)}function Wh(e){console.error(e)}function Jh(e){er(e)}function wr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function ep(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function xc(e,t,n){return n=mi(n),n.tag=3,n.payload={element:null},n.callback=function(){wr(e,t)},n}function tp(e){return e=mi(e),e.tag=3,e}function np(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){ep(t,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){ep(t,n,l),typeof o!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function Dv(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&pl(t,n,o,!0),n=Jn.current,n!==null){switch(n.tag){case 31:case 13:return pa===null?zr():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===ur?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Vc(e,l,o)),!1;case 22:return n.flags|=65536,l===ur?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Vc(e,l,o)),!1}throw Error(s(435,n.tag))}return Vc(e,l,o),zr(),!1}if(ot)return t=Jn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Yo&&(e=Error(s(422),{cause:l}),ts(ua(e,n)))):(l!==Yo&&(t=Error(s(423),{cause:l}),ts(ua(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=ua(l,n),o=xc(e.stateNode,l,o),tc(e,o),Yt!==4&&(Yt=2)),!1;var c=Error(s(520),{cause:l});if(c=ua(c,n),Es===null?Es=[c]:Es.push(c),Yt!==4&&(Yt=2),t===null)return!0;l=ua(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=xc(n.stateNode,l,e),tc(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Si===null||!Si.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=tp(o),np(o,e,n,l),tc(n,o),!1}n=n.return}while(n!==null);return!1}var Tc=Error(s(461)),nn=!1;function Sn(e,t,n,l){t.child=e===null?sh(t,null,n,l):Ki(t,e.child,n,l)}function ap(e,t,n,l,o){n=n.render;var c=t.ref;if("ref"in l){var h={};for(var E in l)E!=="ref"&&(h[E]=l[E])}else h=l;return $i(t),l=rc(e,t,n,h,c,o),E=oc(),e!==null&&!nn?(cc(e,t,o),Za(e,t,o)):(ot&&E&&Go(t),t.flags|=1,Sn(e,t,l,o),t.child)}function ip(e,t,n,l,o){if(e===null){var c=n.type;return typeof c=="function"&&!Io(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,lp(e,t,c,l,o)):(e=ir(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Lc(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Wl,n(h,l)&&e.ref===t.ref)return Za(e,t,o)}return t.flags|=1,e=Ga(c,l),e.ref=t.ref,e.return=t,t.child=e}function lp(e,t,n,l,o){if(e!==null){var c=e.memoizedProps;if(Wl(c,l)&&e.ref===t.ref)if(nn=!1,t.pendingProps=l=c,Lc(e,o))(e.flags&131072)!==0&&(nn=!0);else return t.lanes=e.lanes,Za(e,t,o)}return Ac(e,t,n,l,o)}function sp(e,t,n,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return rp(e,t,c,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&or(t,c!==null?c.cachePool:null),c!==null?ch(t,c):ac(),uh(t);else return l=t.lanes=536870912,rp(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(or(t,c.cachePool),ch(t,c),yi(),t.memoizedState=null):(e!==null&&or(t,null),ac(),yi());return Sn(e,t,o,n),t.child}function hs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rp(e,t,n,l,o){var c=Qo();return c=c===null?null:{parent:en._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&or(t,null),ac(),uh(t),e!==null&&pl(e,t,l,!0),t.childLanes=o,null}function Nr(e,t){return t=Tr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function op(e,t,n){return Ki(t,e.child,null,n),e=Nr(t,t.pendingProps),e.flags|=2,ea(t),t.memoizedState=null,e}function Lv(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ot){if(l.mode==="hidden")return e=Nr(t,l),t.lanes=536870912,hs(null,e);if(lc(t),(e=Mt)?(e=Em(e,ha),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=Ff(e),n.return=t,t.child=n,En=t,Mt=null)):e=null,e===null)throw fi(t);return t.lanes=536870912,null}return Nr(t,l)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(lc(t),o)if(t.flags&256)t.flags&=-257,t=op(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(nn||pl(e,t,n,!1),o=(n&e.childLanes)!==0,nn||o){if(l=kt,l!==null&&(h=Ct(l,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Ii(e,h),Zn(l,e,h),Tc;zr(),t=op(e,t,n)}else e=c.treeContext,Mt=ma(h.nextSibling),En=t,ot=!0,di=null,ha=!1,e!==null&&Zf(t,e),t=Nr(t,l),t.flags|=4096;return t}return e=Ga(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function xr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ac(e,t,n,l,o){return $i(t),n=rc(e,t,n,l,void 0,o),l=oc(),e!==null&&!nn?(cc(e,t,o),Za(e,t,o)):(ot&&l&&Go(t),t.flags|=1,Sn(e,t,n,o),t.child)}function cp(e,t,n,l,o,c){return $i(t),t.updateQueue=null,n=fh(t,l,n,o),dh(e),l=oc(),e!==null&&!nn?(cc(e,t,c),Za(e,t,c)):(ot&&l&&Go(t),t.flags|=1,Sn(e,t,n,c),t.child)}function up(e,t,n,l,o){if($i(t),t.stateNode===null){var c=ul,h=n.contextType;typeof h=="object"&&h!==null&&(c=_n(h)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Nc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},Jo(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?_n(h):ul,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(wc(t,n,h,l),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&&Nc.enqueueReplaceState(c,c.state,null),os(t,l,c,o),rs(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,k=Xi(n,E);c.props=k;var P=c.context,ie=n.contextType;h=ul,typeof ie=="object"&&ie!==null&&(h=_n(ie));var oe=n.getDerivedStateFromProps;ie=typeof oe=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,ie||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||P!==h)&&Vh(t,c,l,h),pi=!1;var K=t.memoizedState;c.state=K,os(t,l,c,o),rs(),P=t.memoizedState,E||K!==P||pi?(typeof oe=="function"&&(wc(t,n,oe,l),P=t.memoizedState),(k=pi||Xh(t,n,k,l,K,P,h))?(ie||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=l,t.memoizedState=P),c.props=l,c.state=P,c.context=h,l=k):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,ec(e,t),h=t.memoizedProps,ie=Xi(n,h),c.props=ie,oe=t.pendingProps,K=c.context,P=n.contextType,k=ul,typeof P=="object"&&P!==null&&(k=_n(P)),E=n.getDerivedStateFromProps,(P=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==oe||K!==k)&&Vh(t,c,l,k),pi=!1,K=t.memoizedState,c.state=K,os(t,l,c,o),rs();var W=t.memoizedState;h!==oe||K!==W||pi||e!==null&&e.dependencies!==null&&sr(e.dependencies)?(typeof E=="function"&&(wc(t,n,E,l),W=t.memoizedState),(ie=pi||Xh(t,n,ie,l,K,W,k)||e!==null&&e.dependencies!==null&&sr(e.dependencies))?(P||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,W,k),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,W,k)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&K===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&K===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=W),c.props=l,c.state=W,c.context=k,l=ie):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&K===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&K===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,xr(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Ki(t,e.child,null,o),t.child=Ki(t,null,n,o)):Sn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Za(e,t,o),e}function dp(e,t,n,l){return qi(),t.flags|=256,Sn(e,t,n,l),t.child}var Rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kc(e){return{baseLanes:e,cachePool:eh()}}function Oc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=na),e}function fp(e,t,n){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(Xt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(ot){if(o?bi(t):yi(),(e=Mt)?(e=Em(e,ha),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=Ff(e),n.return=t,t.child=n,En=t,Mt=null)):e=null,e===null)throw fi(t);return fu(e)?t.lanes=32:t.lanes=536870912,null}var E=l.children;return l=l.fallback,o?(yi(),o=t.mode,E=Tr({mode:"hidden",children:E},o),l=Hi(l,o,n,null),E.return=t,l.return=t,E.sibling=l,t.child=E,l=t.child,l.memoizedState=kc(n),l.childLanes=Oc(e,h,n),t.memoizedState=Rc,hs(null,l)):(bi(t),Cc(t,E))}var k=e.memoizedState;if(k!==null&&(E=k.dehydrated,E!==null)){if(c)t.flags&256?(bi(t),t.flags&=-257,t=Mc(e,t,n)):t.memoizedState!==null?(yi(),t.child=e.child,t.flags|=128,t=null):(yi(),E=l.fallback,o=t.mode,l=Tr({mode:"visible",children:l.children},o),E=Hi(E,o,n,null),E.flags|=2,l.return=t,E.return=t,l.sibling=E,t.child=l,Ki(t,e.child,null,n),l=t.child,l.memoizedState=kc(n),l.childLanes=Oc(e,h,n),t.memoizedState=Rc,t=hs(null,l));else if(bi(t),fu(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var P=h.dgst;h=P,l=Error(s(419)),l.stack="",l.digest=h,ts({value:l,source:null,stack:null}),t=Mc(e,t,n)}else if(nn||pl(e,t,n,!1),h=(n&e.childLanes)!==0,nn||h){if(h=kt,h!==null&&(l=Ct(h,n),l!==0&&l!==k.retryLane))throw k.retryLane=l,Ii(e,l),Zn(h,e,l),Tc;du(E)||zr(),t=Mc(e,t,n)}else du(E)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,Mt=ma(E.nextSibling),En=t,ot=!0,di=null,ha=!1,e!==null&&Zf(t,e),t=Cc(t,l.children),t.flags|=4096);return t}return o?(yi(),E=l.fallback,o=t.mode,k=e.child,P=k.sibling,l=Ga(k,{mode:"hidden",children:l.children}),l.subtreeFlags=k.subtreeFlags&65011712,P!==null?E=Ga(P,E):(E=Hi(E,o,n,null),E.flags|=2),E.return=t,l.return=t,l.sibling=E,t.child=l,hs(null,l),l=t.child,E=e.child.memoizedState,E===null?E=kc(n):(o=E.cachePool,o!==null?(k=en._currentValue,o=o.parent!==k?{parent:k,pool:k}:o):o=eh(),E={baseLanes:E.baseLanes|n,cachePool:o}),l.memoizedState=E,l.childLanes=Oc(e,h,n),t.memoizedState=Rc,hs(e.child,l)):(bi(t),n=e.child,e=n.sibling,n=Ga(n,{mode:"visible",children:l.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 Cc(e,t){return t=Tr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Tr(e,t){return e=Wn(22,e,null,t),e.lanes=0,e}function Mc(e,t,n){return Ki(t,e.child,null,n),e=Cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hp(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ko(e.return,t,n)}function Dc(e,t,n,l,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function pp(e,t,n){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var h=Xt.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,B(Xt,h),Sn(e,t,l,n),l=ot?es:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hp(e,n,t);else if(e.tag===19)hp(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&&pr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Dc(t,!1,o,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&pr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Dc(t,!0,n,null,c,l);break;case"together":Dc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Za(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_i|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(pl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Ga(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ga(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Lc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&sr(e)))}function zv(e,t,n){switch(t.tag){case 3:be(t,t.stateNode.containerInfo),hi(t,en,e.memoizedState.cache),qi();break;case 27:case 5:Ge(t);break;case 4:be(t,t.stateNode.containerInfo);break;case 10:hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(bi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?fp(e,t,n):(bi(t),e=Za(e,t,n),e!==null?e.sibling:null);bi(t);break;case 19:var o=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(pl(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return pp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Xt,Xt.current),l)break;return null;case 22:return t.lanes=0,sp(e,t,n,t.pendingProps);case 24:hi(t,en,e.memoizedState.cache)}return Za(e,t,n)}function mp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nn=!0;else{if(!Lc(e,n)&&(t.flags&128)===0)return nn=!1,zv(e,t,n);nn=(e.flags&131072)!==0}else nn=!1,ot&&(t.flags&1048576)!==0&&Kf(t,es,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Fi(t.elementType),t.type=e,typeof e=="function")Io(e)?(l=Xi(e,l),t.tag=1,t=up(null,t,e,l,n)):(t.tag=0,t=Ac(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===V){t.tag=11,t=ap(null,t,e,l,n);break e}else if(o===X){t.tag=14,t=ip(null,t,e,l,n);break e}}throw t=pe(e)||e,Error(s(306,t,""))}}return t;case 0:return Ac(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=Xi(l,t.pendingProps),up(e,t,l,o,n);case 3:e:{if(be(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,ec(e,t),os(t,l,null,n);var h=t.memoizedState;if(l=h.cache,hi(t,en,l),l!==c.cache&&Zo(t,[en],n,!0),rs(),l=h.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=dp(e,t,l,n);break e}else if(l!==o){o=ua(Error(s(424)),t),ts(o),t=dp(e,t,l,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(Mt=ma(e.firstChild),En=t,ot=!0,di=null,ha=!0,n=sh(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),l===o){t=Za(e,t,n);break e}Sn(e,t,l,n)}t=t.child}return t;case 26:return xr(e,t),e===null?(n=Tm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ot||(n=t.type,e=t.pendingProps,l=Gr(ve.current).createElement(n),l[wt]=t,l[Kt]=e,wn(l,n,e),ut(l),t.stateNode=l):t.memoizedState=Tm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ge(t),e===null&&ot&&(l=t.stateNode=wm(t.type,t.pendingProps,ve.current),En=t,ha=!0,o=Mt,Ti(t.type)?(hu=o,Mt=ma(l.firstChild)):Mt=o),Sn(e,t,t.pendingProps.children,n),xr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ot&&((o=l=Mt)&&(l=dE(l,t.type,t.pendingProps,ha),l!==null?(t.stateNode=l,En=t,Mt=ma(l.firstChild),ha=!1,o=!0):o=!1),o||fi(t)),Ge(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,l=c.children,ou(o,c)?l=null:h!==null&&ou(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=rc(e,t,Tv,null,null,n),Rs._currentValue=o),xr(e,t),Sn(e,t,l,n),t.child;case 6:return e===null&&ot&&((e=n=Mt)&&(n=fE(n,t.pendingProps,ha),n!==null?(t.stateNode=n,En=t,Mt=null,e=!0):e=!1),e||fi(t)),null;case 13:return fp(e,t,n);case 4:return be(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ki(t,null,l,n):Sn(e,t,l,n),t.child;case 11:return ap(e,t,t.type,t.pendingProps,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return Sn(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,hi(t,t.type,l.value),Sn(e,t,l.children,n),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,$i(t),o=_n(o),l=l(o),t.flags|=1,Sn(e,t,l,n),t.child;case 14:return ip(e,t,t.type,t.pendingProps,n);case 15:return lp(e,t,t.type,t.pendingProps,n);case 19:return pp(e,t,n);case 31:return Lv(e,t,n);case 22:return sp(e,t,n,t.pendingProps);case 24:return $i(t),l=_n(en),e===null?(o=Qo(),o===null&&(o=kt,c=Xo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:l,cache:o},Jo(t),hi(t,en,o)):((e.lanes&n)!==0&&(ec(e,t),os(t,null,null,n),rs()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),hi(t,en,l)):(l=c.cache,hi(t,en,l),l!==o.cache&&Zo(t,[en],n,!0))),Sn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Xa(e){e.flags|=4}function zc(e,t,n,l,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(Gp())e.flags|=8192;else throw Pi=ur,Wo}else e.flags&=-16777217}function gp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Cm(t))if(Gp())e.flags|=8192;else throw Pi=ur,Wo}function Ar(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ze():536870912,e.lanes|=t,Tl|=t)}function ps(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 l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Dt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function jv(e,t,n){var l=t.pendingProps;switch($o(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(t),null;case 1:return Dt(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Fa(en),xe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(hl(t)?Xa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Fo())),Dt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Xa(t),c!==null?(Dt(t),gp(t,c)):(Dt(t),zc(t,o,null,l,n))):c?c!==e.memoizedState?(Xa(t),Dt(t),gp(t,c)):(Dt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Xa(t),Dt(t),zc(t,o,e,l,n)),null;case 27:if($e(t),n=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Xa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Dt(t),null}e=re.current,hl(t)?Xf(t):(e=wm(o,l,n),t.stateNode=e,Xa(t))}return Dt(t),null;case 5:if($e(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Xa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Dt(t),null}if(c=re.current,hl(t))Xf(t);else{var h=Gr(ve.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?h.createElement(o,{is:l.is}):h.createElement(o)}}c[wt]=t,c[Kt]=l;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(wn(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Xa(t)}}return Dt(t),zc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Xa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ve.current,hl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=En,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[wt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||fm(e.nodeValue,n)),e||fi(t,!0)}else e=Gr(e).createTextNode(l),e[wt]=t,t.stateNode=e}return Dt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=hl(t),n!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[wt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),e=!1}else n=Fo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ea(t),t):(ea(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Dt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=hl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[wt]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dt(t),o=!1}else o=Fo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(ea(t),t):(ea(t),null)}return ea(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ar(t,t.updateQueue),Dt(t),null);case 4:return xe(),e===null&&au(t.stateNode.containerInfo),Dt(t),null;case 10:return Fa(t.type),Dt(t),null;case 19:if(z(Xt),l=t.memoizedState,l===null)return Dt(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)ps(l,!1);else{if(Yt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=pr(e),c!==null){for(t.flags|=128,ps(l,!1),e=c.updateQueue,t.updateQueue=e,Ar(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Yf(n,e),n=n.sibling;return B(Xt,Xt.current&1|2),ot&&$a(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&je()>Mr&&(t.flags|=128,o=!0,ps(l,!1),t.lanes=4194304)}else{if(!o)if(e=pr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Ar(t,e),ps(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!ot)return Dt(t),null}else 2*je()-l.renderingStartTime>Mr&&n!==536870912&&(t.flags|=128,o=!0,ps(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=je(),e.sibling=null,n=Xt.current,B(Xt,o?n&1|2:n&1),ot&&$a(t,l.treeForkCount),e):(Dt(t),null);case 22:case 23:return ea(t),ic(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Dt(t),t.subtreeFlags&6&&(t.flags|=8192)):Dt(t),n=t.updateQueue,n!==null&&Ar(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&z(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Fa(en),Dt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Uv(e,t){switch($o(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fa(en),xe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $e(t),null;case 31:if(t.memoizedState!==null){if(ea(t),t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ea(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(Xt),null;case 4:return xe(),null;case 10:return Fa(t.type),null;case 22:case 23:return ea(t),ic(),e!==null&&z(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Fa(en),null;case 25:return null;default:return null}}function bp(e,t){switch($o(t),t.tag){case 3:Fa(en),xe();break;case 26:case 27:case 5:$e(t);break;case 4:xe();break;case 31:t.memoizedState!==null&&ea(t);break;case 13:ea(t);break;case 19:z(Xt);break;case 10:Fa(t.type);break;case 22:case 23:ea(t),ic(),e!==null&&z(Yi);break;case 24:Fa(en)}}function ms(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var c=n.create,h=n.inst;l=c(),h.destroy=l}n=n.next}while(n!==o)}}catch(E){_t(t,t.return,E)}}function vi(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var h=l.inst,E=h.destroy;if(E!==void 0){h.destroy=void 0,o=t;var k=n,P=E;try{P()}catch(ie){_t(o,k,ie)}}}l=l.next}while(l!==c)}}catch(ie){_t(t,t.return,ie)}}function yp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{oh(t,n)}catch(l){_t(e,e.return,l)}}}function vp(e,t,n){n.props=Xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){_t(e,t,l)}}function gs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(o){_t(e,t,o)}}function Oa(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}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 Ep(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){_t(e,e.return,o)}}function jc(e,t,n){try{var l=e.stateNode;lE(l,e.type,n,t),l[Kt]=t}catch(o){_t(e,e.return,o)}}function _p(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ti(e.type)||e.tag===4}function Uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_p(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 Bc(e,t,n){var l=e.tag;if(l===5||l===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=de));else if(l!==4&&(l===27&&Ti(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Bc(e,t,n),e=e.sibling;e!==null;)Bc(e,t,n),e=e.sibling}function Rr(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Ti(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Rr(e,t,n),e=e.sibling;e!==null;)Rr(e,t,n),e=e.sibling}function Sp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);wn(t,l,n),t[wt]=e,t[Kt]=n}catch(c){_t(e,e.return,c)}}var Va=!1,an=!1,Ic=!1,wp=typeof WeakSet=="function"?WeakSet:Set,mn=null;function Bv(e,t){if(e=e.containerInfo,su=Xr,e=zf(e),Mo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,E=-1,k=-1,P=0,ie=0,oe=e,K=null;t:for(;;){for(var W;oe!==n||o!==0&&oe.nodeType!==3||(E=h+o),oe!==c||l!==0&&oe.nodeType!==3||(k=h+l),oe.nodeType===3&&(h+=oe.nodeValue.length),(W=oe.firstChild)!==null;)K=oe,oe=W;for(;;){if(oe===e)break t;if(K===n&&++P===o&&(E=h),K===c&&++ie===l&&(k=h),(W=oe.nextSibling)!==null)break;oe=K,K=oe.parentNode}oe=W}n=E===-1||k===-1?null:{start:E,end:k}}else n=null}n=n||{start:0,end:0}}else n=null;for(ru={focusedElem:e,selectionRange:n},Xr=!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,l=n.stateNode;try{var Re=Xi(n.type,o);e=l.getSnapshotBeforeUpdate(Re,c),l.__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)uu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":uu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,mn=e;break}mn=t.return}}function Np(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Wa(e,n),l&4&&ms(5,n);break;case 1:if(Wa(e,n),l&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)}}l&64&&yp(n),l&512&&gs(n,n.return);break;case 3:if(Wa(e,n),l&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{oh(e,t)}catch(h){_t(n,n.return,h)}}break;case 27:t===null&&l&4&&Sp(n);case 26:case 5:Wa(e,n),t===null&&l&4&&Ep(n),l&512&&gs(n,n.return);break;case 12:Wa(e,n);break;case 31:Wa(e,n),l&4&&Ap(e,n);break;case 13:Wa(e,n),l&4&&Rp(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Kv.bind(null,n),hE(e,n))));break;case 22:if(l=n.memoizedState!==null||Va,!l){t=t!==null&&t.memoizedState!==null||an,o=Va;var c=an;Va=l,(an=t)&&!c?Ja(e,n,(n.subtreeFlags&8772)!==0):Wa(e,n),Va=o,an=c}break;case 30:break;default:Wa(e,n)}}function xp(e){var t=e.alternate;t!==null&&(e.alternate=null,xp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ta(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 jt=null,Yn=!1;function Qa(e,t,n){for(n=n.child;n!==null;)Tp(e,t,n),n=n.sibling}function Tp(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(cn,n)}catch{}switch(n.tag){case 26:an||Oa(n,t),Qa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:an||Oa(n,t);var l=jt,o=Yn;Ti(n.type)&&(jt=n.stateNode,Yn=!1),Qa(e,t,n),xs(n.stateNode),jt=l,Yn=o;break;case 5:an||Oa(n,t);case 6:if(l=jt,o=Yn,jt=null,Qa(e,t,n),jt=l,Yn=o,jt!==null)if(Yn)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(n.stateNode)}catch(c){_t(n,t,c)}else try{jt.removeChild(n.stateNode)}catch(c){_t(n,t,c)}break;case 18:jt!==null&&(Yn?(e=jt,ym(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ll(e)):ym(jt,n.stateNode));break;case 4:l=jt,o=Yn,jt=n.stateNode.containerInfo,Yn=!0,Qa(e,t,n),jt=l,Yn=o;break;case 0:case 11:case 14:case 15:vi(2,n,t),an||vi(4,n,t),Qa(e,t,n);break;case 1:an||(Oa(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&vp(n,t,l)),Qa(e,t,n);break;case 21:Qa(e,t,n);break;case 22:an=(l=an)||n.memoizedState!==null,Qa(e,t,n),an=l;break;default:Qa(e,t,n)}}function Ap(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ll(e)}catch(n){_t(t,t.return,n)}}}function Rp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ll(e)}catch(n){_t(t,t.return,n)}}function Iv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new wp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new wp),t;default:throw Error(s(435,e.tag))}}function kr(e,t){var n=Iv(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=Zv.bind(null,e,l);l.then(o,o)}})}function Fn(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],c=e,h=t,E=h;e:for(;E!==null;){switch(E.tag){case 27:if(Ti(E.type)){jt=E.stateNode,Yn=!1;break e}break;case 5:jt=E.stateNode,Yn=!1;break e;case 3:case 4:jt=E.stateNode.containerInfo,Yn=!0;break e}E=E.return}if(jt===null)throw Error(s(160));Tp(c,h,o),jt=null,Yn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)kp(t,e),t=t.sibling}var va=null;function kp(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Fn(t,e),Pn(e),l&4&&(vi(3,e,e.return),ms(3,e),vi(5,e,e.return));break;case 1:Fn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),l&64&&Va&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=va;if(Fn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ra]||c[wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),wn(c,l,n),c[wt]=e,ut(c),l=c;break e;case"link":var h=km("link","href",o).get(l+(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(l),wn(c,l,n),o.head.appendChild(c);break;case"meta":if(h=km("meta","content",o).get(l+(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(l),wn(c,l,n),o.head.appendChild(c);break;default:throw Error(s(468,l))}c[wt]=e,ut(c),l=c}e.stateNode=l}else Om(o,e.type,e.stateNode);else e.stateNode=Rm(o,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Om(o,e.type,e.stateNode):Rm(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&jc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Fn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),n!==null&&l&4&&jc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Fn(t,e),Pn(e),l&512&&(an||n===null||Oa(n,n.return)),e.flags&32){o=e.stateNode;try{te(o,"")}catch(Re){_t(e,e.return,Re)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,jc(e,o,n!==null?n.memoizedProps:o)),l&1024&&(Ic=!0);break;case 6:if(Fn(t,e),Pn(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(Re){_t(e,e.return,Re)}}break;case 3:if(Fr=null,o=va,va=$r(t.containerInfo),Fn(t,e),va=o,Pn(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ll(t.containerInfo)}catch(Re){_t(e,e.return,Re)}Ic&&(Ic=!1,Op(e));break;case 4:l=va,va=$r(e.stateNode.containerInfo),Fn(t,e),Pn(e),va=l;break;case 12:Fn(t,e),Pn(e);break;case 31:Fn(t,e),Pn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,kr(e,l)));break;case 13:Fn(t,e),Pn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Cr=je()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,kr(e,l)));break;case 22:o=e.memoizedState!==null;var k=n!==null&&n.memoizedState!==null,P=Va,ie=an;if(Va=P||o,an=ie||k,Fn(t,e),an=ie,Va=P,Pn(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||k||Va||an||Vi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){k=n=t;try{if(c=k.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=k.stateNode;var oe=k.memoizedProps.style,K=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;E.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(Re){_t(k,k.return,Re)}}}else if(t.tag===6){if(n===null){k=t;try{k.stateNode.nodeValue=o?"":k.memoizedProps}catch(Re){_t(k,k.return,Re)}}}else if(t.tag===18){if(n===null){k=t;try{var W=k.stateNode;o?vm(W,!0):vm(k.stateNode,!1)}catch(Re){_t(k,k.return,Re)}}}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}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,kr(e,n))));break;case 19:Fn(t,e),Pn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,kr(e,l)));break;case 30:break;case 21:break;default:Fn(t,e),Pn(e)}}function Pn(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(_p(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=Uc(e);Rr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(te(h,""),n.flags&=-33);var E=Uc(e);Rr(e,E,h);break;case 3:case 4:var k=n.stateNode.containerInfo,P=Uc(e);Bc(e,P,k);break;default:throw Error(s(161))}}catch(ie){_t(e,e.return,ie)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Op(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Op(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Wa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Np(e,t.alternate,t),t=t.sibling}function Vi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vi(4,t,t.return),Vi(t);break;case 1:Oa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&vp(t,t.return,n),Vi(t);break;case 27:xs(t.stateNode);case 26:case 5:Oa(t,t.return),Vi(t);break;case 22:t.memoizedState===null&&Vi(t);break;case 30:Vi(t);break;default:Vi(t)}e=e.sibling}}function Ja(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Ja(o,c,n),ms(4,c);break;case 1:if(Ja(o,c,n),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(P){_t(l,l.return,P)}if(l=c,o=l.updateQueue,o!==null){var E=l.stateNode;try{var k=o.shared.hiddenCallbacks;if(k!==null)for(o.shared.hiddenCallbacks=null,o=0;o<k.length;o++)rh(k[o],E)}catch(P){_t(l,l.return,P)}}n&&h&64&&yp(c),gs(c,c.return);break;case 27:Sp(c);case 26:case 5:Ja(o,c,n),n&&l===null&&h&4&&Ep(c),gs(c,c.return);break;case 12:Ja(o,c,n);break;case 31:Ja(o,c,n),n&&h&4&&Ap(o,c);break;case 13:Ja(o,c,n),n&&h&4&&Rp(o,c);break;case 22:c.memoizedState===null&&Ja(o,c,n),gs(c,c.return);break;case 30:break;default:Ja(o,c,n)}t=t.sibling}}function Hc(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&&ns(n))}function qc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ns(e))}function Ea(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Cp(e,t,n,l),t=t.sibling}function Cp(e,t,n,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ea(e,t,n,l),o&2048&&ms(9,t);break;case 1:Ea(e,t,n,l);break;case 3:Ea(e,t,n,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ns(e)));break;case 12:if(o&2048){Ea(e,t,n,l),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,E=c.onPostCommit;typeof E=="function"&&E(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(k){_t(t,t.return,k)}}else Ea(e,t,n,l);break;case 31:Ea(e,t,n,l);break;case 13:Ea(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?Ea(e,t,n,l):bs(e,t):c._visibility&2?Ea(e,t,n,l):(c._visibility|=2,wl(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Hc(h,t);break;case 24:Ea(e,t,n,l),o&2048&&qc(t.alternate,t);break;default:Ea(e,t,n,l)}}function wl(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,E=n,k=l,P=h.flags;switch(h.tag){case 0:case 11:case 15:wl(c,h,E,k,o),ms(8,h);break;case 23:break;case 22:var ie=h.stateNode;h.memoizedState!==null?ie._visibility&2?wl(c,h,E,k,o):bs(c,h):(ie._visibility|=2,wl(c,h,E,k,o)),o&&P&2048&&Hc(h.alternate,h);break;case 24:wl(c,h,E,k,o),o&&P&2048&&qc(h.alternate,h);break;default:wl(c,h,E,k,o)}t=t.sibling}}function bs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:bs(n,l),o&2048&&Hc(l.alternate,l);break;case 24:bs(n,l),o&2048&&qc(l.alternate,l);break;default:bs(n,l)}t=t.sibling}}var ys=8192;function Nl(e,t,n){if(e.subtreeFlags&ys)for(e=e.child;e!==null;)Mp(e,t,n),e=e.sibling}function Mp(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&ys&&e.memoizedState!==null&&xE(n,va,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var l=va;va=$r(e.stateNode.containerInfo),Nl(e,t,n),va=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ys,ys=16777216,Nl(e,t,n),ys=l):Nl(e,t,n));break;default:Nl(e,t,n)}}function Dp(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 vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];mn=l,zp(l,e)}Dp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Lp(e),e=e.sibling}function Lp(e){switch(e.tag){case 0:case 11:case 15:vs(e),e.flags&2048&&vi(9,e,e.return);break;case 3:vs(e);break;case 12:vs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Or(e)):vs(e);break;default:vs(e)}}function Or(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];mn=l,zp(l,e)}Dp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vi(8,t,t.return),Or(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Or(t));break;default:Or(t)}e=e.sibling}}function zp(e,t){for(;mn!==null;){var n=mn;switch(n.tag){case 0:case 11:case 15:vi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ns(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,mn=l;else e:for(n=e;mn!==null;){l=mn;var o=l.sibling,c=l.return;if(xp(l),l===n){mn=null;break e}if(o!==null){o.return=c,mn=o;break e}mn=c}}}var Hv={getCacheForType:function(e){var t=_n(en),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return _n(en).controller.signal}},qv=typeof WeakMap=="function"?WeakMap:Map,bt=0,kt=null,at=null,st=0,Et=0,ta=null,Ei=!1,xl=!1,Gc=!1,ei=0,Yt=0,_i=0,Qi=0,$c=0,na=0,Tl=0,Es=null,Kn=null,Yc=!1,Cr=0,jp=0,Mr=1/0,Dr=null,Si=null,fn=0,wi=null,Al=null,ti=0,Fc=0,Pc=null,Up=null,_s=0,Kc=null;function aa(){return(bt&2)!==0&&st!==0?st&-st:M.T!==null?Jc():sa()}function Bp(){if(na===0)if((st&536870912)===0||ot){var e=pn;pn<<=1,(pn&3932160)===0&&(pn=262144),na=e}else na=536870912;return e=Jn.current,e!==null&&(e.flags|=32),na}function Zn(e,t,n){(e===kt&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(Rl(e,0),Ni(e,st,na,!1)),et(e,n),((bt&2)===0||e!==kt)&&(e===kt&&((bt&2)===0&&(Qi|=n),Yt===4&&Ni(e,st,na,!1)),Ca(e))}function Ip(e,t,n){if((bt&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ne(e,t),o=l?Yv(e,t):Xc(e,t,!0),c=l;do{if(o===0){xl&&!l&&Ni(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Gv(n)){o=Xc(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=Es;var k=E.current.memoizedState.isDehydrated;if(k&&(Rl(E,h).flags|=256),h=Xc(E,h,!1),h!==2){if(Gc&&!k){E.errorRecoveryDisabledLanes|=c,Qi|=c,o=4;break e}c=Kn,Kn=o,c!==null&&(Kn===null?Kn=c:Kn.push.apply(Kn,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){Rl(e,0),Ni(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ni(l,t,na,!Ei);break e;case 2:Kn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Cr+300-je(),10<o)){if(Ni(l,t,na,!Ei),R(l,0,!0)!==0)break e;ti=t,l.timeoutHandle=gm(Hp.bind(null,l,n,Kn,Dr,Yc,t,na,Qi,Tl,Ei,c,"Throttled",-0,0),o);break e}Hp(l,n,Kn,Dr,Yc,t,na,Qi,Tl,Ei,c,null,-0,0)}}break}while(!0);Ca(e)}function Hp(e,t,n,l,o,c,h,E,k,P,ie,oe,K,W){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:de},Mp(t,c,oe);var Re=(c&62914560)===c?Cr-je():(c&4194048)===c?jp-je():0;if(Re=TE(oe,Re),Re!==null){ti=c,e.cancelPendingCommit=Re(Zp.bind(null,e,t,c,n,l,o,h,E,k,ie,oe,null,K,W)),Ni(e,c,h,!P);return}}Zp(e,t,c,n,l,o,h,E,k)}function Gv(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 l=0;l<n.length;l++){var o=n[l],c=o.getSnapshot;o=o.value;try{if(!Qn(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,l){t&=~$c,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-qt(o),h=1<<c;l[c]=-1,o&=~h}n!==0&&_e(e,n,t)}function Lr(){return(bt&6)===0?(Ss(0),!1):!0}function Zc(){if(at!==null){if(Et===0)var e=at.return;else e=at,Ya=Gi=null,uc(e),yl=null,is=0,e=at;for(;e!==null;)bp(e.alternate,e),e=e.return;at=null}}function Rl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,oE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ti=0,Zc(),kt=e,at=n=Ga(e.current,null),st=t,Et=0,ta=null,Ei=!1,xl=ne(e,t),Gc=!1,Tl=na=$c=Qi=_i=Yt=0,Kn=Es=null,Yc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-qt(l),c=1<<o;t|=e[o],l&=~c}return ei=t,tr(),n}function qp(e,t){Pe=null,M.H=fs,t===bl||t===cr?(t=ah(),Et=3):t===Wo?(t=ah(),Et=4):Et=t===Tc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ta=t,at===null&&(Yt=1,wr(e,ua(t,e.current)))}function Gp(){var e=Jn.current;return e===null?!0:(st&4194048)===st?pa===null:(st&62914560)===st||(st&536870912)!==0?e===pa:!1}function $p(){var e=M.H;return M.H=fs,e===null?fs:e}function Yp(){var e=M.A;return M.A=Hv,e}function zr(){Yt=4,Ei||(st&4194048)!==st&&Jn.current!==null||(xl=!0),(_i&134217727)===0&&(Qi&134217727)===0||kt===null||Ni(kt,st,na,!1)}function Xc(e,t,n){var l=bt;bt|=2;var o=$p(),c=Yp();(kt!==e||st!==t)&&(Dr=null,Rl(e,t)),t=!1;var h=Yt;e:do try{if(Et!==0&&at!==null){var E=at,k=ta;switch(Et){case 8:Zc(),h=6;break e;case 3:case 2:case 9:case 6:Jn.current===null&&(t=!0);var P=Et;if(Et=0,ta=null,kl(e,E,k,P),n&&xl){h=0;break e}break;default:P=Et,Et=0,ta=null,kl(e,E,k,P)}}$v(),h=Yt;break}catch(ie){qp(e,ie)}while(!0);return t&&e.shellSuspendCounter++,Ya=Gi=null,bt=l,M.H=o,M.A=c,at===null&&(kt=null,st=0,tr()),h}function $v(){for(;at!==null;)Fp(at)}function Yv(e,t){var n=bt;bt|=2;var l=$p(),o=Yp();kt!==e||st!==t?(Dr=null,Mr=je()+500,Rl(e,t)):xl=ne(e,t);e:do try{if(Et!==0&&at!==null){t=at;var c=ta;t:switch(Et){case 1:Et=0,ta=null,kl(e,t,c,1);break;case 2:case 9:if(th(c)){Et=0,ta=null,Pp(t);break}t=function(){Et!==2&&Et!==9||kt!==e||(Et=7),Ca(e)},c.then(t,t);break e;case 3:Et=7;break e;case 4:Et=5;break e;case 7:th(c)?(Et=0,ta=null,Pp(t)):(Et=0,ta=null,kl(e,t,c,7));break;case 5:var h=null;switch(at.tag){case 26:h=at.memoizedState;case 5:case 27:var E=at;if(h?Cm(h):E.stateNode.complete){Et=0,ta=null;var k=E.sibling;if(k!==null)at=k;else{var P=E.return;P!==null?(at=P,jr(P)):at=null}break t}}Et=0,ta=null,kl(e,t,c,5);break;case 6:Et=0,ta=null,kl(e,t,c,6);break;case 8:Zc(),Yt=6;break e;default:throw Error(s(462))}}Fv();break}catch(ie){qp(e,ie)}while(!0);return Ya=Gi=null,M.H=l,M.A=o,bt=n,at!==null?0:(kt=null,st=0,tr(),Yt)}function Fv(){for(;at!==null&&!yn();)Fp(at)}function Fp(e){var t=mp(e.alternate,e,ei);e.memoizedProps=e.pendingProps,t===null?jr(e):at=t}function Pp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=cp(n,t,t.pendingProps,t.type,void 0,st);break;case 11:t=cp(n,t,t.pendingProps,t.type.render,t.ref,st);break;case 5:uc(t);default:bp(n,t),t=at=Yf(t,ei),t=mp(n,t,ei)}e.memoizedProps=e.pendingProps,t===null?jr(e):at=t}function kl(e,t,n,l){Ya=Gi=null,uc(t),yl=null,is=0;var o=t.return;try{if(Dv(e,o,t,n,st)){Yt=1,wr(e,ua(n,e.current)),at=null;return}}catch(c){if(o!==null)throw at=o,c;Yt=1,wr(e,ua(n,e.current)),at=null;return}t.flags&32768?(ot||l===1?e=!0:xl||(st&536870912)!==0?e=!1:(Ei=e=!0,(l===2||l===9||l===3||l===6)&&(l=Jn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Kp(t,e)):jr(t)}function jr(e){var t=e;do{if((t.flags&32768)!==0){Kp(t,Ei);return}e=t.return;var n=jv(t.alternate,t,ei);if(n!==null){at=n;return}if(t=t.sibling,t!==null){at=t;return}at=t=e}while(t!==null);Yt===0&&(Yt=5)}function Kp(e,t){do{var n=Uv(e.alternate,e);if(n!==null){n.flags&=32767,at=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){at=e;return}at=e=n}while(e!==null);Yt=6,at=null}function Zp(e,t,n,l,o,c,h,E,k){e.cancelPendingCommit=null;do Ur();while(fn!==0);if((bt&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Uo,Ae(e,n,c,h,E,k),e===kt&&(at=kt=null,st=0),Al=t,wi=e,ti=n,Fc=c,Pc=o,Up=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Xv(Tn,function(){return Jp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,o=J.p,J.p=2,h=bt,bt|=4;try{Bv(e,t,n)}finally{bt=h,J.p=o,M.T=l}}fn=1,Xp(),Vp(),Qp()}}function Xp(){if(fn===1){fn=0;var e=wi,t=Al,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null;var l=J.p;J.p=2;var o=bt;bt|=4;try{kp(t,e);var c=ru,h=zf(e.containerInfo),E=c.focusedElem,k=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&Lf(E.ownerDocument.documentElement,E)){if(k!==null&&Mo(E)){var P=k.start,ie=k.end;if(ie===void 0&&(ie=P),"selectionStart"in E)E.selectionStart=P,E.selectionEnd=Math.min(ie,E.value.length);else{var oe=E.ownerDocument||document,K=oe&&oe.defaultView||window;if(K.getSelection){var W=K.getSelection(),Re=E.textContent.length,Be=Math.min(k.start,Re),Tt=k.end===void 0?Be:Math.min(k.end,Re);!W.extend&&Be>Tt&&(h=Tt,Tt=Be,Be=h);var I=Df(E,Be),L=Df(E,Tt);if(I&&L&&(W.rangeCount!==1||W.anchorNode!==I.node||W.anchorOffset!==I.offset||W.focusNode!==L.node||W.focusOffset!==L.offset)){var F=oe.createRange();F.setStart(I.node,I.offset),W.removeAllRanges(),Be>Tt?(W.addRange(F),W.extend(L.node,L.offset)):(F.setEnd(L.node,L.offset),W.addRange(F))}}}}for(oe=[],W=E;W=W.parentNode;)W.nodeType===1&&oe.push({element:W,left:W.scrollLeft,top:W.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}}Xr=!!su,ru=su=null}finally{bt=o,J.p=l,M.T=n}}e.current=t,fn=2}}function Vp(){if(fn===2){fn=0;var e=wi,t=Al,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=M.T,M.T=null;var l=J.p;J.p=2;var o=bt;bt|=4;try{Np(e,t.alternate,t)}finally{bt=o,J.p=l,M.T=n}}fn=3}}function Qp(){if(fn===4||fn===3){fn=0,Ft();var e=wi,t=Al,n=ti,l=Up;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?fn=5:(fn=0,Al=wi=null,Wp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Si=null),qn(n),t=t.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(cn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=M.T,o=J.p,J.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;h<l.length;h++){var E=l[h];c(E.value,{componentStack:E.stack})}}finally{M.T=t,J.p=o}}(ti&3)!==0&&Ur(),Ca(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Kc?_s++:(_s=0,Kc=e):_s=0,Ss(0)}}function Wp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ns(t)))}function Ur(){return Xp(),Vp(),Qp(),Jp()}function Jp(){if(fn!==5)return!1;var e=wi,t=Fc;Fc=0;var n=qn(ti),l=M.T,o=J.p;try{J.p=32>n?32:n,M.T=null,n=Pc,Pc=null;var c=wi,h=ti;if(fn=0,Al=wi=null,ti=0,(bt&6)!==0)throw Error(s(331));var E=bt;if(bt|=4,Lp(c.current),Cp(c,c.current,h,n),bt=E,Ss(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(cn,c)}catch{}return!0}finally{J.p=o,M.T=l,Wp(e,t)}}function em(e,t,n){t=ua(n,t),t=xc(e.stateNode,t,2),e=gi(e,t,2),e!==null&&(et(e,2),Ca(e))}function _t(e,t,n){if(e.tag===3)em(e,e,n);else for(;t!==null;){if(t.tag===3){em(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Si===null||!Si.has(l))){e=ua(n,e),n=tp(2),l=gi(t,n,2),l!==null&&(np(n,l,t,e),et(l,2),Ca(l));break}}t=t.return}}function Vc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new qv;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(n)||(Gc=!0,o.add(n),e=Pv.bind(null,e,t,n),t.then(e,e))}function Pv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,kt===e&&(st&n)===n&&(Yt===4||Yt===3&&(st&62914560)===st&&300>je()-Cr?(bt&2)===0&&Rl(e,0):$c|=n,Tl===st&&(Tl=0)),Ca(e)}function tm(e,t){t===0&&(t=ze()),e=Ii(e,t),e!==null&&(et(e,t),Ca(e))}function Kv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tm(e,n)}function Zv(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),tm(e,n)}function Xv(e,t){return Rt(e,t)}var Br=null,Ol=null,Qc=!1,Ir=!1,Wc=!1,xi=0;function Ca(e){e!==Ol&&e.next===null&&(Ol===null?Br=Ol=e:Ol=Ol.next=e),Ir=!0,Qc||(Qc=!0,Qv())}function Ss(e,t){if(!Wc&&Ir){Wc=!0;do for(var n=!1,l=Br;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var h=l.suspendedLanes,E=l.pingedLanes;c=(1<<31-qt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,lm(l,c))}else c=st,c=R(l,l===kt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||ne(l,c)||(n=!0,lm(l,c));l=l.next}while(n);Wc=!1}}function Vv(){nm()}function nm(){Ir=Qc=!1;var e=0;xi!==0&&rE()&&(e=xi);for(var t=je(),n=null,l=Br;l!==null;){var o=l.next,c=am(l,t);c===0?(l.next=null,n===null?Br=o:n.next=o,o===null&&(Ol=n)):(n=l,(e!==0||(c&3)!==0)&&(Ir=!0)),l=o}fn!==0&&fn!==5||Ss(e),xi!==0&&(xi=0)}function am(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-qt(c),E=1<<h,k=o[h];k===-1?((E&n)===0||(E&l)!==0)&&(o[h]=ye(E,t)):k<=t&&(e.expiredLanes|=E),c&=~E}if(t=kt,n=st,n=R(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Et===2||Et===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&on(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ne(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&on(l),qn(n)){case 2:case 8:n=Ot;break;case 32:n=Tn;break;case 268435456:n=An;break;default:n=Tn}return l=im.bind(null,e),n=Rt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&on(l),e.callbackPriority=2,e.callbackNode=null,2}function im(e,t){if(fn!==0&&fn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ur()&&e.callbackNode!==n)return null;var l=st;return l=R(e,e===kt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ip(e,l,t),am(e,je()),e.callbackNode!=null&&e.callbackNode===n?im.bind(null,e):null)}function lm(e,t){if(Ur())return null;Ip(e,t,!0)}function Qv(){cE(function(){(bt&6)!==0?Rt(vt,Vv):nm()})}function Jc(){if(xi===0){var e=ml;e===0&&(e=qe,qe<<=1,(qe&261888)===0&&(qe=256)),xi=e}return xi}function sm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:nt(""+e)}function rm(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 Wv(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var c=sm((o[Kt]||null).action),h=l.submitter;h&&(t=(t=h[Kt]||null)?sm(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var E=new Qs("action","action",null,l,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xi!==0){var k=h?rm(o,h):new FormData(o);vc(n,{pending:!0,data:k,method:o.method,action:c},null,k)}}else typeof c=="function"&&(E.preventDefault(),k=h?rm(o,h):new FormData(o),vc(n,{pending:!0,data:k,method:o.method,action:c},c,k))},currentTarget:o}]})}}for(var eu=0;eu<jo.length;eu++){var tu=jo[eu],Jv=tu.toLowerCase(),eE=tu[0].toUpperCase()+tu.slice(1);ya(Jv,"on"+eE)}ya(Bf,"onAnimationEnd"),ya(If,"onAnimationIteration"),ya(Hf,"onAnimationStart"),ya("dblclick","onDoubleClick"),ya("focusin","onFocus"),ya("focusout","onBlur"),ya(gv,"onTransitionRun"),ya(bv,"onTransitionStart"),ya(yv,"onTransitionCancel"),ya(qf,"onTransitionEnd"),Y("onMouseEnter",["mouseout","mouseover"]),Y("onMouseLeave",["mouseout","mouseover"]),Y("onPointerEnter",["pointerout","pointerover"]),Y("onPointerLeave",["pointerout","pointerover"]),Ne("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ne("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ne("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ne("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ne("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ne("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ws="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(" "),tE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ws));function om(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var h=l.length-1;0<=h;h--){var E=l[h],k=E.instance,P=E.currentTarget;if(E=E.listener,k!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=P;try{c(o)}catch(ie){er(ie)}o.currentTarget=null,c=k}else for(h=0;h<l.length;h++){if(E=l[h],k=E.instance,P=E.currentTarget,E=E.listener,k!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=P;try{c(o)}catch(ie){er(ie)}o.currentTarget=null,c=k}}}}function it(e,t){var n=t[vn];n===void 0&&(n=t[vn]=new Set);var l=e+"__bubble";n.has(l)||(cm(t,e,2,!1),n.add(l))}function nu(e,t,n){var l=0;t&&(l|=4),cm(n,e,l,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function au(e){if(!e[Hr]){e[Hr]=!0,$.forEach(function(n){n!=="selectionchange"&&(tE.has(n)||nu(n,!1,e),nu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hr]||(t[Hr]=!0,nu("selectionchange",!1,t))}}function cm(e,t,n,l){switch(Bm(t)){case 2:var o=kE;break;case 8:o=OE;break;default:o=yu}n=o.bind(null,t,n,e),o=void 0,!wo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?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 iu(e,t,n,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var E=l.stateNode.containerInfo;if(E===o)break;if(h===4)for(h=l.return;h!==null;){var k=h.tag;if((k===3||k===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=Wt(E),h===null)return;if(k=h.tag,k===5||k===6||k===26||k===27){l=c=h;continue e}E=E.parentNode}}l=l.return}Ks(function(){var P=c,ie=Me(n),oe=[];e:{var K=Gf.get(e);if(K!==void 0){var W=Qs,Re=e;switch(e){case"keypress":if(Xs(n)===0)break e;case"keydown":case"keyup":W=Zy;break;case"focusin":Re="focus",W=Ao;break;case"focusout":Re="blur",W=Ao;break;case"beforeblur":case"afterblur":W=Ao;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":W=bf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=jy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=Qy;break;case Bf:case If:case Hf:W=Iy;break;case qf:W=Jy;break;case"scroll":case"scrollend":W=Ly;break;case"wheel":W=tv;break;case"copy":case"cut":case"paste":W=qy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=vf;break;case"toggle":case"beforetoggle":W=av}var Be=(t&4)!==0,Tt=!Be&&(e==="scroll"||e==="scrollend"),I=Be?K!==null?K+"Capture":null:K;Be=[];for(var L=P,F;L!==null;){var se=L;if(F=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||F===null||I===null||(se=Fl(L,I),se!=null&&Be.push(Ns(L,se,F))),Tt)break;L=L.return}0<Be.length&&(K=new W(K,Re,null,n,ie),oe.push({event:K,listeners:Be}))}}if((t&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",W=e==="mouseout"||e==="pointerout",K&&n!==Ee&&(Re=n.relatedTarget||n.fromElement)&&(Wt(Re)||Re[tt]))break e;if((W||K)&&(K=ie.window===ie?ie:(K=ie.ownerDocument)?K.defaultView||K.parentWindow:window,W?(Re=n.relatedTarget||n.toElement,W=P,Re=Re?Wt(Re):null,Re!==null&&(Tt=f(Re),Be=Re.tag,Re!==Tt||Be!==5&&Be!==27&&Be!==6)&&(Re=null)):(W=null,Re=P),W!==Re)){if(Be=bf,se="onMouseLeave",I="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Be=vf,se="onPointerLeave",I="onPointerEnter",L="pointer"),Tt=W==null?K:Xn(W),F=Re==null?K:Xn(Re),K=new Be(se,L+"leave",W,n,ie),K.target=Tt,K.relatedTarget=F,se=null,Wt(ie)===P&&(Be=new Be(I,L+"enter",Re,n,ie),Be.target=F,Be.relatedTarget=Tt,se=Be),Tt=se,W&&Re)t:{for(Be=nE,I=W,L=Re,F=0,se=I;se;se=Be(se))F++;se=0;for(var Le=L;Le;Le=Be(Le))se++;for(;0<F-se;)I=Be(I),F--;for(;0<se-F;)L=Be(L),se--;for(;F--;){if(I===L||L!==null&&I===L.alternate){Be=I;break t}I=Be(I),L=Be(L)}Be=null}else Be=null;W!==null&&um(oe,K,W,Be,!1),Re!==null&&Tt!==null&&um(oe,Tt,Re,Be,!0)}}e:{if(K=P?Xn(P):window,W=K.nodeName&&K.nodeName.toLowerCase(),W==="select"||W==="input"&&K.type==="file")var ht=Af;else if(xf(K))if(Rf)ht=hv;else{ht=dv;var Oe=uv}else W=K.nodeName,!W||W.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?P&&Te(P.elementType)&&(ht=Af):ht=fv;if(ht&&(ht=ht(e,P))){Tf(oe,ht,n,ie);break e}Oe&&Oe(e,K,P),e==="focusout"&&P&&K.type==="number"&&P.memoizedProps.value!=null&&oi(K,"number",K.value)}switch(Oe=P?Xn(P):window,e){case"focusin":(xf(Oe)||Oe.contentEditable==="true")&&(rl=Oe,Do=P,Jl=null);break;case"focusout":Jl=Do=rl=null;break;case"mousedown":Lo=!0;break;case"contextmenu":case"mouseup":case"dragend":Lo=!1,jf(oe,n,ie);break;case"selectionchange":if(mv)break;case"keydown":case"keyup":jf(oe,n,ie)}var Xe;if(ko)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 sl?wf(e,n)&&(rt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(rt="onCompositionStart");rt&&(Ef&&n.locale!=="ko"&&(sl||rt!=="onCompositionStart"?rt==="onCompositionEnd"&&sl&&(Xe=mf()):(ci=ie,No="value"in ci?ci.value:ci.textContent,sl=!0)),Oe=qr(P,rt),0<Oe.length&&(rt=new yf(rt,e,null,n,ie),oe.push({event:rt,listeners:Oe}),Xe?rt.data=Xe:(Xe=Nf(n),Xe!==null&&(rt.data=Xe)))),(Xe=lv?sv(e,n):rv(e,n))&&(rt=qr(P,"onBeforeInput"),0<rt.length&&(Oe=new yf("onBeforeInput","beforeinput",null,n,ie),oe.push({event:Oe,listeners:rt}),Oe.data=Xe)),Wv(oe,e,P,n,ie)}om(oe,t)})}function Ns(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Fl(e,n),o!=null&&l.unshift(Ns(e,o,c)),o=Fl(e,t),o!=null&&l.push(Ns(e,o,c))),e.tag===3)return l;e=e.return}return[]}function nE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function um(e,t,n,l,o){for(var c=t._reactName,h=[];n!==null&&n!==l;){var E=n,k=E.alternate,P=E.stateNode;if(E=E.tag,k!==null&&k===l)break;E!==5&&E!==26&&E!==27||P===null||(k=P,o?(P=Fl(n,c),P!=null&&h.unshift(Ns(n,P,k))):o||(P=Fl(n,c),P!=null&&h.push(Ns(n,P,k)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var aE=/\r\n?/g,iE=/\u0000|\uFFFD/g;function dm(e){return(typeof e=="string"?e:""+e).replace(aE,`
|
|
49
|
-
`).replace(iE,"")}function fm(e,t){return t=dm(t),dm(e)===t}function xt(e,t,n,l,o,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||te(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&te(e,""+l);break;case"className":Bt(e,"class",l);break;case"tabIndex":Bt(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Bt(e,n,l);break;case"style":ae(e,l,c);break;case"data":if(t!=="object"){Bt(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=nt(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="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"&&xt(e,t,"name",o.name,o,null),xt(e,t,"formEncType",o.formEncType,o,null),xt(e,t,"formMethod",o.formMethod,o,null),xt(e,t,"formTarget",o.formTarget,o,null)):(xt(e,t,"encType",o.encType,o,null),xt(e,t,"method",o.method,o,null),xt(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=nt(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=de);break;case"onScroll":l!=null&&it("scroll",e);break;case"onScrollEnd":l!=null&&it("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=nt(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":it("beforetoggle",e),it("toggle",e),gt(e,"popover",l);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":gt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ke.get(n)||n,gt(e,n,l))}}function lu(e,t,n,l,o,c){switch(n){case"style":ae(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?te(e,l):(typeof l=="number"||typeof l=="bigint")&&te(e,""+l);break;case"onScroll":l!=null&&it("scroll",e);break;case"onScrollEnd":l!=null&&it("scrollend",e);break;case"onClick":l!=null&&(e.onclick=de);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ue.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[Kt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,o);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):gt(e,n,l)}}}function wn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",e),it("load",e);var l=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:xt(e,t,c,h,n,null)}}o&&xt(e,t,"srcSet",n.srcSet,n,null),l&&xt(e,t,"src",n.src,n,null);return;case"input":it("invalid",e);var E=c=h=o=null,k=null,P=null;for(l in n)if(n.hasOwnProperty(l)){var ie=n[l];if(ie!=null)switch(l){case"name":o=ie;break;case"type":h=ie;break;case"checked":k=ie;break;case"defaultChecked":P=ie;break;case"value":c=ie;break;case"defaultValue":E=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(s(137,t));break;default:xt(e,t,l,ie,n,null)}}Ia(e,c,E,k,P,h,o,!1);return;case"select":it("invalid",e),l=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":l=E;default:xt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!l,t!=null?Jt(e,!!l,t,!1):n!=null&&Jt(e,!!l,n,!0);return;case"textarea":it("invalid",e),c=o=l=null;for(h in n)if(n.hasOwnProperty(h)&&(E=n[h],E!=null))switch(h){case"value":l=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:xt(e,t,h,E,n,null)}Aa(e,l,o,c);return;case"option":for(k in n)if(n.hasOwnProperty(k)&&(l=n[k],l!=null))switch(k){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:xt(e,t,k,l,n,null)}return;case"dialog":it("beforetoggle",e),it("toggle",e),it("cancel",e),it("close",e);break;case"iframe":case"object":it("load",e);break;case"video":case"audio":for(l=0;l<ws.length;l++)it(ws[l],e);break;case"image":it("error",e),it("load",e);break;case"details":it("toggle",e);break;case"embed":case"source":case"link":it("error",e),it("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(P in n)if(n.hasOwnProperty(P)&&(l=n[P],l!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:xt(e,t,P,l,n,null)}return;default:if(Te(t)){for(ie in n)n.hasOwnProperty(ie)&&(l=n[ie],l!==void 0&&lu(e,t,ie,l,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null&&xt(e,t,E,l,n,null))}function lE(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,E=null,k=null,P=null,ie=null;for(W in n){var oe=n[W];if(n.hasOwnProperty(W)&&oe!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":k=oe;default:l.hasOwnProperty(W)||xt(e,t,W,null,l,oe)}}for(var K in l){var W=l[K];if(oe=n[K],l.hasOwnProperty(K)&&(W!=null||oe!=null))switch(K){case"type":c=W;break;case"name":o=W;break;case"checked":P=W;break;case"defaultChecked":ie=W;break;case"value":h=W;break;case"defaultValue":E=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(s(137,t));break;default:W!==oe&&xt(e,t,K,W,l,oe)}}ri(e,h,E,k,P,ie,c,o);return;case"select":W=h=E=K=null;for(c in n)if(k=n[c],n.hasOwnProperty(c)&&k!=null)switch(c){case"value":break;case"multiple":W=k;default:l.hasOwnProperty(c)||xt(e,t,c,null,l,k)}for(o in l)if(c=l[o],k=n[o],l.hasOwnProperty(o)&&(c!=null||k!=null))switch(o){case"value":K=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==k&&xt(e,t,o,c,l,k)}t=E,n=h,l=W,K!=null?Jt(e,!!n,K,!1):!!l!=!!n&&(t!=null?Jt(e,!!n,t,!0):Jt(e,!!n,n?[]:"",!1));return;case"textarea":W=K=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:xt(e,t,E,null,l,o)}for(h in l)if(o=l[h],c=n[h],l.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":K=o;break;case"defaultValue":W=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&xt(e,t,h,o,l,c)}Ha(e,K,W);return;case"option":for(var Re in n)if(K=n[Re],n.hasOwnProperty(Re)&&K!=null&&!l.hasOwnProperty(Re))switch(Re){case"selected":e.selected=!1;break;default:xt(e,t,Re,null,l,K)}for(k in l)if(K=l[k],W=n[k],l.hasOwnProperty(k)&&K!==W&&(K!=null||W!=null))switch(k){case"selected":e.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:xt(e,t,k,K,l,W)}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)K=n[Be],n.hasOwnProperty(Be)&&K!=null&&!l.hasOwnProperty(Be)&&xt(e,t,Be,null,l,K);for(P in l)if(K=l[P],W=n[P],l.hasOwnProperty(P)&&K!==W&&(K!=null||W!=null))switch(P){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(s(137,t));break;default:xt(e,t,P,K,l,W)}return;default:if(Te(t)){for(var Tt in n)K=n[Tt],n.hasOwnProperty(Tt)&&K!==void 0&&!l.hasOwnProperty(Tt)&&lu(e,t,Tt,void 0,l,K);for(ie in l)K=l[ie],W=n[ie],!l.hasOwnProperty(ie)||K===W||K===void 0&&W===void 0||lu(e,t,ie,K,l,W);return}}for(var I in n)K=n[I],n.hasOwnProperty(I)&&K!=null&&!l.hasOwnProperty(I)&&xt(e,t,I,null,l,K);for(oe in l)K=l[oe],W=n[oe],!l.hasOwnProperty(oe)||K===W||K==null&&W==null||xt(e,t,oe,K,l,W)}function hm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],c=o.transferSize,h=o.initiatorType,E=o.duration;if(c&&E&&hm(h)){for(h=0,E=o.responseEnd,l+=1;l<n.length;l++){var k=n[l],P=k.startTime;if(P>E)break;var ie=k.transferSize,oe=k.initiatorType;ie&&hm(oe)&&(k=k.responseEnd,h+=ie*(k<E?1:(E-P)/(k-P)))}if(--l,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 su=null,ru=null;function Gr(e){return e.nodeType===9?e:e.ownerDocument}function pm(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 mm(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 ou(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 cu=null;function rE(){var e=window.event;return e&&e.type==="popstate"?e===cu?!1:(cu=e,!0):(cu=null,!1)}var gm=typeof setTimeout=="function"?setTimeout:void 0,oE=typeof clearTimeout=="function"?clearTimeout:void 0,bm=typeof Promise=="function"?Promise:void 0,cE=typeof queueMicrotask=="function"?queueMicrotask:typeof bm<"u"?function(e){return bm.resolve(null).then(e).catch(uE)}:gm;function uE(e){setTimeout(function(){throw e})}function Ti(e){return e==="head"}function ym(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),Ll(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")xs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,xs(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[ra]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&xs(e.ownerDocument.body);n=o}while(n);Ll(t)}function vm(e,t){var n=e;e=0;do{var l=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||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function uu(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":uu(n),Ta(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function dE(e,t,n,l){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ra])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ma(e.nextSibling),e===null)break}return null}function fE(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ma(e.nextSibling),e===null))return null;return e}function Em(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ma(e.nextSibling),e===null))return null;return e}function du(e){return e.data==="$?"||e.data==="$~"}function fu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function hE(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function ma(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var hu=null;function _m(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ma(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Sm(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 wm(e,t,n){switch(t=Gr(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function xs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ta(e)}var ga=new Map,Nm=new Set;function $r(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ni=J.d;J.d={f:pE,r:mE,D:gE,C:bE,L:yE,m:vE,X:_E,S:EE,M:SE};function pE(){var e=ni.f(),t=Lr();return e||t}function mE(e){var t=Gn(e);t!==null&&t.tag===5&&t.type==="form"?qh(t):ni.r(e)}var Cl=typeof document>"u"?null:document;function xm(e,t,n){var l=Cl;if(l&&typeof t=="string"&&t){var o=On(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Nm.has(o)||(Nm.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),wn(t,"link",e),ut(t),l.head.appendChild(t)))}}function gE(e){ni.D(e),xm("dns-prefetch",e,null)}function bE(e,t){ni.C(e,t),xm("preconnect",e,t)}function yE(e,t,n){ni.L(e,t,n);var l=Cl;if(l&&e&&t){var o='link[rel="preload"][as="'+On(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+On(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+On(n.imageSizes)+'"]')):o+='[href="'+On(e)+'"]';var c=o;switch(t){case"style":c=Ml(e);break;case"script":c=Dl(e)}ga.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ga.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Ts(c))||t==="script"&&l.querySelector(As(c))||(t=l.createElement("link"),wn(t,"link",e),ut(t),l.head.appendChild(t)))}}function vE(e,t){ni.m(e,t);var n=Cl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+On(l)+'"][href="'+On(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Dl(e)}if(!ga.has(c)&&(e=v({rel:"modulepreload",href:e},t),ga.set(c,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(As(c)))return}l=n.createElement("link"),wn(l,"link",e),ut(l),n.head.appendChild(l)}}}function EE(e,t,n){ni.S(e,t,n);var l=Cl;if(l&&e){var o=Vn(l).hoistableStyles,c=Ml(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=l.querySelector(Ts(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ga.get(c))&&pu(e,n);var k=h=l.createElement("link");ut(k),wn(k,"link",e),k._p=new Promise(function(P,ie){k.onload=P,k.onerror=ie}),k.addEventListener("load",function(){E.loading|=1}),k.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Yr(h,t,l)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function _E(e,t){ni.X(e,t);var n=Cl;if(n&&e){var l=Vn(n).hoistableScripts,o=Dl(e),c=l.get(o);c||(c=n.querySelector(As(o)),c||(e=v({src:e,async:!0},t),(t=ga.get(o))&&mu(e,t),c=n.createElement("script"),ut(c),wn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function SE(e,t){ni.M(e,t);var n=Cl;if(n&&e){var l=Vn(n).hoistableScripts,o=Dl(e),c=l.get(o);c||(c=n.querySelector(As(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ga.get(o))&&mu(e,t),c=n.createElement("script"),ut(c),wn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Tm(e,t,n,l){var o=(o=ve.current)?$r(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ml(n.href),n=Vn(o).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ml(n.href);var c=Vn(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ga.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ga.set(e,n),c||wE(o,e,n,h.state))),t&&l===null)throw Error(s(528,""));return h}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Dl(n),n=Vn(o).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ml(e){return'href="'+On(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function Am(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function wE(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),wn(t,"link",n),ut(t),e.head.appendChild(t))}function Dl(e){return'[src="'+On(e)+'"]'}function As(e){return"script[async]"+e}function Rm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+On(n.href)+'"]');if(l)return t.instance=l,ut(l),l;var o=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ut(l),wn(l,"style",o),Yr(l,n.precedence,e),t.instance=l;case"stylesheet":o=Ml(n.href);var c=e.querySelector(Ts(o));if(c)return t.state.loading|=4,t.instance=c,ut(c),c;l=Am(n),(o=ga.get(o))&&pu(l,o),c=(e.ownerDocument||e).createElement("link"),ut(c);var h=c;return h._p=new Promise(function(E,k){h.onload=E,h.onerror=k}),wn(c,"link",l),t.state.loading|=4,Yr(c,n.precedence,e),t.instance=c;case"script":return c=Dl(n.src),(o=e.querySelector(As(c)))?(t.instance=o,ut(o),o):(l=n,(o=ga.get(c))&&(l=v({},n),mu(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),wn(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Yr(l,n.precedence,e));return t.instance}function Yr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,h=0;h<l.length;h++){var E=l[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 pu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function mu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fr=null;function km(e,t,n){if(Fr===null){var l=new Map,o=Fr=new Map;o.set(n,l)}else o=Fr,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[ra]||c[wt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var E=l.get(h);E?E.push(c):l.set(h,[c])}}return l}function Om(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function NE(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 Cm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function xE(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ml(l.href),c=t.querySelector(Ts(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Pr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ut(c);return}c=t.ownerDocument||t,l=Am(l),(o=ga.get(o))&&pu(l,o),c=c.createElement("link"),ut(c);var h=c;h._p=new Promise(function(E,k){h.onload=E,h.onerror=k}),wn(c,"link",l),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=Pr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var gu=0;function TE(e,t){return e.stylesheets&&e.count===0&&Zr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Zr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&gu===0&&(gu=62500*sE());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>gu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Pr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Kr=null;function Zr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Kr=new Map,t.forEach(AE,e),Kr=null,Pr.call(e))}function AE(e,t){if(!(t.state.loading&4)){var n=Kr.get(e);if(n)var l=n.get(null);else{n=new Map,Kr.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),l=h)}l&&n.set(null,l)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||l,c===l&&n.set(null,o),n.set(h,o),this.count++,l=Pr.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Rs={$$typeof:D,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function RE(e,t,n,l,o,c,h,E,k){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function Mm(e,t,n,l,o,c,h,E,k,P,ie,oe){return e=new RE(e,t,n,h,k,P,ie,oe,E),t=1,c===!0&&(t|=24),c=Wn(3,null,null,t),e.current=c,c.stateNode=e,t=Xo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},Jo(c),e}function Dm(e){return e?(e=ul,e):ul}function Lm(e,t,n,l,o,c){o=Dm(o),l.context===null?l.context=o:l.pendingContext=o,l=mi(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=gi(e,l,t),n!==null&&(Zn(n,e,t),ss(n,e,t))}function zm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bu(e,t){zm(e,t),(e=e.alternate)&&zm(e,t)}function jm(e){if(e.tag===13||e.tag===31){var t=Ii(e,67108864);t!==null&&Zn(t,e,67108864),bu(e,67108864)}}function Um(e){if(e.tag===13||e.tag===31){var t=aa();t=mt(t);var n=Ii(e,t);n!==null&&Zn(n,e,t),bu(e,t)}}var Xr=!0;function kE(e,t,n,l){var o=M.T;M.T=null;var c=J.p;try{J.p=2,yu(e,t,n,l)}finally{J.p=c,M.T=o}}function OE(e,t,n,l){var o=M.T;M.T=null;var c=J.p;try{J.p=8,yu(e,t,n,l)}finally{J.p=c,M.T=o}}function yu(e,t,n,l){if(Xr){var o=vu(l);if(o===null)iu(e,t,l,Vr,n),Im(e,l);else if(ME(o,e,t,n,l))l.stopPropagation();else if(Im(e,l),t&4&&-1<CE.indexOf(e)){for(;o!==null;){var c=Gn(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=Gt(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var k=1<<31-qt(h);E.entanglements[1]|=k,h&=~k}Ca(c),(bt&6)===0&&(Mr=je()+500,Ss(0))}}break;case 31:case 13:E=Ii(c,2),E!==null&&Zn(E,c,2),Lr(),bu(c,2)}if(c=vu(l),c===null&&iu(e,t,l,Vr,n),c===o)break;o=c}o!==null&&l.stopPropagation()}else iu(e,t,l,null,n)}}function vu(e){return e=Me(e),Eu(e)}var Vr=null;function Eu(e){if(Vr=null,e=Wt(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Vr=e,null}function Bm(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(Lt()){case vt:return 2;case Ot:return 8;case Tn:case zn:return 32;case An:return 268435456;default:return 32}default:return 32}}var _u=!1,Ai=null,Ri=null,ki=null,ks=new Map,Os=new Map,Oi=[],CE="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 Im(e,t){switch(e){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":Ri=null;break;case"mouseover":case"mouseout":ki=null;break;case"pointerover":case"pointerout":ks.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(t.pointerId)}}function Cs(e,t,n,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Gn(t),t!==null&&jm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function ME(e,t,n,l,o){switch(t){case"focusin":return Ai=Cs(Ai,e,t,n,l,o),!0;case"dragenter":return Ri=Cs(Ri,e,t,n,l,o),!0;case"mouseover":return ki=Cs(ki,e,t,n,l,o),!0;case"pointerover":var c=o.pointerId;return ks.set(c,Cs(ks.get(c)||null,e,t,n,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Os.set(c,Cs(Os.get(c)||null,e,t,n,l,o)),!0}return!1}function Hm(e){var t=Wt(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,Na(e.priority,function(){Um(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,Na(e.priority,function(){Um(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 Qr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Ee=l,n.target.dispatchEvent(l),Ee=null}else return t=Gn(n),t!==null&&jm(t),e.blockedOn=n,!1;t.shift()}return!0}function qm(e,t,n){Qr(e)&&n.delete(t)}function DE(){_u=!1,Ai!==null&&Qr(Ai)&&(Ai=null),Ri!==null&&Qr(Ri)&&(Ri=null),ki!==null&&Qr(ki)&&(ki=null),ks.forEach(qm),Os.forEach(qm)}function Wr(e,t){e.blockedOn===t&&(e.blockedOn=null,_u||(_u=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,DE)))}var Jr=null;function Gm(e){Jr!==e&&(Jr=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Jr===e&&(Jr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(Eu(l||n)===null)continue;break}var c=Gn(n);c!==null&&(e.splice(t,3),t-=3,vc(c,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function Ll(e){function t(k){return Wr(k,e)}Ai!==null&&Wr(Ai,e),Ri!==null&&Wr(Ri,e),ki!==null&&Wr(ki,e),ks.forEach(t),Os.forEach(t);for(var n=0;n<Oi.length;n++){var l=Oi[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Oi.length&&(n=Oi[0],n.blockedOn===null);)Hm(n),n.blockedOn===null&&Oi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],c=n[l+1],h=o[Kt]||null;if(typeof c=="function")h||Gm(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[Kt]||null)E=h.formAction;else if(Eu(o)!==null)continue}else E=h.action;typeof E=="function"?n[l+1]=E:(n.splice(l,3),l-=3),Gm(n)}}}function $m(){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),l||setTimeout(n,20)}function n(){if(!l&&!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 l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Su(e){this._internalRoot=e}eo.prototype.render=Su.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=aa();Lm(n,l,e,t,null,null)},eo.prototype.unmount=Su.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lm(e.current,2,null,e,null,null),Lr(),t[tt]=null}};function eo(e){this._internalRoot=e}eo.prototype.unstable_scheduleHydration=function(e){if(e){var t=sa();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&&Hm(e)}};var Ym=a.version;if(Ym!=="19.2.8")throw Error(s(527,Ym,"19.2.8"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var LE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var to=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!to.isDisabled&&to.supportsFiber)try{cn=to.inject(LE),Ht=to}catch{}}return Ds.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,l="",o=Qh,c=Wh,h=Jh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Mm(e,1,!1,null,null,n,l,null,o,c,h,$m),e[tt]=t.current,au(e),new Su(t)},Ds.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var l=!1,o="",c=Qh,h=Wh,E=Jh,k=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(k=n.formState)),t=Mm(e,1,!0,t,n??null,l,o,k,c,h,E,$m),t.context=Dm(null),n=t.current,l=aa(),l=mt(l),o=mi(l),o.callback=null,gi(n,o,l),n=l,t.current.lanes=n,et(t,n),Ca(t),e[tt]=t.current,au(e),new eo(t)},Ds.version="19.2.8",Ds}var eg;function PE(){if(eg)return xu.exports;eg=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),xu.exports=FE(),xu.exports}var KE=PE(),ln;(function(i){i.INSERT="insert",i.DELETE="delete",i.CONTEXT="context"})(ln||(ln={}));const ZE={LINE_BY_LINE:"line-by-line"},XE={NONE:"none"},VE={WORD:"word"};var Hl;(function(i){i.AUTO="auto",i.DARK="dark",i.LIGHT="light"})(Hl||(Hl={}));const QE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],WE=RegExp("["+QE.join("\\")+"]","g");function JE(i){return i.replace(WE,"\\$&")}function tg(i){return i&&i.replace(/\\/g,"/")}function e_(i){let a,r,s,u=0;for(a=0,s=i.length;a<s;a++)r=i.charCodeAt(a),u=(u<<5)-u+r,u|=0;return u}function Ib(i){const a=i.length;let r=-1/0;for(let s=0;s<a;s++)r=Math.max(r,i[s]);return r}function ng(i,a){const r=i.split(".");return r.length>1?r[r.length-1]:a}function ag(i,a){return a.reduce((r,s)=>r||i.startsWith(s),!1)}const ig=["a/","b/","i/","w/","c/","o/"];function Li(i,a,r){const s=r!==void 0?[...ig,r]:ig,u=a?new RegExp(`^${JE(a)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,f=""]=u.exec(i)||[],p=s.find(g=>f.indexOf(g)===0);return(p?f.slice(p.length):f).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function t_(i,a){return Li(i,"---",a)}function n_(i,a){return Li(i,"+++",a)}function a_(i,a={}){const r=[];let s=null,u=null,f=null,p=null,y=null,g=null,m=null;const b="--- ",v="+++ ",S="@@",x=/^old mode (\d{6})/,_=/^new mode (\d{6})/,C=/^deleted file mode (\d{6})/,A=/^new file mode (\d{6})/,O=/^copy from "?(.+)"?/,G=/^copy to "?(.+)"?/,D=/^rename from "?(.+)"?/,V=/^rename to "?(.+)"?/,j=/^similarity index (\d+)%/,le=/^dissimilarity index (\d+)%/,X=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,T=/^Binary files (.*) and (.*) differ/,q=/^GIT binary patch/,ee=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,ce=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,Se=/^new file mode (\d{6})/,Z=/^deleted file mode (\d{6}),(\d{6})/,pe=i.replace(/\/g,"").replace(/\r\n?/g,`
|
|
50
|
-
`).split(`
|
|
51
|
-
`);function he(){u!==null&&s!==null&&(s.blocks.push(u),u=null)}function M(){s!==null&&(!s.oldName&&g!==null&&(s.oldName=g),!s.newName&&m!==null&&(s.newName=m),s.newName&&(r.push(s),s=null)),g=null,m=null}function J(){he(),M(),s={blocks:[],deletedLines:0,addedLines:0}}function fe(w){he();let z;s!==null&&((z=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(w))?(s.isCombined=!1,f=parseInt(z[1],10),y=parseInt(z[2],10)):(z=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(w))?(s.isCombined=!0,f=parseInt(z[1],10),p=parseInt(z[2],10),y=parseInt(z[3],10)):(w.startsWith(S)&&console.error("Failed to parse lines, starting in 0!"),f=0,y=0,s.isCombined=!1)),u={lines:[],oldStartLine:f,oldStartLine2:p,newStartLine:y,header:w}}function we(w){if(s===null||u===null||f===null||y===null)return;const z={content:w},B=s.isCombined?["+ "," +","++"]:["+"],re=s.isCombined?["- "," -","--"]:["-"];ag(w,B)?(s.addedLines++,z.type=ln.INSERT,z.oldNumber=void 0,z.newNumber=y++):ag(w,re)?(s.deletedLines++,z.type=ln.DELETE,z.oldNumber=f++,z.newNumber=void 0):(z.type=ln.CONTEXT,z.oldNumber=f++,z.newNumber=y++),u.lines.push(z)}function De(w,z){let B=z;for(;B<pe.length-3;){if(w.startsWith("diff"))return!1;if(pe[B].startsWith(b)&&pe[B+1].startsWith(v)&&pe[B+2].startsWith(S))return!0;B++}return!1}return pe.forEach((w,z)=>{if(!w||w.startsWith("*"))return;let B;const re=pe[z-1],me=pe[z+1],ve=pe[z+2];if(w.startsWith("diff --git")||w.startsWith("diff --combined")){if(J(),(B=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(w))&&(g=Li(B[1],void 0,a.dstPrefix),m=Li(B[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isGitDiff=!0;return}if(w.startsWith("Binary files")&&!(s!=null&&s.isGitDiff)){if(J(),(B=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(w))&&(g=Li(B[1],void 0,a.dstPrefix),m=Li(B[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isBinary=!0;return}if((!s||!s.isGitDiff&&s&&w.startsWith(b)&&me.startsWith(v)&&ve.startsWith(S))&&J(),s!=null&&s.isTooBig)return;if(s&&(typeof a.diffMaxChanges=="number"&&s.addedLines+s.deletedLines>a.diffMaxChanges||typeof a.diffMaxLineLength=="number"&&w.length>a.diffMaxLineLength)){s.isTooBig=!0,s.addedLines=0,s.deletedLines=0,s.blocks=[],u=null;const be=typeof a.diffTooBigMessage=="function"?a.diffTooBigMessage(r.length):"Diff too big to be displayed";fe(be);return}if(w.startsWith(b)&&me.startsWith(v)||w.startsWith(v)&&re.startsWith(b)){if(s&&!s.oldName&&w.startsWith("--- ")&&(B=t_(w,a.srcPrefix))){s.oldName=B,s.language=ng(s.oldName,s.language);return}if(s&&!s.newName&&w.startsWith("+++ ")&&(B=n_(w,a.dstPrefix))){s.newName=B,s.language=ng(s.newName,s.language);return}}if(s&&(w.startsWith(S)||s.isGitDiff&&s.oldName&&s.newName&&!u)){fe(w);return}if(u&&(w.startsWith("+")||w.startsWith("-")||w.startsWith(" "))){we(w);return}const Q=!De(w,z);if(s===null)throw new Error("Where is my file !!!");(B=x.exec(w))?s.oldMode=B[1]:(B=_.exec(w))?s.newMode=B[1]:(B=C.exec(w))?(s.deletedFileMode=B[1],s.isDeleted=!0):(B=A.exec(w))?(s.newFileMode=B[1],s.isNew=!0):(B=O.exec(w))?(Q&&(s.oldName=B[1]),s.isCopy=!0):(B=G.exec(w))?(Q&&(s.newName=B[1]),s.isCopy=!0):(B=D.exec(w))?(Q&&(s.oldName=B[1]),s.isRename=!0):(B=V.exec(w))?(Q&&(s.newName=B[1]),s.isRename=!0):(B=T.exec(w))?(s.isBinary=!0,s.oldName=Li(B[1],void 0,a.srcPrefix),s.newName=Li(B[2],void 0,a.dstPrefix),fe("Binary file")):q.test(w)?(s.isBinary=!0,fe(w)):(B=j.exec(w))?s.unchangedPercentage=parseInt(B[1],10):(B=le.exec(w))?s.changedPercentage=parseInt(B[1],10):(B=X.exec(w))?(s.checksumBefore=B[1],s.checksumAfter=B[2],B[3]&&(s.mode=B[3])):(B=ee.exec(w))?(s.checksumBefore=[B[2],B[3]],s.checksumAfter=B[1]):(B=ce.exec(w))?(s.oldMode=[B[2],B[3]],s.newMode=B[1]):(B=Se.exec(w))?(s.newFileMode=B[1],s.isNew=!0):(B=Z.exec(w))&&(s.deletedFileMode=B[1],s.isDeleted=!0)}),he(),M(),r}class Hb{diff(a,r,s={}){let u;typeof s=="function"?(u=s,s={}):"callback"in s&&(u=s.callback);const f=this.castInput(a,s),p=this.castInput(r,s),y=this.removeEmpty(this.tokenize(f,s)),g=this.removeEmpty(this.tokenize(p,s));return this.diffWithOptionsObj(y,g,s,u)}diffWithOptionsObj(a,r,s,u){var f;const p=G=>{if(G=this.postProcess(G,s),u){setTimeout(function(){u(G)},0);return}else return G},y=r.length,g=a.length;let m=1,b=y+g;s.maxEditLength!=null&&(b=Math.min(b,s.maxEditLength));const v=(f=s.timeout)!==null&&f!==void 0?f:1/0,S=Date.now()+v,x=[{oldPos:-1,lastComponent:void 0}];let _=this.extractCommon(x[0],r,a,0,s);if(x[0].oldPos+1>=g&&_+1>=y)return p(this.buildValues(x[0].lastComponent,r,a));let C=-1/0,A=1/0;const O=()=>{for(let G=Math.max(C,-m);G<=Math.min(A,m);G+=2){let D;const V=x[G-1],j=x[G+1];V&&(x[G-1]=void 0);let le=!1;if(j){const T=j.oldPos-G;le=j&&0<=T&&T<y}const X=V&&V.oldPos+1<g;if(!le&&!X){x[G]=void 0;continue}if(!X||le&&V.oldPos<j.oldPos?D=this.addToPath(j,!0,!1,0,s):D=this.addToPath(V,!1,!0,1,s),_=this.extractCommon(D,r,a,G,s),D.oldPos+1>=g&&_+1>=y)return p(this.buildValues(D.lastComponent,r,a))||!0;x[G]=D,D.oldPos+1>=g&&(A=Math.min(A,G-1)),_+1>=y&&(C=Math.max(C,G+1))}m++};if(u)(function G(){setTimeout(function(){if(m>b||Date.now()>S)return u(void 0);O()||G()},0)})();else for(;m<=b&&Date.now()<=S;){const G=O();if(G)return G}}addToPath(a,r,s,u,f){const p=a.lastComponent;return p&&!f.oneChangePerToken&&p.added===r&&p.removed===s?{oldPos:a.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:s,previousComponent:p.previousComponent}}:{oldPos:a.oldPos+u,lastComponent:{count:1,added:r,removed:s,previousComponent:p}}}extractCommon(a,r,s,u,f){const p=r.length,y=s.length;let g=a.oldPos,m=g-u,b=0;for(;m+1<p&&g+1<y&&this.equals(s[g+1],r[m+1],f);)m++,g++,b++,f.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return b&&!f.oneChangePerToken&&(a.lastComponent={count:b,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=g,m}equals(a,r,s){return s.comparator?s.comparator(a,r):a===r||!!s.ignoreCase&&a.toLowerCase()===r.toLowerCase()}removeEmpty(a){const r=[];for(let s=0;s<a.length;s++)a[s]&&r.push(a[s]);return r}castInput(a,r){return a}tokenize(a,r){return Array.from(a)}join(a){return a.join("")}postProcess(a,r){return a}get useLongestToken(){return!1}buildValues(a,r,s){const u=[];let f;for(;a;)u.push(a),f=a.previousComponent,delete a.previousComponent,a=f;u.reverse();const p=u.length;let y=0,g=0,m=0;for(;y<p;y++){const b=u[y];if(b.removed)b.value=this.join(s.slice(m,m+b.count)),m+=b.count;else{if(!b.added&&this.useLongestToken){let v=r.slice(g,g+b.count);v=v.map(function(S,x){const _=s[m+x];return _.length>S.length?_:S}),b.value=this.join(v)}else b.value=this.join(r.slice(g,g+b.count));g+=b.count,b.added||(m+=b.count)}}return u}}class i_ extends Hb{}const l_=new i_;function s_(i,a,r){return l_.diff(i,a,r)}const lg="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 r_ extends Hb{tokenize(a){const r=new RegExp(`(\\r?\\n)|[${lg}]+|[^\\S\\n\\r]+|[^${lg}]`,"ug");return a.match(r)||[]}}const o_=new r_;function c_(i,a,r){return o_.diff(i,a,r)}function u_(i,a){if(i.length===0)return a.length;if(a.length===0)return i.length;const r=[];let s;for(s=0;s<=a.length;s++)r[s]=[s];let u;for(u=0;u<=i.length;u++)r[0][u]=u;for(s=1;s<=a.length;s++)for(u=1;u<=i.length;u++)a.charAt(s-1)===i.charAt(u-1)?r[s][u]=r[s-1][u-1]:r[s][u]=Math.min(r[s-1][u-1]+1,Math.min(r[s][u-1]+1,r[s-1][u]+1));return r[a.length][i.length]}function Vd(i){return(a,r)=>{const s=i(a).trim(),u=i(r).trim();return u_(s,u)/(s.length+u.length)}}function Qd(i){function a(s,u,f=new Map){let p=1/0,y;for(let g=0;g<s.length;++g)for(let m=0;m<u.length;++m){const b=JSON.stringify([s[g],u[m]]);let v;f.has(b)&&(v=f.get(b))||(v=i(s[g],u[m]),f.set(b,v)),v<p&&(p=v,y={indexA:g,indexB:m,score:p})}return y}function r(s,u,f=0,p=new Map){const y=a(s,u,p);if(!y||s.length+u.length<3)return[[s,u]];const g=s.slice(0,y.indexA),m=u.slice(0,y.indexB),b=[s[y.indexA]],v=[u[y.indexB]],S=y.indexA+1,x=y.indexB+1,_=s.slice(S),C=u.slice(x),A=r(g,m,f+1,p),O=r(b,v,f+1,p),G=r(_,C,f+1,p);let D=O;return(y.indexA>0||y.indexB>0)&&(D=A.concat(D)),(s.length>S||u.length>x)&&(D=D.concat(G)),D}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"},vo={matching:XE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:VE.WORD,colorScheme:Hl.LIGHT},Ma="/",qb=Vd(i=>i.value),d_=Qd(qb);function ku(i){return i.indexOf("dev/null")!==-1}function f_(i){return i.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function h_(i){return i.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function uo(i){switch(i){case ln.CONTEXT:return Bn.CONTEXT;case ln.INSERT:return Bn.INSERTS;case ln.DELETE:return Bn.DELETES}}function Wd(i){switch(i){case Hl.DARK:return"d2h-dark-color-scheme";case Hl.AUTO:return"d2h-auto-color-scheme";case Hl.LIGHT:default:return"d2h-light-color-scheme"}}function p_(i){return i?2:1}function ql(i){return i.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function La(i,a,r=!0){const s=p_(a);return{prefix:i.substring(0,s),content:r?ql(i.substring(s)):i.substring(s)}}function Eo(i){const a=tg(i.oldName),r=tg(i.newName);if(a!==r&&!ku(a)&&!ku(r)){const s=[],u=[],f=a.split(Ma),p=r.split(Ma),y=f.length,g=p.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&f[m]===p[m];)s.push(p[m]),m+=1;for(;b>m&&v>m&&f[b]===p[v];)u.unshift(p[v]),b-=1,v-=1;const S=s.join(Ma),x=u.join(Ma),_=f.slice(m,b+1).join(Ma),C=p.slice(m,v+1).join(Ma);return S.length&&x.length?S+Ma+"{"+_+" → "+C+"}"+Ma+x:S.length?S+Ma+"{"+_+" → "+C+"}":x.length?"{"+_+" → "+C+"}"+Ma+x:a+" → "+r}else return ku(r)?a:r}function Jd(i){return`d2h-${e_(Eo(i)).toString().slice(-6)}`}function ef(i){let a="file-changed";return i.isRename||i.isCopy?a="file-renamed":i.isNew?a="file-added":i.isDeleted?a="file-deleted":i.newName!==i.oldName&&(a="file-renamed"),a}function Gb(i,a,r,s={}){const{matching:u,maxLineLengthHighlight:f,matchWordsThreshold:p,diffStyle:y}=Object.assign(Object.assign({},vo),s),g=La(i,r,!1),m=La(a,r,!1);if(g.content.length>f||m.content.length>f)return{oldLine:{prefix:g.prefix,content:ql(g.content)},newLine:{prefix:m.prefix,content:ql(m.content)}};const b=y==="char"?s_(g.content,m.content):c_(g.content,m.content),v=[];if(y==="word"&&u==="words"){const x=b.filter(A=>A.removed),_=b.filter(A=>A.added);d_(_,x).forEach(A=>{A[0].length===1&&A[1].length===1&&qb(A[0][0],A[1][0])<p&&(v.push(A[0][0]),v.push(A[1][0]))})}const S=b.reduce((x,_)=>{const C=_.added?"ins":_.removed?"del":null,A=v.indexOf(_)>-1?' class="d2h-change"':"",O=ql(_.value);return C!==null?`${x}<${C}${A}>${O}</${C}>`:`${x}${O}`},"");return{oldLine:{prefix:g.prefix,content:f_(S)},newLine:{prefix:m.prefix,content:h_(S)}}}const sg="file-summary",m_="icon",g_={colorScheme:vo.colorScheme};class b_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},g_),r)}render(a){const r=a.map(s=>this.hoganUtils.render(sg,"line",{fileHtmlId:Jd(s),oldName:s.oldName,newName:s.newName,fileName:Eo(s),deletedLines:"-"+s.deletedLines,addedLines:"+"+s.addedLines},{fileIcon:this.hoganUtils.template(m_,ef(s))})).join(`
|
|
52
|
-
`);return this.hoganUtils.render(sg,"wrapper",{colorScheme:Wd(this.config.colorScheme),filesNumber:a.length,files:r})}}const $b=Object.assign(Object.assign({},vo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ls="generic",rg="line-by-line",y_="icon",v_="tag";class E_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},$b),r)}render(a){const r=a.map(s=>{let u;return s.blocks.length?u=this.generateFileHtml(s):u=this.generateEmptyDiff(),this.makeFileDiffHtml(s,u)}).join(`
|
|
53
|
-
`);return this.hoganUtils.render(Ls,"wrapper",{colorScheme:Wd(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const s=this.hoganUtils.template(rg,"file-diff"),u=this.hoganUtils.template(Ls,"file-path"),f=this.hoganUtils.template(y_,"file"),p=this.hoganUtils.template(v_,ef(a));return s.render({file:a,fileHtmlId:Jd(a),diffs:r,filePath:u.render({fileDiffName:Eo(a)},{fileIcon:f,fileTag:p})})}generateEmptyDiff(){return this.hoganUtils.render(Ls,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Bn})}generateFileHtml(a){const r=Qd(Vd(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{let u=this.hoganUtils.render(Ls,"block-header",{CSSLineClass:Bn,blockHeader:a.isTooBig?s.header:ql(s.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(s).forEach(([f,p,y])=>{if(p.length&&y.length&&!f.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a,a.isCombined,g,m);u+=b,u+=v});else if(f.length)f.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined);u+=this.generateSingleLineHtml(a,{type: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",f,p,y)}),u}).join(`
|
|
54
|
-
`)}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const p=a.lines[f];(p.type!==ln.INSERT&&u.length||p.type===ln.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===ln.CONTEXT?r.push([[p],[],[]]):p.type===ln.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===ln.INSERT&&s.length>0?u.push(p):p.type===ln.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=Ib(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&f<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}processChangedLines(a,r,s,u){const f={right:"",left:""},p=Math.max(s.length,u.length);for(let y=0;y<p;y++){const g=s[y],m=u[y],b=g!==void 0&&m!==void 0?Gb(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:uo(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:uo(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:x,right:_}=this.generateLineHtml(a,v,S);f.left+=x,f.right+=_}return f}generateLineHtml(a,r,s){return{left:this.generateSingleLineHtml(a,r),right:this.generateSingleLineHtml(a,s)}}generateSingleLineHtml(a,r){if(r===void 0)return"";const s=this.hoganUtils.render(rg,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Ls,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?" ":r.prefix,content:r.content,lineNumber:s,line:r,file:a})}}const Yb=Object.assign(Object.assign({},vo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),zs="generic",__="side-by-side",S_="icon",w_="tag";class N_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Yb),r)}render(a){const r=a.map(s=>{let u;return s.blocks.length?u=this.generateFileHtml(s):u=this.generateEmptyDiff(),this.makeFileDiffHtml(s,u)}).join(`
|
|
55
|
-
`);return this.hoganUtils.render(zs,"wrapper",{colorScheme:Wd(this.config.colorScheme),content:r})}makeFileDiffHtml(a,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(a.blocks)&&a.blocks.length===0)return"";const s=this.hoganUtils.template(__,"file-diff"),u=this.hoganUtils.template(zs,"file-path"),f=this.hoganUtils.template(S_,"file"),p=this.hoganUtils.template(w_,ef(a));return s.render({file:a,fileHtmlId:Jd(a),diffs:r,filePath:u.render({fileDiffName:Eo(a)},{fileIcon:f,fileTag:p})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(zs,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Bn})}}generateFileHtml(a){const r=Qd(Vd(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{const u={left:this.makeHeaderHtml(s.header,a),right:this.makeHeaderHtml("")};return this.applyLineGroupping(s).forEach(([f,p,y])=>{if(p.length&&y.length&&!f.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a.isCombined,g,m);u.left+=b,u.right+=v});else if(f.length)f.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined),{left:v,right: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",f,p,y)}),u}).reduce((s,u)=>({left:s.left+u.left,right:s.right+u.right}),{left:"",right:""})}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const p=a.lines[f];(p.type!==ln.INSERT&&u.length||p.type===ln.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===ln.CONTEXT?r.push([[p],[],[]]):p.type===ln.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===ln.INSERT&&s.length>0?u.push(p):p.type===ln.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=Ib(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&f<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}makeHeaderHtml(a,r){return this.hoganUtils.render(zs,"block-header",{CSSLineClass:Bn,blockHeader:r!=null&&r.isTooBig?a:ql(a),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(a,r,s){const u={right:"",left:""},f=Math.max(r.length,s.length);for(let p=0;p<f;p++){const y=r[p],g=s[p],m=y!==void 0&&g!==void 0?Gb(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:uo(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:uo(g.type)})),{number:g.newNumber}):void 0,{left:S,right:x}=this.generateLineHtml(b,v);u.left+=S,u.right+=x}return u}generateLineHtml(a,r){return{left:this.generateSingleHtml(a),right:this.generateSingleHtml(r)}}generateSingleHtml(a){const r="d2h-code-side-linenumber",s="d2h-code-side-line";return this.hoganUtils.render(zs,"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?s:`${s} d2h-code-side-emptyplaceholder`,prefix:(a==null?void 0:a.prefix)===" "?" ":a==null?void 0:a.prefix,content:a==null?void 0:a.content,lineNumber:a==null?void 0:a.number})}}var Ou={},og;function x_(){return og||(og=1,(function(i){(function(a){var r=/\S/,s=/\"/g,u=/\n/g,f=/\r/g,p=/\\/g,y=/\u2028/,g=/\u2029/;a.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},a.scan=function(q,ee){var ce=q.length,Se=0,Z=1,pe=2,he=Se,M=null,J=null,fe="",we=[],De=!1,w=0,z=0,B="{{",re="}}";function me(){fe.length>0&&(we.push({tag:"_t",text:new String(fe)}),fe="")}function ve(){for(var xe=!0,Ge=z;Ge<we.length;Ge++)if(xe=a.tags[we[Ge].tag]<a.tags._v||we[Ge].tag=="_t"&&we[Ge].text.match(r)===null,!xe)return!1;return xe}function Q(xe,Ge){if(me(),xe&&ve())for(var $e=z,Ce;$e<we.length;$e++)we[$e].text&&((Ce=we[$e+1])&&Ce.tag==">"&&(Ce.indent=we[$e].text.toString()),we.splice($e,1));else Ge||we.push({tag:`
|
|
56
|
-
`});De=!1,z=we.length}function be(xe,Ge){var $e="="+re,Ce=xe.indexOf($e,Ge),St=b(xe.substring(xe.indexOf("=",Ge)+1,Ce)).split(" ");return B=St[0],re=St[St.length-1],Ce+$e.length-1}for(ee&&(ee=ee.split(" "),B=ee[0],re=ee[1]),w=0;w<ce;w++)he==Se?v(B,q,w)?(--w,me(),he=Z):q.charAt(w)==`
|
|
57
|
-
`?Q(De):fe+=q.charAt(w):he==Z?(w+=B.length-1,J=a.tags[q.charAt(w+1)],M=J?q.charAt(w+1):"_v",M=="="?(w=be(q,w),he=Se):(J&&w++,he=pe),De=w):v(re,q,w)?(we.push({tag:M,n:b(fe),otag:B,ctag:re,i:M=="/"?De-B.length:w+re.length}),fe="",w+=re.length-1,he=Se,M=="{"&&(re=="}}"?w++:m(we[we.length-1]))):fe+=q.charAt(w);return Q(De,!0),we};function m(T){T.n.substr(T.n.length-1)==="}"&&(T.n=T.n.substring(0,T.n.length-1))}function b(T){return T.trim?T.trim():T.replace(/^\s*|\s*$/g,"")}function v(T,q,ee){if(q.charAt(ee)!=T.charAt(0))return!1;for(var ce=1,Se=T.length;ce<Se;ce++)if(q.charAt(ee+ce)!=T.charAt(ce))return!1;return!0}var S={_t:!0,"\n":!0,$:!0,"/":!0};function x(T,q,ee,ce){var Se=[],Z=null,pe=null,he=null;for(pe=ee[ee.length-1];T.length>0;){if(he=T.shift(),pe&&pe.tag=="<"&&!(he.tag in S))throw new Error("Illegal content in < super tag.");if(a.tags[he.tag]<=a.tags.$||_(he,ce))ee.push(he),he.nodes=x(T,he.tag,ee,ce);else if(he.tag=="/"){if(ee.length===0)throw new Error("Closing tag without opener: /"+he.n);if(Z=ee.pop(),he.n!=Z.n&&!C(he.n,Z.n,ce))throw new Error("Nesting error: "+Z.n+" vs. "+he.n);return Z.end=he.i,Se}else he.tag==`
|
|
58
|
-
`&&(he.last=T.length==0||T[0].tag==`
|
|
59
|
-
`);Se.push(he)}if(ee.length>0)throw new Error("missing closing tag: "+ee.pop().n);return Se}function _(T,q){for(var ee=0,ce=q.length;ee<ce;ee++)if(q[ee].o==T.n)return T.tag="#",!0}function C(T,q,ee){for(var ce=0,Se=ee.length;ce<Se;ce++)if(ee[ce].c==T&&ee[ce].o==q)return!0}function A(T){var q=[];for(var ee in T)q.push('"'+D(ee)+'": function(c,p,t,i) {'+T[ee]+"}");return"{ "+q.join(",")+" }"}function O(T){var q=[];for(var ee in T.partials)q.push('"'+D(ee)+'":{name:"'+D(T.partials[ee].name)+'", '+O(T.partials[ee])+"}");return"partials: {"+q.join(",")+"}, subs: "+A(T.subs)}a.stringify=function(T,q,ee){return"{code: function (c,p,i) { "+a.wrapMain(T.code)+" },"+O(T)+"}"};var G=0;a.generate=function(T,q,ee){G=0;var ce={code:"",subs:{},partials:{}};return a.walk(T,ce),ee.asString?this.stringify(ce,q,ee):this.makeTemplate(ce,q,ee)},a.wrapMain=function(T){return'var t=this;t.b(i=i||"");'+T+"return t.fl();"},a.template=a.Template,a.makeTemplate=function(T,q,ee){var ce=this.makePartials(T);return ce.code=new Function("c","p","i",this.wrapMain(T.code)),new this.template(ce,q,this,ee)},a.makePartials=function(T){var q,ee={subs:{},partials:T.partials,name:T.name};for(q in ee.partials)ee.partials[q]=this.makePartials(ee.partials[q]);for(q in T.subs)ee.subs[q]=new Function("c","p","t","i",T.subs[q]);return ee};function D(T){return T.replace(p,"\\\\").replace(s,'\\"').replace(u,"\\n").replace(f,"\\r").replace(y,"\\u2028").replace(g,"\\u2029")}function V(T){return~T.indexOf(".")?"d":"f"}function j(T,q){var ee="<"+(q.prefix||""),ce=ee+T.n+G++;return q.partials[ce]={name:T.n,partials:{}},q.code+='t.b(t.rp("'+D(ce)+'",c,p,"'+(T.indent||"")+'"));',ce}a.codegen={"#":function(T,q){q.code+="if(t.s(t."+V(T.n)+'("'+D(T.n)+'",c,p,1),c,p,0,'+T.i+","+T.end+',"'+T.otag+" "+T.ctag+'")){t.rs(c,p,function(c,p,t){',a.walk(T.nodes,q),q.code+="});c.pop();}"},"^":function(T,q){q.code+="if(!t.s(t."+V(T.n)+'("'+D(T.n)+'",c,p,1),c,p,1,0,0,"")){',a.walk(T.nodes,q),q.code+="};"},">":j,"<":function(T,q){var ee={partials:{},code:"",subs:{},inPartial:!0};a.walk(T.nodes,ee);var ce=q.partials[j(T,q)];ce.subs=ee.subs,ce.partials=ee.partials},$:function(T,q){var ee={subs:{},code:"",partials:q.partials,prefix:T.n};a.walk(T.nodes,ee),q.subs[T.n]=ee.code,q.inPartial||(q.code+='t.sub("'+D(T.n)+'",c,p,i);')},"\n":function(T,q){q.code+=X('"\\n"'+(T.last?"":" + i"))},_v:function(T,q){q.code+="t.b(t.v(t."+V(T.n)+'("'+D(T.n)+'",c,p,0)));'},_t:function(T,q){q.code+=X('"'+D(T.text)+'"')},"{":le,"&":le};function le(T,q){q.code+="t.b(t.t(t."+V(T.n)+'("'+D(T.n)+'",c,p,0)));'}function X(T){return"t.b("+T+");"}a.walk=function(T,q){for(var ee,ce=0,Se=T.length;ce<Se;ce++)ee=a.codegen[T[ce].tag],ee&&ee(T[ce],q);return q},a.parse=function(T,q,ee){return ee=ee||{},x(T,"",[],ee.sectionTags||[])},a.cache={},a.cacheKey=function(T,q){return[T,!!q.asString,!!q.disableLambda,q.delimiters,!!q.modelGet].join("||")},a.compile=function(T,q){q=q||{};var ee=a.cacheKey(T,q),ce=this.cache[ee];if(ce){var Se=ce.partials;for(var Z in Se)delete Se[Z].instance;return ce}return ce=this.generate(this.parse(this.scan(T,q.delimiters),T,q),T,q),this.cache[ee]=ce}})(i)})(Ou)),Ou}var Cu={},cg;function T_(){return cg||(cg=1,(function(i){(function(a){a.Template=function(x,_,C,A){x=x||{},this.r=x.code||this.r,this.c=C,this.options=A||{},this.text=_||"",this.partials=x.partials||{},this.subs=x.subs||{},this.buf=""},a.Template.prototype={r:function(x,_,C){return""},v,t:b,render:function(_,C,A){return this.ri([_],C||{},A)},ri:function(x,_,C){return this.r(x,_,C)},ep:function(x,_){var C=this.partials[x],A=_[C.name];if(C.instance&&C.base==A)return C.instance;if(typeof A=="string"){if(!this.c)throw new Error("No compiler available.");A=this.c.compile(A,this.options)}if(!A)return null;if(this.partials[x].base=A,C.subs){_.stackText||(_.stackText={});for(key in C.subs)_.stackText[key]||(_.stackText[key]=this.activeSub!==void 0&&_.stackText[this.activeSub]?_.stackText[this.activeSub]:this.text);A=s(A,C.subs,C.partials,this.stackSubs,this.stackPartials,_.stackText)}return this.partials[x].instance=A,A},rp:function(x,_,C,A){var O=this.ep(x,C);return O?O.ri(_,C,A):""},rs:function(x,_,C){var A=x[x.length-1];if(!S(A)){C(x,_,this);return}for(var O=0;O<A.length;O++)x.push(A[O]),C(x,_,this),x.pop()},s:function(x,_,C,A,O,G,D){var V;return S(x)&&x.length===0?!1:(typeof x=="function"&&(x=this.ms(x,_,C,A,O,G,D)),V=!!x,!A&&V&&_&&_.push(typeof x=="object"?x:_[_.length-1]),V)},d:function(x,_,C,A){var O,G=x.split("."),D=this.f(G[0],_,C,A),V=this.options.modelGet,j=null;if(x==="."&&S(_[_.length-2]))D=_[_.length-1];else for(var le=1;le<G.length;le++)O=r(G[le],D,V),O!==void 0?(j=D,D=O):D="";return A&&!D?!1:(!A&&typeof D=="function"&&(_.push(j),D=this.mv(D,_,C),_.pop()),D)},f:function(x,_,C,A){for(var O=!1,G=null,D=!1,V=this.options.modelGet,j=_.length-1;j>=0;j--)if(G=_[j],O=r(x,G,V),O!==void 0){D=!0;break}return D?(!A&&typeof O=="function"&&(O=this.mv(O,_,C)),O):A?!1:""},ls:function(x,_,C,A,O,G){var D=this.options.delimiters;return this.options.delimiters=G,this.b(this.ct(b(x.call(_,O,C)),_,A)),this.options.delimiters=D,!1},ct:function(x,_,C){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(x,this.options).render(_,C)},b:function(x){this.buf+=x},fl:function(){var x=this.buf;return this.buf="",x},ms:function(x,_,C,A,O,G,D){var V,j=_[_.length-1],le=x.call(j);return typeof le=="function"?A?!0:(V=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(le,j,_,C,V.substring(O,G),D)):le},mv:function(x,_,C){var A=_[_.length-1],O=x.call(A);return typeof O=="function"?this.ct(b(O.call(A)),A,C):O},sub:function(x,_,C,A){var O=this.subs[x];O&&(this.activeSub=x,O(_,C,this,A),this.activeSub=!1)}};function r(x,_,C){var A;return _&&typeof _=="object"&&(_[x]!==void 0?A=_[x]:C&&_.get&&typeof _.get=="function"&&(A=_.get(x))),A}function s(x,_,C,A,O,G){function D(){}D.prototype=x;function V(){}V.prototype=x.subs;var j,le=new D;le.subs=new V,le.subsText={},le.buf="",A=A||{},le.stackSubs=A,le.subsText=G;for(j in _)A[j]||(A[j]=_[j]);for(j in A)le.subs[j]=A[j];O=O||{},le.stackPartials=O;for(j in C)O[j]||(O[j]=C[j]);for(j in O)le.partials[j]=O[j];return le}var u=/&/g,f=/</g,p=/>/g,y=/\'/g,g=/\"/g,m=/[&<>\"\']/;function b(x){return String(x??"")}function v(x){return x=b(x),m.test(x)?x.replace(u,"&").replace(f,"<").replace(p,">").replace(y,"'").replace(g,"""):x}var S=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}})(i)})(Cu)),Cu}var Mu,ug;function A_(){if(ug)return Mu;ug=1;var i=x_();return i.Template=T_().Template,i.template=i.Template,Mu=i,Mu}var Qt=A_();const rn={};rn["file-summary-line"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<li class="d2h-file-list-line">'),s.b(`
|
|
60
|
-
`+r),s.b(' <span class="d2h-file-name-wrapper">'),s.b(`
|
|
61
|
-
`+r),s.b(s.rp("<fileIcon0",i,a," ")),s.b(' <a href="#'),s.b(s.v(s.f("fileHtmlId",i,a,0))),s.b('" class="d2h-file-name">'),s.b(s.v(s.f("fileName",i,a,0))),s.b("</a>"),s.b(`
|
|
62
|
-
`+r),s.b(' <span class="d2h-file-stats">'),s.b(`
|
|
63
|
-
`+r),s.b(' <span class="d2h-lines-added">'),s.b(s.v(s.f("addedLines",i,a,0))),s.b("</span>"),s.b(`
|
|
64
|
-
`+r),s.b(' <span class="d2h-lines-deleted">'),s.b(s.v(s.f("deletedLines",i,a,0))),s.b("</span>"),s.b(`
|
|
65
|
-
`+r),s.b(" </span>"),s.b(`
|
|
66
|
-
`+r),s.b(" </span>"),s.b(`
|
|
67
|
-
`+r),s.b("</li>"),s.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});rn["file-summary-wrapper"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<div class="d2h-file-list-wrapper '),s.b(s.v(s.f("colorScheme",i,a,0))),s.b('">'),s.b(`
|
|
68
|
-
`+r),s.b(' <div class="d2h-file-list-header">'),s.b(`
|
|
69
|
-
`+r),s.b(' <span class="d2h-file-list-title">Files changed ('),s.b(s.v(s.f("filesNumber",i,a,0))),s.b(")</span>"),s.b(`
|
|
70
|
-
`+r),s.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),s.b(`
|
|
71
|
-
`+r),s.b(' <a class="d2h-file-switch d2h-show">show</a>'),s.b(`
|
|
72
|
-
`+r),s.b(" </div>"),s.b(`
|
|
73
|
-
`+r),s.b(' <ol class="d2h-file-list">'),s.b(`
|
|
74
|
-
`+r),s.b(" "),s.b(s.t(s.f("files",i,a,0))),s.b(`
|
|
75
|
-
`+r),s.b(" </ol>"),s.b(`
|
|
76
|
-
`+r),s.b("</div>"),s.fl()},partials:{},subs:{}});rn["generic-block-header"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
|
|
77
|
-
`+r),s.b(' <td class="'),s.b(s.v(s.f("lineClass",i,a,0))),s.b(" "),s.b(s.v(s.d("CSSLineClass.INFO",i,a,0))),s.b('"></td>'),s.b(`
|
|
78
|
-
`+r),s.b(' <td class="'),s.b(s.v(s.d("CSSLineClass.INFO",i,a,0))),s.b('">'),s.b(`
|
|
79
|
-
`+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",i,a,0))),s.b('">'),s.s(s.f("blockHeader",i,a,1),i,a,0,156,173,"{{ }}")&&(s.rs(i,a,function(u,f,p){p.b(p.t(p.f("blockHeader",u,f,0)))}),i.pop()),s.s(s.f("blockHeader",i,a,1),i,a,1,0,0,"")||s.b(" "),s.b("</div>"),s.b(`
|
|
80
|
-
`+r),s.b(" </td>"),s.b(`
|
|
81
|
-
`+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});rn["generic-empty-diff"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
|
|
82
|
-
`+r),s.b(' <td class="'),s.b(s.v(s.d("CSSLineClass.INFO",i,a,0))),s.b('">'),s.b(`
|
|
83
|
-
`+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",i,a,0))),s.b('">'),s.b(`
|
|
84
|
-
`+r),s.b(" File without changes"),s.b(`
|
|
85
|
-
`+r),s.b(" </div>"),s.b(`
|
|
86
|
-
`+r),s.b(" </td>"),s.b(`
|
|
87
|
-
`+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});rn["generic-file-path"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-file-name-wrapper">'),s.b(`
|
|
88
|
-
`+r),s.b(s.rp("<fileIcon0",i,a," ")),s.b(' <span class="d2h-file-name">'),s.b(s.v(s.f("fileDiffName",i,a,0))),s.b("</span>"),s.b(`
|
|
89
|
-
`+r),s.b(s.rp("<fileTag1",i,a," ")),s.b("</span>"),s.b(`
|
|
90
|
-
`+r),s.b('<label class="d2h-file-collapse">'),s.b(`
|
|
91
|
-
`+r),s.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),s.b(`
|
|
92
|
-
`+r),s.b(" Viewed"),s.b(`
|
|
93
|
-
`+r),s.b("</label>"),s.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});rn["generic-line"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b("<tr>"),s.b(`
|
|
94
|
-
`+r),s.b(' <td class="'),s.b(s.v(s.f("lineClass",i,a,0))),s.b(" "),s.b(s.v(s.f("type",i,a,0))),s.b('">'),s.b(`
|
|
95
|
-
`+r),s.b(" "),s.b(s.t(s.f("lineNumber",i,a,0))),s.b(`
|
|
96
|
-
`+r),s.b(" </td>"),s.b(`
|
|
97
|
-
`+r),s.b(' <td class="'),s.b(s.v(s.f("type",i,a,0))),s.b('">'),s.b(`
|
|
98
|
-
`+r),s.b(' <div class="'),s.b(s.v(s.f("contentClass",i,a,0))),s.b('">'),s.b(`
|
|
99
|
-
`+r),s.s(s.f("prefix",i,a,1),i,a,0,162,238,"{{ }}")&&(s.rs(i,a,function(u,f,p){p.b(' <span class="d2h-code-line-prefix">'),p.b(p.t(p.f("prefix",u,f,0))),p.b("</span>"),p.b(`
|
|
100
|
-
`+r)}),i.pop()),s.s(s.f("prefix",i,a,1),i,a,1,0,0,"")||(s.b(' <span class="d2h-code-line-prefix"> </span>'),s.b(`
|
|
101
|
-
`+r)),s.s(s.f("content",i,a,1),i,a,0,371,445,"{{ }}")&&(s.rs(i,a,function(u,f,p){p.b(' <span class="d2h-code-line-ctn">'),p.b(p.t(p.f("content",u,f,0))),p.b("</span>"),p.b(`
|
|
102
|
-
`+r)}),i.pop()),s.s(s.f("content",i,a,1),i,a,1,0,0,"")||(s.b(' <span class="d2h-code-line-ctn"><br></span>'),s.b(`
|
|
103
|
-
`+r)),s.b(" </div>"),s.b(`
|
|
104
|
-
`+r),s.b(" </td>"),s.b(`
|
|
105
|
-
`+r),s.b("</tr>"),s.fl()},partials:{},subs:{}});rn["generic-wrapper"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<div class="d2h-wrapper '),s.b(s.v(s.f("colorScheme",i,a,0))),s.b('">'),s.b(`
|
|
106
|
-
`+r),s.b(" "),s.b(s.t(s.f("content",i,a,0))),s.b(`
|
|
107
|
-
`+r),s.b("</div>"),s.fl()},partials:{},subs:{}});rn["icon-file-added"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),s.b(`
|
|
108
|
-
`+r),s.b(' width="14">'),s.b(`
|
|
109
|
-
`+r),s.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>'),s.b(`
|
|
110
|
-
`+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});rn["icon-file-changed"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),s.b(`
|
|
111
|
-
`+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
|
|
112
|
-
`+r),s.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>'),s.b(`
|
|
113
|
-
`+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});rn["icon-file-deleted"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),s.b(`
|
|
114
|
-
`+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
|
|
115
|
-
`+r),s.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>'),s.b(`
|
|
116
|
-
`+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});rn["icon-file-renamed"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),s.b(`
|
|
117
|
-
`+r),s.b(' viewBox="0 0 14 16" width="14">'),s.b(`
|
|
118
|
-
`+r),s.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>'),s.b(`
|
|
119
|
-
`+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});rn["icon-file"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),s.b(`
|
|
120
|
-
`+r),s.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>'),s.b(`
|
|
121
|
-
`+r),s.b("</svg>"),s.fl()},partials:{},subs:{}});rn["line-by-line-file-diff"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<div id="'),s.b(s.v(s.f("fileHtmlId",i,a,0))),s.b('" class="d2h-file-wrapper" data-lang="'),s.b(s.v(s.d("file.language",i,a,0))),s.b('">'),s.b(`
|
|
122
|
-
`+r),s.b(' <div class="d2h-file-header">'),s.b(`
|
|
123
|
-
`+r),s.b(" "),s.b(s.t(s.f("filePath",i,a,0))),s.b(`
|
|
124
|
-
`+r),s.b(" </div>"),s.b(`
|
|
125
|
-
`+r),s.b(' <div class="d2h-file-diff">'),s.b(`
|
|
126
|
-
`+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
|
|
127
|
-
`+r),s.b(' <table class="d2h-diff-table">'),s.b(`
|
|
128
|
-
`+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
|
|
129
|
-
`+r),s.b(" "),s.b(s.t(s.f("diffs",i,a,0))),s.b(`
|
|
130
|
-
`+r),s.b(" </tbody>"),s.b(`
|
|
131
|
-
`+r),s.b(" </table>"),s.b(`
|
|
132
|
-
`+r),s.b(" </div>"),s.b(`
|
|
133
|
-
`+r),s.b(" </div>"),s.b(`
|
|
134
|
-
`+r),s.b("</div>"),s.fl()},partials:{},subs:{}});rn["line-by-line-numbers"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<div class="line-num1">'),s.b(s.v(s.f("oldNumber",i,a,0))),s.b("</div>"),s.b(`
|
|
135
|
-
`+r),s.b('<div class="line-num2">'),s.b(s.v(s.f("newNumber",i,a,0))),s.b("</div>"),s.fl()},partials:{},subs:{}});rn["side-by-side-file-diff"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<div id="'),s.b(s.v(s.f("fileHtmlId",i,a,0))),s.b('" class="d2h-file-wrapper" data-lang="'),s.b(s.v(s.d("file.language",i,a,0))),s.b('">'),s.b(`
|
|
136
|
-
`+r),s.b(' <div class="d2h-file-header">'),s.b(`
|
|
137
|
-
`+r),s.b(" "),s.b(s.t(s.f("filePath",i,a,0))),s.b(`
|
|
138
|
-
`+r),s.b(" </div>"),s.b(`
|
|
139
|
-
`+r),s.b(' <div class="d2h-files-diff">'),s.b(`
|
|
140
|
-
`+r),s.b(' <div class="d2h-file-side-diff">'),s.b(`
|
|
141
|
-
`+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
|
|
142
|
-
`+r),s.b(' <table class="d2h-diff-table">'),s.b(`
|
|
143
|
-
`+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
|
|
144
|
-
`+r),s.b(" "),s.b(s.t(s.d("diffs.left",i,a,0))),s.b(`
|
|
145
|
-
`+r),s.b(" </tbody>"),s.b(`
|
|
146
|
-
`+r),s.b(" </table>"),s.b(`
|
|
147
|
-
`+r),s.b(" </div>"),s.b(`
|
|
148
|
-
`+r),s.b(" </div>"),s.b(`
|
|
149
|
-
`+r),s.b(' <div class="d2h-file-side-diff">'),s.b(`
|
|
150
|
-
`+r),s.b(' <div class="d2h-code-wrapper">'),s.b(`
|
|
151
|
-
`+r),s.b(' <table class="d2h-diff-table">'),s.b(`
|
|
152
|
-
`+r),s.b(' <tbody class="d2h-diff-tbody">'),s.b(`
|
|
153
|
-
`+r),s.b(" "),s.b(s.t(s.d("diffs.right",i,a,0))),s.b(`
|
|
154
|
-
`+r),s.b(" </tbody>"),s.b(`
|
|
155
|
-
`+r),s.b(" </table>"),s.b(`
|
|
156
|
-
`+r),s.b(" </div>"),s.b(`
|
|
157
|
-
`+r),s.b(" </div>"),s.b(`
|
|
158
|
-
`+r),s.b(" </div>"),s.b(`
|
|
159
|
-
`+r),s.b("</div>"),s.fl()},partials:{},subs:{}});rn["tag-file-added"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),s.fl()},partials:{},subs:{}});rn["tag-file-changed"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),s.fl()},partials:{},subs:{}});rn["tag-file-deleted"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),s.fl()},partials:{},subs:{}});rn["tag-file-renamed"]=new Qt.Template({code:function(i,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),s.fl()},partials:{},subs:{}});class R_{constructor({compiledTemplates:a={},rawTemplates:r={}}){const s=Object.entries(r).reduce((u,[f,p])=>{const y=Qt.compile(p,{asString:!1});return Object.assign(Object.assign({},u),{[f]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},rn),a),s)}static compile(a){return Qt.compile(a,{asString:!1})}render(a,r,s,u,f){const p=this.templateKey(a,r);try{return this.preCompiledTemplates[p].render(s,u,f)}catch{throw new Error(`Could not find template to render '${p}'`)}}template(a,r){return this.preCompiledTemplates[this.templateKey(a,r)]}templateKey(a,r){return`${a}-${r}`}}const k_=Object.assign(Object.assign(Object.assign({},$b),Yb),{outputFormat:ZE.LINE_BY_LINE,drawFileList:!0});function O_(i,a={}){const r=Object.assign(Object.assign({},k_),a),s=typeof i=="string"?a_(i,r):i,u=new R_(r),{colorScheme:f}=r,p={colorScheme:f},y=r.drawFileList?new b_(u,p).render(s):"",g=r.outputFormat==="side-by-side"?new N_(u,r).render(s):new E_(u,r).render(s);return y+g}var Du=Bb();function ja(i){const a=[],r=i.split(`
|
|
160
|
-
`);let s=null,u=null;const f=()=>{s&&u&&a.push({path:u,patch:s.join(`
|
|
161
|
-
`)}),s=null,u=null};for(const p of r)if(p.startsWith("diff --git ")){f(),s=[p];const y=p.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:p.slice(11)}else if(s&&(s.push(p),p.startsWith("--- a/")&&u==="/dev/null"&&(u=p.slice(6)),p==="+++ /dev/null")){const y=s.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return f(),a}function C_(i,a){const r=new Set(a);return ja(i).filter(s=>r.has(s.path)).map(s=>s.patch).join(`
|
|
162
|
-
`)}function M_(i){return D_(i)}function D_(i,a){const s=new Map;for(const{path:u,patch:f}of ja(i)){const p=new Map;let y=0,g=!1;const m=f.split(`
|
|
163
|
-
`);for(let b=0;b<m.length;b++){const v=m[b],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++))}s.set(u,p)}return s}function L_(i){const a=new Map;for(const[r,s]of M_(i))a.set(r,new Set(s.keys()));return a}function z_(i,a){const r=new Set(a.flatMap(s=>s.files));return ja(i).map(s=>s.path).filter(s=>!r.has(s))}function j_(i){return new Map(ja(i).map(a=>[a.path,a.patch.split(`
|
|
164
|
-
`).length]))}function U_(i){const a=i.split(`
|
|
165
|
-
`),r=a.findIndex(p=>p.startsWith("@@")),s=r<0?[]:a.slice(r).filter(p=>/^[+\- ]/.test(p)),u=(s.length>0?s:a).join(`
|
|
166
|
-
`);let f=2166136261;for(let p=0;p<u.length;p++)f^=u.charCodeAt(p),f=Math.imul(f,16777619);return(f>>>0).toString(16).padStart(8,"0")}const Fb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function dg(i,a){return a?`${Fb[a]} **${a}** — ${i}`:i}function Pb(i,a,r){const s=`${a}/${r}`.toLowerCase();for(const[u,f]of Object.entries(i.autoReviewRepos))if(u.toLowerCase()===s)return f;return i.autoReview}const fg=["inbox","awaiting","drafted"],Cd=["requests","settled","sent","archived"],Lu={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 hg(i){return i.status==="awaiting"||i.status==="running"?"awaiting":i.status==="sent"?"sent":"drafted"}const Gs=i=>!!i.pr.state&&i.pr.state!=="OPEN";function Md(i){return i.status==="awaiting"?i.pr.updatedAt??i.updatedAt:i.updatedAt}function Il(i){return[...i].sort((a,r)=>Md(r).localeCompare(Md(a)))}const Kb=["sent","reviewed","skipped"],tl=i=>i.own===!0;function Zb(i){return[...i.filter(a=>!tl(a)),...i.filter(tl)]}const B_=(i,a)=>tl(i[a])&&(a===0||!tl(i[a-1]));function $s(i){return Zb(Il(i.filter(a=>!Gs(a)&&!Kb.includes(a.status))))}function I_(i,a,r){return $s(i).filter(s=>s.key===a||!r.has(s.key))}function H_(i,a){if(!(a!=null&&a.enabled)||a.awaiting.length===0)return[];const r=new Set($s(i).map(u=>u.id)),s=new Set(a.awaiting.map(u=>u.id));return Il(i.filter(u=>s.has(u.id)&&!r.has(u.id)))}const q_=(i,a)=>a.some(r=>r.id===i.id);function G_(i,a){const r=i.filter(u=>!Gs(u)),s=Zb(Il(r.filter(u=>!Kb.includes(u.status))));return{inbox:s,awaiting:s.filter(u=>hg(u)==="awaiting"),drafted:s.filter(u=>hg(u)==="drafted"),requests:H_(i,a),settled:Il(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Il(r.filter(u=>u.status==="sent")),archived:Il(i.filter(Gs))}}function $_(i,a){return Cd.includes(i)&&a[i].length===0?"inbox":i}function Xb(i){var a,r;return i.reason==="own-review"?((a=i.review)==null?void 0:a.at)??i.at:i.reason==="own-reply"?((r=i.reply)==null?void 0:r.at)??i.at:i.at}const fo={"own-review":{tag:"reviewed on GitHub",meta:i=>`you reviewed this on GitHub on ${i}`,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:i=>`you replied on GitHub on ${i}`,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:i=>`nobody was asking for this any more on ${i}`,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 Y_(i){var a;return Gs(i)?((a=i.pr.state)==null?void 0:a.toLowerCase())??null:i.handoff?`handed to @${i.handoff.to}`:i.filed?fo[i.filed.reason].tag:i.status==="reviewed"||i.status==="skipped"?i.status:null}function F_(i,a){var r;return a!=null&&a.enabled?((r=a.awaiting.find(s=>s.id===i.id))==null?void 0:r.reply)??"unknown":"unknown"}const P_={none:{label:"you haven't replied",title:"GitHub still lists you as a requested reviewer and you have said nothing on the PR — no review, no comment. Whoever opened it is waiting on you."},you:{label:"waiting on them",title:"You had the last word in the conversation but never submitted a review, so GitHub still lists you as a requested reviewer. Nothing is blocked on you until they answer."},them:{label:"they replied last",title:"You commented and someone has answered since, so the conversation is back with you — and GitHub still lists you as a requested reviewer, because a comment is not a review."},unknown:{label:"unanswered on GitHub",title:"You have never submitted a review on GitHub for this PR, so it still lists you as a requested reviewer. Cerber could not read the conversation, so it can't say whether you replied there."}},K_=i=>P_[i];function Z_(i){const a=tf[i.event]??i.event,r=new Date(i.at).toLocaleDateString();return{label:i.auto?"auto-sent a review":"you replied with a review",title:`${i.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 X_(i){const a=fo[i.reason],r=new Date(Xb(i)).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 V_(i){const a=new Date(i.at).toLocaleDateString();return{label:`handed to @${i.to}`,title:i.withdrewYours?`You handed this to @${i.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 @${i.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 Q_=(i,a)=>i.handoff?V_(i.handoff):i.sent?Z_(i.sent):i.filed?X_(i.filed):K_(a);function W_(i){const a=i.length,r=a===1?"1 review request":`${a} review requests`,s=i.some(Gs)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${s} ${a===1?"it":"them"} here without submitting a review, so ${a===1?"it is":"they are"} under open requests, tagged with whose move it is.`}function Vb(i,a=Date.now()){const r=Math.max(0,Math.round((a-new Date(i).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 J_={approve:"approve",comment:"comment",request_changes:"changes"},tf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function e0(i){return i.status==="running"?{label:"reviewing…",tone:"running"}:i.status==="awaiting"?{label:"review now",tone:"awaiting"}:i.status==="failed"?{label:"run failed",tone:"failed"}:i.sent?{label:`sent · ${tf[i.sent.event]??i.sent.event}`,tone:"sent"}:i.verdict?{label:`${i.verdict.recommendation.replace("_"," ")} ${i.verdict.confidence}%`,tone:J_[i.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function t0(i){return i.status==="running"||i.status==="awaiting"||i.status==="failed"||!i.verdict&&!i.sent?"—":String(i.commentCount)}function zu(i){return i.trusted?"ran the code":i.withSource?"read the full source":"read the diff only"}function n0(i){if(i.commentCount===0)return"no comments drafted";const a=[`${i.commentCount} comment${i.commentCount===1?"":"s"} drafted`];return i.driftedCount&&a.push(`${i.driftedCount} off-diff`),i.gradedCount&&a.push(i.blockerCount?`${i.blockerCount} blocker${i.blockerCount===1?"":"s"}`:"no blockers"),a.join(", ")}function a0(i,a){const r=Object.values(a).filter(s=>s!==i).length;return r===0?"":` · ${r} repo${r===1?"":"s"} ${i?"on click":"auto"}`}function i0(i,a,r=Date.now()){var u,f;if(i.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Vb(i.updatedAt,r)} ago`,zu(i)]};if(i.status==="awaiting"&&tl(i))return{reasoning:"Your own PR. Cerber never drafts these on its own — ask for a self-review when you want one. Send posts it as a comment: GitHub takes no approve or change request from a PR's author.",meta:["no run yet","press r to review now"]};if(i.status==="awaiting")return a!=null&&a.enabled&&a.pollEnabled&&!Pb({autoReview:a.autoReview,autoReviewRepos:a.autoReviewRepos??{}},i.pr.owner,i.pr.repo)?{reasoning:`Found by the inbox poll. ${a.autoReview?`Auto-review is off for ${i.pr.owner}/${i.pr.repo}`:"Auto-review is off"}, so it waits for you to ask for a draft.`,meta:["no run yet","press r to review now"]}:{reasoning:"Found by the inbox poll, not drafted yet — auto-review was off when it arrived, or it is still queued behind another run.",meta:["no run yet","press r to review now"]};if(i.status==="failed")return{reasoning:i.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(i.sent)return{reasoning:`Sent to GitHub as ${tf[i.sent.event]??i.sent.event} on ${new Date(i.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue, though a re-review can draft against the current head.`+(i.handoff?` GitHub asks @${i.handoff.to} for it now.`:""),meta:[...i.handoff?[`you handed this to @${i.handoff.to}`]:[],i.sent.auto?"auto-sent by the daemon":"sent by you",zu(i)]};const s=[zu(i)];if(i.handoff?s.unshift(`you handed this to @${i.handoff.to} on ${new Date(i.handoff.at).toLocaleDateString()}`):i.filed?s.unshift(fo[i.filed.reason].meta(new Date(Xb(i.filed)).toLocaleDateString())):i.status==="reviewed"?s.unshift("you marked this reviewed"):i.status==="skipped"&&s.unshift("you skipped this"),i.costUsd!=null&&s.push(`≈$${i.costUsd.toFixed(2)} at API rates`),s.push(n0(i)),tl(i)?s.push("your PR — sends as a comment"):a!=null&&a.enabled&&i.status==="ready"&&((u=i.verdict)==null?void 0:u.recommendation)==="approve"&&s.push(i.verdict.confidence>=a.autoSendThreshold?`auto-send candidate at ${i.verdict.confidence}%`:`below the ${a.autoSendThreshold}% auto-send bar`),i.handoff){const p=i.commentCount>0||i.verdict!=null;return{reasoning:`GitHub asks @${i.handoff.to} for this review now${i.handoff.withdrewYours?" and no longer asks you":" — and still asks you, because your own request could not be taken off"}. `+(p?"The draft was never sent: it is still yours to read or send.":"Nothing was drafted here, and nothing was sent."),meta:s}}return i.filed?{reasoning:fo[i.filed.reason].reasoning,meta:s}:{reasoning:((f=i.verdict)==null?void 0:f.reasoning)??"This review has a draft but no verdict.",meta:s}}const l0="/favicon.svg",s0="/favicon-dot.svg",r0=i=>$s(i).some(a=>!(tl(a)&&a.status==="awaiting")),o0=i=>i?s0:l0;function c0(i){const a=o0(r0(i)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===a||r.setAttribute("href",a)}async function Ut(i,a){const r=await fetch(i,{...a,headers:a!=null&&a.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let s=`${(a==null?void 0:a.method)??"GET"} ${i}: ${r.status}`;try{const u=await r.json();u.error&&(s=u.error)}catch{}throw new Error(s)}return r.json()}const _o=async()=>{const i=await Ut("/api/reviews");return c0(i),i},Qb=()=>Ut("/api/daemon"),pg=i=>Ut(`/api/reviews/${encodeURIComponent(i)}`),u0=(i,a,r)=>Ut(`/api/reviews/${encodeURIComponent(i)}/viewed`,{method:"PUT",body:JSON.stringify({path:a,fingerprint:r})}),so=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}`,{method:"PATCH",body:JSON.stringify(a)}),d0=(i,a,r)=>Ut(`/api/reviews/${encodeURIComponent(i)}/comments/${a}`,{method:"PATCH",body:JSON.stringify(r)}),f0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/comments`,{method:"POST",body:JSON.stringify(a)}),h0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/comments/${a}`,{method:"DELETE"}),p0=i=>Ut("/api/reviews",{method:"POST",body:JSON.stringify({input:i})}),m0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/refresh`,{method:"POST"}),Wb=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/rerun`+(a===void 0?"":`?source=${a?"1":"0"}`),{method:"POST"}),Dd=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat`,{method:"POST",body:JSON.stringify(a)}),g0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat/steer`,{method:"POST",body:JSON.stringify({message:a})}),b0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat/pending`,{method:"DELETE"}),y0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),Jb=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/send-preview?event=${a}`),v0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/send`,{method:"POST",body:JSON.stringify({event:a,confirm:!0})}),E0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/raised`,{method:"POST"}),_0=i=>Ut(`/api/reviews/${encodeURIComponent(i)}/reviewers`),S0=(i,a)=>Ut(`/api/reviews/${encodeURIComponent(i)}/handoff`,{method:"POST",body:JSON.stringify({...a,confirm:!0})}),w0=i=>`/api/reviews/${encodeURIComponent(i)}/export`,N0=()=>Ut("/api/config"),ju=(i,a=!1)=>Ut("/api/config/trust",{method:"POST",body:JSON.stringify({rule:i,remove:a})}),x0=(i,a)=>Ut("/api/config/auto-review-repo",{method:"POST",body:JSON.stringify({repo:i,on:a})}),Uu=i=>Ut("/api/config/daemon",{method:"POST",body:JSON.stringify(i)}),ey="cerber.handoff.recent",ty=5,T0=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,ny=i=>T0.test(i);function A0(i){try{const a=JSON.parse(i??"");return Array.isArray(a)?a.filter(r=>typeof r=="string"&&ny(r)).slice(0,ty):[]}catch{return[]}}function ay(){try{return A0(localStorage.getItem(ey))}catch{return[]}}function R0(i,a){const r=i.filter(s=>s.toLowerCase()!==a.toLowerCase());return[a,...r].slice(0,ty)}function k0(i){const a=R0(ay(),i);try{localStorage.setItem(ey,JSON.stringify(a))}catch{}return a}const Ld=i=>i.trim().replace(/^@/,"");function O0(i,a){const r=new Set,s=[];for(const u of[...a,...i]){const f=u.toLowerCase();r.has(f)||(r.add(f),s.push({login:u,recent:a.some(p=>p.toLowerCase()===f)}))}return s}function C0(i,a){const r=Ld(a).toLowerCase();if(!r)return i;const s=i.filter(p=>p.login.toLowerCase().includes(r)),u=p=>p.login.toLowerCase()===r,f=p=>p.login.toLowerCase().startsWith(r);return[...s.filter(u),...s.filter(p=>!u(p)&&f(p)),...s.filter(p=>!f(p))]}function Bu(i){return i.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function zd(i){return i.nodeName.toLowerCase()}function mg(i){const a=[],r=(s,u)=>{for(let f=s.firstChild;f;f=f.nextSibling)f.nodeType===3&&f.nodeValue!==null?u+=f.nodeValue.length:f.nodeType===1&&(a.push({event:"start",offset:u,node:f}),u=r(f,u),zd(f).match(/br|hr|img|input/)||a.push({event:"stop",offset:u,node:f}));return u};return r(i,0),a}function M0(i,a,r){let s=0,u="";const f=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!i.length||!a.length?i.length?i:a:i[0].offset!==a[0].offset?i[0].offset<a[0].offset?i:a:a[0].event==="start"?i:a}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${zd(v)} ${Array().map.call(v.attributes,S=>`${S.nodeName}="${Bu(S.value).replace(/"/g,""")}"`).join(" ")}>`}function m(v){u+="</"+zd(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;i.length||a.length;){let v=y();if(u+=Bu(r.substring(s,v[0].offset)),s=v[0].offset,v===i){f.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();while(v===i&&v.length&&v[0].offset===s);f.reverse().forEach(g)}else v[0].event==="start"?f.push(v[0].node):f.pop(),b(v.splice(0,1)[0])}return u+Bu(r.substr(s))}const D0={"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 L0(i){var a;return(a=D0[i])!==null&&a!==void 0?a:"plaintext"}var Iu,gg;function z0(){if(gg)return Iu;gg=1;function i(R){return R instanceof Map?R.clear=R.delete=R.set=function(){throw new Error("map is read-only")}:R instanceof Set&&(R.add=R.clear=R.delete=function(){throw new Error("set is read-only")}),Object.freeze(R),Object.getOwnPropertyNames(R).forEach(ne=>{const ye=R[ne],ze=typeof ye;(ze==="object"||ze==="function")&&!Object.isFrozen(ye)&&i(ye)}),R}class a{constructor(ne){ne.data===void 0&&(ne.data={}),this.data=ne.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(R){return R.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(R,...ne){const ye=Object.create(null);for(const ze in R)ye[ze]=R[ze];return ne.forEach(function(ze){for(const Qe in ze)ye[Qe]=ze[Qe]}),ye}const u="</span>",f=R=>!!R.scope,p=(R,{prefix:ne})=>{if(R.startsWith("language:"))return R.replace("language:","language-");if(R.includes(".")){const ye=R.split(".");return[`${ne}${ye.shift()}`,...ye.map((ze,Qe)=>`${ze}${"_".repeat(Qe+1)}`)].join(" ")}return`${ne}${R}`};class y{constructor(ne,ye){this.buffer="",this.classPrefix=ye.classPrefix,ne.walk(this)}addText(ne){this.buffer+=r(ne)}openNode(ne){if(!f(ne))return;const ye=p(ne.scope,{prefix:this.classPrefix});this.span(ye)}closeNode(ne){f(ne)&&(this.buffer+=u)}value(){return this.buffer}span(ne){this.buffer+=`<span class="${ne}">`}}const g=(R={})=>{const ne={children:[]};return Object.assign(ne,R),ne};class m{constructor(){this.rootNode=g(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ne){this.top.children.push(ne)}openNode(ne){const ye=g({scope:ne});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(ne){return this.constructor._walk(ne,this.rootNode)}static _walk(ne,ye){return typeof ye=="string"?ne.addText(ye):ye.children&&(ne.openNode(ye),ye.children.forEach(ze=>this._walk(ne,ze)),ne.closeNode(ye)),ne}static _collapse(ne){typeof ne!="string"&&ne.children&&(ne.children.every(ye=>typeof ye=="string")?ne.children=[ne.children.join("")]:ne.children.forEach(ye=>{m._collapse(ye)}))}}class b extends m{constructor(ne){super(),this.options=ne}addText(ne){ne!==""&&this.add(ne)}startScope(ne){this.openNode(ne)}endScope(){this.closeNode()}__addSublanguage(ne,ye){const ze=ne.root;ye&&(ze.scope=`language:${ye}`),this.add(ze)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(R){return R?typeof R=="string"?R:R.source:null}function S(R){return C("(?=",R,")")}function x(R){return C("(?:",R,")*")}function _(R){return C("(?:",R,")?")}function C(...R){return R.map(ye=>v(ye)).join("")}function A(R){const ne=R[R.length-1];return typeof ne=="object"&&ne.constructor===Object?(R.splice(R.length-1,1),ne):{}}function O(...R){return"("+(A(R).capture?"":"?:")+R.map(ze=>v(ze)).join("|")+")"}function G(R){return new RegExp(R.toString()+"|").exec("").length-1}function D(R,ne){const ye=R&&R.exec(ne);return ye&&ye.index===0}const V=new RegExp(O(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function j(R,{joinWith:ne}){let ye=0;return R.map(ze=>{ye+=1;const Qe=ye;let et=v(ze),Ae="";for(;et.length>0;){const _e=V.exec(et);if(!_e){Ae+=et;break}Ae+=et.substring(0,_e.index),et=et.substring(_e.index+_e[0].length),_e[0][0]==="\\"&&_e[1]?Ae+="\\"+String(Number(_e[1])+Qe):(Ae+=_e[0],(_e[0]==="("||/^\(\?[<']/.test(_e[0]))&&ye++)}return Ae}).map(ze=>`(${ze})`).join(ne)}const le=/\b\B/,X="[a-zA-Z]\\w*",T="[a-zA-Z_]\\w*",q="\\b\\d+(\\.\\d+)?",ee="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ce="\\b(0b[01]+)",Se="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Z=(R={})=>{const ne=/^#![ ]*\//;return R.binary&&(R.begin=C(ne,/.*\b/,R.binary,/\b.*/)),s({scope:"meta",begin:ne,end:/$/,relevance:0,"on:begin":(ye,ze)=>{ye.index!==0&&ze.ignoreMatch()}},R)},pe={begin:"\\\\[\\s\\S]",relevance:0},he={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[pe]},M={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[pe]},J={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},fe=function(R,ne,ye={}){const ze=s({scope:"comment",begin:R,end:ne,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 Qe=O("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:C(/[ ]+/,"(",Qe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ze},we=fe("//","$"),De=fe("/\\*","\\*/"),w=fe("#","$"),z={scope:"number",begin:q,relevance:0},B={scope:"number",begin:ee,relevance:0},re={scope:"number",begin:ce,relevance:0},me={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[pe,{begin:/\[/,end:/\]/,relevance:0,contains:[pe]}]},ve={scope:"title",begin:X,relevance:0},Q={scope:"title",begin:T,relevance:0},be={begin:"\\.\\s*"+T,relevance:0};var Ge=Object.freeze({__proto__:null,APOS_STRING_MODE:he,BACKSLASH_ESCAPE:pe,BINARY_NUMBER_MODE:re,BINARY_NUMBER_RE:ce,COMMENT:fe,C_BLOCK_COMMENT_MODE:De,C_LINE_COMMENT_MODE:we,C_NUMBER_MODE:B,C_NUMBER_RE:ee,END_SAME_AS_BEGIN:function(R){return Object.assign(R,{"on:begin":(ne,ye)=>{ye.data._beginMatch=ne[1]},"on:end":(ne,ye)=>{ye.data._beginMatch!==ne[1]&&ye.ignoreMatch()}})},HASH_COMMENT_MODE:w,IDENT_RE:X,MATCH_NOTHING_RE:le,METHOD_GUARD:be,NUMBER_MODE:z,NUMBER_RE:q,PHRASAL_WORDS_MODE:J,QUOTE_STRING_MODE:M,REGEXP_MODE:me,RE_STARTERS_RE:Se,SHEBANG:Z,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:T,UNDERSCORE_TITLE_MODE:Q});function $e(R,ne){R.input[R.index-1]==="."&&ne.ignoreMatch()}function Ce(R,ne){R.className!==void 0&&(R.scope=R.className,delete R.className)}function St(R,ne){ne&&R.beginKeywords&&(R.begin="\\b("+R.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",R.__beforeBegin=$e,R.keywords=R.keywords||R.beginKeywords,delete R.beginKeywords,R.relevance===void 0&&(R.relevance=0))}function Ze(R,ne){Array.isArray(R.illegal)&&(R.illegal=O(...R.illegal))}function In(R,ne){if(R.match){if(R.begin||R.end)throw new Error("begin & end are not supported with match");R.begin=R.match,delete R.match}}function Je(R,ne){R.relevance===void 0&&(R.relevance=1)}const Ln=(R,ne)=>{if(!R.beforeMatch)return;if(R.starts)throw new Error("beforeMatch cannot be used with starts");const ye=Object.assign({},R);Object.keys(R).forEach(ze=>{delete R[ze]}),R.keywords=ye.keywords,R.begin=C(ye.beforeMatch,S(ye.begin)),R.starts={relevance:0,contains:[Object.assign(ye,{endsParent:!0})]},R.relevance=0,delete ye.beforeMatch},Hn=["of","and","for","in","not","or","if","then","parent","list","value"],It="keyword";function Rt(R,ne,ye=It){const ze=Object.create(null);return typeof R=="string"?Qe(ye,R.split(" ")):Array.isArray(R)?Qe(ye,R):Object.keys(R).forEach(function(et){Object.assign(ze,Rt(R[et],ne,et))}),ze;function Qe(et,Ae){ne&&(Ae=Ae.map(_e=>_e.toLowerCase())),Ae.forEach(function(_e){const Ue=_e.split("|");ze[Ue[0]]=[et,on(Ue[0],Ue[1])]})}}function on(R,ne){return ne?Number(ne):yn(R)?0:1}function yn(R){return Hn.includes(R.toLowerCase())}const Ft={},je=R=>{console.error(R)},Lt=(R,...ne)=>{console.log(`WARN: ${R}`,...ne)},vt=(R,ne)=>{Ft[`${R}/${ne}`]||(console.log(`Deprecated as of ${R}. ${ne}`),Ft[`${R}/${ne}`]=!0)},Ot=new Error;function Tn(R,ne,{key:ye}){let ze=0;const Qe=R[ye],et={},Ae={};for(let _e=1;_e<=ne.length;_e++)Ae[_e+ze]=Qe[_e],et[_e+ze]=!0,ze+=G(ne[_e-1]);R[ye]=Ae,R[ye]._emit=et,R[ye]._multi=!0}function zn(R){if(Array.isArray(R.begin)){if(R.skip||R.excludeBegin||R.returnBegin)throw je("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ot;if(typeof R.beginScope!="object"||R.beginScope===null)throw je("beginScope must be object"),Ot;Tn(R,R.begin,{key:"beginScope"}),R.begin=j(R.begin,{joinWith:""})}}function An(R){if(Array.isArray(R.end)){if(R.skip||R.excludeEnd||R.returnEnd)throw je("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ot;if(typeof R.endScope!="object"||R.endScope===null)throw je("endScope must be object"),Ot;Tn(R,R.end,{key:"endScope"}),R.end=j(R.end,{joinWith:""})}}function jn(R){R.scope&&typeof R.scope=="object"&&R.scope!==null&&(R.beginScope=R.scope,delete R.scope)}function Rn(R){jn(R),typeof R.beginScope=="string"&&(R.beginScope={_wrap:R.beginScope}),typeof R.endScope=="string"&&(R.endScope={_wrap:R.endScope}),zn(R),An(R)}function cn(R){function ne(Ae,_e){return new RegExp(v(Ae),"m"+(R.case_insensitive?"i":"")+(R.unicodeRegex?"u":"")+(_e?"g":""))}class ye{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(_e,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,_e]),this.matchAt+=G(_e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const _e=this.regexes.map(Ue=>Ue[1]);this.matcherRe=ne(j(_e,{joinWith:"|"}),!0),this.lastIndex=0}exec(_e){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(_e);if(!Ue)return null;const Ct=Ue.findIndex((qn,sa)=>sa>0&&qn!==void 0),mt=this.matchIndexes[Ct];return Ue.splice(0,Ct),Object.assign(Ue,mt)}}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 Ue=new ye;return this.rules.slice(_e).forEach(([Ct,mt])=>Ue.addRule(Ct,mt)),Ue.compile(),this.multiRegexes[_e]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(_e,Ue){this.rules.push([_e,Ue]),Ue.type==="begin"&&this.count++}exec(_e){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Ct=Ue.exec(_e);if(this.resumingScanAtSamePosition()&&!(Ct&&Ct.index===this.lastIndex)){const mt=this.getMatcher(0);mt.lastIndex=this.lastIndex+1,Ct=mt.exec(_e)}return Ct&&(this.regexIndex+=Ct.position+1,this.regexIndex===this.count&&this.considerAll()),Ct}}function Qe(Ae){const _e=new ze;return Ae.contains.forEach(Ue=>_e.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ae.terminatorEnd&&_e.addRule(Ae.terminatorEnd,{type:"end"}),Ae.illegal&&_e.addRule(Ae.illegal,{type:"illegal"}),_e}function et(Ae,_e){const Ue=Ae;if(Ae.isCompiled)return Ue;[Ce,In,Rn,Ln].forEach(mt=>mt(Ae,_e)),R.compilerExtensions.forEach(mt=>mt(Ae,_e)),Ae.__beforeBegin=null,[St,Ze,Je].forEach(mt=>mt(Ae,_e)),Ae.isCompiled=!0;let Ct=null;return typeof Ae.keywords=="object"&&Ae.keywords.$pattern&&(Ae.keywords=Object.assign({},Ae.keywords),Ct=Ae.keywords.$pattern,delete Ae.keywords.$pattern),Ct=Ct||/\w+/,Ae.keywords&&(Ae.keywords=Rt(Ae.keywords,R.case_insensitive)),Ue.keywordPatternRe=ne(Ct,!0),_e&&(Ae.begin||(Ae.begin=/\B|\b/),Ue.beginRe=ne(Ue.begin),!Ae.end&&!Ae.endsWithParent&&(Ae.end=/\B|\b/),Ae.end&&(Ue.endRe=ne(Ue.end)),Ue.terminatorEnd=v(Ue.end)||"",Ae.endsWithParent&&_e.terminatorEnd&&(Ue.terminatorEnd+=(Ae.end?"|":"")+_e.terminatorEnd)),Ae.illegal&&(Ue.illegalRe=ne(Ae.illegal)),Ae.contains||(Ae.contains=[]),Ae.contains=[].concat(...Ae.contains.map(function(mt){return kn(mt==="self"?Ae:mt)})),Ae.contains.forEach(function(mt){et(mt,Ue)}),Ae.starts&&et(Ae.starts,_e),Ue.matcher=Qe(Ue),Ue}if(R.compilerExtensions||(R.compilerExtensions=[]),R.contains&&R.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return R.classNameAliases=s(R.classNameAliases||{}),et(R)}function Ht(R){return R?R.endsWithParent||Ht(R.starts):!1}function kn(R){return R.variants&&!R.cachedVariants&&(R.cachedVariants=R.variants.map(function(ne){return s(R,{variants:null},ne)})),R.cachedVariants?R.cachedVariants:Ht(R)?s(R,{starts:R.starts?s(R.starts):null}):Object.isFrozen(R)?s(R):R}var qt="11.12.0";class la extends Error{constructor(ne,ye){super(ne),this.name="HTMLInjectionError",this.html=ye}}const un=r,hn=s,qe=Symbol("nomatch"),pn=7,Pt=function(R){const ne=Object.create(null),ye=Object.create(null),ze=[];let Qe=!0;const et="Could not find the language '{}', did you forget to load/include a language module?",Ae={disableAutodetect:!0,name:"Plain text",contains:[]};let _e={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Ue(Y){return _e.noHighlightRe.test(Y)}function Ct(Y){let ge=Y.className+" ";ge+=Y.parentNode?Y.parentNode.className:"";const Ie=_e.languageDetectRe.exec(ge);if(Ie){const Fe=Wt(Ie[1]);return Fe||(Lt(et.replace("{}",Ie[1])),Lt("Falling back to no-highlight mode for this block.",Y)),Fe?Ie[1]:"no-highlight"}return ge.split(/\s+/).find(Fe=>Ue(Fe)||Wt(Fe))}function mt(Y,ge,Ie){let Fe="",dt="";typeof ge=="object"?(Fe=Y,Ie=ge.ignoreIllegals,dt=ge.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`),dt=Y,Fe=ge),Ie===void 0&&(Ie=!0);const gt={code:Fe,language:dt};ue("before:highlight",gt);const Bt=gt.result?gt.result:qn(gt.language,gt.code,Ie);return Bt.code=gt.code,ue("after:highlight",Bt),Bt}function qn(Y,ge,Ie,Fe){const dt=Object.create(null);function gt(de,Ee){return de.keywords[Ee]}function Bt(){if(!te.keywords){U.addText(ae);return}let de=0;te.keywordPatternRe.lastIndex=0;let Ee=te.keywordPatternRe.exec(ae),Me="";for(;Ee;){Me+=ae.substring(de,Ee.index);const Ve=Jt.case_insensitive?Ee[0].toLowerCase():Ee[0],We=gt(te,Ve);if(We){const[oa,Yl]=We;if(U.addText(Me),Me="",dt[Ve]=(dt[Ve]||0)+1,dt[Ve]<=pn&&(Te+=Yl),oa.startsWith("_"))Me+=Ee[0];else{const Ks=Jt.classNameAliases[oa]||oa;zt(Ee[0],Ks)}}else Me+=Ee[0];de=te.keywordPatternRe.lastIndex,Ee=te.keywordPatternRe.exec(ae)}Me+=ae.substring(de),U.addText(Me)}function Zt(){if(ae==="")return;let de=null;if(typeof te.subLanguage=="string"){if(!ne[te.subLanguage]){U.addText(ae);return}de=qn(te.subLanguage,ae,!0,N[te.subLanguage]),N[te.subLanguage]=de._top}else de=Na(ae,te.subLanguage.length?te.subLanguage:null);te.relevance>0&&(Te+=de.relevance),U.__addSublanguage(de._emitter,de.language)}function ft(){te.subLanguage!=null?Zt():Bt(),ae=""}function zt(de,Ee){de!==""&&(U.startScope(Ee),U.addText(de),U.endScope())}function il(de,Ee){let Me=1;const Ve=Ee.length-1;for(;Me<=Ve;){if(!de._emit[Me]){Me++;continue}const We=Jt.classNameAliases[de[Me]]||de[Me],oa=Ee[Me];We?zt(oa,We):(ae=oa,Bt(),ae=""),Me++}}function li(de,Ee){return de.scope&&typeof de.scope=="string"&&U.openNode(Jt.classNameAliases[de.scope]||de.scope),de.beginScope&&(de.beginScope._wrap?(zt(ae,Jt.classNameAliases[de.beginScope._wrap]||de.beginScope._wrap),ae=""):de.beginScope._multi&&(il(de.beginScope,Ee),ae="")),te=Object.create(de,{parent:{value:te}}),te}function si(de,Ee,Me){let Ve=D(de.endRe,Me);if(Ve){if(de["on:end"]){const We=new a(de);de["on:end"](Ee,We),We.isMatchIgnored&&(Ve=!1)}if(Ve){for(;de.endsParent&&de.parent;)de=de.parent;return de}}if(de.endsWithParent)return si(de.parent,Ee,Me)}function Ba(de){return te.matcher.regexIndex===0?(ae+=de[0],1):(nt=!0,0)}function ll(de){const Ee=de[0],Me=de.rule,Ve=new a(Me),We=[Me.__beforeBegin,Me["on:begin"]];for(const oa of We)if(oa&&(oa(de,Ve),Ve.isMatchIgnored))return Ba(Ee);return Me.skip?ae+=Ee:(Me.excludeBegin&&(ae+=Ee),ft(),!Me.returnBegin&&!Me.excludeBegin&&(ae=Ee)),li(Me,de),Me.returnBegin?0:Ee.length}function On(de){const Ee=de[0],Me=ge.substring(de.index),Ve=si(te,de,Me);if(!Ve)return qe;const We=te;te.endScope&&te.endScope._wrap?(ft(),zt(Ee,te.endScope._wrap)):te.endScope&&te.endScope._multi?(ft(),il(te.endScope,de)):We.skip?ae+=Ee:(We.returnEnd||We.excludeEnd||(ae+=Ee),ft(),We.excludeEnd&&(ae=Ee));do te.scope&&U.closeNode(),!te.skip&&!te.subLanguage&&(Te+=te.relevance),te=te.parent;while(te!==Ve.parent);return Ve.starts&&li(Ve.starts,de),We.returnEnd?0:Ee.length}function ri(){const de=[];for(let Ee=te;Ee!==Jt;Ee=Ee.parent)Ee.scope&&de.unshift(Ee.scope);de.forEach(Ee=>U.openNode(Ee))}let Ia={};function oi(de,Ee){const Me=Ee&&Ee[0];if(ae+=de,Me==null)return ft(),0;if(Ia.type==="begin"&&Ee.type==="end"&&Ia.index===Ee.index&&Me===""){if(ae+=ge.slice(Ee.index,Ee.index+1),!Qe){const Ve=new Error(`0 width match regex (${Y})`);throw Ve.languageName=Y,Ve.badRule=Ia.rule,Ve}return 1}if(Ia=Ee,Ee.type==="begin")return ll(Ee);if(Ee.type==="illegal"&&!Ie){const Ve=new Error('Illegal lexeme "'+Me+'" for mode "'+(te.scope||"<unnamed>")+'"');throw Ve.mode=te,Ve}else if(Ee.type==="end"){const Ve=On(Ee);if(Ve!==qe)return Ve}if(Ee.type==="illegal"&&Me==="")return Ee.index===ge.length||(ae+=`
|
|
168
|
-
`),1;if(He>1e5&&He>Ee.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ae+=Me,Me.length}const Jt=Wt(Y);if(!Jt)throw je(et.replace("{}",Y)),new Error('Unknown language: "'+Y+'"');const Ha=cn(Jt);let Aa="",te=Fe||Ha;const N={},U=new _e.__emitter(_e);ri();let ae="",Te=0,ke=0,He=0,nt=!1;try{if(Jt.__emitTokens)Jt.__emitTokens(ge,U);else{for(te.matcher.considerAll();;){He++,nt?nt=!1:te.matcher.considerAll(),te.matcher.lastIndex=ke;const de=te.matcher.exec(ge);if(!de)break;const Ee=ge.substring(ke,de.index),Me=oi(Ee,de);ke=de.index+Me}oi(ge.substring(ke))}return U.finalize(),Aa=U.toHTML(),{language:Y,value:Aa,relevance:Te,illegal:!1,_emitter:U,_top:te}}catch(de){if(de.message&&de.message.includes("Illegal"))return{language:Y,value:un(ge),illegal:!0,relevance:0,_illegalBy:{message:de.message,index:ke,context:ge.slice(ke-100,ke+100),mode:de.mode,resultSoFar:Aa},_emitter:U};if(Qe)return{language:Y,value:un(ge),illegal:!1,relevance:0,errorRaised:de,_emitter:U,_top:te};throw de}}function sa(Y){const ge={value:un(Y),illegal:!1,relevance:0,_top:Ae,_emitter:new _e.__emitter(_e)};return ge._emitter.addText(Y),ge}function Na(Y,ge){ge=ge||_e.languages||Object.keys(ne);const Ie=sa(Y),Fe=ge.filter(Wt).filter(Xn).map(ft=>qn(ft,Y,!1));Fe.unshift(Ie);const dt=Fe.sort((ft,zt)=>{if(ft.relevance!==zt.relevance)return zt.relevance-ft.relevance;if(ft.language&&zt.language){if(Wt(ft.language).supersetOf===zt.language)return 1;if(Wt(zt.language).supersetOf===ft.language)return-1}return 0}),[gt,Bt]=dt,Zt=gt;return Zt.secondBest=Bt,Zt}function dn(Y,ge,Ie){const Fe=ge&&ye[ge]||Ie;Y.classList.add("hljs"),Y.classList.add(`language-${Fe}`)}function wt(Y){let ge=null;const Ie=Ct(Y);if(Ue(Ie))return;if(ue("before:highlightElement",{el:Y,language:Ie}),Y.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Y);return}if(Y.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(Y)),_e.throwUnescapedHTML))throw new la("One of your code blocks includes unescaped HTML.",Y.innerHTML);ge=Y;const Fe=ge.textContent,dt=Ie?mt(Fe,{language:Ie,ignoreIllegals:!0}):Na(Fe);Y.innerHTML=dt.value,Y.dataset.highlighted="yes",dn(Y,Ie,dt.language),Y.result={language:dt.language,re:dt.relevance,relevance:dt.relevance},dt.secondBest&&(Y.secondBest={language:dt.secondBest.language,relevance:dt.secondBest.relevance}),ue("after:highlightElement",{el:Y,result:dt,text:Fe})}function Kt(Y){_e=hn(_e,Y)}const tt=()=>{ba(),vt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function vn(){ba(),vt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ua=!1;function ba(){function Y(){ba()}if(document.readyState==="loading"){Ua||window.addEventListener("DOMContentLoaded",Y,!1),Ua=!0;return}document.querySelectorAll(_e.cssSelector).forEach(wt)}function xa(Y,ge){let Ie=null;try{Ie=ge(R)}catch(Fe){if(je("Language definition for '{}' could not be registered.".replace("{}",Y)),Qe)je(Fe);else throw Fe;Ie=Ae}Ie.name||(Ie.name=Y),ne[Y]=Ie,Ie.rawDefinition=ge.bind(null,R),Ie.aliases&&Gn(Ie.aliases,{languageName:Y})}function ra(Y){delete ne[Y];for(const ge of Object.keys(ye))ye[ge]===Y&&delete ye[ge]}function Ta(){return Object.keys(ne)}function Wt(Y){return Y=(Y||"").toLowerCase(),ne[Y]||ne[ye[Y]]}function Gn(Y,{languageName:ge}){typeof Y=="string"&&(Y=[Y]),Y.forEach(Ie=>{ye[Ie.toLowerCase()]=ge})}function Xn(Y){const ge=Wt(Y);return ge&&!ge.disableAutodetect}function Vn(Y){Y["before:highlightBlock"]&&!Y["before:highlightElement"]&&(Y["before:highlightElement"]=ge=>{Y["before:highlightBlock"](Object.assign({block:ge.el},ge))}),Y["after:highlightBlock"]&&!Y["after:highlightElement"]&&(Y["after:highlightElement"]=ge=>{Y["after:highlightBlock"](Object.assign({block:ge.el},ge))})}function ut(Y){Vn(Y),ze.push(Y)}function $(Y){const ge=ze.indexOf(Y);ge!==-1&&ze.splice(ge,1)}function ue(Y,ge){const Ie=Y;ze.forEach(function(Fe){Fe[Ie]&&Fe[Ie](ge)})}function Ne(Y){return vt("10.7.0","highlightBlock will be removed entirely in v12.0"),vt("10.7.0","Please use highlightElement now."),wt(Y)}Object.assign(R,{highlight:mt,highlightAuto:Na,highlightAll:ba,highlightElement:wt,highlightBlock:Ne,configure:Kt,initHighlighting:tt,initHighlightingOnLoad:vn,registerLanguage:xa,unregisterLanguage:ra,listLanguages:Ta,getLanguage:Wt,registerAliases:Gn,autoDetection:Xn,inherit:hn,addPlugin:ut,removePlugin:$}),R.debugMode=function(){Qe=!1},R.safeMode=function(){Qe=!0},R.versionString=qt,R.regex={concat:C,lookahead:S,either:O,optional:_,anyNumberOfTimes:x};for(const Y in Ge)typeof Ge[Y]=="object"&&i(Ge[Y]);return Object.assign(R,Ge),R},Gt=Pt({});return Gt.newInstance=()=>Pt({}),Iu=Gt,Gt.HighlightJS=Gt,Gt.default=Gt,Iu}var Hu,bg;function j0(){if(bg)return Hu;bg=1;function i(a){const r=a.regex,s=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,f={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},p={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},y=a.inherit(p,{begin:/\(/,end:/\)/}),g=a.inherit(a.APOS_STRING_MODE,{className:"string"}),m=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[f]},{begin:/'/,end:/'/,contains:[f]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[p,m,g,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[p,y,m,g]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},f,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(s,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Hu=i,Hu}var qu,yg;function U0(){if(yg)return qu;yg=1;function i(a){const r=a.regex,s={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const f={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},p=a.inherit(a.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),y={begin:/<<-?\s*(?=\w+)/,starts:{contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,s,f]};f.contains.push(g);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},S={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,s]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=a.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),C={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},A=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],O=["true","false"],G={match:/(\/[a-z._-]+)+/},D=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],V=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],j=["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"],le=["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:A,literal:O,built_in:[...D,...V,"set","shopt",...j,...le]},contains:[_,a.SHEBANG(),C,S,p,y,G,g,m,b,v,s]}}return qu=i,qu}var Gu,vg;function B0(){if(vg)return Gu;vg=1;function i(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(f)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g=r.concat(/\batomic_/,r.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),m={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:g}]},v={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},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},x={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},_={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(v,{className:"string"}),s,a.C_BLOCK_COMMENT_MODE]},C=[x,_],A={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},O=r.optional(f)+a.IDENT_RE+"\\s*\\(",G=12,j={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"},le=[...C,m,s,a.C_BLOCK_COMMENT_MODE,S,v],X={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:j,contains:le.concat([{begin:/\(/,end:/\)/,keywords:j,contains:le.concat(["self"]),relevance:0}]),relevance:0},T={begin:"("+y+"[\\*&\\s]+){1,"+G+"}"+O,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:j,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:j,relevance:0},{begin:O,returnBegin:!0,contains:[a.inherit(A,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:j,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,v,S,m,{begin:/\(/,end:/\)/,keywords:j,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,v,S,m]}]},m,s,a.C_BLOCK_COMMENT_MODE,...C]};return{name:"C",aliases:["h"],keywords:j,disableAutodetect:!0,illegal:"</",contains:[].concat(X,T,le,[...C,{begin:a.IDENT_RE+"::",keywords:j},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:_,strings:v,keywords:j}}}return Gu=i,Gu}var $u,Eg;function I0(){if(Eg)return $u;Eg=1;function i(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(f)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},v={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},S={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},b,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},x={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(b,{className:"string"}),s,a.C_BLOCK_COMMENT_MODE]},_=[S,x],C={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},A=r.optional(f)+a.IDENT_RE+"\\s*\\(",O=12,G=["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"],D=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],V=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],j=["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"],T={type:D,keyword:G,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:V},q={className:"function.dispatch",relevance:0,keywords:{_hint:j},begin:r.concat(/\b/,`(?!${G.join("|")})`,a.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},ee=[q,..._,g,s,a.C_BLOCK_COMMENT_MODE,v,b],ce={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:T,contains:ee.concat([{begin:/\(/,end:/\)/,keywords:T,contains:ee.concat(["self"]),relevance:0}]),relevance:0},Se={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+O+"}"+A,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:T,relevance:0},{begin:A,returnBegin:!0,contains:[C],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,s,a.C_BLOCK_COMMENT_MODE,..._]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:T,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(ce,Se,q,ee,[..._,{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:T,contains:["self",g]},{begin:a.IDENT_RE+"::",keywords:T},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return $u=i,$u}var Yu,_g;function H0(){if(_g)return Yu;_g=1;function i(a){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],s=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],f=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],p=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],y={keyword:f.concat(p),built_in:r,literal:u},g=a.inherit(a.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",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},x={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},_={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},C=a.inherit(_,{illegal:/\n/}),A={className:"subst",begin:/\{/,end:/\}/,keywords:y},O=a.inherit(A,{illegal:/\n/}),G={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},a.BACKSLASH_ESCAPE,O]},D={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},A]},V=a.inherit(D,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},O]});A.contains=[D,G,_,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,S,a.C_BLOCK_COMMENT_MODE],O.contains=[V,G,C,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,S,a.inherit(a.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const j={variants:[x,D,G,_,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},le={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},X=a.IDENT_RE+"(<"+a.IDENT_RE+"(\\s*,\\s*"+a.IDENT_RE+")*>)?(\\[\\])?",T={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"}},j,S,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,le,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,le,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:"("+X+"\\s+)+"+a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:s.join(" "),relevance:0},{begin:a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[a.TITLE_MODE,le],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[j,S,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},T]}}return Yu=i,Yu}var Fu,Sg;function q0(){if(Sg)return Fu;Sg=1;const i=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=m.regex,v=i(m),S={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",_=/@-?\w[\w]*(-\w+)*/,C="[a-zA-Z-][a-zA-Z0-9_-]*",A=[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:"\\."+C,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+f.join("|")+")"},{begin:":(:)?("+p.join("|")+")"}]},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[v.BLOCK_COMMENT,v.HEXCOLOR,v.IMPORTANT,v.CSS_NUMBER_MODE,v.UNICODE_RANGE,...A,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...A,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:_},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...A,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b"}]}}return Fu=g,Fu}var Pu,wg;function G0(){if(wg)return Pu;wg=1;function i(a){const r=a.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},f={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},p={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},y={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},v={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},S=a.inherit(b,{contains:[]}),x=a.inherit(v,{contains:[]});b.contains.push(x),v.contains.push(S);let _=[s,m];return[b,v,S,x].forEach(G=>{G.contains=G.contains.concat(_)}),_=_.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:_},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:_}]}]},s,p,u,b,v,{className:"quote",begin:"^>\\s+",contains:_,end:"$"},f,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Pu=i,Pu}var Ku,Ng;function $0(){if(Ng)return Ku;Ng=1;function i(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 Ku=i,Ku}var Zu,xg;function Y0(){if(xg)return Zu;xg=1;function i(a){const r=a.regex,s="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),f=r.concat(u,/(::\w+)*/),y={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},b=[a.COMMENT("#","$",{contains:[g]}),a.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),a.COMMENT("^__END__",a.MATCH_NOTHING_RE)],v={className:"subst",begin:/#\{/,end:/\}/,keywords:y},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]})]}]},x="[1-9](_?[0-9])*|0",_="[0-9](_?[0-9])*",C={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${_}))?([eE][+-]?(${_})|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"}]},A={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},X=[S,{variants:[{match:[/class\s+/,f,/\s+<\s+/,f]},{match:[/\b(class|module)\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,f],scope:{2:"title.class"},keywords:y},{relevance:0,match:[f,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:u,scope:"title.class"},{match:[/def/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[A]},{begin:"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[S,{begin:s}],relevance:0},C,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:y},{begin:"("+a.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[a.BACKSLASH_ESCAPE,v],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,b),relevance:0}].concat(m,b);v.contains=X,A.contains=X;const ce=[{begin:/^\s*=>/,starts:{end:"$",contains:X}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:X}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(ce).concat(b).concat(X)}}return Zu=i,Zu}var Xu,Tg;function F0(){if(Tg)return Xu;Tg=1;function i(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 Xu=i,Xu}var Vu,Ag;function P0(){if(Ag)return Vu;Ag=1;function i(a){const r=a.regex,s=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[a.HASH_COMMENT_MODE,a.QUOTE_STRING_MODE,a.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(s,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Vu=i,Vu}var Qu,Rg;function K0(){if(Rg)return Qu;Rg=1;function i(a){const r=a.regex,s={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},u=a.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const f={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},p={className:"literal",begin:/\bon|off|true|false|yes|no\b/},y={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[u,p,f,y,s,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,S=r.either(m,b,v),x=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:x,className:"attr",starts:{end:/$/,contains:[u,g,p,f,y,s]}}]}}return Qu=i,Qu}var Wu,kg;function Z0(){if(kg)return Wu;kg=1;var i="[0-9](_*[0-9])*",a=`\\.(${i})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${i})((${a})|\\.)?|(${a}))[eE][+-]?(${i})[fFdD]?\\b`},{begin:`\\b(${i})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${i})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${i})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(p,y,g){return g===-1?"":p.replace(y,m=>u(p,y,g-1))}function f(p){const y=p.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=g+"<@@@>"+m,S="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",x=u("(?:\\s*<\\s*"+S+"(?:\\s*,\\s*"+S+")*\\s*>)?",/<@@@>/g,2),G={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"]},D={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},V={className:"params",begin:/\(/,end:/\)/,keywords:G,relevance:0,contains:[p.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:G,illegal:/<\/|#/,contains:[p.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[p.BACKSLASH_ESCAPE]},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,g],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[g,y.concat(x,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[V,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(x,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:G,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:G,relevance:0,contains:[D,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,s,p.C_BLOCK_COMMENT_MODE]},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},s,D]}}return Wu=f,Wu}var Ju,Og;function X0(){if(Og)return Ju;Og=1;const i="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],f=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(f,s,u);function g(m){const b=m.regex,v=(Q,{after:be})=>{const xe="</"+Q[0].slice(1);return Q.input.indexOf(xe,be)!==-1},S=i,x={begin:"<>",end:"</>"},_=/<[A-Za-z0-9\\._:-]+\s*\/>/,C={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,be)=>{const xe=Q[0].length+Q.index,Ge=Q.input[xe];if(Ge==="<"||Ge===","){be.ignoreMatch();return}Ge===">"&&(v(Q,{after:xe})||be.ignoreMatch());let $e;const Ce=Q.input.substring(xe);if($e=Ce.match(/^\s*=/)){be.ignoreMatch();return}if(($e=Ce.match(/^\s+extends\s+/))&&$e.index===0){be.ignoreMatch();return}}},A={$pattern:i,keyword:a,literal:r,built_in:y,"variable.language":p},O="[0-9](_?[0-9])*",G=`\\.(${O})`,D="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",V={className:"number",variants:[{begin:`(\\b(${D})((${G})|\\.)?|(${G}))[eE][+-]?(${O})\\b`},{begin:`\\b(${D})\\b((${G})\\b|\\.)?|(${G})\\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},j={className:"subst",begin:"\\$\\{",end:"\\}",keywords:A,contains:[]},le={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,j],subLanguage:"xml"}},X={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,j],subLanguage:"css"}},T={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,j],subLanguage:"graphql"}},q={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,j]},ce={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]},Se=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,le,X,T,q,{match:/\$\d+/},V];j.contains=Se.concat({begin:/\{/,end:/\}/,keywords:A,contains:["self"].concat(Se)});const Z=[].concat(ce,j.contains),pe=Z.concat([{begin:/(\s*)\(/,end:/\)/,keywords:A,contains:["self"].concat(Z)}]),he={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:A,contains:pe},M={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"}}]},J={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...u]}},fe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},we={variants:[{match:[/function/,/\s+/,S,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[he],illegal:/%/},De={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function w(Q){return b.concat("(?!",Q.join("|"),")")}const z={match:b.concat(/\b/,w([...f,"super","import","await"].map(Q=>`${Q}\\s*\\(`)),S,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},B={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:/\(\)/},he]},me="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",ve={match:[/const|var|let/,/\s+/,S,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(me)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[he]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:A,exports:{PARAMS_CONTAINS:pe,CLASS_REFERENCE:J},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),fe,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,le,X,T,q,ce,{match:/\$\d+/},V,J,{scope:"attr",match:S+b.lookahead(":"),relevance:0},ve,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ce,m.REGEXP_MODE,{className:"function",begin:me,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:A,contains:pe}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:_},{begin:C.begin,"on:begin":C.isTrulyOpeningTag,end:C.end}],subLanguage:"xml",contains:[{begin:C.begin,end:C.end,skip:!0,contains:["self"]}]}]},we,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[he,m.inherit(m.TITLE_MODE,{begin:S,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+S,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[he]},z,De,M,re,{match:/\$[(.]/}]}}return Ju=g,Ju}var ed,Cg;function V0(){if(Cg)return ed;Cg=1;const a={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(s){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},f={match:/[{}[\],:]/,className:"punctuation",relevance:0},p=["true","false","null"],y={scope:"literal",beginKeywords:p.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:p},contains:[u,f,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,y,a,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return ed=r,ed}var td,Mg;function Q0(){if(Mg)return td;Mg=1;var i="[0-9](_*[0-9])*",a=`\\.(${i})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${i})((${a})|\\.)?|(${a}))[eE][+-]?(${i})[fFdD]?\\b`},{begin:`\\b(${i})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${i})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${i})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(f){const p={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},y={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},g={className:"symbol",begin:f.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[f.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+f.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[f.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[f.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const S={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+f.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+f.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[f.inherit(v,{className:"string"}),"self"]}]},_=s,C=f.COMMENT("/\\*","\\*/",{contains:[f.C_BLOCK_COMMENT_MODE]}),A={variants:[{className:"type",begin:f.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},O=A;return O.variants[1].contains=[A],A.variants[1].contains=[O],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:p,contains:[f.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),f.C_LINE_COMMENT_MODE,C,y,g,S,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:p,relevance:5,contains:[{begin:f.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[f.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[A,f.C_LINE_COMMENT_MODE,C],relevance:0},f.C_LINE_COMMENT_MODE,C,S,x,v,f.C_NUMBER_MODE]},C]},{begin:[/class|interface|trait/,/\s+/,f.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},f.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},S,x]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
169
|
-
`},_]}}return td=u,td}var nd,Dg;function W0(){if(Dg)return nd;Dg=1;const i=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),g=f.concat(p).sort().reverse();function m(b){const v=i(b),S=g,x="and or not only",_="[\\w-]+",C="("+_+"|@\\{"+_+"\\})",A=[],O=[],G=function(Z){return{className:"string",begin:"~?"+Z+".*?"+Z}},D=function(Z,pe,he){return{className:Z,begin:pe,relevance:he}},V={$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},j={begin:"\\(",end:"\\)",contains:O,keywords:V,relevance:0};O.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,G("'"),G('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,j,D("variable","@@?"+_,10),D("variable","@\\{"+_+"\\}"),D("built_in","~?`[^`]*?`"),{className:"attribute",begin:_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const le=O.concat({begin:/\{/,end:/\}/,contains:A}),X={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(O)},T={begin:C+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:O}}]},q={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:V,returnEnd:!0,contains:O,relevance:0}},ee={className:"variable",variants:[{begin:"@"+_+"\\s*:",relevance:15},{begin:"@"+_}],starts:{end:"[;}]",returnEnd:!0,contains:le}},ce={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:C,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,X,D("keyword","all\\b"),D("variable","@\\{"+_+"\\}"),{begin:"\\b("+s.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,D("selector-tag",C,0),D("selector-id","#"+C),D("selector-class","\\."+C,0),D("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:le},{begin:"!important"},v.FUNCTION_DISPATCH]},Se={begin:_+`:(:)?(${S.join("|")})`,returnBegin:!0,contains:[ce]};return A.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,q,ee,Se,T,ce,X,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:A}}return nd=m,nd}var ad,Lg;function J0(){if(Lg)return ad;Lg=1;function i(a){const r="\\[=*\\[",s="\\]=*\\]",u={begin:r,end:s,contains:["self"]},f=[a.COMMENT("--(?!"+r+")","$"),a.COMMENT("--"+r,s,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:a.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:f.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[a.inherit(a.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:f}].concat(f)},a.C_NUMBER_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:r,end:s,contains:[u],relevance:5}])}}return ad=i,ad}var id,zg;function eS(){if(zg)return id;zg=1;function i(a){const r={className:"variable",variants:[{begin:"\\$\\("+a.UNDERSCORE_IDENT_RE+"\\)",contains:[a.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},s={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,r]},u={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,s]},f={begin:"^"+a.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},p={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},y={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[a.HASH_COMMENT_MODE,r,s,u,f,p,y]}}return id=i,id}var ld,jg;function tS(){if(jg)return ld;jg=1;function i(a){const r=a.regex,s=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,f={$pattern:/[\w.]+/,keyword:s.join(" ")},p={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:f},y={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},b={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},v=[a.BACKSLASH_ESCAPE,p,m],S=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(A,O,G="\\1")=>{const D=G==="\\1"?G:r.concat(G,O);return r.concat(r.concat("(?:",A,")"),O,/(?:\\.|[^\\\/])*?/,D,/(?:\\.|[^\\\/])*?/,G,u)},_=(A,O,G)=>r.concat(r.concat("(?:",A,")"),O,/(?:\\.|[^\\\/])*?/,G,u),C=[m,a.HASH_COMMENT_MODE,a.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),y,{className:"string",contains:v,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},b,{begin:"(\\/\\/|"+a.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[a.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:x("s|tr|y",r.either(...S,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:_("(?:m|qr)?",/\//,/\//)},{begin:_("m|qr",r.either(...S,{capture:!0}),/\1/)},{begin:_("m|qr",/\(/,/\)/)},{begin:_("m|qr",/\[/,/\]/)},{begin:_("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return p.contains=C,y.contains=C,{name:"Perl",aliases:["pl","pm"],keywords:f,contains:C}}return ld=i,ld}var sd,Ug;function nS(){if(Ug)return sd;Ug=1;function i(a){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},s=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:s,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:s,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:g,illegal:"</",contains:[r,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.C_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[a.UNDERSCORE_TITLE_MODE]},{begin:"\\."+a.UNDERSCORE_IDENT_RE,relevance:0}]}}return sd=i,sd}var rd,Bg;function aS(){if(Bg)return rd;Bg=1;function i(a){const r=a.regex,s=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,s),f=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),p=r.concat(/[A-Z]+/,s),y={scope:"variable",match:"\\$+"+u},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=a.inherit(a.APOS_STRING_MODE,{illegal:null}),v=a.inherit(a.QUOTE_STRING_MODE,{illegal:null,contains:a.QUOTE_STRING_MODE.contains.concat(m)}),S={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:a.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(he,M)=>{M.data._beginMatch=he[1]||he[2]},"on:end":(he,M)=>{M.data._beginMatch!==he[1]&&M.ignoreMatch()}},x=a.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[
|
|
170
|
-
]`,C={scope:"string",variants:[v,b,S,x]},A={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},O=["false","null","true"],G=["__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"],D=["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"],j={keyword:G,literal:(he=>{const M=[];return he.forEach(J=>{M.push(J),J.toLowerCase()===J?M.push(J.toUpperCase()):M.push(J.toLowerCase())}),M})(O),built_in:D},le=he=>he.map(M=>M.replace(/\|\d+$/,"")),X={variants:[{match:[/new/,r.concat(_,"+"),r.concat("(?!",le(D).join("\\b|"),"\\b)"),f],scope:{1:"keyword",4:"title.class"}}]},T=r.concat(u,"\\b(?!\\()"),q={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),T],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[f,r.concat(/::/,r.lookahead(/(?!class\b)/)),T],scope:{1:"title.class",3:"variable.constant"}},{match:[f,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[f,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ee={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},ce={relevance:0,begin:/\(/,end:/\)/,keywords:j,contains:[ee,y,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,A,X]},Se={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",le(G).join("\\b|"),"|",le(D).join("\\b|"),"\\b)"),u,r.concat(_,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[ce]};ce.contains.push(Se);const Z=[ee,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,A,X],pe={begin:r.concat(/#\[\s*\\?/,r.either(f,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:O,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:O,keyword:["new","array"]},contains:["self",...Z]},...Z,{scope:"meta",variants:[{match:f},{match:p}]}]};return{case_insensitive:!1,keywords:j,contains:[pe,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,Se,q,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},X,{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:j,contains:["self",pe,y,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,C,A]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},a.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[a.inherit(a.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},a.UNDERSCORE_TITLE_MODE]},C,A]}}return rd=i,rd}var od,Ig;function iS(){if(Ig)return od;Ig=1;function i(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 od=i,od}var cd,Hg;function lS(){if(Hg)return cd;Hg=1;function i(a){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return cd=i,cd}var ud,qg;function sS(){if(qg)return ud;qg=1;function i(a){const r=a.regex,s=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],g={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},v={begin:/\{\{/,relevance:0},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]},x="[0-9](_?[0-9])*",_=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,C=`\\b|${u.join("|")}`,A={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${_}))[eE][+-]?(${x})[jJ]?(?=${C})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${C})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${C})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${C})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${C})`},{begin:`\\b(${x})[jJ](?=${C})`}]},O={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},G={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,A,S,a.HASH_COMMENT_MODE]}]};return b.contains=[S,A,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,A,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},S,O,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[G]},{variants:[{match:[/\bclass/,/\s+/,s,/\s*/,/\(\s*/,s,/\s*\)/]},{match:[/\bclass/,/\s+/,s]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[A,G,S]}]}}return ud=i,ud}var dd,Gg;function rS(){if(Gg)return dd;Gg=1;function i(a){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return dd=i,dd}var fd,$g;function oS(){if($g)return fd;$g=1;function i(a){const r=a.regex,s=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),f=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,p=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:s,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[a.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:s},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),a.HASH_COMMENT_MODE,{scope:"string",contains:[a.BACKSLASH_ESCAPE],variants:[a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[f,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[p,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:f},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:p},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return fd=i,fd}var hd,Yg;function cS(){if(Yg)return hd;Yg=1;function i(a){const r=a.regex,s=/(r#)?/,u=r.concat(s,a.UNDERSCORE_IDENT_RE),f=r.concat(s,a.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,f,r.lookahead(/\s*\(/))},y="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],v=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:a.IDENT_RE+"!?",type:v,keyword:g,literal:m,built_in:b},illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.COMMENT("/\\*","\\*/",{contains:["self"]}),a.inherit(a.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+y},{begin:"\\b0o([0-7_]+)"+y},{begin:"\\b0x([A-Fa-f0-9_]+)"+y},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+y}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,u],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,u,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:a.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:v}},{scope:"punctuation",begin:"->"},p]}}return hd=i,hd}var pd,Fg;function uS(){if(Fg)return pd;Fg=1;const i=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=i(m),v=p,S=f,x="@[a-z-]+",_="and or not only",A={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+S.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},A,{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,A,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:u.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},A,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return pd=g,pd}var md,Pg;function dS(){if(Pg)return md;Pg=1;function i(a){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return md=i,md}var gd,Kg;function fS(){if(Kg)return gd;Kg=1;function i(a){const r=a.regex,s=a.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},f={begin:/"/,end:/"/,contains:[{match:/""/}]},p=["true","false","unknown"],y=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],v=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],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"],x=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=v,C=[...b,...m].filter(le=>!v.includes(le)),A={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},O={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},G={match:r.concat(/\b/,r.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function D(le){return r.concat(/\b/,r.either(...le.map(X=>X.replace(/\s+/,"\\s+"))),/\b/)}const V={scope:"keyword",match:D(x),relevance:0};function j(le,{exceptions:X,when:T}={}){const q=T;return X=X||[],le.map(ee=>ee.match(/\|\d+$/)||X.includes(ee)?ee:q(ee)?`${ee}|0`:ee)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:j(C,{when:le=>le.length<3}),literal:p,type:g,built_in:S},contains:[{scope:"type",match:D(y)},V,G,A,u,f,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,s,O]}}return gd=i,gd}var bd,Zg;function hS(){if(Zg)return bd;Zg=1;function i(T){return T?typeof T=="string"?T:T.source:null}function a(T){return r("(?=",T,")")}function r(...T){return T.map(ee=>i(ee)).join("")}function s(T){const q=T[T.length-1];return typeof q=="object"&&q.constructor===Object?(T.splice(T.length-1,1),q):{}}function u(...T){return"("+(s(T).capture?"":"?:")+T.map(ce=>i(ce)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const f=T=>r(/\b/,T,/\w$/.test(T)?/\b/:/\B/),p=["Protocol","Type"].map(f),y=["init","self"].map(f),g=["Any","Self"],m=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],b=["false","nil","true"],v=["assignment","associativity","higherThan","left","lowerThan","none","right"],S=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],x=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],_=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),C=u(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),A=r(_,C,"*"),O=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]/),G=u(O,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),D=r(O,G,"*"),V=r(/[A-Z]/,G,"*"),j=["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\(/,D,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],le=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function X(T){const q={match:/\s+/,relevance:0},ee=T.COMMENT("/\\*","\\*/",{contains:["self"]}),ce=[T.C_LINE_COMMENT_MODE,ee],Se={match:[/\./,u(...p,...y)],className:{2:"keyword"}},Z={match:r(/\./,u(...m)),relevance:0},pe=m.filter(qe=>typeof qe=="string").concat(["_|0"]),he=m.filter(qe=>typeof qe!="string").concat(g).map(f),M={variants:[{className:"keyword",match:u(...he,...y)}]},J={$pattern:u(/\b\w+/,/#\w+/),keyword:pe.concat(S),literal:b},fe=[Se,Z,M],we={match:r(/\./,u(...x)),relevance:0},De={className:"built_in",match:r(/\b/,u(...x),/(?=\()/)},w=[we,De],z={match:/->/,relevance:0},B={className:"operator",relevance:0,variants:[{match:A},{match:`\\.(\\.|${C})+`}]},re=[z,B],me="([0-9]_*)+",ve="([0-9a-fA-F]_*)+",Q={className:"number",relevance:0,variants:[{match:`\\b(${me})(\\.(${me}))?([eE][+-]?(${me}))?\\b`},{match:`\\b0x(${ve})(\\.(${ve}))?([pP][+-]?(${me}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},be=(qe="")=>({className:"subst",variants:[{match:r(/\\/,qe,/[0\\tnr"']/)},{match:r(/\\/,qe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),xe=(qe="")=>({className:"subst",match:r(/\\/,qe,/[\t ]*(?:[\r\n]|\r\n)/)}),Ge=(qe="")=>({className:"subst",label:"interpol",begin:r(/\\/,qe,/\(/),end:/\)/}),$e=(qe="")=>({begin:r(qe,/"""/),end:r(/"""/,qe),contains:[be(qe),xe(qe),Ge(qe)]}),Ce=(qe="")=>({begin:r(qe,/"/),end:r(/"/,qe),contains:[be(qe),Ge(qe)]}),St={className:"string",variants:[$e(),$e("#"),$e("##"),$e("###"),Ce(),Ce("#"),Ce("##"),Ce("###")]},Ze=[T.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[T.BACKSLASH_ESCAPE]}],In={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ze},Je=qe=>{const pn=r(qe,/\//),Pt=r(/\//,qe);return{begin:pn,end:Pt,contains:[...Ze,{scope:"comment",begin:`#(?!.*${Pt})`,end:/$/}]}},Ln={scope:"regexp",variants:[Je("###"),Je("##"),Je("#"),In]},Hn={match:r(/`/,D,/`/)},It={className:"variable",match:/\$\d+/},Rt={className:"variable",match:`\\$${G}+`},on=[Hn,It,Rt],yn={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:le,contains:[...re,Q,St]}]}},Ft={scope:"keyword",match:r(/@/,u(...j),a(u(/\(/,/\s+/)))},je={scope:"meta",match:r(/@/,D)},Lt=[yn,Ft,je],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)/,G,"+")},{className:"type",match:V,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,a(V)),relevance:0}]},Ot={begin:/</,end:/>/,keywords:J,contains:[...ce,...fe,...Lt,z,vt]};vt.contains.push(Ot);const Tn={match:r(D,/\s*:/),keywords:"_|0",relevance:0},zn={begin:/\(/,end:/\)/,relevance:0,keywords:J,contains:["self",Tn,...ce,Ln,...fe,...w,...re,Q,St,...on,...Lt,vt]},An={begin:/</,end:/>/,keywords:"repeat each",contains:[...ce,vt]},jn={begin:u(a(r(D,/\s*:/)),a(r(D,/\s+/,D,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:D}]},Rn={begin:/\(/,end:/\)/,keywords:J,contains:[jn,...ce,...fe,...re,Q,St,...Lt,vt,zn],endsParent:!0,illegal:/["']/},cn={match:[/(func|macro)/,/\s+/,u(Hn.match,D,A)],className:{1:"keyword",3:"title.function"},contains:[An,Rn,q],illegal:[/\[/,/%/]},Ht={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[An,Rn,q],illegal:/\[|%/},kn={match:[/operator/,/\s+/,A],className:{1:"keyword",3:"title"}},qt={begin:[/precedencegroup/,/\s+/,V],className:{1:"keyword",3:"title"},contains:[vt],keywords:[...v,...b],end:/}/},la={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},un={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},hn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,D,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:J,contains:[An,...fe,{begin:/:/,end:/\{/,keywords:J,contains:[{scope:"title.class.inherited",match:V},...fe],relevance:0}]};for(const qe of St.variants){const pn=qe.contains.find(Gt=>Gt.label==="interpol");pn.keywords=J;const Pt=[...fe,...w,...re,Q,St,...on];pn.contains=[...Pt,{begin:/\(/,end:/\)/,contains:["self",...Pt]}]}return{name:"Swift",keywords:J,contains:[...ce,cn,Ht,la,un,hn,kn,qt,{beginKeywords:"import",end:/$/,contains:[...ce],relevance:0},Ln,...fe,...w,...re,Q,St,...on,...Lt,vt,zn]}}return bd=X,bd}var yd,Xg;function pS(){if(Xg)return yd;Xg=1;function i(a){const r="true false yes no null",s="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},f={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},p={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},y={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[a.BACKSLASH_ESCAPE,f]},g=a.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},C={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},A={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},O=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+s},{className:"type",begin:"!<"+s+">"},{className:"type",begin:"!"+s},{className:"type",begin:"!!"+s},{className:"meta",begin:"&"+a.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+a.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},a.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},x,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},C,A,p,y],G=[...O];return G.pop(),G.push(g),_.contains=G,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:O}}return yd=i,yd}var vd,Vg;function mS(){if(Vg)return vd;Vg=1;const i="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],f=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(f,s,u);function g(b){const v=b.regex,S=(be,{after:xe})=>{const Ge="</"+be[0].slice(1);return be.input.indexOf(Ge,xe)!==-1},x=i,_={begin:"<>",end:"</>"},C=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(be,xe)=>{const Ge=be[0].length+be.index,$e=be.input[Ge];if($e==="<"||$e===","){xe.ignoreMatch();return}$e===">"&&(S(be,{after:Ge})||xe.ignoreMatch());let Ce;const St=be.input.substring(Ge);if(Ce=St.match(/^\s*=/)){xe.ignoreMatch();return}if((Ce=St.match(/^\s+extends\s+/))&&Ce.index===0){xe.ignoreMatch();return}}},O={$pattern:i,keyword:a,literal:r,built_in:y,"variable.language":p},G="[0-9](_?[0-9])*",D=`\\.(${G})`,V="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",j={className:"number",variants:[{begin:`(\\b(${V})((${D})|\\.)?|(${D}))[eE][+-]?(${G})\\b`},{begin:`\\b(${V})\\b((${D})\\b|\\.)?|(${D})\\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},le={className:"subst",begin:"\\$\\{",end:"\\}",keywords:O,contains:[]},X={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,le],subLanguage:"xml"}},T={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,le],subLanguage:"css"}},q={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,le],subLanguage:"graphql"}},ee={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,le]},Se={className:"comment",variants:[b.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},Z=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,X,T,q,ee,{match:/\$\d+/},j];le.contains=Z.concat({begin:/\{/,end:/\}/,keywords:O,contains:["self"].concat(Z)});const pe=[].concat(Se,le.contains),he=pe.concat([{begin:/(\s*)\(/,end:/\)/,keywords:O,contains:["self"].concat(pe)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:O,contains:he},J={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,v.concat(x,"(",v.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},fe={relevance:0,match:v.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...u]}},we={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},De={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},w={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(be){return v.concat("(?!",be.join("|"),")")}const B={match:v.concat(/\b/,z([...f,"super","import","await"].map(be=>`${be}\\s*\\(`)),x,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},re={begin:v.concat(/\./,v.lookahead(v.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},me={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},ve="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(ve)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:O,exports:{PARAMS_CONTAINS:he,CLASS_REFERENCE:fe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),we,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,X,T,q,ee,Se,{match:/\$\d+/},j,fe,{scope:"attr",match:x+v.lookahead(":"),relevance:0},Q,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Se,b.REGEXP_MODE,{className:"function",begin:ve,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:b.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:O,contains:he}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:_.begin,end:_.end},{match:C},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.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:[M,b.inherit(b.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},re,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},B,w,J,me,{match:/\$[(.]/}]}}function m(b){const v=b.regex,S=g(b),x=i,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],C={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},A={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:_},contains:[S.exports.CLASS_REFERENCE]},O={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},G=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],D={$pattern:i,keyword:a.concat(G),literal:r,built_in:y.concat(_),"variable.language":p},V={className:"meta",begin:"@"+x},j=(q,ee,ce)=>{const Se=q.contains.findIndex(Z=>Z.label===ee);if(Se===-1)throw new Error("can not find mode to replace");q.contains.splice(Se,1,ce)};Object.assign(S.keywords,D),S.exports.PARAMS_CONTAINS.push(V);const le=S.contains.find(q=>q.scope==="attr"),X=Object.assign({},le,{match:v.concat(x,v.lookahead(/\s*\?:/))});S.exports.PARAMS_CONTAINS.push([S.exports.CLASS_REFERENCE,le,X]),S.contains=S.contains.concat([V,C,A,X]),j(S,"shebang",b.SHEBANG()),j(S,"use_strict",O);const T=S.contains.find(q=>q.label==="func.def");return T.relevance=0,Object.assign(S,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),S}return vd=m,vd}var Ed,Qg;function gS(){if(Qg)return Ed;Qg=1;function i(a){const r=a.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},f=/\d{1,2}\/\d{1,2}\/\d{4}/,p=/\d{4}-\d{1,2}-\d{1,2}/,y=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:r.concat(/# */,r.either(p,f),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(p,f),/ +/,r.either(y,g),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},v={className:"label",begin:/^\w+:/},S=a.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=a.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[s,u,m,b,v,S,x,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[x]}]}}return Ed=i,Ed}var _d,Wg;function bS(){if(Wg)return _d;Wg=1;function i(a){a.regex;const r=a.COMMENT(/\(;/,/;\)/);r.contains.push("self");const s=a.COMMENT(/;;/,/$/),u=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],f={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},p={className:"variable",begin:/\$[\w_]+/},y={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[s,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,y,f,a.QUOTE_STRING_MODE,m,b,g]}}return _d=i,_d}var Sd,Jg;function yS(){if(Jg)return Sd;Jg=1;var i=z0();return i.registerLanguage("xml",j0()),i.registerLanguage("bash",U0()),i.registerLanguage("c",B0()),i.registerLanguage("cpp",I0()),i.registerLanguage("csharp",H0()),i.registerLanguage("css",q0()),i.registerLanguage("markdown",G0()),i.registerLanguage("diff",$0()),i.registerLanguage("ruby",Y0()),i.registerLanguage("go",F0()),i.registerLanguage("graphql",P0()),i.registerLanguage("ini",K0()),i.registerLanguage("java",Z0()),i.registerLanguage("javascript",X0()),i.registerLanguage("json",V0()),i.registerLanguage("kotlin",Q0()),i.registerLanguage("less",W0()),i.registerLanguage("lua",J0()),i.registerLanguage("makefile",eS()),i.registerLanguage("perl",tS()),i.registerLanguage("objectivec",nS()),i.registerLanguage("php",aS()),i.registerLanguage("php-template",iS()),i.registerLanguage("plaintext",lS()),i.registerLanguage("python",sS()),i.registerLanguage("python-repl",rS()),i.registerLanguage("r",oS()),i.registerLanguage("rust",cS()),i.registerLanguage("scss",uS()),i.registerLanguage("shell",dS()),i.registerLanguage("sql",fS()),i.registerLanguage("swift",hS()),i.registerLanguage("yaml",pS()),i.registerLanguage("typescript",mS()),i.registerLanguage("vbnet",gS()),i.registerLanguage("wasm",bS()),i.HighlightJS=i,i.default=i,Sd=i,Sd}var vS=yS();const nf=Ub(vS),ES={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},_S=2e5,iy="http://www.w3.org/1999/xhtml";function SS(i){for(const a of i.querySelectorAll(".d2h-file-wrapper")){const r=wS(a.dataset.lang??"");if(r)for(const s of NS(a))eb(s.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),eb(s.filter(u=>u.kind!=="del"),()=>!0,r)}}function wS(i){const a=ES[i]??L0(i);return a==="plaintext"||!nf.getLanguage(a)?null:a}function NS(i){const a=[];let r=[];for(const s of i.querySelectorAll(".d2h-diff-tbody > tr")){const u=s.querySelector("td:last-child"),f=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!f){r.length&&a.push(r),r=[];continue}const p=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:p,ctn:f})}return r.length&&a.push(r),a}function eb(i,a,r){if(i.filter(a).length===0)return;const u=i.map(y=>y.ctn.textContent??"").join(`
|
|
171
|
-
`);if(!u.trim()||u.length>_S)return;const f=TS(u)&&AS(r)?`/**
|
|
172
|
-
`:"",p=kS(nf.highlight(f+u,{language:r,ignoreIllegals:!0}).value).slice(f?1:0);i.forEach((y,g)=>{const m=p[g];m===void 0||!a(y)||RS(y.ctn,m)})}const xS=/(^|\s)\*\//m,tb=/^\s*\*(\s|$)/;function TS(i){const a=i.search(xS);if(a===-1){const s=i.split(`
|
|
173
|
-
`).filter(u=>u.trim());return s.length>0&&s.every(u=>tb.test(u))}return i.slice(0,a).split(`
|
|
174
|
-
`).every(s=>tb.test(s)||!s.includes("/*"))}function AS(i){return nf.highlight("/* */",{language:i,ignoreIllegals:!0}).value.startsWith('<span class="hljs-comment">')}function RS(i,a){const r=mg(i);let s=a;if(r.length){const u=document.createElementNS(iy,"div");u.innerHTML=a,s=M0(r,mg(u),i.textContent??"")}i.classList.add("hljs"),i.innerHTML=s}function kS(i){const a=document.createElementNS(iy,"div");a.innerHTML=i;const r=[],s=[];let u="";const f=p=>{if(p.nodeType===Node.TEXT_NODE){(p.textContent??"").split(`
|
|
175
|
-
`).forEach((m,b)=>{b>0&&(u+="</span>".repeat(s.length),r.push(u),u=s.join("")),u+=OS(m)});return}const y=`<span class="${p.className}">`;u+=y,s.push(y),p.childNodes.forEach(f),s.pop(),u+="</span>"};return a.childNodes.forEach(f),r.push(u),r}function OS(i){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}const CS={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"]},MS={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}]},DS={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Ke({name:i,size:a=13}){const r=[...CS[i]??[],...DS[i]??[]];return d.jsxs("svg",{className:"icon",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(MS[i]??[]).map((s,u)=>d.jsx("circle",{cx:s.cx,cy:s.cy,r:s.r},u)),r.map((s,u)=>d.jsx("path",{d:s},u))]})}function LS({size:i=17}){return d.jsxs("svg",{className:"logo",width:i,height:i,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[d.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),d.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),d.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),d.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function za({children:i}){return d.jsx("span",{className:"key",children:i})}/*! @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 nb(i,a){(a==null||a>i.length)&&(a=i.length);for(var r=0,s=Array(a);r<a;r++)s[r]=i[r];return s}function zS(i){if(Array.isArray(i))return i}function jS(i,a){var r=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(r!=null){var s,u,f,p,y=[],g=!0,m=!1;try{if(f=(r=r.call(i)).next,a!==0)for(;!(g=(s=f.call(r)).done)&&(y.push(s.value),y.length!==a);g=!0);}catch(b){m=!0,u=b}finally{try{if(!g&&r.return!=null&&(p=r.return(),Object(p)!==p))return}finally{if(m)throw u}}return y}}function US(){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 BS(i,a){return zS(i)||jS(i,a)||IS(i,a)||US()}function IS(i,a){if(i){if(typeof i=="string")return nb(i,a);var r={}.toString.call(i).slice(8,-1);return r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set"?Array.from(i):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nb(i,a):void 0}}const ly=Object.entries,ab=Object.setPrototypeOf,HS=Object.isFrozen,qS=Object.getPrototypeOf,GS=Object.getOwnPropertyDescriptor;let Nn=Object.freeze,xn=Object.seal,Bl=Object.create,sy=typeof Reflect<"u"&&Reflect,jd=sy.apply,Ud=sy.construct;Nn||(Nn=function(a){return a});xn||(xn=function(a){return a});jd||(jd=function(a,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return a.apply(r,u)});Ud||(Ud=function(a){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new a(...s)});const zl=sn(Array.prototype.forEach),$S=sn(Array.prototype.lastIndexOf),ib=sn(Array.prototype.pop),jl=sn(Array.prototype.push),YS=sn(Array.prototype.splice),zi=Array.isArray,Is=sn(String.prototype.toLowerCase),wd=sn(String.prototype.toString),lb=sn(String.prototype.match),js=sn(String.prototype.replace),sb=sn(String.prototype.indexOf),FS=sn(String.prototype.trim),PS=sn(Number.prototype.toString),KS=sn(Boolean.prototype.toString),rb=typeof BigInt>"u"?null:sn(BigInt.prototype.toString),ob=typeof Symbol>"u"?null:sn(Symbol.prototype.toString),bn=sn(Object.prototype.hasOwnProperty),Us=sn(Object.prototype.toString),gn=sn(RegExp.prototype.test),Wi=ZS(TypeError);function sn(i){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return jd(i,a,s)}}function ZS(i){return function(){for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return Ud(i,r)}}function ct(i,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Is;if(ab&&ab(i,null),!zi(a))return i;let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const f=r(u);f!==u&&(HS(a)||(a[s]=f),u=f)}i[u]=!0}return i}function XS(i){for(let a=0;a<i.length;a++)bn(i,a)||(i[a]=null);return i}function Mn(i){const a=Bl(null);for(const s of ly(i)){var r=BS(s,2);const u=r[0],f=r[1];bn(i,u)&&(zi(f)?a[u]=XS(f):f&&typeof f=="object"&&f.constructor===Object?a[u]=Mn(f):a[u]=f)}return a}function VS(i){switch(typeof i){case"string":return i;case"number":return PS(i);case"boolean":return KS(i);case"bigint":return rb?rb(i):"0";case"symbol":return ob?ob(i):"Symbol()";case"undefined":return Us(i);case"function":case"object":{if(i===null)return Us(i);const a=i,r=_a(a,"toString");if(typeof r=="function"){const s=r(a);return typeof s=="string"?s:Us(s)}return Us(i)}default:return Us(i)}}function _a(i,a){for(;i!==null;){const s=GS(i,a);if(s){if(s.get)return sn(s.get);if(typeof s.value=="function")return sn(s.value)}i=qS(i)}function r(){return null}return r}function QS(i){try{return gn(i,""),!0}catch{return!1}}const cb=Nn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Nd=Nn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),xd=Nn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),WS=Nn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Td=Nn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),JS=Nn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ub=Nn(["#text"]),db=Nn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ad=Nn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),fb=Nn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),no=Nn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ew=xn(/{{[\w\W]*|^[\w\W]*}}/g),tw=xn(/<%[\w\W]*|^[\w\W]*%>/g),nw=xn(/\${[\w\W]*/g),aw=xn(/^data-[\-\w.\u00B7-\uFFFF]+$/),iw=xn(/^aria-[\-\w]+$/),hb=xn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lw=xn(/^(?:\w+script|data):/i),sw=xn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rw=xn(/^html$/i),ow=xn(/^[a-z][.\w]*(-[.\w]+)+$/i),pb=xn(/<[/\w!]/g),mb=xn(/<[/\w]/g),cw=xn(/<\/no(script|embed|frames)/i),uw=xn(/\/>/i),ia={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},dw=function(){return typeof window>"u"?null:window},fw=function(a,r){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(s=r.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return a.createPolicy(f,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},gb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Mi=function(a,r,s,u){return bn(a,r)&&zi(a[r])?ct(u.base?Mn(u.base):{},a[r],u.transform):s};function ry(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dw();const a=te=>ry(te);if(a.version="3.4.13",a.removed=[],!i||!i.document||i.document.nodeType!==ia.document||!i.Element)return a.isSupported=!1,a;let r=i.document;const s=r,u=s.currentScript;i.DocumentFragment;const f=i.HTMLTemplateElement,p=i.Node,y=i.Element,g=i.NodeFilter,m=i.NamedNodeMap;m===void 0&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;const b=i.DOMParser,v=i.trustedTypes,S=y.prototype,x=_a(S,"cloneNode"),_=_a(S,"remove"),C=_a(S,"nextSibling"),A=_a(S,"childNodes"),O=_a(S,"parentNode"),G=_a(S,"shadowRoot"),D=_a(S,"attributes"),V=p&&p.prototype?_a(p.prototype,"nodeType"):null,j=p&&p.prototype?_a(p.prototype,"nodeName"):null,le=p&&p.prototype?_a(p.prototype,"ownerDocument"):null;if(typeof f=="function"){const te=r.createElement("template");te.content&&te.content.ownerDocument&&(r=te.content.ownerDocument)}let X,T="",q,ee=!1,ce=0;const Se=function(){if(ce>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.')},Z=function(N){Se(),ce++;try{return X.createHTML(N)}finally{ce--}},pe=function(N){Se(),ce++;try{return X.createScriptURL(N)}finally{ce--}},he=function(){return ee||(q=fw(v,u),ee=!0),q},M=r,J=M.implementation,fe=M.createNodeIterator,we=M.createDocumentFragment,De=M.getElementsByTagName,w=s.importNode;let z=gb();a.isSupported=typeof ly=="function"&&typeof O=="function"&&J&&J.createHTMLDocument!==void 0;const B=ew,re=tw,me=nw,ve=aw,Q=iw,be=lw,xe=sw,Ge=ow;let $e=hb,Ce=null;const St=ct({},[...cb,...Nd,...xd,...Td,...ub]);let Ze=null;const In=ct({},[...db,...Ad,...fb,...no]);let Je=Object.seal(Bl(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}})),Ln=null,Hn=null;const It=Object.seal(Bl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Rt=!0,on=!0,yn=!1,Ft=!0,je=!1,Lt=!0,vt=!1,Ot=!1,Tn=null,zn=null,An=!1,jn=!1,Rn=!1,cn=!1,Ht=!0,kn=!1;const qt="user-content-";let la=!0,un=!1,hn={},qe=null;const pn=ct({},["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 Pt=null;const Gt=ct({},["audio","video","img","source","image","track"]);let R=null;const ne=ct({},["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",Qe="http://www.w3.org/1999/xhtml";let et=Qe,Ae=!1,_e=null;const Ue=ct({},[ye,ze,Qe],wd),Ct=Nn(["mi","mo","mn","ms","mtext"]);let mt=ct({},Ct);const qn=Nn(["annotation-xml"]);let sa=ct({},qn);const Na=ct({},["title","style","font","a","script"]);let dn=null;const wt=["application/xhtml+xml","text/html"],Kt="text/html";let tt=null,vn=null;const Ua=r.createElement("form"),ba=function(N){return N instanceof RegExp||N instanceof Function},xa=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(vn&&vn===N)return;(!N||typeof N!="object")&&(N={}),N=Mn(N),dn=wt.indexOf(N.PARSER_MEDIA_TYPE)===-1?Kt:N.PARSER_MEDIA_TYPE,tt=dn==="application/xhtml+xml"?wd:Is,Ce=Mi(N,"ALLOWED_TAGS",St,{transform:tt}),Ze=Mi(N,"ALLOWED_ATTR",In,{transform:tt}),_e=Mi(N,"ALLOWED_NAMESPACES",Ue,{transform:wd}),R=Mi(N,"ADD_URI_SAFE_ATTR",ne,{transform:tt,base:ne}),Pt=Mi(N,"ADD_DATA_URI_TAGS",Gt,{transform:tt,base:Gt}),qe=Mi(N,"FORBID_CONTENTS",pn,{transform:tt}),Ln=Mi(N,"FORBID_TAGS",Mn({}),{transform:tt}),Hn=Mi(N,"FORBID_ATTR",Mn({}),{transform:tt}),hn=bn(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?Mn(N.USE_PROFILES):N.USE_PROFILES:!1,Rt=N.ALLOW_ARIA_ATTR!==!1,on=N.ALLOW_DATA_ATTR!==!1,yn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Ft=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=N.SAFE_FOR_TEMPLATES||!1,Lt=N.SAFE_FOR_XML!==!1,vt=N.WHOLE_DOCUMENT||!1,jn=N.RETURN_DOM||!1,Rn=N.RETURN_DOM_FRAGMENT||!1,cn=N.RETURN_TRUSTED_TYPE||!1,An=N.FORCE_BODY||!1,Ht=N.SANITIZE_DOM!==!1,kn=N.SANITIZE_NAMED_PROPS||!1,la=N.KEEP_CONTENT!==!1,un=N.IN_PLACE||!1,$e=QS(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:hb,et=typeof N.NAMESPACE=="string"?N.NAMESPACE:Qe,mt=bn(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?Mn(N.MATHML_TEXT_INTEGRATION_POINTS):ct({},Ct),sa=bn(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?Mn(N.HTML_INTEGRATION_POINTS):ct({},qn);const U=bn(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?Mn(N.CUSTOM_ELEMENT_HANDLING):Bl(null);if(Je=Bl(null),bn(U,"tagNameCheck")&&ba(U.tagNameCheck)&&(Je.tagNameCheck=U.tagNameCheck),bn(U,"attributeNameCheck")&&ba(U.attributeNameCheck)&&(Je.attributeNameCheck=U.attributeNameCheck),bn(U,"allowCustomizedBuiltInElements")&&typeof U.allowCustomizedBuiltInElements=="boolean"&&(Je.allowCustomizedBuiltInElements=U.allowCustomizedBuiltInElements),xn(Je),je&&(on=!1),Rn&&(jn=!0),hn&&(Ce=ct({},ub),Ze=Bl(null),hn.html===!0&&(ct(Ce,cb),ct(Ze,db)),hn.svg===!0&&(ct(Ce,Nd),ct(Ze,Ad),ct(Ze,no)),hn.svgFilters===!0&&(ct(Ce,xd),ct(Ze,Ad),ct(Ze,no)),hn.mathMl===!0&&(ct(Ce,Td),ct(Ze,fb),ct(Ze,no))),It.tagCheck=null,It.attributeCheck=null,bn(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?It.tagCheck=N.ADD_TAGS:zi(N.ADD_TAGS)&&(Ce===St&&(Ce=Mn(Ce)),ct(Ce,N.ADD_TAGS,tt))),bn(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?It.attributeCheck=N.ADD_ATTR:zi(N.ADD_ATTR)&&(Ze===In&&(Ze=Mn(Ze)),ct(Ze,N.ADD_ATTR,tt))),bn(N,"ADD_URI_SAFE_ATTR")&&zi(N.ADD_URI_SAFE_ATTR)&&ct(R,N.ADD_URI_SAFE_ATTR,tt),bn(N,"FORBID_CONTENTS")&&zi(N.FORBID_CONTENTS)&&(qe===pn&&(qe=Mn(qe)),ct(qe,N.FORBID_CONTENTS,tt)),bn(N,"ADD_FORBID_CONTENTS")&&zi(N.ADD_FORBID_CONTENTS)&&(qe===pn&&(qe=Mn(qe)),ct(qe,N.ADD_FORBID_CONTENTS,tt)),la&&(Ce["#text"]=!0),vt&&ct(Ce,["html","head","body"]),Ce.table&&(ct(Ce,["tbody"]),delete Ln.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 ae=X;X=N.TRUSTED_TYPES_POLICY;try{T=Z("")}catch(Te){throw X=ae,Te}}else N.TRUSTED_TYPES_POLICY===null?(X=void 0,T=""):(X===void 0&&(X=he()),X&&typeof T=="string"&&(T=Z("")));Nn&&Nn(N),vn=N},ra=ct({},[...Nd,...xd,...WS]),Ta=ct({},[...Td,...JS]),Wt=function(N,U,ae){return U.namespaceURI===Qe?N==="svg":U.namespaceURI===ye?N==="svg"&&(ae==="annotation-xml"||mt[ae]):!!ra[N]},Gn=function(N,U,ae){return U.namespaceURI===Qe?N==="math":U.namespaceURI===ze?N==="math"&&sa[ae]:!!Ta[N]},Xn=function(N,U,ae){return U.namespaceURI===ze&&!sa[ae]||U.namespaceURI===ye&&!mt[ae]?!1:!Ta[N]&&(Na[N]||!ra[N])},Vn=function(N){let U=O(N);(!U||!U.tagName)&&(U={namespaceURI:et,tagName:"template"});const ae=Is(N.tagName),Te=Is(U.tagName);return _e[N.namespaceURI]?N.namespaceURI===ze?Wt(ae,U,Te):N.namespaceURI===ye?Gn(ae,U,Te):N.namespaceURI===Qe?Xn(ae,U,Te):!!(dn==="application/xhtml+xml"&&_e[N.namespaceURI]):!1},ut=function(N){jl(a.removed,{element:N});try{O(N).removeChild(N)}catch{if(_(N),!O(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")}},$=function(N){Y(N);const U=A(N);if(U){const Te=[];zl(U,ke=>{jl(Te,ke)}),zl(Te,ke=>{try{_(ke)}catch{}})}const ae=D(N);if(ae)for(let Te=ae.length-1;Te>=0;--Te){const ke=ae[Te],He=ke&&ke.name;if(typeof He=="string")try{N.removeAttribute(He)}catch{}}},ue=function(N,U){try{jl(a.removed,{attribute:U.getAttributeNode(N),from:U})}catch{jl(a.removed,{attribute:null,from:U})}if(U.removeAttribute(N),N==="is")if(jn||Rn)try{ut(U)}catch{}else try{U.setAttribute(N,"")}catch{}},Ne=function(N){const U=D(N);if(U)for(let ae=U.length-1;ae>=0;--ae){const Te=U[ae],ke=Te&&Te.name;if(!(typeof ke!="string"||Ze[tt(ke)]))try{N.removeAttribute(ke)}catch{}}},Y=function(N){const U=[N];for(;U.length>0;){const ae=U.pop();(V?V(ae):ae.nodeType)===ia.element&&Ne(ae);const ke=A(ae);if(ke)for(let He=ke.length-1;He>=0;--He)U.push(ke[He])}},ge=function(N){if(!Lt)return;const U=[N];for(;U.length>0;){const ae=U.pop(),Te=V?V(ae):ae.nodeType;if(Te===ia.processingInstruction||Te===ia.comment&&gn(mb,ae.data)){try{_(ae)}catch{}continue}if(Te===ia.element){const He=ae,nt=tt(j?j(ae):ae.nodeName);try{He.hasAttribute&&He.hasAttribute("patchsrc")&&He.removeAttribute("patchsrc"),He.hasAttribute&&He.hasAttribute("for")&&nt!=="label"&&nt!=="output"&&He.removeAttribute("for")}catch{}}const ke=A(ae);if(ke)for(let He=ke.length-1;He>=0;--He)U.push(ke[He])}},Ie=function(N){let U=null,ae=null;if(An)N="<remove></remove>"+N;else{const He=lb(N,/^[\r\n\t ]+/);ae=He&&He[0]}dn==="application/xhtml+xml"&&et===Qe&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Te=X?Z(N):N;if(et===Qe)try{U=new b().parseFromString(Te,dn)}catch{}if(!U||!U.documentElement){U=J.createDocument(et,"template",null);try{U.documentElement.innerHTML=Ae?T:Te}catch{}}const ke=U.body||U.documentElement;return N&&ae&&ke.insertBefore(r.createTextNode(ae),ke.childNodes[0]||null),et===Qe?De.call(U,vt?"html":"body")[0]:vt?U.documentElement:ke},Fe=function(N){const U=le?le(N):N.ownerDocument;return fe.call(U||N,N,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},dt=function(N){return N=js(N,B," "),N=js(N,re," "),N=js(N,me," "),N},gt=function(N){var U;N.normalize();const ae=le?le(N):N.ownerDocument,Te=fe.call(ae||N,N,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let ke=Te.nextNode();for(;ke;)ke.data=dt(ke.data),ke=Te.nextNode();const He=(U=N.querySelectorAll)===null||U===void 0?void 0:U.call(N,"template");He&&zl(He,nt=>{Zt(nt.content)&>(nt.content)})},Bt=function(N){const U=j?j(N):null;return typeof U!="string"||tt(U)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==D(N)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function"||N.nodeType!==V(N)||N.childNodes!==A(N)},Zt=function(N){if(!V||typeof N!="object"||N===null)return!1;try{return V(N)===ia.documentFragment}catch{return!1}},ft=function(N){if(!V||typeof N!="object"||N===null)return!1;try{return typeof V(N)=="number"}catch{return!1}};function zt(te,N,U){te.length!==0&&zl(te,ae=>{ae.call(a,N,U,vn)})}const il=function(N,U){return!!(Lt&&N.hasChildNodes()&&!ft(N.firstElementChild)&&gn(pb,N.textContent)&&gn(pb,N.innerHTML)||Lt&&N.namespaceURI===Qe&&U==="style"&&ft(N.firstElementChild)||N.nodeType===ia.processingInstruction||Lt&&N.nodeType===ia.comment&&gn(mb,N.data))},li=function(N,U,ae){if(!Ln[U]&&ri(U)&&(Je.tagNameCheck instanceof RegExp&&gn(Je.tagNameCheck,U)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(U)))return!1;if(la&&!qe[U]){const Te=O(N),ke=A(N);if(ke&&Te){const He=ke.length;for(let nt=He-1;nt>=0;--nt){const de=N===ae?x(ke[nt],!0):ke[nt];Te.insertBefore(de,C(N))}}}return ut(N),!0},si=function(N,U,ae,Te){return N.length===0?U:U===ae||U===Te?Mn(U):U},Ba=function(N,U){if(zt(z.beforeSanitizeElements,N,null),N!==U&&O(N)===null)return un&&Y(N),!0;if(Bt(N))return ut(N),!0;const ae=tt(j?j(N):N.nodeName);if(Ce=si(z.uponSanitizeElement,Ce,St,Tn),zt(z.uponSanitizeElement,N,{tagName:ae,allowedTags:Ce}),N!==U&&O(N)===null)return un&&Y(N),!0;if(il(N,ae))return ut(N),!0;if(Ln[ae]||!(It.tagCheck instanceof Function&&It.tagCheck(ae))&&!Ce[ae]){const ke=li(N,ae,U);return ke===!1&&zt(z.afterSanitizeElements,N,null),ke}if((V?V(N):N.nodeType)===ia.element&&!Vn(N)||(ae==="noscript"||ae==="noembed"||ae==="noframes")&&gn(cw,N.innerHTML))return ut(N),!0;if(je&&N.nodeType===ia.text){const ke=dt(N.textContent);N.textContent!==ke&&(jl(a.removed,{element:N.cloneNode()}),N.textContent=ke)}return zt(z.afterSanitizeElements,N,null),!1},ll=function(N,U,ae){if(Hn[U]||Lt&&U==="patchsrc"||Lt&&U==="for"&&N!=="label"&&N!=="output"||Ht&&(U==="id"||U==="name")&&(ae in r||ae in Ua))return!1;const Te=Ze[U]||It.attributeCheck instanceof Function&&It.attributeCheck(U,N);if(!(on&&gn(ve,U))){if(!(Rt&&gn(Q,U))){if(Te){if(!R[U]){if(!gn($e,js(ae,xe,""))){if(!((U==="src"||U==="xlink:href"||U==="href")&&N!=="script"&&sb(ae,"data:")===0&&Pt[N])){if(!(yn&&!gn(be,js(ae,xe,"")))){if(ae)return!1}}}}}else if(!(ri(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,ae)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(ae))))return!1}}return!0},On=ct({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ri=function(N){return!On[Is(N)]&&gn(Ge,N)},Ia=function(N,U,ae,Te){if(X&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!ae)switch(v.getAttributeType(N,U)){case"TrustedHTML":return Z(Te);case"TrustedScriptURL":return pe(Te)}return Te},oi=function(N,U,ae,Te){try{ae?N.setAttributeNS(ae,U,Te):N.setAttribute(U,Te),Bt(N)?ut(N):ib(a.removed)}catch{ue(U,N)}},Jt=function(N){zt(z.beforeSanitizeAttributes,N,null);const U=N.attributes;if(!U||Bt(N))return;Ze=si(z.uponSanitizeAttribute,Ze,In,zn);const ae={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ze,forceKeepAttr:void 0};let Te=U.length;const ke=tt(N.nodeName);for(;Te--;){const He=U[Te],nt=He.name,de=He.namespaceURI,Ee=He.value,Me=tt(nt),Ve=Ee;let We=nt==="value"?Ve:FS(Ve);if(ae.attrName=Me,ae.attrValue=We,ae.keepAttr=!0,ae.forceKeepAttr=void 0,zt(z.uponSanitizeAttribute,N,ae),We=ae.attrValue,kn&&(Me==="id"||Me==="name")&&sb(We,qt)!==0&&(ue(nt,N),We=qt+We),Lt&&gn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,We)){ue(nt,N);continue}if(Me==="attributename"&&lb(We,"href")){ue(nt,N);continue}if(!ae.forceKeepAttr){if(!ae.keepAttr){ue(nt,N);continue}if(!Ft&&gn(uw,We)){ue(nt,N);continue}if(je&&(We=dt(We)),!ll(ke,Me,We)){ue(nt,N);continue}We=Ia(ke,Me,de,We),We!==Ve&&oi(N,nt,de,We)}}zt(z.afterSanitizeAttributes,N,null)},Ha=function(N){let U=null;const ae=Fe(N);for(zt(z.beforeSanitizeShadowDOM,N,null);U=ae.nextNode();)if(zt(z.uponSanitizeShadowNode,U,null),Ba(U,N),Jt(U),Zt(U.content)&&Ha(U.content),(V?V(U):U.nodeType)===ia.element){const ke=G(U);Zt(ke)&&(Aa(ke),Ha(ke))}zt(z.afterSanitizeShadowDOM,N,null)},Aa=function(N){const U=[{node:N,shadow:null}];for(;U.length>0;){const ae=U.pop();if(ae.shadow){Ha(ae.shadow);continue}const Te=ae.node,He=(V?V(Te):Te.nodeType)===ia.element,nt=A(Te);if(nt)for(let de=nt.length-1;de>=0;--de)U.push({node:nt[de],shadow:null});if(He){const de=j?j(Te):null;if(typeof de=="string"&&tt(de)==="template"){const Ee=Te.content;Zt(Ee)&&U.push({node:Ee,shadow:null})}}if(He){const de=G(Te);Zt(de)&&U.push({node:null,shadow:de},{node:de,shadow:null})}}};return a.sanitize=function(te){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,ae=null,Te=null,ke=null;if(Ae=!te,Ae&&(te="<!-->"),typeof te!="string"&&!ft(te)&&(te=VS(te),typeof te!="string"))throw Wi("dirty is not a string, aborting");if(!a.isSupported)return te;Ot?(Ce=Tn,Ze=zn):xa(N),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(Ce=Mn(Ce)),z.uponSanitizeAttribute.length>0&&(Ze=Mn(Ze)),a.removed=[];const He=un&&typeof te!="string"&&ft(te);if(He){ge(te);const Ee=j?j(te):te.nodeName;if(typeof Ee=="string"){const Me=tt(Ee);if(!Ce[Me]||Ln[Me])throw $(te),Wi("root node is forbidden and cannot be sanitized in-place")}if(Bt(te))throw $(te),Wi("root node is clobbered and cannot be sanitized in-place");try{Aa(te)}catch(Me){throw $(te),Me}}else if(ft(te))U=Ie("<!---->"),ae=U.ownerDocument.importNode(te,!0),ae.nodeType===ia.element&&ae.nodeName==="BODY"||ae.nodeName==="HTML"?U=ae:U.appendChild(ae),Aa(ae);else{if(!jn&&!je&&!vt&&te.indexOf("<")===-1)return X&&cn?Z(te):te;if(U=Ie(te),!U)return jn?null:cn?T:""}U&&An&&ut(U.firstChild);const nt=He?te:U;try{const Ee=Fe(nt);for(;Te=Ee.nextNode();)Ba(Te,nt),Jt(Te),Zt(Te.content)&&Ha(Te.content)}catch(Ee){throw He&&($(te),zl(a.removed,Me=>{Me.element&&Y(Me.element)})),Ee}if(He)return zl(a.removed,Ee=>{Ee.element&&Y(Ee.element)}),je&>(te),te;if(jn){if(je&>(U),Rn)for(ke=we.call(U.ownerDocument);U.firstChild;)ke.appendChild(U.firstChild);else ke=U;return(Ze.shadowroot||Ze.shadowrootmode)&&(ke=w.call(s,ke,!0)),ke}let de=vt?U.outerHTML:U.innerHTML;return vt&&Ce["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&gn(rw,U.ownerDocument.doctype.name)&&(de="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
|
|
177
|
-
`+de),je&&(de=dt(de)),X&&cn?Z(de):de},a.setConfig=function(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xa(te),Ot=!0,Tn=Ce,zn=Ze},a.clearConfig=function(){vn=null,Ot=!1,Tn=null,zn=null,X=q,T=""},a.isValidAttribute=function(te,N,U){vn||xa({});const ae=tt(te),Te=tt(N);return ll(ae,Te,U)},a.addHook=function(te,N){typeof N=="function"&&bn(z,te)&&jl(z[te],N)},a.removeHook=function(te,N){if(bn(z,te)){if(N!==void 0){const U=$S(z[te],N);return U===-1?void 0:YS(z[te],U,1)[0]}return ib(z[te])}},a.removeHooks=function(te){bn(z,te)&&(z[te]=[])},a.removeAllHooks=function(){z=gb()},a}var hw=ry();function af(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var al=af();function oy(i){al=i}var el={exec:()=>null};function Ul(i){let a=[];return r=>{let s=Math.max(0,Math.min(3,r-1)),u=a[s];return u||(u=i(s),a[s]=u),u}}function lt(i,a=""){let r=typeof i=="string"?i:i.source,s={replace:(u,f)=>{let p=typeof f=="string"?f:f.source;return p=p.replace(Dn.caret,"$1"),r=r.replace(u,p),s},getRegex:()=>new RegExp(r,a)};return s}var pw=((i="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+i)}catch{return!1}})(),Dn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ul(i=>new RegExp(`^ {0,${i}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ul(i=>new RegExp(`^ {0,${i}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}#`)),htmlBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ul(i=>new RegExp(`^ {0,${i}}>`))},mw=/^(?:[ \t]*(?:\n|$))+/,gw=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,bw=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ys=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,yw=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,lf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,cy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,uy=lt(cy).replace(/bull/g,lf).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(),vw=lt(cy).replace(/bull/g,lf).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(),sf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ew=/^[^\n]+/,rf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,_w=lt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",rf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Sw=lt(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,lf).getRegex(),So="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",of=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ww=lt("^ {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",of).replace("tag",So).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),dy=i=>lt(sf).replace("hr",Ys).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",i).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",So).getRegex(),Nw=dy(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),xw=dy(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Tw=lt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",xw).getRegex(),cf={blockquote:Tw,code:gw,def:_w,fences:bw,heading:yw,hr:Ys,html:ww,lheading:uy,list:Sw,newline:mw,paragraph:Nw,table:el,text:Ew},bb=lt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ys).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",So).getRegex(),Aw={...cf,lheading:vw,table:bb,paragraph:lt(sf).replace("hr",Ys).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",bb).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",So).getRegex()},Rw={...cf,html:lt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",of).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:el,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:lt(sf).replace("hr",Ys).replace("heading",` *#{1,6} *[^
|
|
178
|
-
]`).replace("lheading",uy).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},kw=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ow=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,fy=/^( {2,}|\\)\n(?!\s*$)/,Cw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ii=/[\p{P}\p{S}]/u,$l=/[\s\p{P}\p{S}]/u,Fs=/[^\s\p{P}\p{S}]/u,Mw=lt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,$l).getRegex(),Dw=/[\p{Pi}\p{Ps}"']/u,hy=/(?!~)[\p{P}\p{S}]/u,Lw=/(?!~)[\s\p{P}\p{S}]/u,zw=/(?:[^\s\p{P}\p{S}]|~)/u,jw=lt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",pw?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),py=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Uw=lt(py,"u").replace(/punct/g,ii).getRegex(),Bw=lt(py,"u").replace(/punct/g,hy).getRegex(),Iw=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Hw=lt(Iw,"u").replace(/openQuote/g,Dw).replace(/punct/g,ii).getRegex(),my="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",qw=lt(my,"gu").replace(/notPunctSpace/g,Fs).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Gw=lt(my,"gu").replace(/notPunctSpace/g,zw).replace(/punctSpace/g,Lw).replace(/punct/g,hy).getRegex(),$w="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Yw=lt($w,"gu").replace(/notPunctSpace/g,Fs).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Fw=lt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Fs).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Pw="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Kw=lt(Pw,"gu").replace(/notPunctSpace/g,Fs).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Zw=lt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ii).getRegex(),Xw="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Vw=lt(Xw,"gu").replace(/notPunctSpace/g,Fs).replace(/punctSpace/g,$l).replace(/punct/g,ii).getRegex(),Qw=lt(/\\(punct)/,"gu").replace(/punct/g,ii).getRegex(),Ww=lt(/^<(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(),Jw=lt(of).replace("(?:-->|$)","-->").getRegex(),eN=lt("^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",Jw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ho=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,tN=lt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ho).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gy=lt(/^!?\[(label)\]\[(ref)\]/).replace("label",ho).replace("ref",rf).getRegex(),by=lt(/^!?\[(ref)\](?:\[\])?/).replace("ref",rf).getRegex(),nN=lt("reflink|nolink(?!\\()","g").replace("reflink",gy).replace("nolink",by).getRegex(),yb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,uf={_backpedal:el,anyPunctuation:Qw,autolink:Ww,blockSkip:jw,br:fy,code:Ow,del:el,delLDelim:el,delRDelim:el,emStrongLDelim:Uw,emStrongRDelimAst:qw,emStrongRDelimUnd:Fw,escape:kw,link:tN,nolink:by,punctuation:Mw,reflink:gy,reflinkSearch:nN,tag:eN,text:Cw,url:el},aN={...uf,emStrongLDelim:Hw,emStrongRDelimAst:Yw,emStrongRDelimUnd:Kw,link:lt(/^!?\[(label)\]\((.*?)\)/).replace("label",ho).getRegex(),reflink:lt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ho).getRegex()},Bd={...uf,emStrongRDelimAst:Gw,emStrongLDelim:Bw,delLDelim:Zw,delRDelim:Vw,url:lt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",yb).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:lt(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",yb).getRegex()},iN={...Bd,br:lt(fy).replace("{2,}","*").getRegex(),text:lt(Bd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ao={normal:cf,gfm:Aw,pedantic:Rw},Bs={normal:uf,gfm:Bd,breaks:iN,pedantic:aN},lN={"&":"&","<":"<",">":">",'"':""","'":"'"},vb=i=>lN[i];function Da(i,a){if(a){if(Dn.escapeTest.test(i))return i.replace(Dn.escapeReplace,vb)}else if(Dn.escapeTestNoEncode.test(i))return i.replace(Dn.escapeReplaceNoEncode,vb);return i}function Eb(i){try{i=encodeURI(i).replace(Dn.percentDecode,"%")}catch{return null}return i}function _b(i,a){var f;let r=i.replace(Dn.findPipe,(p,y,g)=>{let m=!1,b=y;for(;--b>=0&&g[b]==="\\";)m=!m;return m?"|":" |"}),s=r.split(Dn.splitPipe),u=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),a)if(s.length>a)s.splice(a);else for(;s.length<a;)s.push("");for(;u<s.length;u++)s[u]=s[u].trim().replace(Dn.slashPipe,"|");return s}function Di(i,a,r){let s=i.length;if(s===0)return"";let u=0;for(;u<s&&i.charAt(s-u-1)===a;)u++;return i.slice(0,s-u)}function Sb(i){let a=i.split(`
|
|
179
|
-
`),r=a.length-1;for(;r>=0&&Dn.blankLine.test(a[r]);)r--;return a.length-r<=2?i:a.slice(0,r+1).join(`
|
|
180
|
-
`)}function sN(i,a){if(i.indexOf(a[1])===-1)return-1;let r=0;for(let s=0;s<i.length;s++)if(i[s]==="\\")s++;else if(i[s]===a[0])r++;else if(i[s]===a[1]&&(r--,r<0))return s;return r>0?-2:-1}function rN(i,a=0){let r=a,s="";for(let u of i)if(u===" "){let f=4-r%4;s+=" ".repeat(f),r+=f}else s+=u,r++;return s}function wb(i,a,r,s,u){let f=a.href,p=a.title||null,y=i[1].replace(u.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:i[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:p,text:y,tokens:s.inlineTokens(y)};return s.state.inLink=!1,g}function oN(i,a,r){let s=i.match(r.other.indentCodeCompensation);if(s===null)return a;let u=s[1];return a.split(`
|
|
181
|
-
`).map(f=>{let p=f.match(r.other.beginningSpace);if(p===null)return f;let[y]=p;return y.length>=u.length?f.slice(u.length):f}).join(`
|
|
182
|
-
`)}var po=class{constructor(i){At(this,"options");At(this,"rules");At(this,"lexer");this.options=i||al}space(i){let a=this.rules.block.newline.exec(i);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(i){let a=this.rules.block.code.exec(i);if(a){let r=this.options.pedantic?a[0]:Sb(a[0]),s=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:s}}}fences(i){let a=this.rules.block.fences.exec(i);if(a){let r=a[0],s=oN(r,a[3]||"",this.rules);return{type:"code",raw:r,lang:a[2]?a[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):a[2],text:s}}}heading(i){let a=this.rules.block.heading.exec(i);if(a){let r=a[2].trim();if(this.rules.other.endingHash.test(r)){let s=Di(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:Di(a[0],`
|
|
183
|
-
`),depth:a[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(i){let a=this.rules.block.hr.exec(i);if(a)return{type:"hr",raw:Di(a[0],`
|
|
184
|
-
`)}}blockquote(i){let a=this.rules.block.blockquote.exec(i);if(a){let r=Di(a[0],`
|
|
185
|
-
`).split(`
|
|
186
|
-
`),s="",u="",f=[];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,"");s=s?`${s}
|
|
189
|
-
${m}`:m,u=u?`${u}
|
|
190
|
-
${b}`:b;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,f,!0),this.lexer.state.top=v,r.length===0)break;let S=f.at(-1);if((S==null?void 0:S.type)==="code")break;if((S==null?void 0:S.type)==="blockquote"){let x=S,_=r.join(`
|
|
191
|
-
`),C=x.raw+`
|
|
192
|
-
`+_.replace(this.rules.other.blockquoteSetextReplace2,""),A=this.blockquote(C);f[f.length-1]=A,s=`${s}
|
|
193
|
-
${_}`,u=u.substring(0,u.length-x.text.length)+A.text;break}else if((S==null?void 0:S.type)==="list"){let x=S,_=x.raw+`
|
|
194
|
-
`+r.join(`
|
|
195
|
-
`),C=this.list(_);f[f.length-1]=C,s=s.substring(0,s.length-S.raw.length)+C.raw,u=u.substring(0,u.length-x.raw.length)+C.raw,r=_.substring(f.at(-1).raw.length).split(`
|
|
196
|
-
`);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(i){let a=this.rules.block.list.exec(i);if(a){let r=a[1].trim(),s=r.length>1,u={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let f=this.rules.other.listItemRegex(r),p=!1;for(;i;){let g=!1,m="",b="";if(!(a=f.exec(i))||this.rules.block.hr.test(i))break;m=a[0],i=i.substring(m.length);let v=rN(a[2].split(`
|
|
197
|
-
`,1)[0],a[1].length),S=i.split(`
|
|
198
|
-
`,1)[0],x=!v.trim(),_=0;if(this.options.pedantic?(_=2,b=v.trimStart()):x?_=a[1].length+1:(_=v.search(this.rules.other.nonSpaceChar),_=_>4?1:_,b=v.slice(_),_+=a[1].length),x&&this.rules.other.blankLine.test(S)&&(m+=S+`
|
|
199
|
-
`,i=i.substring(S.length+1),g=!0),!g){let C=this.rules.other.nextBulletRegex(_),A=this.rules.other.hrRegex(_),O=this.rules.other.fencesBeginRegex(_),G=this.rules.other.headingBeginRegex(_),D=this.rules.other.htmlBeginRegex(_),V=this.rules.other.blockquoteBeginRegex(_);for(;i;){let j=i.split(`
|
|
200
|
-
`,1)[0],le;if(S=j,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),le=S):le=S.replace(this.rules.other.tabCharGlobal," "),O.test(S)||G.test(S)||D.test(S)||V.test(S)||C.test(S)||A.test(S))break;if(le.search(this.rules.other.nonSpaceChar)>=_||!S.trim())b+=`
|
|
201
|
-
`+le.slice(_);else{if(x||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(v)||G.test(v)||A.test(v))break;b+=`
|
|
202
|
-
`+S}x=!S.trim(),m+=j+`
|
|
203
|
-
`,i=i.substring(j.length+1),v=le.slice(_)}}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(i){let a=this.rules.block.html.exec(i);if(a){let r=Sb(a[0]);return{type:"html",block:!0,raw:r,pre:a[1]==="pre"||a[1]==="script"||a[1]==="style",text:r}}}def(i){let a=this.rules.block.def.exec(i);if(a){let r=a[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=a[2]?a[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=a[3]?a[3].substring(1,a[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):a[3];return{type:"def",tag:r,raw:Di(a[0],`
|
|
204
|
-
`),href:s,title:u}}}table(i){var p;let a=this.rules.block.table.exec(i);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let r=_b(a[1]),s=a[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(p=a[3])!=null&&p.trim()?a[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
205
|
-
`):[],f={type:"table",raw:Di(a[0],`
|
|
206
|
-
`),header:[],align:[],rows:[]};if(r.length===s.length){for(let y of s)this.rules.other.tableAlignRight.test(y)?f.align.push("right"):this.rules.other.tableAlignCenter.test(y)?f.align.push("center"):this.rules.other.tableAlignLeft.test(y)?f.align.push("left"):f.align.push(null);for(let y=0;y<r.length;y++)f.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:f.align[y]});for(let y of u)f.rows.push(_b(y,f.header.length).map((g,m)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:f.align[m]})));return f}}lheading(i){let a=this.rules.block.lheading.exec(i);if(a){let r=a[1].trim();return{type:"heading",raw:Di(a[0],`
|
|
207
|
-
`),depth:a[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(i){let a=this.rules.block.paragraph.exec(i);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(i){let a=this.rules.block.text.exec(i);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(i){let a=this.rules.inline.escape.exec(i);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(i){let a=this.rules.inline.tag.exec(i);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(i){let a=this.rules.inline.link.exec(i);if(a){let r=a[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let f=Di(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{let f=sN(a[2],"()");if(f===-2)return;if(f>-1){let p=(a[0].indexOf("!")===0?5:4)+a[1].length+f;a[2]=a[2].substring(0,f),a[0]=a[0].substring(0,p).trim(),a[3]=""}}let s=a[2],u="";if(this.options.pedantic){let f=this.rules.other.pedanticHrefTitle.exec(s);f&&(s=f[1],u=f[3])}else u=a[3]?a[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),wb(a,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},a[0],this.lexer,this.rules)}}reflink(i,a){let r;if((r=this.rules.inline.reflink.exec(i))||(r=this.rules.inline.nolink.exec(i))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=a[s.toLowerCase()];if(!u){let f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return wb(r,u,r[0],this.lexer,this.rules)}}emStrong(i,a,r=""){let s=this.rules.inline.emStrongLDelim.exec(i);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,f,p,y=u,g=0,m=s[0][0],b=r===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,a=a.slice(-1*i.length+u);(s=v.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f)continue;if(p=[...f].length,s[3]||s[4]){y+=p;continue}else if(s[5]||s[6]){if(u%3&&!((u+p)%3)){g+=p;continue}if(b)break}if(y-=p,y>0)continue;p=Math.min(p,p+y+g);let S=[...s[0]][0].length,x=i.slice(0,u+s.index+S+p);if(Math.min(u,p)%2){let C=x.slice(1,-1);return{type:"em",raw:x,text:C,tokens:this.lexer.inlineTokens(C)}}let _=x.slice(2,-2);return{type:"strong",raw:x,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(i){let a=this.rules.inline.code.exec(i);if(a){let r=a[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:a[0],text:r}}}br(i){let a=this.rules.inline.br.exec(i);if(a)return{type:"br",raw:a[0]}}del(i,a,r=""){let s=this.rules.inline.delLDelim.exec(i);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,f,p,y=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,a=a.slice(-1*i.length+u);(s=g.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f||(p=[...f].length,p!==u))continue;if(s[3]||s[4]){y+=p;continue}if(y-=p,y>0)continue;p=Math.min(p,p+y);let m=[...s[0]][0].length,b=i.slice(0,u+s.index+m+p),v=b.slice(u,-u);return{type:"del",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(i){let a=this.rules.inline.autolink.exec(i);if(a){let r,s;return a[2]==="@"?(r=a[1],s="mailto:"+r):(r=a[1],s=r),{type:"link",raw:a[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(i){var r;let a;if(a=this.rules.inline.url.exec(i)){let s,u;if(a[2]==="@")s=a[0],u="mailto:"+s;else{let f;do f=a[0],a[0]=((r=this.rules.inline._backpedal.exec(a[0]))==null?void 0:r[0])??"";while(f!==a[0]);s=a[0],a[1]==="www."?u="http://"+a[0]:u=a[0]}return{type:"link",raw:a[0],text:s,href:u,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(i){let a=this.rules.inline.text.exec(i);if(a){let r=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:r}}}},Sa=class Id{constructor(a){At(this,"tokens");At(this,"options");At(this,"state");At(this,"inlineQueue");At(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=a||al,this.options.tokenizer=this.options.tokenizer||new po,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Dn,block:ao.normal,inline:Bs.normal};this.options.pedantic?(r.block=ao.pedantic,r.inline=Bs.pedantic):this.options.gfm&&(r.block=ao.gfm,this.options.breaks?r.inline=Bs.breaks:r.inline=Bs.gfm),this.tokenizer.rules=r}static get rules(){return{block:ao,inline:Bs}}static lex(a,r){return new Id(r).lex(a)}static lexInline(a,r){return new Id(r).inlineTokens(a)}lex(a){a=a.replace(Dn.carriageReturn,`
|
|
209
|
-
`),this.blockTokens(a,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(a,r=[],s=!1){var f,p,y;this.tokenizer.lexer=this,this.options.pedantic&&(a=a.replace(Dn.tabCharGlobal," ").replace(Dn.spaceLine,""));let u=1/0;for(;a;){if(a.length<u)u=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}let g;if((p=(f=this.options.extensions)==null?void 0:f.block)!=null&&p.some(b=>(g=b.call({lexer:this},a,r))?(a=a.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.space(a)){a=a.substring(g.raw.length);let b=r.at(-1);g.raw.length===1&&b!==void 0?b.raw+=`
|
|
210
|
-
`: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(x=>{S=x.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);s&&(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),s=m.length!==a.length,a=a.substring(g.raw.length);continue}if(g=this.tokenizer.text(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
220
|
-
`)?"":`
|
|
221
|
-
`)+g.raw,b.text+=`
|
|
222
|
-
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(a){this.infiniteLoopError(a.charCodeAt(0));break}}return this.state.top=!0,r}inline(a,r=[]){return this.inlineQueue.push({src:a,tokens:r}),r}inlineTokens(a,r=[]){var y,g,m,b,v;this.tokenizer.lexer=this;let s=a;if(this.tokens.links){let S=Object.keys(this.tokens.links);S.length>0&&(s=s.replace(this.tokenizer.rules.inline.reflinkSearch,x=>S.includes(x.slice(x.lastIndexOf("[")+1,-1))?"["+"a".repeat(x.length-2)+"]":x))}s=s.replace(this.tokenizer.rules.inline.anyPunctuation,S=>"+".repeat(S.length)),s=s.replace(this.tokenizer.rules.inline.blockSkip,(S,x,_)=>{let C=_?_.length:0;return S.slice(0,C)+"["+"a".repeat(S.length-C-2)+"]"}),s=((g=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:g.call({lexer:this},s))??s;let u=!1,f="",p=1/0;for(;a;){if(a.length<p)p=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}u||(f=""),u=!1;let S;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(_=>(S=_.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 _=r.at(-1);S.type==="text"&&(_==null?void 0:_.type)==="text"?(_.raw+=S.raw,_.text+=S.text):r.push(S);continue}if(S=this.tokenizer.emStrong(a,s,f)){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,s,f)){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 x=a;if((v=this.options.extensions)!=null&&v.startInline){let _=1/0,C=a.slice(1),A;this.options.extensions.startInline.forEach(O=>{A=O.call({lexer:this},C),typeof A=="number"&&A>=0&&(_=Math.min(_,A))}),_<1/0&&_>=0&&(x=a.substring(0,_+1))}if(S=this.tokenizer.inlineText(x)){a=a.substring(S.raw.length),S.raw.slice(-1)!=="_"&&(f=S.raw.slice(-1)),u=!0;let _=r.at(-1);(_==null?void 0:_.type)==="text"?(_.raw+=S.raw,_.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)}},mo=class{constructor(i){At(this,"options");At(this,"parser");this.options=i||al}space(i){return""}code({text:i,lang:a,escaped:r}){var f;let s=(f=(a||"").match(Dn.notSpaceStart))==null?void 0:f[0],u=i.replace(Dn.endingNewline,"")+`
|
|
223
|
-
`;return s?'<pre><code class="language-'+Da(s)+'">'+(r?u:Da(u,!0))+`</code></pre>
|
|
224
|
-
`:"<pre><code>"+(r?u:Da(u,!0))+`</code></pre>
|
|
225
|
-
`}blockquote({tokens:i}){return`<blockquote>
|
|
226
|
-
${this.parser.parse(i)}</blockquote>
|
|
227
|
-
`}html({text:i}){return i}def(i){return""}heading({tokens:i,depth:a}){return`<h${a}>${this.parser.parseInline(i)}</h${a}>
|
|
228
|
-
`}hr(i){return`<hr>
|
|
229
|
-
`}list(i){let a=i.ordered,r=i.start,s="";for(let p=0;p<i.items.length;p++){let y=i.items[p];s+=this.listitem(y)}let u=a?"ol":"ul",f=a&&r!==1?' start="'+r+'"':"";return"<"+u+f+`>
|
|
230
|
-
`+s+"</"+u+`>
|
|
231
|
-
`}listitem(i){return`<li>${this.parser.parse(i.tokens)}</li>
|
|
232
|
-
`}checkbox({checked:i}){return"<input "+(i?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:i}){return`<p>${this.parser.parseInline(i)}</p>
|
|
233
|
-
`}table(i){let a="",r="";for(let u=0;u<i.header.length;u++)r+=this.tablecell(i.header[u]);a+=this.tablerow({text:r});let s="";for(let u=0;u<i.rows.length;u++){let f=i.rows[u];r="";for(let p=0;p<f.length;p++)r+=this.tablecell(f[p]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
234
|
-
<thead>
|
|
235
|
-
`+a+`</thead>
|
|
236
|
-
`+s+`</table>
|
|
237
|
-
`}tablerow({text:i}){return`<tr>
|
|
238
|
-
${i}</tr>
|
|
239
|
-
`}tablecell(i){let a=this.parser.parseInline(i.tokens),r=i.header?"th":"td";return(i.align?`<${r} align="${i.align}">`:`<${r}>`)+a+`</${r}>
|
|
240
|
-
`}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Da(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:a,tokens:r}){let s=this.parser.parseInline(r),u=Eb(i);if(u===null)return s;i=u;let f='<a href="'+i+'"';return a&&(f+=' title="'+Da(a)+'"'),f+=">"+s+"</a>",f}image({href:i,title:a,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let u=Eb(i);if(u===null)return Da(r);i=u;let f=`<img src="${i}" alt="${Da(r)}"`;return a&&(f+=` title="${Da(a)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Da(i.text)}},df=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}checkbox({raw:i}){return i}},wa=class Hd{constructor(a){At(this,"options");At(this,"renderer");At(this,"textRenderer");this.options=a||al,this.options.renderer=this.options.renderer||new mo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new df}static parse(a,r){return new Hd(r).parse(a)}static parseInline(a,r){return new Hd(r).parseInline(a)}parse(a){var s,u;this.renderer.parser=this;let r="";for(let f=0;f<a.length;f++){let p=a[f];if((u=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&u[p.type]){let g=p,m=this.options.extensions.renderers[g.type].call({parser:this},g);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(g.type)){r+=m||"";continue}}let y=p;switch(y.type){case"space":{r+=this.renderer.space(y);break}case"hr":{r+=this.renderer.hr(y);break}case"heading":{r+=this.renderer.heading(y);break}case"code":{r+=this.renderer.code(y);break}case"table":{r+=this.renderer.table(y);break}case"blockquote":{r+=this.renderer.blockquote(y);break}case"list":{r+=this.renderer.list(y);break}case"checkbox":{r+=this.renderer.checkbox(y);break}case"html":{r+=this.renderer.html(y);break}case"def":{r+=this.renderer.def(y);break}case"paragraph":{r+=this.renderer.paragraph(y);break}case"text":{r+=this.renderer.text(y);break}default:{let g='Token with "'+y.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return r}parseInline(a,r=this.renderer){var u,f;this.renderer.parser=this;let s="";for(let p=0;p<a.length;p++){let y=a[p];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[y.type]){let m=this.options.extensions.renderers[y.type].call({parser:this},y);if(m!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(y.type)){s+=m||"";continue}}let g=y;switch(g.type){case"escape":{s+=r.text(g);break}case"html":{s+=r.html(g);break}case"link":{s+=r.link(g);break}case"image":{s+=r.image(g);break}case"checkbox":{s+=r.checkbox(g);break}case"strong":{s+=r.strong(g);break}case"em":{s+=r.em(g);break}case"codespan":{s+=r.codespan(g);break}case"br":{s+=r.br(g);break}case"del":{s+=r.del(g);break}case"text":{s+=r.text(g);break}default:{let m='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return s}},lo,Hs=(lo=class{constructor(i){At(this,"options");At(this,"block");this.options=i||al}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(i=this.block){return i?Sa.lex:Sa.lexInline}provideParser(i=this.block){return i?wa.parse:wa.parseInline}},At(lo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),At(lo,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),lo),cN=class{constructor(...i){At(this,"defaults",af());At(this,"options",this.setOptions);At(this,"parse",this.parseMarkdown(!0));At(this,"parseInline",this.parseMarkdown(!1));At(this,"Parser",wa);At(this,"Renderer",mo);At(this,"TextRenderer",df);At(this,"Lexer",Sa);At(this,"Tokenizer",po);At(this,"Hooks",Hs);this.use(...i)}walkTokens(i,a){var s,u;let r=[];for(let f of i)switch(r=r.concat(a.call(this,f)),f.type){case"table":{let p=f;for(let y of p.header)r=r.concat(this.walkTokens(y.tokens,a));for(let y of p.rows)for(let g of y)r=r.concat(this.walkTokens(g.tokens,a));break}case"list":{let p=f;r=r.concat(this.walkTokens(p.items,a));break}default:{let p=f;(u=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&u[p.type]?this.defaults.extensions.childTokens[p.type].forEach(y=>{let g=p[y].flat(1/0);r=r.concat(this.walkTokens(g,a))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,a)))}}return r}use(...i){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let f=a.renderers[u.name];f?a.renderers[u.name]=function(...p){let y=u.renderer.apply(this,p);return y===!1&&(y=f.apply(this,p)),y}:a.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let f=a[u.level];f?f.unshift(u.tokenizer):a[u.level]=[u.tokenizer],u.start&&(u.level==="block"?a.startBlock?a.startBlock.push(u.start):a.startBlock=[u.start]:u.level==="inline"&&(a.startInline?a.startInline.push(u.start):a.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(a.childTokens[u.name]=u.childTokens)}),s.extensions=a),r.renderer){let u=this.defaults.renderer||new mo(this.defaults);for(let f in r.renderer){if(!(f in u))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;let p=f,y=r.renderer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b||""}}s.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new po(this.defaults);for(let f in r.tokenizer){if(!(f in u))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;let p=f,y=r.tokenizer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}s.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new Hs;for(let f in r.hooks){if(!(f in u))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;let p=f,y=r.hooks[p],g=u[p];Hs.passThroughHooks.has(f)?u[p]=m=>{if(this.defaults.async&&Hs.passThroughHooksRespectAsync.has(f))return(async()=>{let v=await y.call(u,m);return g.call(u,v)})();let b=y.call(u,m);return g.call(u,b)}:u[p]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await y.apply(u,m);return v===!1&&(v=await g.apply(u,m)),v})();let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}s.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,f=r.walkTokens;s.walkTokens=function(p){let y=[];return y.push(f.call(this,p)),u&&(y=y.concat(u.call(this,p))),y}}this.defaults={...this.defaults,...s}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,a){return Sa.lex(i,a??this.defaults)}parser(i,a){return wa.parse(i,a??this.defaults)}parseMarkdown(i){return(a,r)=>{let s={...r},u={...this.defaults,...s},f=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&s.async===!1)return f(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));if(u.hooks&&(u.hooks.options=u,u.hooks.block=i),u.async)return(async()=>{let p=u.hooks?await u.hooks.preprocess(a):a,y=await(u.hooks?await u.hooks.provideLexer(i):i?Sa.lex:Sa.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(i):i?wa.parse:wa.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(f);try{u.hooks&&(a=u.hooks.preprocess(a));let p=(u.hooks?u.hooks.provideLexer(i):i?Sa.lex:Sa.lexInline)(a,u);u.hooks&&(p=u.hooks.processAllTokens(p)),u.walkTokens&&this.walkTokens(p,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(i):i?wa.parse:wa.parseInline)(p,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(p){return f(p)}}}onError(i,a){return r=>{if(r.message+=`
|
|
241
|
-
Please report this to https://github.com/markedjs/marked.`,i){let s="<p>An error occurred:</p><pre>"+Da(r.message+"",!0)+"</pre>";return a?Promise.resolve(s):s}if(a)return Promise.reject(r);throw r}}},nl=new cN;function yt(i,a){return nl.parse(i,a)}yt.options=yt.setOptions=function(i){return nl.setOptions(i),yt.defaults=nl.defaults,oy(yt.defaults),yt};yt.getDefaults=af;yt.defaults=al;function uN(...i){return nl.use(...i),yt.defaults=nl.defaults,oy(yt.defaults),yt}yt.use=uN;yt.walkTokens=function(i,a){return nl.walkTokens(i,a)};yt.parseInline=nl.parseInline;yt.Parser=wa;yt.parser=wa.parse;yt.Renderer=mo;yt.TextRenderer=df;yt.Lexer=Sa;yt.lexer=Sa.lex;yt.Tokenizer=po;yt.Hooks=Hs;yt.parse=yt;yt.options;yt.setOptions;yt.walkTokens;yt.parseInline;wa.parse;Sa.lex;yt.setOptions({gfm:!0,breaks:!1});function ff(i){const a=yt.parse(i??"",{async:!1});return hw.sanitize(a)}function ai({text:i,className:a}){const r=H.useMemo(()=>ff(i),[i]);return i!=null&&i.trim()?d.jsx("div",{className:`md ${a??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const dN={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function fN(i){return i.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(a,r)=>dN[r.toLowerCase()]??a).replace(/\s+/g," ").trim()}function hN(i,a){return fN(a)!==i.replace(/\s+/g," ").trim()}function Ps({text:i,className:a}){const r=H.useMemo(()=>i!=null&&i.trim()?ff(i):"",[i]);return!r||!hN(i,r)?null:d.jsxs("div",{className:"md-preview",children:[d.jsx("div",{className:"lab",children:"preview"}),d.jsx("div",{className:`md prose ${a??""}`,dangerouslySetInnerHTML:{__html:r}})]})}const pN=/\.(md|markdown)$/i;function hf(i){return pN.test(i)}function mN(i){return/^new file mode /m.test(i)||/^--- \/dev\/null$/m.test(i)}function gN(i){const a=[];let r=0,s=!1;const u=i.split(`
|
|
242
|
-
`);for(let f=0;f<u.length;f++){const p=u[f],y=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),s=!0;continue}s&&(p===""&&f===u.length-1||p.startsWith("\\")||p.startsWith("-")||(p.startsWith("+")||p.startsWith(" ")||p==="")&&(a.push({n:r,text:p===""?"":p.slice(1),added:p.startsWith("+")}),r++))}return a}const io=i=>(i.match(/\n/g)??[]).length;function pf(i){const a=gN(i),r=mN(i),s=[];let u=[];const f=()=>{if(u.length===0)return;const p=u[0].n,y=new Set(u.filter(b=>b.added).map(b=>b.n)),g=u.map(b=>b.text).join(`
|
|
243
|
-
`)+`
|
|
244
|
-
`;let m=p;for(const b of yt.lexer(g)){const v=b.raw,S=v.trimEnd();if(S===""){m+=io(v);continue}const x=v.length-v.trimStart().length,_=m+io(v.slice(0,x)),C=_+io(S.slice(x));let A=!1;for(let O=_;O<=C&&!A;O++)A=y.has(O);s.push({kind:"block",raw:S.slice(x),from:_,to:C,changed:A}),m+=io(v)}u=[]};for(const p of a){const y=u[u.length-1];if(y&&p.n!==y.n+1){const g=p.n-y.n-1;f(),s.push({kind:"gap",lines:g})}u.push(p)}return f(),{items:s,isNew:r,lines:a.length}}const qd="cerber.stickyChapters";function bN(i){return i!=="off"}function yN(){try{return bN(localStorage.getItem(qd))}catch{return!0}}function yy(){const[i,a]=H.useState(yN);return[i,s=>{try{s?localStorage.removeItem(qd):localStorage.setItem(qd,"off")}catch{}a(s)}]}function ro(i){const a=i.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 Gd={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},vN={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function vy(i,a=!1){return a?"COMMENT":(i==null?void 0:i.recommendation)==="approve"?"APPROVE":(i==null?void 0:i.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function Ey(i,a){const r=L_(i);return a.filter(s=>{var u;return!s.drifted&&s.line!=null&&((u=r.get(s.path))==null?void 0:u.has(s.line))})}function Nb(i,a){const r=f=>{const p=Number((f??"").trim());return Number.isInteger(p)&&p>0?p:null},s=r(a);if(s!=null)return{line:s,side:"new"};const u=r(i);return u!=null?{line:u,side:"old"}:null}function _y(i){const a=i.comments.filter(y=>y.status==="dropped"),r=i.comments.filter(y=>y.status!=="dropped"),s=r.filter(y=>ro(y)==="reply"),u=r.filter(y=>ro(y)==="hold"),f=r.filter(y=>ro(y)==="post"),p=Ey(i.diff,f);return{inline:p,folded:f.filter(y=>!p.includes(y)),dropped:a,replies:s,held:u}}function xb(i){return i.sent!=null||(i.priorSends??[]).length>0}function Tb(i){return(i.priorSends??[]).length+(i.sent?1:0)}function EN(i,a){if(i.sent==null)return!1;const r=a==null?void 0:a.headSha;return r!=null&&i.pr.headSha!==""&&r!==i.pr.headSha}function _N(i,a){const r=i.alreadyRaised;if(!r)return null;if(i.status==="dropped")return a?"dropped — not posted":"dropped — never posts";if(r.replied)return"replied in their thread";const s=ro(i);return a?s==="reply"?"the reply in their thread did not post":s==="hold"?"left out of the review":"posted as a comment of its own":s==="reply"?"replies in their thread when you send":s==="hold"?"left out of Send":r.decision==="send"?"posts as a comment of its own":"posts — their thread was resolved, and the problem is still here"}function SN(i){return i.where.kind==="thread"?`${i.where.state} thread`:"review"}function Rd(i){const a=i.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:a.filter(f=>f.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:f})=>`${Fb[u]} ${f} ${u}${f===1?"":"s"}`).join(" · ")}function wN(i){if(!i.comments.some(s=>s.severity!=null))return null;const r=i.comments.filter(s=>s.status!=="dropped"&&s.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function NN(i){if(!i.verdict||!i.comments.some(u=>u.severity!=null))return null;const r=i.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,s=i.verdict.recommendation;return s==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:s==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function $d(i){const{inline:a,folded:r,replies:s,held:u}=_y(i),f=[s.length>0?`${s.length} ${s.length===1?"reply":"replies"} in another reviewer's thread`:"",u.length>0?`${u.length} already raised, left out`:""].filter(Boolean);return[xN(i,a,r),...f].join(" · ")}function xN(i,a,r){if(i.bodyOverride!=null)return`${a.length===0?"no inline comments":`${a.length} inline`} · body you wrote`;if(a.length===0&&r.length===0)return"no inline comments · body only";const s=[`${a.length} inline`];return r.length>0&&s.push(`${r.length} folded into the body`),s.join(" · ")}const Yd="cerber.sendKey";function TN(i){return i==="enter"?i:"mod-enter"}function AN(i,a){return a.key!=="Enter"||a.isComposing||a.keyCode===229?!1:a.metaKey||a.ctrlKey?!0:i==="enter"&&!a.shiftKey}let go=null;function RN(i){if(go)return go;try{return TN((i??localStorage).getItem(Yd))}catch{return"mod-enter"}}function kN(i,a){try{const r=a??localStorage;i==="mod-enter"?r.removeItem(Yd):r.setItem(Yd,i),go=null}catch{go=i}}function Sy(){const[i,a]=H.useState(()=>RN());return[i,s=>{kN(s),a(s)}]}const Ab={approve:"approve",comment:"comment",request_changes:"changes"},ON={approve:"approve",comment:"comment",request_changes:"changes"};function CN(i,a){return i.status==="dropped"?"none":i.drifted?"comment":i.origin==="user"?"awaiting":a}function wy(i,a=20){const r=document.getElementById(`c-${i}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}a>0&&requestAnimationFrame(()=>wy(i,a-1))}function MN(i){const a=i,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function Rb(i,a){const r=document.createElement("tr");r.className=a;const s=document.createElement("td");s.colSpan=2;const u=document.createElement("div");return s.appendChild(u),r.appendChild(s),i.after(r),{tr:r,holder:u}}function kb(i,a,r){i.querySelectorAll(".d2h-file-wrapper").forEach(s=>{const u=s.dataset.path;if(!u)return;const f=a.has(u);s.classList.toggle("file-viewed-on",f),s.classList.toggle("file-peek",f&&r.has(u));const p=s.querySelector("input[data-viewed-path]");p&&(p.checked=f)})}function bo(i,a){!i||!a||i.getBoundingClientRect().top<parseFloat(getComputedStyle(a).top)&&requestAnimationFrame(()=>i.scrollIntoView({block:"start"}))}function DN(i){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=i,a.append(r," Viewed"),a}function Ny({pick:i,chatBusy:a,onAdd:r,onAsk:s,onClose:u}){const[f,p]=H.useState(""),y=H.useRef(null);H.useEffect(()=>{var m;return(m=y.current)==null?void 0:m.focus()},[]);const g=f.trim();return d.jsxs("div",{className:"line-composer",children:[d.jsxs("div",{className:"line-composer-head",children:[d.jsxs("span",{className:"comment-loc",children:[i.path,":",i.line]}),i.side==="old"&&d.jsx("span",{className:"faint",title:"GitHub only takes inline comments on the new side of a diff.",children:"this line is gone from the new file — a comment on it posts on the file, not the line"})]}),d.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:f,onChange:m=>p(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),d.jsx(Ps,{className:"comment-body",text:f}),d.jsxs("div",{className:"line-composer-actions",children:[d.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[d.jsx(Ke,{name:"plus"}),"add comment",d.jsx(za,{children:"⌘↵"})]}),d.jsxs("button",{className:"btn btn-accent",disabled:!g||a,title:a?"the reviewer is still answering the last question":"Ask the reviewer about this line — the answer lands in the chat below",onClick:()=>s(g),children:[d.jsx(Ke,{name:"comment"}),"ask the reviewer"]}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function LN({patch:i,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onRead:y,viewedState:g}){const m=H.useMemo(()=>i.trim()?O_(i,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[i]),b=H.useMemo(()=>ja(i).map(Z=>Z.path),[i]),v=H.useMemo(()=>new Set(ja(i).filter(Z=>hf(Z.path)&&pf(Z.patch).lines>0).map(Z=>Z.path)),[i]),S=H.useMemo(()=>a.map(Z=>`${Z.id}@${Z.path}:${Z.line}`).join("|"),[a]),x=H.useRef(null),_=H.useRef(y);_.current=y;const C=H.useRef(g);C.current=g;const[A,O]=H.useState([]),[G,D]=H.useState([]),[V,j]=H.useState(null),[le,X]=H.useState(null);H.useEffect(()=>{var De,w;const Z=x.current;if(!Z)return;Z.innerHTML=m,SS(Z);const pe=new Map,he=[];Z.querySelectorAll(".d2h-file-wrapper").forEach((z,B)=>{var ve,Q,be,xe,Ge;const re=(Q=(ve=z.querySelector(".d2h-file-name"))==null?void 0:ve.textContent)==null?void 0:Q.trim(),me=re&&b.includes(re)?re:b[B];if(re&&pe.set(re,z),me){pe.set(me,z),z.dataset.path=me;const $e=document.createElement("div");if($e.className="file-comments",(be=z.querySelector(".d2h-file-header"))==null||be.after($e),he.push({path:me,el:$e}),v.has(me)){const Ce=document.createElement("button");Ce.type="button",Ce.className="btn btn-sm md-read-toggle",Ce.dataset.readPath=me,Ce.textContent="read as a document",Ce.title="Render this markdown instead of showing it line by line",(xe=z.querySelector(".d2h-file-header"))==null||xe.appendChild(Ce)}(Ge=z.querySelector(".d2h-file-header"))==null||Ge.appendChild(DN(me))}}),kb(Z,C.current.viewed,C.current.peeked);const M=[],J=new Map;for(const z of a){if(z.line==null)continue;const B=pe.get(z.path);if(!B)continue;const re=Array.from(B.querySelectorAll(".d2h-diff-tbody > tr")).find(ve=>{var Q,be;return((be=(Q=ve.querySelector(".line-num2"))==null?void 0:Q.textContent)==null?void 0:be.trim())===String(z.line)});if(!re)continue;const me=Rb(J.get(re)??re,"inline-comment-row");J.set(re,me.tr),M.push({id:z.id,el:me.holder})}O(M),D(he);const fe=z=>{var $e;const B=z.target,re=B.closest(".md-read-toggle");if(re!=null&&re.dataset.readPath){_.current(re.dataset.readPath);return}const me=B.closest(".d2h-file-wrapper");if(B instanceof HTMLInputElement&&B.dataset.viewedPath){B.checked&&bo(me,(me==null?void 0:me.querySelector(".d2h-file-header"))??null),C.current.onToggleViewed(B.dataset.viewedPath);return}if(B.closest(".file-viewed"))return;const ve=($e=B.closest(".d2h-file-header"))==null?void 0:$e.closest(".file-viewed-on");if(ve!=null&&ve.dataset.path){bo(me,(me==null?void 0:me.querySelector(".d2h-file-header"))??null),C.current.onTogglePeek(ve.dataset.path);return}const Q=z.target.closest(".line-add");if(!Q)return;const{path:be,line:xe,side:Ge}=Q.dataset;!be||!xe||j({path:be,line:Number(xe),side:Ge==="old"?"old":"new"})};Z.addEventListener("click",fe);const we=()=>Z.removeEventListener("click",fe);if(s)return j(null),X(null),we;for(const z of Z.querySelectorAll(".d2h-file-wrapper")){const B=z.dataset.path;if(B)for(const re of z.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const me=Nb((De=re.querySelector(".line-num1"))==null?void 0:De.textContent,(w=re.querySelector(".line-num2"))==null?void 0:w.textContent);if(!me)continue;const ve=document.createElement("button");ve.type="button",ve.className="line-add";const Q=`Say something about ${B}:${me.line}`;ve.title=Q,ve.setAttribute("aria-label",Q),ve.tabIndex=-1,ve.dataset.path=B,ve.dataset.line=String(me.line),ve.dataset.side=me.side,re.appendChild(ve)}}return X(null),we},[m,S,b,v,s]);const T=b.filter(Z=>g.viewed.has(Z)).join(`
|
|
245
|
-
`),q=b.filter(Z=>g.peeked.has(Z)).join(`
|
|
246
|
-
`);H.useEffect(()=>{x.current&&kb(x.current,g.viewed,g.peeked)},[T,q]),H.useEffect(()=>{const Z=x.current;if(!Z||!V||s){X(null);return}const pe=Array.from(Z.querySelectorAll(".d2h-file-wrapper")).find(J=>J.dataset.path===V.path),he=Array.from((pe==null?void 0:pe.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(J=>{var De,w;const fe=J.querySelector(".d2h-code-linenumber"),we=Nb((De=fe==null?void 0:fe.querySelector(".line-num1"))==null?void 0:De.textContent,(w=fe==null?void 0:fe.querySelector(".line-num2"))==null?void 0:w.textContent);return(we==null?void 0:we.line)===V.line&&we.side===V.side});if(!he){j(null);return}const M=Rb(he,"line-composer-row");return X(M.holder),()=>M.tr.remove()},[V,A,s]);const ee=a.filter(Z=>!A.some(pe=>pe.id===Z.id)),ce=G.map(Z=>({...Z,comments:ee.filter(pe=>pe.path===Z.path)})).filter(Z=>Z.comments.length>0),Se=ee.filter(Z=>!G.some(pe=>pe.path===Z.path));return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"diff",ref:x}),A.map(({id:Z,el:pe})=>{const he=a.find(M=>M.id===Z);return he?Du.createPortal(r(he),pe,Z):null}),ce.map(({path:Z,el:pe,comments:he})=>Du.createPortal(d.jsx(d.Fragment,{children:he.map(r)}),pe,`file:${Z}`)),V&&le&&Du.createPortal(d.jsx(Ny,{pick:V,chatBusy:u,onAdd:Z=>{f(V,Z),j(null)},onAsk:Z=>{p(V,Z),j(null)},onClose:()=>j(null)}),le,`pick-${V.path}-${V.side}-${V.line}`),Se.map(Z=>r(Z))]})}function zN({block:i,path:a,changed:r,readOnly:s,onPick:u}){const f=H.useMemo(()=>ff(i.raw),[i.raw]),p=`Say something about ${a}:${i.from}`;return d.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!s&&d.jsx("button",{type:"button",className:"md-block-add",title:p,"aria-label":p,tabIndex:-1,onClick:u,children:d.jsx(Ke,{name:"plus"})}),d.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:f}})]})}function jN({path:i,doc:a,comments:r,renderComment:s,readOnly:u,chatBusy:f,onAddLineComment:p,onAskAboutLine:y,onShowDiff:g,viewedState:m}){const[b,v]=H.useState(null),S=H.useRef(null),x=H.useRef(null),_=m.viewed.has(i),C=_&&!m.peeked.has(i),A=H.useMemo(()=>{const O=new Map,G=a.items.flatMap((V,j)=>V.kind==="block"?[{item:V,i:j}]:[]),D=[];for(const V of r){const j=V.line==null?void 0:G.filter(le=>le.item.from<=V.line).pop()??G[0];if(!j){D.push(V);continue}O.set(j.i,[...O.get(j.i)??[],V])}return{at:O,rest:D}},[a,r]);return d.jsxs("div",{className:"md-file",ref:S,children:[d.jsxs("div",{ref:x,className:`md-file-head${_?" md-file-head-viewed":""}${C?" md-file-head-folded":""}`,onClick:O=>{_&&!O.target.closest("button, label")&&(bo(S.current,x.current),m.onTogglePeek(i))},children:[d.jsx(Ke,{name:"file"}),d.jsx("span",{className:"md-file-name",children:i}),a.isNew?d.jsx("span",{className:"tag tag-added",children:"new file"}):d.jsx("span",{className:"faint",title:"A diff carries the lines around a change, not the file.",children:"the diff's lines only — what the PR removed isn't here"}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:g,title:"Back to the line-by-line diff",children:"show the diff"}),d.jsxs("label",{className:"file-viewed",title:"Mark as viewed — folds the file until its diff changes",children:[d.jsx("input",{type:"checkbox",checked:_,onChange:()=>{_||bo(S.current,x.current),m.onToggleViewed(i)}})," ","Viewed"]})]}),!C&&A.rest.length>0&&d.jsx("div",{className:"file-comments",children:A.rest.map(s)}),!C&&a.items.map((O,G)=>d.jsxs(H.Fragment,{children:[O.kind==="gap"?d.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"]}):d.jsx(zN,{block:O,path:i,changed:O.changed&&!a.isNew,readOnly:u,onPick:()=>v({path:i,line:O.from,side:"new"})}),(A.at.get(G)??[]).map(s),O.kind==="block"&&(b==null?void 0:b.line)===O.from&&d.jsx(Ny,{pick:b,chatBusy:f,onAdd:D=>{p(b,D),v(null)},onAsk:D=>{y(b,D),v(null)},onClose:()=>v(null)})]},G))]})}function UN({patch:i,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,viewedState:y}){const g=H.useMemo(()=>i.trim()?ja(i):[],[i]),m=H.useMemo(()=>new Map(g.filter(A=>hf(A.path)).map(A=>[A.path,pf(A.patch)]).filter(([,A])=>A.lines>0)),[g]),[b,v]=H.useState({}),S=A=>{var O;return b[A]??((O=m.get(A))==null?void 0:O.isNew)??!1},x=[];for(const A of g){const O=x[x.length-1];if(m.has(A.path)&&S(A.path)){x.push({kind:"read",paths:[A.path],patch:A.patch});continue}(O==null?void 0:O.kind)==="diff"?(O.paths.push(A.path),O.patch+=`
|
|
247
|
-
${A.patch}`):x.push({kind:"diff",paths:[A.path],patch:A.patch})}if(g.length===0)return d.jsx("p",{className:"muted",children:"No diff for this chapter."});const _=new Set(g.map(A=>A.path)),C=A=>a.filter(O=>A(O.path));return d.jsxs(d.Fragment,{children:[x.map(A=>{const O=new Set(A.paths);if(A.kind==="read"){const G=A.paths[0];return d.jsx(jN,{path:G,doc:m.get(G),comments:C(D=>D===G),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onShowDiff:()=>v(D=>({...D,[G]:!1})),viewedState:y},`read:${G}`)}return d.jsx(LN,{patch:A.patch,comments:C(G=>O.has(G)),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onRead:G=>v(D=>({...D,[G]:!0})),viewedState:y},`diff:${A.paths[0]}`)}),C(A=>!_.has(A)).map(r)]})}function BN({check:i,raised:a,held:r,replies:s}){if(!i)return null;const u=[r>0&&`${r} left out`,s>0&&`${s} as replies`].filter(Boolean),f=a>0?d.jsxs("div",{className:"warn",title:"Findings another reviewer already raised on the PR — each card says who, and what Send does with it.",children:[a," already raised",u.length>0?` · ${u.join(" · ")}`:""]}):null;return i.checkingSince?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"faint",children:"checking what others already raised…"})]}):i.error?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"warn",title:i.error,children:"couldn't check what others already raised"})]}):f||(i.remarks.length>0?d.jsx("div",{className:"faint",children:"none already raised by others"}):null)}function IN({comment:i,readOnly:a,onDecide:r}){var y;const s=i.alreadyRaised;if(!s)return null;const u=_N(i,a),f=s.where.kind==="thread",p=!a&&i.status!=="dropped";return d.jsxs("div",{className:"raised",children:[d.jsxs("div",{className:"raised-head",children:[d.jsxs("span",{className:"tag tag-raised",children:[d.jsx(Ke,{name:"comment"}),"already raised by @",s.by," · ",SN(s)]}),s.url&&d.jsxs("a",{href:s.url,target:"_blank",rel:"noreferrer",className:"faint",children:["see it on GitHub ",d.jsx(Ke,{name:"external"})]}),d.jsx("span",{className:"grow"}),p&&d.jsxs(d.Fragment,{children:[f&&d.jsx("button",{className:`btn btn-sm${s.decision==="reply"?" btn-keep-on":""}`,title:"Send posts this as a reply in their thread instead of a new comment — for when it adds something",onClick:()=>r(s.decision==="reply"?null:"reply"),children:"reply in their thread"}),d.jsx("button",{className:`btn btn-sm${s.decision==="send"?" btn-keep-on":""}`,title:"Send posts it as a comment of its own all the same",onClick:()=>r(s.decision==="send"?null:"send"),children:"send anyway"})]})]}),d.jsxs("p",{className:"raised-reason",children:[s.reason,u&&d.jsxs("span",{className:"raised-fate",children:[" — ",(y=s.replied)!=null&&y.url?d.jsx("a",{href:s.replied.url,target:"_blank",rel:"noreferrer",children:u}):u,"."]})]})]})}function xy({comment:i,onUpdate:a,onDelete:r,onDiscuss:s,readOnly:u,flash:f}){const[p,y]=H.useState(!1),[g,m]=H.useState(i.body),b=i.status==="approved",v=i.status==="dropped",S=i.origin==="user"?"yours":v?"dropped":b?"kept":"drafted";return d.jsxs("div",{id:`c-${i.id}`,className:`comment comment-${i.status}${f?" comment-flash":""}`,children:[d.jsxs("div",{className:"comment-head",children:[d.jsxs("span",{className:"comment-loc",children:[i.path,i.line!=null?`:${i.line}`:""]}),d.jsx("span",{className:`tag tag-${i.origin==="user"?"yours":S}`,children:S}),i.drifted?d.jsx("span",{className:"tag tag-drift",title:"The code this comment pointed at is gone from the diff, so it can't post inline.",children:"drifted — posts in the body"}):i.line==null&&d.jsx("span",{className:"tag tag-drift",title:"A comment with no line — either about the file as a whole, or on a line the PR removed, which GitHub can't take inline.",children:"on the file — posts in the body"}),!i.drifted&&i.originalLine!=null&&i.originalLine!==i.line&&d.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",i.originalLine]}),d.jsx("span",{className:"grow"}),!u&&(p?d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"btn btn-sm",onClick:()=>{a({body:g}),y(!1)},children:"save"}),d.jsx("button",{className:"btn btn-sm",onClick:()=>{m(i.body),y(!1)},children:"cancel"})]}):d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:`btn btn-sm${b?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>a({status:b?"draft":"approved"}),children:[d.jsx(Ke,{name:"check"}),"keep"]}),d.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[d.jsx(Ke,{name:"edit"}),"edit"]}),d.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>a({status:v?"draft":"dropped"}),children:[d.jsx(Ke,{name:"drop"}),v?"dropped":"drop"]}),s&&d.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:s,children:[d.jsx(Ke,{name:"comment"}),"discuss"]}),i.origin==="user"&&d.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),d.jsx(IN,{comment:i,readOnly:u,onDecide:x=>a({raisedDecision:x})}),p?d.jsxs(d.Fragment,{children:[d.jsx("textarea",{className:"comment-edit",value:g,onChange:x=>m(x.target.value),rows:Math.max(3,g.split(`
|
|
248
|
-
`).length)}),d.jsx(Ps,{className:"comment-body",text:dg(g,i.severity??null)})]}):d.jsx(ai,{className:"comment-body prose",text:dg(i.body,i.severity??null)})]})}function HN({files:i,chapterId:a,onAdd:r}){const[s,u]=H.useState(!1),[f,p]=H.useState(i[0]??""),[y,g]=H.useState(""),[m,b]=H.useState("");return s?d.jsxs("div",{className:"add-comment",children:[d.jsxs("div",{className:"add-comment-row",children:[d.jsx("select",{value:f,onChange:v=>p(v.target.value),children:i.map(v=>d.jsx("option",{value:v,children:v},v))}),d.jsx("input",{placeholder:"line (optional)",value:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),d.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(v.target.value),rows:3}),d.jsx(Ps,{className:"comment-body",text:m}),d.jsxs("div",{className:"add-comment-row",children:[d.jsx("button",{className:"btn",disabled:!m.trim()||!f,onClick:()=>{r({path:f,line:y?Number(y):null,body:m.trim(),chapterId:a}),b(""),g(""),u(!1)},children:"add"}),d.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):d.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[d.jsx(Ke,{name:"plus"}),"add a comment of your own"]})}const qN=2e3;function GN({chapter:i,n:a,diff:r,comments:s,open:u,heavy:f,onToggle:p,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:S,readOnly:x,anchorRef:_,flash:C,viewedState:A,sticky:O,stuck:G}){const[D,V]=H.useState(!1);H.useEffect(()=>{G||V(!1)},[G]);const j=O&&G&&u,le=H.useRef(null),X=H.useRef(null);H.useEffect(()=>{const M=le.current,J=X.current;if(!O||!M||!J)return;const fe=()=>M.style.setProperty("--chapter-head-h",`${J.offsetHeight}px`);fe();const we=new ResizeObserver(fe);return we.observe(J),()=>{we.disconnect(),M.style.removeProperty("--chapter-head-h")}},[O]);const T=()=>{p(),j&&requestAnimationFrame(()=>{var M;return(M=le.current)==null?void 0:M.scrollIntoView({block:"start"})})},q=H.useMemo(()=>C_(r,i.files),[r,i.files]),ee=i.files.filter(M=>A.viewed.has(M)).length,ce=H.useMemo(()=>Ey(q,s),[q,s]),Se=H.useMemo(()=>new Set(ja(q).map(M=>M.path)),[q]),Z=s.filter(M=>!ce.includes(M)&&!Se.has(M.path)),pe=s.filter(M=>ce.includes(M)||Se.has(M.path)),he=M=>d.jsx(xy,{comment:M,onUpdate:J=>y(M.id,J),onDelete:()=>g(M.id),onDiscuss:b&&(()=>b({target:"comment",id:M.id})),readOnly:x,flash:C===M.id},M.id);return d.jsxs("section",{className:`chapter${O?" chapter-sticky":""}`,ref:M=>{le.current=M,_(M)},children:[d.jsxs("header",{ref:X,className:`chapter-head${O?" chapter-head-sticky":""}${j?" chapter-head-stuck":""}`,onClick:T,children:[d.jsx("span",{className:"faint",children:u?"▾":"▸"}),d.jsxs("h3",{children:[a," · ",i.title]}),d.jsxs("span",{className:"faint chapter-meta",children:[i.files.length," file",i.files.length===1?"":"s",s.length>0?` · ${s.length} comment${s.length===1?"":"s"}`:" · no comments",ee>0&&` · ${ee}/${i.files.length} viewed`,f!=null&&!u&&d.jsx("span",{title:"Drawing this many lines at once would leave the page too slow to scroll. Open it if you want it — nothing else on the page is affected.",children:` · ${f.toLocaleString()} lines to draw, folded to keep the page quick`})]}),d.jsx("span",{className:"grow"}),O&&u&&d.jsx("button",{className:`btn btn-sm${j?"":" chapter-about-idle"}`,"aria-expanded":D,onClick:M=>{M.stopPropagation(),V(J=>!J)},children:D?"hide explanation":"what this chapter is about"}),b&&d.jsxs("button",{className:"btn btn-sm",onClick:M=>{M.stopPropagation(),b({target:"chapter",id:i.id})},children:[d.jsx(Ke,{name:"comment"}),"discuss"]}),j&&D&&d.jsx("div",{className:"chapter-head-about",onClick:M=>M.stopPropagation(),children:d.jsx(ai,{className:"prose",text:i.explanation})})]}),u&&d.jsxs("div",{className:"chapter-body",children:[d.jsx(ai,{className:"prose chapter-explanation",text:i.explanation}),Z.map(he),d.jsx(UN,{patch:q,comments:pe,renderComment:he,readOnly:x,chatBusy:S,onAddLineComment:(M,J)=>m({path:M.path,line:M.side==="new"?M.line:null,body:J,chapterId:i.id}),onAskAboutLine:v,viewedState:A}),!x&&i.files.length>0&&d.jsx(HN,{files:i.files,chapterId:i.id,onAdd:m})]})]})}function $N(i,a){switch(i.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${i.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=a.chapters.find(s=>s.id===i.chapterId);return`rewrote the "${(r==null?void 0:r.title)??i.chapterId}" chapter`}case"comment-edit":{const r=a.comments.find(s=>s.id===i.commentId);return r?`rewrote the comment on ${r.path}:${r.line??"file"}`:"rewrote a comment"}case"comment-drop":{const r=a.comments.find(s=>s.id===i.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${i.path}:${i.line??"file"}`}}function Fd(i,a){var s;if(i.target==="summary")return"the summary";if(i.target==="verdict")return"the verdict";if(i.target==="chapter")return((s=a.chapters.find(u=>u.id===i.id))==null?void 0:s.title)??"a chapter";if(i.target==="line")return i.path==null||i.line==null?"a line of the diff":`${i.path}:${i.line}${i.side==="old"?" (removed)":""}`;const r=a.comments.find(u=>u.id===i.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function YN({turn:i,artifact:a}){return d.jsxs("div",{className:`chat-turn chat-turn-${i.role}`,children:[d.jsx("div",{className:"chat-turn-who",children:i.role==="user"?i.steer?"You, while it worked":"You":"Reviewer"}),i.refs.length>0&&d.jsx("div",{className:"chat-refs",children:i.refs.map((r,s)=>d.jsx("span",{className:"chat-ref",children:Fd(r,a)},s))}),d.jsx(ai,{className:"chat-turn-body prose",text:i.body}),i.revisions.map((r,s)=>d.jsxs("div",{className:"chat-revision",children:["↳ ",$N(r,a)]},s)),i.refused.map((r,s)=>d.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},s))]})}function FN({artifact:i,reviewKey:a,refs:r,onClearRefs:s,onDropRef:u,onArtifact:f,readOnly:p,inputRef:y,anchorRef:g}){const[m,b]=H.useState(""),[v,S]=H.useState(!1),[x,_]=H.useState(null),[C]=Sy(),A=i.chat??[],O=i.pendingChat??null,G=O!=null&&O.error==null,D=v||G,V=(X,T,q)=>{!X||D||(S(!0),_(null),Dd(a,{message:X,refs:T}).then(ee=>{f(ee),q==null||q()}).catch(ee=>_(String(ee.message??ee))).finally(()=>S(!1)))},j=X=>{S(!0),_(null),g0(a,X).then(T=>{var q;f(T),b(""),(q=y.current)==null||q.focus()}).catch(T=>_(String(T.message??T))).finally(()=>S(!1))},le=()=>{const X=m.trim();if(!(!X||v)){if(G)return j(X);V(X,r,()=>{var T;b(""),s(),(T=y.current)==null||T.focus()})}};return d.jsxs("section",{className:"card chat-panel",ref:g,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"talk to the reviewer"}),d.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),d.jsxs("div",{className:"card-body",children:[(A.length>0||O)&&d.jsxs("div",{className:"chat-log",children:[A.map(X=>d.jsx(YN,{turn:X,artifact:i},X.id)),O&&d.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[d.jsx("div",{className:"chat-turn-who",children:"You"}),O.refs.length>0&&d.jsx("div",{className:"chat-refs",children:O.refs.map((X,T)=>d.jsx("span",{className:"chat-ref",children:Fd(X,i)},T))}),d.jsx(ai,{className:"chat-turn-body prose",text:O.message}),(O.steers??[]).map((X,T)=>d.jsxs("div",{className:"chat-steer",children:[d.jsx("div",{className:"chat-turn-who",children:"You, while it worked"}),d.jsx(ai,{className:"chat-turn-body prose",text:X})]},T)),O.error?d.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",O.error,!p&&d.jsxs(d.Fragment,{children:[" ",d.jsx("button",{className:"btn btn-sm",onClick:()=>V([O.message,...O.steers??[]].join(`
|
|
249
|
-
|
|
250
|
-
`),O.refs),children:"ask again"})," ",d.jsx("button",{className:"btn btn-sm",onClick:()=>b0(a).then(f).catch(X=>_(String(X.message??X))),children:"dismiss"})]})]}):d.jsx("div",{className:"chat-waiting",children:O.progress.length>0?d.jsx("ol",{className:"chat-progress",children:O.progress.map((X,T)=>d.jsx("li",{className:T===O.progress.length-1?"now":void 0,children:X},T))}):"Thinking… it re-reads the code before answering."})]})]}),p?d.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):d.jsxs(d.Fragment,{children:[r.length>0&&d.jsxs("div",{className:"chat-refs chat-refs-pending",children:[d.jsx("span",{className:"faint",children:"about:"}),r.map((X,T)=>d.jsxs("button",{className:"chat-ref",onClick:()=>u(T),title:"Remove",children:[Fd(X,i)," ✕"]},T))]}),d.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,readOnly:v,placeholder:G?"steer it — it reads this before its next step":A.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:X=>b(X.target.value),title:C==="enter"?"Enter sends · Shift+Enter for a new line":"⌘↵ sends · Enter for a new line",onKeyDown:X=>{AN(C,{...X,isComposing:X.nativeEvent.isComposing})&&(X.preventDefault(),le())}}),d.jsx(Ps,{className:"chat-turn-body",text:m}),d.jsxs("div",{className:"chat-actions",children:[d.jsxs("button",{className:"btn btn-dark",onClick:le,disabled:v||m.trim()==="",title:G?"Add this to the turn it's working on":void 0,children:[d.jsx(Ke,{name:"send"}),v?"sending…":G?"steer":"send message",d.jsx(za,{children:C==="enter"?"↵":"⌘↵"})]}),d.jsx("span",{className:"grow"}),i.preChat&&d.jsx("button",{className:"btn btn-sm",disabled:D,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{S(!0),y0(a).then(f).catch(X=>_(String(X.message??X))).finally(()=>S(!1))},children:"reset the review"})]})]}),x&&d.jsx("div",{className:"error",children:x})]})]})}function Ty(i){const a=H.useRef(null),r=H.useCallback(()=>{const s=a.current;s&&(s.style.height="auto",s.style.height=`${Math.min(s.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return H.useEffect(r,[i,r]),H.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),a}function PN({initial:i,onSave:a,onCancel:r}){const[s,u]=H.useState(i),[f,p]=H.useState(!1),[y,g]=H.useState(null),m=Ty(s),b=()=>{f||(p(!0),g(null),a(s).catch(v=>{g(String((v==null?void 0:v.message)??v)),p(!1)}))};return d.jsxs("div",{className:"body-edit-wrap",children:[d.jsx("textarea",{ref:m,className:"body-edit",autoFocus:!0,value:s,onChange:v=>u(v.target.value),rows:10,onKeyDown:v=>{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),b()),v.key==="Escape"&&!f&&r()}}),d.jsx(Ps,{className:"body-md",text:s}),y&&d.jsx("p",{className:"error",children:y}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:f,children:[f?"saving…":"save this body",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:r,disabled:f,children:"cancel"}),d.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const KN=i=>i?`@${i} — handing this review over to you.`:"";function ZN({artifact:i,reviewKey:a,onConfirm:r,onCancel:s}){const[u]=H.useState(ay),[f,p]=H.useState(""),[y,g]=H.useState(""),[m,b]=H.useState(!1),[v,S]=H.useState(!1),[x,_]=H.useState(null),[C,A]=H.useState(null),[O,G]=H.useState(null),[D,V]=H.useState(!1),[j,le]=H.useState(null),[X,T]=H.useState(null),[q,ee]=H.useState(!1),[ce,Se]=H.useState(-1),Z=Ty(y),pe=H.useRef(null),he=Ld(f),M=ny(he),J=i.summary!==""||i.comments.length>0,fe=!xb(i)&&J,we=xb(i)&&i.sent==null&&J,De=D?JSON.stringify([i.bodyOverride,i.summary,i.chapters.map(Q=>[Q.title,Q.explanation]),i.comments.map(Q=>{var be,xe;return[Q.path,Q.line,Q.body,Q.severity,Q.status,Q.drifted,(be=Q.alreadyRaised)==null?void 0:be.decision,(xe=Q.alreadyRaised)==null?void 0:xe.where]})]):"";H.useEffect(()=>{if(!D)return;let Q=!1;return T(null),le(null),Jb(a,"COMMENT").then(be=>!Q&&le(be)).catch(be=>{Q||(le(null),T(String((be==null?void 0:be.message)??be)))}),()=>{Q=!0}},[D,a,De]);const w=!D||j!=null;H.useEffect(()=>{var Q;ce<0||(Q=document.getElementById(`handoff-option-${ce}`))==null||Q.scrollIntoView({block:"nearest"})},[ce]);const z=H.useMemo(()=>O0(C??[],u),[C,u]),B=H.useMemo(()=>C0(z,f),[z,f]);H.useEffect(()=>{let Q=!1;return _0(a).then(be=>!Q&&A(be.logins)).catch(be=>!Q&&G(String((be==null?void 0:be.message)??be))),()=>{Q=!0}},[a]);const re=Q=>{p(Q),m||g(KN(Ld(Q)))},me=Q=>{re(Q),ee(!1),Se(-1)};H.useLayoutEffect(()=>{var Q;(Q=pe.current)==null||Q.showModal()},[]);const ve=()=>{v||!M||!w||(S(!0),_(null),r(he,y.trim(),D).catch(Q=>{_(String((Q==null?void 0:Q.message)??Q)),S(!1)}))};return d.jsx("dialog",{className:"handoff-dialog",ref:pe,"aria-label":`Hand off ${i.id}`,onCancel:Q=>{Q.preventDefault(),v||s()},onClick:Q=>{Q.target===pe.current&&!v&&s()},children:d.jsxs("div",{className:"handoff-body",children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"hand off"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:i.id})]}),d.jsxs("div",{className:"handoff-who",children:[d.jsx("span",{className:"handoff-at",children:"@"}),d.jsxs("div",{className:"handoff-combo",children:[d.jsx("input",{className:"handoff-login",autoFocus:!0,value:f,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":q&&B.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":ce>=0?`handoff-option-${ce}`:void 0,onFocus:()=>ee(!0),onBlur:()=>ee(!1),onChange:Q=>{re(Q.target.value),ee(!0),Se(0)},onKeyDown:Q=>{const be=q&&B.length>0;if(Q.key==="ArrowDown"||Q.key==="ArrowUp"){if(Q.preventDefault(),!be)return ee(!0);const xe=Q.key==="ArrowDown"?1:-1;Se(Ge=>(Ge+xe+B.length)%B.length);return}if(Q.key==="Enter"){const xe=be&&ce>=0?B[ce]:void 0;xe&&xe.login.toLowerCase()!==he.toLowerCase()?me(xe.login):ve();return}Q.key==="Escape"&&be&&(Q.preventDefault(),ee(!1),Se(-1))}}),q&&B.length>0&&d.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:B.map((Q,be)=>d.jsxs("li",{id:`handoff-option-${be}`,role:"option","aria-selected":be===ce,className:be===ce?"on":void 0,onMouseEnter:()=>Se(be),onMouseDown:xe=>{xe.preventDefault(),me(Q.login)},children:[d.jsxs("span",{className:"handoff-option-login",children:["@",Q.login]}),Q.recent&&d.jsx("span",{className:"faint",children:"handed to before"})]},Q.login))})]})]}),O&&d.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),d.jsx("textarea",{ref:Z,className:"body-edit",rows:2,value:y,onChange:Q=>{b(!0),g(Q.target.value)},onKeyDown:Q=>{Q.key==="Enter"&&(Q.metaKey||Q.ctrlKey)&&(Q.preventDefault(),ve())}}),d.jsxs("div",{className:"body-source",children:[d.jsx("span",{className:"faint",children:y.trim()?"goes on the PR as a plain comment, not a review":"nothing will be posted — only the review request moves"}),y.trim()!==""&&d.jsx("button",{className:"link",onClick:()=>{b(!0),g("")},disabled:v,children:"post no note"})]}),we&&d.jsx("p",{className:"faint handoff-says",children:"You already reviewed this PR, so this draft can't ride along — a handoff that carried it would be your second review. Send it yourself if that is what you mean."}),fe&&d.jsxs("div",{className:"handoff-with-review",children:[d.jsxs("label",{children:[d.jsx("input",{type:"checkbox",checked:D,disabled:v,onChange:Q=>V(Q.target.checked)}),d.jsxs("span",{children:["also post the review — ",d.jsx("span",{className:"faint",children:$d(i)})]})]}),D&&d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"faint",children:["Posts as a ",d.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",M?he:"them","'s to make. The findings keep their grades."]}),X?d.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",X]}):j?d.jsx("pre",{className:"body-preview",children:j.body}):d.jsx("p",{className:"faint",children:"building the body…"})]})]}),x&&d.jsx("p",{className:"error",children:x}),d.jsxs("p",{className:"faint handoff-says",children:[M?d.jsxs(d.Fragment,{children:["@",he]}):"They"," will be asked for this review and you will be taken off it."," ",D?"This row goes under sent, with the review on the PR.":i.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:ve,disabled:v||!M||!w,children:[d.jsx(Ke,{name:"arrowRight"}),v?"handing over…":M?`hand off to @${he}`:"hand off",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:s,disabled:v,children:"cancel"})]})]})})}function XN({artifact:i,reviewKey:a,event:r,own:s,sending:u,checking:f,onSend:p,error:y,footer:g,next:m,onAdvance:b,onBody:v,anchorRef:S}){const[x,_]=H.useState(null),[C,A]=H.useState(null),[O,G]=H.useState(i.bodyOverride!=null),[D,V]=H.useState(!1),j=i.bodyOverride!=null,le=i.priorSends??[];H.useEffect(()=>{j&&G(!0)},[j]);const X=O&&!D?JSON.stringify([i.bodyOverride,i.summary,i.chapters.map(T=>[T.title,T.explanation]),i.comments.map(T=>{var q,ee;return[T.path,T.line,T.body,T.severity,T.status,T.drifted,(q=T.alreadyRaised)==null?void 0:q.decision,(ee=T.alreadyRaised)==null?void 0:ee.where]})]):"";return H.useEffect(()=>{if(!O||D)return;let T=!1;return _(null),A(null),Jb(a,r).then(q=>{T||(_(q),A(null))}).catch(q=>{T||A(String(q))}),()=>{T=!0}},[a,r,X,O,D]),i.sent?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sent-strip",ref:S,children:[d.jsxs("strong",{children:["✔ sent as ",Gd[i.sent.event]]}),d.jsxs("span",{className:"faint",children:[new Date(i.sent.at).toLocaleString()," · ",$d(i),i.sent.auto?" · auto-sent by the daemon":"",le.length>0?` · review ${Tb(i)} on this PR`:""]}),d.jsx("span",{className:"grow"}),i.sent.url&&d.jsxs("a",{href:i.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",d.jsx(Ke,{name:"external"})]}),d.jsxs("button",{className:"btn",onClick:b,children:[m?`next review: ${m.pr.repo}#${m.pr.number}`:"back to the queue",d.jsx(Ke,{name:"arrowRight"})]})]}),d.jsx("div",{className:"post-actions",children:g})]}):d.jsxs("div",{className:"send-panel",ref:S,children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"send to github"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:$d(i)}),d.jsxs("button",{className:"link",onClick:()=>G(!O),disabled:D,title:D?"save or cancel the body you are writing first":void 0,children:[d.jsx(Ke,{name:"eye"}),O?"hide what gets posted":"see what gets posted"]})]}),s&&vy(i.verdict)!=="COMMENT"&&d.jsx("p",{className:"send-note",children:"This is your own PR, and GitHub takes no approve or change request from its author — so it posts as a comment."}),le.length>0&&d.jsxs("p",{className:"send-note",children:["This posts review ",Tb(i)+1," on this PR. What you sent before stays on GitHub — a new one sits beside it rather than replacing it."]}),d.jsx("div",{className:"send-action",children:d.jsxs("button",{className:`send-btn tone-bg-${vN[r]}`,disabled:u||f,onClick:p,children:[d.jsx(Ke,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),u?"sending…":f?"checking what others already raised…":`${Gd[r]} on ${i.id}`," ",d.jsx(za,{children:"s"})]})}),y&&d.jsx("p",{className:"error",children:y}),O&&d.jsxs(d.Fragment,{children:[C&&d.jsx("p",{className:"error",children:C}),x?D?d.jsx(PN,{initial:x.body,onSave:T=>v(T).then(()=>V(!1)),onCancel:()=>V(!1)}):d.jsxs(d.Fragment,{children:[d.jsx("pre",{className:"body-preview",children:x.body}),d.jsxs("div",{className:"body-source",children:[j?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),d.jsx("button",{className:"link",onClick:()=>v(null).catch(T=>A(String((T==null?void 0:T.message)??T))),children:"build it from the review again"})]}):d.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),d.jsxs("button",{className:"link",onClick:()=>V(!0),children:[d.jsx(Ke,{name:"edit"}),j?"keep editing it":"write it yourself"]})]})]}):!C&&d.jsx("p",{className:"faint",children:"building the body…"})]}),d.jsx("div",{className:"send-footer",children:g})]})}function Ob({sends:i}){const a=i[i.length-1],r=i.length===1,s=f=>new Date(f).toLocaleDateString(),u=Gd[a.event];return d.jsxs("div",{children:[d.jsxs("strong",{children:["You already sent ",r?"a review":`${i.length} reviews`," on this PR",r?"":", the last"," on ",s(a.at),r?` — ${u}`:` as ${u}`,"."]})," ",a.url?d.jsx("a",{href:a.url,target:"_blank",rel:"noreferrer",children:r?"It is still on GitHub":"The last is still on GitHub"}):r?"It is still on GitHub":"The last is still on GitHub",", untouched by the draft below — a re-review replaces what cerber holds, never what was posted. Sending this one would be review ",i.length+1,"."]})}function VN({filed:i}){var s,u,f;const a=((s=i.review)==null?void 0:s.url)??((u=i.reply)==null?void 0:u.url)??null,r=p=>new Date(p).toLocaleDateString();return i.reason==="own-reply"&&i.reply?d.jsxs("div",{children:[d.jsxs("strong",{children:["You answered on this PR on ",r(i.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",a?d.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"comment"}):"comment"," ","as a review, but the PR is with its author either way. Nothing here was changed or sent — the draft is still yours to send."]}):i.reason==="request-withdrawn"?d.jsxs("div",{children:[d.jsx("strong",{children:"Nobody is asking for this review any more."})," The request that put this PR in the inbox was taken back on or before ",r(i.at),", and you had said nothing on the PR, so cerber filed the draft under settled rather than leaving it out for you. Nothing here was changed or sent — the draft is still yours to send."]}):d.jsxs("div",{children:[d.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((f=i.review)==null?void 0:f.at)??i.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",a?d.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"already on the PR"}):"already on the PR",". Nothing here was changed or sent — the draft is still yours to send."]})}function QN({entries:i,open:a,onToggle:r,anchorRef:s}){const u=f=>{const p=new Date(f);return Number.isNaN(p.getTime())?f:`${p.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${p.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return d.jsxs("section",{className:"card",ref:s,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"history"}),d.jsx("span",{className:"faint",children:i.length>0?`${i.length} entr${i.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),d.jsx("span",{className:"grow"}),d.jsxs("button",{className:"btn btn-sm","aria-expanded":a,onClick:r,children:[d.jsx(Ke,{name:a?"up":"down",size:12}),a?"hide":"show"]})]}),a&&d.jsx("div",{className:"card-body",children:i.length===0?d.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):d.jsx("ol",{className:"history",children:i.map((f,p)=>({e:f,i:p})).reverse().map(({e:f,i:p})=>d.jsxs("li",{className:"history-row",title:f.at,children:[d.jsx("span",{className:"history-at",children:u(f.at)}),d.jsx("span",{className:"history-by",children:f.by}),d.jsx("span",{className:"history-what",children:f.what}),f.cause&&d.jsx("span",{className:"history-cause",children:f.cause})]},`${p}-${f.at}`))})})]})}function WN({handoff:i,sent:a,hasDraft:r}){const s=new Date(i.at).toLocaleDateString();return d.jsxs("div",{children:[d.jsxs("strong",{children:["You handed this to @",i.to," on ",s,"."]})," ","GitHub asks them for this review now",i.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",i.note?i.note.url?d.jsxs(d.Fragment,{children:["A"," ",d.jsx("a",{href:i.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):d.jsx(d.Fragment,{children:"A note on the PR says so."}):d.jsx(d.Fragment,{children:"No note was posted — only the request moved."})," ",a?d.jsx(d.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?d.jsx(d.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):d.jsx(d.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function JN({artifact:i,freshness:a,rerunning:r,onRerun:s}){const u=i.status==="running",f=(a==null?void 0:a.prState)??i.pr.state,p=f==="CLOSED"||f==="MERGED",y=i.refresh,g=a!=null&&a.changed?y:null,m=!p&&EN(i,a)?i.sent:null;if(u)return d.jsxs("div",{className:"freshness",children:[(i.sent?[]:i.priorSends??[]).length>0&&d.jsx(Ob,{sends:i.priorSends??[]}),d.jsxs("div",{className:"freshness-running",children:[d.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]})]});const b=i.filed,v=i.handoff,S=i.sent?[]:i.priorSends??[];return!p&&!g&&!m&&!b&&!v&&S.length===0?null:d.jsxs("div",{className:"freshness",children:[S.length>0&&d.jsx(Ob,{sends:S}),v&&d.jsx(WN,{handoff:v,sent:i.sent,hasDraft:i.summary!==""||i.comments.length>0}),b&&d.jsx(VN,{filed:b}),p&&d.jsxs("div",{children:[d.jsxs("strong",{children:["This PR is ",f==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",d.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",d.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&d.jsxs(d.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&d.jsxs(d.Fragment,{children:[g.drifted," could not — the code they point at is gone, so they will post in the review body instead of inline."," "]}),"The summary and verdict still describe the commit that was reviewed.",!i.sent&&d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]}),m&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since you sent this review."})," ",(a==null?void 0:a.headSha)&&i.pr.headSha&&d.jsxs(d.Fragment,{children:["Now at ",d.jsx("code",{children:a.headSha.slice(0,7)}),", sent at"," ",d.jsx("code",{children:i.pr.headSha.slice(0,7)}),"."," "]}),"What you sent stays exactly as it was posted — cerber never re-anchors a review that is already on GitHub. Answering the new commits means a new draft, which replaces this one here and leaves what was posted alone.",d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]})]})}function ex({reviewKey:i}){var Wt,Gn,Xn,Vn,ut;const[a,r]=H.useState(null),[s,u]=H.useState(null),[f,p]=H.useState(null),[y,g]=H.useState(null),[m,b]=H.useState(!1),[v,S]=H.useState([]),[x,_]=H.useState(!1),[C,A]=H.useState(new Set),O=$=>A(ue=>new Set(ue).add($)),[G,D]=H.useState(!1),[V,j]=H.useState([]),le=H.useRef(null),[X,T]=H.useState(new Set),[q,ee]=H.useState(new Set),ce=H.useRef(Promise.resolve()),Se=H.useRef(0),[Z,pe]=H.useState(0),he=H.useRef(new Map),[M]=yy(),[J,fe]=H.useState(null),we=H.useRef(null),De=H.useRef(null),w=H.useRef(null),z=H.useRef(null),B=H.useRef(null),re=H.useRef(null),[me,ve]=H.useState(!1),Q=H.useRef(null),[be,xe]=H.useState(!1),[Ge,$e]=H.useState(!1),[Ce,St]=H.useState(null),[Ze,In]=H.useState(null);H.useEffect(()=>{if(!Ze)return;const $=setTimeout(()=>In(null),1800);return()=>clearTimeout($)},[Ze]);const Je=$=>{var ue,Ne;j(Y=>Y.some(ge=>ge.target===$.target&&ge.id===$.id)?Y:[...Y,$]),(ue=le.current)==null||ue.scrollIntoView({behavior:"smooth",block:"center"}),(Ne=le.current)==null||Ne.focus()};H.useEffect(()=>{let $=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),St(null),$e(!1),_(!1),pg(i).then(ue=>{if(!$)return r(ue),_(ue.own===!0),m0(i).then(Ne=>{$||(p(Ne),Ne.changed&&r(Ne.artifact))}).catch(Ne=>!$&&g(String(Ne.message??Ne))).then(()=>{if(!($||ue.sent||ue.status==="running"||ue.comments.length===0))return $e(!0),E0(i).then(Ne=>!$&&r(Ne)).catch(()=>{}).finally(()=>!$&&$e(!1))})}).catch(ue=>!$&&u(String(ue))),()=>{$=!0}},[i]),H.useEffect(()=>{_o().then(S).catch(()=>{})},[]),H.useEffect(()=>{const $=Q.current;if(!$)return;const ue=()=>document.documentElement.style.setProperty("--top-h",`${$.offsetHeight}px`);ue();const Ne=new ResizeObserver(ue);return Ne.observe($),()=>{Ne.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[a==null?void 0:a.id]);const Ln=(a==null?void 0:a.pendingChat)!=null&&a.pendingChat.error==null,Hn=H.useRef(null),It=((Wt=a==null?void 0:a.raisedCheck)==null?void 0:Wt.checkingSince)!=null||Ge;H.useEffect(()=>{if((a==null?void 0:a.status)!=="running"&&!Ln&&!It)return;const $=setInterval(()=>{pg(i).then(ue=>{var Ne;if(r(ue),_(ue.own===!0),ue.status!=="running"){b(!1);const Y=Hn.current;Y!=null&&ue.sent&&(((Ne=ue.run)==null?void 0:Ne.startedAt)??"none")===Y&&u("The re-review didn't start, so nothing here changed — the review you sent is untouched. The history below says why."),Hn.current=null}}).catch(()=>{})},3e3);return()=>clearInterval($)},[a==null?void 0:a.status,Ln,It,i]);const Rt=(a==null?void 0:a.sent)!=null,on=H.useMemo(()=>I_(v,i,C),[v,i,C]),yn=on.findIndex($=>$.key===i),Ft=(yn>0?on[yn-1]:null)??null,je=(yn>=0&&yn<on.length-1?on[yn+1]:null)??null,Lt=$=>{window.location.hash=`#/r/${encodeURIComponent($)}`},vt=()=>{je?Lt(je.key):window.location.hash="#/"},Ot=H.useMemo(()=>{if(!a)return[];const $=z_(a.diff,a.chapters);return $.length>0?[...a.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:$}]:a.chapters},[a]);H.useEffect(()=>{let $=0;const ue=()=>{var dt;$=0;const ge=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--top-h"))||0,Ie=ge+16;let Fe=null;for(const gt of Ot){const Bt=(dt=he.current.get(gt.id))==null?void 0:dt.getBoundingClientRect();Bt&&Bt.top<=Ie&&Bt.bottom>Ie&&(Fe={id:gt.id,stuck:Bt.top<ge-1})}fe(gt=>(gt==null?void 0:gt.id)===(Fe==null?void 0:Fe.id)&&(gt==null?void 0:gt.stuck)===(Fe==null?void 0:Fe.stuck)?gt:Fe)},Ne=()=>{$||($=requestAnimationFrame(ue))};ue(),window.addEventListener("scroll",Ne,{passive:!0}),window.addEventListener("resize",Ne);const Y=new ResizeObserver(Ne);return Y.observe(document.body),()=>{cancelAnimationFrame($),window.removeEventListener("scroll",Ne),window.removeEventListener("resize",Ne),Y.disconnect()}},[Ot]);const Tn=H.useMemo(()=>{const $=j_((a==null?void 0:a.diff)??""),ue=new Set(ja((a==null?void 0:a.diff)??"").filter(Y=>hf(Y.path)&&pf(Y.patch).isNew).map(Y=>Y.path)),Ne=Y=>{const ge=$.get(Y)??0;return ue.has(Y)?Math.round(ge/4):ge};return new Map(Ot.map(Y=>[Y.id,Y.files.reduce((ge,Ie)=>ge+Ne(Ie),0)]))},[a==null?void 0:a.diff,Ot]),zn=$=>{const ue=Tn.get($)??0;return ue>qN?ue:null},An=$=>X.has($)?zn($)!=null:zn($)==null,jn=$=>T(ue=>{const Ne=new Set(ue);return Ne.has($)?Ne.delete($):Ne.add($),Ne});H.useEffect(()=>{T(new Set),ee(new Set)},[i]);const Rn=H.useMemo(()=>Object.fromEntries(ja((a==null?void 0:a.diff)??"").map($=>[$.path,U_($.patch)])),[a==null?void 0:a.diff]),cn=H.useMemo(()=>new Set(Object.keys(Rn).filter($=>{var ue;return((ue=a==null?void 0:a.viewed)==null?void 0:ue[$])===Rn[$]})),[Rn,a==null?void 0:a.viewed]),qt={viewed:cn,peeked:q,onToggleViewed:$=>{const ue=cn.has($)?null:Rn[$]??null;ee(Y=>{const ge=new Set(Y);return ge.delete($),ge}),r(Y=>{if(!Y)return Y;const ge={...Y.viewed};return ue===null?delete ge[$]:ge[$]=ue,{...Y,viewed:ge}});const Ne=++Se.current;ce.current=ce.current.then(()=>u0(i,$,ue)).then(Y=>{Ne===Se.current&&r(ge=>ge&&ge.id===Y.id?{...ge,viewed:Y.viewed}:ge)}).catch(Y=>u(String(Y)))},onTogglePeek:$=>ee(ue=>{const Ne=new Set(ue);return Ne.has($)?Ne.delete($):Ne.add($),Ne})},la=$=>{const ue=Ot[$];return ue?(pe($),An(ue.id)||jn(ue.id),ue):null},un=(...$)=>{for(const ue of $)if(ue.current)return ue.current.scrollIntoView({behavior:"smooth",block:"start"})},hn=$=>{var Ne;const ue=la($);ue&&((Ne=he.current.get(ue.id))==null||Ne.scrollIntoView({behavior:"smooth",block:"start"}))},qe=($,ue)=>{var Y;la($);const Ne=(Y=a==null?void 0:a.comments.find(ge=>ge.id===ue))==null?void 0:Y.path;Ne&&cn.has(Ne)&&ee(ge=>new Set(ge).add(Ne)),In(ue),wy(ue)},pn=x,Pt=vy(a==null?void 0:a.verdict,pn);H.useEffect(()=>St(null),[Pt]);const Gt=()=>{!a||a.sent||be||It||(xe(!0),St(null),v0(i,Pt).then(({replyError:$,...ue})=>{r(ue),$&&St(`Sent — but ${$}`),O(i)}).catch($=>St(String($.message??$))).finally(()=>xe(!1)))};if(H.useEffect(()=>{const $=ue=>{MN(ue.target)||ue.metaKey||ue.ctrlKey||ue.altKey||(ue.key==="["&&Ft?Lt(Ft.key):ue.key==="]"&&je?Lt(je.key):ue.key==="n"?hn(Math.min(Ot.length-1,Z+1)):ue.key==="N"?hn(Math.max(0,Z-1)):ue.key==="s"&&!Rt&&Gt())};return window.addEventListener("keydown",$),()=>window.removeEventListener("keydown",$)},[Ft==null?void 0:Ft.key,je==null?void 0:je.key,Ot,Z,Rt,Pt,a==null?void 0:a.sent,be,It]),s&&!a)return d.jsx("p",{className:"error pad",children:s});if(!a)return d.jsx("p",{className:"muted pad",children:"Loading…"});const R=$=>{var ue;b(!0),u(null),Hn.current=a.sent?((ue=a.run)==null?void 0:ue.startedAt)??"none":null,Wb(i,$).then(r).catch(Ne=>{u(String(Ne)),b(!1)})},ne=$=>$.then(r).catch(ue=>u(String(ue))),ye=$=>so(i,{status:$}).then(()=>{O(i),vt()}).catch(ue=>u(String(ue))),ze=($,ue,Ne)=>S0(i,{to:$,note:ue,postReview:Ne}).then(({artifact:Y,noteError:ge,sendError:Ie,replyError:Fe})=>{k0($),r(Y),D(!1),O(i);const dt=[Ie&&`the review did not post: ${Ie}`,Fe,ge&&`the note did not post: ${ge}`].filter(Boolean);dt.length>0?u(`Handed to @${$}, but ${dt.join("; and ")}`):vt()}),Qe=($,ue)=>ne(d0(i,$,ue)),et=$=>ne(h0(i,$)),Ae=$=>ne(f0(i,$)),_e=a.comments.filter($=>!$.chapterId||!Ot.some(ue=>ue.id===$.chapterId)),{inline:Ue,folded:Ct,dropped:mt,held:qn,replies:sa}=_y(a),Na=a.comments.filter($=>$.alreadyRaised&&$.status!=="dropped").length,dn=a.comments.filter($=>$.status!=="dropped"&&$.drifted).length,wt=a.verdict?Ab[a.verdict.recommendation]:"none",Kt=NN(a),tt=wN(a),vn=a.pendingChat!=null&&a.pendingChat.error==null,Ua=a.status==="running"||vn,ba=()=>ne(Dd(i,{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}]})),xa=($,ue)=>{ne(Dd(i,{message:ue,refs:[{target:"line",id:null,path:$.path,line:$.line,side:$.side}]}).then(Ne=>{var Y;return(Y=z.current)==null||Y.scrollIntoView({behavior:"smooth",block:"start"}),Ne}))},ra=(Gn=a.run)!=null&&Gn.trusted?"ran the code":(Xn=a.run)!=null&&Xn.withSource?"read the full source":a.run?"read the diff only":"no run yet",Ta=$=>{var ue;return d.jsxs("button",{className:`verdict-pick${((ue=a.verdict)==null?void 0:ue.recommendation)===$?` verdict-pick-on tone-${Ab[$]}`:""}`,title:$==="approve"?"Approve":$==="comment"?"Comment without blocking":"Request changes",onClick:()=>ne(so(i,{verdictRecommendation:$})),children:[d.jsx(Ke,{name:ON[$]}),$.replace("_"," ")]},$)};return d.jsxs("div",{className:"review",children:[d.jsxs("div",{className:"review-top",ref:Q,children:[d.jsx("div",{className:"crumb",children:d.jsxs("div",{className:"bar-inner",children:[d.jsx("a",{href:"#/",children:"← queue"}),d.jsx("span",{className:"crumb-sep",children:"/"}),d.jsx("span",{className:"crumb-slug",children:a.id}),d.jsxs("span",{className:"walk",children:[d.jsx("button",{className:"walk-btn",disabled:!Ft,title:Ft?`[ — ${Ft.id}: ${Ft.pr.title}`:"no more reviews this way",onClick:()=>Ft&&Lt(Ft.key),children:d.jsx(Ke,{name:"chevronLeft"})}),d.jsx("button",{className:"walk-btn",disabled:!je,title:je?`] — ${je.id}: ${je.pr.title}`:"no more reviews this way",onClick:()=>je&&Lt(je.key),children:d.jsx(Ke,{name:"chevronRight"})})]}),yn>=0&&d.jsxs("span",{className:"faint",children:[yn+1," of ",on.length," awaiting"]}),d.jsx("span",{className:"faint crumb-next",children:je?`next: ${je.pr.title}`:yn>=0?"last in the queue":""}),d.jsx("span",{className:"grow"}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Ke,{name:"settings",size:15})})]})}),d.jsx("div",{className:"review-head",children:d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"review-head-top",children:[d.jsx("a",{className:"review-title",href:a.pr.url,target:"_blank",rel:"noreferrer",children:a.pr.title}),d.jsx("span",{className:"grow"}),a.verdict&&(Rt?d.jsxs("span",{className:`chip tone-${wt}`,children:[a.verdict.recommendation.replace("_"," "),tt&&` · ${tt}`," · ",a.verdict.confidence,"%"]}):d.jsxs("button",{className:`chip chip-btn tone-${wt}`,title:"change it, or send — both are at the foot of the page",onClick:()=>un(we,B),children:[a.verdict.recommendation.replace("_"," "),tt&&` · ${tt}`," · ",a.verdict.confidence,"%",d.jsx(Ke,{name:"down",size:12})]})),a.status!=="running"&&d.jsxs("button",{className:"btn btn-sm",disabled:m,title:Rt?"Draft a new review at the current head. What you sent stays on GitHub — this replaces the draft here, and sending again posts a second review":a.run?"Review the current head again — this draft is replaced, comments and all":"Draft a review of this PR",onClick:()=>R(!0),children:[d.jsx(Ke,{name:"rerun"}),m?"starting…":a.run?"re-review at head":"review now"]})]}),d.jsxs("div",{className:"review-head-meta",children:[d.jsx("span",{children:a.pr.author}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.headRefName," → ",a.pr.baseRefName,a.pr.headSha?` · ${a.pr.headSha.slice(0,7)}`:""]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",a.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",a.pr.deletions]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:ra}),((Vn=a.run)==null?void 0:Vn.costUsd)!=null&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{title:"What this review would cost at API token rates. Riding a Claude subscription, it draws on your usage limits instead.",children:["≈$",a.run.costUsd.toFixed(2)," at API rates"]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:a.status})]})]})})]}),d.jsxs("div",{className:"wrap review-body",children:[d.jsxs("aside",{className:"rail",children:[d.jsxs("div",{className:"rail-jumps",children:[d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>un(De),children:"summary"}),a.verdict&&d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>un(w),children:"why"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var $;un(z),($=le.current)==null||$.focus()},children:"chat"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{ve(!0),un(re)},children:"history"})]}),Ot.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>hn(0),children:"changes"}),Ot.map(($,ue)=>{const Ne=$.files.length>0&&$.files.every(Y=>cn.has(Y));return d.jsxs("div",{className:"rail-group",children:[d.jsxs("button",{className:`rail-item${An($.id)?" rail-item-on":""}${Ne?" rail-item-done":""}${(J==null?void 0:J.id)===$.id?" rail-item-here":""}`,onClick:()=>hn(ue),children:[d.jsxs("span",{className:"grow",children:[ue+1," · ",$.title]}),d.jsxs("span",{className:"rail-count",title:Ne?"every file viewed":void 0,children:[Ne?"✓ ":"",$.files.length,"f"]})]}),a.comments.filter(Y=>Y.chapterId===$.id).map(Y=>d.jsxs("button",{className:`rail-comment${Y.status==="dropped"?" rail-comment-dropped":""}`,title:`${Y.path}${Y.line!=null?`:${Y.line}`:""} — ${Y.body}`,onClick:()=>qe(ue,Y.id),children:[d.jsx("span",{className:`rail-dot tone-${CN(Y,wt)}`,children:"●"}),d.jsxs("span",{className:"rail-comment-loc",children:[Y.path.split("/").pop(),Y.line!=null?`:${Y.drifted?"~":""}${Y.line}`:""]})]},Y.id))]},$.id)})]}),d.jsx("button",{className:`lab rail-lab-btn${Ot.length>0?" rail-lab":""}`,onClick:()=>un(we,B),children:"verdict"}),d.jsxs("div",{className:"rail-facts",children:[d.jsxs("div",{children:[a.comments.length-mt.length," keeping · ",mt.length," dropped"]}),d.jsxs("div",{children:[Ue.length," inline · ",Ct.length," folded into body"]}),dn>0&&d.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[dn," drifted"]}),d.jsx(BN,{check:a.raisedCheck??null,raised:Na,held:qn.length,replies:sa.length})]})]}),d.jsxs("div",{className:"main",children:[d.jsx(JN,{artifact:a,freshness:f,rerunning:m,onRerun:R}),y&&d.jsxs("div",{className:"freshness",title:y,children:[d.jsx("strong",{children:"Couldn't check GitHub for newer commits."})," This is the review as it was drafted — if the PR has moved on since, nothing here knows it yet."]}),s&&d.jsx("div",{className:"error",children:s}),((ut=a.run)==null?void 0:ut.error)&&d.jsxs("div",{className:"error",children:["Run failed: ",a.run.error]}),d.jsx("div",{className:"card card-summary",ref:De,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"summary"}),d.jsx(ai,{className:"prose lead",text:a.summary||"(no summary)"}),!Rt&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Je({target:"summary",id:null}),children:[d.jsx(Ke,{name:"comment"}),"discuss the summary"]})]})}),a.verdict&&d.jsx("div",{className:`card card-why tone-border-${wt}`,ref:w,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"why"}),d.jsxs("div",{className:"sev-counts",children:[Rd(a)&&d.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Rd(a)}),Rd(a)&&d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{title:"How sure the review is that its own findings and grades are right — not how good an idea merging is. That is the verdict, and it follows from the blockers.",children:[a.verdict.confidence,"% sure of the findings"]})]}),d.jsx(ai,{className:"prose lead",text:a.verdict.reasoning}),!Rt&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Je({target:"verdict",id:null}),children:[d.jsx(Ke,{name:"comment"}),"discuss the verdict"]})]})}),Ot.map(($,ue)=>d.jsx(GN,{chapter:$,n:ue+1,diff:a.diff,comments:a.comments.filter(Ne=>Ne.chapterId===$.id),open:An($.id),heavy:zn($.id),onToggle:()=>jn($.id),onUpdateComment:Qe,onDeleteComment:et,onAddComment:Ae,onDiscuss:Rt?void 0:Je,onAskAboutLine:xa,chatBusy:vn,readOnly:Rt,flash:Ze,viewedState:qt,sticky:M,stuck:(J==null?void 0:J.id)===$.id&&J.stuck,anchorRef:Ne=>{Ne?he.current.set($.id,Ne):he.current.delete($.id)}},$.id)),_e.length>0&&d.jsxs("section",{className:"card",children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"unattached comments"}),d.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),d.jsx("div",{className:"card-body",children:_e.map($=>d.jsx(xy,{comment:$,onUpdate:ue=>Qe($.id,ue),onDelete:()=>et($.id),onDiscuss:Rt?void 0:()=>Je({target:"comment",id:$.id}),readOnly:Rt},$.id))})]}),d.jsx(QN,{entries:a.history??[],open:me,onToggle:()=>ve($=>!$),anchorRef:re})]}),d.jsxs("aside",{className:"cockpit",children:[d.jsx(FN,{artifact:a,reviewKey:i,refs:V,onClearRefs:()=>j([]),onDropRef:$=>j(ue=>ue.filter((Ne,Y)=>Y!==$)),onArtifact:r,readOnly:Rt,inputRef:le,anchorRef:z}),d.jsxs("div",{className:"cockpit-decide",children:[!Rt&&Kt&&d.jsxs("div",{className:"verdict-hint",children:[d.jsxs("span",{children:[d.jsx("strong",{children:Kt})," — the verdict was written before those edits."]}),d.jsxs("button",{className:"btn btn-sm",onClick:ba,disabled:vn,children:[d.jsx(Ke,{name:"comment"}),vn?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),a.verdict&&!Rt&&d.jsxs("div",{className:"verdict-bar",ref:we,children:[d.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(Ta)]}),d.jsx(XN,{artifact:a,reviewKey:i,event:Pt,own:pn,sending:be,checking:It,onSend:Gt,error:Ce,next:je,onAdvance:vt,onBody:$=>so(i,{bodyOverride:$}).then(r),anchorRef:B,footer:d.jsxs(d.Fragment,{children:[!Rt&&d.jsx("span",{className:"faint",children:"not sending?"}),!Rt&&d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-sm",title:je?`Settle it locally and go to ${je.id}`:"Settle it locally and go back to the queue",onClick:()=>ye("reviewed"),children:[d.jsx(Ke,{name:"check"}),"mark reviewed"]}),d.jsxs("button",{className:"btn btn-sm",title:je?`Leave it and go to ${je.id}`:"Leave it and go back to the queue",onClick:()=>ye("skipped"),children:[d.jsx(Ke,{name:"skip"}),"skip"]})]}),d.jsxs("button",{className:"btn btn-sm",title:Ua?"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:()=>D(!0),disabled:G||Ua,children:[d.jsx(Ke,{name:"arrowRight"}),"hand off"]}),d.jsxs("a",{className:"btn btn-sm",href:w0(i),children:[d.jsx(Ke,{name:"download"}),"export .md"]})]})}),G&&d.jsx(ZN,{artifact:a,reviewKey:i,onConfirm:ze,onCancel:()=>D(!1)})]})]})]})]})}const Cb="cerber.notify.seen.v2",tx="cerber.notify.seen",Pd="cerber.notify",nx=1e4,qs=i=>i.status==="ready",Kd=i=>{try{return localStorage.getItem(i)}catch{return null}},Zd=(i,a)=>{try{localStorage.setItem(i,a)}catch{}},ax={autoReview:!1,autoReviewRepos:{}};function ix(i,a){return i?!i.enabled||!i.pollEnabled?ax:{autoReview:i.autoReview,autoReviewRepos:i.autoReviewRepos??{}}:a}const Ay=(i,a)=>lx(i,Pb(a,i.pr.owner,i.pr.repo));function lx(i,a){return i.announceable===!1||i.status==="running"?!1:i.status==="awaiting"?!a:!0}const Ry=":draft",oo=i=>`${i.key}${Ry}`,ky=i=>qs(i)?oo(i):i.key;function sx(i,a,r){const s=new Set(a);return $s(i).filter(u=>Ay(u,r)&&!s.has(ky(u)))}function rx(i,a,r=[]){const s=new Set(r),u=new Set($s(i).map(p=>p.key)),f=[];for(const p of i){if(u.has(p.key)&&!Ay(p,a)){for(const y of[p.key,oo(p)])s.has(y)&&f.push(y);continue}f.push(p.key),(qs(p)||!u.has(p.key)||s.has(oo(p)))&&f.push(oo(p))}return f}const kd=i=>`${i.pr.repo}#${i.pr.number}`,ox={approve:"approves",comment:"comments",request_changes:"requests changes"};function cx(i){const a=i.verdict?ox[i.verdict.recommendation]:"drafted",r=i.blockerCount??0;return r===0?a:`${a} · ${r} blocker${r===1?"":"s"}`}function ux(i){if(i.length===0)return null;const a=`cerber:${i.map(ky).sort().join("|")}`;if(i.length===1){const u=i[0];return{title:qs(u)?`${kd(u)} draft ready`:`${kd(u)} awaits your review`,body:qs(u)?`${cx(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:a,key:u.key}}const r=i.slice(0,3).map(kd),s=i.length-r.length;return{title:i.every(qs)?`${i.length} drafts ready`:`${i.length} PRs await your review`,body:s>0?`${r.join(", ")} and ${s} more`:r.join(", "),tag:a,key:null}}const dx=new Set(["127.0.0.1","localhost","::1","[::1]"]);function fx(i,a=window.location.hostname){return!(i!=null&&i.enabled)||!i.notify?!1:dx.has(a)}function Gl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Kd(Pd)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function hx(){const i=Gl();if(i==="unsupported"||i==="blocked")return i;if(i==="on")return Zd(Pd,"off"),Gl();if(Zd(Pd,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Gl()}function px(i){const a=new Notification(i.title,{body:i.body,tag:i.tag,icon:"/favicon.svg"});a.onclick=()=>{window.focus(),window.location.hash=i.key?`#/r/${encodeURIComponent(i.key)}`:"#/",a.close()}}function mx(i,a){const r=i??a;if(!r)return null;let s;try{s=JSON.parse(r)}catch{return null}if(!Array.isArray(s))return null;const u=s.filter(f=>typeof f=="string");return i?u:u.flatMap(f=>[f,`${f}${Ry}`])}function gx(){const i=H.useRef(null),a=H.useRef({autoReview:!0,autoReviewRepos:{}}),[r,s]=H.useState(!1);return H.useEffect(()=>{let u=!0;i.current=mx(Kd(Cb),Kd(tx));const f=()=>Promise.all([_o(),Qb().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=fx(g);s(m),a.current=ix(g,a.current);const b=i.current;if(i.current=rx(y,a.current,b??[]),Zd(Cb,JSON.stringify(i.current)),!b||Gl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const v=ux(sx(y,b,a.current));v&&px(v)}).catch(()=>{});f();const p=setInterval(f,nx);return()=>{u=!1,clearInterval(p)}},[]),r}function Oy(){const[i,a]=H.useState(Gl);return H.useEffect(()=>{const r=()=>a(Gl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[i,()=>void hx().then(a)]}const co=i=>{window.location.hash=`#/r/${encodeURIComponent(i)}`};function bx(i){const a=i,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function yx({daemon:i}){return i!=null&&i.enabled?d.jsx("div",{className:"daemon-bar",children:d.jsxs("div",{className:"bar-inner",children:[i.pollEnabled?d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot"}),i.repos.length>0?i.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(i.intervalMs/6e4),"m"]}):d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),d.jsxs("span",{children:["auto-review ",d.jsx("b",{children:i.autoReview?"on":"off"}),a0(i.autoReview,i.autoReviewRepos??{})]}),d.jsxs("span",{children:["auto-send ",d.jsx("b",{children:i.autoSend==="on"?"on":"shadow"})," ≥",i.autoSendThreshold,"%",i.autoSend==="on"?` · ${i.autoSent} sent`:` · ${i.autoSendCandidates} candidate${i.autoSendCandidates===1?"":"s"}`]}),i.trustedRuns&&d.jsxs("span",{className:"warn",title:"Trust rules are set and auto-review is on: reviews of matching PRs run their code unattended. Settings → Trusted PRs, or serve --no-trust.",children:[d.jsx(Ke,{name:"zap",size:12})," trusted PRs run with Bash"]}),d.jsx("span",{className:"grow"}),i.lastPollError?d.jsx("span",{className:"danger",title:i.lastPollError,children:"discovery offline — showing local reviews only"}):d.jsx("span",{className:"faint",children:i.polling?"polling now…":[i.lastSummary?`last: ${i.lastSummary}`:null,i.nextPollAt?`next ${new Date(i.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function Ji({className:i,label:a,tip:r}){return d.jsx("span",{className:i,children:d.jsxs("span",{className:"head-cell",children:[a,d.jsx("span",{className:"head-tip",role:"tooltip",children:r})]})})}function vx({r:i,selected:a,onSelect:r,onOpen:s,awaiting:u}){const f=e0(i),p=Y_(i),y=u?Q_(i,u):null;return d.jsxs("div",{className:`row${a?" row-on":""}`,onClick:s,onMouseEnter:r,role:"button",tabIndex:-1,children:[d.jsx("span",{className:"col-caret",children:"›"}),d.jsxs("span",{className:"col-slug",title:`${i.pr.owner}/${i.pr.repo}#${i.pr.number}`,children:[i.pr.repo,"#",i.pr.number]}),d.jsx("span",{className:"col-author",title:i.pr.author,children:i.pr.author}),d.jsx("span",{className:"col-title",title:i.pr.title,children:i.pr.title}),i.pr.isDraft&&d.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&d.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),p&&d.jsx("span",{className:"tag tag-done",children:p}),d.jsx("span",{className:"col-comments",children:t0(i)}),d.jsx("span",{className:"col-size",children:i.pr.changedFiles>0?d.jsxs(d.Fragment,{children:[i.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",i.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",i.pr.deletions]})]}):"—"}),d.jsx("span",{className:`col-verdict tone-${f.tone}`,children:f.label}),d.jsx("span",{className:"col-age",title:i.status==="awaiting"?"When the PR last changed on GitHub":"When this review last changed",children:Vb(Md(i))})]})}function Mb({autoFocus:i}){const[a,r]=H.useState(""),[s,u]=H.useState(!1),[f,p]=H.useState(null),y=g=>{g.preventDefault();const m=a.trim();!m||s||(u(!0),p(null),p0(m).then(b=>co(b.key)).catch(b=>{p(String(b instanceof Error?b.message:b)),u(!1)}))};return d.jsxs("form",{className:"pull",onSubmit:y,children:[d.jsx(Ke,{name:"plus"}),d.jsx("input",{className:"pull-input",value:a,autoFocus:i,disabled:s,onChange:g=>{r(g.target.value),f&&p(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),a.trim()&&d.jsx("button",{className:"btn btn-small",type:"submit",disabled:s,children:s?"starting…":"review"}),f&&d.jsx("span",{className:"pull-error",children:f})]})}function Ex({text:i}){const a=H.useRef(null),[r,s]=H.useState(!1);return H.useLayoutEffect(()=>{const u=a.current;if(!u)return;const f=()=>s(u.scrollHeight-u.clientHeight>4);f();const p=new ResizeObserver(f);return p.observe(u),()=>p.disconnect()},[i]),d.jsx("div",{ref:a,className:`strip-prose${r?" strip-prose-clipped":""}`,children:d.jsx(ai,{className:"prose",text:i})})}function _x(){var Se;const[i,a]=H.useState(null),[r,s]=H.useState(null),[u,f]=H.useState(null),[p,y]=H.useState(new Set),[g,m]=H.useState("inbox"),[b,v]=H.useState(null),S=H.useRef(!1),x=H.useRef(null),_=H.useRef(!0);H.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const C=()=>{_o().then(Z=>_.current&&a(Z)).catch(Z=>_.current&&f(String(Z))),Qb().then(Z=>_.current&&s(Z)).catch(()=>{})};H.useEffect(()=>{C();const Z=setInterval(C,1e4);return()=>clearInterval(Z)},[]);const A=i??[],O=H.useMemo(()=>G_(A,r),[A,r]),G=O.requests,D=$_(g,O),V=O[D];H.useEffect(()=>{D!==g&&m(D)},[D,g]);const j=V.find(Z=>Z.key===b)??V[0]??null,le=Z=>{y(pe=>new Set(pe).add(Z)),Wb(Z).then(()=>C()).catch(pe=>_.current&&f(String(pe))).finally(()=>{_.current&&y(pe=>{const he=new Set(pe);return he.delete(Z),he})})};if(H.useEffect(()=>{const Z=pe=>{if(bx(pe.target)||pe.metaKey||pe.ctrlKey||pe.altKey)return;const he=V.findIndex(J=>J.key===(j==null?void 0:j.key)),M=J=>{const fe=V[Math.min(V.length-1,Math.max(0,he+J))];fe&&(S.current=!0,v(fe.key))};pe.key==="j"||pe.key==="ArrowDown"?(pe.preventDefault(),M(1)):pe.key==="k"||pe.key==="ArrowUp"?(pe.preventDefault(),M(-1)):pe.key==="Enter"&&j?co(j.key):pe.key==="r"&&j&&j.status!=="running"&&j.status!=="sent"&&le(j.key)};return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)},[V,j==null?void 0:j.key]),H.useEffect(()=>{var Z;S.current&&(S.current=!1,(Z=document.querySelector(".row-on"))==null||Z.scrollIntoView({block:"nearest"}))},[j==null?void 0:j.key]),H.useEffect(()=>{const Z=x.current;if(!Z)return;const pe=()=>document.documentElement.style.setProperty("--strip-h",`${Z.offsetHeight}px`);pe();const he=new ResizeObserver(pe);return he.observe(Z),()=>{he.disconnect(),document.documentElement.style.removeProperty("--strip-h")}},[j!=null]),u&&!i)return d.jsx("p",{className:"error",children:u});if(!i)return d.jsx("p",{className:"muted pad",children:"Loading…"});const X=V.reduce((Z,pe)=>Z+(pe.costUsd??0),0),T=j?i0(j,r):null,q=j?p.has(j.key):!1,ee=Cd.filter(Z=>O[Z].length>0),ce=Z=>d.jsxs("button",{className:`tab${D===Z?" tab-on":""}${Cd.includes(Z)?" tab-filed":""}${Z==="requests"?" tab-requests":""}`,title:Lu[Z].title,onClick:()=>m(Z),children:[Lu[Z].label," ",d.jsx("span",{className:"tab-count",children:O[Z].length})]},Z);return d.jsxs(d.Fragment,{children:[d.jsx(yx,{daemon:r}),u&&d.jsx("div",{className:"wrap",children:d.jsx("p",{className:"error",children:u})}),A.length===0?d.jsx("div",{className:"wrap",children:d.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?d.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):d.jsx("p",{children:"No reviews yet."}),d.jsx(Mb,{autoFocus:!0})]})}):d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"tabs",children:[fg.map(ce),ee.length>0&&d.jsx("span",{className:"tab-split","aria-hidden":"true"}),ee.map(ce),d.jsx("span",{className:"grow"}),d.jsx(Mb,{}),X>0&&d.jsxs("span",{className:"faint",title:"What these reviews would cost at API token rates. Riding a Claude subscription, they draw on your usage limits instead.",children:["≈$",X.toFixed(2)," at API rates"]})]}),d.jsxs("div",{className:"table-head",children:[d.jsx("span",{className:"col-caret"}),d.jsx(Ji,{className:"col-slug",label:"repo#pr",tip:"Repository and pull request number"}),d.jsx(Ji,{className:"col-author",label:"author",tip:"Who opened the pull request"}),d.jsx(Ji,{className:"col-title",label:"title",tip:"Pull request title"}),d.jsx(Ji,{className:"col-comments",label:"comments",tip:"Comments in the draft (— before one exists)"}),d.jsx(Ji,{className:"col-size",label:"size",tip:"Files changed, lines added, lines removed"}),d.jsx(Ji,{className:"col-verdict",label:"verdict",tip:"Recommendation, and how sure the review is"}),d.jsx(Ji,{className:"col-age",label:"upd",tip:"When this review last changed — or, on a PR nobody has drafted yet, when the PR itself last changed on GitHub"})]}),V.length===0?d.jsx("div",{className:"empty-tab",children:D==="inbox"&&G.length>0?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:W_(G)}),d.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[d.jsx(Ke,{name:"arrowRight"}),"show ",G.length===1?"it":`all ${G.length}`]})]}):d.jsx("p",{className:"muted",children:D==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Lu[D].label} right now.`})}):V.map((Z,pe)=>d.jsxs(H.Fragment,{children:[fg.includes(D)&&B_(V,pe)&&d.jsx("div",{className:"group-head",role:"heading","aria-level":2,title:"PRs you opened. Never drafted on their own — press r for a self-review. Send posts it as a comment.",children:"your PRs"}),d.jsx(vx,{r:Z,selected:Z.key===(j==null?void 0:j.key),onSelect:()=>v(Z.key),onOpen:()=>co(Z.key),awaiting:q_(Z,G)?F_(Z,r):null})]},Z.key)),j&&T&&d.jsxs("div",{className:"cursor-strip",ref:x,children:[d.jsxs("div",{className:"cursor-strip-body",children:[d.jsxs("div",{className:"lab",children:[j.pr.owner,"/",j.pr.repo,"#",j.pr.number,j.pr.headRefName&&j.pr.baseRefName?` · ${j.pr.headRefName} → ${j.pr.baseRefName}`:""]}),d.jsx(Ex,{text:T.reasoning}),d.jsxs("div",{className:"cursor-strip-meta",children:[T.meta.join(" · "),((Se=j.sent)==null?void 0:Se.url)&&d.jsxs(d.Fragment,{children:[" · ",d.jsx("a",{href:j.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),d.jsxs("div",{className:"cursor-strip-actions",children:[d.jsxs("button",{className:"btn-primary",onClick:()=>co(j.key),children:[d.jsx(Ke,{name:"arrowRight"}),"open review ",d.jsx(za,{children:"↵"})]}),d.jsxs("div",{className:"cursor-strip-row",children:[d.jsxs("button",{className:"btn",disabled:j.status==="sent"||j.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>so(j.key,{status:"skipped"}).then(C).catch(Z=>f(String(Z))),children:[d.jsx(Ke,{name:"skip"}),"skip"]}),d.jsxs("button",{className:"btn",disabled:q||j.status==="running",title:j.status==="sent"?"Draft a review of the PR's current head. What you sent stays on GitHub.":"Draft a review of the PR's current head.",onClick:()=>le(j.key),children:[d.jsx(Ke,{name:"rerun"}),q?"starting…":j.status==="awaiting"||j.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const yo="cerber.theme";function Cy(i){return i==="light"||i==="dark"?i:"system"}function Sx(){try{return Cy(localStorage.getItem(yo))}catch{return"system"}}function My(i,a=document.documentElement){i==="system"?delete a.dataset.theme:a.dataset.theme=i}function wx(i,a){try{const r=a??localStorage;i==="system"?r.removeItem(yo):r.setItem(yo,i)}catch{}}function Nx(){Dy(My)}function Dy(i){const a=r=>{(r.key===yo||r.key===null)&&i(Cy(r.newValue))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)}function xx(){const[i,a]=H.useState(Sx);return H.useEffect(()=>Dy(a),[]),[i,s=>{wx(s),My(s),a(s)}]}const Tx=[{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"}],Db=i=>i instanceof Error?i.message:String(i),Ax={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"},Rx=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}],kx=[{choice:"mod-enter",label:"⌘↵ sends a chat message, Enter starts a new line"},{choice:"enter",label:"Enter sends a chat message, Shift+Enter starts a new line"}],Ox=/^[\w.-]+\/[\w.-]+$/,Od=i=>i?"drafts automatically":"waits for a click";function Cx({daemon:i,busy:a,save:r}){const[s,u]=H.useState(""),[f,p]=H.useState(!i.autoReview),[y,g]=H.useState([]);H.useEffect(()=>{_o().then(_=>g([...new Set(_.map(C=>`${C.pr.owner}/${C.pr.repo}`))].sort())).catch(()=>{})},[]),H.useEffect(()=>p(!i.autoReview),[i.autoReview]);const m=Object.entries(i.autoReviewRepos).sort(([_],[C])=>_.localeCompare(C)),b=s.trim(),v=Ox.test(b),S=new Set(m.map(([_])=>_.toLowerCase())),x=()=>{a||!v||(r(b,f),u(""))};return d.jsxs(d.Fragment,{children:[d.jsx("h2",{children:"Per-repo exceptions"}),d.jsx("p",{className:"muted",children:"Every repo not listed here follows the switch above. List a busy repo to keep it to the click, or, with the switch off, one repo you still want drafted."}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:s,"aria-label":"Repository",placeholder:"owner/repo",list:"auto-review-repos",disabled:a,onChange:_=>u(_.target.value),onKeyDown:_=>{_.key==="Enter"&&x()}}),d.jsx("datalist",{id:"auto-review-repos",children:y.filter(_=>!S.has(_.toLowerCase())).map(_=>d.jsx("option",{value:_},_))}),d.jsxs("select",{"aria-label":"What the poll does for this repo",value:f?"auto":"click",disabled:a,onChange:_=>p(_.target.value==="auto"),children:[d.jsx("option",{value:"click",children:Od(!1)}),d.jsx("option",{value:"auto",children:Od(!0)})]}),d.jsx("button",{className:"btn",disabled:a||!v,onClick:x,children:"add"})]}),m.length===0?d.jsxs("p",{className:"muted",children:["No exceptions — every repo ",i.autoReview?"is drafted automatically":"waits for a click","."]}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.map(([_,C])=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:_})}),d.jsxs("td",{className:"muted",children:[Od(C),C===i.autoReview&&" — same as the default, so it changes nothing"]}),d.jsxs("td",{className:"trust-actions",children:[d.jsx("button",{className:"btn",disabled:a,onClick:()=>r(_,!C),children:C?"wait for a click":"draft automatically"})," ",d.jsx("button",{className:"btn",disabled:a,onClick:()=>r(_,null),children:"remove"})]})]},_))})})]})}function Mx({daemonAnnounces:i}){const[a,r]=Oy(),[s,u]=xx(),[f,p]=yy(),[y,g]=Sy(),[m,b]=H.useState(null),[v,S]=H.useState(""),[x,_]=H.useState(null),[C,A]=H.useState(!1);H.useEffect(()=>{N0().then(b).catch(D=>_(Db(D)))},[]);const O=D=>{A(!0),_(null),D.then(b).catch(V=>_(Db(V))).finally(()=>A(!1))};if(x&&!m)return d.jsx("p",{className:"error",children:x});if(!m)return d.jsx("p",{className:"muted",children:"Loading…"});const G=i&&m.daemon.poll&&m.daemon.notify;return d.jsxs("div",{className:"settings",children:[d.jsx("a",{href:"#/",className:"back",children:"← queue"}),d.jsx("h1",{children:"Inbox"}),d.jsx("p",{children:"By default cerber keeps the queue itself: it polls GitHub for PRs awaiting your review and drafts a review for each, so they're ready when you open the cockpit. Nothing is ever sent without you. Changes apply on the next poll — no restart."}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.poll,disabled:C,onChange:D=>O(Uu({poll:D.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",m.daemon.intervalMinutes,"m)"]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.autoReview,disabled:C||!m.daemon.poll,onChange:D=>O(Uu({autoReview:D.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),m.daemon.poll&&d.jsx(Cx,{daemon:m.daemon,busy:C,save:(D,V)=>O(x0(D,V))}),d.jsxs("p",{className:"muted",children:["Your own open PRs come in too, under ",d.jsx("b",{children:"your PRs"}),", for a self-review when you ask —",m.daemon.ownPrMaxAgeDays?` except ones idle for more than ${m.daemon.ownPrMaxAgeDays} days`:" all of them, however long idle"," ","(",d.jsx("code",{children:"ownPrMaxAgeDays"}),"; 0 turns the cut off)."]}),d.jsxs("p",{className:"muted",children:["Interval, concurrency, a repo filter and that age cut live in ",d.jsx("code",{children:m.path})," ","under ",d.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),d.jsx("h1",{children:"Notifications"}),d.jsx("p",{children:'When a PR is worth coming back for, cerber says so: one desktop notification per poll. With auto-review on that moment is the draft landing, not the PR arriving — a tap that leads to "no run yet" costs you the walk back and gives you nothing — and the notification names what the review found. A PR nobody is drafting (auto-review off, or a run that failed) is announced as it lands, since that is all the news there will be — and if a retry then drafts it after all, that is new news and you are told. Several at once fold into one notification, and a PR whose draft has been announced never arrives twice, however its next re-review ends.'}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.notify,disabled:C||!m.daemon.poll,onChange:D=>O(Uu({notify:D.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),d.jsxs("p",{className:"muted",children:["This is the one that works while you're somewhere else: it rides the poll, so it needs nothing open but ",d.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",d.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",d.jsx("strong",{children:"opens that review when you click it"}),', through a small app cerber builds for the job (the first one asks you to allow notifications from "Cerber"); a'," ",d.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:a==="on",disabled:a==="unsupported"||a==="blocked"||G,onChange:r})," ",G?"let this browser announce them instead":Ax[a]]}),d.jsx("p",{className:"muted",children:G?d.jsx(d.Fragment,{children:"Standing down while the machine's own notification is on — two popups for one PR is one too many. Untick the machine one above and this browser takes over: it names the PR and opens that review on click just the same, but only while a cockpit tab is open and this browser has granted the permission."}):d.jsxs(d.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",d.jsx("code",{children:m.path}),". Granting it is the browser's prompt, not cerber's — a browser that has blocked cerber has to be un-blocked from the padlock next to the address bar. Nothing is announced while you're looking straight at the cockpit."]})}),d.jsx("h1",{id:"appearance",children:"Appearance"}),d.jsx("div",{role:"radiogroup","aria-labelledby":"appearance",children:Rx.map(({choice:D,label:V})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"theme",checked:s===D,onChange:()=>u(D)})," ",V]},D))}),d.jsxs("p",{className:"muted",children:["Per-browser, like the notification switch: it's about this screen, not your reviews, so it lives here rather than in ",d.jsx("code",{children:m.path}),"."]}),d.jsx("h1",{children:"Review page"}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:f,onChange:D=>p(D.target.checked)})," ","keep chapter titles and file headers pinned while scrolling"]}),d.jsx("p",{className:"muted",children:"Ten files into a chapter you still see which one you're in, and the pinned title can open the chapter's explanation. Deep in a long file its name and Viewed box stay in reach. Per-browser, like the theme."}),kx.map(({choice:D,label:V})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"send-key",checked:y===D,onChange:()=>g(D)})," ",V]},D)),d.jsx("p",{className:"muted",children:"In the conversation with the reviewer. ⌘↵ sends under either choice, and the other boxes — comments, the review body, a handoff note — always take ⌘↵, since what goes in them runs to several lines. Per-browser, like the theme."}),d.jsx("h1",{children:"Trusted PRs"}),d.jsxs("p",{children:["Every review reads the PR's code. A ",d.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",d.jsx("code",{children:"git log"})," — so it can report what happened instead of guessing. That means executing code from the PR on this machine, the same as checking the branch out and running the tests yourself."]}),d.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",d.jsx("code",{children:m.path}),"."]}),d.jsx("p",{className:"muted",children:'Only people can be trusted — there is no way to trust a repository. Anyone can open a PR against a repo you own, so trusting the repo would trust them too. Membership is checked against GitHub when the review runs, and a check that fails counts as "not a member".'}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:v,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:C,onChange:D=>S(D.target.value),onKeyDown:D=>{D.key==="Enter"&&!C&&v.trim()&&(O(ju(v.trim())),S(""))}}),d.jsx("button",{className:"btn",disabled:C||!v.trim(),onClick:()=>{O(ju(v.trim())),S("")},children:"trust"})]}),x&&d.jsx("p",{className:"error",children:x}),m.trust.length===0?d.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.trust.map(D=>d.jsxs("tr",{className:D.denies?"trust-deny":void 0,children:[d.jsx("td",{children:d.jsx("code",{children:D.rule})}),d.jsx("td",{className:"muted",children:D.explanation}),d.jsx("td",{className:"trust-actions",children:d.jsx("button",{className:"btn",disabled:C,onClick:()=>O(ju(D.rule,!0)),children:"remove"})})]},D.rule))})}),d.jsx("h2",{children:"Rule syntax"}),d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:Tx.map(D=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:D.rule})}),d.jsx("td",{className:"muted",children:D.meaning})]},D.rule))})}),d.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",d.jsx("code",{children:"gh"})," login, no git or ssh identity — so a push fails to authenticate rather than being merely discouraged. It is not a sandbox though: it has ",d.jsx("code",{children:"Bash"})," and this machine, so trust people you would let run their branch here anyway. The daemon reviews unattended, so with rules set it runs matching PRs' code with nobody watching — start it with ",d.jsx("code",{children:"--no-trust"})," to prevent that."]}),d.jsxs("p",{className:"muted settings-version",children:["cerber ",m.version]})]})}function Lb(){const i=window.location.hash,a=i.match(/^#\/r\/(.+)$/);return a?{view:"detail",key:decodeURIComponent(a[1])}:i==="#/settings"?{view:"settings"}:{view:"queue"}}const zb={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."},jb="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 Dx({daemonAnnounces:i}){const[a,r]=Oy();return i?d.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:jb,"aria-label":jb,children:d.jsx(Ke,{name:"bell",size:15})}):a==="unsupported"?null:d.jsx("button",{className:`topbar-link bell bell-${a}`,title:zb[a],"aria-label":zb[a],"aria-pressed":a==="on",onClick:r,children:d.jsx(Ke,{name:a==="on"?"bell":"bellOff",size:15})})}function Lx(){const[i,a]=H.useState(Lb()),r=gx();return H.useEffect(()=>{const s=()=>a(Lb());return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[]),i.view==="detail"?d.jsx("div",{className:"app",children:d.jsx(ex,{reviewKey:i.key})}):d.jsxs("div",{className:"app",children:[d.jsx("header",{className:"topbar",children:d.jsxs("div",{className:"bar-inner",children:[d.jsxs("a",{href:"#/",className:"brand",children:[d.jsx(LS,{}),"cerber"]}),d.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),d.jsx("span",{className:"grow"}),i.view==="queue"&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"j"}),d.jsx(za,{children:"k"}),"move"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"↵"}),"open"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"r"}),"review now"]})]}),d.jsx(Dx,{daemonAnnounces:r}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Ke,{name:"settings",size:15})})]})}),i.view==="queue"?d.jsx(_x,{}):d.jsx(Mx,{daemonAnnounces:r})]})}Nx();KE.createRoot(document.getElementById("root")).render(d.jsx(qE.StrictMode,{children:d.jsx(Lx,{})}));
|