@fullstackhouse/cerber 1.0.0-pr.79.3e5ecd9 → 1.0.0-pr.79.7530ac5

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,4 +1,4 @@
1
- var kE=Object.defineProperty;var OE=(l,a,r)=>a in l?kE(l,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[a]=r;var xt=(l,a,r)=>OE(l,typeof a!="symbol"?a+"":a,r);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function Db(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Eu={exports:{}},Os={};/**
1
+ var OE=Object.defineProperty;var CE=(l,a,r)=>a in l?OE(l,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[a]=r;var xt=(l,a,r)=>CE(l,typeof a!="symbol"?a+"":a,r);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function Lb(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var _u={exports:{}},Cs={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ var kE=Object.defineProperty;var OE=(l,a,r)=>a in l?kE(l,a,{enumerable:!0,config
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var qm;function CE(){if(qm)return Os;qm=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,u,f){var p=null;if(f!==void 0&&(p=""+f),u.key!==void 0&&(p=""+u.key),"key"in u){f={};for(var y in u)y!=="key"&&(f[y]=u[y])}else f=u;return u=f.ref,{$$typeof:l,type:s,key:p,ref:u!==void 0?u:null,props:f}}return Os.Fragment=a,Os.jsx=r,Os.jsxs=r,Os}var Gm;function ME(){return Gm||(Gm=1,Eu.exports=CE()),Eu.exports}var d=ME(),_u={exports:{}},Fe={};/**
9
+ */var Gm;function ME(){if(Gm)return Cs;Gm=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,u,f){var p=null;if(f!==void 0&&(p=""+f),u.key!==void 0&&(p=""+u.key),"key"in u){f={};for(var y in u)y!=="key"&&(f[y]=u[y])}else f=u;return u=f.ref,{$$typeof:l,type:s,key:p,ref:u!==void 0?u:null,props:f}}return Cs.Fragment=a,Cs.jsx=r,Cs.jsxs=r,Cs}var $m;function DE(){return $m||($m=1,_u.exports=ME()),_u.exports}var d=DE(),Su={exports:{}},Fe={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@ var kE=Object.defineProperty;var OE=(l,a,r)=>a in l?kE(l,a,{enumerable:!0,config
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var $m;function DE(){if($m)return Fe;$m=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function T(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,x={};function C(S,z,B){this.props=S,this.context=z,this.refs=x,this.updater=B||N}C.prototype.isReactComponent={},C.prototype.setState=function(S,z){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,z,"setState")},C.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=C.prototype;function A(S,z,B){this.props=S,this.context=z,this.refs=x,this.updater=B||N}var Q=A.prototype=new I;Q.constructor=A,D(Q,C.prototype),Q.isPureReactComponent=!0;var V=Array.isArray;function ie(){}var H={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function q(S,z,B){var se=B.ref;return{$$typeof:l,type:S,key:z,ref:se!==void 0?se:null,props:B}}function J(S,z){return q(S.type,z,S.props)}function K(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}function me(S){var z={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(B){return z[B]})}var ce=/\/+/g;function Se(S,z){return typeof S=="object"&&S!==null&&S.key!=null?me(""+S.key):z.toString(36)}function he(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ie,ie):(S.status="pending",S.then(function(z){S.status==="pending"&&(S.status="fulfilled",S.value=z)},function(z){S.status==="pending"&&(S.status="rejected",S.reason=z)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function M(S,z,B,se,pe){var ve=typeof S;(ve==="undefined"||ve==="boolean")&&(S=null);var Z=!1;if(S===null)Z=!0;else switch(ve){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(S.$$typeof){case l:case a:Z=!0;break;case b:return Z=S._init,M(Z(S._payload),z,B,se,pe)}}if(Z)return pe=pe(S),Z=se===""?"."+Se(S,0):se,V(pe)?(B="",Z!=null&&(B=Z.replace(ce,"$&/")+"/"),M(pe,z,B,"",function(Ge){return Ge})):pe!=null&&(K(pe)&&(pe=J(pe,B+(pe.key==null||S&&S.key===pe.key?"":(""+pe.key).replace(ce,"$&/")+"/")+Z)),z.push(pe)),1;Z=0;var ye=se===""?".":se+":";if(V(S))for(var Ne=0;Ne<S.length;Ne++)se=S[Ne],ve=ye+Se(se,Ne),Z+=M(se,z,B,ve,pe);else if(Ne=T(S),typeof Ne=="function")for(S=Ne.call(S),Ne=0;!(se=S.next()).done;)se=se.value,ve=ye+Se(se,Ne++),Z+=M(se,z,B,ve,pe);else if(ve==="object"){if(typeof S.then=="function")return M(he(S),z,B,se,pe);throw z=String(S),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return Z}function ee(S,z,B){if(S==null)return S;var se=[],pe=0;return M(S,se,"","",function(ve){return z.call(B,ve,pe++)}),se}function fe(S){if(S._status===-1){var z=S._result;z=z(),z.then(function(B){(S._status===0||S._status===-1)&&(S._status=1,S._result=B)},function(B){(S._status===0||S._status===-1)&&(S._status=2,S._result=B)}),S._status===-1&&(S._status=0,S._result=z)}if(S._status===1)return S._result.default;throw S._result}var we=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Le={map:ee,forEach:function(S,z,B){ee(S,function(){z.apply(this,arguments)},B)},count:function(S){var z=0;return ee(S,function(){z++}),z},toArray:function(S){return ee(S,function(z){return z})||[]},only:function(S){if(!K(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return Fe.Activity=v,Fe.Children=Le,Fe.Component=C,Fe.Fragment=r,Fe.Profiler=u,Fe.PureComponent=A,Fe.StrictMode=s,Fe.Suspense=g,Fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Fe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return H.H.useMemoCache(S)}},Fe.cache=function(S){return function(){return S.apply(null,arguments)}},Fe.cacheSignal=function(){return null},Fe.cloneElement=function(S,z,B){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var se=D({},S.props),pe=S.key;if(z!=null)for(ve in z.key!==void 0&&(pe=""+z.key),z)!R.call(z,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&z.ref===void 0||(se[ve]=z[ve]);var ve=arguments.length-2;if(ve===1)se.children=B;else if(1<ve){for(var Z=Array(ve),ye=0;ye<ve;ye++)Z[ye]=arguments[ye+2];se.children=Z}return q(S.type,pe,se)},Fe.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:f,_context:S},S},Fe.createElement=function(S,z,B){var se,pe={},ve=null;if(z!=null)for(se in z.key!==void 0&&(ve=""+z.key),z)R.call(z,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(pe[se]=z[se]);var Z=arguments.length-2;if(Z===1)pe.children=B;else if(1<Z){for(var ye=Array(Z),Ne=0;Ne<Z;Ne++)ye[Ne]=arguments[Ne+2];pe.children=ye}if(S&&S.defaultProps)for(se in Z=S.defaultProps,Z)pe[se]===void 0&&(pe[se]=Z[se]);return q(S,ve,pe)},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(S){return{$$typeof:y,render:S}},Fe.isValidElement=K,Fe.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:fe}},Fe.memo=function(S,z){return{$$typeof:m,type:S,compare:z===void 0?null:z}},Fe.startTransition=function(S){var z=H.T,B={};H.T=B;try{var se=S(),pe=H.S;pe!==null&&pe(B,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(ie,we)}catch(ve){we(ve)}finally{z!==null&&B.types!==null&&(z.types=B.types),H.T=z}},Fe.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Fe.use=function(S){return H.H.use(S)},Fe.useActionState=function(S,z,B){return H.H.useActionState(S,z,B)},Fe.useCallback=function(S,z){return H.H.useCallback(S,z)},Fe.useContext=function(S){return H.H.useContext(S)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(S,z){return H.H.useDeferredValue(S,z)},Fe.useEffect=function(S,z){return H.H.useEffect(S,z)},Fe.useEffectEvent=function(S){return H.H.useEffectEvent(S)},Fe.useId=function(){return H.H.useId()},Fe.useImperativeHandle=function(S,z,B){return H.H.useImperativeHandle(S,z,B)},Fe.useInsertionEffect=function(S,z){return H.H.useInsertionEffect(S,z)},Fe.useLayoutEffect=function(S,z){return H.H.useLayoutEffect(S,z)},Fe.useMemo=function(S,z){return H.H.useMemo(S,z)},Fe.useOptimistic=function(S,z){return H.H.useOptimistic(S,z)},Fe.useReducer=function(S,z,B){return H.H.useReducer(S,z,B)},Fe.useRef=function(S){return H.H.useRef(S)},Fe.useState=function(S){return H.H.useState(S)},Fe.useSyncExternalStore=function(S,z,B){return H.H.useSyncExternalStore(S,z,B)},Fe.useTransition=function(){return H.H.useTransition()},Fe.version="19.2.8",Fe}var Ym;function Yd(){return Ym||(Ym=1,_u.exports=DE()),_u.exports}var F=Yd();const LE=Db(F);var Su={exports:{}},Cs={},wu={exports:{}},Nu={};/**
17
+ */var Ym;function LE(){if(Ym)return Fe;Ym=1;var l=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function T(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,x={};function C(S,z,B){this.props=S,this.context=z,this.refs=x,this.updater=B||N}C.prototype.isReactComponent={},C.prototype.setState=function(S,z){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,z,"setState")},C.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=C.prototype;function A(S,z,B){this.props=S,this.context=z,this.refs=x,this.updater=B||N}var Q=A.prototype=new I;Q.constructor=A,D(Q,C.prototype),Q.isPureReactComponent=!0;var V=Array.isArray;function ie(){}var H={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function q(S,z,B){var se=B.ref;return{$$typeof:l,type:S,key:z,ref:se!==void 0?se:null,props:B}}function J(S,z){return q(S.type,z,S.props)}function K(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}function me(S){var z={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(B){return z[B]})}var ce=/\/+/g;function Se(S,z){return typeof S=="object"&&S!==null&&S.key!=null?me(""+S.key):z.toString(36)}function he(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ie,ie):(S.status="pending",S.then(function(z){S.status==="pending"&&(S.status="fulfilled",S.value=z)},function(z){S.status==="pending"&&(S.status="rejected",S.reason=z)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function M(S,z,B,se,pe){var ve=typeof S;(ve==="undefined"||ve==="boolean")&&(S=null);var Z=!1;if(S===null)Z=!0;else switch(ve){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(S.$$typeof){case l:case a:Z=!0;break;case b:return Z=S._init,M(Z(S._payload),z,B,se,pe)}}if(Z)return pe=pe(S),Z=se===""?"."+Se(S,0):se,V(pe)?(B="",Z!=null&&(B=Z.replace(ce,"$&/")+"/"),M(pe,z,B,"",function(Ge){return Ge})):pe!=null&&(K(pe)&&(pe=J(pe,B+(pe.key==null||S&&S.key===pe.key?"":(""+pe.key).replace(ce,"$&/")+"/")+Z)),z.push(pe)),1;Z=0;var ye=se===""?".":se+":";if(V(S))for(var Ne=0;Ne<S.length;Ne++)se=S[Ne],ve=ye+Se(se,Ne),Z+=M(se,z,B,ve,pe);else if(Ne=T(S),typeof Ne=="function")for(S=Ne.call(S),Ne=0;!(se=S.next()).done;)se=se.value,ve=ye+Se(se,Ne++),Z+=M(se,z,B,ve,pe);else if(ve==="object"){if(typeof S.then=="function")return M(he(S),z,B,se,pe);throw z=String(S),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return Z}function ee(S,z,B){if(S==null)return S;var se=[],pe=0;return M(S,se,"","",function(ve){return z.call(B,ve,pe++)}),se}function fe(S){if(S._status===-1){var z=S._result;z=z(),z.then(function(B){(S._status===0||S._status===-1)&&(S._status=1,S._result=B)},function(B){(S._status===0||S._status===-1)&&(S._status=2,S._result=B)}),S._status===-1&&(S._status=0,S._result=z)}if(S._status===1)return S._result.default;throw S._result}var we=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Le={map:ee,forEach:function(S,z,B){ee(S,function(){z.apply(this,arguments)},B)},count:function(S){var z=0;return ee(S,function(){z++}),z},toArray:function(S){return ee(S,function(z){return z})||[]},only:function(S){if(!K(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return Fe.Activity=v,Fe.Children=Le,Fe.Component=C,Fe.Fragment=r,Fe.Profiler=u,Fe.PureComponent=A,Fe.StrictMode=s,Fe.Suspense=g,Fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Fe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return H.H.useMemoCache(S)}},Fe.cache=function(S){return function(){return S.apply(null,arguments)}},Fe.cacheSignal=function(){return null},Fe.cloneElement=function(S,z,B){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var se=D({},S.props),pe=S.key;if(z!=null)for(ve in z.key!==void 0&&(pe=""+z.key),z)!R.call(z,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&z.ref===void 0||(se[ve]=z[ve]);var ve=arguments.length-2;if(ve===1)se.children=B;else if(1<ve){for(var Z=Array(ve),ye=0;ye<ve;ye++)Z[ye]=arguments[ye+2];se.children=Z}return q(S.type,pe,se)},Fe.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:f,_context:S},S},Fe.createElement=function(S,z,B){var se,pe={},ve=null;if(z!=null)for(se in z.key!==void 0&&(ve=""+z.key),z)R.call(z,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(pe[se]=z[se]);var Z=arguments.length-2;if(Z===1)pe.children=B;else if(1<Z){for(var ye=Array(Z),Ne=0;Ne<Z;Ne++)ye[Ne]=arguments[Ne+2];pe.children=ye}if(S&&S.defaultProps)for(se in Z=S.defaultProps,Z)pe[se]===void 0&&(pe[se]=Z[se]);return q(S,ve,pe)},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(S){return{$$typeof:y,render:S}},Fe.isValidElement=K,Fe.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:fe}},Fe.memo=function(S,z){return{$$typeof:m,type:S,compare:z===void 0?null:z}},Fe.startTransition=function(S){var z=H.T,B={};H.T=B;try{var se=S(),pe=H.S;pe!==null&&pe(B,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(ie,we)}catch(ve){we(ve)}finally{z!==null&&B.types!==null&&(z.types=B.types),H.T=z}},Fe.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Fe.use=function(S){return H.H.use(S)},Fe.useActionState=function(S,z,B){return H.H.useActionState(S,z,B)},Fe.useCallback=function(S,z){return H.H.useCallback(S,z)},Fe.useContext=function(S){return H.H.useContext(S)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(S,z){return H.H.useDeferredValue(S,z)},Fe.useEffect=function(S,z){return H.H.useEffect(S,z)},Fe.useEffectEvent=function(S){return H.H.useEffectEvent(S)},Fe.useId=function(){return H.H.useId()},Fe.useImperativeHandle=function(S,z,B){return H.H.useImperativeHandle(S,z,B)},Fe.useInsertionEffect=function(S,z){return H.H.useInsertionEffect(S,z)},Fe.useLayoutEffect=function(S,z){return H.H.useLayoutEffect(S,z)},Fe.useMemo=function(S,z){return H.H.useMemo(S,z)},Fe.useOptimistic=function(S,z){return H.H.useOptimistic(S,z)},Fe.useReducer=function(S,z,B){return H.H.useReducer(S,z,B)},Fe.useRef=function(S){return H.H.useRef(S)},Fe.useState=function(S){return H.H.useState(S)},Fe.useSyncExternalStore=function(S,z,B){return H.H.useSyncExternalStore(S,z,B)},Fe.useTransition=function(){return H.H.useTransition()},Fe.version="19.2.8",Fe}var Fm;function Fd(){return Fm||(Fm=1,Su.exports=LE()),Su.exports}var F=Fd();const zE=Lb(F);var wu={exports:{}},Ms={},Nu={exports:{}},Tu={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ var kE=Object.defineProperty;var OE=(l,a,r)=>a in l?kE(l,a,{enumerable:!0,config
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Fm;function zE(){return Fm||(Fm=1,(function(l){function a(M,ee){var fe=M.length;M.push(ee);e:for(;0<fe;){var we=fe-1>>>1,Le=M[we];if(0<u(Le,ee))M[we]=ee,M[fe]=Le,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 ee=M[0],fe=M.pop();if(fe!==ee){M[0]=fe;e:for(var we=0,Le=M.length,S=Le>>>1;we<S;){var z=2*(we+1)-1,B=M[z],se=z+1,pe=M[se];if(0>u(B,fe))se<Le&&0>u(pe,B)?(M[we]=pe,M[se]=fe,we=se):(M[we]=B,M[z]=fe,we=z);else if(se<Le&&0>u(pe,fe))M[we]=pe,M[se]=fe,we=se;else break e}}return ee}function u(M,ee){var fe=M.sortIndex-ee.sortIndex;return fe!==0?fe:M.id-ee.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var p=Date,y=p.now();l.unstable_now=function(){return p.now()-y}}var g=[],m=[],b=1,v=null,_=3,T=!1,N=!1,D=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function Q(M){for(var ee=r(m);ee!==null;){if(ee.callback===null)s(m);else if(ee.startTime<=M)s(m),ee.sortIndex=ee.expirationTime,a(g,ee);else break;ee=r(m)}}function V(M){if(D=!1,Q(M),!N)if(r(g)!==null)N=!0,ie||(ie=!0,me());else{var ee=r(m);ee!==null&&he(V,ee.startTime-M)}}var ie=!1,H=-1,R=5,q=-1;function J(){return x?!0:!(l.unstable_now()-q<R)}function K(){if(x=!1,ie){var M=l.unstable_now();q=M;var ee=!0;try{e:{N=!1,D&&(D=!1,I(H),H=-1),T=!0;var fe=_;try{t:{for(Q(M),v=r(g);v!==null&&!(v.expirationTime>M&&J());){var we=v.callback;if(typeof we=="function"){v.callback=null,_=v.priorityLevel;var Le=we(v.expirationTime<=M);if(M=l.unstable_now(),typeof Le=="function"){v.callback=Le,Q(M),ee=!0;break t}v===r(g)&&s(g),Q(M)}else s(g);v=r(g)}if(v!==null)ee=!0;else{var S=r(m);S!==null&&he(V,S.startTime-M),ee=!1}}break e}finally{v=null,_=fe,T=!1}ee=void 0}}finally{ee?me():ie=!1}}}var me;if(typeof A=="function")me=function(){A(K)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Se=ce.port2;ce.port1.onmessage=K,me=function(){Se.postMessage(null)}}else me=function(){C(K,0)};function he(M,ee){H=C(function(){M(l.unstable_now())},ee)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(M){M.callback=null},l.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"):R=0<M?Math.floor(1e3/M):5},l.unstable_getCurrentPriorityLevel=function(){return _},l.unstable_next=function(M){switch(_){case 1:case 2:case 3:var ee=3;break;default:ee=_}var fe=_;_=ee;try{return M()}finally{_=fe}},l.unstable_requestPaint=function(){x=!0},l.unstable_runWithPriority=function(M,ee){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var fe=_;_=M;try{return ee()}finally{_=fe}},l.unstable_scheduleCallback=function(M,ee,fe){var we=l.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?we+fe:we):fe=we,M){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=fe+Le,M={id:b++,callback:ee,priorityLevel:M,startTime:fe,expirationTime:Le,sortIndex:-1},fe>we?(M.sortIndex=fe,a(m,M),r(g)===null&&M===r(m)&&(D?(I(H),H=-1):D=!0,he(V,fe-we))):(M.sortIndex=Le,a(g,M),N||T||(N=!0,ie||(ie=!0,me()))),M},l.unstable_shouldYield=J,l.unstable_wrapCallback=function(M){var ee=_;return function(){var fe=_;_=ee;try{return M.apply(this,arguments)}finally{_=fe}}}})(Nu)),Nu}var Pm;function jE(){return Pm||(Pm=1,wu.exports=zE()),wu.exports}var Tu={exports:{}},Cn={};/**
25
+ */var Pm;function jE(){return Pm||(Pm=1,(function(l){function a(M,ee){var fe=M.length;M.push(ee);e:for(;0<fe;){var we=fe-1>>>1,Le=M[we];if(0<u(Le,ee))M[we]=ee,M[fe]=Le,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 ee=M[0],fe=M.pop();if(fe!==ee){M[0]=fe;e:for(var we=0,Le=M.length,S=Le>>>1;we<S;){var z=2*(we+1)-1,B=M[z],se=z+1,pe=M[se];if(0>u(B,fe))se<Le&&0>u(pe,B)?(M[we]=pe,M[se]=fe,we=se):(M[we]=B,M[z]=fe,we=z);else if(se<Le&&0>u(pe,fe))M[we]=pe,M[se]=fe,we=se;else break e}}return ee}function u(M,ee){var fe=M.sortIndex-ee.sortIndex;return fe!==0?fe:M.id-ee.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var p=Date,y=p.now();l.unstable_now=function(){return p.now()-y}}var g=[],m=[],b=1,v=null,_=3,T=!1,N=!1,D=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function Q(M){for(var ee=r(m);ee!==null;){if(ee.callback===null)s(m);else if(ee.startTime<=M)s(m),ee.sortIndex=ee.expirationTime,a(g,ee);else break;ee=r(m)}}function V(M){if(D=!1,Q(M),!N)if(r(g)!==null)N=!0,ie||(ie=!0,me());else{var ee=r(m);ee!==null&&he(V,ee.startTime-M)}}var ie=!1,H=-1,R=5,q=-1;function J(){return x?!0:!(l.unstable_now()-q<R)}function K(){if(x=!1,ie){var M=l.unstable_now();q=M;var ee=!0;try{e:{N=!1,D&&(D=!1,I(H),H=-1),T=!0;var fe=_;try{t:{for(Q(M),v=r(g);v!==null&&!(v.expirationTime>M&&J());){var we=v.callback;if(typeof we=="function"){v.callback=null,_=v.priorityLevel;var Le=we(v.expirationTime<=M);if(M=l.unstable_now(),typeof Le=="function"){v.callback=Le,Q(M),ee=!0;break t}v===r(g)&&s(g),Q(M)}else s(g);v=r(g)}if(v!==null)ee=!0;else{var S=r(m);S!==null&&he(V,S.startTime-M),ee=!1}}break e}finally{v=null,_=fe,T=!1}ee=void 0}}finally{ee?me():ie=!1}}}var me;if(typeof A=="function")me=function(){A(K)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Se=ce.port2;ce.port1.onmessage=K,me=function(){Se.postMessage(null)}}else me=function(){C(K,0)};function he(M,ee){H=C(function(){M(l.unstable_now())},ee)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(M){M.callback=null},l.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"):R=0<M?Math.floor(1e3/M):5},l.unstable_getCurrentPriorityLevel=function(){return _},l.unstable_next=function(M){switch(_){case 1:case 2:case 3:var ee=3;break;default:ee=_}var fe=_;_=ee;try{return M()}finally{_=fe}},l.unstable_requestPaint=function(){x=!0},l.unstable_runWithPriority=function(M,ee){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var fe=_;_=M;try{return ee()}finally{_=fe}},l.unstable_scheduleCallback=function(M,ee,fe){var we=l.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?we+fe:we):fe=we,M){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=fe+Le,M={id:b++,callback:ee,priorityLevel:M,startTime:fe,expirationTime:Le,sortIndex:-1},fe>we?(M.sortIndex=fe,a(m,M),r(g)===null&&M===r(m)&&(D?(I(H),H=-1):D=!0,he(V,fe-we))):(M.sortIndex=Le,a(g,M),N||T||(N=!0,ie||(ie=!0,me()))),M},l.unstable_shouldYield=J,l.unstable_wrapCallback=function(M){var ee=_;return function(){var fe=_;_=ee;try{return M.apply(this,arguments)}finally{_=fe}}}})(Tu)),Tu}var Km;function UE(){return Km||(Km=1,Nu.exports=jE()),Nu.exports}var xu={exports:{}},Cn={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ var kE=Object.defineProperty;var OE=(l,a,r)=>a in l?kE(l,a,{enumerable:!0,config
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Km;function UE(){if(Km)return Cn;Km=1;var l=Yd();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(g,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:g,containerInfo:m,implementation:b}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Cn.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return f(g,m,null,b)},Cn.flushSync=function(g){var m=p.T,b=s.p;try{if(p.T=null,s.p=2,g)return g()}finally{p.T=m,s.p=b,s.d.f()}},Cn.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(g,m))},Cn.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Cn.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin),_=typeof m.integrity=="string"?m.integrity:void 0,T=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?s.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:T}):b==="script"&&s.d.X(g,{crossOrigin:v,integrity:_,fetchPriority:T,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 Zm;function Lb(){if(Zm)return Tu.exports;Zm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),Tu.exports=UE(),Tu.exports}/**
33
+ */var Zm;function BE(){if(Zm)return Cn;Zm=1;var l=Fd();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(g,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:g,containerInfo:m,implementation:b}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Cn.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return f(g,m,null,b)},Cn.flushSync=function(g){var m=p.T,b=s.p;try{if(p.T=null,s.p=2,g)return g()}finally{p.T=m,s.p=b,s.d.f()}},Cn.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(g,m))},Cn.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Cn.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin),_=typeof m.integrity=="string"?m.integrity:void 0,T=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?s.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:T}):b==="script"&&s.d.X(g,{crossOrigin:v,integrity:_,fetchPriority:T,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 Xm;function zb(){if(Xm)return xu.exports;Xm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),xu.exports=BE(),xu.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,25 +38,25 @@ var kE=Object.defineProperty;var OE=(l,a,r)=>a in l?kE(l,a,{enumerable:!0,config
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Xm;function BE(){if(Xm)return Cs;Xm=1;var l=jE(),a=Yd(),r=Lb();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){n=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===i)return g(o),t;c=c.sibling}throw Error(s(188))}if(n.return!==i.return)n=o,i=c;else{for(var h=!1,E=o.child;E;){if(E===n){h=!0,n=o,i=c;break}if(E===i){h=!0,i=o,n=c;break}E=E.sibling}if(!h){for(E=c.child;E;){if(E===n){h=!0,n=c,i=o;break}if(E===i){h=!0,i=c,n=o;break}E=E.sibling}if(!h)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),A=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case C:return"Profiler";case x:return"StrictMode";case V:return"Suspense";case ie:return"SuspenseList";case q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case A:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return t=e.displayName||null,t!==null?t:Se(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return Se(e(t))}catch{}}return null}var he=Array.isArray,M=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},we=[],Le=-1;function S(e){return{current:e}}function z(e){0>Le||(e.current=we[Le],we[Le]=null,Le--)}function B(e,t){Le++,we[Le]=e.current,e.current=t}var se=S(null),pe=S(null),ve=S(null),Z=S(null);function ye(e,t){switch(B(ve,t),B(pe,e),B(se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?um(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=um(t),e=dm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(se),B(se,e)}function Ne(){z(se),z(pe),z(ve)}function Ge(e){e.memoizedState!==null&&B(Z,e);var t=se.current,n=dm(t,e.type);t!==n&&(B(pe,e),B(se,n))}function $e(e){pe.current===e&&(z(se),z(pe)),Z.current===e&&(z(Z),xs._currentValue=fe)}var Me,Dt;function Pe(e){if(Me===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||"",Dt=-1<n.stack.indexOf(`
41
+ */var Vm;function IE(){if(Vm)return Ms;Vm=1;var l=UE(),a=Fd(),r=zb();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){n=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===i)return g(o),t;c=c.sibling}throw Error(s(188))}if(n.return!==i.return)n=o,i=c;else{for(var h=!1,E=o.child;E;){if(E===n){h=!0,n=o,i=c;break}if(E===i){h=!0,i=o,n=c;break}E=E.sibling}if(!h){for(E=c.child;E;){if(E===n){h=!0,n=c,i=o;break}if(E===i){h=!0,i=c,n=o;break}E=E.sibling}if(!h)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),A=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case C:return"Profiler";case x:return"StrictMode";case V:return"Suspense";case ie:return"SuspenseList";case q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case A:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return t=e.displayName||null,t!==null?t:Se(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return Se(e(t))}catch{}}return null}var he=Array.isArray,M=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},we=[],Le=-1;function S(e){return{current:e}}function z(e){0>Le||(e.current=we[Le],we[Le]=null,Le--)}function B(e,t){Le++,we[Le]=e.current,e.current=t}var se=S(null),pe=S(null),ve=S(null),Z=S(null);function ye(e,t){switch(B(ve,t),B(pe,e),B(se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?dm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=dm(t),e=fm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(se),B(se,e)}function Ne(){z(se),z(pe),z(ve)}function Ge(e){e.memoizedState!==null&&B(Z,e);var t=se.current,n=fm(t,e.type);t!==n&&(B(pe,e),B(se,n))}function $e(e){pe.current===e&&(z(se),z(pe)),Z.current===e&&(z(Z),As._currentValue=fe)}var Me,Dt;function Pe(e){if(Me===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||"",Dt=-1<n.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
43
  `+Me+e+Dt}var Hn=!1;function it(e,t){if(!e||Hn)return"";Hn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(X){var P=X}Reflect.construct(e,[],re)}else{try{re.call()}catch(X){P=X}e.call(re.prototype)}}else{try{throw Error()}catch(X){P=X}(re=e())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(X){if(X&&P&&typeof X.stack=="string")return[X.stack,P.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),h=c[0],E=c[1];if(h&&E){var k=h.split(`
44
44
  `),Y=E.split(`
45
45
  `);for(o=i=0;i<k.length&&!k[i].includes("DetermineComponentFrameRoot");)i++;for(;o<Y.length&&!Y[o].includes("DetermineComponentFrameRoot");)o++;if(i===k.length||o===Y.length)for(i=k.length-1,o=Y.length-1;1<=i&&0<=o&&k[i]!==Y[o];)o--;for(;1<=i&&0<=o;i--,o--)if(k[i]!==Y[o]){if(i!==1||o!==1)do if(i--,o--,0>o||k[i]!==Y[o]){var ae=`
46
46
  `+k[i].replace(" at new "," at ");return e.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",e.displayName)),ae}while(1<=i&&0<=o);break}}}finally{Hn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Pe(n):""}function fn(e,t){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe("Lazy");case 13:return e.child!==t&&t!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return it(e.type,!1);case 11:return it(e.type.render,!1);case 1:return it(e.type,!0);case 31:return Pe("Activity");default:return""}}function Ot(e){try{var t="",n=null;do t+=fn(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
47
47
  Error generating stack: `+i.message+`
48
- `+i.stack}}var Gt=Object.prototype.hasOwnProperty,Wt=l.unstable_scheduleCallback,Lt=l.unstable_cancelCallback,vt=l.unstable_shouldYield,Ln=l.unstable_requestPaint,lt=l.unstable_now,mt=l.unstable_getCurrentPriorityLevel,At=l.unstable_ImmediatePriority,_n=l.unstable_UserBlockingPriority,hn=l.unstable_NormalPriority,qn=l.unstable_LowPriority,Sn=l.unstable_IdlePriority,wn=l.log,ra=l.unstable_setDisableYieldValue,zn=null,It=null;function pn(e){if(typeof wn=="function"&&ra(e),It&&typeof It.setStrictMode=="function")try{It.setStrictMode(zn,e)}catch{}}var Rt=Math.clz32?Math.clz32:mn,Gn=Math.log,$n=Math.LN2;function mn(e){return e>>>=0,e===0?32:31-(Gn(e)/$n|0)|0}var He=256,gn=262144,Ht=4194304;function $t(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function O(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var E=i&134217727;return E!==0?(i=E&~c,i!==0?o=$t(i):(h&=E,h!==0?o=$t(h):n||(n=E&~e,n!==0&&(o=$t(n))))):(E=i&~c,E!==0?o=$t(E):h!==0?o=$t(h):n||(n=i&~e,n!==0&&(o=$t(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function ne(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function be(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function je(){var e=Ht;return Ht<<=1,(Ht&62914560)===0&&(Ht=4194304),e}function Qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function st(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ae(e,t,n,i,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,k=e.expirationTimes,Y=e.hiddenUpdates;for(n=h&~n;0<n;){var ae=31-Rt(n),re=1<<ae;E[ae]=0,k[ae]=-1;var P=Y[ae];if(P!==null)for(Y[ae]=null,ae=0;ae<P.length;ae++){var X=P[ae];X!==null&&(X.lane&=-536870913)}n&=~re}i!==0&&_e(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function _e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Rt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Ue(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Rt(n),o=1<<i;o&t|e[i]&t&&(e[i]|=t),n&=~o}}function Ct(e,t){var n=t&-t;return n=(n&42)!==0?1:bt(n),(n&(e.suspendedLanes|t))!==0?0:n}function bt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function jn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Un(){var e=ee.p;return e!==0?e:(e=window.event,e===void 0?32:Lm(e.type))}function ba(e,t){var n=ee.p;try{return ee.p=e,t()}finally{ee.p=n}}var Pt=Math.random().toString(36).slice(2),St="__reactFiber$"+Pt,Kt="__reactProps$"+Pt,ut="__reactContainer$"+Pt,Yn="__reactEvents$"+Pt,ii="__reactListeners$"+Pt,ya="__reactHandles$"+Pt,va="__reactResources$"+Pt,Wn="__reactMarker$"+Pt;function Ea(e){delete e[St],delete e[Kt],delete e[Yn],delete e[ii],delete e[ya]}function Jt(e){var t=e[St];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ym(e);e!==null;){if(n=e[St])return n;e=ym(e)}return t}e=n,n=e.parentNode}return null}function Fn(e){if(e=e[St]||e[ut]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function G(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function de(e){var t=e[va];return t||(t=e[va]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ge(e){e[Wn]=!0}var Te=new Set,Ye={};function un(e,t){oe(e,t),oe(e+"Capture",t)}function oe(e,t){for(Ye[e]=t,e=0;e<t.length;e++)Te.add(t[e])}var Re=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Be={},Je={};function Mt(e){return Gt.call(Je,e)?!0:Gt.call(Be,e)?!1:Re.test(e)?Je[e]=!0:(Be[e]=!0,!1)}function en(e,t,n){if(Mt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function bn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Zt(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ut(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nl(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){if(!e._valueTracker){var t=Ut(e)?"checked":"value";e._valueTracker=nl(e,t,""+e[t])}}function si(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Ut(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Ua(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var al=/[\n"\\]/g;function On(e){return e.replace(al,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ri(e,t,n,i,o,c,h,E){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ft(t)):e.value!==""+ft(t)&&(e.value=""+ft(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?oi(e,h,ft(t)):n!=null?oi(e,h,ft(n)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+ft(E):e.removeAttribute("name")}function Ba(e,t,n,i,o,c,h,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){li(e);return}n=n!=null?""+ft(n):"",t=t!=null?""+ft(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=E?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),li(e)}function oi(e,t,n){t==="number"&&Ua(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function tn(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&i&&(e[n].defaultSelected=!0)}else{for(n=""+ft(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ia(e,t,n){if(t!=null&&(t=""+ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ft(n):""}function Aa(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(s(92));if(he(i)){if(1<i.length)throw Error(s(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=ft(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),li(e)}function W(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var w=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function j(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||w.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function te(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&n[o]!==i&&j(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&j(e,c,t[c])}function xe(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oe=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),qe=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function et(e){return qe.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ue(){}var Ee=null;function De(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ve=null,We=null;function oa(e){var t=Fn(e);if(t&&(e=t.stateNode)){var n=e[Kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ri(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+On(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=i[Kt]||null;if(!o)throw Error(s(90));ri(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&si(i)}break e;case"textarea":Ia(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&tn(e,!!n.multiple,t,!1)}}}var Gl=!1;function Fs(e,t,n){if(Gl)return e(t,n);Gl=!0;try{var i=e(t);return i}finally{if(Gl=!1,(Ve!==null||We!==null)&&(Mr(),Ve&&(t=Ve,e=We,We=Ve=null,oa(t),e)))for(t=0;t<e.length;t++)oa(e[t])}}function $l(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Kt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var Ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eo=!1;if(Ha)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){Eo=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{Eo=!1}var ci=null,_o=null,Ps=null;function df(){if(Ps)return Ps;var e,t=_o,n=t.length,i,o="value"in ci?ci.value:ci.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(i=1;i<=h&&t[n-i]===o[c-i];i++);return Ps=o.slice(e,1<i?1-i:void 0)}function Ks(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Zs(){return!0}function ff(){return!1}function Pn(e){function t(n,i,o,c,h){this._reactName=n,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(n=e[E],this[E]=n?n(c):c[E]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Zs:ff,this.isPropagationStopped=ff,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Zs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zs)},persist:function(){},isPersistent:Zs}),t}var ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=Pn(ji),Fl=v({},ji,{view:0,detail:0}),Ay=Pn(Fl),So,wo,Pl,Vs=v({},Fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:To,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pl&&(Pl&&e.type==="mousemove"?(So=e.screenX-Pl.screenX,wo=e.screenY-Pl.screenY):wo=So=0,Pl=e),So)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),hf=Pn(Vs),Ry=v({},Vs,{dataTransfer:0}),ky=Pn(Ry),Oy=v({},Fl,{relatedTarget:0}),No=Pn(Oy),Cy=v({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),My=Pn(Cy),Dy=v({},ji,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ly=Pn(Dy),zy=v({},ji,{data:0}),pf=Pn(zy),jy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Uy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},By={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Iy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=By[e])?!!t[e]:!1}function To(){return Iy}var Hy=v({},Fl,{key:function(e){if(e.key){var t=jy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ks(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Uy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:To,charCode:function(e){return e.type==="keypress"?Ks(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ks(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qy=Pn(Hy),Gy=v({},Vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mf=Pn(Gy),$y=v({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:To}),Yy=Pn($y),Fy=v({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),Py=Pn(Fy),Ky=v({},Vs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Zy=Pn(Ky),Xy=v({},ji,{newState:0,oldState:0}),Vy=Pn(Xy),Qy=[9,13,27,32],xo=Ha&&"CompositionEvent"in window,Kl=null;Ha&&"documentMode"in document&&(Kl=document.documentMode);var Wy=Ha&&"TextEvent"in window&&!Kl,gf=Ha&&(!xo||Kl&&8<Kl&&11>=Kl),bf=" ",yf=!1;function vf(e,t){switch(e){case"keyup":return Qy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ef(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function Jy(e,t){switch(e){case"compositionend":return Ef(t);case"keypress":return t.which!==32?null:(yf=!0,bf);case"textInput":return e=t.data,e===bf&&yf?null:e;default:return null}}function ev(e,t){if(il)return e==="compositionend"||!xo&&vf(e,t)?(e=df(),Ps=_o=ci=null,il=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return gf&&t.locale!=="ko"?null:t.data;default:return null}}var tv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _f(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tv[e.type]:t==="textarea"}function Sf(e,t,n,i){Ve?We?We.push(i):We=[i]:Ve=i,t=Ir(t,"onChange"),0<t.length&&(n=new Xs("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Zl=null,Xl=null;function nv(e){im(e,0)}function Qs(e){var t=G(e);if(si(t))return e}function wf(e,t){if(e==="change")return t}var Nf=!1;if(Ha){var Ao;if(Ha){var Ro="oninput"in document;if(!Ro){var Tf=document.createElement("div");Tf.setAttribute("oninput","return;"),Ro=typeof Tf.oninput=="function"}Ao=Ro}else Ao=!1;Nf=Ao&&(!document.documentMode||9<document.documentMode)}function xf(){Zl&&(Zl.detachEvent("onpropertychange",Af),Xl=Zl=null)}function Af(e){if(e.propertyName==="value"&&Qs(Xl)){var t=[];Sf(t,Xl,e,De(e)),Fs(nv,t)}}function av(e,t,n){e==="focusin"?(xf(),Zl=t,Xl=n,Zl.attachEvent("onpropertychange",Af)):e==="focusout"&&xf()}function iv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qs(Xl)}function lv(e,t){if(e==="click")return Qs(t)}function sv(e,t){if(e==="input"||e==="change")return Qs(t)}function rv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jn=typeof Object.is=="function"?Object.is:rv;function Vl(e,t){if(Jn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var o=n[i];if(!Gt.call(t,o)||!Jn(e[o],t[o]))return!1}return!0}function Rf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kf(e,t){var n=Rf(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rf(n)}}function Of(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Of(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ua(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ua(e.document)}return t}function ko(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ov=Ha&&"documentMode"in document&&11>=document.documentMode,ll=null,Oo=null,Ql=null,Co=!1;function Mf(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Co||ll==null||ll!==Ua(i)||(i=ll,"selectionStart"in i&&ko(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ql&&Vl(Ql,i)||(Ql=i,i=Ir(Oo,"onSelect"),0<i.length&&(t=new Xs("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ll)))}function Ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sl={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionrun:Ui("Transition","TransitionRun"),transitionstart:Ui("Transition","TransitionStart"),transitioncancel:Ui("Transition","TransitionCancel"),transitionend:Ui("Transition","TransitionEnd")},Mo={},Df={};Ha&&(Df=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);function Bi(e){if(Mo[e])return Mo[e];if(!sl[e])return e;var t=sl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Df)return Mo[e]=t[n];return e}var Lf=Bi("animationend"),zf=Bi("animationiteration"),jf=Bi("animationstart"),cv=Bi("transitionrun"),uv=Bi("transitionstart"),dv=Bi("transitioncancel"),Uf=Bi("transitionend"),Bf=new Map,Do="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Do.push("scrollEnd");function _a(e,t){Bf.set(e,t),un(t,[e])}var Ws=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ca=[],rl=0,Lo=0;function Js(){for(var e=rl,t=Lo=rl=0;t<e;){var n=ca[t];ca[t++]=null;var i=ca[t];ca[t++]=null;var o=ca[t];ca[t++]=null;var c=ca[t];if(ca[t++]=null,i!==null&&o!==null){var h=i.pending;h===null?o.next=o:(o.next=h.next,h.next=o),i.pending=o}c!==0&&If(n,o,c)}}function er(e,t,n,i){ca[rl++]=e,ca[rl++]=t,ca[rl++]=n,ca[rl++]=i,Lo|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function zo(e,t,n,i){return er(e,t,n,i),tr(e)}function Ii(e,t){return er(e,null,null,t),tr(e)}function If(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Rt(n),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=n|536870912),c):null}function tr(e){if(50<vs)throw vs=0,Yc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ol={};function fv(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ea(e,t,n,i){return new fv(e,t,n,i)}function jo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qa(e,t){var n=e.alternate;return n===null?(n=ea(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Hf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nr(e,t,n,i,o,c){var h=0;if(i=e,typeof e=="function")jo(e)&&(h=1);else if(typeof e=="string")h=bE(e,n,se.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case q:return e=ea(31,n,t,o),e.elementType=q,e.lanes=c,e;case D:return Hi(n.children,o,c,t);case x:h=8,o|=24;break;case C:return e=ea(12,n,t,o|2),e.elementType=C,e.lanes=c,e;case V:return e=ea(13,n,t,o),e.elementType=V,e.lanes=c,e;case ie:return e=ea(19,n,t,o),e.elementType=ie,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A:h=10;break e;case I:h=9;break e;case Q:h=11;break e;case H:h=14;break e;case R:h=16,i=null;break e}h=29,n=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=ea(h,n,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function Hi(e,t,n,i){return e=ea(7,e,i,t),e.lanes=n,e}function Uo(e,t,n){return e=ea(6,e,null,t),e.lanes=n,e}function qf(e){var t=ea(18,null,null,0);return t.stateNode=e,t}function Bo(e,t,n){return t=ea(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gf=new WeakMap;function ua(e,t){if(typeof e=="object"&&e!==null){var n=Gf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ot(t)},Gf.set(e,t),t)}return{value:e,source:t,stack:Ot(t)}}var cl=[],ul=0,ar=null,Wl=0,da=[],fa=0,ui=null,Ra=1,ka="";function Ga(e,t){cl[ul++]=Wl,cl[ul++]=ar,ar=e,Wl=t}function $f(e,t,n){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,ui=e;var i=Ra;e=ka;var o=32-Rt(i)-1;i&=~(1<<o),n+=1;var c=32-Rt(t)+o;if(30<c){var h=o-o%5;c=(i&(1<<h)-1).toString(32),i>>=h,o-=h,Ra=1<<32-Rt(t)+o|n<<o|i,ka=c+e}else Ra=1<<c|n<<o|i,ka=e}function Io(e){e.return!==null&&(Ga(e,1),$f(e,1,0))}function Ho(e){for(;e===ar;)ar=cl[--ul],cl[ul]=null,Wl=cl[--ul],cl[ul]=null;for(;e===ui;)ui=da[--fa],da[fa]=null,ka=da[--fa],da[fa]=null,Ra=da[--fa],da[fa]=null}function Yf(e,t){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,Ra=t.id,ka=t.overflow,ui=e}var Nn=null,zt=null,ct=!1,di=null,ha=!1,qo=Error(s(519));function fi(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jl(ua(t,e)),qo}function Ff(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[St]=e,t[Kt]=i,n){case"dialog":nt("cancel",t),nt("close",t);break;case"iframe":case"object":case"embed":nt("load",t);break;case"video":case"audio":for(n=0;n<_s.length;n++)nt(_s[n],t);break;case"source":nt("error",t);break;case"img":case"image":case"link":nt("error",t),nt("load",t);break;case"details":nt("toggle",t);break;case"input":nt("invalid",t),Ba(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":nt("invalid",t);break;case"textarea":nt("invalid",t),Aa(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||om(t.textContent,n)?(i.popover!=null&&(nt("beforetoggle",t),nt("toggle",t)),i.onScroll!=null&&nt("scroll",t),i.onScrollEnd!=null&&nt("scrollend",t),i.onClick!=null&&(t.onclick=ue),t=!0):t=!1,t||fi(e,!0)}function Pf(e){for(Nn=e.return;Nn;)switch(Nn.tag){case 5:case 31:case 13:ha=!1;return;case 27:case 3:ha=!0;return;default:Nn=Nn.return}}function dl(e){if(e!==Nn)return!1;if(!ct)return Pf(e),ct=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||lu(e.type,e.memoizedProps)),n=!n),n&&zt&&fi(e),Pf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));zt=bm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));zt=bm(e)}else t===27?(t=zt,xi(e.type)?(e=uu,uu=null,zt=e):zt=t):zt=Nn?ma(e.stateNode.nextSibling):null;return!0}function qi(){zt=Nn=null,ct=!1}function Go(){var e=di;return e!==null&&(Vn===null?Vn=e:Vn.push.apply(Vn,e),di=null),e}function Jl(e){di===null?di=[e]:di.push(e)}var $o=S(null),Gi=null,$a=null;function hi(e,t,n){B($o,t._currentValue),t._currentValue=n}function Ya(e){e._currentValue=$o.current,z($o)}function Yo(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Fo(e,t,n,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=o;for(var k=0;k<t.length;k++)if(E.context===t[k]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),Yo(c.return,n,e),i||(h=null);break e}c=E.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Yo(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function fl(e,t,n,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var E=o.type;Jn(o.pendingProps.value,h.value)||(e!==null?e.push(E):e=[E])}}else if(o===Z.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(xs):e=[xs])}o=o.return}e!==null&&Fo(t,e,n,i),t.flags|=262144}function ir(e){for(e=e.firstContext;e!==null;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,$a=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tn(e){return Kf(Gi,e)}function lr(e,t){return Gi===null&&$i(e),Kf(e,t)}function Kf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},$a===null){if(e===null)throw Error(s(308));$a=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $a=$a.next=t;return n}var hv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},pv=l.unstable_scheduleCallback,mv=l.unstable_NormalPriority,nn={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Po(){return{controller:new hv,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&pv(mv,function(){e.controller.abort()})}var ts=null,Ko=0,hl=0,pl=null;function gv(e,t){if(ts===null){var n=ts=[];Ko=0,hl=Vc(),pl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Ko++,t.then(Zf,Zf),t}function Zf(){if(--Ko===0&&ts!==null){pl!==null&&(pl.status="fulfilled");var e=ts;ts=null,hl=0,pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function bv(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),i}var Xf=M.S;M.S=function(e,t){Mp=lt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&gv(e,t),Xf!==null&&Xf(e,t)};var Yi=S(null);function Zo(){var e=Yi.current;return e!==null?e:kt.pooledCache}function sr(e,t){t===null?B(Yi,Yi.current):B(Yi,t.pool)}function Vf(){var e=Zo();return e===null?null:{parent:nn._currentValue,pool:e}}var ml=Error(s(460)),Xo=Error(s(474)),rr=Error(s(542)),or={then:function(){}};function Qf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ue,ue),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,eh(e),e;default:if(typeof t.status=="string")t.then(ue,ue);else{if(e=kt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,eh(e),e}throw Pi=t,ml}}function Fi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pi=n,ml):n}}var Pi=null;function Jf(){if(Pi===null)throw Error(s(459));var e=Pi;return Pi=null,e}function eh(e){if(e===ml||e===rr)throw Error(s(483))}var gl=null,ns=0;function cr(e){var t=ns;return ns+=1,gl===null&&(gl=[]),Wf(gl,e,t)}function as(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ur(e,t){throw t.$$typeof===_?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function th(e){function t(U,L){if(e){var $=U.deletions;$===null?(U.deletions=[L],U.flags|=16):$.push(L)}}function n(U,L){if(!e)return null;for(;L!==null;)t(U,L),L=L.sibling;return null}function i(U){for(var L=new Map;U!==null;)U.key!==null?L.set(U.key,U):L.set(U.index,U),U=U.sibling;return L}function o(U,L){return U=qa(U,L),U.index=0,U.sibling=null,U}function c(U,L,$){return U.index=$,e?($=U.alternate,$!==null?($=$.index,$<L?(U.flags|=67108866,L):$):(U.flags|=67108866,L)):(U.flags|=1048576,L)}function h(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function E(U,L,$,le){return L===null||L.tag!==6?(L=Uo($,U.mode,le),L.return=U,L):(L=o(L,$),L.return=U,L)}function k(U,L,$,le){var ze=$.type;return ze===D?ae(U,L,$.props.children,le,$.key):L!==null&&(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===R&&Fi(ze)===L.type)?(L=o(L,$.props),as(L,$),L.return=U,L):(L=nr($.type,$.key,$.props,null,U.mode,le),as(L,$),L.return=U,L)}function Y(U,L,$,le){return L===null||L.tag!==4||L.stateNode.containerInfo!==$.containerInfo||L.stateNode.implementation!==$.implementation?(L=Bo($,U.mode,le),L.return=U,L):(L=o(L,$.children||[]),L.return=U,L)}function ae(U,L,$,le,ze){return L===null||L.tag!==7?(L=Hi($,U.mode,le,ze),L.return=U,L):(L=o(L,$),L.return=U,L)}function re(U,L,$){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Uo(""+L,U.mode,$),L.return=U,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case T:return $=nr(L.type,L.key,L.props,null,U.mode,$),as($,L),$.return=U,$;case N:return L=Bo(L,U.mode,$),L.return=U,L;case R:return L=Fi(L),re(U,L,$)}if(he(L)||me(L))return L=Hi(L,U.mode,$,null),L.return=U,L;if(typeof L.then=="function")return re(U,cr(L),$);if(L.$$typeof===A)return re(U,lr(U,L),$);ur(U,L)}return null}function P(U,L,$,le){var ze=L!==null?L.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return ze!==null?null:E(U,L,""+$,le);if(typeof $=="object"&&$!==null){switch($.$$typeof){case T:return $.key===ze?k(U,L,$,le):null;case N:return $.key===ze?Y(U,L,$,le):null;case R:return $=Fi($),P(U,L,$,le)}if(he($)||me($))return ze!==null?null:ae(U,L,$,le,null);if(typeof $.then=="function")return P(U,L,cr($),le);if($.$$typeof===A)return P(U,L,lr(U,$),le);ur(U,$)}return null}function X(U,L,$,le,ze){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return U=U.get($)||null,E(L,U,""+le,ze);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case T:return U=U.get(le.key===null?$:le.key)||null,k(L,U,le,ze);case N:return U=U.get(le.key===null?$:le.key)||null,Y(L,U,le,ze);case R:return le=Fi(le),X(U,L,$,le,ze)}if(he(le)||me(le))return U=U.get($)||null,ae(L,U,le,ze,null);if(typeof le.then=="function")return X(U,L,$,cr(le),ze);if(le.$$typeof===A)return X(U,L,$,lr(L,le),ze);ur(L,le)}return null}function ke(U,L,$,le){for(var ze=null,ht=null,Ce=L,Xe=L=0,ot=null;Ce!==null&&Xe<$.length;Xe++){Ce.index>Xe?(ot=Ce,Ce=null):ot=Ce.sibling;var pt=P(U,Ce,$[Xe],le);if(pt===null){Ce===null&&(Ce=ot);break}e&&Ce&&pt.alternate===null&&t(U,Ce),L=c(pt,L,Xe),ht===null?ze=pt:ht.sibling=pt,ht=pt,Ce=ot}if(Xe===$.length)return n(U,Ce),ct&&Ga(U,Xe),ze;if(Ce===null){for(;Xe<$.length;Xe++)Ce=re(U,$[Xe],le),Ce!==null&&(L=c(Ce,L,Xe),ht===null?ze=Ce:ht.sibling=Ce,ht=Ce);return ct&&Ga(U,Xe),ze}for(Ce=i(Ce);Xe<$.length;Xe++)ot=X(Ce,U,Xe,$[Xe],le),ot!==null&&(e&&ot.alternate!==null&&Ce.delete(ot.key===null?Xe:ot.key),L=c(ot,L,Xe),ht===null?ze=ot:ht.sibling=ot,ht=ot);return e&&Ce.forEach(function(Ci){return t(U,Ci)}),ct&&Ga(U,Xe),ze}function Ie(U,L,$,le){if($==null)throw Error(s(151));for(var ze=null,ht=null,Ce=L,Xe=L=0,ot=null,pt=$.next();Ce!==null&&!pt.done;Xe++,pt=$.next()){Ce.index>Xe?(ot=Ce,Ce=null):ot=Ce.sibling;var Ci=P(U,Ce,pt.value,le);if(Ci===null){Ce===null&&(Ce=ot);break}e&&Ce&&Ci.alternate===null&&t(U,Ce),L=c(Ci,L,Xe),ht===null?ze=Ci:ht.sibling=Ci,ht=Ci,Ce=ot}if(pt.done)return n(U,Ce),ct&&Ga(U,Xe),ze;if(Ce===null){for(;!pt.done;Xe++,pt=$.next())pt=re(U,pt.value,le),pt!==null&&(L=c(pt,L,Xe),ht===null?ze=pt:ht.sibling=pt,ht=pt);return ct&&Ga(U,Xe),ze}for(Ce=i(Ce);!pt.done;Xe++,pt=$.next())pt=X(Ce,U,Xe,pt.value,le),pt!==null&&(e&&pt.alternate!==null&&Ce.delete(pt.key===null?Xe:pt.key),L=c(pt,L,Xe),ht===null?ze=pt:ht.sibling=pt,ht=pt);return e&&Ce.forEach(function(RE){return t(U,RE)}),ct&&Ga(U,Xe),ze}function Tt(U,L,$,le){if(typeof $=="object"&&$!==null&&$.type===D&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case T:e:{for(var ze=$.key;L!==null;){if(L.key===ze){if(ze=$.type,ze===D){if(L.tag===7){n(U,L.sibling),le=o(L,$.props.children),le.return=U,U=le;break e}}else if(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===R&&Fi(ze)===L.type){n(U,L.sibling),le=o(L,$.props),as(le,$),le.return=U,U=le;break e}n(U,L);break}else t(U,L);L=L.sibling}$.type===D?(le=Hi($.props.children,U.mode,le,$.key),le.return=U,U=le):(le=nr($.type,$.key,$.props,null,U.mode,le),as(le,$),le.return=U,U=le)}return h(U);case N:e:{for(ze=$.key;L!==null;){if(L.key===ze)if(L.tag===4&&L.stateNode.containerInfo===$.containerInfo&&L.stateNode.implementation===$.implementation){n(U,L.sibling),le=o(L,$.children||[]),le.return=U,U=le;break e}else{n(U,L);break}else t(U,L);L=L.sibling}le=Bo($,U.mode,le),le.return=U,U=le}return h(U);case R:return $=Fi($),Tt(U,L,$,le)}if(he($))return ke(U,L,$,le);if(me($)){if(ze=me($),typeof ze!="function")throw Error(s(150));return $=ze.call($),Ie(U,L,$,le)}if(typeof $.then=="function")return Tt(U,L,cr($),le);if($.$$typeof===A)return Tt(U,L,lr(U,$),le);ur(U,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,L!==null&&L.tag===6?(n(U,L.sibling),le=o(L,$),le.return=U,U=le):(n(U,L),le=Uo($,U.mode,le),le.return=U,U=le),h(U)):n(U,L)}return function(U,L,$,le){try{ns=0;var ze=Tt(U,L,$,le);return gl=null,ze}catch(Ce){if(Ce===ml||Ce===rr)throw Ce;var ht=ea(29,Ce,null,U.mode);return ht.lanes=le,ht.return=U,ht}finally{}}}var Ki=th(!0),nh=th(!1),pi=!1;function Vo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function mi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(gt&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=tr(e),If(e,null,n),t}return er(e,i,t,n),tr(e)}function is(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ue(e,n)}}function Wo(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Jo=!1;function ls(){if(Jo){var e=pl;if(e!==null)throw e}}function ss(e,t,n,i){Jo=!1;var o=e.updateQueue;pi=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var k=E,Y=k.next;k.next=null,h===null?c=Y:h.next=Y,h=k;var ae=e.alternate;ae!==null&&(ae=ae.updateQueue,E=ae.lastBaseUpdate,E!==h&&(E===null?ae.firstBaseUpdate=Y:E.next=Y,ae.lastBaseUpdate=k))}if(c!==null){var re=o.baseState;h=0,ae=Y=k=null,E=c;do{var P=E.lane&-536870913,X=P!==E.lane;if(X?(rt&P)===P:(i&P)===P){P!==0&&P===hl&&(Jo=!0),ae!==null&&(ae=ae.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ke=e,Ie=E;P=t;var Tt=n;switch(Ie.tag){case 1:if(ke=Ie.payload,typeof ke=="function"){re=ke.call(Tt,re,P);break e}re=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=Ie.payload,P=typeof ke=="function"?ke.call(Tt,re,P):ke,P==null)break e;re=v({},re,P);break e;case 2:pi=!0}}P=E.callback,P!==null&&(e.flags|=64,X&&(e.flags|=8192),X=o.callbacks,X===null?o.callbacks=[P]:X.push(P))}else X={lane:P,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ae===null?(Y=ae=X,k=re):ae=ae.next=X,h|=P;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;X=E,E=X.next,X.next=null,o.lastBaseUpdate=X,o.shared.pending=null}}while(!0);ae===null&&(k=re),o.baseState=k,o.firstBaseUpdate=Y,o.lastBaseUpdate=ae,c===null&&(o.shared.lanes=0),_i|=h,e.lanes=h,e.memoizedState=re}}function ah(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function ih(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ah(n[e],t)}var bl=S(null),dr=S(0);function lh(e,t){e=Ja,B(dr,e),B(bl,t),Ja=e|t.baseLanes}function ec(){B(dr,Ja),B(bl,bl.current)}function tc(){Ja=dr.current,z(bl),z(dr)}var ta=S(null),pa=null;function bi(e){var t=e.alternate;B(Xt,Xt.current&1),B(ta,e),pa===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(pa=e)}function nc(e){B(Xt,Xt.current),B(ta,e),pa===null&&(pa=e)}function sh(e){e.tag===22?(B(Xt,Xt.current),B(ta,e),pa===null&&(pa=e)):yi()}function yi(){B(Xt,Xt.current),B(ta,ta.current)}function na(e){z(ta),pa===e&&(pa=null),z(Xt)}var Xt=S(0);function fr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ou(n)||cu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fa=0,Ke=null,wt=null,an=null,hr=!1,yl=!1,Zi=!1,pr=0,rs=0,vl=null,yv=0;function Yt(){throw Error(s(321))}function ac(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function ic(e,t,n,i,o,c){return Fa=c,Ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?$h:vc,Zi=!1,c=n(i,o),Zi=!1,yl&&(c=oh(t,n,i,o)),rh(e),c}function rh(e){M.H=us;var t=wt!==null&&wt.next!==null;if(Fa=0,an=wt=Ke=null,hr=!1,rs=0,vl=null,t)throw Error(s(300));e===null||ln||(e=e.dependencies,e!==null&&ir(e)&&(ln=!0))}function oh(e,t,n,i){Ke=e;var o=0;do{if(yl&&(vl=null),rs=0,yl=!1,25<=o)throw Error(s(301));if(o+=1,an=wt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}M.H=Yh,c=t(n,i)}while(yl);return c}function vv(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(wt!==null?wt.memoizedState:null)!==e&&(Ke.flags|=1024),t}function lc(){var e=pr!==0;return pr=0,e}function sc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function rc(e){if(hr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hr=!1}Fa=0,an=wt=Ke=null,yl=!1,rs=pr=0,vl=null}function Bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return an===null?Ke.memoizedState=an=e:an=an.next=e,an}function Vt(){if(wt===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=wt.next;var t=an===null?Ke.memoizedState:an.next;if(t!==null)an=t,wt=e;else{if(e===null)throw Ke.alternate===null?Error(s(467)):Error(s(310));wt=e,e={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},an===null?Ke.memoizedState=an=e:an=an.next=e}return an}function mr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=rs;return rs+=1,vl===null&&(vl=[]),e=Wf(vl,e,t),t=Ke,(an===null?t.memoizedState:an.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?$h:vc),e}function gr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===A)return Tn(e)}throw Error(s(438,String(e)))}function oc(e){var t=null,n=Ke.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ke.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=mr(),Ke.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=J;return t.index++,n}function Pa(e,t){return typeof t=="function"?t(e):t}function br(e){var t=Vt();return cc(t,wt,e)}function cc(e,t,n){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=h=null,k=null,Y=t,ae=!1;do{var re=Y.lane&-536870913;if(re!==Y.lane?(rt&re)===re:(Fa&re)===re){var P=Y.revertLane;if(P===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),re===hl&&(ae=!0);else if((Fa&P)===P){Y=Y.next,P===hl&&(ae=!0);continue}else re={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},k===null?(E=k=re,h=c):k=k.next=re,Ke.lanes|=P,_i|=P;re=Y.action,Zi&&n(c,re),c=Y.hasEagerState?Y.eagerState:n(c,re)}else P={lane:re,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},k===null?(E=k=P,h=c):k=k.next=P,Ke.lanes|=re,_i|=re;Y=Y.next}while(Y!==null&&Y!==t);if(k===null?h=c:k.next=E,!Jn(c,e.memoizedState)&&(ln=!0,ae&&(n=pl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=k,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function uc(e){var t=Vt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);Jn(c,t.memoizedState)||(ln=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function ch(e,t,n){var i=Ke,o=Vt(),c=ct;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var h=!Jn((wt||o).memoizedState,n);if(h&&(o.memoizedState=n,ln=!0),o=o.queue,hc(fh.bind(null,i,o,e),[e]),o.getSnapshot!==t||h||an!==null&&an.memoizedState.tag&1){if(i.flags|=2048,El(9,{destroy:void 0},dh.bind(null,i,o,n,t),null),kt===null)throw Error(s(349));c||(Fa&127)!==0||uh(i,t,n)}return n}function uh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ke.updateQueue,t===null?(t=mr(),Ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dh(e,t,n,i){t.value=n,t.getSnapshot=i,hh(t)&&ph(e)}function fh(e,t,n){return n(function(){hh(t)&&ph(e)})}function hh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch{return!0}}function ph(e){var t=Ii(e,2);t!==null&&Qn(t,e,2)}function dc(e){var t=Bn();if(typeof e=="function"){var n=e;if(e=n(),Zi){pn(!0);try{n()}finally{pn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t}function mh(e,t,n,i){return e.baseState=n,cc(e,wt,typeof i=="function"?i:Pa)}function Ev(e,t,n,i,o){if(Er(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};M.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,gh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function gh(e,t){var n=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=M.T,h={};M.T=h;try{var E=n(o,i),k=M.S;k!==null&&k(h,E),bh(e,t,E)}catch(Y){fc(e,t,Y)}finally{c!==null&&h.types!==null&&(c.types=h.types),M.T=c}}else try{c=n(o,i),bh(e,t,c)}catch(Y){fc(e,t,Y)}}function bh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){yh(e,t,i)},function(i){return fc(e,t,i)}):yh(e,t,n)}function yh(e,t,n){t.status="fulfilled",t.value=n,vh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,gh(e,n)))}function fc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,vh(t),t=t.next;while(t!==i)}e.action=null}function vh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Eh(e,t){return t}function _h(e,t){if(ct){var n=kt.formState;if(n!==null){e:{var i=Ke;if(ct){if(zt){t:{for(var o=zt,c=ha;o.nodeType!==8;){if(!c){o=null;break t}if(o=ma(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){zt=ma(o.nextSibling),i=o.data==="F!";break e}}fi(i)}i=!1}i&&(t=n[0])}}return n=Bn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eh,lastRenderedState:t},n.queue=i,n=Hh.bind(null,Ke,i),i.dispatch=n,i=dc(!1),c=yc.bind(null,Ke,!1,i.queue),i=Bn(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,n=Ev.bind(null,Ke,o,c,n),o.dispatch=n,i.memoizedState=e,[t,n,!1]}function Sh(e){var t=Vt();return wh(t,wt,e)}function wh(e,t,n){if(t=cc(e,t,Eh)[0],e=br(Pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=os(t)}catch(h){throw h===ml?rr:h}else i=t;t=Vt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Ke.flags|=2048,El(9,{destroy:void 0},_v.bind(null,o,n),null)),[i,c,e]}function _v(e,t){e.action=t}function Nh(e){var t=Vt(),n=wt;if(n!==null)return wh(t,n,e);Vt(),t=t.memoizedState,n=Vt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function El(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ke.updateQueue,t===null&&(t=mr(),Ke.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Th(){return Vt().memoizedState}function yr(e,t,n,i){var o=Bn();Ke.flags|=e,o.memoizedState=El(1|t,{destroy:void 0},n,i===void 0?null:i)}function vr(e,t,n,i){var o=Vt();i=i===void 0?null:i;var c=o.memoizedState.inst;wt!==null&&i!==null&&ac(i,wt.memoizedState.deps)?o.memoizedState=El(t,c,n,i):(Ke.flags|=e,o.memoizedState=El(1|t,c,n,i))}function xh(e,t){yr(8390656,8,e,t)}function hc(e,t){vr(2048,8,e,t)}function Sv(e){Ke.flags|=4;var t=Ke.updateQueue;if(t===null)t=mr(),Ke.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ah(e){var t=Vt().memoizedState;return Sv({ref:t,nextImpl:e}),function(){if((gt&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Rh(e,t){return vr(4,2,e,t)}function kh(e,t){return vr(4,4,e,t)}function Oh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ch(e,t,n){n=n!=null?n.concat([e]):null,vr(4,4,Oh.bind(null,t,e),n)}function pc(){}function Mh(e,t){var n=Vt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&ac(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Dh(e,t){var n=Vt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&ac(t,i[1]))return i[0];if(i=e(),Zi){pn(!0);try{e()}finally{pn(!1)}}return n.memoizedState=[i,t],i}function mc(e,t,n){return n===void 0||(Fa&1073741824)!==0&&(rt&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Lp(),Ke.lanes|=e,_i|=e,n)}function Lh(e,t,n,i){return Jn(n,t)?n:bl.current!==null?(e=mc(e,n,i),Jn(e,t)||(ln=!0),e):(Fa&42)===0||(Fa&1073741824)!==0&&(rt&261930)===0?(ln=!0,e.memoizedState=n):(e=Lp(),Ke.lanes|=e,_i|=e,t)}function zh(e,t,n,i,o){var c=ee.p;ee.p=c!==0&&8>c?c:8;var h=M.T,E={};M.T=E,yc(e,!1,t,n);try{var k=o(),Y=M.S;if(Y!==null&&Y(E,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var ae=bv(k,i);cs(e,t,ae,la(e))}else cs(e,t,i,la(e))}catch(re){cs(e,t,{then:function(){},status:"rejected",reason:re},la())}finally{ee.p=c,h!==null&&E.types!==null&&(h.types=E.types),M.T=h}}function wv(){}function gc(e,t,n,i){if(e.tag!==5)throw Error(s(476));var o=jh(e).queue;zh(e,o,t,fe,n===null?wv:function(){return Uh(e),n(i)})}function jh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Uh(e){var t=jh(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},la())}function bc(){return Tn(xs)}function Bh(){return Vt().memoizedState}function Ih(){return Vt().memoizedState}function Nv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=la();e=mi(n);var i=gi(t,e,n);i!==null&&(Qn(i,t,n),is(i,t,n)),t={cache:Po()},e.payload=t;return}t=t.return}}function Tv(e,t,n){var i=la();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Er(e)?qh(t,n):(n=zo(e,t,n,i),n!==null&&(Qn(n,e,i),Gh(n,t,i)))}function Hh(e,t,n){var i=la();cs(e,t,n,i)}function cs(e,t,n,i){var o={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Er(e))qh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,E=c(h,n);if(o.hasEagerState=!0,o.eagerState=E,Jn(E,h))return er(e,t,o,0),kt===null&&Js(),!1}catch{}finally{}if(n=zo(e,t,o,i),n!==null)return Qn(n,e,i),Gh(n,t,i),!0}return!1}function yc(e,t,n,i){if(i={lane:2,revertLane:Vc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Er(e)){if(t)throw Error(s(479))}else t=zo(e,n,i,2),t!==null&&Qn(t,e,2)}function Er(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function qh(e,t){yl=hr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gh(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ue(e,n)}}var us={readContext:Tn,use:gr,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};us.useEffectEvent=Yt;var $h={readContext:Tn,use:gr,useCallback:function(e,t){return Bn().memoizedState=[e,t===void 0?null:t],e},useContext:Tn,useEffect:xh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yr(4194308,4,Oh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yr(4194308,4,e,t)},useInsertionEffect:function(e,t){yr(4,2,e,t)},useMemo:function(e,t){var n=Bn();t=t===void 0?null:t;var i=e();if(Zi){pn(!0);try{e()}finally{pn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Bn();if(n!==void 0){var o=n(t);if(Zi){pn(!0);try{n(t)}finally{pn(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=Tv.bind(null,Ke,e),[i.memoizedState,e]},useRef:function(e){var t=Bn();return e={current:e},t.memoizedState=e},useState:function(e){e=dc(e);var t=e.queue,n=Hh.bind(null,Ke,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:pc,useDeferredValue:function(e,t){var n=Bn();return mc(n,e,t)},useTransition:function(){var e=dc(!1);return e=zh.bind(null,Ke,e.queue,!0,!1),Bn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ke,o=Bn();if(ct){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),kt===null)throw Error(s(349));(rt&127)!==0||uh(i,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,xh(fh.bind(null,i,c,e),[e]),i.flags|=2048,El(9,{destroy:void 0},dh.bind(null,i,c,n,t),null),n},useId:function(){var e=Bn(),t=kt.identifierPrefix;if(ct){var n=ka,i=Ra;n=(i&~(1<<32-Rt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=yv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bc,useFormState:_h,useActionState:_h,useOptimistic:function(e){var t=Bn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=yc.bind(null,Ke,!0,n),n.dispatch=t,[e,t]},useMemoCache:oc,useCacheRefresh:function(){return Bn().memoizedState=Nv.bind(null,Ke)},useEffectEvent:function(e){var t=Bn(),n={impl:e};return t.memoizedState=n,function(){if((gt&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},vc={readContext:Tn,use:gr,useCallback:Mh,useContext:Tn,useEffect:hc,useImperativeHandle:Ch,useInsertionEffect:Rh,useLayoutEffect:kh,useMemo:Dh,useReducer:br,useRef:Th,useState:function(){return br(Pa)},useDebugValue:pc,useDeferredValue:function(e,t){var n=Vt();return Lh(n,wt.memoizedState,e,t)},useTransition:function(){var e=br(Pa)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:ch,useId:Bh,useHostTransitionStatus:bc,useFormState:Sh,useActionState:Sh,useOptimistic:function(e,t){var n=Vt();return mh(n,wt,e,t)},useMemoCache:oc,useCacheRefresh:Ih};vc.useEffectEvent=Ah;var Yh={readContext:Tn,use:gr,useCallback:Mh,useContext:Tn,useEffect:hc,useImperativeHandle:Ch,useInsertionEffect:Rh,useLayoutEffect:kh,useMemo:Dh,useReducer:uc,useRef:Th,useState:function(){return uc(Pa)},useDebugValue:pc,useDeferredValue:function(e,t){var n=Vt();return wt===null?mc(n,e,t):Lh(n,wt.memoizedState,e,t)},useTransition:function(){var e=uc(Pa)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:ch,useId:Bh,useHostTransitionStatus:bc,useFormState:Nh,useActionState:Nh,useOptimistic:function(e,t){var n=Vt();return wt!==null?mh(n,wt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:oc,useCacheRefresh:Ih};Yh.useEffectEvent=Ah;function Ec(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _c={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=la(),o=mi(i);o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,i),t!==null&&(Qn(t,e,i),is(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=la(),o=mi(i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,i),t!==null&&(Qn(t,e,i),is(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=la(),i=mi(n);i.tag=2,t!=null&&(i.callback=t),t=gi(e,i,n),t!==null&&(Qn(t,e,n),is(t,e,n))}};function Fh(e,t,n,i,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,h):t.prototype&&t.prototype.isPureReactComponent?!Vl(n,i)||!Vl(o,c):!0}function Ph(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Kh(e){Ws(e)}function Zh(e){console.error(e)}function Xh(e){Ws(e)}function _r(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Vh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Sc(e,t,n){return n=mi(n),n.tag=3,n.payload={element:null},n.callback=function(){_r(e,t)},n}function Qh(e){return e=mi(e),e.tag=3,e}function Wh(e,t,n,i){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){Vh(t,n,i)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Vh(t,n,i),typeof o!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function xv(e,t,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&fl(t,n,o,!0),n=ta.current,n!==null){switch(n.tag){case 31:case 13:return pa===null?Dr():n.alternate===null&&Ft===0&&(Ft=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===or?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Kc(e,i,o)),!1;case 22:return n.flags|=65536,i===or?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Kc(e,i,o)),!1}throw Error(s(435,n.tag))}return Kc(e,i,o),Dr(),!1}if(ct)return t=ta.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==qo&&(e=Error(s(422),{cause:i}),Jl(ua(e,n)))):(i!==qo&&(t=Error(s(423),{cause:i}),Jl(ua(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=ua(i,n),o=Sc(e.stateNode,i,o),Wo(e,o),Ft!==4&&(Ft=2)),!1;var c=Error(s(520),{cause:i});if(c=ua(c,n),ys===null?ys=[c]:ys.push(c),Ft!==4&&(Ft=2),t===null)return!0;i=ua(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Sc(n.stateNode,i,e),Wo(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Si===null||!Si.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Qh(o),Wh(o,e,n,i),Wo(n,o),!1}n=n.return}while(n!==null);return!1}var wc=Error(s(461)),ln=!1;function xn(e,t,n,i){t.child=e===null?nh(t,null,n,i):Ki(t,e.child,n,i)}function Jh(e,t,n,i,o){n=n.render;var c=t.ref;if("ref"in i){var h={};for(var E in i)E!=="ref"&&(h[E]=i[E])}else h=i;return $i(t),i=ic(e,t,n,h,c,o),E=lc(),e!==null&&!ln?(sc(e,t,o),Ka(e,t,o)):(ct&&E&&Io(t),t.flags|=1,xn(e,t,i,o),t.child)}function ep(e,t,n,i,o){if(e===null){var c=n.type;return typeof c=="function"&&!jo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,tp(e,t,c,i,o)):(e=nr(n.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Cc(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Vl,n(h,i)&&e.ref===t.ref)return Ka(e,t,o)}return t.flags|=1,e=qa(c,i),e.ref=t.ref,e.return=t,t.child=e}function tp(e,t,n,i,o){if(e!==null){var c=e.memoizedProps;if(Vl(c,i)&&e.ref===t.ref)if(ln=!1,t.pendingProps=i=c,Cc(e,o))(e.flags&131072)!==0&&(ln=!0);else return t.lanes=e.lanes,Ka(e,t,o)}return Nc(e,t,n,i,o)}function np(e,t,n,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return ap(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sr(t,c!==null?c.cachePool:null),c!==null?lh(t,c):ec(),sh(t);else return i=t.lanes=536870912,ap(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(sr(t,c.cachePool),lh(t,c),yi(),t.memoizedState=null):(e!==null&&sr(t,null),ec(),yi());return xn(e,t,o,n),t.child}function ds(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ap(e,t,n,i,o){var c=Zo();return c=c===null?null:{parent:nn._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&sr(t,null),ec(),sh(t),e!==null&&fl(e,t,i,!0),t.childLanes=o,null}function Sr(e,t){return t=Nr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ip(e,t,n){return Ki(t,e.child,null,n),e=Sr(t,t.pendingProps),e.flags|=2,na(t),t.memoizedState=null,e}function Av(e,t,n){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ct){if(i.mode==="hidden")return e=Sr(t,i),t.lanes=536870912,ds(null,e);if(nc(t),(e=zt)?(e=gm(e,ha),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=qf(e),n.return=t,t.child=n,Nn=t,zt=null)):e=null,e===null)throw fi(t);return t.lanes=536870912,null}return Sr(t,i)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(nc(t),o)if(t.flags&256)t.flags&=-257,t=ip(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ln||fl(e,t,n,!1),o=(n&e.childLanes)!==0,ln||o){if(i=kt,i!==null&&(h=Ct(i,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Ii(e,h),Qn(i,e,h),wc;Dr(),t=ip(e,t,n)}else e=c.treeContext,zt=ma(h.nextSibling),Nn=t,ct=!0,di=null,ha=!1,e!==null&&Yf(t,e),t=Sr(t,i),t.flags|=4096;return t}return e=qa(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function wr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Nc(e,t,n,i,o){return $i(t),n=ic(e,t,n,i,void 0,o),i=lc(),e!==null&&!ln?(sc(e,t,o),Ka(e,t,o)):(ct&&i&&Io(t),t.flags|=1,xn(e,t,n,o),t.child)}function lp(e,t,n,i,o,c){return $i(t),t.updateQueue=null,n=oh(t,i,n,o),rh(e),i=lc(),e!==null&&!ln?(sc(e,t,c),Ka(e,t,c)):(ct&&i&&Io(t),t.flags|=1,xn(e,t,n,c),t.child)}function sp(e,t,n,i,o){if($i(t),t.stateNode===null){var c=ol,h=n.contextType;typeof h=="object"&&h!==null&&(c=Tn(h)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=_c,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Vo(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?Tn(h):ol,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Ec(t,n,h,i),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&_c.enqueueReplaceState(c,c.state,null),ss(t,i,c,o),ls(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,k=Xi(n,E);c.props=k;var Y=c.context,ae=n.contextType;h=ol,typeof ae=="object"&&ae!==null&&(h=Tn(ae));var re=n.getDerivedStateFromProps;ae=typeof re=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,ae||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||Y!==h)&&Ph(t,c,i,h),pi=!1;var P=t.memoizedState;c.state=P,ss(t,i,c,o),ls(),Y=t.memoizedState,E||P!==Y||pi?(typeof re=="function"&&(Ec(t,n,re,i),Y=t.memoizedState),(k=pi||Fh(t,n,k,i,P,Y,h))?(ae||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=Y),c.props=i,c.state=Y,c.context=h,i=k):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Qo(e,t),h=t.memoizedProps,ae=Xi(n,h),c.props=ae,re=t.pendingProps,P=c.context,Y=n.contextType,k=ol,typeof Y=="object"&&Y!==null&&(k=Tn(Y)),E=n.getDerivedStateFromProps,(Y=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==re||P!==k)&&Ph(t,c,i,k),pi=!1,P=t.memoizedState,c.state=P,ss(t,i,c,o),ls();var X=t.memoizedState;h!==re||P!==X||pi||e!==null&&e.dependencies!==null&&ir(e.dependencies)?(typeof E=="function"&&(Ec(t,n,E,i),X=t.memoizedState),(ae=pi||Fh(t,n,ae,i,P,X,k)||e!==null&&e.dependencies!==null&&ir(e.dependencies))?(Y||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,X,k),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,X,k)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=X),c.props=i,c.state=X,c.context=k,i=ae):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,wr(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Ki(t,e.child,null,o),t.child=Ki(t,null,n,o)):xn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ka(e,t,o),e}function rp(e,t,n,i){return qi(),t.flags|=256,xn(e,t,n,i),t.child}var Tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:Vf()}}function Ac(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=ia),e}function op(e,t,n){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(Xt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(ct){if(o?bi(t):yi(),(e=zt)?(e=gm(e,ha),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Ra,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},n=qf(e),n.return=t,t.child=n,Nn=t,zt=null)):e=null,e===null)throw fi(t);return cu(e)?t.lanes=32:t.lanes=536870912,null}var E=i.children;return i=i.fallback,o?(yi(),o=t.mode,E=Nr({mode:"hidden",children:E},o),i=Hi(i,o,n,null),E.return=t,i.return=t,E.sibling=i,t.child=E,i=t.child,i.memoizedState=xc(n),i.childLanes=Ac(e,h,n),t.memoizedState=Tc,ds(null,i)):(bi(t),Rc(t,E))}var k=e.memoizedState;if(k!==null&&(E=k.dehydrated,E!==null)){if(c)t.flags&256?(bi(t),t.flags&=-257,t=kc(e,t,n)):t.memoizedState!==null?(yi(),t.child=e.child,t.flags|=128,t=null):(yi(),E=i.fallback,o=t.mode,i=Nr({mode:"visible",children:i.children},o),E=Hi(E,o,n,null),E.flags|=2,i.return=t,E.return=t,i.sibling=E,t.child=i,Ki(t,e.child,null,n),i=t.child,i.memoizedState=xc(n),i.childLanes=Ac(e,h,n),t.memoizedState=Tc,t=ds(null,i));else if(bi(t),cu(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var Y=h.dgst;h=Y,i=Error(s(419)),i.stack="",i.digest=h,Jl({value:i,source:null,stack:null}),t=kc(e,t,n)}else if(ln||fl(e,t,n,!1),h=(n&e.childLanes)!==0,ln||h){if(h=kt,h!==null&&(i=Ct(h,n),i!==0&&i!==k.retryLane))throw k.retryLane=i,Ii(e,i),Qn(h,e,i),wc;ou(E)||Dr(),t=kc(e,t,n)}else ou(E)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,zt=ma(E.nextSibling),Nn=t,ct=!0,di=null,ha=!1,e!==null&&Yf(t,e),t=Rc(t,i.children),t.flags|=4096);return t}return o?(yi(),E=i.fallback,o=t.mode,k=e.child,Y=k.sibling,i=qa(k,{mode:"hidden",children:i.children}),i.subtreeFlags=k.subtreeFlags&65011712,Y!==null?E=qa(Y,E):(E=Hi(E,o,n,null),E.flags|=2),E.return=t,i.return=t,i.sibling=E,t.child=i,ds(null,i),i=t.child,E=e.child.memoizedState,E===null?E=xc(n):(o=E.cachePool,o!==null?(k=nn._currentValue,o=o.parent!==k?{parent:k,pool:k}:o):o=Vf(),E={baseLanes:E.baseLanes|n,cachePool:o}),i.memoizedState=E,i.childLanes=Ac(e,h,n),t.memoizedState=Tc,ds(e.child,i)):(bi(t),n=e.child,e=n.sibling,n=qa(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function Rc(e,t){return t=Nr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nr(e,t){return e=ea(22,e,null,t),e.lanes=0,e}function kc(e,t,n){return Ki(t,e.child,null,n),e=Rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Yo(e.return,t,n)}function Oc(e,t,n,i,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function up(e,t,n){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var h=Xt.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,B(Xt,h),xn(e,t,i,n),i=ct?Wl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cp(e,n,t);else if(e.tag===19)cp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&fr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Oc(t,!1,o,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&fr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Oc(t,!0,n,null,c,i);break;case"together":Oc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_i|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(fl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=qa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ir(e)))}function Rv(e,t,n){switch(t.tag){case 3:ye(t,t.stateNode.containerInfo),hi(t,nn,e.memoizedState.cache),qi();break;case 27:case 5:Ge(t);break;case 4:ye(t,t.stateNode.containerInfo);break;case 10:hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,nc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(bi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?op(e,t,n):(bi(t),e=Ka(e,t,n),e!==null?e.sibling:null);bi(t);break;case 19:var o=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(fl(e,t,n,!1),i=(n&t.childLanes)!==0),o){if(i)return up(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Xt,Xt.current),i)break;return null;case 22:return t.lanes=0,np(e,t,n,t.pendingProps);case 24:hi(t,nn,e.memoizedState.cache)}return Ka(e,t,n)}function dp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ln=!0;else{if(!Cc(e,n)&&(t.flags&128)===0)return ln=!1,Rv(e,t,n);ln=(e.flags&131072)!==0}else ln=!1,ct&&(t.flags&1048576)!==0&&$f(t,Wl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Fi(t.elementType),t.type=e,typeof e=="function")jo(e)?(i=Xi(e,i),t.tag=1,t=sp(null,t,e,i,n)):(t.tag=0,t=Nc(null,t,e,i,n));else{if(e!=null){var o=e.$$typeof;if(o===Q){t.tag=11,t=Jh(null,t,e,i,n);break e}else if(o===H){t.tag=14,t=ep(null,t,e,i,n);break e}}throw t=Se(e)||e,Error(s(306,t,""))}}return t;case 0:return Nc(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,o=Xi(i,t.pendingProps),sp(e,t,i,o,n);case 3:e:{if(ye(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,Qo(e,t),ss(t,i,null,n);var h=t.memoizedState;if(i=h.cache,hi(t,nn,i),i!==c.cache&&Fo(t,[nn],n,!0),ls(),i=h.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=rp(e,t,i,n);break e}else if(i!==o){o=ua(Error(s(424)),t),Jl(o),t=rp(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(zt=ma(e.firstChild),Nn=t,ct=!0,di=null,ha=!0,n=nh(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),i===o){t=Ka(e,t,n);break e}xn(e,t,i,n)}t=t.child}return t;case 26:return wr(e,t),e===null?(n=Sm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ct||(n=t.type,e=t.pendingProps,i=Hr(ve.current).createElement(n),i[St]=t,i[Kt]=e,An(i,n,e),ge(i),t.stateNode=i):t.memoizedState=Sm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ge(t),e===null&&ct&&(i=t.stateNode=vm(t.type,t.pendingProps,ve.current),Nn=t,ha=!0,o=zt,xi(t.type)?(uu=o,zt=ma(i.firstChild)):zt=o),xn(e,t,t.pendingProps.children,n),wr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ct&&((o=i=zt)&&(i=iE(i,t.type,t.pendingProps,ha),i!==null?(t.stateNode=i,Nn=t,zt=ma(i.firstChild),ha=!1,o=!0):o=!1),o||fi(t)),Ge(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,lu(o,c)?i=null:h!==null&&lu(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=ic(e,t,vv,null,null,n),xs._currentValue=o),wr(e,t),xn(e,t,i,n),t.child;case 6:return e===null&&ct&&((e=n=zt)&&(n=lE(n,t.pendingProps,ha),n!==null?(t.stateNode=n,Nn=t,zt=null,e=!0):e=!1),e||fi(t)),null;case 13:return op(e,t,n);case 4:return ye(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ki(t,null,i,n):xn(e,t,i,n),t.child;case 11:return Jh(e,t,t.type,t.pendingProps,n);case 7:return xn(e,t,t.pendingProps,n),t.child;case 8:return xn(e,t,t.pendingProps.children,n),t.child;case 12:return xn(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,hi(t,t.type,i.value),xn(e,t,i.children,n),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,$i(t),o=Tn(o),i=i(o),t.flags|=1,xn(e,t,i,n),t.child;case 14:return ep(e,t,t.type,t.pendingProps,n);case 15:return tp(e,t,t.type,t.pendingProps,n);case 19:return up(e,t,n);case 31:return Av(e,t,n);case 22:return np(e,t,n,t.pendingProps);case 24:return $i(t),i=Tn(nn),e===null?(o=Zo(),o===null&&(o=kt,c=Po(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:i,cache:o},Vo(t),hi(t,nn,o)):((e.lanes&n)!==0&&(Qo(e,t),ss(t,null,null,n),ls()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),hi(t,nn,i)):(i=c.cache,hi(t,nn,i),i!==o.cache&&Fo(t,[nn],n,!0))),xn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Za(e){e.flags|=4}function Mc(e,t,n,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Bp())e.flags|=8192;else throw Pi=or,Xo}else e.flags&=-16777217}function fp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Am(t))if(Bp())e.flags|=8192;else throw Pi=or,Xo}function Tr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?je():536870912,e.lanes|=t,Nl|=t)}function fs(e,t){if(!ct)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function jt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function kv(e,t,n){var i=t.pendingProps;switch(Ho(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(t),null;case 1:return jt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ya(nn),Ne(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(dl(t)?Za(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Go())),jt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Za(t),c!==null?(jt(t),fp(t,c)):(jt(t),Mc(t,o,null,i,n))):c?c!==e.memoizedState?(Za(t),jt(t),fp(t,c)):(jt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Za(t),jt(t),Mc(t,o,e,i,n)),null;case 27:if($e(t),n=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return jt(t),null}e=se.current,dl(t)?Ff(t):(e=vm(o,i,n),t.stateNode=e,Za(t))}return jt(t),null;case 5:if($e(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return jt(t),null}if(c=se.current,dl(t))Ff(t);else{var h=Hr(ve.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?h.createElement(o,{is:i.is}):h.createElement(o)}}c[St]=t,c[Kt]=i;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(An(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Za(t)}}return jt(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=ve.current,dl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,o=Nn,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[St]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||om(e.nodeValue,n)),e||fi(t,!0)}else e=Hr(e).createTextNode(i),e[St]=t,t.stateNode=e}return jt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=dl(t),n!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[St]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;jt(t),e=!1}else n=Go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(na(t),t):(na(t),null);if((t.flags&128)!==0)throw Error(s(558))}return jt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=dl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[St]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;jt(t),o=!1}else o=Go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(na(t),t):(na(t),null)}return na(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Tr(t,t.updateQueue),jt(t),null);case 4:return Ne(),e===null&&eu(t.stateNode.containerInfo),jt(t),null;case 10:return Ya(t.type),jt(t),null;case 19:if(z(Xt),i=t.memoizedState,i===null)return jt(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)fs(i,!1);else{if(Ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=fr(e),c!==null){for(t.flags|=128,fs(i,!1),e=c.updateQueue,t.updateQueue=e,Tr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Hf(n,e),n=n.sibling;return B(Xt,Xt.current&1|2),ct&&Ga(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&lt()>Or&&(t.flags|=128,o=!0,fs(i,!1),t.lanes=4194304)}else{if(!o)if(e=fr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Tr(t,e),fs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!ct)return jt(t),null}else 2*lt()-i.renderingStartTime>Or&&n!==536870912&&(t.flags|=128,o=!0,fs(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=lt(),e.sibling=null,n=Xt.current,B(Xt,o?n&1|2:n&1),ct&&Ga(t,i.treeForkCount),e):(jt(t),null);case 22:case 23:return na(t),tc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(jt(t),t.subtreeFlags&6&&(t.flags|=8192)):jt(t),n=t.updateQueue,n!==null&&Tr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&z(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ya(nn),jt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Ov(e,t){switch(Ho(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ya(nn),Ne(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $e(t),null;case 31:if(t.memoizedState!==null){if(na(t),t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(na(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(Xt),null;case 4:return Ne(),null;case 10:return Ya(t.type),null;case 22:case 23:return na(t),tc(),e!==null&&z(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ya(nn),null;case 25:return null;default:return null}}function hp(e,t){switch(Ho(t),t.tag){case 3:Ya(nn),Ne();break;case 26:case 27:case 5:$e(t);break;case 4:Ne();break;case 31:t.memoizedState!==null&&na(t);break;case 13:na(t);break;case 19:z(Xt);break;case 10:Ya(t.type);break;case 22:case 23:na(t),tc(),e!==null&&z(Yi);break;case 24:Ya(nn)}}function hs(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&e)===e){i=void 0;var c=n.create,h=n.inst;i=c(),h.destroy=i}n=n.next}while(n!==o)}}catch(E){_t(t,t.return,E)}}function vi(e,t,n){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var h=i.inst,E=h.destroy;if(E!==void 0){h.destroy=void 0,o=t;var k=n,Y=E;try{Y()}catch(ae){_t(o,k,ae)}}}i=i.next}while(i!==c)}}catch(ae){_t(t,t.return,ae)}}function pp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ih(t,n)}catch(i){_t(e,e.return,i)}}}function mp(e,t,n){n.props=Xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){_t(e,t,i)}}function ps(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(o){_t(e,t,o)}}function Oa(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(o){_t(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){_t(e,t,o)}else n.current=null}function gp(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(o){_t(e,e.return,o)}}function Dc(e,t,n){try{var i=e.stateNode;Wv(i,e.type,n,t),i[Kt]=t}catch(o){_t(e,e.return,o)}}function bp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xi(e.type)||e.tag===4}function Lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&xi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zc(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ue));else if(i!==4&&(i===27&&xi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(zc(e,t,n),e=e.sibling;e!==null;)zc(e,t,n),e=e.sibling}function xr(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&xi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(xr(e,t,n),e=e.sibling;e!==null;)xr(e,t,n),e=e.sibling}function yp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);An(t,i,n),t[St]=e,t[Kt]=n}catch(c){_t(e,e.return,c)}}var Xa=!1,sn=!1,jc=!1,vp=typeof WeakSet=="function"?WeakSet:Set,yn=null;function Cv(e,t){if(e=e.containerInfo,au=Kr,e=Cf(e),ko(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,E=-1,k=-1,Y=0,ae=0,re=e,P=null;t:for(;;){for(var X;re!==n||o!==0&&re.nodeType!==3||(E=h+o),re!==c||i!==0&&re.nodeType!==3||(k=h+i),re.nodeType===3&&(h+=re.nodeValue.length),(X=re.firstChild)!==null;)P=re,re=X;for(;;){if(re===e)break t;if(P===n&&++Y===o&&(E=h),P===c&&++ae===i&&(k=h),(X=re.nextSibling)!==null)break;re=P,P=re.parentNode}re=X}n=E===-1||k===-1?null:{start:E,end:k}}else n=null}n=n||{start:0,end:0}}else n=null;for(iu={focusedElem:e,selectionRange:n},Kr=!1,yn=t;yn!==null;)if(t=yn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,yn=e;else for(;yn!==null;){switch(t=yn,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var ke=Xi(n.type,o);e=i.getSnapshotBeforeUpdate(ke,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(Ie){_t(n,n.return,Ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ru(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ru(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,yn=e;break}yn=t.return}}function Ep(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Qa(e,n),i&4&&hs(5,n);break;case 1:if(Qa(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){_t(n,n.return,h)}else{var o=Xi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){_t(n,n.return,h)}}i&64&&pp(n),i&512&&ps(n,n.return);break;case 3:if(Qa(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ih(e,t)}catch(h){_t(n,n.return,h)}}break;case 27:t===null&&i&4&&yp(n);case 26:case 5:Qa(e,n),t===null&&i&4&&gp(n),i&512&&ps(n,n.return);break;case 12:Qa(e,n);break;case 31:Qa(e,n),i&4&&wp(e,n);break;case 13:Qa(e,n),i&4&&Np(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Hv.bind(null,n),sE(e,n))));break;case 22:if(i=n.memoizedState!==null||Xa,!i){t=t!==null&&t.memoizedState!==null||sn,o=Xa;var c=sn;Xa=i,(sn=t)&&!c?Wa(e,n,(n.subtreeFlags&8772)!==0):Qa(e,n),Xa=o,sn=c}break;case 30:break;default:Qa(e,n)}}function _p(e){var t=e.alternate;t!==null&&(e.alternate=null,_p(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ea(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Bt=null,Kn=!1;function Va(e,t,n){for(n=n.child;n!==null;)Sp(e,t,n),n=n.sibling}function Sp(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(zn,n)}catch{}switch(n.tag){case 26:sn||Oa(n,t),Va(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:sn||Oa(n,t);var i=Bt,o=Kn;xi(n.type)&&(Bt=n.stateNode,Kn=!1),Va(e,t,n),ws(n.stateNode),Bt=i,Kn=o;break;case 5:sn||Oa(n,t);case 6:if(i=Bt,o=Kn,Bt=null,Va(e,t,n),Bt=i,Kn=o,Bt!==null)if(Kn)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(n.stateNode)}catch(c){_t(n,t,c)}else try{Bt.removeChild(n.stateNode)}catch(c){_t(n,t,c)}break;case 18:Bt!==null&&(Kn?(e=Bt,pm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ml(e)):pm(Bt,n.stateNode));break;case 4:i=Bt,o=Kn,Bt=n.stateNode.containerInfo,Kn=!0,Va(e,t,n),Bt=i,Kn=o;break;case 0:case 11:case 14:case 15:vi(2,n,t),sn||vi(4,n,t),Va(e,t,n);break;case 1:sn||(Oa(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&mp(n,t,i)),Va(e,t,n);break;case 21:Va(e,t,n);break;case 22:sn=(i=sn)||n.memoizedState!==null,Va(e,t,n),sn=i;break;default:Va(e,t,n)}}function wp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ml(e)}catch(n){_t(t,t.return,n)}}}function Np(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ml(e)}catch(n){_t(t,t.return,n)}}function Mv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vp),t;default:throw Error(s(435,e.tag))}}function Ar(e,t){var n=Mv(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var o=qv.bind(null,e,i);i.then(o,o)}})}function Zn(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i],c=e,h=t,E=h;e:for(;E!==null;){switch(E.tag){case 27:if(xi(E.type)){Bt=E.stateNode,Kn=!1;break e}break;case 5:Bt=E.stateNode,Kn=!1;break e;case 3:case 4:Bt=E.stateNode.containerInfo,Kn=!0;break e}E=E.return}if(Bt===null)throw Error(s(160));Sp(c,h,o),Bt=null,Kn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Tp(t,e),t=t.sibling}var Sa=null;function Tp(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zn(t,e),Xn(e),i&4&&(vi(3,e,e.return),hs(3,e),vi(5,e,e.return));break;case 1:Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(n,n.return)),i&64&&Xa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var o=Sa;if(Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Wn]||c[St]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),An(c,i,n),c[St]=e,ge(c),i=c;break e;case"link":var h=Tm("link","href",o).get(i+(n.href||""));if(h){for(var E=0;E<h.length;E++)if(c=h[E],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(E,1);break t}}c=o.createElement(i),An(c,i,n),o.head.appendChild(c);break;case"meta":if(h=Tm("meta","content",o).get(i+(n.content||""))){for(E=0;E<h.length;E++)if(c=h[E],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(E,1);break t}}c=o.createElement(i),An(c,i,n),o.head.appendChild(c);break;default:throw Error(s(468,i))}c[St]=e,ge(c),i=c}e.stateNode=i}else xm(o,e.type,e.stateNode);else e.stateNode=Nm(o,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?xm(o,e.type,e.stateNode):Nm(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Dc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(n,n.return)),n!==null&&i&4&&Dc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(n,n.return)),e.flags&32){o=e.stateNode;try{W(o,"")}catch(ke){_t(e,e.return,ke)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Dc(e,o,n!==null?n.memoizedProps:o)),i&1024&&(jc=!0);break;case 6:if(Zn(t,e),Xn(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(ke){_t(e,e.return,ke)}}break;case 3:if($r=null,o=Sa,Sa=qr(t.containerInfo),Zn(t,e),Sa=o,Xn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ml(t.containerInfo)}catch(ke){_t(e,e.return,ke)}jc&&(jc=!1,xp(e));break;case 4:i=Sa,Sa=qr(e.stateNode.containerInfo),Zn(t,e),Xn(e),Sa=i;break;case 12:Zn(t,e),Xn(e);break;case 31:Zn(t,e),Xn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 13:Zn(t,e),Xn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(kr=lt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 22:o=e.memoizedState!==null;var k=n!==null&&n.memoizedState!==null,Y=Xa,ae=sn;if(Xa=Y||o,sn=ae||k,Zn(t,e),sn=ae,Xa=Y,Xn(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||k||Xa||sn||Vi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){k=n=t;try{if(c=k.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=k.stateNode;var re=k.memoizedProps.style,P=re!=null&&re.hasOwnProperty("display")?re.display:null;E.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(ke){_t(k,k.return,ke)}}}else if(t.tag===6){if(n===null){k=t;try{k.stateNode.nodeValue=o?"":k.memoizedProps}catch(ke){_t(k,k.return,ke)}}}else if(t.tag===18){if(n===null){k=t;try{var X=k.stateNode;o?mm(X,!0):mm(k.stateNode,!1)}catch(ke){_t(k,k.return,ke)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Ar(e,n))));break;case 19:Zn(t,e),Xn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ar(e,i)));break;case 30:break;case 21:break;default:Zn(t,e),Xn(e)}}function Xn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(bp(i)){n=i;break}i=i.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=Lc(e);xr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(W(h,""),n.flags&=-33);var E=Lc(e);xr(e,E,h);break;case 3:case 4:var k=n.stateNode.containerInfo,Y=Lc(e);zc(e,Y,k);break;default:throw Error(s(161))}}catch(ae){_t(e,e.return,ae)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Qa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ep(e,t.alternate,t),t=t.sibling}function Vi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vi(4,t,t.return),Vi(t);break;case 1:Oa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&mp(t,t.return,n),Vi(t);break;case 27:ws(t.stateNode);case 26:case 5:Oa(t,t.return),Vi(t);break;case 22:t.memoizedState===null&&Vi(t);break;case 30:Vi(t);break;default:Vi(t)}e=e.sibling}}function Wa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Wa(o,c,n),hs(4,c);break;case 1:if(Wa(o,c,n),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(Y){_t(i,i.return,Y)}if(i=c,o=i.updateQueue,o!==null){var E=i.stateNode;try{var k=o.shared.hiddenCallbacks;if(k!==null)for(o.shared.hiddenCallbacks=null,o=0;o<k.length;o++)ah(k[o],E)}catch(Y){_t(i,i.return,Y)}}n&&h&64&&pp(c),ps(c,c.return);break;case 27:yp(c);case 26:case 5:Wa(o,c,n),n&&i===null&&h&4&&gp(c),ps(c,c.return);break;case 12:Wa(o,c,n);break;case 31:Wa(o,c,n),n&&h&4&&wp(o,c);break;case 13:Wa(o,c,n),n&&h&4&&Np(o,c);break;case 22:c.memoizedState===null&&Wa(o,c,n),ps(c,c.return);break;case 30:break;default:Wa(o,c,n)}t=t.sibling}}function Uc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&es(n))}function Bc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e))}function wa(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ap(e,t,n,i),t=t.sibling}function Ap(e,t,n,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:wa(e,t,n,i),o&2048&&hs(9,t);break;case 1:wa(e,t,n,i);break;case 3:wa(e,t,n,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e)));break;case 12:if(o&2048){wa(e,t,n,i),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,E=c.onPostCommit;typeof E=="function"&&E(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(k){_t(t,t.return,k)}}else wa(e,t,n,i);break;case 31:wa(e,t,n,i);break;case 13:wa(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?wa(e,t,n,i):ms(e,t):c._visibility&2?wa(e,t,n,i):(c._visibility|=2,_l(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Uc(h,t);break;case 24:wa(e,t,n,i),o&2048&&Bc(t.alternate,t);break;default:wa(e,t,n,i)}}function _l(e,t,n,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,E=n,k=i,Y=h.flags;switch(h.tag){case 0:case 11:case 15:_l(c,h,E,k,o),hs(8,h);break;case 23:break;case 22:var ae=h.stateNode;h.memoizedState!==null?ae._visibility&2?_l(c,h,E,k,o):ms(c,h):(ae._visibility|=2,_l(c,h,E,k,o)),o&&Y&2048&&Uc(h.alternate,h);break;case 24:_l(c,h,E,k,o),o&&Y&2048&&Bc(h.alternate,h);break;default:_l(c,h,E,k,o)}t=t.sibling}}function ms(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,o=i.flags;switch(i.tag){case 22:ms(n,i),o&2048&&Uc(i.alternate,i);break;case 24:ms(n,i),o&2048&&Bc(i.alternate,i);break;default:ms(n,i)}t=t.sibling}}var gs=8192;function Sl(e,t,n){if(e.subtreeFlags&gs)for(e=e.child;e!==null;)Rp(e,t,n),e=e.sibling}function Rp(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&gs&&e.memoizedState!==null&&yE(n,Sa,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var i=Sa;Sa=qr(e.stateNode.containerInfo),Sl(e,t,n),Sa=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=gs,gs=16777216,Sl(e,t,n),gs=i):Sl(e,t,n));break;default:Sl(e,t,n)}}function kp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];yn=i,Cp(i,e)}kp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Op(e),e=e.sibling}function Op(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&vi(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rr(e)):bs(e);break;default:bs(e)}}function Rr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];yn=i,Cp(i,e)}kp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vi(8,t,t.return),Rr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rr(t));break;default:Rr(t)}e=e.sibling}}function Cp(e,t){for(;yn!==null;){var n=yn;switch(n.tag){case 0:case 11:case 15:vi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:es(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,yn=i;else e:for(n=e;yn!==null;){i=yn;var o=i.sibling,c=i.return;if(_p(i),i===n){yn=null;break e}if(o!==null){o.return=c,yn=o;break e}yn=c}}}var Dv={getCacheForType:function(e){var t=Tn(nn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Tn(nn).controller.signal}},Lv=typeof WeakMap=="function"?WeakMap:Map,gt=0,kt=null,tt=null,rt=0,Et=0,aa=null,Ei=!1,wl=!1,Ic=!1,Ja=0,Ft=0,_i=0,Qi=0,Hc=0,ia=0,Nl=0,ys=null,Vn=null,qc=!1,kr=0,Mp=0,Or=1/0,Cr=null,Si=null,dn=0,wi=null,Tl=null,ei=0,Gc=0,$c=null,Dp=null,vs=0,Yc=null;function la(){return(gt&2)!==0&&rt!==0?rt&-rt:M.T!==null?Vc():Un()}function Lp(){if(ia===0)if((rt&536870912)===0||ct){var e=gn;gn<<=1,(gn&3932160)===0&&(gn=262144),ia=e}else ia=536870912;return e=ta.current,e!==null&&(e.flags|=32),ia}function Qn(e,t,n){(e===kt&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(xl(e,0),Ni(e,rt,ia,!1)),st(e,n),((gt&2)===0||e!==kt)&&(e===kt&&((gt&2)===0&&(Qi|=n),Ft===4&&Ni(e,rt,ia,!1)),Ca(e))}function zp(e,t,n){if((gt&6)!==0)throw Error(s(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ne(e,t),o=i?Uv(e,t):Pc(e,t,!0),c=i;do{if(o===0){wl&&!i&&Ni(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!zv(n)){o=Pc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var E=e;o=ys;var k=E.current.memoizedState.isDehydrated;if(k&&(xl(E,h).flags|=256),h=Pc(E,h,!1),h!==2){if(Ic&&!k){E.errorRecoveryDisabledLanes|=c,Qi|=c,o=4;break e}c=Vn,Vn=o,c!==null&&(Vn===null?Vn=c:Vn.push.apply(Vn,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){xl(e,0),Ni(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ni(i,t,ia,!Ei);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=kr+300-lt(),10<o)){if(Ni(i,t,ia,!Ei),O(i,0,!0)!==0)break e;ei=t,i.timeoutHandle=fm(jp.bind(null,i,n,Vn,Cr,qc,t,ia,Qi,Nl,Ei,c,"Throttled",-0,0),o);break e}jp(i,n,Vn,Cr,qc,t,ia,Qi,Nl,Ei,c,null,-0,0)}}break}while(!0);Ca(e)}function jp(e,t,n,i,o,c,h,E,k,Y,ae,re,P,X){if(e.timeoutHandle=-1,re=t.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ue},Rp(t,c,re);var ke=(c&62914560)===c?kr-lt():(c&4194048)===c?Mp-lt():0;if(ke=vE(re,ke),ke!==null){ei=c,e.cancelPendingCommit=ke(Yp.bind(null,e,t,c,n,i,o,h,E,k,ae,re,null,P,X)),Ni(e,c,h,!Y);return}}Yp(e,t,c,n,i,o,h,E,k)}function zv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var o=n[i],c=o.getSnapshot;o=o.value;try{if(!Jn(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ni(e,t,n,i){t&=~Hc,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-Rt(o),h=1<<c;i[c]=-1,o&=~h}n!==0&&_e(e,n,t)}function Mr(){return(gt&6)===0?(Es(0),!1):!0}function Fc(){if(tt!==null){if(Et===0)var e=tt.return;else e=tt,$a=Gi=null,rc(e),gl=null,ns=0,e=tt;for(;e!==null;)hp(e.alternate,e),e=e.return;tt=null}}function xl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,tE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ei=0,Fc(),kt=e,tt=n=qa(e.current,null),rt=t,Et=0,aa=null,Ei=!1,wl=ne(e,t),Ic=!1,Nl=ia=Hc=Qi=_i=Ft=0,Vn=ys=null,qc=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Rt(i),c=1<<o;t|=e[o],i&=~c}return Ja=t,Js(),n}function Up(e,t){Ke=null,M.H=us,t===ml||t===rr?(t=Jf(),Et=3):t===Xo?(t=Jf(),Et=4):Et=t===wc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,aa=t,tt===null&&(Ft=1,_r(e,ua(t,e.current)))}function Bp(){var e=ta.current;return e===null?!0:(rt&4194048)===rt?pa===null:(rt&62914560)===rt||(rt&536870912)!==0?e===pa:!1}function Ip(){var e=M.H;return M.H=us,e===null?us:e}function Hp(){var e=M.A;return M.A=Dv,e}function Dr(){Ft=4,Ei||(rt&4194048)!==rt&&ta.current!==null||(wl=!0),(_i&134217727)===0&&(Qi&134217727)===0||kt===null||Ni(kt,rt,ia,!1)}function Pc(e,t,n){var i=gt;gt|=2;var o=Ip(),c=Hp();(kt!==e||rt!==t)&&(Cr=null,xl(e,t)),t=!1;var h=Ft;e:do try{if(Et!==0&&tt!==null){var E=tt,k=aa;switch(Et){case 8:Fc(),h=6;break e;case 3:case 2:case 9:case 6:ta.current===null&&(t=!0);var Y=Et;if(Et=0,aa=null,Al(e,E,k,Y),n&&wl){h=0;break e}break;default:Y=Et,Et=0,aa=null,Al(e,E,k,Y)}}jv(),h=Ft;break}catch(ae){Up(e,ae)}while(!0);return t&&e.shellSuspendCounter++,$a=Gi=null,gt=i,M.H=o,M.A=c,tt===null&&(kt=null,rt=0,Js()),h}function jv(){for(;tt!==null;)qp(tt)}function Uv(e,t){var n=gt;gt|=2;var i=Ip(),o=Hp();kt!==e||rt!==t?(Cr=null,Or=lt()+500,xl(e,t)):wl=ne(e,t);e:do try{if(Et!==0&&tt!==null){t=tt;var c=aa;t:switch(Et){case 1:Et=0,aa=null,Al(e,t,c,1);break;case 2:case 9:if(Qf(c)){Et=0,aa=null,Gp(t);break}t=function(){Et!==2&&Et!==9||kt!==e||(Et=7),Ca(e)},c.then(t,t);break e;case 3:Et=7;break e;case 4:Et=5;break e;case 7:Qf(c)?(Et=0,aa=null,Gp(t)):(Et=0,aa=null,Al(e,t,c,7));break;case 5:var h=null;switch(tt.tag){case 26:h=tt.memoizedState;case 5:case 27:var E=tt;if(h?Am(h):E.stateNode.complete){Et=0,aa=null;var k=E.sibling;if(k!==null)tt=k;else{var Y=E.return;Y!==null?(tt=Y,Lr(Y)):tt=null}break t}}Et=0,aa=null,Al(e,t,c,5);break;case 6:Et=0,aa=null,Al(e,t,c,6);break;case 8:Fc(),Ft=6;break e;default:throw Error(s(462))}}Bv();break}catch(ae){Up(e,ae)}while(!0);return $a=Gi=null,M.H=i,M.A=o,gt=n,tt!==null?0:(kt=null,rt=0,Js(),Ft)}function Bv(){for(;tt!==null&&!vt();)qp(tt)}function qp(e){var t=dp(e.alternate,e,Ja);e.memoizedProps=e.pendingProps,t===null?Lr(e):tt=t}function Gp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=lp(n,t,t.pendingProps,t.type,void 0,rt);break;case 11:t=lp(n,t,t.pendingProps,t.type.render,t.ref,rt);break;case 5:rc(t);default:hp(n,t),t=tt=Hf(t,Ja),t=dp(n,t,Ja)}e.memoizedProps=e.pendingProps,t===null?Lr(e):tt=t}function Al(e,t,n,i){$a=Gi=null,rc(t),gl=null,ns=0;var o=t.return;try{if(xv(e,o,t,n,rt)){Ft=1,_r(e,ua(n,e.current)),tt=null;return}}catch(c){if(o!==null)throw tt=o,c;Ft=1,_r(e,ua(n,e.current)),tt=null;return}t.flags&32768?(ct||i===1?e=!0:wl||(rt&536870912)!==0?e=!1:(Ei=e=!0,(i===2||i===9||i===3||i===6)&&(i=ta.current,i!==null&&i.tag===13&&(i.flags|=16384))),$p(t,e)):Lr(t)}function Lr(e){var t=e;do{if((t.flags&32768)!==0){$p(t,Ei);return}e=t.return;var n=kv(t.alternate,t,Ja);if(n!==null){tt=n;return}if(t=t.sibling,t!==null){tt=t;return}tt=t=e}while(t!==null);Ft===0&&(Ft=5)}function $p(e,t){do{var n=Ov(e.alternate,e);if(n!==null){n.flags&=32767,tt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){tt=e;return}tt=e=n}while(e!==null);Ft=6,tt=null}function Yp(e,t,n,i,o,c,h,E,k){e.cancelPendingCommit=null;do zr();while(dn!==0);if((gt&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Lo,Ae(e,n,c,h,E,k),e===kt&&(tt=kt=null,rt=0),Tl=t,wi=e,ei=n,Gc=c,$c=o,Dp=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Gv(hn,function(){return Xp(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=M.T,M.T=null,o=ee.p,ee.p=2,h=gt,gt|=4;try{Cv(e,t,n)}finally{gt=h,ee.p=o,M.T=i}}dn=1,Fp(),Pp(),Kp()}}function Fp(){if(dn===1){dn=0;var e=wi,t=Tl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null;var i=ee.p;ee.p=2;var o=gt;gt|=4;try{Tp(t,e);var c=iu,h=Cf(e.containerInfo),E=c.focusedElem,k=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&Of(E.ownerDocument.documentElement,E)){if(k!==null&&ko(E)){var Y=k.start,ae=k.end;if(ae===void 0&&(ae=Y),"selectionStart"in E)E.selectionStart=Y,E.selectionEnd=Math.min(ae,E.value.length);else{var re=E.ownerDocument||document,P=re&&re.defaultView||window;if(P.getSelection){var X=P.getSelection(),ke=E.textContent.length,Ie=Math.min(k.start,ke),Tt=k.end===void 0?Ie:Math.min(k.end,ke);!X.extend&&Ie>Tt&&(h=Tt,Tt=Ie,Ie=h);var U=kf(E,Ie),L=kf(E,Tt);if(U&&L&&(X.rangeCount!==1||X.anchorNode!==U.node||X.anchorOffset!==U.offset||X.focusNode!==L.node||X.focusOffset!==L.offset)){var $=re.createRange();$.setStart(U.node,U.offset),X.removeAllRanges(),Ie>Tt?(X.addRange($),X.extend(L.node,L.offset)):($.setEnd(L.node,L.offset),X.addRange($))}}}}for(re=[],X=E;X=X.parentNode;)X.nodeType===1&&re.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<re.length;E++){var le=re[E];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Kr=!!au,iu=au=null}finally{gt=o,ee.p=i,M.T=n}}e.current=t,dn=2}}function Pp(){if(dn===2){dn=0;var e=wi,t=Tl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=M.T,M.T=null;var i=ee.p;ee.p=2;var o=gt;gt|=4;try{Ep(e,t.alternate,t)}finally{gt=o,ee.p=i,M.T=n}}dn=3}}function Kp(){if(dn===4||dn===3){dn=0,Ln();var e=wi,t=Tl,n=ei,i=Dp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dn=5:(dn=0,Tl=wi=null,Zp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Si=null),jn(n),t=t.stateNode,It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot(zn,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=M.T,o=ee.p,ee.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;h<i.length;h++){var E=i[h];c(E.value,{componentStack:E.stack})}}finally{M.T=t,ee.p=o}}(ei&3)!==0&&zr(),Ca(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Yc?vs++:(vs=0,Yc=e):vs=0,Es(0)}}function Zp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,es(t)))}function zr(){return Fp(),Pp(),Kp(),Xp()}function Xp(){if(dn!==5)return!1;var e=wi,t=Gc;Gc=0;var n=jn(ei),i=M.T,o=ee.p;try{ee.p=32>n?32:n,M.T=null,n=$c,$c=null;var c=wi,h=ei;if(dn=0,Tl=wi=null,ei=0,(gt&6)!==0)throw Error(s(331));var E=gt;if(gt|=4,Op(c.current),Ap(c,c.current,h,n),gt=E,Es(0,!1),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot(zn,c)}catch{}return!0}finally{ee.p=o,M.T=i,Zp(e,t)}}function Vp(e,t,n){t=ua(n,t),t=Sc(e.stateNode,t,2),e=gi(e,t,2),e!==null&&(st(e,2),Ca(e))}function _t(e,t,n){if(e.tag===3)Vp(e,e,n);else for(;t!==null;){if(t.tag===3){Vp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Si===null||!Si.has(i))){e=ua(n,e),n=Qh(2),i=gi(t,n,2),i!==null&&(Wh(n,i,t,e),st(i,2),Ca(i));break}}t=t.return}}function Kc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Lv;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(n)||(Ic=!0,o.add(n),e=Iv.bind(null,e,t,n),t.then(e,e))}function Iv(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,kt===e&&(rt&n)===n&&(Ft===4||Ft===3&&(rt&62914560)===rt&&300>lt()-kr?(gt&2)===0&&xl(e,0):Hc|=n,Nl===rt&&(Nl=0)),Ca(e)}function Qp(e,t){t===0&&(t=je()),e=Ii(e,t),e!==null&&(st(e,t),Ca(e))}function Hv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qp(e,n)}function qv(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),Qp(e,n)}function Gv(e,t){return Wt(e,t)}var jr=null,Rl=null,Zc=!1,Ur=!1,Xc=!1,Ti=0;function Ca(e){e!==Rl&&e.next===null&&(Rl===null?jr=Rl=e:Rl=Rl.next=e),Ur=!0,Zc||(Zc=!0,Yv())}function Es(e,t){if(!Xc&&Ur){Xc=!0;do for(var n=!1,i=jr;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var h=i.suspendedLanes,E=i.pingedLanes;c=(1<<31-Rt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,tm(i,c))}else c=rt,c=O(i,i===kt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||ne(i,c)||(n=!0,tm(i,c));i=i.next}while(n);Xc=!1}}function $v(){Wp()}function Wp(){Ur=Zc=!1;var e=0;Ti!==0&&eE()&&(e=Ti);for(var t=lt(),n=null,i=jr;i!==null;){var o=i.next,c=Jp(i,t);c===0?(i.next=null,n===null?jr=o:n.next=o,o===null&&(Rl=n)):(n=i,(e!==0||(c&3)!==0)&&(Ur=!0)),i=o}dn!==0&&dn!==5||Es(e),Ti!==0&&(Ti=0)}function Jp(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Rt(c),E=1<<h,k=o[h];k===-1?((E&n)===0||(E&i)!==0)&&(o[h]=be(E,t)):k<=t&&(e.expiredLanes|=E),c&=~E}if(t=kt,n=rt,n=O(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Et===2||Et===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Lt(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ne(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Lt(i),jn(n)){case 2:case 8:n=_n;break;case 32:n=hn;break;case 268435456:n=Sn;break;default:n=hn}return i=em.bind(null,e),n=Wt(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Lt(i),e.callbackPriority=2,e.callbackNode=null,2}function em(e,t){if(dn!==0&&dn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zr()&&e.callbackNode!==n)return null;var i=rt;return i=O(e,e===kt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(zp(e,i,t),Jp(e,lt()),e.callbackNode!=null&&e.callbackNode===n?em.bind(null,e):null)}function tm(e,t){if(zr())return null;zp(e,t,!0)}function Yv(){nE(function(){(gt&6)!==0?Wt(At,$v):Wp()})}function Vc(){if(Ti===0){var e=hl;e===0&&(e=He,He<<=1,(He&261888)===0&&(He=256)),Ti=e}return Ti}function nm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:et(""+e)}function am(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Fv(e,t,n,i,o){if(t==="submit"&&n&&n.stateNode===o){var c=nm((o[Kt]||null).action),h=i.submitter;h&&(t=(t=h[Kt]||null)?nm(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var E=new Xs("action","action",null,i,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ti!==0){var k=h?am(o,h):new FormData(o);gc(n,{pending:!0,data:k,method:o.method,action:c},null,k)}}else typeof c=="function"&&(E.preventDefault(),k=h?am(o,h):new FormData(o),gc(n,{pending:!0,data:k,method:o.method,action:c},c,k))},currentTarget:o}]})}}for(var Qc=0;Qc<Do.length;Qc++){var Wc=Do[Qc],Pv=Wc.toLowerCase(),Kv=Wc[0].toUpperCase()+Wc.slice(1);_a(Pv,"on"+Kv)}_a(Lf,"onAnimationEnd"),_a(zf,"onAnimationIteration"),_a(jf,"onAnimationStart"),_a("dblclick","onDoubleClick"),_a("focusin","onFocus"),_a("focusout","onBlur"),_a(cv,"onTransitionRun"),_a(uv,"onTransitionStart"),_a(dv,"onTransitionCancel"),_a(Uf,"onTransitionEnd"),oe("onMouseEnter",["mouseout","mouseover"]),oe("onMouseLeave",["mouseout","mouseover"]),oe("onPointerEnter",["pointerout","pointerover"]),oe("onPointerLeave",["pointerout","pointerover"]),un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),un("onBeforeInput",["compositionend","keypress","textInput","paste"]),un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _s="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_s));function im(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var h=i.length-1;0<=h;h--){var E=i[h],k=E.instance,Y=E.currentTarget;if(E=E.listener,k!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(ae){Ws(ae)}o.currentTarget=null,c=k}else for(h=0;h<i.length;h++){if(E=i[h],k=E.instance,Y=E.currentTarget,E=E.listener,k!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(ae){Ws(ae)}o.currentTarget=null,c=k}}}}function nt(e,t){var n=t[Yn];n===void 0&&(n=t[Yn]=new Set);var i=e+"__bubble";n.has(i)||(lm(t,e,2,!1),n.add(i))}function Jc(e,t,n){var i=0;t&&(i|=4),lm(n,e,i,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function eu(e){if(!e[Br]){e[Br]=!0,Te.forEach(function(n){n!=="selectionchange"&&(Zv.has(n)||Jc(n,!1,e),Jc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Br]||(t[Br]=!0,Jc("selectionchange",!1,t))}}function lm(e,t,n,i){switch(Lm(t)){case 2:var o=SE;break;case 8:o=wE;break;default:o=mu}n=o.bind(null,t,n,e),o=void 0,!Eo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function tu(e,t,n,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var E=i.stateNode.containerInfo;if(E===o)break;if(h===4)for(h=i.return;h!==null;){var k=h.tag;if((k===3||k===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=Jt(E),h===null)return;if(k=h.tag,k===5||k===6||k===26||k===27){i=c=h;continue e}E=E.parentNode}}i=i.return}Fs(function(){var Y=c,ae=De(n),re=[];e:{var P=Bf.get(e);if(P!==void 0){var X=Xs,ke=e;switch(e){case"keypress":if(Ks(n)===0)break e;case"keydown":case"keyup":X=qy;break;case"focusin":ke="focus",X=No;break;case"focusout":ke="blur",X=No;break;case"beforeblur":case"afterblur":X=No;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=ky;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Yy;break;case Lf:case zf:case jf:X=My;break;case Uf:X=Py;break;case"scroll":case"scrollend":X=Ay;break;case"wheel":X=Zy;break;case"copy":case"cut":case"paste":X=Ly;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=mf;break;case"toggle":case"beforetoggle":X=Vy}var Ie=(t&4)!==0,Tt=!Ie&&(e==="scroll"||e==="scrollend"),U=Ie?P!==null?P+"Capture":null:P;Ie=[];for(var L=Y,$;L!==null;){var le=L;if($=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||$===null||U===null||(le=$l(L,U),le!=null&&Ie.push(Ss(L,le,$))),Tt)break;L=L.return}0<Ie.length&&(P=new X(P,ke,null,n,ae),re.push({event:P,listeners:Ie}))}}if((t&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",P&&n!==Ee&&(ke=n.relatedTarget||n.fromElement)&&(Jt(ke)||ke[ut]))break e;if((X||P)&&(P=ae.window===ae?ae:(P=ae.ownerDocument)?P.defaultView||P.parentWindow:window,X?(ke=n.relatedTarget||n.toElement,X=Y,ke=ke?Jt(ke):null,ke!==null&&(Tt=f(ke),Ie=ke.tag,ke!==Tt||Ie!==5&&Ie!==27&&Ie!==6)&&(ke=null)):(X=null,ke=Y),X!==ke)){if(Ie=hf,le="onMouseLeave",U="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Ie=mf,le="onPointerLeave",U="onPointerEnter",L="pointer"),Tt=X==null?P:G(X),$=ke==null?P:G(ke),P=new Ie(le,L+"leave",X,n,ae),P.target=Tt,P.relatedTarget=$,le=null,Jt(ae)===Y&&(Ie=new Ie(U,L+"enter",ke,n,ae),Ie.target=$,Ie.relatedTarget=Tt,le=Ie),Tt=le,X&&ke)t:{for(Ie=Xv,U=X,L=ke,$=0,le=U;le;le=Ie(le))$++;le=0;for(var ze=L;ze;ze=Ie(ze))le++;for(;0<$-le;)U=Ie(U),$--;for(;0<le-$;)L=Ie(L),le--;for(;$--;){if(U===L||L!==null&&U===L.alternate){Ie=U;break t}U=Ie(U),L=Ie(L)}Ie=null}else Ie=null;X!==null&&sm(re,P,X,Ie,!1),ke!==null&&Tt!==null&&sm(re,Tt,ke,Ie,!0)}}e:{if(P=Y?G(Y):window,X=P.nodeName&&P.nodeName.toLowerCase(),X==="select"||X==="input"&&P.type==="file")var ht=wf;else if(_f(P))if(Nf)ht=sv;else{ht=iv;var Ce=av}else X=P.nodeName,!X||X.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?Y&&xe(Y.elementType)&&(ht=wf):ht=lv;if(ht&&(ht=ht(e,Y))){Sf(re,ht,n,ae);break e}Ce&&Ce(e,P,Y),e==="focusout"&&Y&&P.type==="number"&&Y.memoizedProps.value!=null&&oi(P,"number",P.value)}switch(Ce=Y?G(Y):window,e){case"focusin":(_f(Ce)||Ce.contentEditable==="true")&&(ll=Ce,Oo=Y,Ql=null);break;case"focusout":Ql=Oo=ll=null;break;case"mousedown":Co=!0;break;case"contextmenu":case"mouseup":case"dragend":Co=!1,Mf(re,n,ae);break;case"selectionchange":if(ov)break;case"keydown":case"keyup":Mf(re,n,ae)}var Xe;if(xo)e:{switch(e){case"compositionstart":var ot="onCompositionStart";break e;case"compositionend":ot="onCompositionEnd";break e;case"compositionupdate":ot="onCompositionUpdate";break e}ot=void 0}else il?vf(e,n)&&(ot="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ot="onCompositionStart");ot&&(gf&&n.locale!=="ko"&&(il||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&il&&(Xe=df()):(ci=ae,_o="value"in ci?ci.value:ci.textContent,il=!0)),Ce=Ir(Y,ot),0<Ce.length&&(ot=new pf(ot,e,null,n,ae),re.push({event:ot,listeners:Ce}),Xe?ot.data=Xe:(Xe=Ef(n),Xe!==null&&(ot.data=Xe)))),(Xe=Wy?Jy(e,n):ev(e,n))&&(ot=Ir(Y,"onBeforeInput"),0<ot.length&&(Ce=new pf("onBeforeInput","beforeinput",null,n,ae),re.push({event:Ce,listeners:ot}),Ce.data=Xe)),Fv(re,e,Y,n,ae)}im(re,t)})}function Ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=$l(e,n),o!=null&&i.unshift(Ss(e,o,c)),o=$l(e,t),o!=null&&i.push(Ss(e,o,c))),e.tag===3)return i;e=e.return}return[]}function Xv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function sm(e,t,n,i,o){for(var c=t._reactName,h=[];n!==null&&n!==i;){var E=n,k=E.alternate,Y=E.stateNode;if(E=E.tag,k!==null&&k===i)break;E!==5&&E!==26&&E!==27||Y===null||(k=Y,o?(Y=$l(n,c),Y!=null&&h.unshift(Ss(n,Y,k))):o||(Y=$l(n,c),Y!=null&&h.push(Ss(n,Y,k)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Vv=/\r\n?/g,Qv=/\u0000|\uFFFD/g;function rm(e){return(typeof e=="string"?e:""+e).replace(Vv,`
49
- `).replace(Qv,"")}function om(e,t){return t=rm(t),rm(e)===t}function Nt(e,t,n,i,o,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||W(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&W(e,""+i);break;case"className":bn(e,"class",i);break;case"tabIndex":bn(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":bn(e,n,i);break;case"style":te(e,i,c);break;case"data":if(t!=="object"){bn(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=et(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Nt(e,t,"name",o.name,o,null),Nt(e,t,"formEncType",o.formEncType,o,null),Nt(e,t,"formMethod",o.formMethod,o,null),Nt(e,t,"formTarget",o.formTarget,o,null)):(Nt(e,t,"encType",o.encType,o,null),Nt(e,t,"method",o.method,o,null),Nt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=et(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=ue);break;case"onScroll":i!=null&&nt("scroll",e);break;case"onScrollEnd":i!=null&&nt("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=et(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":nt("beforetoggle",e),nt("toggle",e),en(e,"popover",i);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":en(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Oe.get(n)||n,en(e,n,i))}}function nu(e,t,n,i,o,c){switch(n){case"style":te(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof i=="string"?W(e,i):(typeof i=="number"||typeof i=="bigint")&&W(e,""+i);break;case"onScroll":i!=null&&nt("scroll",e);break;case"onScrollEnd":i!=null&&nt("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ue);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ye.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[Kt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,o);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):en(e,n,i)}}}function An(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nt("error",e),nt("load",e);var i=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Nt(e,t,c,h,n,null)}}o&&Nt(e,t,"srcSet",n.srcSet,n,null),i&&Nt(e,t,"src",n.src,n,null);return;case"input":nt("invalid",e);var E=c=h=o=null,k=null,Y=null;for(i in n)if(n.hasOwnProperty(i)){var ae=n[i];if(ae!=null)switch(i){case"name":o=ae;break;case"type":h=ae;break;case"checked":k=ae;break;case"defaultChecked":Y=ae;break;case"value":c=ae;break;case"defaultValue":E=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(s(137,t));break;default:Nt(e,t,i,ae,n,null)}}Ba(e,c,E,k,Y,h,o,!1);return;case"select":nt("invalid",e),i=h=c=null;for(o in n)if(n.hasOwnProperty(o)&&(E=n[o],E!=null))switch(o){case"value":c=E;break;case"defaultValue":h=E;break;case"multiple":i=E;default:Nt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!i,t!=null?tn(e,!!i,t,!1):n!=null&&tn(e,!!i,n,!0);return;case"textarea":nt("invalid",e),c=o=i=null;for(h in n)if(n.hasOwnProperty(h)&&(E=n[h],E!=null))switch(h){case"value":i=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:Nt(e,t,h,E,n,null)}Aa(e,i,o,c);return;case"option":for(k in n)if(n.hasOwnProperty(k)&&(i=n[k],i!=null))switch(k){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Nt(e,t,k,i,n,null)}return;case"dialog":nt("beforetoggle",e),nt("toggle",e),nt("cancel",e),nt("close",e);break;case"iframe":case"object":nt("load",e);break;case"video":case"audio":for(i=0;i<_s.length;i++)nt(_s[i],e);break;case"image":nt("error",e),nt("load",e);break;case"details":nt("toggle",e);break;case"embed":case"source":case"link":nt("error",e),nt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Y in n)if(n.hasOwnProperty(Y)&&(i=n[Y],i!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Nt(e,t,Y,i,n,null)}return;default:if(xe(t)){for(ae in n)n.hasOwnProperty(ae)&&(i=n[ae],i!==void 0&&nu(e,t,ae,i,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(i=n[E],i!=null&&Nt(e,t,E,i,n,null))}function Wv(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,E=null,k=null,Y=null,ae=null;for(X in n){var re=n[X];if(n.hasOwnProperty(X)&&re!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":k=re;default:i.hasOwnProperty(X)||Nt(e,t,X,null,i,re)}}for(var P in i){var X=i[P];if(re=n[P],i.hasOwnProperty(P)&&(X!=null||re!=null))switch(P){case"type":c=X;break;case"name":o=X;break;case"checked":Y=X;break;case"defaultChecked":ae=X;break;case"value":h=X;break;case"defaultValue":E=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,t));break;default:X!==re&&Nt(e,t,P,X,i,re)}}ri(e,h,E,k,Y,ae,c,o);return;case"select":X=h=E=P=null;for(c in n)if(k=n[c],n.hasOwnProperty(c)&&k!=null)switch(c){case"value":break;case"multiple":X=k;default:i.hasOwnProperty(c)||Nt(e,t,c,null,i,k)}for(o in i)if(c=i[o],k=n[o],i.hasOwnProperty(o)&&(c!=null||k!=null))switch(o){case"value":P=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==k&&Nt(e,t,o,c,i,k)}t=E,n=h,i=X,P!=null?tn(e,!!n,P,!1):!!i!=!!n&&(t!=null?tn(e,!!n,t,!0):tn(e,!!n,n?[]:"",!1));return;case"textarea":X=P=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!i.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Nt(e,t,E,null,i,o)}for(h in i)if(o=i[h],c=n[h],i.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":P=o;break;case"defaultValue":X=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Nt(e,t,h,o,i,c)}Ia(e,P,X);return;case"option":for(var ke in n)if(P=n[ke],n.hasOwnProperty(ke)&&P!=null&&!i.hasOwnProperty(ke))switch(ke){case"selected":e.selected=!1;break;default:Nt(e,t,ke,null,i,P)}for(k in i)if(P=i[k],X=n[k],i.hasOwnProperty(k)&&P!==X&&(P!=null||X!=null))switch(k){case"selected":e.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:Nt(e,t,k,P,i,X)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ie in n)P=n[Ie],n.hasOwnProperty(Ie)&&P!=null&&!i.hasOwnProperty(Ie)&&Nt(e,t,Ie,null,i,P);for(Y in i)if(P=i[Y],X=n[Y],i.hasOwnProperty(Y)&&P!==X&&(P!=null||X!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,t));break;default:Nt(e,t,Y,P,i,X)}return;default:if(xe(t)){for(var Tt in n)P=n[Tt],n.hasOwnProperty(Tt)&&P!==void 0&&!i.hasOwnProperty(Tt)&&nu(e,t,Tt,void 0,i,P);for(ae in i)P=i[ae],X=n[ae],!i.hasOwnProperty(ae)||P===X||P===void 0&&X===void 0||nu(e,t,ae,P,i,X);return}}for(var U in n)P=n[U],n.hasOwnProperty(U)&&P!=null&&!i.hasOwnProperty(U)&&Nt(e,t,U,null,i,P);for(re in i)P=i[re],X=n[re],!i.hasOwnProperty(re)||P===X||P==null&&X==null||Nt(e,t,re,P,i,X)}function cm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var o=n[i],c=o.transferSize,h=o.initiatorType,E=o.duration;if(c&&E&&cm(h)){for(h=0,E=o.responseEnd,i+=1;i<n.length;i++){var k=n[i],Y=k.startTime;if(Y>E)break;var ae=k.transferSize,re=k.initiatorType;ae&&cm(re)&&(k=k.responseEnd,h+=ae*(k<E?1:(E-Y)/(k-Y)))}if(--i,t+=8*(c+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var au=null,iu=null;function Hr(e){return e.nodeType===9?e:e.ownerDocument}function um(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function lu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var su=null;function eE(){var e=window.event;return e&&e.type==="popstate"?e===su?!1:(su=e,!0):(su=null,!1)}var fm=typeof setTimeout=="function"?setTimeout:void 0,tE=typeof clearTimeout=="function"?clearTimeout:void 0,hm=typeof Promise=="function"?Promise:void 0,nE=typeof queueMicrotask=="function"?queueMicrotask:typeof hm<"u"?function(e){return hm.resolve(null).then(e).catch(aE)}:fm;function aE(e){setTimeout(function(){throw e})}function xi(e){return e==="head"}function pm(e,t){var n=t,i=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(o),Ml(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")ws(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ws(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[Wn]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&ws(e.ownerDocument.body);n=o}while(n);Ml(t)}function mm(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function ru(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ru(n),Ea(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function iE(e,t,n,i){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Wn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ma(e.nextSibling),e===null)break}return null}function lE(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ma(e.nextSibling),e===null))return null;return e}function gm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ma(e.nextSibling),e===null))return null;return e}function ou(e){return e.data==="$?"||e.data==="$~"}function cu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function sE(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function ma(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var uu=null;function bm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ma(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function ym(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function vm(e,t,n){switch(t=Hr(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function ws(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ea(e)}var ga=new Map,Em=new Set;function qr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ti=ee.d;ee.d={f:rE,r:oE,D:cE,C:uE,L:dE,m:fE,X:pE,S:hE,M:mE};function rE(){var e=ti.f(),t=Mr();return e||t}function oE(e){var t=Fn(e);t!==null&&t.tag===5&&t.type==="form"?Uh(t):ti.r(e)}var kl=typeof document>"u"?null:document;function _m(e,t,n){var i=kl;if(i&&typeof t=="string"&&t){var o=On(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Em.has(o)||(Em.add(o),e={rel:e,crossOrigin:n,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),An(t,"link",e),ge(t),i.head.appendChild(t)))}}function cE(e){ti.D(e),_m("dns-prefetch",e,null)}function uE(e,t){ti.C(e,t),_m("preconnect",e,t)}function dE(e,t,n){ti.L(e,t,n);var i=kl;if(i&&e&&t){var o='link[rel="preload"][as="'+On(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+On(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+On(n.imageSizes)+'"]')):o+='[href="'+On(e)+'"]';var c=o;switch(t){case"style":c=Ol(e);break;case"script":c=Cl(e)}ga.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ga.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Ns(c))||t==="script"&&i.querySelector(Ts(c))||(t=i.createElement("link"),An(t,"link",e),ge(t),i.head.appendChild(t)))}}function fE(e,t){ti.m(e,t);var n=kl;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+On(i)+'"][href="'+On(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Cl(e)}if(!ga.has(c)&&(e=v({rel:"modulepreload",href:e},t),ga.set(c,e),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ts(c)))return}i=n.createElement("link"),An(i,"link",e),ge(i),n.head.appendChild(i)}}}function hE(e,t,n){ti.S(e,t,n);var i=kl;if(i&&e){var o=de(i).hoistableStyles,c=Ol(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=i.querySelector(Ns(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ga.get(c))&&du(e,n);var k=h=i.createElement("link");ge(k),An(k,"link",e),k._p=new Promise(function(Y,ae){k.onload=Y,k.onerror=ae}),k.addEventListener("load",function(){E.loading|=1}),k.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Gr(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function pE(e,t){ti.X(e,t);var n=kl;if(n&&e){var i=de(n).hoistableScripts,o=Cl(e),c=i.get(o);c||(c=n.querySelector(Ts(o)),c||(e=v({src:e,async:!0},t),(t=ga.get(o))&&fu(e,t),c=n.createElement("script"),ge(c),An(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function mE(e,t){ti.M(e,t);var n=kl;if(n&&e){var i=de(n).hoistableScripts,o=Cl(e),c=i.get(o);c||(c=n.querySelector(Ts(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ga.get(o))&&fu(e,t),c=n.createElement("script"),ge(c),An(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function Sm(e,t,n,i){var o=(o=ve.current)?qr(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ol(n.href),n=de(o).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ol(n.href);var c=de(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(Ns(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ga.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ga.set(e,n),c||gE(o,e,n,h.state))),t&&i===null)throw Error(s(528,""));return h}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Cl(n),n=de(o).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ol(e){return'href="'+On(e)+'"'}function Ns(e){return'link[rel="stylesheet"]['+e+"]"}function wm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function gE(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),An(t,"link",n),ge(t),e.head.appendChild(t))}function Cl(e){return'[src="'+On(e)+'"]'}function Ts(e){return"script[async]"+e}function Nm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+On(n.href)+'"]');if(i)return t.instance=i,ge(i),i;var o=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ge(i),An(i,"style",o),Gr(i,n.precedence,e),t.instance=i;case"stylesheet":o=Ol(n.href);var c=e.querySelector(Ns(o));if(c)return t.state.loading|=4,t.instance=c,ge(c),c;i=wm(n),(o=ga.get(o))&&du(i,o),c=(e.ownerDocument||e).createElement("link"),ge(c);var h=c;return h._p=new Promise(function(E,k){h.onload=E,h.onerror=k}),An(c,"link",i),t.state.loading|=4,Gr(c,n.precedence,e),t.instance=c;case"script":return c=Cl(n.src),(o=e.querySelector(Ts(c)))?(t.instance=o,ge(o),o):(i=n,(o=ga.get(c))&&(i=v({},n),fu(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),ge(o),An(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Gr(i,n.precedence,e));return t.instance}function Gr(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,h=0;h<i.length;h++){var E=i[h];if(E.dataset.precedence===t)c=E;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function du(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $r=null;function Tm(e,t,n){if($r===null){var i=new Map,o=$r=new Map;o.set(n,i)}else o=$r,i=o.get(n),i||(i=new Map,o.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[Wn]||c[St]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var E=i.get(h);E?E.push(c):i.set(h,[c])}}return i}function xm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function bE(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Am(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function yE(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ol(i.href),c=t.querySelector(Ns(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ge(c);return}c=t.ownerDocument||t,i=wm(i),(o=ga.get(o))&&du(i,o),c=c.createElement("link"),ge(c);var h=c;h._p=new Promise(function(E,k){h.onload=E,h.onerror=k}),An(c,"link",i),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Yr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var hu=0;function vE(e,t){return e.stylesheets&&e.count===0&&Pr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Pr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&hu===0&&(hu=62500*Jv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Pr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>hu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Yr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fr=null;function Pr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fr=new Map,t.forEach(EE,e),Fr=null,Yr.call(e))}function EE(e,t){if(!(t.state.loading&4)){var n=Fr.get(e);if(n)var i=n.get(null);else{n=new Map,Fr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),i=h)}i&&n.set(null,i)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||i,c===i&&n.set(null,o),n.set(h,o),this.count++,i=Yr.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var xs={$$typeof:A,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function _E(e,t,n,i,o,c,h,E,k){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function Rm(e,t,n,i,o,c,h,E,k,Y,ae,re){return e=new _E(e,t,n,h,k,Y,ae,re,E),t=1,c===!0&&(t|=24),c=ea(3,null,null,t),e.current=c,c.stateNode=e,t=Po(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Vo(c),e}function km(e){return e?(e=ol,e):ol}function Om(e,t,n,i,o,c){o=km(o),i.context===null?i.context=o:i.pendingContext=o,i=mi(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=gi(e,i,t),n!==null&&(Qn(n,e,t),is(n,e,t))}function Cm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pu(e,t){Cm(e,t),(e=e.alternate)&&Cm(e,t)}function Mm(e){if(e.tag===13||e.tag===31){var t=Ii(e,67108864);t!==null&&Qn(t,e,67108864),pu(e,67108864)}}function Dm(e){if(e.tag===13||e.tag===31){var t=la();t=bt(t);var n=Ii(e,t);n!==null&&Qn(n,e,t),pu(e,t)}}var Kr=!0;function SE(e,t,n,i){var o=M.T;M.T=null;var c=ee.p;try{ee.p=2,mu(e,t,n,i)}finally{ee.p=c,M.T=o}}function wE(e,t,n,i){var o=M.T;M.T=null;var c=ee.p;try{ee.p=8,mu(e,t,n,i)}finally{ee.p=c,M.T=o}}function mu(e,t,n,i){if(Kr){var o=gu(i);if(o===null)tu(e,t,i,Zr,n),zm(e,i);else if(TE(o,e,t,n,i))i.stopPropagation();else if(zm(e,i),t&4&&-1<NE.indexOf(e)){for(;o!==null;){var c=Fn(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=$t(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var k=1<<31-Rt(h);E.entanglements[1]|=k,h&=~k}Ca(c),(gt&6)===0&&(Or=lt()+500,Es(0))}}break;case 31:case 13:E=Ii(c,2),E!==null&&Qn(E,c,2),Mr(),pu(c,2)}if(c=gu(i),c===null&&tu(e,t,i,Zr,n),c===o)break;o=c}o!==null&&i.stopPropagation()}else tu(e,t,i,null,n)}}function gu(e){return e=De(e),bu(e)}var Zr=null;function bu(e){if(Zr=null,e=Jt(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zr=e,null}function Lm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mt()){case At:return 2;case _n:return 8;case hn:case qn:return 32;case Sn:return 268435456;default:return 32}default:return 32}}var yu=!1,Ai=null,Ri=null,ki=null,As=new Map,Rs=new Map,Oi=[],NE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function zm(e,t){switch(e){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":Ri=null;break;case"mouseover":case"mouseout":ki=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rs.delete(t.pointerId)}}function ks(e,t,n,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Fn(t),t!==null&&Mm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function TE(e,t,n,i,o){switch(t){case"focusin":return Ai=ks(Ai,e,t,n,i,o),!0;case"dragenter":return Ri=ks(Ri,e,t,n,i,o),!0;case"mouseover":return ki=ks(ki,e,t,n,i,o),!0;case"pointerover":var c=o.pointerId;return As.set(c,ks(As.get(c)||null,e,t,n,i,o)),!0;case"gotpointercapture":return c=o.pointerId,Rs.set(c,ks(Rs.get(c)||null,e,t,n,i,o)),!0}return!1}function jm(e){var t=Jt(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,ba(e.priority,function(){Dm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,ba(e.priority,function(){Dm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=gu(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Ee=i,n.target.dispatchEvent(i),Ee=null}else return t=Fn(n),t!==null&&Mm(t),e.blockedOn=n,!1;t.shift()}return!0}function Um(e,t,n){Xr(e)&&n.delete(t)}function xE(){yu=!1,Ai!==null&&Xr(Ai)&&(Ai=null),Ri!==null&&Xr(Ri)&&(Ri=null),ki!==null&&Xr(ki)&&(ki=null),As.forEach(Um),Rs.forEach(Um)}function Vr(e,t){e.blockedOn===t&&(e.blockedOn=null,yu||(yu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,xE)))}var Qr=null;function Bm(e){Qr!==e&&(Qr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Qr===e&&(Qr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(bu(i||n)===null)continue;break}var c=Fn(n);c!==null&&(e.splice(t,3),t-=3,gc(c,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function Ml(e){function t(k){return Vr(k,e)}Ai!==null&&Vr(Ai,e),Ri!==null&&Vr(Ri,e),ki!==null&&Vr(ki,e),As.forEach(t),Rs.forEach(t);for(var n=0;n<Oi.length;n++){var i=Oi[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Oi.length&&(n=Oi[0],n.blockedOn===null);)jm(n),n.blockedOn===null&&Oi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var o=n[i],c=n[i+1],h=o[Kt]||null;if(typeof c=="function")h||Bm(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[Kt]||null)E=h.formAction;else if(bu(o)!==null)continue}else E=h.action;typeof E=="function"?n[i+1]=E:(n.splice(i,3),i-=3),Bm(n)}}}function Im(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function vu(e){this._internalRoot=e}Wr.prototype.render=vu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,i=la();Om(n,i,e,t,null,null)},Wr.prototype.unmount=vu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Om(e.current,2,null,e,null,null),Mr(),t[ut]=null}};function Wr(e){this._internalRoot=e}Wr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Un();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Oi.length&&t!==0&&t<Oi[n].priority;n++);Oi.splice(n,0,e),n===0&&jm(e)}};var Hm=a.version;if(Hm!=="19.2.8")throw Error(s(527,Hm,"19.2.8"));ee.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var AE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jr.isDisabled&&Jr.supportsFiber)try{zn=Jr.inject(AE),It=Jr}catch{}}return Cs.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,i="",o=Kh,c=Zh,h=Xh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Rm(e,1,!1,null,null,n,i,null,o,c,h,Im),e[ut]=t.current,eu(e),new vu(t)},Cs.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var i=!1,o="",c=Kh,h=Zh,E=Xh,k=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(k=n.formState)),t=Rm(e,1,!0,t,n??null,i,o,k,c,h,E,Im),t.context=km(null),n=t.current,i=la(),i=bt(i),o=mi(i),o.callback=null,gi(n,o,i),n=i,t.current.lanes=n,st(t,n),Ca(t),e[ut]=t.current,eu(e),new Wr(t)},Cs.version="19.2.8",Cs}var Vm;function IE(){if(Vm)return Su.exports;Vm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),Su.exports=BE(),Su.exports}var HE=IE(),rn;(function(l){l.INSERT="insert",l.DELETE="delete",l.CONTEXT="context"})(rn||(rn={}));const qE={LINE_BY_LINE:"line-by-line"},GE={NONE:"none"},$E={WORD:"word"};var Bl;(function(l){l.AUTO="auto",l.DARK="dark",l.LIGHT="light"})(Bl||(Bl={}));const YE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],FE=RegExp("["+YE.join("\\")+"]","g");function PE(l){return l.replace(FE,"\\$&")}function Qm(l){return l&&l.replace(/\\/g,"/")}function KE(l){let a,r,s,u=0;for(a=0,s=l.length;a<s;a++)r=l.charCodeAt(a),u=(u<<5)-u+r,u|=0;return u}function zb(l){const a=l.length;let r=-1/0;for(let s=0;s<a;s++)r=Math.max(r,l[s]);return r}function Wm(l,a){const r=l.split(".");return r.length>1?r[r.length-1]:a}function Jm(l,a){return a.reduce((r,s)=>r||l.startsWith(s),!1)}const eg=["a/","b/","i/","w/","c/","o/"];function Li(l,a,r){const s=r!==void 0?[...eg,r]:eg,u=a?new RegExp(`^${PE(a)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,f=""]=u.exec(l)||[],p=s.find(g=>f.indexOf(g)===0);return(p?f.slice(p.length):f).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function ZE(l,a){return Li(l,"---",a)}function XE(l,a){return Li(l,"+++",a)}function VE(l,a={}){const r=[];let s=null,u=null,f=null,p=null,y=null,g=null,m=null;const b="--- ",v="+++ ",_="@@",T=/^old mode (\d{6})/,N=/^new mode (\d{6})/,D=/^deleted file mode (\d{6})/,x=/^new file mode (\d{6})/,C=/^copy from "?(.+)"?/,I=/^copy to "?(.+)"?/,A=/^rename from "?(.+)"?/,Q=/^rename to "?(.+)"?/,V=/^similarity index (\d+)%/,ie=/^dissimilarity index (\d+)%/,H=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,R=/^Binary files (.*) and (.*) differ/,q=/^GIT binary patch/,J=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,K=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,me=/^new file mode (\d{6})/,ce=/^deleted file mode (\d{6}),(\d{6})/,Se=l.replace(/\/g,"").replace(/\r\n?/g,`
48
+ `+i.stack}}var Gt=Object.prototype.hasOwnProperty,Wt=l.unstable_scheduleCallback,Lt=l.unstable_cancelCallback,vt=l.unstable_shouldYield,Ln=l.unstable_requestPaint,lt=l.unstable_now,mt=l.unstable_getCurrentPriorityLevel,At=l.unstable_ImmediatePriority,_n=l.unstable_UserBlockingPriority,hn=l.unstable_NormalPriority,qn=l.unstable_LowPriority,Sn=l.unstable_IdlePriority,wn=l.log,ra=l.unstable_setDisableYieldValue,zn=null,It=null;function pn(e){if(typeof wn=="function"&&ra(e),It&&typeof It.setStrictMode=="function")try{It.setStrictMode(zn,e)}catch{}}var Rt=Math.clz32?Math.clz32:mn,Gn=Math.log,$n=Math.LN2;function mn(e){return e>>>=0,e===0?32:31-(Gn(e)/$n|0)|0}var He=256,gn=262144,Ht=4194304;function $t(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function O(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var E=i&134217727;return E!==0?(i=E&~c,i!==0?o=$t(i):(h&=E,h!==0?o=$t(h):n||(n=E&~e,n!==0&&(o=$t(n))))):(E=i&~c,E!==0?o=$t(E):h!==0?o=$t(h):n||(n=i&~e,n!==0&&(o=$t(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function ne(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function be(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function je(){var e=Ht;return Ht<<=1,(Ht&62914560)===0&&(Ht=4194304),e}function Qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function st(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ae(e,t,n,i,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,k=e.expirationTimes,Y=e.hiddenUpdates;for(n=h&~n;0<n;){var ae=31-Rt(n),re=1<<ae;E[ae]=0,k[ae]=-1;var P=Y[ae];if(P!==null)for(Y[ae]=null,ae=0;ae<P.length;ae++){var X=P[ae];X!==null&&(X.lane&=-536870913)}n&=~re}i!==0&&_e(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function _e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Rt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Ue(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Rt(n),o=1<<i;o&t|e[i]&t&&(e[i]|=t),n&=~o}}function Ct(e,t){var n=t&-t;return n=(n&42)!==0?1:bt(n),(n&(e.suspendedLanes|t))!==0?0:n}function bt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function jn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Un(){var e=ee.p;return e!==0?e:(e=window.event,e===void 0?32:zm(e.type))}function ba(e,t){var n=ee.p;try{return ee.p=e,t()}finally{ee.p=n}}var Pt=Math.random().toString(36).slice(2),St="__reactFiber$"+Pt,Kt="__reactProps$"+Pt,ut="__reactContainer$"+Pt,Yn="__reactEvents$"+Pt,ii="__reactListeners$"+Pt,ya="__reactHandles$"+Pt,va="__reactResources$"+Pt,Wn="__reactMarker$"+Pt;function Ea(e){delete e[St],delete e[Kt],delete e[Yn],delete e[ii],delete e[ya]}function Jt(e){var t=e[St];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vm(e);e!==null;){if(n=e[St])return n;e=vm(e)}return t}e=n,n=e.parentNode}return null}function Fn(e){if(e=e[St]||e[ut]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function G(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function de(e){var t=e[va];return t||(t=e[va]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ge(e){e[Wn]=!0}var Te=new Set,Ye={};function un(e,t){oe(e,t),oe(e+"Capture",t)}function oe(e,t){for(Ye[e]=t,e=0;e<t.length;e++)Te.add(t[e])}var Re=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Be={},Je={};function Mt(e){return Gt.call(Je,e)?!0:Gt.call(Be,e)?!1:Re.test(e)?Je[e]=!0:(Be[e]=!0,!1)}function en(e,t,n){if(Mt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function bn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Zt(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ut(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function al(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){if(!e._valueTracker){var t=Ut(e)?"checked":"value";e._valueTracker=al(e,t,""+e[t])}}function si(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Ut(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Ua(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var il=/[\n"\\]/g;function On(e){return e.replace(il,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ri(e,t,n,i,o,c,h,E){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ft(t)):e.value!==""+ft(t)&&(e.value=""+ft(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?oi(e,h,ft(t)):n!=null?oi(e,h,ft(n)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+ft(E):e.removeAttribute("name")}function Ba(e,t,n,i,o,c,h,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){li(e);return}n=n!=null?""+ft(n):"",t=t!=null?""+ft(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=E?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),li(e)}function oi(e,t,n){t==="number"&&Ua(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function tn(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&i&&(e[n].defaultSelected=!0)}else{for(n=""+ft(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ia(e,t,n){if(t!=null&&(t=""+ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ft(n):""}function Aa(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(s(92));if(he(i)){if(1<i.length)throw Error(s(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=ft(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),li(e)}function W(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var w=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function j(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||w.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function te(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&n[o]!==i&&j(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&j(e,c,t[c])}function xe(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oe=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),qe=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function et(e){return qe.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ue(){}var Ee=null;function De(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ve=null,We=null;function oa(e){var t=Fn(e);if(t&&(e=t.stateNode)){var n=e[Kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ri(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+On(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=i[Kt]||null;if(!o)throw Error(s(90));ri(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&si(i)}break e;case"textarea":Ia(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&tn(e,!!n.multiple,t,!1)}}}var $l=!1;function Ps(e,t,n){if($l)return e(t,n);$l=!0;try{var i=e(t);return i}finally{if($l=!1,(Ve!==null||We!==null)&&(Dr(),Ve&&(t=Ve,e=We,We=Ve=null,oa(t),e)))for(t=0;t<e.length;t++)oa(e[t])}}function Yl(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Kt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var Ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=!1;if(Ha)try{var Fl={};Object.defineProperty(Fl,"passive",{get:function(){_o=!0}}),window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{_o=!1}var ci=null,So=null,Ks=null;function ff(){if(Ks)return Ks;var e,t=So,n=t.length,i,o="value"in ci?ci.value:ci.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(i=1;i<=h&&t[n-i]===o[c-i];i++);return Ks=o.slice(e,1<i?1-i:void 0)}function Zs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Xs(){return!0}function hf(){return!1}function Pn(e){function t(n,i,o,c,h){this._reactName=n,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(n=e[E],this[E]=n?n(c):c[E]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Xs:hf,this.isPropagationStopped=hf,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Xs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xs)},persist:function(){},isPersistent:Xs}),t}var ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vs=Pn(ji),Pl=v({},ji,{view:0,detail:0}),Ry=Pn(Pl),wo,No,Kl,Qs=v({},Pl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kl&&(Kl&&e.type==="mousemove"?(wo=e.screenX-Kl.screenX,No=e.screenY-Kl.screenY):No=wo=0,Kl=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:No}}),pf=Pn(Qs),ky=v({},Qs,{dataTransfer:0}),Oy=Pn(ky),Cy=v({},Pl,{relatedTarget:0}),To=Pn(Cy),My=v({},ji,{animationName:0,elapsedTime:0,pseudoElement:0}),Dy=Pn(My),Ly=v({},ji,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zy=Pn(Ly),jy=v({},ji,{data:0}),mf=Pn(jy),Uy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},By={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"},Iy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Iy[e])?!!t[e]:!1}function xo(){return Hy}var qy=v({},Pl,{key:function(e){if(e.key){var t=Uy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?By[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xo,charCode:function(e){return e.type==="keypress"?Zs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gy=Pn(qy),$y=v({},Qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gf=Pn($y),Yy=v({},Pl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xo}),Fy=Pn(Yy),Py=v({},ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ky=Pn(Py),Zy=v({},Qs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Xy=Pn(Zy),Vy=v({},ji,{newState:0,oldState:0}),Qy=Pn(Vy),Wy=[9,13,27,32],Ao=Ha&&"CompositionEvent"in window,Zl=null;Ha&&"documentMode"in document&&(Zl=document.documentMode);var Jy=Ha&&"TextEvent"in window&&!Zl,bf=Ha&&(!Ao||Zl&&8<Zl&&11>=Zl),yf=" ",vf=!1;function Ef(e,t){switch(e){case"keyup":return Wy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _f(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ll=!1;function ev(e,t){switch(e){case"compositionend":return _f(t);case"keypress":return t.which!==32?null:(vf=!0,yf);case"textInput":return e=t.data,e===yf&&vf?null:e;default:return null}}function tv(e,t){if(ll)return e==="compositionend"||!Ao&&Ef(e,t)?(e=ff(),Ks=So=ci=null,ll=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return bf&&t.locale!=="ko"?null:t.data;default:return null}}var nv={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 Sf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nv[e.type]:t==="textarea"}function wf(e,t,n,i){Ve?We?We.push(i):We=[i]:Ve=i,t=Hr(t,"onChange"),0<t.length&&(n=new Vs("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Xl=null,Vl=null;function av(e){lm(e,0)}function Ws(e){var t=G(e);if(si(t))return e}function Nf(e,t){if(e==="change")return t}var Tf=!1;if(Ha){var Ro;if(Ha){var ko="oninput"in document;if(!ko){var xf=document.createElement("div");xf.setAttribute("oninput","return;"),ko=typeof xf.oninput=="function"}Ro=ko}else Ro=!1;Tf=Ro&&(!document.documentMode||9<document.documentMode)}function Af(){Xl&&(Xl.detachEvent("onpropertychange",Rf),Vl=Xl=null)}function Rf(e){if(e.propertyName==="value"&&Ws(Vl)){var t=[];wf(t,Vl,e,De(e)),Ps(av,t)}}function iv(e,t,n){e==="focusin"?(Af(),Xl=t,Vl=n,Xl.attachEvent("onpropertychange",Rf)):e==="focusout"&&Af()}function lv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ws(Vl)}function sv(e,t){if(e==="click")return Ws(t)}function rv(e,t){if(e==="input"||e==="change")return Ws(t)}function ov(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jn=typeof Object.is=="function"?Object.is:ov;function Ql(e,t){if(Jn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var o=n[i];if(!Gt.call(t,o)||!Jn(e[o],t[o]))return!1}return!0}function kf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Of(e,t){var n=kf(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=kf(n)}}function Cf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ua(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ua(e.document)}return t}function Oo(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 cv=Ha&&"documentMode"in document&&11>=document.documentMode,sl=null,Co=null,Wl=null,Mo=!1;function Df(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mo||sl==null||sl!==Ua(i)||(i=sl,"selectionStart"in i&&Oo(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Wl&&Ql(Wl,i)||(Wl=i,i=Hr(Co,"onSelect"),0<i.length&&(t=new Vs("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=sl)))}function Ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var rl={animationend:Ui("Animation","AnimationEnd"),animationiteration:Ui("Animation","AnimationIteration"),animationstart:Ui("Animation","AnimationStart"),transitionrun:Ui("Transition","TransitionRun"),transitionstart:Ui("Transition","TransitionStart"),transitioncancel:Ui("Transition","TransitionCancel"),transitionend:Ui("Transition","TransitionEnd")},Do={},Lf={};Ha&&(Lf=document.createElement("div").style,"AnimationEvent"in window||(delete rl.animationend.animation,delete rl.animationiteration.animation,delete rl.animationstart.animation),"TransitionEvent"in window||delete rl.transitionend.transition);function Bi(e){if(Do[e])return Do[e];if(!rl[e])return e;var t=rl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lf)return Do[e]=t[n];return e}var zf=Bi("animationend"),jf=Bi("animationiteration"),Uf=Bi("animationstart"),uv=Bi("transitionrun"),dv=Bi("transitionstart"),fv=Bi("transitioncancel"),Bf=Bi("transitionend"),If=new Map,Lo="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(" ");Lo.push("scrollEnd");function _a(e,t){If.set(e,t),un(t,[e])}var Js=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ca=[],ol=0,zo=0;function er(){for(var e=ol,t=zo=ol=0;t<e;){var n=ca[t];ca[t++]=null;var i=ca[t];ca[t++]=null;var o=ca[t];ca[t++]=null;var c=ca[t];if(ca[t++]=null,i!==null&&o!==null){var h=i.pending;h===null?o.next=o:(o.next=h.next,h.next=o),i.pending=o}c!==0&&Hf(n,o,c)}}function tr(e,t,n,i){ca[ol++]=e,ca[ol++]=t,ca[ol++]=n,ca[ol++]=i,zo|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function jo(e,t,n,i){return tr(e,t,n,i),nr(e)}function Ii(e,t){return tr(e,null,null,t),nr(e)}function Hf(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Rt(n),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=n|536870912),c):null}function nr(e){if(50<Es)throw Es=0,Fc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var cl={};function hv(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ea(e,t,n,i){return new hv(e,t,n,i)}function Uo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qa(e,t){var n=e.alternate;return n===null?(n=ea(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function qf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ar(e,t,n,i,o,c){var h=0;if(i=e,typeof e=="function")Uo(e)&&(h=1);else if(typeof e=="string")h=yE(e,n,se.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case q:return e=ea(31,n,t,o),e.elementType=q,e.lanes=c,e;case D:return Hi(n.children,o,c,t);case x:h=8,o|=24;break;case C:return e=ea(12,n,t,o|2),e.elementType=C,e.lanes=c,e;case V:return e=ea(13,n,t,o),e.elementType=V,e.lanes=c,e;case ie:return e=ea(19,n,t,o),e.elementType=ie,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A:h=10;break e;case I:h=9;break e;case Q:h=11;break e;case H:h=14;break e;case R:h=16,i=null;break e}h=29,n=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=ea(h,n,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function Hi(e,t,n,i){return e=ea(7,e,i,t),e.lanes=n,e}function Bo(e,t,n){return e=ea(6,e,null,t),e.lanes=n,e}function Gf(e){var t=ea(18,null,null,0);return t.stateNode=e,t}function Io(e,t,n){return t=ea(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $f=new WeakMap;function ua(e,t){if(typeof e=="object"&&e!==null){var n=$f.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ot(t)},$f.set(e,t),t)}return{value:e,source:t,stack:Ot(t)}}var ul=[],dl=0,ir=null,Jl=0,da=[],fa=0,ui=null,Ra=1,ka="";function Ga(e,t){ul[dl++]=Jl,ul[dl++]=ir,ir=e,Jl=t}function Yf(e,t,n){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,ui=e;var i=Ra;e=ka;var o=32-Rt(i)-1;i&=~(1<<o),n+=1;var c=32-Rt(t)+o;if(30<c){var h=o-o%5;c=(i&(1<<h)-1).toString(32),i>>=h,o-=h,Ra=1<<32-Rt(t)+o|n<<o|i,ka=c+e}else Ra=1<<c|n<<o|i,ka=e}function Ho(e){e.return!==null&&(Ga(e,1),Yf(e,1,0))}function qo(e){for(;e===ir;)ir=ul[--dl],ul[dl]=null,Jl=ul[--dl],ul[dl]=null;for(;e===ui;)ui=da[--fa],da[fa]=null,ka=da[--fa],da[fa]=null,Ra=da[--fa],da[fa]=null}function Ff(e,t){da[fa++]=Ra,da[fa++]=ka,da[fa++]=ui,Ra=t.id,ka=t.overflow,ui=e}var Nn=null,zt=null,ct=!1,di=null,ha=!1,Go=Error(s(519));function fi(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw es(ua(t,e)),Go}function Pf(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[St]=e,t[Kt]=i,n){case"dialog":nt("cancel",t),nt("close",t);break;case"iframe":case"object":case"embed":nt("load",t);break;case"video":case"audio":for(n=0;n<Ss.length;n++)nt(Ss[n],t);break;case"source":nt("error",t);break;case"img":case"image":case"link":nt("error",t),nt("load",t);break;case"details":nt("toggle",t);break;case"input":nt("invalid",t),Ba(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":nt("invalid",t);break;case"textarea":nt("invalid",t),Aa(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||cm(t.textContent,n)?(i.popover!=null&&(nt("beforetoggle",t),nt("toggle",t)),i.onScroll!=null&&nt("scroll",t),i.onScrollEnd!=null&&nt("scrollend",t),i.onClick!=null&&(t.onclick=ue),t=!0):t=!1,t||fi(e,!0)}function Kf(e){for(Nn=e.return;Nn;)switch(Nn.tag){case 5:case 31:case 13:ha=!1;return;case 27:case 3:ha=!0;return;default:Nn=Nn.return}}function fl(e){if(e!==Nn)return!1;if(!ct)return Kf(e),ct=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||su(e.type,e.memoizedProps)),n=!n),n&&zt&&fi(e),Kf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));zt=ym(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));zt=ym(e)}else t===27?(t=zt,xi(e.type)?(e=du,du=null,zt=e):zt=t):zt=Nn?ma(e.stateNode.nextSibling):null;return!0}function qi(){zt=Nn=null,ct=!1}function $o(){var e=di;return e!==null&&(Vn===null?Vn=e:Vn.push.apply(Vn,e),di=null),e}function es(e){di===null?di=[e]:di.push(e)}var Yo=S(null),Gi=null,$a=null;function hi(e,t,n){B(Yo,t._currentValue),t._currentValue=n}function Ya(e){e._currentValue=Yo.current,z(Yo)}function Fo(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Po(e,t,n,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=o;for(var k=0;k<t.length;k++)if(E.context===t[k]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),Fo(c.return,n,e),i||(h=null);break e}c=E.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Fo(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function hl(e,t,n,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var E=o.type;Jn(o.pendingProps.value,h.value)||(e!==null?e.push(E):e=[E])}}else if(o===Z.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(As):e=[As])}o=o.return}e!==null&&Po(t,e,n,i),t.flags|=262144}function lr(e){for(e=e.firstContext;e!==null;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,$a=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tn(e){return Zf(Gi,e)}function sr(e,t){return Gi===null&&$i(e),Zf(e,t)}function Zf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},$a===null){if(e===null)throw Error(s(308));$a=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $a=$a.next=t;return n}var pv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},mv=l.unstable_scheduleCallback,gv=l.unstable_NormalPriority,nn={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ko(){return{controller:new pv,data:new Map,refCount:0}}function ts(e){e.refCount--,e.refCount===0&&mv(gv,function(){e.controller.abort()})}var ns=null,Zo=0,pl=0,ml=null;function bv(e,t){if(ns===null){var n=ns=[];Zo=0,pl=Qc(),ml={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Zo++,t.then(Xf,Xf),t}function Xf(){if(--Zo===0&&ns!==null){ml!==null&&(ml.status="fulfilled");var e=ns;ns=null,pl=0,ml=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yv(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),i}var Vf=M.S;M.S=function(e,t){Dp=lt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&bv(e,t),Vf!==null&&Vf(e,t)};var Yi=S(null);function Xo(){var e=Yi.current;return e!==null?e:kt.pooledCache}function rr(e,t){t===null?B(Yi,Yi.current):B(Yi,t.pool)}function Qf(){var e=Xo();return e===null?null:{parent:nn._currentValue,pool:e}}var gl=Error(s(460)),Vo=Error(s(474)),or=Error(s(542)),cr={then:function(){}};function Wf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Jf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ue,ue),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,th(e),e;default:if(typeof t.status=="string")t.then(ue,ue);else{if(e=kt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,th(e),e}throw Pi=t,gl}}function Fi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pi=n,gl):n}}var Pi=null;function eh(){if(Pi===null)throw Error(s(459));var e=Pi;return Pi=null,e}function th(e){if(e===gl||e===or)throw Error(s(483))}var bl=null,as=0;function ur(e){var t=as;return as+=1,bl===null&&(bl=[]),Jf(bl,e,t)}function is(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function dr(e,t){throw t.$$typeof===_?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function nh(e){function t(U,L){if(e){var $=U.deletions;$===null?(U.deletions=[L],U.flags|=16):$.push(L)}}function n(U,L){if(!e)return null;for(;L!==null;)t(U,L),L=L.sibling;return null}function i(U){for(var L=new Map;U!==null;)U.key!==null?L.set(U.key,U):L.set(U.index,U),U=U.sibling;return L}function o(U,L){return U=qa(U,L),U.index=0,U.sibling=null,U}function c(U,L,$){return U.index=$,e?($=U.alternate,$!==null?($=$.index,$<L?(U.flags|=67108866,L):$):(U.flags|=67108866,L)):(U.flags|=1048576,L)}function h(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function E(U,L,$,le){return L===null||L.tag!==6?(L=Bo($,U.mode,le),L.return=U,L):(L=o(L,$),L.return=U,L)}function k(U,L,$,le){var ze=$.type;return ze===D?ae(U,L,$.props.children,le,$.key):L!==null&&(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===R&&Fi(ze)===L.type)?(L=o(L,$.props),is(L,$),L.return=U,L):(L=ar($.type,$.key,$.props,null,U.mode,le),is(L,$),L.return=U,L)}function Y(U,L,$,le){return L===null||L.tag!==4||L.stateNode.containerInfo!==$.containerInfo||L.stateNode.implementation!==$.implementation?(L=Io($,U.mode,le),L.return=U,L):(L=o(L,$.children||[]),L.return=U,L)}function ae(U,L,$,le,ze){return L===null||L.tag!==7?(L=Hi($,U.mode,le,ze),L.return=U,L):(L=o(L,$),L.return=U,L)}function re(U,L,$){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Bo(""+L,U.mode,$),L.return=U,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case T:return $=ar(L.type,L.key,L.props,null,U.mode,$),is($,L),$.return=U,$;case N:return L=Io(L,U.mode,$),L.return=U,L;case R:return L=Fi(L),re(U,L,$)}if(he(L)||me(L))return L=Hi(L,U.mode,$,null),L.return=U,L;if(typeof L.then=="function")return re(U,ur(L),$);if(L.$$typeof===A)return re(U,sr(U,L),$);dr(U,L)}return null}function P(U,L,$,le){var ze=L!==null?L.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return ze!==null?null:E(U,L,""+$,le);if(typeof $=="object"&&$!==null){switch($.$$typeof){case T:return $.key===ze?k(U,L,$,le):null;case N:return $.key===ze?Y(U,L,$,le):null;case R:return $=Fi($),P(U,L,$,le)}if(he($)||me($))return ze!==null?null:ae(U,L,$,le,null);if(typeof $.then=="function")return P(U,L,ur($),le);if($.$$typeof===A)return P(U,L,sr(U,$),le);dr(U,$)}return null}function X(U,L,$,le,ze){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return U=U.get($)||null,E(L,U,""+le,ze);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case T:return U=U.get(le.key===null?$:le.key)||null,k(L,U,le,ze);case N:return U=U.get(le.key===null?$:le.key)||null,Y(L,U,le,ze);case R:return le=Fi(le),X(U,L,$,le,ze)}if(he(le)||me(le))return U=U.get($)||null,ae(L,U,le,ze,null);if(typeof le.then=="function")return X(U,L,$,ur(le),ze);if(le.$$typeof===A)return X(U,L,$,sr(L,le),ze);dr(L,le)}return null}function ke(U,L,$,le){for(var ze=null,ht=null,Ce=L,Xe=L=0,ot=null;Ce!==null&&Xe<$.length;Xe++){Ce.index>Xe?(ot=Ce,Ce=null):ot=Ce.sibling;var pt=P(U,Ce,$[Xe],le);if(pt===null){Ce===null&&(Ce=ot);break}e&&Ce&&pt.alternate===null&&t(U,Ce),L=c(pt,L,Xe),ht===null?ze=pt:ht.sibling=pt,ht=pt,Ce=ot}if(Xe===$.length)return n(U,Ce),ct&&Ga(U,Xe),ze;if(Ce===null){for(;Xe<$.length;Xe++)Ce=re(U,$[Xe],le),Ce!==null&&(L=c(Ce,L,Xe),ht===null?ze=Ce:ht.sibling=Ce,ht=Ce);return ct&&Ga(U,Xe),ze}for(Ce=i(Ce);Xe<$.length;Xe++)ot=X(Ce,U,Xe,$[Xe],le),ot!==null&&(e&&ot.alternate!==null&&Ce.delete(ot.key===null?Xe:ot.key),L=c(ot,L,Xe),ht===null?ze=ot:ht.sibling=ot,ht=ot);return e&&Ce.forEach(function(Ci){return t(U,Ci)}),ct&&Ga(U,Xe),ze}function Ie(U,L,$,le){if($==null)throw Error(s(151));for(var ze=null,ht=null,Ce=L,Xe=L=0,ot=null,pt=$.next();Ce!==null&&!pt.done;Xe++,pt=$.next()){Ce.index>Xe?(ot=Ce,Ce=null):ot=Ce.sibling;var Ci=P(U,Ce,pt.value,le);if(Ci===null){Ce===null&&(Ce=ot);break}e&&Ce&&Ci.alternate===null&&t(U,Ce),L=c(Ci,L,Xe),ht===null?ze=Ci:ht.sibling=Ci,ht=Ci,Ce=ot}if(pt.done)return n(U,Ce),ct&&Ga(U,Xe),ze;if(Ce===null){for(;!pt.done;Xe++,pt=$.next())pt=re(U,pt.value,le),pt!==null&&(L=c(pt,L,Xe),ht===null?ze=pt:ht.sibling=pt,ht=pt);return ct&&Ga(U,Xe),ze}for(Ce=i(Ce);!pt.done;Xe++,pt=$.next())pt=X(Ce,U,Xe,pt.value,le),pt!==null&&(e&&pt.alternate!==null&&Ce.delete(pt.key===null?Xe:pt.key),L=c(pt,L,Xe),ht===null?ze=pt:ht.sibling=pt,ht=pt);return e&&Ce.forEach(function(kE){return t(U,kE)}),ct&&Ga(U,Xe),ze}function Tt(U,L,$,le){if(typeof $=="object"&&$!==null&&$.type===D&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case T:e:{for(var ze=$.key;L!==null;){if(L.key===ze){if(ze=$.type,ze===D){if(L.tag===7){n(U,L.sibling),le=o(L,$.props.children),le.return=U,U=le;break e}}else if(L.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===R&&Fi(ze)===L.type){n(U,L.sibling),le=o(L,$.props),is(le,$),le.return=U,U=le;break e}n(U,L);break}else t(U,L);L=L.sibling}$.type===D?(le=Hi($.props.children,U.mode,le,$.key),le.return=U,U=le):(le=ar($.type,$.key,$.props,null,U.mode,le),is(le,$),le.return=U,U=le)}return h(U);case N:e:{for(ze=$.key;L!==null;){if(L.key===ze)if(L.tag===4&&L.stateNode.containerInfo===$.containerInfo&&L.stateNode.implementation===$.implementation){n(U,L.sibling),le=o(L,$.children||[]),le.return=U,U=le;break e}else{n(U,L);break}else t(U,L);L=L.sibling}le=Io($,U.mode,le),le.return=U,U=le}return h(U);case R:return $=Fi($),Tt(U,L,$,le)}if(he($))return ke(U,L,$,le);if(me($)){if(ze=me($),typeof ze!="function")throw Error(s(150));return $=ze.call($),Ie(U,L,$,le)}if(typeof $.then=="function")return Tt(U,L,ur($),le);if($.$$typeof===A)return Tt(U,L,sr(U,$),le);dr(U,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,L!==null&&L.tag===6?(n(U,L.sibling),le=o(L,$),le.return=U,U=le):(n(U,L),le=Bo($,U.mode,le),le.return=U,U=le),h(U)):n(U,L)}return function(U,L,$,le){try{as=0;var ze=Tt(U,L,$,le);return bl=null,ze}catch(Ce){if(Ce===gl||Ce===or)throw Ce;var ht=ea(29,Ce,null,U.mode);return ht.lanes=le,ht.return=U,ht}finally{}}}var Ki=nh(!0),ah=nh(!1),pi=!1;function Qo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function mi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(gt&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=nr(e),Hf(e,null,n),t}return tr(e,i,t,n),nr(e)}function ls(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ue(e,n)}}function Jo(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ec=!1;function ss(){if(ec){var e=ml;if(e!==null)throw e}}function rs(e,t,n,i){ec=!1;var o=e.updateQueue;pi=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var k=E,Y=k.next;k.next=null,h===null?c=Y:h.next=Y,h=k;var ae=e.alternate;ae!==null&&(ae=ae.updateQueue,E=ae.lastBaseUpdate,E!==h&&(E===null?ae.firstBaseUpdate=Y:E.next=Y,ae.lastBaseUpdate=k))}if(c!==null){var re=o.baseState;h=0,ae=Y=k=null,E=c;do{var P=E.lane&-536870913,X=P!==E.lane;if(X?(rt&P)===P:(i&P)===P){P!==0&&P===pl&&(ec=!0),ae!==null&&(ae=ae.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ke=e,Ie=E;P=t;var Tt=n;switch(Ie.tag){case 1:if(ke=Ie.payload,typeof ke=="function"){re=ke.call(Tt,re,P);break e}re=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=Ie.payload,P=typeof ke=="function"?ke.call(Tt,re,P):ke,P==null)break e;re=v({},re,P);break e;case 2:pi=!0}}P=E.callback,P!==null&&(e.flags|=64,X&&(e.flags|=8192),X=o.callbacks,X===null?o.callbacks=[P]:X.push(P))}else X={lane:P,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ae===null?(Y=ae=X,k=re):ae=ae.next=X,h|=P;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;X=E,E=X.next,X.next=null,o.lastBaseUpdate=X,o.shared.pending=null}}while(!0);ae===null&&(k=re),o.baseState=k,o.firstBaseUpdate=Y,o.lastBaseUpdate=ae,c===null&&(o.shared.lanes=0),_i|=h,e.lanes=h,e.memoizedState=re}}function ih(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function lh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ih(n[e],t)}var yl=S(null),fr=S(0);function sh(e,t){e=Ja,B(fr,e),B(yl,t),Ja=e|t.baseLanes}function tc(){B(fr,Ja),B(yl,yl.current)}function nc(){Ja=fr.current,z(yl),z(fr)}var ta=S(null),pa=null;function bi(e){var t=e.alternate;B(Xt,Xt.current&1),B(ta,e),pa===null&&(t===null||yl.current!==null||t.memoizedState!==null)&&(pa=e)}function ac(e){B(Xt,Xt.current),B(ta,e),pa===null&&(pa=e)}function rh(e){e.tag===22?(B(Xt,Xt.current),B(ta,e),pa===null&&(pa=e)):yi()}function yi(){B(Xt,Xt.current),B(ta,ta.current)}function na(e){z(ta),pa===e&&(pa=null),z(Xt)}var Xt=S(0);function hr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||cu(n)||uu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fa=0,Ke=null,wt=null,an=null,pr=!1,vl=!1,Zi=!1,mr=0,os=0,El=null,vv=0;function Yt(){throw Error(s(321))}function ic(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function lc(e,t,n,i,o,c){return Fa=c,Ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Yh:Ec,Zi=!1,c=n(i,o),Zi=!1,vl&&(c=ch(t,n,i,o)),oh(e),c}function oh(e){M.H=ds;var t=wt!==null&&wt.next!==null;if(Fa=0,an=wt=Ke=null,pr=!1,os=0,El=null,t)throw Error(s(300));e===null||ln||(e=e.dependencies,e!==null&&lr(e)&&(ln=!0))}function ch(e,t,n,i){Ke=e;var o=0;do{if(vl&&(El=null),os=0,vl=!1,25<=o)throw Error(s(301));if(o+=1,an=wt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}M.H=Fh,c=t(n,i)}while(vl);return c}function Ev(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?cs(t):t,e=e.useState()[0],(wt!==null?wt.memoizedState:null)!==e&&(Ke.flags|=1024),t}function sc(){var e=mr!==0;return mr=0,e}function rc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function oc(e){if(pr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pr=!1}Fa=0,an=wt=Ke=null,vl=!1,os=mr=0,El=null}function Bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return an===null?Ke.memoizedState=an=e:an=an.next=e,an}function Vt(){if(wt===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=wt.next;var t=an===null?Ke.memoizedState:an.next;if(t!==null)an=t,wt=e;else{if(e===null)throw Ke.alternate===null?Error(s(467)):Error(s(310));wt=e,e={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},an===null?Ke.memoizedState=an=e:an=an.next=e}return an}function gr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cs(e){var t=os;return os+=1,El===null&&(El=[]),e=Jf(El,e,t),t=Ke,(an===null?t.memoizedState:an.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Yh:Ec),e}function br(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return cs(e);if(e.$$typeof===A)return Tn(e)}throw Error(s(438,String(e)))}function cc(e){var t=null,n=Ke.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ke.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=gr(),Ke.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=J;return t.index++,n}function Pa(e,t){return typeof t=="function"?t(e):t}function yr(e){var t=Vt();return uc(t,wt,e)}function uc(e,t,n){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=h=null,k=null,Y=t,ae=!1;do{var re=Y.lane&-536870913;if(re!==Y.lane?(rt&re)===re:(Fa&re)===re){var P=Y.revertLane;if(P===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),re===pl&&(ae=!0);else if((Fa&P)===P){Y=Y.next,P===pl&&(ae=!0);continue}else re={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},k===null?(E=k=re,h=c):k=k.next=re,Ke.lanes|=P,_i|=P;re=Y.action,Zi&&n(c,re),c=Y.hasEagerState?Y.eagerState:n(c,re)}else P={lane:re,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},k===null?(E=k=P,h=c):k=k.next=P,Ke.lanes|=re,_i|=re;Y=Y.next}while(Y!==null&&Y!==t);if(k===null?h=c:k.next=E,!Jn(c,e.memoizedState)&&(ln=!0,ae&&(n=ml,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=k,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function dc(e){var t=Vt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);Jn(c,t.memoizedState)||(ln=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function uh(e,t,n){var i=Ke,o=Vt(),c=ct;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var h=!Jn((wt||o).memoizedState,n);if(h&&(o.memoizedState=n,ln=!0),o=o.queue,pc(hh.bind(null,i,o,e),[e]),o.getSnapshot!==t||h||an!==null&&an.memoizedState.tag&1){if(i.flags|=2048,_l(9,{destroy:void 0},fh.bind(null,i,o,n,t),null),kt===null)throw Error(s(349));c||(Fa&127)!==0||dh(i,t,n)}return n}function dh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ke.updateQueue,t===null?(t=gr(),Ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fh(e,t,n,i){t.value=n,t.getSnapshot=i,ph(t)&&mh(e)}function hh(e,t,n){return n(function(){ph(t)&&mh(e)})}function ph(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch{return!0}}function mh(e){var t=Ii(e,2);t!==null&&Qn(t,e,2)}function fc(e){var t=Bn();if(typeof e=="function"){var n=e;if(e=n(),Zi){pn(!0);try{n()}finally{pn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t}function gh(e,t,n,i){return e.baseState=n,uc(e,wt,typeof i=="function"?i:Pa)}function _v(e,t,n,i,o){if(_r(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};M.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,bh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function bh(e,t){var n=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=M.T,h={};M.T=h;try{var E=n(o,i),k=M.S;k!==null&&k(h,E),yh(e,t,E)}catch(Y){hc(e,t,Y)}finally{c!==null&&h.types!==null&&(c.types=h.types),M.T=c}}else try{c=n(o,i),yh(e,t,c)}catch(Y){hc(e,t,Y)}}function yh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){vh(e,t,i)},function(i){return hc(e,t,i)}):vh(e,t,n)}function vh(e,t,n){t.status="fulfilled",t.value=n,Eh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,bh(e,n)))}function hc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Eh(t),t=t.next;while(t!==i)}e.action=null}function Eh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _h(e,t){return t}function Sh(e,t){if(ct){var n=kt.formState;if(n!==null){e:{var i=Ke;if(ct){if(zt){t:{for(var o=zt,c=ha;o.nodeType!==8;){if(!c){o=null;break t}if(o=ma(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){zt=ma(o.nextSibling),i=o.data==="F!";break e}}fi(i)}i=!1}i&&(t=n[0])}}return n=Bn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_h,lastRenderedState:t},n.queue=i,n=qh.bind(null,Ke,i),i.dispatch=n,i=fc(!1),c=vc.bind(null,Ke,!1,i.queue),i=Bn(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,n=_v.bind(null,Ke,o,c,n),o.dispatch=n,i.memoizedState=e,[t,n,!1]}function wh(e){var t=Vt();return Nh(t,wt,e)}function Nh(e,t,n){if(t=uc(e,t,_h)[0],e=yr(Pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=cs(t)}catch(h){throw h===gl?or:h}else i=t;t=Vt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Ke.flags|=2048,_l(9,{destroy:void 0},Sv.bind(null,o,n),null)),[i,c,e]}function Sv(e,t){e.action=t}function Th(e){var t=Vt(),n=wt;if(n!==null)return Nh(t,n,e);Vt(),t=t.memoizedState,n=Vt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function _l(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ke.updateQueue,t===null&&(t=gr(),Ke.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function xh(){return Vt().memoizedState}function vr(e,t,n,i){var o=Bn();Ke.flags|=e,o.memoizedState=_l(1|t,{destroy:void 0},n,i===void 0?null:i)}function Er(e,t,n,i){var o=Vt();i=i===void 0?null:i;var c=o.memoizedState.inst;wt!==null&&i!==null&&ic(i,wt.memoizedState.deps)?o.memoizedState=_l(t,c,n,i):(Ke.flags|=e,o.memoizedState=_l(1|t,c,n,i))}function Ah(e,t){vr(8390656,8,e,t)}function pc(e,t){Er(2048,8,e,t)}function wv(e){Ke.flags|=4;var t=Ke.updateQueue;if(t===null)t=gr(),Ke.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Rh(e){var t=Vt().memoizedState;return wv({ref:t,nextImpl:e}),function(){if((gt&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function kh(e,t){return Er(4,2,e,t)}function Oh(e,t){return Er(4,4,e,t)}function Ch(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 Mh(e,t,n){n=n!=null?n.concat([e]):null,Er(4,4,Ch.bind(null,t,e),n)}function mc(){}function Dh(e,t){var n=Vt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&ic(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Lh(e,t){var n=Vt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&ic(t,i[1]))return i[0];if(i=e(),Zi){pn(!0);try{e()}finally{pn(!1)}}return n.memoizedState=[i,t],i}function gc(e,t,n){return n===void 0||(Fa&1073741824)!==0&&(rt&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=zp(),Ke.lanes|=e,_i|=e,n)}function zh(e,t,n,i){return Jn(n,t)?n:yl.current!==null?(e=gc(e,n,i),Jn(e,t)||(ln=!0),e):(Fa&42)===0||(Fa&1073741824)!==0&&(rt&261930)===0?(ln=!0,e.memoizedState=n):(e=zp(),Ke.lanes|=e,_i|=e,t)}function jh(e,t,n,i,o){var c=ee.p;ee.p=c!==0&&8>c?c:8;var h=M.T,E={};M.T=E,vc(e,!1,t,n);try{var k=o(),Y=M.S;if(Y!==null&&Y(E,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var ae=yv(k,i);us(e,t,ae,la(e))}else us(e,t,i,la(e))}catch(re){us(e,t,{then:function(){},status:"rejected",reason:re},la())}finally{ee.p=c,h!==null&&E.types!==null&&(h.types=E.types),M.T=h}}function Nv(){}function bc(e,t,n,i){if(e.tag!==5)throw Error(s(476));var o=Uh(e).queue;jh(e,o,t,fe,n===null?Nv:function(){return Bh(e),n(i)})}function Uh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Bh(e){var t=Uh(e);t.next===null&&(t=e.alternate.memoizedState),us(e,t.next.queue,{},la())}function yc(){return Tn(As)}function Ih(){return Vt().memoizedState}function Hh(){return Vt().memoizedState}function Tv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=la();e=mi(n);var i=gi(t,e,n);i!==null&&(Qn(i,t,n),ls(i,t,n)),t={cache:Ko()},e.payload=t;return}t=t.return}}function xv(e,t,n){var i=la();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_r(e)?Gh(t,n):(n=jo(e,t,n,i),n!==null&&(Qn(n,e,i),$h(n,t,i)))}function qh(e,t,n){var i=la();us(e,t,n,i)}function us(e,t,n,i){var o={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_r(e))Gh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,E=c(h,n);if(o.hasEagerState=!0,o.eagerState=E,Jn(E,h))return tr(e,t,o,0),kt===null&&er(),!1}catch{}finally{}if(n=jo(e,t,o,i),n!==null)return Qn(n,e,i),$h(n,t,i),!0}return!1}function vc(e,t,n,i){if(i={lane:2,revertLane:Qc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},_r(e)){if(t)throw Error(s(479))}else t=jo(e,n,i,2),t!==null&&Qn(t,e,2)}function _r(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function Gh(e,t){vl=pr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $h(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ue(e,n)}}var ds={readContext:Tn,use:br,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};ds.useEffectEvent=Yt;var Yh={readContext:Tn,use:br,useCallback:function(e,t){return Bn().memoizedState=[e,t===void 0?null:t],e},useContext:Tn,useEffect:Ah,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,vr(4194308,4,Ch.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vr(4194308,4,e,t)},useInsertionEffect:function(e,t){vr(4,2,e,t)},useMemo:function(e,t){var n=Bn();t=t===void 0?null:t;var i=e();if(Zi){pn(!0);try{e()}finally{pn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Bn();if(n!==void 0){var o=n(t);if(Zi){pn(!0);try{n(t)}finally{pn(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=xv.bind(null,Ke,e),[i.memoizedState,e]},useRef:function(e){var t=Bn();return e={current:e},t.memoizedState=e},useState:function(e){e=fc(e);var t=e.queue,n=qh.bind(null,Ke,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:mc,useDeferredValue:function(e,t){var n=Bn();return gc(n,e,t)},useTransition:function(){var e=fc(!1);return e=jh.bind(null,Ke,e.queue,!0,!1),Bn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ke,o=Bn();if(ct){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),kt===null)throw Error(s(349));(rt&127)!==0||dh(i,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,Ah(hh.bind(null,i,c,e),[e]),i.flags|=2048,_l(9,{destroy:void 0},fh.bind(null,i,c,n,t),null),n},useId:function(){var e=Bn(),t=kt.identifierPrefix;if(ct){var n=ka,i=Ra;n=(i&~(1<<32-Rt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=mr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=vv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:yc,useFormState:Sh,useActionState:Sh,useOptimistic:function(e){var t=Bn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=vc.bind(null,Ke,!0,n),n.dispatch=t,[e,t]},useMemoCache:cc,useCacheRefresh:function(){return Bn().memoizedState=Tv.bind(null,Ke)},useEffectEvent:function(e){var t=Bn(),n={impl:e};return t.memoizedState=n,function(){if((gt&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Ec={readContext:Tn,use:br,useCallback:Dh,useContext:Tn,useEffect:pc,useImperativeHandle:Mh,useInsertionEffect:kh,useLayoutEffect:Oh,useMemo:Lh,useReducer:yr,useRef:xh,useState:function(){return yr(Pa)},useDebugValue:mc,useDeferredValue:function(e,t){var n=Vt();return zh(n,wt.memoizedState,e,t)},useTransition:function(){var e=yr(Pa)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:cs(e),t]},useSyncExternalStore:uh,useId:Ih,useHostTransitionStatus:yc,useFormState:wh,useActionState:wh,useOptimistic:function(e,t){var n=Vt();return gh(n,wt,e,t)},useMemoCache:cc,useCacheRefresh:Hh};Ec.useEffectEvent=Rh;var Fh={readContext:Tn,use:br,useCallback:Dh,useContext:Tn,useEffect:pc,useImperativeHandle:Mh,useInsertionEffect:kh,useLayoutEffect:Oh,useMemo:Lh,useReducer:dc,useRef:xh,useState:function(){return dc(Pa)},useDebugValue:mc,useDeferredValue:function(e,t){var n=Vt();return wt===null?gc(n,e,t):zh(n,wt.memoizedState,e,t)},useTransition:function(){var e=dc(Pa)[0],t=Vt().memoizedState;return[typeof e=="boolean"?e:cs(e),t]},useSyncExternalStore:uh,useId:Ih,useHostTransitionStatus:yc,useFormState:Th,useActionState:Th,useOptimistic:function(e,t){var n=Vt();return wt!==null?gh(n,wt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:cc,useCacheRefresh:Hh};Fh.useEffectEvent=Rh;function _c(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sc={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=la(),o=mi(i);o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,i),t!==null&&(Qn(t,e,i),ls(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=la(),o=mi(i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=gi(e,o,i),t!==null&&(Qn(t,e,i),ls(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=la(),i=mi(n);i.tag=2,t!=null&&(i.callback=t),t=gi(e,i,n),t!==null&&(Qn(t,e,n),ls(t,e,n))}};function Ph(e,t,n,i,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,h):t.prototype&&t.prototype.isPureReactComponent?!Ql(n,i)||!Ql(o,c):!0}function Kh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Sc.enqueueReplaceState(t,t.state,null)}function Xi(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Zh(e){Js(e)}function Xh(e){console.error(e)}function Vh(e){Js(e)}function Sr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Qh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function wc(e,t,n){return n=mi(n),n.tag=3,n.payload={element:null},n.callback=function(){Sr(e,t)},n}function Wh(e){return e=mi(e),e.tag=3,e}function Jh(e,t,n,i){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){Qh(t,n,i)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Qh(t,n,i),typeof o!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function Av(e,t,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&hl(t,n,o,!0),n=ta.current,n!==null){switch(n.tag){case 31:case 13:return pa===null?Lr():n.alternate===null&&Ft===0&&(Ft=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===cr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Zc(e,i,o)),!1;case 22:return n.flags|=65536,i===cr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Zc(e,i,o)),!1}throw Error(s(435,n.tag))}return Zc(e,i,o),Lr(),!1}if(ct)return t=ta.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Go&&(e=Error(s(422),{cause:i}),es(ua(e,n)))):(i!==Go&&(t=Error(s(423),{cause:i}),es(ua(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=ua(i,n),o=wc(e.stateNode,i,o),Jo(e,o),Ft!==4&&(Ft=2)),!1;var c=Error(s(520),{cause:i});if(c=ua(c,n),vs===null?vs=[c]:vs.push(c),Ft!==4&&(Ft=2),t===null)return!0;i=ua(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=wc(n.stateNode,i,e),Jo(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=Wh(o),Jh(o,e,n,i),Jo(n,o),!1}n=n.return}while(n!==null);return!1}var Nc=Error(s(461)),ln=!1;function xn(e,t,n,i){t.child=e===null?ah(t,null,n,i):Ki(t,e.child,n,i)}function ep(e,t,n,i,o){n=n.render;var c=t.ref;if("ref"in i){var h={};for(var E in i)E!=="ref"&&(h[E]=i[E])}else h=i;return $i(t),i=lc(e,t,n,h,c,o),E=sc(),e!==null&&!ln?(rc(e,t,o),Ka(e,t,o)):(ct&&E&&Ho(t),t.flags|=1,xn(e,t,i,o),t.child)}function tp(e,t,n,i,o){if(e===null){var c=n.type;return typeof c=="function"&&!Uo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,np(e,t,c,i,o)):(e=ar(n.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Mc(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(h,i)&&e.ref===t.ref)return Ka(e,t,o)}return t.flags|=1,e=qa(c,i),e.ref=t.ref,e.return=t,t.child=e}function np(e,t,n,i,o){if(e!==null){var c=e.memoizedProps;if(Ql(c,i)&&e.ref===t.ref)if(ln=!1,t.pendingProps=i=c,Mc(e,o))(e.flags&131072)!==0&&(ln=!0);else return t.lanes=e.lanes,Ka(e,t,o)}return Tc(e,t,n,i,o)}function ap(e,t,n,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return ip(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rr(t,c!==null?c.cachePool:null),c!==null?sh(t,c):tc(),rh(t);else return i=t.lanes=536870912,ip(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(rr(t,c.cachePool),sh(t,c),yi(),t.memoizedState=null):(e!==null&&rr(t,null),tc(),yi());return xn(e,t,o,n),t.child}function fs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ip(e,t,n,i,o){var c=Xo();return c=c===null?null:{parent:nn._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&rr(t,null),tc(),rh(t),e!==null&&hl(e,t,i,!0),t.childLanes=o,null}function wr(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 lp(e,t,n){return Ki(t,e.child,null,n),e=wr(t,t.pendingProps),e.flags|=2,na(t),t.memoizedState=null,e}function Rv(e,t,n){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ct){if(i.mode==="hidden")return e=wr(t,i),t.lanes=536870912,fs(null,e);if(ac(t),(e=zt)?(e=bm(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=Gf(e),n.return=t,t.child=n,Nn=t,zt=null)):e=null,e===null)throw fi(t);return t.lanes=536870912,null}return wr(t,i)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(ac(t),o)if(t.flags&256)t.flags&=-257,t=lp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ln||hl(e,t,n,!1),o=(n&e.childLanes)!==0,ln||o){if(i=kt,i!==null&&(h=Ct(i,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Ii(e,h),Qn(i,e,h),Nc;Lr(),t=lp(e,t,n)}else e=c.treeContext,zt=ma(h.nextSibling),Nn=t,ct=!0,di=null,ha=!1,e!==null&&Ff(t,e),t=wr(t,i),t.flags|=4096;return t}return e=qa(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Nr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Tc(e,t,n,i,o){return $i(t),n=lc(e,t,n,i,void 0,o),i=sc(),e!==null&&!ln?(rc(e,t,o),Ka(e,t,o)):(ct&&i&&Ho(t),t.flags|=1,xn(e,t,n,o),t.child)}function sp(e,t,n,i,o,c){return $i(t),t.updateQueue=null,n=ch(t,i,n,o),oh(e),i=sc(),e!==null&&!ln?(rc(e,t,c),Ka(e,t,c)):(ct&&i&&Ho(t),t.flags|=1,xn(e,t,n,c),t.child)}function rp(e,t,n,i,o){if($i(t),t.stateNode===null){var c=cl,h=n.contextType;typeof h=="object"&&h!==null&&(c=Tn(h)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Sc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Qo(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?Tn(h):cl,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(_c(t,n,h,i),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&Sc.enqueueReplaceState(c,c.state,null),rs(t,i,c,o),ss(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,k=Xi(n,E);c.props=k;var Y=c.context,ae=n.contextType;h=cl,typeof ae=="object"&&ae!==null&&(h=Tn(ae));var re=n.getDerivedStateFromProps;ae=typeof re=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,ae||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||Y!==h)&&Kh(t,c,i,h),pi=!1;var P=t.memoizedState;c.state=P,rs(t,i,c,o),ss(),Y=t.memoizedState,E||P!==Y||pi?(typeof re=="function"&&(_c(t,n,re,i),Y=t.memoizedState),(k=pi||Ph(t,n,k,i,P,Y,h))?(ae||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=Y),c.props=i,c.state=Y,c.context=h,i=k):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Wo(e,t),h=t.memoizedProps,ae=Xi(n,h),c.props=ae,re=t.pendingProps,P=c.context,Y=n.contextType,k=cl,typeof Y=="object"&&Y!==null&&(k=Tn(Y)),E=n.getDerivedStateFromProps,(Y=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==re||P!==k)&&Kh(t,c,i,k),pi=!1,P=t.memoizedState,c.state=P,rs(t,i,c,o),ss();var X=t.memoizedState;h!==re||P!==X||pi||e!==null&&e.dependencies!==null&&lr(e.dependencies)?(typeof E=="function"&&(_c(t,n,E,i),X=t.memoizedState),(ae=pi||Ph(t,n,ae,i,P,X,k)||e!==null&&e.dependencies!==null&&lr(e.dependencies))?(Y||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,X,k),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,X,k)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=X),c.props=i,c.state=X,c.context=k,i=ae):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,Nr(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Ki(t,e.child,null,o),t.child=Ki(t,null,n,o)):xn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ka(e,t,o),e}function op(e,t,n,i){return qi(),t.flags|=256,xn(e,t,n,i),t.child}var xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ac(e){return{baseLanes:e,cachePool:Qf()}}function Rc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=ia),e}function cp(e,t,n){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(Xt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(ct){if(o?bi(t):yi(),(e=zt)?(e=bm(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=Gf(e),n.return=t,t.child=n,Nn=t,zt=null)):e=null,e===null)throw fi(t);return uu(e)?t.lanes=32:t.lanes=536870912,null}var E=i.children;return i=i.fallback,o?(yi(),o=t.mode,E=Tr({mode:"hidden",children:E},o),i=Hi(i,o,n,null),E.return=t,i.return=t,E.sibling=i,t.child=E,i=t.child,i.memoizedState=Ac(n),i.childLanes=Rc(e,h,n),t.memoizedState=xc,fs(null,i)):(bi(t),kc(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=Oc(e,t,n)):t.memoizedState!==null?(yi(),t.child=e.child,t.flags|=128,t=null):(yi(),E=i.fallback,o=t.mode,i=Tr({mode:"visible",children:i.children},o),E=Hi(E,o,n,null),E.flags|=2,i.return=t,E.return=t,i.sibling=E,t.child=i,Ki(t,e.child,null,n),i=t.child,i.memoizedState=Ac(n),i.childLanes=Rc(e,h,n),t.memoizedState=xc,t=fs(null,i));else if(bi(t),uu(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var Y=h.dgst;h=Y,i=Error(s(419)),i.stack="",i.digest=h,es({value:i,source:null,stack:null}),t=Oc(e,t,n)}else if(ln||hl(e,t,n,!1),h=(n&e.childLanes)!==0,ln||h){if(h=kt,h!==null&&(i=Ct(h,n),i!==0&&i!==k.retryLane))throw k.retryLane=i,Ii(e,i),Qn(h,e,i),Nc;cu(E)||Lr(),t=Oc(e,t,n)}else cu(E)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,zt=ma(E.nextSibling),Nn=t,ct=!0,di=null,ha=!1,e!==null&&Ff(t,e),t=kc(t,i.children),t.flags|=4096);return t}return o?(yi(),E=i.fallback,o=t.mode,k=e.child,Y=k.sibling,i=qa(k,{mode:"hidden",children:i.children}),i.subtreeFlags=k.subtreeFlags&65011712,Y!==null?E=qa(Y,E):(E=Hi(E,o,n,null),E.flags|=2),E.return=t,i.return=t,i.sibling=E,t.child=i,fs(null,i),i=t.child,E=e.child.memoizedState,E===null?E=Ac(n):(o=E.cachePool,o!==null?(k=nn._currentValue,o=o.parent!==k?{parent:k,pool:k}:o):o=Qf(),E={baseLanes:E.baseLanes|n,cachePool:o}),i.memoizedState=E,i.childLanes=Rc(e,h,n),t.memoizedState=xc,fs(e.child,i)):(bi(t),n=e.child,e=n.sibling,n=qa(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function kc(e,t){return t=Tr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Tr(e,t){return e=ea(22,e,null,t),e.lanes=0,e}function Oc(e,t,n){return Ki(t,e.child,null,n),e=kc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function up(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Fo(e.return,t,n)}function Cc(e,t,n,i,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function dp(e,t,n){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var h=Xt.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,B(Xt,h),xn(e,t,i,n),i=ct?Jl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&up(e,n,t);else if(e.tag===19)up(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&hr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Cc(t,!1,o,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&hr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Cc(t,!0,n,null,c,i);break;case"together":Cc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_i|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(hl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=qa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&lr(e)))}function kv(e,t,n){switch(t.tag){case 3:ye(t,t.stateNode.containerInfo),hi(t,nn,e.memoizedState.cache),qi();break;case 27:case 5:Ge(t);break;case 4:ye(t,t.stateNode.containerInfo);break;case 10:hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ac(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(bi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?cp(e,t,n):(bi(t),e=Ka(e,t,n),e!==null?e.sibling:null);bi(t);break;case 19:var o=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(hl(e,t,n,!1),i=(n&t.childLanes)!==0),o){if(i)return dp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Xt,Xt.current),i)break;return null;case 22:return t.lanes=0,ap(e,t,n,t.pendingProps);case 24:hi(t,nn,e.memoizedState.cache)}return Ka(e,t,n)}function fp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ln=!0;else{if(!Mc(e,n)&&(t.flags&128)===0)return ln=!1,kv(e,t,n);ln=(e.flags&131072)!==0}else ln=!1,ct&&(t.flags&1048576)!==0&&Yf(t,Jl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Fi(t.elementType),t.type=e,typeof e=="function")Uo(e)?(i=Xi(e,i),t.tag=1,t=rp(null,t,e,i,n)):(t.tag=0,t=Tc(null,t,e,i,n));else{if(e!=null){var o=e.$$typeof;if(o===Q){t.tag=11,t=ep(null,t,e,i,n);break e}else if(o===H){t.tag=14,t=tp(null,t,e,i,n);break e}}throw t=Se(e)||e,Error(s(306,t,""))}}return t;case 0:return Tc(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,o=Xi(i,t.pendingProps),rp(e,t,i,o,n);case 3:e:{if(ye(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,Wo(e,t),rs(t,i,null,n);var h=t.memoizedState;if(i=h.cache,hi(t,nn,i),i!==c.cache&&Po(t,[nn],n,!0),ss(),i=h.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=op(e,t,i,n);break e}else if(i!==o){o=ua(Error(s(424)),t),es(o),t=op(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(zt=ma(e.firstChild),Nn=t,ct=!0,di=null,ha=!0,n=ah(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qi(),i===o){t=Ka(e,t,n);break e}xn(e,t,i,n)}t=t.child}return t;case 26:return Nr(e,t),e===null?(n=wm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ct||(n=t.type,e=t.pendingProps,i=qr(ve.current).createElement(n),i[St]=t,i[Kt]=e,An(i,n,e),ge(i),t.stateNode=i):t.memoizedState=wm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ge(t),e===null&&ct&&(i=t.stateNode=Em(t.type,t.pendingProps,ve.current),Nn=t,ha=!0,o=zt,xi(t.type)?(du=o,zt=ma(i.firstChild)):zt=o),xn(e,t,t.pendingProps.children,n),Nr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ct&&((o=i=zt)&&(i=lE(i,t.type,t.pendingProps,ha),i!==null?(t.stateNode=i,Nn=t,zt=ma(i.firstChild),ha=!1,o=!0):o=!1),o||fi(t)),Ge(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,su(o,c)?i=null:h!==null&&su(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=lc(e,t,Ev,null,null,n),As._currentValue=o),Nr(e,t),xn(e,t,i,n),t.child;case 6:return e===null&&ct&&((e=n=zt)&&(n=sE(n,t.pendingProps,ha),n!==null?(t.stateNode=n,Nn=t,zt=null,e=!0):e=!1),e||fi(t)),null;case 13:return cp(e,t,n);case 4:return ye(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ki(t,null,i,n):xn(e,t,i,n),t.child;case 11:return ep(e,t,t.type,t.pendingProps,n);case 7:return xn(e,t,t.pendingProps,n),t.child;case 8:return xn(e,t,t.pendingProps.children,n),t.child;case 12:return xn(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,hi(t,t.type,i.value),xn(e,t,i.children,n),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,$i(t),o=Tn(o),i=i(o),t.flags|=1,xn(e,t,i,n),t.child;case 14:return tp(e,t,t.type,t.pendingProps,n);case 15:return np(e,t,t.type,t.pendingProps,n);case 19:return dp(e,t,n);case 31:return Rv(e,t,n);case 22:return ap(e,t,n,t.pendingProps);case 24:return $i(t),i=Tn(nn),e===null?(o=Xo(),o===null&&(o=kt,c=Ko(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:i,cache:o},Qo(t),hi(t,nn,o)):((e.lanes&n)!==0&&(Wo(e,t),rs(t,null,null,n),ss()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),hi(t,nn,i)):(i=c.cache,hi(t,nn,i),i!==o.cache&&Po(t,[nn],n,!0))),xn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Za(e){e.flags|=4}function Dc(e,t,n,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Ip())e.flags|=8192;else throw Pi=cr,Vo}else e.flags&=-16777217}function hp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Rm(t))if(Ip())e.flags|=8192;else throw Pi=cr,Vo}function xr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?je():536870912,e.lanes|=t,Tl|=t)}function hs(e,t){if(!ct)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function jt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Ov(e,t,n){var i=t.pendingProps;switch(qo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(t),null;case 1:return jt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ya(nn),Ne(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fl(t)?Za(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$o())),jt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Za(t),c!==null?(jt(t),hp(t,c)):(jt(t),Dc(t,o,null,i,n))):c?c!==e.memoizedState?(Za(t),jt(t),hp(t,c)):(jt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Za(t),jt(t),Dc(t,o,e,i,n)),null;case 27:if($e(t),n=ve.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return jt(t),null}e=se.current,fl(t)?Pf(t):(e=Em(o,i,n),t.stateNode=e,Za(t))}return jt(t),null;case 5:if($e(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return jt(t),null}if(c=se.current,fl(t))Pf(t);else{var h=qr(ve.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?h.createElement(o,{is:i.is}):h.createElement(o)}}c[St]=t,c[Kt]=i;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(An(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Za(t)}}return jt(t),Dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Za(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=ve.current,fl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,o=Nn,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[St]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||cm(e.nodeValue,n)),e||fi(t,!0)}else e=qr(e).createTextNode(i),e[St]=t,t.stateNode=e}return jt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=fl(t),n!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[St]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;jt(t),e=!1}else n=$o(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(na(t),t):(na(t),null);if((t.flags&128)!==0)throw Error(s(558))}return jt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[St]=t}else qi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;jt(t),o=!1}else o=$o(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(na(t),t):(na(t),null)}return na(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),xr(t,t.updateQueue),jt(t),null);case 4:return Ne(),e===null&&tu(t.stateNode.containerInfo),jt(t),null;case 10:return Ya(t.type),jt(t),null;case 19:if(z(Xt),i=t.memoizedState,i===null)return jt(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)hs(i,!1);else{if(Ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=hr(e),c!==null){for(t.flags|=128,hs(i,!1),e=c.updateQueue,t.updateQueue=e,xr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)qf(n,e),n=n.sibling;return B(Xt,Xt.current&1|2),ct&&Ga(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&lt()>Cr&&(t.flags|=128,o=!0,hs(i,!1),t.lanes=4194304)}else{if(!o)if(e=hr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,xr(t,e),hs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!ct)return jt(t),null}else 2*lt()-i.renderingStartTime>Cr&&n!==536870912&&(t.flags|=128,o=!0,hs(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=lt(),e.sibling=null,n=Xt.current,B(Xt,o?n&1|2:n&1),ct&&Ga(t,i.treeForkCount),e):(jt(t),null);case 22:case 23:return na(t),nc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(jt(t),t.subtreeFlags&6&&(t.flags|=8192)):jt(t),n=t.updateQueue,n!==null&&xr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&z(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ya(nn),jt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Cv(e,t){switch(qo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ya(nn),Ne(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $e(t),null;case 31:if(t.memoizedState!==null){if(na(t),t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(na(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(Xt),null;case 4:return Ne(),null;case 10:return Ya(t.type),null;case 22:case 23:return na(t),nc(),e!==null&&z(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ya(nn),null;case 25:return null;default:return null}}function pp(e,t){switch(qo(t),t.tag){case 3:Ya(nn),Ne();break;case 26:case 27:case 5:$e(t);break;case 4:Ne();break;case 31:t.memoizedState!==null&&na(t);break;case 13:na(t);break;case 19:z(Xt);break;case 10:Ya(t.type);break;case 22:case 23:na(t),nc(),e!==null&&z(Yi);break;case 24:Ya(nn)}}function ps(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&e)===e){i=void 0;var c=n.create,h=n.inst;i=c(),h.destroy=i}n=n.next}while(n!==o)}}catch(E){_t(t,t.return,E)}}function vi(e,t,n){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var h=i.inst,E=h.destroy;if(E!==void 0){h.destroy=void 0,o=t;var k=n,Y=E;try{Y()}catch(ae){_t(o,k,ae)}}}i=i.next}while(i!==c)}}catch(ae){_t(t,t.return,ae)}}function mp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{lh(t,n)}catch(i){_t(e,e.return,i)}}}function gp(e,t,n){n.props=Xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){_t(e,t,i)}}function ms(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(o){_t(e,t,o)}}function Oa(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(o){_t(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){_t(e,t,o)}else n.current=null}function bp(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(o){_t(e,e.return,o)}}function Lc(e,t,n){try{var i=e.stateNode;Jv(i,e.type,n,t),i[Kt]=t}catch(o){_t(e,e.return,o)}}function yp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xi(e.type)||e.tag===4}function zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&xi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jc(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ue));else if(i!==4&&(i===27&&xi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(jc(e,t,n),e=e.sibling;e!==null;)jc(e,t,n),e=e.sibling}function Ar(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&xi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ar(e,t,n),e=e.sibling;e!==null;)Ar(e,t,n),e=e.sibling}function vp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);An(t,i,n),t[St]=e,t[Kt]=n}catch(c){_t(e,e.return,c)}}var Xa=!1,sn=!1,Uc=!1,Ep=typeof WeakSet=="function"?WeakSet:Set,yn=null;function Mv(e,t){if(e=e.containerInfo,iu=Zr,e=Mf(e),Oo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,E=-1,k=-1,Y=0,ae=0,re=e,P=null;t:for(;;){for(var X;re!==n||o!==0&&re.nodeType!==3||(E=h+o),re!==c||i!==0&&re.nodeType!==3||(k=h+i),re.nodeType===3&&(h+=re.nodeValue.length),(X=re.firstChild)!==null;)P=re,re=X;for(;;){if(re===e)break t;if(P===n&&++Y===o&&(E=h),P===c&&++ae===i&&(k=h),(X=re.nextSibling)!==null)break;re=P,P=re.parentNode}re=X}n=E===-1||k===-1?null:{start:E,end:k}}else n=null}n=n||{start:0,end:0}}else n=null;for(lu={focusedElem:e,selectionRange:n},Zr=!1,yn=t;yn!==null;)if(t=yn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,yn=e;else for(;yn!==null;){switch(t=yn,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var ke=Xi(n.type,o);e=i.getSnapshotBeforeUpdate(ke,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(Ie){_t(n,n.return,Ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ou(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ou(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,yn=e;break}yn=t.return}}function _p(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Qa(e,n),i&4&&ps(5,n);break;case 1:if(Qa(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){_t(n,n.return,h)}else{var o=Xi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){_t(n,n.return,h)}}i&64&&mp(n),i&512&&ms(n,n.return);break;case 3:if(Qa(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{lh(e,t)}catch(h){_t(n,n.return,h)}}break;case 27:t===null&&i&4&&vp(n);case 26:case 5:Qa(e,n),t===null&&i&4&&bp(n),i&512&&ms(n,n.return);break;case 12:Qa(e,n);break;case 31:Qa(e,n),i&4&&Np(e,n);break;case 13:Qa(e,n),i&4&&Tp(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qv.bind(null,n),rE(e,n))));break;case 22:if(i=n.memoizedState!==null||Xa,!i){t=t!==null&&t.memoizedState!==null||sn,o=Xa;var c=sn;Xa=i,(sn=t)&&!c?Wa(e,n,(n.subtreeFlags&8772)!==0):Qa(e,n),Xa=o,sn=c}break;case 30:break;default:Qa(e,n)}}function Sp(e){var t=e.alternate;t!==null&&(e.alternate=null,Sp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ea(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Bt=null,Kn=!1;function Va(e,t,n){for(n=n.child;n!==null;)wp(e,t,n),n=n.sibling}function wp(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(zn,n)}catch{}switch(n.tag){case 26:sn||Oa(n,t),Va(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:sn||Oa(n,t);var i=Bt,o=Kn;xi(n.type)&&(Bt=n.stateNode,Kn=!1),Va(e,t,n),Ns(n.stateNode),Bt=i,Kn=o;break;case 5:sn||Oa(n,t);case 6:if(i=Bt,o=Kn,Bt=null,Va(e,t,n),Bt=i,Kn=o,Bt!==null)if(Kn)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(n.stateNode)}catch(c){_t(n,t,c)}else try{Bt.removeChild(n.stateNode)}catch(c){_t(n,t,c)}break;case 18:Bt!==null&&(Kn?(e=Bt,mm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Dl(e)):mm(Bt,n.stateNode));break;case 4:i=Bt,o=Kn,Bt=n.stateNode.containerInfo,Kn=!0,Va(e,t,n),Bt=i,Kn=o;break;case 0:case 11:case 14:case 15:vi(2,n,t),sn||vi(4,n,t),Va(e,t,n);break;case 1:sn||(Oa(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&gp(n,t,i)),Va(e,t,n);break;case 21:Va(e,t,n);break;case 22:sn=(i=sn)||n.memoizedState!==null,Va(e,t,n),sn=i;break;default:Va(e,t,n)}}function Np(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Dl(e)}catch(n){_t(t,t.return,n)}}}function Tp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dl(e)}catch(n){_t(t,t.return,n)}}function Dv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ep),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ep),t;default:throw Error(s(435,e.tag))}}function Rr(e,t){var n=Dv(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var o=Gv.bind(null,e,i);i.then(o,o)}})}function Zn(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i],c=e,h=t,E=h;e:for(;E!==null;){switch(E.tag){case 27:if(xi(E.type)){Bt=E.stateNode,Kn=!1;break e}break;case 5:Bt=E.stateNode,Kn=!1;break e;case 3:case 4:Bt=E.stateNode.containerInfo,Kn=!0;break e}E=E.return}if(Bt===null)throw Error(s(160));wp(c,h,o),Bt=null,Kn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xp(t,e),t=t.sibling}var Sa=null;function xp(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zn(t,e),Xn(e),i&4&&(vi(3,e,e.return),ps(3,e),vi(5,e,e.return));break;case 1:Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(n,n.return)),i&64&&Xa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var o=Sa;if(Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Wn]||c[St]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),An(c,i,n),c[St]=e,ge(c),i=c;break e;case"link":var h=xm("link","href",o).get(i+(n.href||""));if(h){for(var E=0;E<h.length;E++)if(c=h[E],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(E,1);break t}}c=o.createElement(i),An(c,i,n),o.head.appendChild(c);break;case"meta":if(h=xm("meta","content",o).get(i+(n.content||""))){for(E=0;E<h.length;E++)if(c=h[E],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(E,1);break t}}c=o.createElement(i),An(c,i,n),o.head.appendChild(c);break;default:throw Error(s(468,i))}c[St]=e,ge(c),i=c}e.stateNode=i}else Am(o,e.type,e.stateNode);else e.stateNode=Tm(o,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?Am(o,e.type,e.stateNode):Tm(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Lc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(n,n.return)),n!==null&&i&4&&Lc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Zn(t,e),Xn(e),i&512&&(sn||n===null||Oa(n,n.return)),e.flags&32){o=e.stateNode;try{W(o,"")}catch(ke){_t(e,e.return,ke)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Lc(e,o,n!==null?n.memoizedProps:o)),i&1024&&(Uc=!0);break;case 6:if(Zn(t,e),Xn(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(ke){_t(e,e.return,ke)}}break;case 3:if(Yr=null,o=Sa,Sa=Gr(t.containerInfo),Zn(t,e),Sa=o,Xn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Dl(t.containerInfo)}catch(ke){_t(e,e.return,ke)}Uc&&(Uc=!1,Ap(e));break;case 4:i=Sa,Sa=Gr(e.stateNode.containerInfo),Zn(t,e),Xn(e),Sa=i;break;case 12:Zn(t,e),Xn(e);break;case 31:Zn(t,e),Xn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rr(e,i)));break;case 13:Zn(t,e),Xn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Or=lt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rr(e,i)));break;case 22:o=e.memoizedState!==null;var k=n!==null&&n.memoizedState!==null,Y=Xa,ae=sn;if(Xa=Y||o,sn=ae||k,Zn(t,e),sn=ae,Xa=Y,Xn(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||k||Xa||sn||Vi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){k=n=t;try{if(c=k.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=k.stateNode;var re=k.memoizedProps.style,P=re!=null&&re.hasOwnProperty("display")?re.display:null;E.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(ke){_t(k,k.return,ke)}}}else if(t.tag===6){if(n===null){k=t;try{k.stateNode.nodeValue=o?"":k.memoizedProps}catch(ke){_t(k,k.return,ke)}}}else if(t.tag===18){if(n===null){k=t;try{var X=k.stateNode;o?gm(X,!0):gm(k.stateNode,!1)}catch(ke){_t(k,k.return,ke)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Rr(e,n))));break;case 19:Zn(t,e),Xn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Rr(e,i)));break;case 30:break;case 21:break;default:Zn(t,e),Xn(e)}}function Xn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(yp(i)){n=i;break}i=i.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,c=zc(e);Ar(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(W(h,""),n.flags&=-33);var E=zc(e);Ar(e,E,h);break;case 3:case 4:var k=n.stateNode.containerInfo,Y=zc(e);jc(e,Y,k);break;default:throw Error(s(161))}}catch(ae){_t(e,e.return,ae)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ap(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ap(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Qa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_p(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"&&gp(t,t.return,n),Vi(t);break;case 27:Ns(t.stateNode);case 26:case 5:Oa(t,t.return),Vi(t);break;case 22:t.memoizedState===null&&Vi(t);break;case 30:Vi(t);break;default:Vi(t)}e=e.sibling}}function Wa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Wa(o,c,n),ps(4,c);break;case 1:if(Wa(o,c,n),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(Y){_t(i,i.return,Y)}if(i=c,o=i.updateQueue,o!==null){var E=i.stateNode;try{var k=o.shared.hiddenCallbacks;if(k!==null)for(o.shared.hiddenCallbacks=null,o=0;o<k.length;o++)ih(k[o],E)}catch(Y){_t(i,i.return,Y)}}n&&h&64&&mp(c),ms(c,c.return);break;case 27:vp(c);case 26:case 5:Wa(o,c,n),n&&i===null&&h&4&&bp(c),ms(c,c.return);break;case 12:Wa(o,c,n);break;case 31:Wa(o,c,n),n&&h&4&&Np(o,c);break;case 13:Wa(o,c,n),n&&h&4&&Tp(o,c);break;case 22:c.memoizedState===null&&Wa(o,c,n),ms(c,c.return);break;case 30:break;default:Wa(o,c,n)}t=t.sibling}}function Bc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ts(n))}function Ic(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ts(e))}function wa(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Rp(e,t,n,i),t=t.sibling}function Rp(e,t,n,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:wa(e,t,n,i),o&2048&&ps(9,t);break;case 1:wa(e,t,n,i);break;case 3:wa(e,t,n,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ts(e)));break;case 12:if(o&2048){wa(e,t,n,i),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,E=c.onPostCommit;typeof E=="function"&&E(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(k){_t(t,t.return,k)}}else wa(e,t,n,i);break;case 31:wa(e,t,n,i);break;case 13:wa(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?wa(e,t,n,i):gs(e,t):c._visibility&2?wa(e,t,n,i):(c._visibility|=2,Sl(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Bc(h,t);break;case 24:wa(e,t,n,i),o&2048&&Ic(t.alternate,t);break;default:wa(e,t,n,i)}}function Sl(e,t,n,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,E=n,k=i,Y=h.flags;switch(h.tag){case 0:case 11:case 15:Sl(c,h,E,k,o),ps(8,h);break;case 23:break;case 22:var ae=h.stateNode;h.memoizedState!==null?ae._visibility&2?Sl(c,h,E,k,o):gs(c,h):(ae._visibility|=2,Sl(c,h,E,k,o)),o&&Y&2048&&Bc(h.alternate,h);break;case 24:Sl(c,h,E,k,o),o&&Y&2048&&Ic(h.alternate,h);break;default:Sl(c,h,E,k,o)}t=t.sibling}}function gs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,o=i.flags;switch(i.tag){case 22:gs(n,i),o&2048&&Bc(i.alternate,i);break;case 24:gs(n,i),o&2048&&Ic(i.alternate,i);break;default:gs(n,i)}t=t.sibling}}var bs=8192;function wl(e,t,n){if(e.subtreeFlags&bs)for(e=e.child;e!==null;)kp(e,t,n),e=e.sibling}function kp(e,t,n){switch(e.tag){case 26:wl(e,t,n),e.flags&bs&&e.memoizedState!==null&&vE(n,Sa,e.memoizedState,e.memoizedProps);break;case 5:wl(e,t,n);break;case 3:case 4:var i=Sa;Sa=Gr(e.stateNode.containerInfo),wl(e,t,n),Sa=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=bs,bs=16777216,wl(e,t,n),bs=i):wl(e,t,n));break;default:wl(e,t,n)}}function Op(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ys(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];yn=i,Mp(i,e)}Op(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cp(e),e=e.sibling}function Cp(e){switch(e.tag){case 0:case 11:case 15:ys(e),e.flags&2048&&vi(9,e,e.return);break;case 3:ys(e);break;case 12:ys(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,kr(e)):ys(e);break;default:ys(e)}}function kr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];yn=i,Mp(i,e)}Op(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vi(8,t,t.return),kr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,kr(t));break;default:kr(t)}e=e.sibling}}function Mp(e,t){for(;yn!==null;){var n=yn;switch(n.tag){case 0:case 11:case 15:vi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ts(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,yn=i;else e:for(n=e;yn!==null;){i=yn;var o=i.sibling,c=i.return;if(Sp(i),i===n){yn=null;break e}if(o!==null){o.return=c,yn=o;break e}yn=c}}}var Lv={getCacheForType:function(e){var t=Tn(nn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Tn(nn).controller.signal}},zv=typeof WeakMap=="function"?WeakMap:Map,gt=0,kt=null,tt=null,rt=0,Et=0,aa=null,Ei=!1,Nl=!1,Hc=!1,Ja=0,Ft=0,_i=0,Qi=0,qc=0,ia=0,Tl=0,vs=null,Vn=null,Gc=!1,Or=0,Dp=0,Cr=1/0,Mr=null,Si=null,dn=0,wi=null,xl=null,ei=0,$c=0,Yc=null,Lp=null,Es=0,Fc=null;function la(){return(gt&2)!==0&&rt!==0?rt&-rt:M.T!==null?Qc():Un()}function zp(){if(ia===0)if((rt&536870912)===0||ct){var e=gn;gn<<=1,(gn&3932160)===0&&(gn=262144),ia=e}else ia=536870912;return e=ta.current,e!==null&&(e.flags|=32),ia}function Qn(e,t,n){(e===kt&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(Al(e,0),Ni(e,rt,ia,!1)),st(e,n),((gt&2)===0||e!==kt)&&(e===kt&&((gt&2)===0&&(Qi|=n),Ft===4&&Ni(e,rt,ia,!1)),Ca(e))}function jp(e,t,n){if((gt&6)!==0)throw Error(s(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ne(e,t),o=i?Bv(e,t):Kc(e,t,!0),c=i;do{if(o===0){Nl&&!i&&Ni(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!jv(n)){o=Kc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var E=e;o=vs;var k=E.current.memoizedState.isDehydrated;if(k&&(Al(E,h).flags|=256),h=Kc(E,h,!1),h!==2){if(Hc&&!k){E.errorRecoveryDisabledLanes|=c,Qi|=c,o=4;break e}c=Vn,Vn=o,c!==null&&(Vn===null?Vn=c:Vn.push.apply(Vn,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){Al(e,0),Ni(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ni(i,t,ia,!Ei);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Or+300-lt(),10<o)){if(Ni(i,t,ia,!Ei),O(i,0,!0)!==0)break e;ei=t,i.timeoutHandle=hm(Up.bind(null,i,n,Vn,Mr,Gc,t,ia,Qi,Tl,Ei,c,"Throttled",-0,0),o);break e}Up(i,n,Vn,Mr,Gc,t,ia,Qi,Tl,Ei,c,null,-0,0)}}break}while(!0);Ca(e)}function Up(e,t,n,i,o,c,h,E,k,Y,ae,re,P,X){if(e.timeoutHandle=-1,re=t.subtreeFlags,re&8192||(re&16785408)===16785408){re={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ue},kp(t,c,re);var ke=(c&62914560)===c?Or-lt():(c&4194048)===c?Dp-lt():0;if(ke=EE(re,ke),ke!==null){ei=c,e.cancelPendingCommit=ke(Fp.bind(null,e,t,c,n,i,o,h,E,k,ae,re,null,P,X)),Ni(e,c,h,!Y);return}}Fp(e,t,c,n,i,o,h,E,k)}function jv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var o=n[i],c=o.getSnapshot;o=o.value;try{if(!Jn(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ni(e,t,n,i){t&=~qc,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-Rt(o),h=1<<c;i[c]=-1,o&=~h}n!==0&&_e(e,n,t)}function Dr(){return(gt&6)===0?(_s(0),!1):!0}function Pc(){if(tt!==null){if(Et===0)var e=tt.return;else e=tt,$a=Gi=null,oc(e),bl=null,as=0,e=tt;for(;e!==null;)pp(e.alternate,e),e=e.return;tt=null}}function Al(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,nE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ei=0,Pc(),kt=e,tt=n=qa(e.current,null),rt=t,Et=0,aa=null,Ei=!1,Nl=ne(e,t),Hc=!1,Tl=ia=qc=Qi=_i=Ft=0,Vn=vs=null,Gc=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Rt(i),c=1<<o;t|=e[o],i&=~c}return Ja=t,er(),n}function Bp(e,t){Ke=null,M.H=ds,t===gl||t===or?(t=eh(),Et=3):t===Vo?(t=eh(),Et=4):Et=t===Nc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,aa=t,tt===null&&(Ft=1,Sr(e,ua(t,e.current)))}function Ip(){var e=ta.current;return e===null?!0:(rt&4194048)===rt?pa===null:(rt&62914560)===rt||(rt&536870912)!==0?e===pa:!1}function Hp(){var e=M.H;return M.H=ds,e===null?ds:e}function qp(){var e=M.A;return M.A=Lv,e}function Lr(){Ft=4,Ei||(rt&4194048)!==rt&&ta.current!==null||(Nl=!0),(_i&134217727)===0&&(Qi&134217727)===0||kt===null||Ni(kt,rt,ia,!1)}function Kc(e,t,n){var i=gt;gt|=2;var o=Hp(),c=qp();(kt!==e||rt!==t)&&(Mr=null,Al(e,t)),t=!1;var h=Ft;e:do try{if(Et!==0&&tt!==null){var E=tt,k=aa;switch(Et){case 8:Pc(),h=6;break e;case 3:case 2:case 9:case 6:ta.current===null&&(t=!0);var Y=Et;if(Et=0,aa=null,Rl(e,E,k,Y),n&&Nl){h=0;break e}break;default:Y=Et,Et=0,aa=null,Rl(e,E,k,Y)}}Uv(),h=Ft;break}catch(ae){Bp(e,ae)}while(!0);return t&&e.shellSuspendCounter++,$a=Gi=null,gt=i,M.H=o,M.A=c,tt===null&&(kt=null,rt=0,er()),h}function Uv(){for(;tt!==null;)Gp(tt)}function Bv(e,t){var n=gt;gt|=2;var i=Hp(),o=qp();kt!==e||rt!==t?(Mr=null,Cr=lt()+500,Al(e,t)):Nl=ne(e,t);e:do try{if(Et!==0&&tt!==null){t=tt;var c=aa;t:switch(Et){case 1:Et=0,aa=null,Rl(e,t,c,1);break;case 2:case 9:if(Wf(c)){Et=0,aa=null,$p(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:Wf(c)?(Et=0,aa=null,$p(t)):(Et=0,aa=null,Rl(e,t,c,7));break;case 5:var h=null;switch(tt.tag){case 26:h=tt.memoizedState;case 5:case 27:var E=tt;if(h?Rm(h):E.stateNode.complete){Et=0,aa=null;var k=E.sibling;if(k!==null)tt=k;else{var Y=E.return;Y!==null?(tt=Y,zr(Y)):tt=null}break t}}Et=0,aa=null,Rl(e,t,c,5);break;case 6:Et=0,aa=null,Rl(e,t,c,6);break;case 8:Pc(),Ft=6;break e;default:throw Error(s(462))}}Iv();break}catch(ae){Bp(e,ae)}while(!0);return $a=Gi=null,M.H=i,M.A=o,gt=n,tt!==null?0:(kt=null,rt=0,er(),Ft)}function Iv(){for(;tt!==null&&!vt();)Gp(tt)}function Gp(e){var t=fp(e.alternate,e,Ja);e.memoizedProps=e.pendingProps,t===null?zr(e):tt=t}function $p(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=sp(n,t,t.pendingProps,t.type,void 0,rt);break;case 11:t=sp(n,t,t.pendingProps,t.type.render,t.ref,rt);break;case 5:oc(t);default:pp(n,t),t=tt=qf(t,Ja),t=fp(n,t,Ja)}e.memoizedProps=e.pendingProps,t===null?zr(e):tt=t}function Rl(e,t,n,i){$a=Gi=null,oc(t),bl=null,as=0;var o=t.return;try{if(Av(e,o,t,n,rt)){Ft=1,Sr(e,ua(n,e.current)),tt=null;return}}catch(c){if(o!==null)throw tt=o,c;Ft=1,Sr(e,ua(n,e.current)),tt=null;return}t.flags&32768?(ct||i===1?e=!0:Nl||(rt&536870912)!==0?e=!1:(Ei=e=!0,(i===2||i===9||i===3||i===6)&&(i=ta.current,i!==null&&i.tag===13&&(i.flags|=16384))),Yp(t,e)):zr(t)}function zr(e){var t=e;do{if((t.flags&32768)!==0){Yp(t,Ei);return}e=t.return;var n=Ov(t.alternate,t,Ja);if(n!==null){tt=n;return}if(t=t.sibling,t!==null){tt=t;return}tt=t=e}while(t!==null);Ft===0&&(Ft=5)}function Yp(e,t){do{var n=Cv(e.alternate,e);if(n!==null){n.flags&=32767,tt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){tt=e;return}tt=e=n}while(e!==null);Ft=6,tt=null}function Fp(e,t,n,i,o,c,h,E,k){e.cancelPendingCommit=null;do jr();while(dn!==0);if((gt&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=zo,Ae(e,n,c,h,E,k),e===kt&&(tt=kt=null,rt=0),xl=t,wi=e,ei=n,$c=c,Yc=o,Lp=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$v(hn,function(){return Vp(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=M.T,M.T=null,o=ee.p,ee.p=2,h=gt,gt|=4;try{Mv(e,t,n)}finally{gt=h,ee.p=o,M.T=i}}dn=1,Pp(),Kp(),Zp()}}function Pp(){if(dn===1){dn=0;var e=wi,t=xl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null;var i=ee.p;ee.p=2;var o=gt;gt|=4;try{xp(t,e);var c=lu,h=Mf(e.containerInfo),E=c.focusedElem,k=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&Cf(E.ownerDocument.documentElement,E)){if(k!==null&&Oo(E)){var Y=k.start,ae=k.end;if(ae===void 0&&(ae=Y),"selectionStart"in E)E.selectionStart=Y,E.selectionEnd=Math.min(ae,E.value.length);else{var re=E.ownerDocument||document,P=re&&re.defaultView||window;if(P.getSelection){var X=P.getSelection(),ke=E.textContent.length,Ie=Math.min(k.start,ke),Tt=k.end===void 0?Ie:Math.min(k.end,ke);!X.extend&&Ie>Tt&&(h=Tt,Tt=Ie,Ie=h);var U=Of(E,Ie),L=Of(E,Tt);if(U&&L&&(X.rangeCount!==1||X.anchorNode!==U.node||X.anchorOffset!==U.offset||X.focusNode!==L.node||X.focusOffset!==L.offset)){var $=re.createRange();$.setStart(U.node,U.offset),X.removeAllRanges(),Ie>Tt?(X.addRange($),X.extend(L.node,L.offset)):($.setEnd(L.node,L.offset),X.addRange($))}}}}for(re=[],X=E;X=X.parentNode;)X.nodeType===1&&re.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<re.length;E++){var le=re[E];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Zr=!!iu,lu=iu=null}finally{gt=o,ee.p=i,M.T=n}}e.current=t,dn=2}}function Kp(){if(dn===2){dn=0;var e=wi,t=xl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=M.T,M.T=null;var i=ee.p;ee.p=2;var o=gt;gt|=4;try{_p(e,t.alternate,t)}finally{gt=o,ee.p=i,M.T=n}}dn=3}}function Zp(){if(dn===4||dn===3){dn=0,Ln();var e=wi,t=xl,n=ei,i=Lp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dn=5:(dn=0,xl=wi=null,Xp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Si=null),jn(n),t=t.stateNode,It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot(zn,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=M.T,o=ee.p,ee.p=2,M.T=null;try{for(var c=e.onRecoverableError,h=0;h<i.length;h++){var E=i[h];c(E.value,{componentStack:E.stack})}}finally{M.T=t,ee.p=o}}(ei&3)!==0&&jr(),Ca(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Fc?Es++:(Es=0,Fc=e):Es=0,_s(0)}}function Xp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ts(t)))}function jr(){return Pp(),Kp(),Zp(),Vp()}function Vp(){if(dn!==5)return!1;var e=wi,t=$c;$c=0;var n=jn(ei),i=M.T,o=ee.p;try{ee.p=32>n?32:n,M.T=null,n=Yc,Yc=null;var c=wi,h=ei;if(dn=0,xl=wi=null,ei=0,(gt&6)!==0)throw Error(s(331));var E=gt;if(gt|=4,Cp(c.current),Rp(c,c.current,h,n),gt=E,_s(0,!1),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot(zn,c)}catch{}return!0}finally{ee.p=o,M.T=i,Xp(e,t)}}function Qp(e,t,n){t=ua(n,t),t=wc(e.stateNode,t,2),e=gi(e,t,2),e!==null&&(st(e,2),Ca(e))}function _t(e,t,n){if(e.tag===3)Qp(e,e,n);else for(;t!==null;){if(t.tag===3){Qp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Si===null||!Si.has(i))){e=ua(n,e),n=Wh(2),i=gi(t,n,2),i!==null&&(Jh(n,i,t,e),st(i,2),Ca(i));break}}t=t.return}}function Zc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new zv;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(n)||(Hc=!0,o.add(n),e=Hv.bind(null,e,t,n),t.then(e,e))}function Hv(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,kt===e&&(rt&n)===n&&(Ft===4||Ft===3&&(rt&62914560)===rt&&300>lt()-Or?(gt&2)===0&&Al(e,0):qc|=n,Tl===rt&&(Tl=0)),Ca(e)}function Wp(e,t){t===0&&(t=je()),e=Ii(e,t),e!==null&&(st(e,t),Ca(e))}function qv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wp(e,n)}function Gv(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),Wp(e,n)}function $v(e,t){return Wt(e,t)}var Ur=null,kl=null,Xc=!1,Br=!1,Vc=!1,Ti=0;function Ca(e){e!==kl&&e.next===null&&(kl===null?Ur=kl=e:kl=kl.next=e),Br=!0,Xc||(Xc=!0,Fv())}function _s(e,t){if(!Vc&&Br){Vc=!0;do for(var n=!1,i=Ur;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var h=i.suspendedLanes,E=i.pingedLanes;c=(1<<31-Rt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,nm(i,c))}else c=rt,c=O(i,i===kt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||ne(i,c)||(n=!0,nm(i,c));i=i.next}while(n);Vc=!1}}function Yv(){Jp()}function Jp(){Br=Xc=!1;var e=0;Ti!==0&&tE()&&(e=Ti);for(var t=lt(),n=null,i=Ur;i!==null;){var o=i.next,c=em(i,t);c===0?(i.next=null,n===null?Ur=o:n.next=o,o===null&&(kl=n)):(n=i,(e!==0||(c&3)!==0)&&(Br=!0)),i=o}dn!==0&&dn!==5||_s(e),Ti!==0&&(Ti=0)}function em(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Rt(c),E=1<<h,k=o[h];k===-1?((E&n)===0||(E&i)!==0)&&(o[h]=be(E,t)):k<=t&&(e.expiredLanes|=E),c&=~E}if(t=kt,n=rt,n=O(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Et===2||Et===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Lt(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ne(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Lt(i),jn(n)){case 2:case 8:n=_n;break;case 32:n=hn;break;case 268435456:n=Sn;break;default:n=hn}return i=tm.bind(null,e),n=Wt(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Lt(i),e.callbackPriority=2,e.callbackNode=null,2}function tm(e,t){if(dn!==0&&dn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(jr()&&e.callbackNode!==n)return null;var i=rt;return i=O(e,e===kt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(jp(e,i,t),em(e,lt()),e.callbackNode!=null&&e.callbackNode===n?tm.bind(null,e):null)}function nm(e,t){if(jr())return null;jp(e,t,!0)}function Fv(){aE(function(){(gt&6)!==0?Wt(At,Yv):Jp()})}function Qc(){if(Ti===0){var e=pl;e===0&&(e=He,He<<=1,(He&261888)===0&&(He=256)),Ti=e}return Ti}function am(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:et(""+e)}function im(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 Pv(e,t,n,i,o){if(t==="submit"&&n&&n.stateNode===o){var c=am((o[Kt]||null).action),h=i.submitter;h&&(t=(t=h[Kt]||null)?am(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var E=new Vs("action","action",null,i,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ti!==0){var k=h?im(o,h):new FormData(o);bc(n,{pending:!0,data:k,method:o.method,action:c},null,k)}}else typeof c=="function"&&(E.preventDefault(),k=h?im(o,h):new FormData(o),bc(n,{pending:!0,data:k,method:o.method,action:c},c,k))},currentTarget:o}]})}}for(var Wc=0;Wc<Lo.length;Wc++){var Jc=Lo[Wc],Kv=Jc.toLowerCase(),Zv=Jc[0].toUpperCase()+Jc.slice(1);_a(Kv,"on"+Zv)}_a(zf,"onAnimationEnd"),_a(jf,"onAnimationIteration"),_a(Uf,"onAnimationStart"),_a("dblclick","onDoubleClick"),_a("focusin","onFocus"),_a("focusout","onBlur"),_a(uv,"onTransitionRun"),_a(dv,"onTransitionStart"),_a(fv,"onTransitionCancel"),_a(Bf,"onTransitionEnd"),oe("onMouseEnter",["mouseout","mouseover"]),oe("onMouseLeave",["mouseout","mouseover"]),oe("onPointerEnter",["pointerout","pointerover"]),oe("onPointerLeave",["pointerout","pointerover"]),un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),un("onBeforeInput",["compositionend","keypress","textInput","paste"]),un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ss="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ss));function lm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var h=i.length-1;0<=h;h--){var E=i[h],k=E.instance,Y=E.currentTarget;if(E=E.listener,k!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(ae){Js(ae)}o.currentTarget=null,c=k}else for(h=0;h<i.length;h++){if(E=i[h],k=E.instance,Y=E.currentTarget,E=E.listener,k!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(ae){Js(ae)}o.currentTarget=null,c=k}}}}function nt(e,t){var n=t[Yn];n===void 0&&(n=t[Yn]=new Set);var i=e+"__bubble";n.has(i)||(sm(t,e,2,!1),n.add(i))}function eu(e,t,n){var i=0;t&&(i|=4),sm(n,e,i,t)}var Ir="_reactListening"+Math.random().toString(36).slice(2);function tu(e){if(!e[Ir]){e[Ir]=!0,Te.forEach(function(n){n!=="selectionchange"&&(Xv.has(n)||eu(n,!1,e),eu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ir]||(t[Ir]=!0,eu("selectionchange",!1,t))}}function sm(e,t,n,i){switch(zm(t)){case 2:var o=wE;break;case 8:o=NE;break;default:o=gu}n=o.bind(null,t,n,e),o=void 0,!_o||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function nu(e,t,n,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var E=i.stateNode.containerInfo;if(E===o)break;if(h===4)for(h=i.return;h!==null;){var k=h.tag;if((k===3||k===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=Jt(E),h===null)return;if(k=h.tag,k===5||k===6||k===26||k===27){i=c=h;continue e}E=E.parentNode}}i=i.return}Ps(function(){var Y=c,ae=De(n),re=[];e:{var P=If.get(e);if(P!==void 0){var X=Vs,ke=e;switch(e){case"keypress":if(Zs(n)===0)break e;case"keydown":case"keyup":X=Gy;break;case"focusin":ke="focus",X=To;break;case"focusout":ke="blur",X=To;break;case"beforeblur":case"afterblur":X=To;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=pf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=Oy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Fy;break;case zf:case jf:case Uf:X=Dy;break;case Bf:X=Ky;break;case"scroll":case"scrollend":X=Ry;break;case"wheel":X=Xy;break;case"copy":case"cut":case"paste":X=zy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=gf;break;case"toggle":case"beforetoggle":X=Qy}var Ie=(t&4)!==0,Tt=!Ie&&(e==="scroll"||e==="scrollend"),U=Ie?P!==null?P+"Capture":null:P;Ie=[];for(var L=Y,$;L!==null;){var le=L;if($=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||$===null||U===null||(le=Yl(L,U),le!=null&&Ie.push(ws(L,le,$))),Tt)break;L=L.return}0<Ie.length&&(P=new X(P,ke,null,n,ae),re.push({event:P,listeners:Ie}))}}if((t&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",P&&n!==Ee&&(ke=n.relatedTarget||n.fromElement)&&(Jt(ke)||ke[ut]))break e;if((X||P)&&(P=ae.window===ae?ae:(P=ae.ownerDocument)?P.defaultView||P.parentWindow:window,X?(ke=n.relatedTarget||n.toElement,X=Y,ke=ke?Jt(ke):null,ke!==null&&(Tt=f(ke),Ie=ke.tag,ke!==Tt||Ie!==5&&Ie!==27&&Ie!==6)&&(ke=null)):(X=null,ke=Y),X!==ke)){if(Ie=pf,le="onMouseLeave",U="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Ie=gf,le="onPointerLeave",U="onPointerEnter",L="pointer"),Tt=X==null?P:G(X),$=ke==null?P:G(ke),P=new Ie(le,L+"leave",X,n,ae),P.target=Tt,P.relatedTarget=$,le=null,Jt(ae)===Y&&(Ie=new Ie(U,L+"enter",ke,n,ae),Ie.target=$,Ie.relatedTarget=Tt,le=Ie),Tt=le,X&&ke)t:{for(Ie=Vv,U=X,L=ke,$=0,le=U;le;le=Ie(le))$++;le=0;for(var ze=L;ze;ze=Ie(ze))le++;for(;0<$-le;)U=Ie(U),$--;for(;0<le-$;)L=Ie(L),le--;for(;$--;){if(U===L||L!==null&&U===L.alternate){Ie=U;break t}U=Ie(U),L=Ie(L)}Ie=null}else Ie=null;X!==null&&rm(re,P,X,Ie,!1),ke!==null&&Tt!==null&&rm(re,Tt,ke,Ie,!0)}}e:{if(P=Y?G(Y):window,X=P.nodeName&&P.nodeName.toLowerCase(),X==="select"||X==="input"&&P.type==="file")var ht=Nf;else if(Sf(P))if(Tf)ht=rv;else{ht=lv;var Ce=iv}else X=P.nodeName,!X||X.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?Y&&xe(Y.elementType)&&(ht=Nf):ht=sv;if(ht&&(ht=ht(e,Y))){wf(re,ht,n,ae);break e}Ce&&Ce(e,P,Y),e==="focusout"&&Y&&P.type==="number"&&Y.memoizedProps.value!=null&&oi(P,"number",P.value)}switch(Ce=Y?G(Y):window,e){case"focusin":(Sf(Ce)||Ce.contentEditable==="true")&&(sl=Ce,Co=Y,Wl=null);break;case"focusout":Wl=Co=sl=null;break;case"mousedown":Mo=!0;break;case"contextmenu":case"mouseup":case"dragend":Mo=!1,Df(re,n,ae);break;case"selectionchange":if(cv)break;case"keydown":case"keyup":Df(re,n,ae)}var Xe;if(Ao)e:{switch(e){case"compositionstart":var ot="onCompositionStart";break e;case"compositionend":ot="onCompositionEnd";break e;case"compositionupdate":ot="onCompositionUpdate";break e}ot=void 0}else ll?Ef(e,n)&&(ot="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ot="onCompositionStart");ot&&(bf&&n.locale!=="ko"&&(ll||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&ll&&(Xe=ff()):(ci=ae,So="value"in ci?ci.value:ci.textContent,ll=!0)),Ce=Hr(Y,ot),0<Ce.length&&(ot=new mf(ot,e,null,n,ae),re.push({event:ot,listeners:Ce}),Xe?ot.data=Xe:(Xe=_f(n),Xe!==null&&(ot.data=Xe)))),(Xe=Jy?ev(e,n):tv(e,n))&&(ot=Hr(Y,"onBeforeInput"),0<ot.length&&(Ce=new mf("onBeforeInput","beforeinput",null,n,ae),re.push({event:Ce,listeners:ot}),Ce.data=Xe)),Pv(re,e,Y,n,ae)}lm(re,t)})}function ws(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(e,t){for(var n=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Yl(e,n),o!=null&&i.unshift(ws(e,o,c)),o=Yl(e,t),o!=null&&i.push(ws(e,o,c))),e.tag===3)return i;e=e.return}return[]}function Vv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rm(e,t,n,i,o){for(var c=t._reactName,h=[];n!==null&&n!==i;){var E=n,k=E.alternate,Y=E.stateNode;if(E=E.tag,k!==null&&k===i)break;E!==5&&E!==26&&E!==27||Y===null||(k=Y,o?(Y=Yl(n,c),Y!=null&&h.unshift(ws(n,Y,k))):o||(Y=Yl(n,c),Y!=null&&h.push(ws(n,Y,k)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Qv=/\r\n?/g,Wv=/\u0000|\uFFFD/g;function om(e){return(typeof e=="string"?e:""+e).replace(Qv,`
49
+ `).replace(Wv,"")}function cm(e,t){return t=om(t),om(e)===t}function Nt(e,t,n,i,o,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||W(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&W(e,""+i);break;case"className":bn(e,"class",i);break;case"tabIndex":bn(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":bn(e,n,i);break;case"style":te(e,i,c);break;case"data":if(t!=="object"){bn(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=et(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Nt(e,t,"name",o.name,o,null),Nt(e,t,"formEncType",o.formEncType,o,null),Nt(e,t,"formMethod",o.formMethod,o,null),Nt(e,t,"formTarget",o.formTarget,o,null)):(Nt(e,t,"encType",o.encType,o,null),Nt(e,t,"method",o.method,o,null),Nt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=et(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=ue);break;case"onScroll":i!=null&&nt("scroll",e);break;case"onScrollEnd":i!=null&&nt("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=et(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":nt("beforetoggle",e),nt("toggle",e),en(e,"popover",i);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":en(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Oe.get(n)||n,en(e,n,i))}}function au(e,t,n,i,o,c){switch(n){case"style":te(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof i=="string"?W(e,i):(typeof i=="number"||typeof i=="bigint")&&W(e,""+i);break;case"onScroll":i!=null&&nt("scroll",e);break;case"onScrollEnd":i!=null&&nt("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ue);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ye.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[Kt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,o);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):en(e,n,i)}}}function An(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nt("error",e),nt("load",e);var i=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Nt(e,t,c,h,n,null)}}o&&Nt(e,t,"srcSet",n.srcSet,n,null),i&&Nt(e,t,"src",n.src,n,null);return;case"input":nt("invalid",e);var E=c=h=o=null,k=null,Y=null;for(i in n)if(n.hasOwnProperty(i)){var ae=n[i];if(ae!=null)switch(i){case"name":o=ae;break;case"type":h=ae;break;case"checked":k=ae;break;case"defaultChecked":Y=ae;break;case"value":c=ae;break;case"defaultValue":E=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(s(137,t));break;default:Nt(e,t,i,ae,n,null)}}Ba(e,c,E,k,Y,h,o,!1);return;case"select":nt("invalid",e),i=h=c=null;for(o in n)if(n.hasOwnProperty(o)&&(E=n[o],E!=null))switch(o){case"value":c=E;break;case"defaultValue":h=E;break;case"multiple":i=E;default:Nt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!i,t!=null?tn(e,!!i,t,!1):n!=null&&tn(e,!!i,n,!0);return;case"textarea":nt("invalid",e),c=o=i=null;for(h in n)if(n.hasOwnProperty(h)&&(E=n[h],E!=null))switch(h){case"value":i=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:Nt(e,t,h,E,n,null)}Aa(e,i,o,c);return;case"option":for(k in n)if(n.hasOwnProperty(k)&&(i=n[k],i!=null))switch(k){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Nt(e,t,k,i,n,null)}return;case"dialog":nt("beforetoggle",e),nt("toggle",e),nt("cancel",e),nt("close",e);break;case"iframe":case"object":nt("load",e);break;case"video":case"audio":for(i=0;i<Ss.length;i++)nt(Ss[i],e);break;case"image":nt("error",e),nt("load",e);break;case"details":nt("toggle",e);break;case"embed":case"source":case"link":nt("error",e),nt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Y in n)if(n.hasOwnProperty(Y)&&(i=n[Y],i!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Nt(e,t,Y,i,n,null)}return;default:if(xe(t)){for(ae in n)n.hasOwnProperty(ae)&&(i=n[ae],i!==void 0&&au(e,t,ae,i,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(i=n[E],i!=null&&Nt(e,t,E,i,n,null))}function Jv(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,E=null,k=null,Y=null,ae=null;for(X in n){var re=n[X];if(n.hasOwnProperty(X)&&re!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":k=re;default:i.hasOwnProperty(X)||Nt(e,t,X,null,i,re)}}for(var P in i){var X=i[P];if(re=n[P],i.hasOwnProperty(P)&&(X!=null||re!=null))switch(P){case"type":c=X;break;case"name":o=X;break;case"checked":Y=X;break;case"defaultChecked":ae=X;break;case"value":h=X;break;case"defaultValue":E=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,t));break;default:X!==re&&Nt(e,t,P,X,i,re)}}ri(e,h,E,k,Y,ae,c,o);return;case"select":X=h=E=P=null;for(c in n)if(k=n[c],n.hasOwnProperty(c)&&k!=null)switch(c){case"value":break;case"multiple":X=k;default:i.hasOwnProperty(c)||Nt(e,t,c,null,i,k)}for(o in i)if(c=i[o],k=n[o],i.hasOwnProperty(o)&&(c!=null||k!=null))switch(o){case"value":P=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==k&&Nt(e,t,o,c,i,k)}t=E,n=h,i=X,P!=null?tn(e,!!n,P,!1):!!i!=!!n&&(t!=null?tn(e,!!n,t,!0):tn(e,!!n,n?[]:"",!1));return;case"textarea":X=P=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!i.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Nt(e,t,E,null,i,o)}for(h in i)if(o=i[h],c=n[h],i.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":P=o;break;case"defaultValue":X=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&Nt(e,t,h,o,i,c)}Ia(e,P,X);return;case"option":for(var ke in n)if(P=n[ke],n.hasOwnProperty(ke)&&P!=null&&!i.hasOwnProperty(ke))switch(ke){case"selected":e.selected=!1;break;default:Nt(e,t,ke,null,i,P)}for(k in i)if(P=i[k],X=n[k],i.hasOwnProperty(k)&&P!==X&&(P!=null||X!=null))switch(k){case"selected":e.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:Nt(e,t,k,P,i,X)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ie in n)P=n[Ie],n.hasOwnProperty(Ie)&&P!=null&&!i.hasOwnProperty(Ie)&&Nt(e,t,Ie,null,i,P);for(Y in i)if(P=i[Y],X=n[Y],i.hasOwnProperty(Y)&&P!==X&&(P!=null||X!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,t));break;default:Nt(e,t,Y,P,i,X)}return;default:if(xe(t)){for(var Tt in n)P=n[Tt],n.hasOwnProperty(Tt)&&P!==void 0&&!i.hasOwnProperty(Tt)&&au(e,t,Tt,void 0,i,P);for(ae in i)P=i[ae],X=n[ae],!i.hasOwnProperty(ae)||P===X||P===void 0&&X===void 0||au(e,t,ae,P,i,X);return}}for(var U in n)P=n[U],n.hasOwnProperty(U)&&P!=null&&!i.hasOwnProperty(U)&&Nt(e,t,U,null,i,P);for(re in i)P=i[re],X=n[re],!i.hasOwnProperty(re)||P===X||P==null&&X==null||Nt(e,t,re,P,i,X)}function um(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function eE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var o=n[i],c=o.transferSize,h=o.initiatorType,E=o.duration;if(c&&E&&um(h)){for(h=0,E=o.responseEnd,i+=1;i<n.length;i++){var k=n[i],Y=k.startTime;if(Y>E)break;var ae=k.transferSize,re=k.initiatorType;ae&&um(re)&&(k=k.responseEnd,h+=ae*(k<E?1:(E-Y)/(k-Y)))}if(--i,t+=8*(c+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var iu=null,lu=null;function qr(e){return e.nodeType===9?e:e.ownerDocument}function dm(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 fm(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 su(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 ru=null;function tE(){var e=window.event;return e&&e.type==="popstate"?e===ru?!1:(ru=e,!0):(ru=null,!1)}var hm=typeof setTimeout=="function"?setTimeout:void 0,nE=typeof clearTimeout=="function"?clearTimeout:void 0,pm=typeof Promise=="function"?Promise:void 0,aE=typeof queueMicrotask=="function"?queueMicrotask:typeof pm<"u"?function(e){return pm.resolve(null).then(e).catch(iE)}:hm;function iE(e){setTimeout(function(){throw e})}function xi(e){return e==="head"}function mm(e,t){var n=t,i=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(o),Dl(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ns(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ns(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[Wn]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&Ns(e.ownerDocument.body);n=o}while(n);Dl(t)}function gm(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function ou(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":ou(n),Ea(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function lE(e,t,n,i){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Wn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ma(e.nextSibling),e===null)break}return null}function sE(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 bm(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 cu(e){return e.data==="$?"||e.data==="$~"}function uu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function rE(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function ma(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var du=null;function ym(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 vm(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 Em(e,t,n){switch(t=qr(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Ns(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ea(e)}var ga=new Map,_m=new Set;function Gr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ti=ee.d;ee.d={f:oE,r:cE,D:uE,C:dE,L:fE,m:hE,X:mE,S:pE,M:gE};function oE(){var e=ti.f(),t=Dr();return e||t}function cE(e){var t=Fn(e);t!==null&&t.tag===5&&t.type==="form"?Bh(t):ti.r(e)}var Ol=typeof document>"u"?null:document;function Sm(e,t,n){var i=Ol;if(i&&typeof t=="string"&&t){var o=On(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),_m.has(o)||(_m.add(o),e={rel:e,crossOrigin:n,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),An(t,"link",e),ge(t),i.head.appendChild(t)))}}function uE(e){ti.D(e),Sm("dns-prefetch",e,null)}function dE(e,t){ti.C(e,t),Sm("preconnect",e,t)}function fE(e,t,n){ti.L(e,t,n);var i=Ol;if(i&&e&&t){var o='link[rel="preload"][as="'+On(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+On(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+On(n.imageSizes)+'"]')):o+='[href="'+On(e)+'"]';var c=o;switch(t){case"style":c=Cl(e);break;case"script":c=Ml(e)}ga.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ga.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Ts(c))||t==="script"&&i.querySelector(xs(c))||(t=i.createElement("link"),An(t,"link",e),ge(t),i.head.appendChild(t)))}}function hE(e,t){ti.m(e,t);var n=Ol;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+On(i)+'"][href="'+On(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ml(e)}if(!ga.has(c)&&(e=v({rel:"modulepreload",href:e},t),ga.set(c,e),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(xs(c)))return}i=n.createElement("link"),An(i,"link",e),ge(i),n.head.appendChild(i)}}}function pE(e,t,n){ti.S(e,t,n);var i=Ol;if(i&&e){var o=de(i).hoistableStyles,c=Cl(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=i.querySelector(Ts(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ga.get(c))&&fu(e,n);var k=h=i.createElement("link");ge(k),An(k,"link",e),k._p=new Promise(function(Y,ae){k.onload=Y,k.onerror=ae}),k.addEventListener("load",function(){E.loading|=1}),k.addEventListener("error",function(){E.loading|=2}),E.loading|=4,$r(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function mE(e,t){ti.X(e,t);var n=Ol;if(n&&e){var i=de(n).hoistableScripts,o=Ml(e),c=i.get(o);c||(c=n.querySelector(xs(o)),c||(e=v({src:e,async:!0},t),(t=ga.get(o))&&hu(e,t),c=n.createElement("script"),ge(c),An(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function gE(e,t){ti.M(e,t);var n=Ol;if(n&&e){var i=de(n).hoistableScripts,o=Ml(e),c=i.get(o);c||(c=n.querySelector(xs(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ga.get(o))&&hu(e,t),c=n.createElement("script"),ge(c),An(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function wm(e,t,n,i){var o=(o=ve.current)?Gr(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Cl(n.href),n=de(o).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Cl(n.href);var c=de(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(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||bE(o,e,n,h.state))),t&&i===null)throw Error(s(528,""));return h}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ml(n),n=de(o).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Cl(e){return'href="'+On(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function Nm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function bE(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),An(t,"link",n),ge(t),e.head.appendChild(t))}function Ml(e){return'[src="'+On(e)+'"]'}function xs(e){return"script[async]"+e}function Tm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+On(n.href)+'"]');if(i)return t.instance=i,ge(i),i;var o=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ge(i),An(i,"style",o),$r(i,n.precedence,e),t.instance=i;case"stylesheet":o=Cl(n.href);var c=e.querySelector(Ts(o));if(c)return t.state.loading|=4,t.instance=c,ge(c),c;i=Nm(n),(o=ga.get(o))&&fu(i,o),c=(e.ownerDocument||e).createElement("link"),ge(c);var h=c;return h._p=new Promise(function(E,k){h.onload=E,h.onerror=k}),An(c,"link",i),t.state.loading|=4,$r(c,n.precedence,e),t.instance=c;case"script":return c=Ml(n.src),(o=e.querySelector(xs(c)))?(t.instance=o,ge(o),o):(i=n,(o=ga.get(c))&&(i=v({},n),hu(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),ge(o),An(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,$r(i,n.precedence,e));return t.instance}function $r(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,h=0;h<i.length;h++){var E=i[h];if(E.dataset.precedence===t)c=E;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function fu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function hu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yr=null;function xm(e,t,n){if(Yr===null){var i=new Map,o=Yr=new Map;o.set(n,i)}else o=Yr,i=o.get(n),i||(i=new Map,o.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[Wn]||c[St]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var E=i.get(h);E?E.push(c):i.set(h,[c])}}return i}function Am(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function yE(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 Rm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function vE(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Cl(i.href),c=t.querySelector(Ts(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Fr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ge(c);return}c=t.ownerDocument||t,i=Nm(i),(o=ga.get(o))&&fu(i,o),c=c.createElement("link"),ge(c);var h=c;h._p=new Promise(function(E,k){h.onload=E,h.onerror=k}),An(c,"link",i),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Fr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var pu=0;function EE(e,t){return e.stylesheets&&e.count===0&&Kr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&pu===0&&(pu=62500*eE());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>pu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Fr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Pr=null;function Kr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Pr=new Map,t.forEach(_E,e),Pr=null,Fr.call(e))}function _E(e,t){if(!(t.state.loading&4)){var n=Pr.get(e);if(n)var i=n.get(null);else{n=new Map,Pr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),i=h)}i&&n.set(null,i)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||i,c===i&&n.set(null,o),n.set(h,o),this.count++,i=Fr.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var As={$$typeof:A,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function SE(e,t,n,i,o,c,h,E,k){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qe(0),this.hiddenUpdates=Qe(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function km(e,t,n,i,o,c,h,E,k,Y,ae,re){return e=new SE(e,t,n,h,k,Y,ae,re,E),t=1,c===!0&&(t|=24),c=ea(3,null,null,t),e.current=c,c.stateNode=e,t=Ko(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Qo(c),e}function Om(e){return e?(e=cl,e):cl}function Cm(e,t,n,i,o,c){o=Om(o),i.context===null?i.context=o:i.pendingContext=o,i=mi(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=gi(e,i,t),n!==null&&(Qn(n,e,t),ls(n,e,t))}function Mm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mu(e,t){Mm(e,t),(e=e.alternate)&&Mm(e,t)}function Dm(e){if(e.tag===13||e.tag===31){var t=Ii(e,67108864);t!==null&&Qn(t,e,67108864),mu(e,67108864)}}function Lm(e){if(e.tag===13||e.tag===31){var t=la();t=bt(t);var n=Ii(e,t);n!==null&&Qn(n,e,t),mu(e,t)}}var Zr=!0;function wE(e,t,n,i){var o=M.T;M.T=null;var c=ee.p;try{ee.p=2,gu(e,t,n,i)}finally{ee.p=c,M.T=o}}function NE(e,t,n,i){var o=M.T;M.T=null;var c=ee.p;try{ee.p=8,gu(e,t,n,i)}finally{ee.p=c,M.T=o}}function gu(e,t,n,i){if(Zr){var o=bu(i);if(o===null)nu(e,t,i,Xr,n),jm(e,i);else if(xE(o,e,t,n,i))i.stopPropagation();else if(jm(e,i),t&4&&-1<TE.indexOf(e)){for(;o!==null;){var c=Fn(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=$t(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var k=1<<31-Rt(h);E.entanglements[1]|=k,h&=~k}Ca(c),(gt&6)===0&&(Cr=lt()+500,_s(0))}}break;case 31:case 13:E=Ii(c,2),E!==null&&Qn(E,c,2),Dr(),mu(c,2)}if(c=bu(i),c===null&&nu(e,t,i,Xr,n),c===o)break;o=c}o!==null&&i.stopPropagation()}else nu(e,t,i,null,n)}}function bu(e){return e=De(e),yu(e)}var Xr=null;function yu(e){if(Xr=null,e=Jt(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Xr=e,null}function zm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mt()){case At:return 2;case _n:return 8;case hn:case qn:return 32;case Sn:return 268435456;default:return 32}default:return 32}}var vu=!1,Ai=null,Ri=null,ki=null,Rs=new Map,ks=new Map,Oi=[],TE="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 jm(e,t){switch(e){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":Ri=null;break;case"mouseover":case"mouseout":ki=null;break;case"pointerover":case"pointerout":Rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ks.delete(t.pointerId)}}function Os(e,t,n,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Fn(t),t!==null&&Dm(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function xE(e,t,n,i,o){switch(t){case"focusin":return Ai=Os(Ai,e,t,n,i,o),!0;case"dragenter":return Ri=Os(Ri,e,t,n,i,o),!0;case"mouseover":return ki=Os(ki,e,t,n,i,o),!0;case"pointerover":var c=o.pointerId;return Rs.set(c,Os(Rs.get(c)||null,e,t,n,i,o)),!0;case"gotpointercapture":return c=o.pointerId,ks.set(c,Os(ks.get(c)||null,e,t,n,i,o)),!0}return!1}function Um(e){var t=Jt(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,ba(e.priority,function(){Lm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,ba(e.priority,function(){Lm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bu(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Ee=i,n.target.dispatchEvent(i),Ee=null}else return t=Fn(n),t!==null&&Dm(t),e.blockedOn=n,!1;t.shift()}return!0}function Bm(e,t,n){Vr(e)&&n.delete(t)}function AE(){vu=!1,Ai!==null&&Vr(Ai)&&(Ai=null),Ri!==null&&Vr(Ri)&&(Ri=null),ki!==null&&Vr(ki)&&(ki=null),Rs.forEach(Bm),ks.forEach(Bm)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,vu||(vu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,AE)))}var Wr=null;function Im(e){Wr!==e&&(Wr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Wr===e&&(Wr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(yu(i||n)===null)continue;break}var c=Fn(n);c!==null&&(e.splice(t,3),t-=3,bc(c,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function Dl(e){function t(k){return Qr(k,e)}Ai!==null&&Qr(Ai,e),Ri!==null&&Qr(Ri,e),ki!==null&&Qr(ki,e),Rs.forEach(t),ks.forEach(t);for(var n=0;n<Oi.length;n++){var i=Oi[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Oi.length&&(n=Oi[0],n.blockedOn===null);)Um(n),n.blockedOn===null&&Oi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var o=n[i],c=n[i+1],h=o[Kt]||null;if(typeof c=="function")h||Im(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[Kt]||null)E=h.formAction;else if(yu(o)!==null)continue}else E=h.action;typeof E=="function"?n[i+1]=E:(n.splice(i,3),i-=3),Im(n)}}}function Hm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Eu(e){this._internalRoot=e}Jr.prototype.render=Eu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,i=la();Cm(n,i,e,t,null,null)},Jr.prototype.unmount=Eu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cm(e.current,2,null,e,null,null),Dr(),t[ut]=null}};function Jr(e){this._internalRoot=e}Jr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Un();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Oi.length&&t!==0&&t<Oi[n].priority;n++);Oi.splice(n,0,e),n===0&&Um(e)}};var qm=a.version;if(qm!=="19.2.8")throw Error(s(527,qm,"19.2.8"));ee.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var RE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eo.isDisabled&&eo.supportsFiber)try{zn=eo.inject(RE),It=eo}catch{}}return Ms.createRoot=function(e,t){if(!u(e))throw Error(s(299));var n=!1,i="",o=Zh,c=Xh,h=Vh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=km(e,1,!1,null,null,n,i,null,o,c,h,Hm),e[ut]=t.current,tu(e),new Eu(t)},Ms.hydrateRoot=function(e,t,n){if(!u(e))throw Error(s(299));var i=!1,o="",c=Zh,h=Xh,E=Vh,k=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(k=n.formState)),t=km(e,1,!0,t,n??null,i,o,k,c,h,E,Hm),t.context=Om(null),n=t.current,i=la(),i=bt(i),o=mi(i),o.callback=null,gi(n,o,i),n=i,t.current.lanes=n,st(t,n),Ca(t),e[ut]=t.current,tu(e),new Jr(t)},Ms.version="19.2.8",Ms}var Qm;function HE(){if(Qm)return wu.exports;Qm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(a){console.error(a)}}return l(),wu.exports=IE(),wu.exports}var qE=HE(),rn;(function(l){l.INSERT="insert",l.DELETE="delete",l.CONTEXT="context"})(rn||(rn={}));const GE={LINE_BY_LINE:"line-by-line"},$E={NONE:"none"},YE={WORD:"word"};var Il;(function(l){l.AUTO="auto",l.DARK="dark",l.LIGHT="light"})(Il||(Il={}));const FE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],PE=RegExp("["+FE.join("\\")+"]","g");function KE(l){return l.replace(PE,"\\$&")}function Wm(l){return l&&l.replace(/\\/g,"/")}function ZE(l){let a,r,s,u=0;for(a=0,s=l.length;a<s;a++)r=l.charCodeAt(a),u=(u<<5)-u+r,u|=0;return u}function jb(l){const a=l.length;let r=-1/0;for(let s=0;s<a;s++)r=Math.max(r,l[s]);return r}function Jm(l,a){const r=l.split(".");return r.length>1?r[r.length-1]:a}function eg(l,a){return a.reduce((r,s)=>r||l.startsWith(s),!1)}const tg=["a/","b/","i/","w/","c/","o/"];function Li(l,a,r){const s=r!==void 0?[...tg,r]:tg,u=a?new RegExp(`^${KE(a)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,f=""]=u.exec(l)||[],p=s.find(g=>f.indexOf(g)===0);return(p?f.slice(p.length):f).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function XE(l,a){return Li(l,"---",a)}function VE(l,a){return Li(l,"+++",a)}function QE(l,a={}){const r=[];let s=null,u=null,f=null,p=null,y=null,g=null,m=null;const b="--- ",v="+++ ",_="@@",T=/^old mode (\d{6})/,N=/^new mode (\d{6})/,D=/^deleted file mode (\d{6})/,x=/^new file mode (\d{6})/,C=/^copy from "?(.+)"?/,I=/^copy to "?(.+)"?/,A=/^rename from "?(.+)"?/,Q=/^rename to "?(.+)"?/,V=/^similarity index (\d+)%/,ie=/^dissimilarity index (\d+)%/,H=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,R=/^Binary files (.*) and (.*) differ/,q=/^GIT binary patch/,J=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,K=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,me=/^new file mode (\d{6})/,ce=/^deleted file mode (\d{6}),(\d{6})/,Se=l.replace(/\/g,"").replace(/\r\n?/g,`
50
50
  `).split(`
51
- `);function he(){u!==null&&s!==null&&(s.blocks.push(u),u=null)}function M(){s!==null&&(!s.oldName&&g!==null&&(s.oldName=g),!s.newName&&m!==null&&(s.newName=m),s.newName&&(r.push(s),s=null)),g=null,m=null}function ee(){he(),M(),s={blocks:[],deletedLines:0,addedLines:0}}function fe(S){he();let z;s!==null&&((z=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(S))?(s.isCombined=!1,f=parseInt(z[1],10),y=parseInt(z[2],10)):(z=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(S))?(s.isCombined=!0,f=parseInt(z[1],10),p=parseInt(z[2],10),y=parseInt(z[3],10)):(S.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),f=0,y=0,s.isCombined=!1)),u={lines:[],oldStartLine:f,oldStartLine2:p,newStartLine:y,header:S}}function we(S){if(s===null||u===null||f===null||y===null)return;const z={content:S},B=s.isCombined?["+ "," +","++"]:["+"],se=s.isCombined?["- "," -","--"]:["-"];Jm(S,B)?(s.addedLines++,z.type=rn.INSERT,z.oldNumber=void 0,z.newNumber=y++):Jm(S,se)?(s.deletedLines++,z.type=rn.DELETE,z.oldNumber=f++,z.newNumber=void 0):(z.type=rn.CONTEXT,z.oldNumber=f++,z.newNumber=y++),u.lines.push(z)}function Le(S,z){let B=z;for(;B<Se.length-3;){if(S.startsWith("diff"))return!1;if(Se[B].startsWith(b)&&Se[B+1].startsWith(v)&&Se[B+2].startsWith(_))return!0;B++}return!1}return Se.forEach((S,z)=>{if(!S||S.startsWith("*"))return;let B;const se=Se[z-1],pe=Se[z+1],ve=Se[z+2];if(S.startsWith("diff --git")||S.startsWith("diff --combined")){if(ee(),(B=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(S))&&(g=Li(B[1],void 0,a.dstPrefix),m=Li(B[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isGitDiff=!0;return}if(S.startsWith("Binary files")&&!(s!=null&&s.isGitDiff)){if(ee(),(B=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(S))&&(g=Li(B[1],void 0,a.dstPrefix),m=Li(B[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isBinary=!0;return}if((!s||!s.isGitDiff&&s&&S.startsWith(b)&&pe.startsWith(v)&&ve.startsWith(_))&&ee(),s!=null&&s.isTooBig)return;if(s&&(typeof a.diffMaxChanges=="number"&&s.addedLines+s.deletedLines>a.diffMaxChanges||typeof a.diffMaxLineLength=="number"&&S.length>a.diffMaxLineLength)){s.isTooBig=!0,s.addedLines=0,s.deletedLines=0,s.blocks=[],u=null;const ye=typeof a.diffTooBigMessage=="function"?a.diffTooBigMessage(r.length):"Diff too big to be displayed";fe(ye);return}if(S.startsWith(b)&&pe.startsWith(v)||S.startsWith(v)&&se.startsWith(b)){if(s&&!s.oldName&&S.startsWith("--- ")&&(B=ZE(S,a.srcPrefix))){s.oldName=B,s.language=Wm(s.oldName,s.language);return}if(s&&!s.newName&&S.startsWith("+++ ")&&(B=XE(S,a.dstPrefix))){s.newName=B,s.language=Wm(s.newName,s.language);return}}if(s&&(S.startsWith(_)||s.isGitDiff&&s.oldName&&s.newName&&!u)){fe(S);return}if(u&&(S.startsWith("+")||S.startsWith("-")||S.startsWith(" "))){we(S);return}const Z=!Le(S,z);if(s===null)throw new Error("Where is my file !!!");(B=T.exec(S))?s.oldMode=B[1]:(B=N.exec(S))?s.newMode=B[1]:(B=D.exec(S))?(s.deletedFileMode=B[1],s.isDeleted=!0):(B=x.exec(S))?(s.newFileMode=B[1],s.isNew=!0):(B=C.exec(S))?(Z&&(s.oldName=B[1]),s.isCopy=!0):(B=I.exec(S))?(Z&&(s.newName=B[1]),s.isCopy=!0):(B=A.exec(S))?(Z&&(s.oldName=B[1]),s.isRename=!0):(B=Q.exec(S))?(Z&&(s.newName=B[1]),s.isRename=!0):(B=R.exec(S))?(s.isBinary=!0,s.oldName=Li(B[1],void 0,a.srcPrefix),s.newName=Li(B[2],void 0,a.dstPrefix),fe("Binary file")):q.test(S)?(s.isBinary=!0,fe(S)):(B=V.exec(S))?s.unchangedPercentage=parseInt(B[1],10):(B=ie.exec(S))?s.changedPercentage=parseInt(B[1],10):(B=H.exec(S))?(s.checksumBefore=B[1],s.checksumAfter=B[2],B[3]&&(s.mode=B[3])):(B=J.exec(S))?(s.checksumBefore=[B[2],B[3]],s.checksumAfter=B[1]):(B=K.exec(S))?(s.oldMode=[B[2],B[3]],s.newMode=B[1]):(B=me.exec(S))?(s.newFileMode=B[1],s.isNew=!0):(B=ce.exec(S))&&(s.deletedFileMode=B[1],s.isDeleted=!0)}),he(),M(),r}class jb{diff(a,r,s={}){let u;typeof s=="function"?(u=s,s={}):"callback"in s&&(u=s.callback);const f=this.castInput(a,s),p=this.castInput(r,s),y=this.removeEmpty(this.tokenize(f,s)),g=this.removeEmpty(this.tokenize(p,s));return this.diffWithOptionsObj(y,g,s,u)}diffWithOptionsObj(a,r,s,u){var f;const p=I=>{if(I=this.postProcess(I,s),u){setTimeout(function(){u(I)},0);return}else return I},y=r.length,g=a.length;let m=1,b=y+g;s.maxEditLength!=null&&(b=Math.min(b,s.maxEditLength));const v=(f=s.timeout)!==null&&f!==void 0?f:1/0,_=Date.now()+v,T=[{oldPos:-1,lastComponent:void 0}];let N=this.extractCommon(T[0],r,a,0,s);if(T[0].oldPos+1>=g&&N+1>=y)return p(this.buildValues(T[0].lastComponent,r,a));let D=-1/0,x=1/0;const C=()=>{for(let I=Math.max(D,-m);I<=Math.min(x,m);I+=2){let A;const Q=T[I-1],V=T[I+1];Q&&(T[I-1]=void 0);let ie=!1;if(V){const R=V.oldPos-I;ie=V&&0<=R&&R<y}const H=Q&&Q.oldPos+1<g;if(!ie&&!H){T[I]=void 0;continue}if(!H||ie&&Q.oldPos<V.oldPos?A=this.addToPath(V,!0,!1,0,s):A=this.addToPath(Q,!1,!0,1,s),N=this.extractCommon(A,r,a,I,s),A.oldPos+1>=g&&N+1>=y)return p(this.buildValues(A.lastComponent,r,a))||!0;T[I]=A,A.oldPos+1>=g&&(x=Math.min(x,I-1)),N+1>=y&&(D=Math.max(D,I+1))}m++};if(u)(function I(){setTimeout(function(){if(m>b||Date.now()>_)return u(void 0);C()||I()},0)})();else for(;m<=b&&Date.now()<=_;){const I=C();if(I)return I}}addToPath(a,r,s,u,f){const p=a.lastComponent;return p&&!f.oneChangePerToken&&p.added===r&&p.removed===s?{oldPos:a.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:s,previousComponent:p.previousComponent}}:{oldPos:a.oldPos+u,lastComponent:{count:1,added:r,removed:s,previousComponent:p}}}extractCommon(a,r,s,u,f){const p=r.length,y=s.length;let g=a.oldPos,m=g-u,b=0;for(;m+1<p&&g+1<y&&this.equals(s[g+1],r[m+1],f);)m++,g++,b++,f.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return b&&!f.oneChangePerToken&&(a.lastComponent={count:b,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=g,m}equals(a,r,s){return s.comparator?s.comparator(a,r):a===r||!!s.ignoreCase&&a.toLowerCase()===r.toLowerCase()}removeEmpty(a){const r=[];for(let s=0;s<a.length;s++)a[s]&&r.push(a[s]);return r}castInput(a,r){return a}tokenize(a,r){return Array.from(a)}join(a){return a.join("")}postProcess(a,r){return a}get useLongestToken(){return!1}buildValues(a,r,s){const u=[];let f;for(;a;)u.push(a),f=a.previousComponent,delete a.previousComponent,a=f;u.reverse();const p=u.length;let y=0,g=0,m=0;for(;y<p;y++){const b=u[y];if(b.removed)b.value=this.join(s.slice(m,m+b.count)),m+=b.count;else{if(!b.added&&this.useLongestToken){let v=r.slice(g,g+b.count);v=v.map(function(_,T){const N=s[m+T];return N.length>_.length?N:_}),b.value=this.join(v)}else b.value=this.join(r.slice(g,g+b.count));g+=b.count,b.added||(m+=b.count)}}return u}}class QE extends jb{}const WE=new QE;function JE(l,a,r){return WE.diff(l,a,r)}const tg="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class e_ extends jb{tokenize(a){const r=new RegExp(`(\\r?\\n)|[${tg}]+|[^\\S\\n\\r]+|[^${tg}]`,"ug");return a.match(r)||[]}}const t_=new e_;function n_(l,a,r){return t_.diff(l,a,r)}function a_(l,a){if(l.length===0)return a.length;if(a.length===0)return l.length;const r=[];let s;for(s=0;s<=a.length;s++)r[s]=[s];let u;for(u=0;u<=l.length;u++)r[0][u]=u;for(s=1;s<=a.length;s++)for(u=1;u<=l.length;u++)a.charAt(s-1)===l.charAt(u-1)?r[s][u]=r[s-1][u-1]:r[s][u]=Math.min(r[s-1][u-1]+1,Math.min(r[s][u-1]+1,r[s-1][u]+1));return r[a.length][l.length]}function Fd(l){return(a,r)=>{const s=l(a).trim(),u=l(r).trim();return a_(s,u)/(s.length+u.length)}}function Pd(l){function a(s,u,f=new Map){let p=1/0,y;for(let g=0;g<s.length;++g)for(let m=0;m<u.length;++m){const b=JSON.stringify([s[g],u[m]]);let v;f.has(b)&&(v=f.get(b))||(v=l(s[g],u[m]),f.set(b,v)),v<p&&(p=v,y={indexA:g,indexB:m,score:p})}return y}function r(s,u,f=0,p=new Map){const y=a(s,u,p);if(!y||s.length+u.length<3)return[[s,u]];const g=s.slice(0,y.indexA),m=u.slice(0,y.indexB),b=[s[y.indexA]],v=[u[y.indexB]],_=y.indexA+1,T=y.indexB+1,N=s.slice(_),D=u.slice(T),x=r(g,m,f+1,p),C=r(b,v,f+1,p),I=r(N,D,f+1,p);let A=C;return(y.indexA>0||y.indexB>0)&&(A=x.concat(A)),(s.length>_||u.length>T)&&(A=A.concat(I)),A}return r}const In={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},bo={matching:GE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:$E.WORD,colorScheme:Bl.LIGHT},Ma="/",Ub=Fd(l=>l.value),i_=Pd(Ub);function xu(l){return l.indexOf("dev/null")!==-1}function l_(l){return l.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function s_(l){return l.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function oo(l){switch(l){case rn.CONTEXT:return In.CONTEXT;case rn.INSERT:return In.INSERTS;case rn.DELETE:return In.DELETES}}function Kd(l){switch(l){case Bl.DARK:return"d2h-dark-color-scheme";case Bl.AUTO:return"d2h-auto-color-scheme";case Bl.LIGHT:default:return"d2h-light-color-scheme"}}function r_(l){return l?2:1}function Il(l){return l.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function La(l,a,r=!0){const s=r_(a);return{prefix:l.substring(0,s),content:r?Il(l.substring(s)):l.substring(s)}}function yo(l){const a=Qm(l.oldName),r=Qm(l.newName);if(a!==r&&!xu(a)&&!xu(r)){const s=[],u=[],f=a.split(Ma),p=r.split(Ma),y=f.length,g=p.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&f[m]===p[m];)s.push(p[m]),m+=1;for(;b>m&&v>m&&f[b]===p[v];)u.unshift(p[v]),b-=1,v-=1;const _=s.join(Ma),T=u.join(Ma),N=f.slice(m,b+1).join(Ma),D=p.slice(m,v+1).join(Ma);return _.length&&T.length?_+Ma+"{"+N+" → "+D+"}"+Ma+T:_.length?_+Ma+"{"+N+" → "+D+"}":T.length?"{"+N+" → "+D+"}"+Ma+T:a+" → "+r}else return xu(r)?a:r}function Zd(l){return`d2h-${KE(yo(l)).toString().slice(-6)}`}function Xd(l){let a="file-changed";return l.isRename||l.isCopy?a="file-renamed":l.isNew?a="file-added":l.isDeleted?a="file-deleted":l.newName!==l.oldName&&(a="file-renamed"),a}function Bb(l,a,r,s={}){const{matching:u,maxLineLengthHighlight:f,matchWordsThreshold:p,diffStyle:y}=Object.assign(Object.assign({},bo),s),g=La(l,r,!1),m=La(a,r,!1);if(g.content.length>f||m.content.length>f)return{oldLine:{prefix:g.prefix,content:Il(g.content)},newLine:{prefix:m.prefix,content:Il(m.content)}};const b=y==="char"?JE(g.content,m.content):n_(g.content,m.content),v=[];if(y==="word"&&u==="words"){const T=b.filter(x=>x.removed),N=b.filter(x=>x.added);i_(N,T).forEach(x=>{x[0].length===1&&x[1].length===1&&Ub(x[0][0],x[1][0])<p&&(v.push(x[0][0]),v.push(x[1][0]))})}const _=b.reduce((T,N)=>{const D=N.added?"ins":N.removed?"del":null,x=v.indexOf(N)>-1?' class="d2h-change"':"",C=Il(N.value);return D!==null?`${T}<${D}${x}>${C}</${D}>`:`${T}${C}`},"");return{oldLine:{prefix:g.prefix,content:l_(_)},newLine:{prefix:m.prefix,content:s_(_)}}}const ng="file-summary",o_="icon",c_={colorScheme:bo.colorScheme};class u_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},c_),r)}render(a){const r=a.map(s=>this.hoganUtils.render(ng,"line",{fileHtmlId:Zd(s),oldName:s.oldName,newName:s.newName,fileName:yo(s),deletedLines:"-"+s.deletedLines,addedLines:"+"+s.addedLines},{fileIcon:this.hoganUtils.template(o_,Xd(s))})).join(`
52
- `);return this.hoganUtils.render(ng,"wrapper",{colorScheme:Kd(this.config.colorScheme),filesNumber:a.length,files:r})}}const Ib=Object.assign(Object.assign({},bo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ms="generic",ag="line-by-line",d_="icon",f_="tag";class h_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Ib),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(Ms,"wrapper",{colorScheme:Kd(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(ag,"file-diff"),u=this.hoganUtils.template(Ms,"file-path"),f=this.hoganUtils.template(d_,"file"),p=this.hoganUtils.template(f_,Xd(a));return s.render({file:a,fileHtmlId:Zd(a),diffs:r,filePath:u.render({fileDiffName:yo(a)},{fileIcon:f,fileTag:p})})}generateEmptyDiff(){return this.hoganUtils.render(Ms,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:In})}generateFileHtml(a){const r=Pd(Fd(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{let u=this.hoganUtils.render(Ms,"block-header",{CSSLineClass:In,blockHeader:a.isTooBig?s.header:Il(s.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(s).forEach(([f,p,y])=>{if(p.length&&y.length&&!f.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a,a.isCombined,g,m);u+=b,u+=v});else if(f.length)f.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined);u+=this.generateSingleLineHtml(a,{type:In.CONTEXT,prefix:m,content:b,oldNumber:g.oldNumber,newNumber:g.newNumber})});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(a,a.isCombined,p,y);u+=g,u+=m}else console.error("Unknown state reached while processing groups of lines",f,p,y)}),u}).join(`
54
- `)}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const p=a.lines[f];(p.type!==rn.INSERT&&u.length||p.type===rn.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===rn.CONTEXT?r.push([[p],[],[]]):p.type===rn.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===rn.INSERT&&s.length>0?u.push(p):p.type===rn.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=zb(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?Bb(g.content,m.content,r,this.config):void 0,v=g!==void 0&&g.oldNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.oldLine.prefix,content:b.oldLine.content,type:In.DELETE_CHANGES}:Object.assign(Object.assign({},La(g.content,r)),{type:oo(g.type)})),{oldNumber:g.oldNumber,newNumber:g.newNumber}):void 0,_=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.newLine.prefix,content:b.newLine.content,type:In.INSERT_CHANGES}:Object.assign(Object.assign({},La(m.content,r)),{type:oo(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:T,right:N}=this.generateLineHtml(a,v,_);f.left+=T,f.right+=N}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(ag,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Ms,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?"&nbsp;":r.prefix,content:r.content,lineNumber:s,line:r,file:a})}}const Hb=Object.assign(Object.assign({},bo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ds="generic",p_="side-by-side",m_="icon",g_="tag";class b_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Hb),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(Ds,"wrapper",{colorScheme:Kd(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(p_,"file-diff"),u=this.hoganUtils.template(Ds,"file-path"),f=this.hoganUtils.template(m_,"file"),p=this.hoganUtils.template(g_,Xd(a));return s.render({file:a,fileHtmlId:Zd(a),diffs:r,filePath:u.render({fileDiffName:yo(a)},{fileIcon:f,fileTag:p})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Ds,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:In})}}generateFileHtml(a){const r=Pd(Fd(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{const u={left:this.makeHeaderHtml(s.header,a),right:this.makeHeaderHtml("")};return this.applyLineGroupping(s).forEach(([f,p,y])=>{if(p.length&&y.length&&!f.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a.isCombined,g,m);u.left+=b,u.right+=v});else if(f.length)f.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined),{left:v,right:_}=this.generateLineHtml({type:In.CONTEXT,prefix:m,content:b,number:g.oldNumber},{type:In.CONTEXT,prefix:m,content:b,number:g.newNumber});u.left+=v,u.right+=_});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(a.isCombined,p,y);u.left+=g,u.right+=m}else console.error("Unknown state reached while processing groups of lines",f,p,y)}),u}).reduce((s,u)=>({left:s.left+u.left,right:s.right+u.right}),{left:"",right:""})}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const p=a.lines[f];(p.type!==rn.INSERT&&u.length||p.type===rn.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===rn.CONTEXT?r.push([[p],[],[]]):p.type===rn.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===rn.INSERT&&s.length>0?u.push(p):p.type===rn.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=zb(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(Ds,"block-header",{CSSLineClass:In,blockHeader:r!=null&&r.isTooBig?a:Il(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?Bb(y.content,g.content,a,this.config):void 0,b=y!==void 0&&y.oldNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.oldLine.prefix,content:m.oldLine.content,type:In.DELETE_CHANGES}:Object.assign(Object.assign({},La(y.content,a)),{type:oo(y.type)})),{number:y.oldNumber}):void 0,v=g!==void 0&&g.newNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.newLine.prefix,content:m.newLine.content,type:In.INSERT_CHANGES}:Object.assign(Object.assign({},La(g.content,a)),{type:oo(g.type)})),{number:g.newNumber}):void 0,{left:_,right:T}=this.generateLineHtml(b,v);u.left+=_,u.right+=T}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(Ds,"line",{type:(a==null?void 0:a.type)||`${In.CONTEXT} d2h-emptyplaceholder`,lineClass:a!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:a!==void 0?s:`${s} d2h-code-side-emptyplaceholder`,prefix:(a==null?void 0:a.prefix)===" "?"&nbsp;":a==null?void 0:a.prefix,content:a==null?void 0:a.content,lineNumber:a==null?void 0:a.number})}}var Au={},ig;function y_(){return ig||(ig=1,(function(l){(function(a){var r=/\S/,s=/\"/g,u=/\n/g,f=/\r/g,p=/\\/g,y=/\u2028/,g=/\u2029/;a.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},a.scan=function(q,J){var K=q.length,me=0,ce=1,Se=2,he=me,M=null,ee=null,fe="",we=[],Le=!1,S=0,z=0,B="{{",se="}}";function pe(){fe.length>0&&(we.push({tag:"_t",text:new String(fe)}),fe="")}function ve(){for(var Ne=!0,Ge=z;Ge<we.length;Ge++)if(Ne=a.tags[we[Ge].tag]<a.tags._v||we[Ge].tag=="_t"&&we[Ge].text.match(r)===null,!Ne)return!1;return Ne}function Z(Ne,Ge){if(pe(),Ne&&ve())for(var $e=z,Me;$e<we.length;$e++)we[$e].text&&((Me=we[$e+1])&&Me.tag==">"&&(Me.indent=we[$e].text.toString()),we.splice($e,1));else Ge||we.push({tag:`
51
+ `);function he(){u!==null&&s!==null&&(s.blocks.push(u),u=null)}function M(){s!==null&&(!s.oldName&&g!==null&&(s.oldName=g),!s.newName&&m!==null&&(s.newName=m),s.newName&&(r.push(s),s=null)),g=null,m=null}function ee(){he(),M(),s={blocks:[],deletedLines:0,addedLines:0}}function fe(S){he();let z;s!==null&&((z=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(S))?(s.isCombined=!1,f=parseInt(z[1],10),y=parseInt(z[2],10)):(z=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(S))?(s.isCombined=!0,f=parseInt(z[1],10),p=parseInt(z[2],10),y=parseInt(z[3],10)):(S.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),f=0,y=0,s.isCombined=!1)),u={lines:[],oldStartLine:f,oldStartLine2:p,newStartLine:y,header:S}}function we(S){if(s===null||u===null||f===null||y===null)return;const z={content:S},B=s.isCombined?["+ "," +","++"]:["+"],se=s.isCombined?["- "," -","--"]:["-"];eg(S,B)?(s.addedLines++,z.type=rn.INSERT,z.oldNumber=void 0,z.newNumber=y++):eg(S,se)?(s.deletedLines++,z.type=rn.DELETE,z.oldNumber=f++,z.newNumber=void 0):(z.type=rn.CONTEXT,z.oldNumber=f++,z.newNumber=y++),u.lines.push(z)}function Le(S,z){let B=z;for(;B<Se.length-3;){if(S.startsWith("diff"))return!1;if(Se[B].startsWith(b)&&Se[B+1].startsWith(v)&&Se[B+2].startsWith(_))return!0;B++}return!1}return Se.forEach((S,z)=>{if(!S||S.startsWith("*"))return;let B;const se=Se[z-1],pe=Se[z+1],ve=Se[z+2];if(S.startsWith("diff --git")||S.startsWith("diff --combined")){if(ee(),(B=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(S))&&(g=Li(B[1],void 0,a.dstPrefix),m=Li(B[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isGitDiff=!0;return}if(S.startsWith("Binary files")&&!(s!=null&&s.isGitDiff)){if(ee(),(B=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(S))&&(g=Li(B[1],void 0,a.dstPrefix),m=Li(B[2],void 0,a.srcPrefix)),s===null)throw new Error("Where is my file !!!");s.isBinary=!0;return}if((!s||!s.isGitDiff&&s&&S.startsWith(b)&&pe.startsWith(v)&&ve.startsWith(_))&&ee(),s!=null&&s.isTooBig)return;if(s&&(typeof a.diffMaxChanges=="number"&&s.addedLines+s.deletedLines>a.diffMaxChanges||typeof a.diffMaxLineLength=="number"&&S.length>a.diffMaxLineLength)){s.isTooBig=!0,s.addedLines=0,s.deletedLines=0,s.blocks=[],u=null;const ye=typeof a.diffTooBigMessage=="function"?a.diffTooBigMessage(r.length):"Diff too big to be displayed";fe(ye);return}if(S.startsWith(b)&&pe.startsWith(v)||S.startsWith(v)&&se.startsWith(b)){if(s&&!s.oldName&&S.startsWith("--- ")&&(B=XE(S,a.srcPrefix))){s.oldName=B,s.language=Jm(s.oldName,s.language);return}if(s&&!s.newName&&S.startsWith("+++ ")&&(B=VE(S,a.dstPrefix))){s.newName=B,s.language=Jm(s.newName,s.language);return}}if(s&&(S.startsWith(_)||s.isGitDiff&&s.oldName&&s.newName&&!u)){fe(S);return}if(u&&(S.startsWith("+")||S.startsWith("-")||S.startsWith(" "))){we(S);return}const Z=!Le(S,z);if(s===null)throw new Error("Where is my file !!!");(B=T.exec(S))?s.oldMode=B[1]:(B=N.exec(S))?s.newMode=B[1]:(B=D.exec(S))?(s.deletedFileMode=B[1],s.isDeleted=!0):(B=x.exec(S))?(s.newFileMode=B[1],s.isNew=!0):(B=C.exec(S))?(Z&&(s.oldName=B[1]),s.isCopy=!0):(B=I.exec(S))?(Z&&(s.newName=B[1]),s.isCopy=!0):(B=A.exec(S))?(Z&&(s.oldName=B[1]),s.isRename=!0):(B=Q.exec(S))?(Z&&(s.newName=B[1]),s.isRename=!0):(B=R.exec(S))?(s.isBinary=!0,s.oldName=Li(B[1],void 0,a.srcPrefix),s.newName=Li(B[2],void 0,a.dstPrefix),fe("Binary file")):q.test(S)?(s.isBinary=!0,fe(S)):(B=V.exec(S))?s.unchangedPercentage=parseInt(B[1],10):(B=ie.exec(S))?s.changedPercentage=parseInt(B[1],10):(B=H.exec(S))?(s.checksumBefore=B[1],s.checksumAfter=B[2],B[3]&&(s.mode=B[3])):(B=J.exec(S))?(s.checksumBefore=[B[2],B[3]],s.checksumAfter=B[1]):(B=K.exec(S))?(s.oldMode=[B[2],B[3]],s.newMode=B[1]):(B=me.exec(S))?(s.newFileMode=B[1],s.isNew=!0):(B=ce.exec(S))&&(s.deletedFileMode=B[1],s.isDeleted=!0)}),he(),M(),r}class Ub{diff(a,r,s={}){let u;typeof s=="function"?(u=s,s={}):"callback"in s&&(u=s.callback);const f=this.castInput(a,s),p=this.castInput(r,s),y=this.removeEmpty(this.tokenize(f,s)),g=this.removeEmpty(this.tokenize(p,s));return this.diffWithOptionsObj(y,g,s,u)}diffWithOptionsObj(a,r,s,u){var f;const p=I=>{if(I=this.postProcess(I,s),u){setTimeout(function(){u(I)},0);return}else return I},y=r.length,g=a.length;let m=1,b=y+g;s.maxEditLength!=null&&(b=Math.min(b,s.maxEditLength));const v=(f=s.timeout)!==null&&f!==void 0?f:1/0,_=Date.now()+v,T=[{oldPos:-1,lastComponent:void 0}];let N=this.extractCommon(T[0],r,a,0,s);if(T[0].oldPos+1>=g&&N+1>=y)return p(this.buildValues(T[0].lastComponent,r,a));let D=-1/0,x=1/0;const C=()=>{for(let I=Math.max(D,-m);I<=Math.min(x,m);I+=2){let A;const Q=T[I-1],V=T[I+1];Q&&(T[I-1]=void 0);let ie=!1;if(V){const R=V.oldPos-I;ie=V&&0<=R&&R<y}const H=Q&&Q.oldPos+1<g;if(!ie&&!H){T[I]=void 0;continue}if(!H||ie&&Q.oldPos<V.oldPos?A=this.addToPath(V,!0,!1,0,s):A=this.addToPath(Q,!1,!0,1,s),N=this.extractCommon(A,r,a,I,s),A.oldPos+1>=g&&N+1>=y)return p(this.buildValues(A.lastComponent,r,a))||!0;T[I]=A,A.oldPos+1>=g&&(x=Math.min(x,I-1)),N+1>=y&&(D=Math.max(D,I+1))}m++};if(u)(function I(){setTimeout(function(){if(m>b||Date.now()>_)return u(void 0);C()||I()},0)})();else for(;m<=b&&Date.now()<=_;){const I=C();if(I)return I}}addToPath(a,r,s,u,f){const p=a.lastComponent;return p&&!f.oneChangePerToken&&p.added===r&&p.removed===s?{oldPos:a.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:s,previousComponent:p.previousComponent}}:{oldPos:a.oldPos+u,lastComponent:{count:1,added:r,removed:s,previousComponent:p}}}extractCommon(a,r,s,u,f){const p=r.length,y=s.length;let g=a.oldPos,m=g-u,b=0;for(;m+1<p&&g+1<y&&this.equals(s[g+1],r[m+1],f);)m++,g++,b++,f.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return b&&!f.oneChangePerToken&&(a.lastComponent={count:b,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=g,m}equals(a,r,s){return s.comparator?s.comparator(a,r):a===r||!!s.ignoreCase&&a.toLowerCase()===r.toLowerCase()}removeEmpty(a){const r=[];for(let s=0;s<a.length;s++)a[s]&&r.push(a[s]);return r}castInput(a,r){return a}tokenize(a,r){return Array.from(a)}join(a){return a.join("")}postProcess(a,r){return a}get useLongestToken(){return!1}buildValues(a,r,s){const u=[];let f;for(;a;)u.push(a),f=a.previousComponent,delete a.previousComponent,a=f;u.reverse();const p=u.length;let y=0,g=0,m=0;for(;y<p;y++){const b=u[y];if(b.removed)b.value=this.join(s.slice(m,m+b.count)),m+=b.count;else{if(!b.added&&this.useLongestToken){let v=r.slice(g,g+b.count);v=v.map(function(_,T){const N=s[m+T];return N.length>_.length?N:_}),b.value=this.join(v)}else b.value=this.join(r.slice(g,g+b.count));g+=b.count,b.added||(m+=b.count)}}return u}}class WE extends Ub{}const JE=new WE;function e_(l,a,r){return JE.diff(l,a,r)}const ng="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 t_ extends Ub{tokenize(a){const r=new RegExp(`(\\r?\\n)|[${ng}]+|[^\\S\\n\\r]+|[^${ng}]`,"ug");return a.match(r)||[]}}const n_=new t_;function a_(l,a,r){return n_.diff(l,a,r)}function i_(l,a){if(l.length===0)return a.length;if(a.length===0)return l.length;const r=[];let s;for(s=0;s<=a.length;s++)r[s]=[s];let u;for(u=0;u<=l.length;u++)r[0][u]=u;for(s=1;s<=a.length;s++)for(u=1;u<=l.length;u++)a.charAt(s-1)===l.charAt(u-1)?r[s][u]=r[s-1][u-1]:r[s][u]=Math.min(r[s-1][u-1]+1,Math.min(r[s][u-1]+1,r[s-1][u]+1));return r[a.length][l.length]}function Pd(l){return(a,r)=>{const s=l(a).trim(),u=l(r).trim();return i_(s,u)/(s.length+u.length)}}function Kd(l){function a(s,u,f=new Map){let p=1/0,y;for(let g=0;g<s.length;++g)for(let m=0;m<u.length;++m){const b=JSON.stringify([s[g],u[m]]);let v;f.has(b)&&(v=f.get(b))||(v=l(s[g],u[m]),f.set(b,v)),v<p&&(p=v,y={indexA:g,indexB:m,score:p})}return y}function r(s,u,f=0,p=new Map){const y=a(s,u,p);if(!y||s.length+u.length<3)return[[s,u]];const g=s.slice(0,y.indexA),m=u.slice(0,y.indexB),b=[s[y.indexA]],v=[u[y.indexB]],_=y.indexA+1,T=y.indexB+1,N=s.slice(_),D=u.slice(T),x=r(g,m,f+1,p),C=r(b,v,f+1,p),I=r(N,D,f+1,p);let A=C;return(y.indexA>0||y.indexB>0)&&(A=x.concat(A)),(s.length>_||u.length>T)&&(A=A.concat(I)),A}return r}const In={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},yo={matching:$E.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:YE.WORD,colorScheme:Il.LIGHT},Ma="/",Bb=Pd(l=>l.value),l_=Kd(Bb);function Au(l){return l.indexOf("dev/null")!==-1}function s_(l){return l.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function r_(l){return l.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function co(l){switch(l){case rn.CONTEXT:return In.CONTEXT;case rn.INSERT:return In.INSERTS;case rn.DELETE:return In.DELETES}}function Zd(l){switch(l){case Il.DARK:return"d2h-dark-color-scheme";case Il.AUTO:return"d2h-auto-color-scheme";case Il.LIGHT:default:return"d2h-light-color-scheme"}}function o_(l){return l?2:1}function Hl(l){return l.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function La(l,a,r=!0){const s=o_(a);return{prefix:l.substring(0,s),content:r?Hl(l.substring(s)):l.substring(s)}}function vo(l){const a=Wm(l.oldName),r=Wm(l.newName);if(a!==r&&!Au(a)&&!Au(r)){const s=[],u=[],f=a.split(Ma),p=r.split(Ma),y=f.length,g=p.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&f[m]===p[m];)s.push(p[m]),m+=1;for(;b>m&&v>m&&f[b]===p[v];)u.unshift(p[v]),b-=1,v-=1;const _=s.join(Ma),T=u.join(Ma),N=f.slice(m,b+1).join(Ma),D=p.slice(m,v+1).join(Ma);return _.length&&T.length?_+Ma+"{"+N+" → "+D+"}"+Ma+T:_.length?_+Ma+"{"+N+" → "+D+"}":T.length?"{"+N+" → "+D+"}"+Ma+T:a+" → "+r}else return Au(r)?a:r}function Xd(l){return`d2h-${ZE(vo(l)).toString().slice(-6)}`}function Vd(l){let a="file-changed";return l.isRename||l.isCopy?a="file-renamed":l.isNew?a="file-added":l.isDeleted?a="file-deleted":l.newName!==l.oldName&&(a="file-renamed"),a}function Ib(l,a,r,s={}){const{matching:u,maxLineLengthHighlight:f,matchWordsThreshold:p,diffStyle:y}=Object.assign(Object.assign({},yo),s),g=La(l,r,!1),m=La(a,r,!1);if(g.content.length>f||m.content.length>f)return{oldLine:{prefix:g.prefix,content:Hl(g.content)},newLine:{prefix:m.prefix,content:Hl(m.content)}};const b=y==="char"?e_(g.content,m.content):a_(g.content,m.content),v=[];if(y==="word"&&u==="words"){const T=b.filter(x=>x.removed),N=b.filter(x=>x.added);l_(N,T).forEach(x=>{x[0].length===1&&x[1].length===1&&Bb(x[0][0],x[1][0])<p&&(v.push(x[0][0]),v.push(x[1][0]))})}const _=b.reduce((T,N)=>{const D=N.added?"ins":N.removed?"del":null,x=v.indexOf(N)>-1?' class="d2h-change"':"",C=Hl(N.value);return D!==null?`${T}<${D}${x}>${C}</${D}>`:`${T}${C}`},"");return{oldLine:{prefix:g.prefix,content:s_(_)},newLine:{prefix:m.prefix,content:r_(_)}}}const ag="file-summary",c_="icon",u_={colorScheme:yo.colorScheme};class d_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},u_),r)}render(a){const r=a.map(s=>this.hoganUtils.render(ag,"line",{fileHtmlId:Xd(s),oldName:s.oldName,newName:s.newName,fileName:vo(s),deletedLines:"-"+s.deletedLines,addedLines:"+"+s.addedLines},{fileIcon:this.hoganUtils.template(c_,Vd(s))})).join(`
52
+ `);return this.hoganUtils.render(ag,"wrapper",{colorScheme:Zd(this.config.colorScheme),filesNumber:a.length,files:r})}}const Hb=Object.assign(Object.assign({},yo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ds="generic",ig="line-by-line",f_="icon",h_="tag";class p_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},Hb),r)}render(a){const r=a.map(s=>{let u;return s.blocks.length?u=this.generateFileHtml(s):u=this.generateEmptyDiff(),this.makeFileDiffHtml(s,u)}).join(`
53
+ `);return this.hoganUtils.render(Ds,"wrapper",{colorScheme:Zd(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(ig,"file-diff"),u=this.hoganUtils.template(Ds,"file-path"),f=this.hoganUtils.template(f_,"file"),p=this.hoganUtils.template(h_,Vd(a));return s.render({file:a,fileHtmlId:Xd(a),diffs:r,filePath:u.render({fileDiffName:vo(a)},{fileIcon:f,fileTag:p})})}generateEmptyDiff(){return this.hoganUtils.render(Ds,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:In})}generateFileHtml(a){const r=Kd(Pd(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{let u=this.hoganUtils.render(Ds,"block-header",{CSSLineClass:In,blockHeader:a.isTooBig?s.header:Hl(s.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(s).forEach(([f,p,y])=>{if(p.length&&y.length&&!f.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a,a.isCombined,g,m);u+=b,u+=v});else if(f.length)f.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined);u+=this.generateSingleLineHtml(a,{type:In.CONTEXT,prefix:m,content:b,oldNumber:g.oldNumber,newNumber:g.newNumber})});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(a,a.isCombined,p,y);u+=g,u+=m}else console.error("Unknown state reached while processing groups of lines",f,p,y)}),u}).join(`
54
+ `)}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const p=a.lines[f];(p.type!==rn.INSERT&&u.length||p.type===rn.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===rn.CONTEXT?r.push([[p],[],[]]):p.type===rn.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===rn.INSERT&&s.length>0?u.push(p):p.type===rn.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=jb(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?Ib(g.content,m.content,r,this.config):void 0,v=g!==void 0&&g.oldNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.oldLine.prefix,content:b.oldLine.content,type:In.DELETE_CHANGES}:Object.assign(Object.assign({},La(g.content,r)),{type:co(g.type)})),{oldNumber:g.oldNumber,newNumber:g.newNumber}):void 0,_=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.newLine.prefix,content:b.newLine.content,type:In.INSERT_CHANGES}:Object.assign(Object.assign({},La(m.content,r)),{type:co(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:T,right:N}=this.generateLineHtml(a,v,_);f.left+=T,f.right+=N}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(ig,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Ds,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?"&nbsp;":r.prefix,content:r.content,lineNumber:s,line:r,file:a})}}const qb=Object.assign(Object.assign({},yo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ls="generic",m_="side-by-side",g_="icon",b_="tag";class y_{constructor(a,r={}){this.hoganUtils=a,this.config=Object.assign(Object.assign({},qb),r)}render(a){const r=a.map(s=>{let u;return s.blocks.length?u=this.generateFileHtml(s):u=this.generateEmptyDiff(),this.makeFileDiffHtml(s,u)}).join(`
55
+ `);return this.hoganUtils.render(Ls,"wrapper",{colorScheme:Zd(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(m_,"file-diff"),u=this.hoganUtils.template(Ls,"file-path"),f=this.hoganUtils.template(g_,"file"),p=this.hoganUtils.template(b_,Vd(a));return s.render({file:a,fileHtmlId:Xd(a),diffs:r,filePath:u.render({fileDiffName:vo(a)},{fileIcon:f,fileTag:p})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Ls,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:In})}}generateFileHtml(a){const r=Kd(Pd(s=>La(s.content,a.isCombined).content));return a.blocks.map(s=>{const u={left:this.makeHeaderHtml(s.header,a),right:this.makeHeaderHtml("")};return this.applyLineGroupping(s).forEach(([f,p,y])=>{if(p.length&&y.length&&!f.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(a.isCombined,g,m);u.left+=b,u.right+=v});else if(f.length)f.forEach(g=>{const{prefix:m,content:b}=La(g.content,a.isCombined),{left:v,right:_}=this.generateLineHtml({type:In.CONTEXT,prefix:m,content:b,number:g.oldNumber},{type:In.CONTEXT,prefix:m,content:b,number:g.newNumber});u.left+=v,u.right+=_});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(a.isCombined,p,y);u.left+=g,u.right+=m}else console.error("Unknown state reached while processing groups of lines",f,p,y)}),u}).reduce((s,u)=>({left:s.left+u.left,right:s.right+u.right}),{left:"",right:""})}applyLineGroupping(a){const r=[];let s=[],u=[];for(let f=0;f<a.lines.length;f++){const p=a.lines[f];(p.type!==rn.INSERT&&u.length||p.type===rn.CONTEXT&&s.length>0)&&(r.push([[],s,u]),s=[],u=[]),p.type===rn.CONTEXT?r.push([[p],[],[]]):p.type===rn.INSERT&&s.length===0?r.push([[],[],[p]]):p.type===rn.INSERT&&s.length>0?u.push(p):p.type===rn.DELETE&&s.push(p)}return(s.length||u.length)&&(r.push([[],s,u]),s=[],u=[]),r}applyRematchMatching(a,r,s){const u=a.length*r.length,f=jb(a.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&f<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?s(a,r):[[a,r]]}makeHeaderHtml(a,r){return this.hoganUtils.render(Ls,"block-header",{CSSLineClass:In,blockHeader:r!=null&&r.isTooBig?a:Hl(a),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(a,r,s){const u={right:"",left:""},f=Math.max(r.length,s.length);for(let p=0;p<f;p++){const y=r[p],g=s[p],m=y!==void 0&&g!==void 0?Ib(y.content,g.content,a,this.config):void 0,b=y!==void 0&&y.oldNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.oldLine.prefix,content:m.oldLine.content,type:In.DELETE_CHANGES}:Object.assign(Object.assign({},La(y.content,a)),{type:co(y.type)})),{number:y.oldNumber}):void 0,v=g!==void 0&&g.newNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.newLine.prefix,content:m.newLine.content,type:In.INSERT_CHANGES}:Object.assign(Object.assign({},La(g.content,a)),{type:co(g.type)})),{number:g.newNumber}):void 0,{left:_,right:T}=this.generateLineHtml(b,v);u.left+=_,u.right+=T}return u}generateLineHtml(a,r){return{left:this.generateSingleHtml(a),right:this.generateSingleHtml(r)}}generateSingleHtml(a){const r="d2h-code-side-linenumber",s="d2h-code-side-line";return this.hoganUtils.render(Ls,"line",{type:(a==null?void 0:a.type)||`${In.CONTEXT} d2h-emptyplaceholder`,lineClass:a!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:a!==void 0?s:`${s} d2h-code-side-emptyplaceholder`,prefix:(a==null?void 0:a.prefix)===" "?"&nbsp;":a==null?void 0:a.prefix,content:a==null?void 0:a.content,lineNumber:a==null?void 0:a.number})}}var Ru={},lg;function v_(){return lg||(lg=1,(function(l){(function(a){var r=/\S/,s=/\"/g,u=/\n/g,f=/\r/g,p=/\\/g,y=/\u2028/,g=/\u2029/;a.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},a.scan=function(q,J){var K=q.length,me=0,ce=1,Se=2,he=me,M=null,ee=null,fe="",we=[],Le=!1,S=0,z=0,B="{{",se="}}";function pe(){fe.length>0&&(we.push({tag:"_t",text:new String(fe)}),fe="")}function ve(){for(var Ne=!0,Ge=z;Ge<we.length;Ge++)if(Ne=a.tags[we[Ge].tag]<a.tags._v||we[Ge].tag=="_t"&&we[Ge].text.match(r)===null,!Ne)return!1;return Ne}function Z(Ne,Ge){if(pe(),Ne&&ve())for(var $e=z,Me;$e<we.length;$e++)we[$e].text&&((Me=we[$e+1])&&Me.tag==">"&&(Me.indent=we[$e].text.toString()),we.splice($e,1));else Ge||we.push({tag:`
56
56
  `});Le=!1,z=we.length}function ye(Ne,Ge){var $e="="+se,Me=Ne.indexOf($e,Ge),Dt=b(Ne.substring(Ne.indexOf("=",Ge)+1,Me)).split(" ");return B=Dt[0],se=Dt[Dt.length-1],Me+$e.length-1}for(J&&(J=J.split(" "),B=J[0],se=J[1]),S=0;S<K;S++)he==me?v(B,q,S)?(--S,pe(),he=ce):q.charAt(S)==`
57
57
  `?Z(Le):fe+=q.charAt(S):he==ce?(S+=B.length-1,ee=a.tags[q.charAt(S+1)],M=ee?q.charAt(S+1):"_v",M=="="?(S=ye(q,S),he=me):(ee&&S++,he=Se),Le=S):v(se,q,S)?(we.push({tag:M,n:b(fe),otag:B,ctag:se,i:M=="/"?Le-B.length:S+se.length}),fe="",S+=se.length-1,he=me,M=="{"&&(se=="}}"?S++:m(we[we.length-1]))):fe+=q.charAt(S);return Z(Le,!0),we};function m(R){R.n.substr(R.n.length-1)==="}"&&(R.n=R.n.substring(0,R.n.length-1))}function b(R){return R.trim?R.trim():R.replace(/^\s*|\s*$/g,"")}function v(R,q,J){if(q.charAt(J)!=R.charAt(0))return!1;for(var K=1,me=R.length;K<me;K++)if(q.charAt(J+K)!=R.charAt(K))return!1;return!0}var _={_t:!0,"\n":!0,$:!0,"/":!0};function T(R,q,J,K){var me=[],ce=null,Se=null,he=null;for(Se=J[J.length-1];R.length>0;){if(he=R.shift(),Se&&Se.tag=="<"&&!(he.tag in _))throw new Error("Illegal content in < super tag.");if(a.tags[he.tag]<=a.tags.$||N(he,K))J.push(he),he.nodes=T(R,he.tag,J,K);else if(he.tag=="/"){if(J.length===0)throw new Error("Closing tag without opener: /"+he.n);if(ce=J.pop(),he.n!=ce.n&&!D(he.n,ce.n,K))throw new Error("Nesting error: "+ce.n+" vs. "+he.n);return ce.end=he.i,me}else he.tag==`
58
58
  `&&(he.last=R.length==0||R[0].tag==`
59
- `);me.push(he)}if(J.length>0)throw new Error("missing closing tag: "+J.pop().n);return me}function N(R,q){for(var J=0,K=q.length;J<K;J++)if(q[J].o==R.n)return R.tag="#",!0}function D(R,q,J){for(var K=0,me=J.length;K<me;K++)if(J[K].c==R&&J[K].o==q)return!0}function x(R){var q=[];for(var J in R)q.push('"'+A(J)+'": function(c,p,t,i) {'+R[J]+"}");return"{ "+q.join(",")+" }"}function C(R){var q=[];for(var J in R.partials)q.push('"'+A(J)+'":{name:"'+A(R.partials[J].name)+'", '+C(R.partials[J])+"}");return"partials: {"+q.join(",")+"}, subs: "+x(R.subs)}a.stringify=function(R,q,J){return"{code: function (c,p,i) { "+a.wrapMain(R.code)+" },"+C(R)+"}"};var I=0;a.generate=function(R,q,J){I=0;var K={code:"",subs:{},partials:{}};return a.walk(R,K),J.asString?this.stringify(K,q,J):this.makeTemplate(K,q,J)},a.wrapMain=function(R){return'var t=this;t.b(i=i||"");'+R+"return t.fl();"},a.template=a.Template,a.makeTemplate=function(R,q,J){var K=this.makePartials(R);return K.code=new Function("c","p","i",this.wrapMain(R.code)),new this.template(K,q,this,J)},a.makePartials=function(R){var q,J={subs:{},partials:R.partials,name:R.name};for(q in J.partials)J.partials[q]=this.makePartials(J.partials[q]);for(q in R.subs)J.subs[q]=new Function("c","p","t","i",R.subs[q]);return J};function A(R){return R.replace(p,"\\\\").replace(s,'\\"').replace(u,"\\n").replace(f,"\\r").replace(y,"\\u2028").replace(g,"\\u2029")}function Q(R){return~R.indexOf(".")?"d":"f"}function V(R,q){var J="<"+(q.prefix||""),K=J+R.n+I++;return q.partials[K]={name:R.n,partials:{}},q.code+='t.b(t.rp("'+A(K)+'",c,p,"'+(R.indent||"")+'"));',K}a.codegen={"#":function(R,q){q.code+="if(t.s(t."+Q(R.n)+'("'+A(R.n)+'",c,p,1),c,p,0,'+R.i+","+R.end+',"'+R.otag+" "+R.ctag+'")){t.rs(c,p,function(c,p,t){',a.walk(R.nodes,q),q.code+="});c.pop();}"},"^":function(R,q){q.code+="if(!t.s(t."+Q(R.n)+'("'+A(R.n)+'",c,p,1),c,p,1,0,0,"")){',a.walk(R.nodes,q),q.code+="};"},">":V,"<":function(R,q){var J={partials:{},code:"",subs:{},inPartial:!0};a.walk(R.nodes,J);var K=q.partials[V(R,q)];K.subs=J.subs,K.partials=J.partials},$:function(R,q){var J={subs:{},code:"",partials:q.partials,prefix:R.n};a.walk(R.nodes,J),q.subs[R.n]=J.code,q.inPartial||(q.code+='t.sub("'+A(R.n)+'",c,p,i);')},"\n":function(R,q){q.code+=H('"\\n"'+(R.last?"":" + i"))},_v:function(R,q){q.code+="t.b(t.v(t."+Q(R.n)+'("'+A(R.n)+'",c,p,0)));'},_t:function(R,q){q.code+=H('"'+A(R.text)+'"')},"{":ie,"&":ie};function ie(R,q){q.code+="t.b(t.t(t."+Q(R.n)+'("'+A(R.n)+'",c,p,0)));'}function H(R){return"t.b("+R+");"}a.walk=function(R,q){for(var J,K=0,me=R.length;K<me;K++)J=a.codegen[R[K].tag],J&&J(R[K],q);return q},a.parse=function(R,q,J){return J=J||{},T(R,"",[],J.sectionTags||[])},a.cache={},a.cacheKey=function(R,q){return[R,!!q.asString,!!q.disableLambda,q.delimiters,!!q.modelGet].join("||")},a.compile=function(R,q){q=q||{};var J=a.cacheKey(R,q),K=this.cache[J];if(K){var me=K.partials;for(var ce in me)delete me[ce].instance;return K}return K=this.generate(this.parse(this.scan(R,q.delimiters),R,q),R,q),this.cache[J]=K}})(l)})(Au)),Au}var Ru={},lg;function v_(){return lg||(lg=1,(function(l){(function(a){a.Template=function(T,N,D,x){T=T||{},this.r=T.code||this.r,this.c=D,this.options=x||{},this.text=N||"",this.partials=T.partials||{},this.subs=T.subs||{},this.buf=""},a.Template.prototype={r:function(T,N,D){return""},v,t:b,render:function(N,D,x){return this.ri([N],D||{},x)},ri:function(T,N,D){return this.r(T,N,D)},ep:function(T,N){var D=this.partials[T],x=N[D.name];if(D.instance&&D.base==x)return D.instance;if(typeof x=="string"){if(!this.c)throw new Error("No compiler available.");x=this.c.compile(x,this.options)}if(!x)return null;if(this.partials[T].base=x,D.subs){N.stackText||(N.stackText={});for(key in D.subs)N.stackText[key]||(N.stackText[key]=this.activeSub!==void 0&&N.stackText[this.activeSub]?N.stackText[this.activeSub]:this.text);x=s(x,D.subs,D.partials,this.stackSubs,this.stackPartials,N.stackText)}return this.partials[T].instance=x,x},rp:function(T,N,D,x){var C=this.ep(T,D);return C?C.ri(N,D,x):""},rs:function(T,N,D){var x=T[T.length-1];if(!_(x)){D(T,N,this);return}for(var C=0;C<x.length;C++)T.push(x[C]),D(T,N,this),T.pop()},s:function(T,N,D,x,C,I,A){var Q;return _(T)&&T.length===0?!1:(typeof T=="function"&&(T=this.ms(T,N,D,x,C,I,A)),Q=!!T,!x&&Q&&N&&N.push(typeof T=="object"?T:N[N.length-1]),Q)},d:function(T,N,D,x){var C,I=T.split("."),A=this.f(I[0],N,D,x),Q=this.options.modelGet,V=null;if(T==="."&&_(N[N.length-2]))A=N[N.length-1];else for(var ie=1;ie<I.length;ie++)C=r(I[ie],A,Q),C!==void 0?(V=A,A=C):A="";return x&&!A?!1:(!x&&typeof A=="function"&&(N.push(V),A=this.mv(A,N,D),N.pop()),A)},f:function(T,N,D,x){for(var C=!1,I=null,A=!1,Q=this.options.modelGet,V=N.length-1;V>=0;V--)if(I=N[V],C=r(T,I,Q),C!==void 0){A=!0;break}return A?(!x&&typeof C=="function"&&(C=this.mv(C,N,D)),C):x?!1:""},ls:function(T,N,D,x,C,I){var A=this.options.delimiters;return this.options.delimiters=I,this.b(this.ct(b(T.call(N,C,D)),N,x)),this.options.delimiters=A,!1},ct:function(T,N,D){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(T,this.options).render(N,D)},b:function(T){this.buf+=T},fl:function(){var T=this.buf;return this.buf="",T},ms:function(T,N,D,x,C,I,A){var Q,V=N[N.length-1],ie=T.call(V);return typeof ie=="function"?x?!0:(Q=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(ie,V,N,D,Q.substring(C,I),A)):ie},mv:function(T,N,D){var x=N[N.length-1],C=T.call(x);return typeof C=="function"?this.ct(b(C.call(x)),x,D):C},sub:function(T,N,D,x){var C=this.subs[T];C&&(this.activeSub=T,C(N,D,this,x),this.activeSub=!1)}};function r(T,N,D){var x;return N&&typeof N=="object"&&(N[T]!==void 0?x=N[T]:D&&N.get&&typeof N.get=="function"&&(x=N.get(T))),x}function s(T,N,D,x,C,I){function A(){}A.prototype=T;function Q(){}Q.prototype=T.subs;var V,ie=new A;ie.subs=new Q,ie.subsText={},ie.buf="",x=x||{},ie.stackSubs=x,ie.subsText=I;for(V in N)x[V]||(x[V]=N[V]);for(V in x)ie.subs[V]=x[V];C=C||{},ie.stackPartials=C;for(V in D)C[V]||(C[V]=D[V]);for(V in C)ie.partials[V]=C[V];return ie}var u=/&/g,f=/</g,p=/>/g,y=/\'/g,g=/\"/g,m=/[&<>\"\']/;function b(T){return String(T??"")}function v(T){return T=b(T),m.test(T)?T.replace(u,"&amp;").replace(f,"&lt;").replace(p,"&gt;").replace(y,"&#39;").replace(g,"&quot;"):T}var _=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}})(l)})(Ru)),Ru}var ku,sg;function E_(){if(sg)return ku;sg=1;var l=y_();return l.Template=v_().Template,l.template=l.Template,ku=l,ku}var Qt=E_();const cn={};cn["file-summary-line"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<li class="d2h-file-list-line">'),s.b(`
59
+ `);me.push(he)}if(J.length>0)throw new Error("missing closing tag: "+J.pop().n);return me}function N(R,q){for(var J=0,K=q.length;J<K;J++)if(q[J].o==R.n)return R.tag="#",!0}function D(R,q,J){for(var K=0,me=J.length;K<me;K++)if(J[K].c==R&&J[K].o==q)return!0}function x(R){var q=[];for(var J in R)q.push('"'+A(J)+'": function(c,p,t,i) {'+R[J]+"}");return"{ "+q.join(",")+" }"}function C(R){var q=[];for(var J in R.partials)q.push('"'+A(J)+'":{name:"'+A(R.partials[J].name)+'", '+C(R.partials[J])+"}");return"partials: {"+q.join(",")+"}, subs: "+x(R.subs)}a.stringify=function(R,q,J){return"{code: function (c,p,i) { "+a.wrapMain(R.code)+" },"+C(R)+"}"};var I=0;a.generate=function(R,q,J){I=0;var K={code:"",subs:{},partials:{}};return a.walk(R,K),J.asString?this.stringify(K,q,J):this.makeTemplate(K,q,J)},a.wrapMain=function(R){return'var t=this;t.b(i=i||"");'+R+"return t.fl();"},a.template=a.Template,a.makeTemplate=function(R,q,J){var K=this.makePartials(R);return K.code=new Function("c","p","i",this.wrapMain(R.code)),new this.template(K,q,this,J)},a.makePartials=function(R){var q,J={subs:{},partials:R.partials,name:R.name};for(q in J.partials)J.partials[q]=this.makePartials(J.partials[q]);for(q in R.subs)J.subs[q]=new Function("c","p","t","i",R.subs[q]);return J};function A(R){return R.replace(p,"\\\\").replace(s,'\\"').replace(u,"\\n").replace(f,"\\r").replace(y,"\\u2028").replace(g,"\\u2029")}function Q(R){return~R.indexOf(".")?"d":"f"}function V(R,q){var J="<"+(q.prefix||""),K=J+R.n+I++;return q.partials[K]={name:R.n,partials:{}},q.code+='t.b(t.rp("'+A(K)+'",c,p,"'+(R.indent||"")+'"));',K}a.codegen={"#":function(R,q){q.code+="if(t.s(t."+Q(R.n)+'("'+A(R.n)+'",c,p,1),c,p,0,'+R.i+","+R.end+',"'+R.otag+" "+R.ctag+'")){t.rs(c,p,function(c,p,t){',a.walk(R.nodes,q),q.code+="});c.pop();}"},"^":function(R,q){q.code+="if(!t.s(t."+Q(R.n)+'("'+A(R.n)+'",c,p,1),c,p,1,0,0,"")){',a.walk(R.nodes,q),q.code+="};"},">":V,"<":function(R,q){var J={partials:{},code:"",subs:{},inPartial:!0};a.walk(R.nodes,J);var K=q.partials[V(R,q)];K.subs=J.subs,K.partials=J.partials},$:function(R,q){var J={subs:{},code:"",partials:q.partials,prefix:R.n};a.walk(R.nodes,J),q.subs[R.n]=J.code,q.inPartial||(q.code+='t.sub("'+A(R.n)+'",c,p,i);')},"\n":function(R,q){q.code+=H('"\\n"'+(R.last?"":" + i"))},_v:function(R,q){q.code+="t.b(t.v(t."+Q(R.n)+'("'+A(R.n)+'",c,p,0)));'},_t:function(R,q){q.code+=H('"'+A(R.text)+'"')},"{":ie,"&":ie};function ie(R,q){q.code+="t.b(t.t(t."+Q(R.n)+'("'+A(R.n)+'",c,p,0)));'}function H(R){return"t.b("+R+");"}a.walk=function(R,q){for(var J,K=0,me=R.length;K<me;K++)J=a.codegen[R[K].tag],J&&J(R[K],q);return q},a.parse=function(R,q,J){return J=J||{},T(R,"",[],J.sectionTags||[])},a.cache={},a.cacheKey=function(R,q){return[R,!!q.asString,!!q.disableLambda,q.delimiters,!!q.modelGet].join("||")},a.compile=function(R,q){q=q||{};var J=a.cacheKey(R,q),K=this.cache[J];if(K){var me=K.partials;for(var ce in me)delete me[ce].instance;return K}return K=this.generate(this.parse(this.scan(R,q.delimiters),R,q),R,q),this.cache[J]=K}})(l)})(Ru)),Ru}var ku={},sg;function E_(){return sg||(sg=1,(function(l){(function(a){a.Template=function(T,N,D,x){T=T||{},this.r=T.code||this.r,this.c=D,this.options=x||{},this.text=N||"",this.partials=T.partials||{},this.subs=T.subs||{},this.buf=""},a.Template.prototype={r:function(T,N,D){return""},v,t:b,render:function(N,D,x){return this.ri([N],D||{},x)},ri:function(T,N,D){return this.r(T,N,D)},ep:function(T,N){var D=this.partials[T],x=N[D.name];if(D.instance&&D.base==x)return D.instance;if(typeof x=="string"){if(!this.c)throw new Error("No compiler available.");x=this.c.compile(x,this.options)}if(!x)return null;if(this.partials[T].base=x,D.subs){N.stackText||(N.stackText={});for(key in D.subs)N.stackText[key]||(N.stackText[key]=this.activeSub!==void 0&&N.stackText[this.activeSub]?N.stackText[this.activeSub]:this.text);x=s(x,D.subs,D.partials,this.stackSubs,this.stackPartials,N.stackText)}return this.partials[T].instance=x,x},rp:function(T,N,D,x){var C=this.ep(T,D);return C?C.ri(N,D,x):""},rs:function(T,N,D){var x=T[T.length-1];if(!_(x)){D(T,N,this);return}for(var C=0;C<x.length;C++)T.push(x[C]),D(T,N,this),T.pop()},s:function(T,N,D,x,C,I,A){var Q;return _(T)&&T.length===0?!1:(typeof T=="function"&&(T=this.ms(T,N,D,x,C,I,A)),Q=!!T,!x&&Q&&N&&N.push(typeof T=="object"?T:N[N.length-1]),Q)},d:function(T,N,D,x){var C,I=T.split("."),A=this.f(I[0],N,D,x),Q=this.options.modelGet,V=null;if(T==="."&&_(N[N.length-2]))A=N[N.length-1];else for(var ie=1;ie<I.length;ie++)C=r(I[ie],A,Q),C!==void 0?(V=A,A=C):A="";return x&&!A?!1:(!x&&typeof A=="function"&&(N.push(V),A=this.mv(A,N,D),N.pop()),A)},f:function(T,N,D,x){for(var C=!1,I=null,A=!1,Q=this.options.modelGet,V=N.length-1;V>=0;V--)if(I=N[V],C=r(T,I,Q),C!==void 0){A=!0;break}return A?(!x&&typeof C=="function"&&(C=this.mv(C,N,D)),C):x?!1:""},ls:function(T,N,D,x,C,I){var A=this.options.delimiters;return this.options.delimiters=I,this.b(this.ct(b(T.call(N,C,D)),N,x)),this.options.delimiters=A,!1},ct:function(T,N,D){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(T,this.options).render(N,D)},b:function(T){this.buf+=T},fl:function(){var T=this.buf;return this.buf="",T},ms:function(T,N,D,x,C,I,A){var Q,V=N[N.length-1],ie=T.call(V);return typeof ie=="function"?x?!0:(Q=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(ie,V,N,D,Q.substring(C,I),A)):ie},mv:function(T,N,D){var x=N[N.length-1],C=T.call(x);return typeof C=="function"?this.ct(b(C.call(x)),x,D):C},sub:function(T,N,D,x){var C=this.subs[T];C&&(this.activeSub=T,C(N,D,this,x),this.activeSub=!1)}};function r(T,N,D){var x;return N&&typeof N=="object"&&(N[T]!==void 0?x=N[T]:D&&N.get&&typeof N.get=="function"&&(x=N.get(T))),x}function s(T,N,D,x,C,I){function A(){}A.prototype=T;function Q(){}Q.prototype=T.subs;var V,ie=new A;ie.subs=new Q,ie.subsText={},ie.buf="",x=x||{},ie.stackSubs=x,ie.subsText=I;for(V in N)x[V]||(x[V]=N[V]);for(V in x)ie.subs[V]=x[V];C=C||{},ie.stackPartials=C;for(V in D)C[V]||(C[V]=D[V]);for(V in C)ie.partials[V]=C[V];return ie}var u=/&/g,f=/</g,p=/>/g,y=/\'/g,g=/\"/g,m=/[&<>\"\']/;function b(T){return String(T??"")}function v(T){return T=b(T),m.test(T)?T.replace(u,"&amp;").replace(f,"&lt;").replace(p,"&gt;").replace(y,"&#39;").replace(g,"&quot;"):T}var _=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}})(l)})(ku)),ku}var Ou,rg;function __(){if(rg)return Ou;rg=1;var l=v_();return l.Template=E_().Template,l.template=l.Template,Ou=l,Ou}var Qt=__();const cn={};cn["file-summary-line"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<li class="d2h-file-list-line">'),s.b(`
60
60
  `+r),s.b(' <span class="d2h-file-name-wrapper">'),s.b(`
61
61
  `+r),s.b(s.rp("<fileIcon0",l,a," ")),s.b(' <a href="#'),s.b(s.v(s.f("fileHtmlId",l,a,0))),s.b('" class="d2h-file-name">'),s.b(s.v(s.f("fileName",l,a,0))),s.b("</a>"),s.b(`
62
62
  `+r),s.b(' <span class="d2h-file-stats">'),s.b(`
@@ -156,30 +156,30 @@ Error generating stack: `+i.message+`
156
156
  `+r),s.b(" </div>"),s.b(`
157
157
  `+r),s.b(" </div>"),s.b(`
158
158
  `+r),s.b(" </div>"),s.b(`
159
- `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});cn["tag-file-added"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),s.fl()},partials:{},subs:{}});cn["tag-file-changed"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),s.fl()},partials:{},subs:{}});cn["tag-file-deleted"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),s.fl()},partials:{},subs:{}});cn["tag-file-renamed"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),s.fl()},partials:{},subs:{}});class __{constructor({compiledTemplates:a={},rawTemplates:r={}}){const s=Object.entries(r).reduce((u,[f,p])=>{const y=Qt.compile(p,{asString:!1});return Object.assign(Object.assign({},u),{[f]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},cn),a),s)}static compile(a){return Qt.compile(a,{asString:!1})}render(a,r,s,u,f){const p=this.templateKey(a,r);try{return this.preCompiledTemplates[p].render(s,u,f)}catch{throw new Error(`Could not find template to render '${p}'`)}}template(a,r){return this.preCompiledTemplates[this.templateKey(a,r)]}templateKey(a,r){return`${a}-${r}`}}const S_=Object.assign(Object.assign(Object.assign({},Ib),Hb),{outputFormat:qE.LINE_BY_LINE,drawFileList:!0});function w_(l,a={}){const r=Object.assign(Object.assign({},S_),a),s=typeof l=="string"?VE(l,r):l,u=new __(r),{colorScheme:f}=r,p={colorScheme:f},y=r.drawFileList?new u_(u,p).render(s):"",g=r.outputFormat==="side-by-side"?new b_(u,r).render(s):new h_(u,r).render(s);return y+g}var Ou=Lb();function ja(l){const a=[],r=l.split(`
159
+ `+r),s.b("</div>"),s.fl()},partials:{},subs:{}});cn["tag-file-added"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),s.fl()},partials:{},subs:{}});cn["tag-file-changed"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),s.fl()},partials:{},subs:{}});cn["tag-file-deleted"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),s.fl()},partials:{},subs:{}});cn["tag-file-renamed"]=new Qt.Template({code:function(l,a,r){var s=this;return s.b(r=r||""),s.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),s.fl()},partials:{},subs:{}});class S_{constructor({compiledTemplates:a={},rawTemplates:r={}}){const s=Object.entries(r).reduce((u,[f,p])=>{const y=Qt.compile(p,{asString:!1});return Object.assign(Object.assign({},u),{[f]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},cn),a),s)}static compile(a){return Qt.compile(a,{asString:!1})}render(a,r,s,u,f){const p=this.templateKey(a,r);try{return this.preCompiledTemplates[p].render(s,u,f)}catch{throw new Error(`Could not find template to render '${p}'`)}}template(a,r){return this.preCompiledTemplates[this.templateKey(a,r)]}templateKey(a,r){return`${a}-${r}`}}const w_=Object.assign(Object.assign(Object.assign({},Hb),qb),{outputFormat:GE.LINE_BY_LINE,drawFileList:!0});function N_(l,a={}){const r=Object.assign(Object.assign({},w_),a),s=typeof l=="string"?QE(l,r):l,u=new S_(r),{colorScheme:f}=r,p={colorScheme:f},y=r.drawFileList?new d_(u,p).render(s):"",g=r.outputFormat==="side-by-side"?new y_(u,r).render(s):new p_(u,r).render(s);return y+g}var Cu=zb();function ja(l){const a=[],r=l.split(`
160
160
  `);let s=null,u=null;const f=()=>{s&&u&&a.push({path:u,patch:s.join(`
161
- `)}),s=null,u=null};for(const p of r)if(p.startsWith("diff --git ")){f(),s=[p];const y=p.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:p.slice(11)}else if(s&&(s.push(p),p.startsWith("--- a/")&&u==="/dev/null"&&(u=p.slice(6)),p==="+++ /dev/null")){const y=s.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return f(),a}function N_(l,a){const r=new Set(a);return ja(l).filter(s=>r.has(s.path)).map(s=>s.patch).join(`
162
- `)}function T_(l){return x_(l)}function x_(l,a){const s=new Map;for(const{path:u,patch:f}of ja(l)){const p=new Map;let y=0,g=!1;const m=f.split(`
163
- `);for(let b=0;b<m.length;b++){const v=m[b],_=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){y=Number(_[2]),g=!0;continue}g&&(v===""&&b===m.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(p.set(y,v===""?"":v.slice(1)),y++))}s.set(u,p)}return s}function A_(l){const a=new Map;for(const[r,s]of T_(l))a.set(r,new Set(s.keys()));return a}function R_(l,a){const r=new Set(a.flatMap(s=>s.files));return ja(l).map(s=>s.path).filter(s=>!r.has(s))}function k_(l){return new Map(ja(l).map(a=>[a.path,a.patch.split(`
164
- `).length]))}function O_(l){const a=l.split(`
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 T_(l,a){const r=new Set(a);return ja(l).filter(s=>r.has(s.path)).map(s=>s.patch).join(`
162
+ `)}function x_(l){return A_(l)}function A_(l,a){const s=new Map;for(const{path:u,patch:f}of ja(l)){const p=new Map;let y=0,g=!1;const m=f.split(`
163
+ `);for(let b=0;b<m.length;b++){const v=m[b],_=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){y=Number(_[2]),g=!0;continue}g&&(v===""&&b===m.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(p.set(y,v===""?"":v.slice(1)),y++))}s.set(u,p)}return s}function R_(l){const a=new Map;for(const[r,s]of x_(l))a.set(r,new Set(s.keys()));return a}function k_(l,a){const r=new Set(a.flatMap(s=>s.files));return ja(l).map(s=>s.path).filter(s=>!r.has(s))}function O_(l){return new Map(ja(l).map(a=>[a.path,a.patch.split(`
164
+ `).length]))}function C_(l){const a=l.split(`
165
165
  `),r=a.findIndex(p=>p.startsWith("@@")),s=r<0?[]:a.slice(r).filter(p=>/^[+\- ]/.test(p)),u=(s.length>0?s:a).join(`
166
- `);let f=2166136261;for(let p=0;p<u.length;p++)f^=u.charCodeAt(p),f=Math.imul(f,16777619);return(f>>>0).toString(16).padStart(8,"0")}const qb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function rg(l,a){return a?`${qb[a]} **${a}** — ${l}`:l}const C_=["inbox","awaiting","drafted"],Ad=["requests","settled","sent","archived"],Cu={inbox:{label:"inbox",title:"Everything still waiting on you — drafted reviews and PRs the poll found but nobody has read."},awaiting:{label:"awaiting",title:"Found by the inbox poll, not drafted yet — or a run is in flight right now."},drafted:{label:"drafted",title:"A draft is written and waiting for you to read it."},requests:{label:"open requests",title:"GitHub still lists you as a requested reviewer on these. You settled or archived them here without submitting a review, so they also appear under whichever tab you filed them in."},settled:{label:"settled",title:"You marked these reviewed or skipped, or handed them to somebody else. No review of yours was sent to GitHub."},sent:{label:"sent",title:"Reviews that reached GitHub. Kept here as a record."},archived:{label:"archived",title:"PRs that have since been merged or closed."}};function og(l){return l.status==="awaiting"||l.status==="running"?"awaiting":l.status==="sent"?"sent":"drafted"}const Hs=l=>!!l.pr.state&&l.pr.state!=="OPEN",cg=["ready","awaiting","running","failed","reviewed","skipped","sent"];function Ul(l){return[...l].sort((a,r)=>cg.indexOf(a.status)-cg.indexOf(r.status)||r.updatedAt.localeCompare(a.updatedAt))}const Gb=["sent","reviewed","skipped"];function qs(l){return Ul(l.filter(a=>!Hs(a)&&!Gb.includes(a.status)))}function M_(l,a,r){return qs(l).filter(s=>s.key===a||!r.has(s.key))}function D_(l,a){if(!(a!=null&&a.enabled)||a.awaiting.length===0)return[];const r=new Set(qs(l).map(u=>u.id)),s=new Set(a.awaiting.map(u=>u.id));return Ul(l.filter(u=>s.has(u.id)&&!r.has(u.id)))}const L_=(l,a)=>a.some(r=>r.id===l.id);function z_(l,a){const r=l.filter(u=>!Hs(u)),s=Ul(r.filter(u=>!Gb.includes(u.status)));return{inbox:s,awaiting:s.filter(u=>og(u)==="awaiting"),drafted:s.filter(u=>og(u)==="drafted"),requests:D_(l,a),settled:Ul(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Ul(r.filter(u=>u.status==="sent")),archived:Ul(l.filter(Hs))}}function j_(l,a){return Ad.includes(l)&&a[l].length===0?"inbox":l}function $b(l){var a,r;return l.reason==="own-review"?((a=l.review)==null?void 0:a.at)??l.at:l.reason==="own-reply"?((r=l.reply)==null?void 0:r.at)??l.at:l.at}const co={"own-review":{tag:"reviewed on GitHub",meta:l=>`you reviewed this on GitHub on ${l}`,reasoning:"GitHub stopped asking you for a review and already had one of yours, so this draft was filed rather than left in the inbox. It was never sent — open it to read or send it.",requested:"You submitted a review on GitHub, outside cerber, so this draft was filed."},"own-reply":{tag:"replied on GitHub",meta:l=>`you replied on GitHub on ${l}`,reasoning:"You answered in the PR conversation and nobody has answered back, so the draft was filed rather than left in the inbox. GitHub does not count a comment as a review, but whoever opened the PR is the one holding it. Nothing was sent — open it to read or send it.",requested:"You commented on the PR and nobody answered, so this draft was filed."},"request-withdrawn":{tag:"request withdrawn",meta:l=>`nobody was asking for this any more on ${l}`,reasoning:"Whoever asked for this review took the request back, and you had said nothing on the PR, so the draft was filed rather than left in the inbox. It is still a review — open it to read or send it.",requested:"The review request had gone away when this draft was filed."}};function U_(l){var a;return Hs(l)?((a=l.pr.state)==null?void 0:a.toLowerCase())??null:l.handoff?`handed to @${l.handoff.to}`:l.filed?co[l.filed.reason].tag:l.status==="reviewed"||l.status==="skipped"?l.status:null}function B_(l,a){var r;return a!=null&&a.enabled?((r=a.awaiting.find(s=>s.id===l.id))==null?void 0:r.reply)??"unknown":"unknown"}const I_={none:{label:"you haven't replied",title:"GitHub still lists you as a requested reviewer and you have said nothing on the PR — no review, no comment. Whoever opened it is waiting on you."},you:{label:"waiting on them",title:"You had the last word in the conversation but never submitted a review, so GitHub still lists you as a requested reviewer. Nothing is blocked on you until they answer."},them:{label:"they replied last",title:"You commented and someone has answered since, so the conversation is back with you — and GitHub still lists you as a requested reviewer, because a comment is not a review."},unknown:{label:"unanswered on GitHub",title:"You have never submitted a review on GitHub for this PR, so it still lists you as a requested reviewer. Cerber could not read the conversation, so it can't say whether you replied there."}},H_=l=>I_[l];function q_(l){const a=Vd[l.event]??l.event,r=new Date(l.at).toLocaleDateString();return{label:l.auto?"auto-sent a review":"you replied with a review",title:`${l.auto?"The daemon auto-sent this review":"You sent this review"} to GitHub on ${r} as ${a}. The last inbox poll still listed a review request for you — a request can lag a send, and GitHub holds some open even after one.`}}function G_(l){const a=co[l.reason],r=new Date($b(l)).toLocaleDateString();return{label:a.tag,title:`${a.requested} That was ${r}. GitHub lists a review request for you now — most likely the author has asked for another look since. Re-review it to draft against the current head.`}}function $_(l){const a=new Date(l.at).toLocaleDateString();return{label:`handed to @${l.to}`,title:l.withdrewYours?`You handed this to @${l.to} on ${a} and cerber took your own review request off the PR. GitHub still lists one for you — most likely the last inbox poll ran before the swap, or somebody has asked you again since.`:`You handed this to @${l.to} on ${a}, but cerber could not take your own review request off the PR — so GitHub is asking both of you. Remove yourself on GitHub if that is not what you wanted.`}}const Y_=(l,a)=>l.handoff?$_(l.handoff):l.sent?q_(l.sent):l.filed?G_(l.filed):H_(a);function F_(l){const a=l.length,r=a===1?"1 review request":`${a} review requests`,s=l.some(Hs)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${s} ${a===1?"it":"them"} here without submitting a review, so ${a===1?"it is":"they are"} under open requests, tagged with whose move it is.`}function Yb(l,a=Date.now()){const r=Math.max(0,Math.round((a-new Date(l).getTime())/1e3));return r<45?"now":r<3600?`${Math.round(r/60)}m`:r<86400?`${Math.round(r/3600)}h`:`${Math.round(r/86400)}d`}const P_={approve:"approve",comment:"comment",request_changes:"changes"},Vd={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function K_(l){return l.status==="running"?{label:"reviewing…",tone:"running"}:l.status==="awaiting"?{label:"review now",tone:"awaiting"}:l.status==="failed"?{label:"run failed",tone:"failed"}:l.sent?{label:`sent · ${Vd[l.sent.event]??l.sent.event}`,tone:"sent"}:l.verdict?{label:`${l.verdict.recommendation.replace("_"," ")} ${l.verdict.confidence}%`,tone:P_[l.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function Z_(l){return l.status==="running"||l.status==="awaiting"||l.status==="failed"||!l.verdict&&!l.sent?"—":String(l.commentCount)}function Mu(l){return l.trusted?"ran the code":l.withSource?"read the full source":"read the diff only"}function X_(l){if(l.commentCount===0)return"no comments drafted";const a=[`${l.commentCount} comment${l.commentCount===1?"":"s"} drafted`];return l.driftedCount&&a.push(`${l.driftedCount} off-diff`),l.gradedCount&&a.push(l.blockerCount?`${l.blockerCount} blocker${l.blockerCount===1?"":"s"}`:"no blockers"),a.join(", ")}function V_(l,a,r=Date.now()){var u,f;if(l.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Yb(l.updatedAt,r)} ago`,Mu(l)]};if(l.status==="awaiting")return{reasoning:"Found by the inbox poll, not drafted yet — auto-review was off when it arrived, or it is still queued behind another run.",meta:["no run yet","press r to review now"]};if(l.status==="failed")return{reasoning:l.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(l.sent)return{reasoning:`Sent to GitHub as ${Vd[l.sent.event]??l.sent.event} on ${new Date(l.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue, though a re-review can draft against the current head.`+(l.handoff?` GitHub asks @${l.handoff.to} for it now.`:""),meta:[...l.handoff?[`you handed this to @${l.handoff.to}`]:[],l.sent.auto?"auto-sent by the daemon":"sent by you",Mu(l)]};const s=[Mu(l)];if(l.handoff?s.unshift(`you handed this to @${l.handoff.to} on ${new Date(l.handoff.at).toLocaleDateString()}`):l.filed?s.unshift(co[l.filed.reason].meta(new Date($b(l.filed)).toLocaleDateString())):l.status==="reviewed"?s.unshift("you marked this reviewed"):l.status==="skipped"&&s.unshift("you skipped this"),l.costUsd!=null&&s.push(`≈$${l.costUsd.toFixed(2)} at API rates`),s.push(X_(l)),a!=null&&a.enabled&&l.status==="ready"&&((u=l.verdict)==null?void 0:u.recommendation)==="approve"&&s.push(l.verdict.confidence>=a.autoSendThreshold?`auto-send candidate at ${l.verdict.confidence}%`:`below the ${a.autoSendThreshold}% auto-send bar`),l.handoff){const p=l.commentCount>0||l.verdict!=null;return{reasoning:`GitHub asks @${l.handoff.to} for this review now${l.handoff.withdrewYours?" and no longer asks you":" — and still asks you, because your own request could not be taken off"}. `+(p?"The draft was never sent: it is still yours to read or send.":"Nothing was drafted here, and nothing was sent."),meta:s}}return l.filed?{reasoning:co[l.filed.reason].reasoning,meta:s}:{reasoning:((f=l.verdict)==null?void 0:f.reasoning)??"This review has a draft but no verdict.",meta:s}}const Q_="/favicon.svg",W_="/favicon-dot.svg",J_=l=>qs(l).length>0,e0=l=>l?W_:Q_;function t0(l){const a=e0(J_(l)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===a||r.setAttribute("href",a)}async function qt(l,a){const r=await fetch(l,{...a,headers:a!=null&&a.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let s=`${(a==null?void 0:a.method)??"GET"} ${l}: ${r.status}`;try{const u=await r.json();u.error&&(s=u.error)}catch{}throw new Error(s)}return r.json()}const Qd=async()=>{const l=await qt("/api/reviews");return t0(l),l},Fb=()=>qt("/api/daemon"),ug=l=>qt(`/api/reviews/${encodeURIComponent(l)}`),n0=(l,a,r)=>qt(`/api/reviews/${encodeURIComponent(l)}/viewed`,{method:"PUT",body:JSON.stringify({path:a,fingerprint:r})}),io=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}`,{method:"PATCH",body:JSON.stringify(a)}),a0=(l,a,r)=>qt(`/api/reviews/${encodeURIComponent(l)}/comments/${a}`,{method:"PATCH",body:JSON.stringify(r)}),i0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/comments`,{method:"POST",body:JSON.stringify(a)}),l0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/comments/${a}`,{method:"DELETE"}),s0=l=>qt("/api/reviews",{method:"POST",body:JSON.stringify({input:l})}),r0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/refresh`,{method:"POST"}),Pb=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/rerun`+(a===void 0?"":`?source=${a?"1":"0"}`),{method:"POST"}),Rd=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/chat`,{method:"POST",body:JSON.stringify(a)}),o0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/chat/steer`,{method:"POST",body:JSON.stringify({message:a})}),c0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/chat/pending`,{method:"DELETE"}),u0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),Kb=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/send-preview?event=${a}`),d0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/send`,{method:"POST",body:JSON.stringify({event:a,confirm:!0})}),f0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/raised`,{method:"POST"}),h0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/reviewers`),p0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/handoff`,{method:"POST",body:JSON.stringify({...a,confirm:!0})}),m0=l=>`/api/reviews/${encodeURIComponent(l)}/export`,g0=()=>qt("/api/config"),Du=(l,a=!1)=>qt("/api/config/trust",{method:"POST",body:JSON.stringify({rule:l,remove:a})}),Lu=l=>qt("/api/config/daemon",{method:"POST",body:JSON.stringify(l)}),Zb="cerber.handoff.recent",Xb=5,b0=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,Vb=l=>b0.test(l);function y0(l){try{const a=JSON.parse(l??"");return Array.isArray(a)?a.filter(r=>typeof r=="string"&&Vb(r)).slice(0,Xb):[]}catch{return[]}}function Qb(){try{return y0(localStorage.getItem(Zb))}catch{return[]}}function v0(l,a){const r=l.filter(s=>s.toLowerCase()!==a.toLowerCase());return[a,...r].slice(0,Xb)}function E0(l){const a=v0(Qb(),l);try{localStorage.setItem(Zb,JSON.stringify(a))}catch{}return a}const kd=l=>l.trim().replace(/^@/,"");function _0(l,a){const r=new Set,s=[];for(const u of[...a,...l]){const f=u.toLowerCase();r.has(f)||(r.add(f),s.push({login:u,recent:a.some(p=>p.toLowerCase()===f)}))}return s}function S0(l,a){const r=kd(a).toLowerCase();if(!r)return l;const s=l.filter(p=>p.login.toLowerCase().includes(r)),u=p=>p.login.toLowerCase()===r,f=p=>p.login.toLowerCase().startsWith(r);return[...s.filter(u),...s.filter(p=>!u(p)&&f(p)),...s.filter(p=>!f(p))]}function zu(l){return l.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function Od(l){return l.nodeName.toLowerCase()}function dg(l){const a=[],r=(s,u)=>{for(let f=s.firstChild;f;f=f.nextSibling)f.nodeType===3&&f.nodeValue!==null?u+=f.nodeValue.length:f.nodeType===1&&(a.push({event:"start",offset:u,node:f}),u=r(f,u),Od(f).match(/br|hr|img|input/)||a.push({event:"stop",offset:u,node:f}));return u};return r(l,0),a}function w0(l,a,r){let s=0,u="";const f=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!l.length||!a.length?l.length?l:a:l[0].offset!==a[0].offset?l[0].offset<a[0].offset?l:a:a[0].event==="start"?l:a}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${Od(v)} ${Array().map.call(v.attributes,_=>`${_.nodeName}="${zu(_.value).replace(/"/g,"&quot;")}"`).join(" ")}>`}function m(v){u+="</"+Od(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;l.length||a.length;){let v=y();if(u+=zu(r.substring(s,v[0].offset)),s=v[0].offset,v===l){f.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();while(v===l&&v.length&&v[0].offset===s);f.reverse().forEach(g)}else v[0].event==="start"?f.push(v[0].node):f.pop(),b(v.splice(0,1)[0])}return u+zu(r.substr(s))}const N0={"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 T0(l){var a;return(a=N0[l])!==null&&a!==void 0?a:"plaintext"}var ju,fg;function x0(){if(fg)return ju;fg=1;function l(O){return O instanceof Map?O.clear=O.delete=O.set=function(){throw new Error("map is read-only")}:O instanceof Set&&(O.add=O.clear=O.delete=function(){throw new Error("set is read-only")}),Object.freeze(O),Object.getOwnPropertyNames(O).forEach(ne=>{const be=O[ne],je=typeof be;(je==="object"||je==="function")&&!Object.isFrozen(be)&&l(be)}),O}class a{constructor(ne){ne.data===void 0&&(ne.data={}),this.data=ne.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(O){return O.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(O,...ne){const be=Object.create(null);for(const je in O)be[je]=O[je];return ne.forEach(function(je){for(const Qe in je)be[Qe]=je[Qe]}),be}const u="</span>",f=O=>!!O.scope,p=(O,{prefix:ne})=>{if(O.startsWith("language:"))return O.replace("language:","language-");if(O.includes(".")){const be=O.split(".");return[`${ne}${be.shift()}`,...be.map((je,Qe)=>`${je}${"_".repeat(Qe+1)}`)].join(" ")}return`${ne}${O}`};class y{constructor(ne,be){this.buffer="",this.classPrefix=be.classPrefix,ne.walk(this)}addText(ne){this.buffer+=r(ne)}openNode(ne){if(!f(ne))return;const be=p(ne.scope,{prefix:this.classPrefix});this.span(be)}closeNode(ne){f(ne)&&(this.buffer+=u)}value(){return this.buffer}span(ne){this.buffer+=`<span class="${ne}">`}}const g=(O={})=>{const ne={children:[]};return Object.assign(ne,O),ne};class m{constructor(){this.rootNode=g(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ne){this.top.children.push(ne)}openNode(ne){const be=g({scope:ne});this.add(be),this.stack.push(be)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ne){return this.constructor._walk(ne,this.rootNode)}static _walk(ne,be){return typeof be=="string"?ne.addText(be):be.children&&(ne.openNode(be),be.children.forEach(je=>this._walk(ne,je)),ne.closeNode(be)),ne}static _collapse(ne){typeof ne!="string"&&ne.children&&(ne.children.every(be=>typeof be=="string")?ne.children=[ne.children.join("")]:ne.children.forEach(be=>{m._collapse(be)}))}}class b extends m{constructor(ne){super(),this.options=ne}addText(ne){ne!==""&&this.add(ne)}startScope(ne){this.openNode(ne)}endScope(){this.closeNode()}__addSublanguage(ne,be){const je=ne.root;be&&(je.scope=`language:${be}`),this.add(je)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(O){return O?typeof O=="string"?O:O.source:null}function _(O){return D("(?=",O,")")}function T(O){return D("(?:",O,")*")}function N(O){return D("(?:",O,")?")}function D(...O){return O.map(be=>v(be)).join("")}function x(O){const ne=O[O.length-1];return typeof ne=="object"&&ne.constructor===Object?(O.splice(O.length-1,1),ne):{}}function C(...O){return"("+(x(O).capture?"":"?:")+O.map(je=>v(je)).join("|")+")"}function I(O){return new RegExp(O.toString()+"|").exec("").length-1}function A(O,ne){const be=O&&O.exec(ne);return be&&be.index===0}const Q=new RegExp(C(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function V(O,{joinWith:ne}){let be=0;return O.map(je=>{be+=1;const Qe=be;let st=v(je),Ae="";for(;st.length>0;){const _e=Q.exec(st);if(!_e){Ae+=st;break}Ae+=st.substring(0,_e.index),st=st.substring(_e.index+_e[0].length),_e[0][0]==="\\"&&_e[1]?Ae+="\\"+String(Number(_e[1])+Qe):(Ae+=_e[0],(_e[0]==="("||/^\(\?[<']/.test(_e[0]))&&be++)}return Ae}).map(je=>`(${je})`).join(ne)}const ie=/\b\B/,H="[a-zA-Z]\\w*",R="[a-zA-Z_]\\w*",q="\\b\\d+(\\.\\d+)?",J="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",me="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ce=(O={})=>{const ne=/^#![ ]*\//;return O.binary&&(O.begin=D(ne,/.*\b/,O.binary,/\b.*/)),s({scope:"meta",begin:ne,end:/$/,relevance:0,"on:begin":(be,je)=>{be.index!==0&&je.ignoreMatch()}},O)},Se={begin:"\\\\[\\s\\S]",relevance:0},he={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Se]},M={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Se]},ee={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},fe=function(O,ne,be={}){const je=s({scope:"comment",begin:O,end:ne,contains:[]},be);je.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Qe=C("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return je.contains.push({begin:D(/[ ]+/,"(",Qe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),je},we=fe("//","$"),Le=fe("/\\*","\\*/"),S=fe("#","$"),z={scope:"number",begin:q,relevance:0},B={scope:"number",begin:J,relevance:0},se={scope:"number",begin:K,relevance:0},pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Se,{begin:/\[/,end:/\]/,relevance:0,contains:[Se]}]},ve={scope:"title",begin:H,relevance:0},Z={scope:"title",begin:R,relevance:0},ye={begin:"\\.\\s*"+R,relevance:0};var Ge=Object.freeze({__proto__:null,APOS_STRING_MODE:he,BACKSLASH_ESCAPE:Se,BINARY_NUMBER_MODE:se,BINARY_NUMBER_RE:K,COMMENT:fe,C_BLOCK_COMMENT_MODE:Le,C_LINE_COMMENT_MODE:we,C_NUMBER_MODE:B,C_NUMBER_RE:J,END_SAME_AS_BEGIN:function(O){return Object.assign(O,{"on:begin":(ne,be)=>{be.data._beginMatch=ne[1]},"on:end":(ne,be)=>{be.data._beginMatch!==ne[1]&&be.ignoreMatch()}})},HASH_COMMENT_MODE:S,IDENT_RE:H,MATCH_NOTHING_RE:ie,METHOD_GUARD:ye,NUMBER_MODE:z,NUMBER_RE:q,PHRASAL_WORDS_MODE:ee,QUOTE_STRING_MODE:M,REGEXP_MODE:pe,RE_STARTERS_RE:me,SHEBANG:ce,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:R,UNDERSCORE_TITLE_MODE:Z});function $e(O,ne){O.input[O.index-1]==="."&&ne.ignoreMatch()}function Me(O,ne){O.className!==void 0&&(O.scope=O.className,delete O.className)}function Dt(O,ne){ne&&O.beginKeywords&&(O.begin="\\b("+O.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",O.__beforeBegin=$e,O.keywords=O.keywords||O.beginKeywords,delete O.beginKeywords,O.relevance===void 0&&(O.relevance=0))}function Pe(O,ne){Array.isArray(O.illegal)&&(O.illegal=C(...O.illegal))}function Hn(O,ne){if(O.match){if(O.begin||O.end)throw new Error("begin & end are not supported with match");O.begin=O.match,delete O.match}}function it(O,ne){O.relevance===void 0&&(O.relevance=1)}const fn=(O,ne)=>{if(!O.beforeMatch)return;if(O.starts)throw new Error("beforeMatch cannot be used with starts");const be=Object.assign({},O);Object.keys(O).forEach(je=>{delete O[je]}),O.keywords=be.keywords,O.begin=D(be.beforeMatch,_(be.begin)),O.starts={relevance:0,contains:[Object.assign(be,{endsParent:!0})]},O.relevance=0,delete be.beforeMatch},Ot=["of","and","for","in","not","or","if","then","parent","list","value"],Gt="keyword";function Wt(O,ne,be=Gt){const je=Object.create(null);return typeof O=="string"?Qe(be,O.split(" ")):Array.isArray(O)?Qe(be,O):Object.keys(O).forEach(function(st){Object.assign(je,Wt(O[st],ne,st))}),je;function Qe(st,Ae){ne&&(Ae=Ae.map(_e=>_e.toLowerCase())),Ae.forEach(function(_e){const Ue=_e.split("|");je[Ue[0]]=[st,Lt(Ue[0],Ue[1])]})}}function Lt(O,ne){return ne?Number(ne):vt(O)?0:1}function vt(O){return Ot.includes(O.toLowerCase())}const Ln={},lt=O=>{console.error(O)},mt=(O,...ne)=>{console.log(`WARN: ${O}`,...ne)},At=(O,ne)=>{Ln[`${O}/${ne}`]||(console.log(`Deprecated as of ${O}. ${ne}`),Ln[`${O}/${ne}`]=!0)},_n=new Error;function hn(O,ne,{key:be}){let je=0;const Qe=O[be],st={},Ae={};for(let _e=1;_e<=ne.length;_e++)Ae[_e+je]=Qe[_e],st[_e+je]=!0,je+=I(ne[_e-1]);O[be]=Ae,O[be]._emit=st,O[be]._multi=!0}function qn(O){if(Array.isArray(O.begin)){if(O.skip||O.excludeBegin||O.returnBegin)throw lt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),_n;if(typeof O.beginScope!="object"||O.beginScope===null)throw lt("beginScope must be object"),_n;hn(O,O.begin,{key:"beginScope"}),O.begin=V(O.begin,{joinWith:""})}}function Sn(O){if(Array.isArray(O.end)){if(O.skip||O.excludeEnd||O.returnEnd)throw lt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),_n;if(typeof O.endScope!="object"||O.endScope===null)throw lt("endScope must be object"),_n;hn(O,O.end,{key:"endScope"}),O.end=V(O.end,{joinWith:""})}}function wn(O){O.scope&&typeof O.scope=="object"&&O.scope!==null&&(O.beginScope=O.scope,delete O.scope)}function ra(O){wn(O),typeof O.beginScope=="string"&&(O.beginScope={_wrap:O.beginScope}),typeof O.endScope=="string"&&(O.endScope={_wrap:O.endScope}),qn(O),Sn(O)}function zn(O){function ne(Ae,_e){return new RegExp(v(Ae),"m"+(O.case_insensitive?"i":"")+(O.unicodeRegex?"u":"")+(_e?"g":""))}class be{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(_e,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,_e]),this.matchAt+=I(_e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const _e=this.regexes.map(Ue=>Ue[1]);this.matcherRe=ne(V(_e,{joinWith:"|"}),!0),this.lastIndex=0}exec(_e){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(_e);if(!Ue)return null;const Ct=Ue.findIndex((jn,Un)=>Un>0&&jn!==void 0),bt=this.matchIndexes[Ct];return Ue.splice(0,Ct),Object.assign(Ue,bt)}}class je{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(_e){if(this.multiRegexes[_e])return this.multiRegexes[_e];const Ue=new be;return this.rules.slice(_e).forEach(([Ct,bt])=>Ue.addRule(Ct,bt)),Ue.compile(),this.multiRegexes[_e]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(_e,Ue){this.rules.push([_e,Ue]),Ue.type==="begin"&&this.count++}exec(_e){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Ct=Ue.exec(_e);if(this.resumingScanAtSamePosition()&&!(Ct&&Ct.index===this.lastIndex)){const bt=this.getMatcher(0);bt.lastIndex=this.lastIndex+1,Ct=bt.exec(_e)}return Ct&&(this.regexIndex+=Ct.position+1,this.regexIndex===this.count&&this.considerAll()),Ct}}function Qe(Ae){const _e=new je;return Ae.contains.forEach(Ue=>_e.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ae.terminatorEnd&&_e.addRule(Ae.terminatorEnd,{type:"end"}),Ae.illegal&&_e.addRule(Ae.illegal,{type:"illegal"}),_e}function st(Ae,_e){const Ue=Ae;if(Ae.isCompiled)return Ue;[Me,Hn,ra,fn].forEach(bt=>bt(Ae,_e)),O.compilerExtensions.forEach(bt=>bt(Ae,_e)),Ae.__beforeBegin=null,[Dt,Pe,it].forEach(bt=>bt(Ae,_e)),Ae.isCompiled=!0;let Ct=null;return typeof Ae.keywords=="object"&&Ae.keywords.$pattern&&(Ae.keywords=Object.assign({},Ae.keywords),Ct=Ae.keywords.$pattern,delete Ae.keywords.$pattern),Ct=Ct||/\w+/,Ae.keywords&&(Ae.keywords=Wt(Ae.keywords,O.case_insensitive)),Ue.keywordPatternRe=ne(Ct,!0),_e&&(Ae.begin||(Ae.begin=/\B|\b/),Ue.beginRe=ne(Ue.begin),!Ae.end&&!Ae.endsWithParent&&(Ae.end=/\B|\b/),Ae.end&&(Ue.endRe=ne(Ue.end)),Ue.terminatorEnd=v(Ue.end)||"",Ae.endsWithParent&&_e.terminatorEnd&&(Ue.terminatorEnd+=(Ae.end?"|":"")+_e.terminatorEnd)),Ae.illegal&&(Ue.illegalRe=ne(Ae.illegal)),Ae.contains||(Ae.contains=[]),Ae.contains=[].concat(...Ae.contains.map(function(bt){return pn(bt==="self"?Ae:bt)})),Ae.contains.forEach(function(bt){st(bt,Ue)}),Ae.starts&&st(Ae.starts,_e),Ue.matcher=Qe(Ue),Ue}if(O.compilerExtensions||(O.compilerExtensions=[]),O.contains&&O.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return O.classNameAliases=s(O.classNameAliases||{}),st(O)}function It(O){return O?O.endsWithParent||It(O.starts):!1}function pn(O){return O.variants&&!O.cachedVariants&&(O.cachedVariants=O.variants.map(function(ne){return s(O,{variants:null},ne)})),O.cachedVariants?O.cachedVariants:It(O)?s(O,{starts:O.starts?s(O.starts):null}):Object.isFrozen(O)?s(O):O}var Rt="11.12.0";class Gn extends Error{constructor(ne,be){super(ne),this.name="HTMLInjectionError",this.html=be}}const $n=r,mn=s,He=Symbol("nomatch"),gn=7,Ht=function(O){const ne=Object.create(null),be=Object.create(null),je=[];let Qe=!0;const st="Could not find the language '{}', did you forget to load/include a language module?",Ae={disableAutodetect:!0,name:"Plain text",contains:[]};let _e={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Ue(oe){return _e.noHighlightRe.test(oe)}function Ct(oe){let Re=oe.className+" ";Re+=oe.parentNode?oe.parentNode.className:"";const Be=_e.languageDetectRe.exec(Re);if(Be){const Je=Jt(Be[1]);return Je||(mt(st.replace("{}",Be[1])),mt("Falling back to no-highlight mode for this block.",oe)),Je?Be[1]:"no-highlight"}return Re.split(/\s+/).find(Je=>Ue(Je)||Jt(Je))}function bt(oe,Re,Be){let Je="",Mt="";typeof Re=="object"?(Je=oe,Be=Re.ignoreIllegals,Mt=Re.language):(At("10.7.0","highlight(lang, code, ...args) has been deprecated."),At("10.7.0",`Please use highlight(code, options) instead.
167
- https://github.com/highlightjs/highlight.js/issues/2277`),Mt=oe,Je=Re),Be===void 0&&(Be=!0);const en={code:Je,language:Mt};Ye("before:highlight",en);const bn=en.result?en.result:jn(en.language,en.code,Be);return bn.code=en.code,Ye("after:highlight",bn),bn}function jn(oe,Re,Be,Je){const Mt=Object.create(null);function en(ue,Ee){return ue.keywords[Ee]}function bn(){if(!W.keywords){j.addText(te);return}let ue=0;W.keywordPatternRe.lastIndex=0;let Ee=W.keywordPatternRe.exec(te),De="";for(;Ee;){De+=te.substring(ue,Ee.index);const Ve=tn.case_insensitive?Ee[0].toLowerCase():Ee[0],We=en(W,Ve);if(We){const[oa,Gl]=We;if(j.addText(De),De="",Mt[Ve]=(Mt[Ve]||0)+1,Mt[Ve]<=gn&&(xe+=Gl),oa.startsWith("_"))De+=Ee[0];else{const Fs=tn.classNameAliases[oa]||oa;Ut(Ee[0],Fs)}}else De+=Ee[0];ue=W.keywordPatternRe.lastIndex,Ee=W.keywordPatternRe.exec(te)}De+=te.substring(ue),j.addText(De)}function Zt(){if(te==="")return;let ue=null;if(typeof W.subLanguage=="string"){if(!ne[W.subLanguage]){j.addText(te);return}ue=jn(W.subLanguage,te,!0,w[W.subLanguage]),w[W.subLanguage]=ue._top}else ue=ba(te,W.subLanguage.length?W.subLanguage:null);W.relevance>0&&(xe+=ue.relevance),j.__addSublanguage(ue._emitter,ue.language)}function ft(){W.subLanguage!=null?Zt():bn(),te=""}function Ut(ue,Ee){ue!==""&&(j.startScope(Ee),j.addText(ue),j.endScope())}function nl(ue,Ee){let De=1;const Ve=Ee.length-1;for(;De<=Ve;){if(!ue._emit[De]){De++;continue}const We=tn.classNameAliases[ue[De]]||ue[De],oa=Ee[De];We?Ut(oa,We):(te=oa,bn(),te=""),De++}}function li(ue,Ee){return ue.scope&&typeof ue.scope=="string"&&j.openNode(tn.classNameAliases[ue.scope]||ue.scope),ue.beginScope&&(ue.beginScope._wrap?(Ut(te,tn.classNameAliases[ue.beginScope._wrap]||ue.beginScope._wrap),te=""):ue.beginScope._multi&&(nl(ue.beginScope,Ee),te="")),W=Object.create(ue,{parent:{value:W}}),W}function si(ue,Ee,De){let Ve=A(ue.endRe,De);if(Ve){if(ue["on:end"]){const We=new a(ue);ue["on:end"](Ee,We),We.isMatchIgnored&&(Ve=!1)}if(Ve){for(;ue.endsParent&&ue.parent;)ue=ue.parent;return ue}}if(ue.endsWithParent)return si(ue.parent,Ee,De)}function Ua(ue){return W.matcher.regexIndex===0?(te+=ue[0],1):(et=!0,0)}function al(ue){const Ee=ue[0],De=ue.rule,Ve=new a(De),We=[De.__beforeBegin,De["on:begin"]];for(const oa of We)if(oa&&(oa(ue,Ve),Ve.isMatchIgnored))return Ua(Ee);return De.skip?te+=Ee:(De.excludeBegin&&(te+=Ee),ft(),!De.returnBegin&&!De.excludeBegin&&(te=Ee)),li(De,ue),De.returnBegin?0:Ee.length}function On(ue){const Ee=ue[0],De=Re.substring(ue.index),Ve=si(W,ue,De);if(!Ve)return He;const We=W;W.endScope&&W.endScope._wrap?(ft(),Ut(Ee,W.endScope._wrap)):W.endScope&&W.endScope._multi?(ft(),nl(W.endScope,ue)):We.skip?te+=Ee:(We.returnEnd||We.excludeEnd||(te+=Ee),ft(),We.excludeEnd&&(te=Ee));do W.scope&&j.closeNode(),!W.skip&&!W.subLanguage&&(xe+=W.relevance),W=W.parent;while(W!==Ve.parent);return Ve.starts&&li(Ve.starts,ue),We.returnEnd?0:Ee.length}function ri(){const ue=[];for(let Ee=W;Ee!==tn;Ee=Ee.parent)Ee.scope&&ue.unshift(Ee.scope);ue.forEach(Ee=>j.openNode(Ee))}let Ba={};function oi(ue,Ee){const De=Ee&&Ee[0];if(te+=ue,De==null)return ft(),0;if(Ba.type==="begin"&&Ee.type==="end"&&Ba.index===Ee.index&&De===""){if(te+=Re.slice(Ee.index,Ee.index+1),!Qe){const Ve=new Error(`0 width match regex (${oe})`);throw Ve.languageName=oe,Ve.badRule=Ba.rule,Ve}return 1}if(Ba=Ee,Ee.type==="begin")return al(Ee);if(Ee.type==="illegal"&&!Be){const Ve=new Error('Illegal lexeme "'+De+'" for mode "'+(W.scope||"<unnamed>")+'"');throw Ve.mode=W,Ve}else if(Ee.type==="end"){const Ve=On(Ee);if(Ve!==He)return Ve}if(Ee.type==="illegal"&&De==="")return Ee.index===Re.length||(te+=`
168
- `),1;if(qe>1e5&&qe>Ee.index*3)throw new Error("potential infinite loop, way more iterations than matches");return te+=De,De.length}const tn=Jt(oe);if(!tn)throw lt(st.replace("{}",oe)),new Error('Unknown language: "'+oe+'"');const Ia=zn(tn);let Aa="",W=Je||Ia;const w={},j=new _e.__emitter(_e);ri();let te="",xe=0,Oe=0,qe=0,et=!1;try{if(tn.__emitTokens)tn.__emitTokens(Re,j);else{for(W.matcher.considerAll();;){qe++,et?et=!1:W.matcher.considerAll(),W.matcher.lastIndex=Oe;const ue=W.matcher.exec(Re);if(!ue)break;const Ee=Re.substring(Oe,ue.index),De=oi(Ee,ue);Oe=ue.index+De}oi(Re.substring(Oe))}return j.finalize(),Aa=j.toHTML(),{language:oe,value:Aa,relevance:xe,illegal:!1,_emitter:j,_top:W}}catch(ue){if(ue.message&&ue.message.includes("Illegal"))return{language:oe,value:$n(Re),illegal:!0,relevance:0,_illegalBy:{message:ue.message,index:Oe,context:Re.slice(Oe-100,Oe+100),mode:ue.mode,resultSoFar:Aa},_emitter:j};if(Qe)return{language:oe,value:$n(Re),illegal:!1,relevance:0,errorRaised:ue,_emitter:j,_top:W};throw ue}}function Un(oe){const Re={value:$n(oe),illegal:!1,relevance:0,_top:Ae,_emitter:new _e.__emitter(_e)};return Re._emitter.addText(oe),Re}function ba(oe,Re){Re=Re||_e.languages||Object.keys(ne);const Be=Un(oe),Je=Re.filter(Jt).filter(G).map(ft=>jn(ft,oe,!1));Je.unshift(Be);const Mt=Je.sort((ft,Ut)=>{if(ft.relevance!==Ut.relevance)return Ut.relevance-ft.relevance;if(ft.language&&Ut.language){if(Jt(ft.language).supersetOf===Ut.language)return 1;if(Jt(Ut.language).supersetOf===ft.language)return-1}return 0}),[en,bn]=Mt,Zt=en;return Zt.secondBest=bn,Zt}function Pt(oe,Re,Be){const Je=Re&&be[Re]||Be;oe.classList.add("hljs"),oe.classList.add(`language-${Je}`)}function St(oe){let Re=null;const Be=Ct(oe);if(Ue(Be))return;if(Ye("before:highlightElement",{el:oe,language:Be}),oe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",oe);return}if(oe.children.length>0&&(_e.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(oe)),_e.throwUnescapedHTML))throw new Gn("One of your code blocks includes unescaped HTML.",oe.innerHTML);Re=oe;const Je=Re.textContent,Mt=Be?bt(Je,{language:Be,ignoreIllegals:!0}):ba(Je);oe.innerHTML=Mt.value,oe.dataset.highlighted="yes",Pt(oe,Be,Mt.language),oe.result={language:Mt.language,re:Mt.relevance,relevance:Mt.relevance},Mt.secondBest&&(oe.secondBest={language:Mt.secondBest.language,relevance:Mt.secondBest.relevance}),Ye("after:highlightElement",{el:oe,result:Mt,text:Je})}function Kt(oe){_e=mn(_e,oe)}const ut=()=>{ya(),At("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Yn(){ya(),At("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ii=!1;function ya(){function oe(){ya()}if(document.readyState==="loading"){ii||window.addEventListener("DOMContentLoaded",oe,!1),ii=!0;return}document.querySelectorAll(_e.cssSelector).forEach(St)}function va(oe,Re){let Be=null;try{Be=Re(O)}catch(Je){if(lt("Language definition for '{}' could not be registered.".replace("{}",oe)),Qe)lt(Je);else throw Je;Be=Ae}Be.name||(Be.name=oe),ne[oe]=Be,Be.rawDefinition=Re.bind(null,O),Be.aliases&&Fn(Be.aliases,{languageName:oe})}function Wn(oe){delete ne[oe];for(const Re of Object.keys(be))be[Re]===oe&&delete be[Re]}function Ea(){return Object.keys(ne)}function Jt(oe){return oe=(oe||"").toLowerCase(),ne[oe]||ne[be[oe]]}function Fn(oe,{languageName:Re}){typeof oe=="string"&&(oe=[oe]),oe.forEach(Be=>{be[Be.toLowerCase()]=Re})}function G(oe){const Re=Jt(oe);return Re&&!Re.disableAutodetect}function de(oe){oe["before:highlightBlock"]&&!oe["before:highlightElement"]&&(oe["before:highlightElement"]=Re=>{oe["before:highlightBlock"](Object.assign({block:Re.el},Re))}),oe["after:highlightBlock"]&&!oe["after:highlightElement"]&&(oe["after:highlightElement"]=Re=>{oe["after:highlightBlock"](Object.assign({block:Re.el},Re))})}function ge(oe){de(oe),je.push(oe)}function Te(oe){const Re=je.indexOf(oe);Re!==-1&&je.splice(Re,1)}function Ye(oe,Re){const Be=oe;je.forEach(function(Je){Je[Be]&&Je[Be](Re)})}function un(oe){return At("10.7.0","highlightBlock will be removed entirely in v12.0"),At("10.7.0","Please use highlightElement now."),St(oe)}Object.assign(O,{highlight:bt,highlightAuto:ba,highlightAll:ya,highlightElement:St,highlightBlock:un,configure:Kt,initHighlighting:ut,initHighlightingOnLoad:Yn,registerLanguage:va,unregisterLanguage:Wn,listLanguages:Ea,getLanguage:Jt,registerAliases:Fn,autoDetection:G,inherit:mn,addPlugin:ge,removePlugin:Te}),O.debugMode=function(){Qe=!1},O.safeMode=function(){Qe=!0},O.versionString=Rt,O.regex={concat:D,lookahead:_,either:C,optional:N,anyNumberOfTimes:T};for(const oe in Ge)typeof Ge[oe]=="object"&&l(Ge[oe]);return Object.assign(O,Ge),O},$t=Ht({});return $t.newInstance=()=>Ht({}),ju=$t,$t.HighlightJS=$t,$t.default=$t,ju}var Uu,hg;function A0(){if(hg)return Uu;hg=1;function l(a){const r=a.regex,s=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,f={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},p={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},y=a.inherit(p,{begin:/\(/,end:/\)/}),g=a.inherit(a.APOS_STRING_MODE,{className:"string"}),m=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[f]},{begin:/'/,end:/'/,contains:[f]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[p,m,g,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[p,y,m,g]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},f,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(s,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Uu=l,Uu}var Bu,pg;function R0(){if(pg)return Bu;pg=1;function l(a){const r=a.regex,s={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const f={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},p=a.inherit(a.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),y={begin:/<<-?\s*(?=\w+)/,starts:{contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,s,f]};f.contains.push(g);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,s]},T=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],N=a.SHEBANG({binary:`(${T.join("|")})`,relevance:10}),D={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},x=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],C=["true","false"],I={match:/(\/[a-z._-]+)+/},A=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],Q=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],V=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],ie=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:x,literal:C,built_in:[...A,...Q,"set","shopt",...V,...ie]},contains:[N,a.SHEBANG(),D,_,p,y,I,g,m,b,v,s]}}return Bu=l,Bu}var Iu,mg;function k0(){if(mg)return Iu;mg=1;function l(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(f)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g=r.concat(/\batomic_/,r.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),m={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:g}]},v={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},_={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},T={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},N={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(v,{className:"string"}),s,a.C_BLOCK_COMMENT_MODE]},D=[T,N],x={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},C=r.optional(f)+a.IDENT_RE+"\\s*\\(",I=12,V={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},ie=[...D,m,s,a.C_BLOCK_COMMENT_MODE,_,v],H={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:V,contains:ie.concat([{begin:/\(/,end:/\)/,keywords:V,contains:ie.concat(["self"]),relevance:0}]),relevance:0},R={begin:"("+y+"[\\*&\\s]+){1,"+I+"}"+C,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:V,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:V,relevance:0},{begin:C,returnBegin:!0,contains:[a.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:V,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,v,_,m,{begin:/\(/,end:/\)/,keywords:V,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,v,_,m]}]},m,s,a.C_BLOCK_COMMENT_MODE,...D]};return{name:"C",aliases:["h"],keywords:V,disableAutodetect:!0,illegal:"</",contains:[].concat(H,R,ie,[...D,{begin:a.IDENT_RE+"::",keywords:V},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:N,strings:v,keywords:V}}}return Iu=l,Iu}var Hu,gg;function O0(){if(gg)return Hu;gg=1;function l(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(f)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},v={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},_={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},b,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},T={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(b,{className:"string"}),s,a.C_BLOCK_COMMENT_MODE]},N=[_,T],D={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},x=r.optional(f)+a.IDENT_RE+"\\s*\\(",C=12,I=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],A=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],Q=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],V=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],R={type:A,keyword:I,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:Q},q={className:"function.dispatch",relevance:0,keywords:{_hint:V},begin:r.concat(/\b/,`(?!${I.join("|")})`,a.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},J=[q,...N,g,s,a.C_BLOCK_COMMENT_MODE,v,b],K={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:R,contains:J.concat([{begin:/\(/,end:/\)/,keywords:R,contains:J.concat(["self"]),relevance:0}]),relevance:0},me={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+C+"}"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:R,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:R,relevance:0},{begin:x,returnBegin:!0,contains:[D],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,s,a.C_BLOCK_COMMENT_MODE,...N]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:R,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(K,me,q,J,[...N,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:R,contains:["self",g]},{begin:a.IDENT_RE+"::",keywords:R},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Hu=l,Hu}var qu,bg;function C0(){if(bg)return qu;bg=1;function l(a){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],s=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],f=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],p=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],y={keyword:f.concat(p),built_in:r,literal:u},g=a.inherit(a.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",_={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+b},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+b},{begin:"(-?)(\\b"+m+"(\\.("+m+")?)?|\\."+m+")([eE][-+]?"+m+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},T={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},N={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},D=a.inherit(N,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:y},C=a.inherit(x,{illegal:/\n/}),I={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},a.BACKSLASH_ESCAPE,C]},A={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},Q=a.inherit(A,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},C]});x.contains=[A,I,N,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.C_BLOCK_COMMENT_MODE],C.contains=[Q,I,D,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.inherit(a.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const V={variants:[T,A,I,N,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},ie={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},H=a.IDENT_RE+"(<"+a.IDENT_RE+"(\\s*,\\s*"+a.IDENT_RE+")*>)?(\\[\\])?",R={begin:"@"+a.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:y,illegal:/::/,contains:[a.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},V,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,ie,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,ie,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+H+"\\s+)+"+a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:s.join(" "),relevance:0},{begin:a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[a.TITLE_MODE,ie],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[V,_,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},R]}}return qu=l,qu}var Gu,yg;function M0(){if(yg)return Gu;yg=1;const l=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=m.regex,v=l(m),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},T="and or not only",N=/@-?\w[\w]*(-\w+)*/,D="[a-zA-Z-][a-zA-Z0-9_-]*",x=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[v.BLOCK_COMMENT,_,v.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+D,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+f.join("|")+")"},{begin:":(:)?("+p.join("|")+")"}]},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[v.BLOCK_COMMENT,v.HEXCOLOR,v.IMPORTANT,v.CSS_NUMBER_MODE,v.UNICODE_RANGE,...x,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...x,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:N},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...x,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b"}]}}return Gu=g,Gu}var $u,vg;function D0(){if(vg)return $u;vg=1;function l(a){const r=a.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},f={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},p={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},y={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},v={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},_=a.inherit(b,{contains:[]}),T=a.inherit(v,{contains:[]});b.contains.push(T),v.contains.push(_);let N=[s,m];return[b,v,_,T].forEach(I=>{I.contains=I.contains.concat(N)}),N=N.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:N},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:N}]}]},s,p,u,b,v,{className:"quote",begin:"^>\\s+",contains:N,end:"$"},f,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return $u=l,$u}var Yu,Eg;function L0(){if(Eg)return Yu;Eg=1;function l(a){const r=a.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Yu=l,Yu}var Fu,_g;function z0(){if(_g)return Fu;_g=1;function l(a){const r=a.regex,s="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),f=r.concat(u,/(::\w+)*/),y={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},b=[a.COMMENT("#","$",{contains:[g]}),a.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),a.COMMENT("^__END__",a.MATCH_NOTHING_RE)],v={className:"subst",begin:/#\{/,end:/\}/,keywords:y},_={className:"string",contains:[a.BACKSLASH_ESCAPE,v],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[a.BACKSLASH_ESCAPE,v]})]}]},T="[1-9](_?[0-9])*|0",N="[0-9](_?[0-9])*",D={className:"number",relevance:0,variants:[{begin:`\\b(${T})(\\.(${N}))?([eE][+-]?(${N})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},x={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},H=[_,{variants:[{match:[/class\s+/,f,/\s+<\s+/,f]},{match:[/\b(class|module)\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,f],scope:{2:"title.class"},keywords:y},{relevance:0,match:[f,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:u,scope:"title.class"},{match:[/def/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[x]},{begin:"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:s}],relevance:0},D,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:y},{begin:"("+a.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[a.BACKSLASH_ESCAPE,v],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,b),relevance:0}].concat(m,b);v.contains=H,x.contains=H;const K=[{begin:/^\s*=>/,starts:{end:"$",contains:H}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:H}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(K).concat(b).concat(H)}}return Fu=l,Fu}var Pu,Sg;function j0(){if(Sg)return Pu;Sg=1;function l(a){const p={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:p,illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"string",variants:[a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[a.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,illegal:/["']/}]}]}}return Pu=l,Pu}var Ku,wg;function U0(){if(wg)return Ku;wg=1;function l(a){const r=a.regex,s=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[a.HASH_COMMENT_MODE,a.QUOTE_STRING_MODE,a.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(s,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Ku=l,Ku}var Zu,Ng;function B0(){if(Ng)return Zu;Ng=1;function l(a){const r=a.regex,s={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},u=a.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const f={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},p={className:"literal",begin:/\bon|off|true|false|yes|no\b/},y={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[u,p,f,y,s,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,_=r.either(m,b,v),T=r.concat(_,"(\\s*\\.\\s*",_,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[u,{className:"section",begin:/\[+/,end:/\]+/},{begin:T,className:"attr",starts:{end:/$/,contains:[u,g,p,f,y,s]}}]}}return Zu=l,Zu}var Xu,Tg;function I0(){if(Tg)return Xu;Tg=1;var l="[0-9](_*[0-9])*",a=`\\.(${l})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${l})((${a})|\\.)?|(${a}))[eE][+-]?(${l})[fFdD]?\\b`},{begin:`\\b(${l})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${l})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${l})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(p,y,g){return g===-1?"":p.replace(y,m=>u(p,y,g-1))}function f(p){const y=p.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=g+"<@@@>"+m,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",T=u("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),I={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},A={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},Q={className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[p.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:I,illegal:/<\/|#/,contains:[p.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[p.BACKSLASH_ESCAPE]},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,g],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[g,y.concat(T,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[Q,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(T,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:I,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[A,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,s,p.C_BLOCK_COMMENT_MODE]},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},s,A]}}return Xu=f,Xu}var Vu,xg;function H0(){if(xg)return Vu;xg=1;const l="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],f=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(f,s,u);function g(m){const b=m.regex,v=(Z,{after:ye})=>{const Ne="</"+Z[0].slice(1);return Z.input.indexOf(Ne,ye)!==-1},_=l,T={begin:"<>",end:"</>"},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,D={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Z,ye)=>{const Ne=Z[0].length+Z.index,Ge=Z.input[Ne];if(Ge==="<"||Ge===","){ye.ignoreMatch();return}Ge===">"&&(v(Z,{after:Ne})||ye.ignoreMatch());let $e;const Me=Z.input.substring(Ne);if($e=Me.match(/^\s*=/)){ye.ignoreMatch();return}if(($e=Me.match(/^\s+extends\s+/))&&$e.index===0){ye.ignoreMatch();return}}},x={$pattern:l,keyword:a,literal:r,built_in:y,"variable.language":p},C="[0-9](_?[0-9])*",I=`\\.(${C})`,A="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",Q={className:"number",variants:[{begin:`(\\b(${A})((${I})|\\.)?|(${I}))[eE][+-]?(${C})\\b`},{begin:`\\b(${A})\\b((${I})\\b|\\.)?|(${I})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},V={className:"subst",begin:"\\$\\{",end:"\\}",keywords:x,contains:[]},ie={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,V],subLanguage:"xml"}},H={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,V],subLanguage:"css"}},R={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,V],subLanguage:"graphql"}},q={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,V]},K={className:"comment",variants:[m.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:_+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},me=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ie,H,R,q,{match:/\$\d+/},Q];V.contains=me.concat({begin:/\{/,end:/\}/,keywords:x,contains:["self"].concat(me)});const ce=[].concat(K,V.contains),Se=ce.concat([{begin:/(\s*)\(/,end:/\)/,keywords:x,contains:["self"].concat(ce)}]),he={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:Se},M={variants:[{match:[/class/,/\s+/,_,/\s+/,/extends/,/\s+/,b.concat(_,"(",b.concat(/\./,_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,_],scope:{1:"keyword",3:"title.class"}}]},ee={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...u]}},fe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},we={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[he],illegal:/%/},Le={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function S(Z){return b.concat("(?!",Z.join("|"),")")}const z={match:b.concat(/\b/,S([...f,"super","import","await"].map(Z=>`${Z}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},B={begin:b.concat(/\./,b.lookahead(b.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},se={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},he]},pe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",ve={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(pe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[he]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:x,exports:{PARAMS_CONTAINS:Se,CLASS_REFERENCE:ee},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),fe,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ie,H,R,q,K,{match:/\$\d+/},Q,ee,{scope:"attr",match:_+b.lookahead(":"),relevance:0},ve,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[K,m.REGEXP_MODE,{className:"function",begin:pe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:Se}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:T.begin,end:T.end},{match:N},{begin:D.begin,"on:begin":D.isTrulyOpeningTag,end:D.end}],subLanguage:"xml",contains:[{begin:D.begin,end:D.end,skip:!0,contains:["self"]}]}]},we,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[he,m.inherit(m.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[he]},z,Le,M,se,{match:/\$[(.]/}]}}return Vu=g,Vu}var Qu,Ag;function q0(){if(Ag)return Qu;Ag=1;const a={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(s){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},f={match:/[{}[\],:]/,className:"punctuation",relevance:0},p=["true","false","null"],y={scope:"literal",beginKeywords:p.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:p},contains:[u,f,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,y,a,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Qu=r,Qu}var Wu,Rg;function G0(){if(Rg)return Wu;Rg=1;var l="[0-9](_*[0-9])*",a=`\\.(${l})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${l})((${a})|\\.)?|(${a}))[eE][+-]?(${l})[fFdD]?\\b`},{begin:`\\b(${l})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${l})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${l})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(f){const p={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},y={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},g={className:"symbol",begin:f.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[f.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+f.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[f.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[f.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+f.UNDERSCORE_IDENT_RE+")?"},T={className:"meta",begin:"@"+f.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[f.inherit(v,{className:"string"}),"self"]}]},N=s,D=f.COMMENT("/\\*","\\*/",{contains:[f.C_BLOCK_COMMENT_MODE]}),x={variants:[{className:"type",begin:f.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},C=x;return C.variants[1].contains=[x],x.variants[1].contains=[C],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:p,contains:[f.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),f.C_LINE_COMMENT_MODE,D,y,g,_,T,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:p,relevance:5,contains:[{begin:f.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[f.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[x,f.C_LINE_COMMENT_MODE,D],relevance:0},f.C_LINE_COMMENT_MODE,D,_,T,v,f.C_NUMBER_MODE]},D]},{begin:[/class|interface|trait/,/\s+/,f.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},f.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,T]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
169
- `},N]}}return Wu=u,Wu}var Ju,kg;function $0(){if(kg)return Ju;kg=1;const l=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),g=f.concat(p).sort().reverse();function m(b){const v=l(b),_=g,T="and or not only",N="[\\w-]+",D="("+N+"|@\\{"+N+"\\})",x=[],C=[],I=function(ce){return{className:"string",begin:"~?"+ce+".*?"+ce}},A=function(ce,Se,he){return{className:ce,begin:Se,relevance:he}},Q={$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},V={begin:"\\(",end:"\\)",contains:C,keywords:Q,relevance:0};C.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,I("'"),I('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,V,A("variable","@@?"+N,10),A("variable","@\\{"+N+"\\}"),A("built_in","~?`[^`]*?`"),{className:"attribute",begin:N+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const ie=C.concat({begin:/\{/,end:/\}/,contains:x}),H={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(C)},R={begin:D+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:C}}]},q={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:Q,returnEnd:!0,contains:C,relevance:0}},J={className:"variable",variants:[{begin:"@"+N+"\\s*:",relevance:15},{begin:"@"+N}],starts:{end:"[;}]",returnEnd:!0,contains:ie}},K={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:D,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,H,A("keyword","all\\b"),A("variable","@\\{"+N+"\\}"),{begin:"\\b("+s.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,A("selector-tag",D,0),A("selector-id","#"+D),A("selector-class","\\."+D,0),A("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:ie},{begin:"!important"},v.FUNCTION_DISPATCH]},me={begin:N+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[K]};return x.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,q,J,me,R,K,H,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:x}}return Ju=m,Ju}var ed,Og;function Y0(){if(Og)return ed;Og=1;function l(a){const r="\\[=*\\[",s="\\]=*\\]",u={begin:r,end:s,contains:["self"]},f=[a.COMMENT("--(?!"+r+")","$"),a.COMMENT("--"+r,s,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:a.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:f.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[a.inherit(a.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:f}].concat(f)},a.C_NUMBER_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:r,end:s,contains:[u],relevance:5}])}}return ed=l,ed}var td,Cg;function F0(){if(Cg)return td;Cg=1;function l(a){const r={className:"variable",variants:[{begin:"\\$\\("+a.UNDERSCORE_IDENT_RE+"\\)",contains:[a.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},s={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,r]},u={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,s]},f={begin:"^"+a.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},p={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},y={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[a.HASH_COMMENT_MODE,r,s,u,f,p,y]}}return td=l,td}var nd,Mg;function P0(){if(Mg)return nd;Mg=1;function l(a){const r=a.regex,s=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,f={$pattern:/[\w.]+/,keyword:s.join(" ")},p={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:f},y={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},b={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},v=[a.BACKSLASH_ESCAPE,p,m],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],T=(x,C,I="\\1")=>{const A=I==="\\1"?I:r.concat(I,C);return r.concat(r.concat("(?:",x,")"),C,/(?:\\.|[^\\\/])*?/,A,/(?:\\.|[^\\\/])*?/,I,u)},N=(x,C,I)=>r.concat(r.concat("(?:",x,")"),C,/(?:\\.|[^\\\/])*?/,I,u),D=[m,a.HASH_COMMENT_MODE,a.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),y,{className:"string",contains:v,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},b,{begin:"(\\/\\/|"+a.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[a.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:T("s|tr|y",r.either(..._,{capture:!0}))},{begin:T("s|tr|y","\\(","\\)")},{begin:T("s|tr|y","\\[","\\]")},{begin:T("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:N("(?:m|qr)?",/\//,/\//)},{begin:N("m|qr",r.either(..._,{capture:!0}),/\1/)},{begin:N("m|qr",/\(/,/\)/)},{begin:N("m|qr",/\[/,/\]/)},{begin:N("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return p.contains=D,y.contains=D,{name:"Perl",aliases:["pl","pm"],keywords:f,contains:D}}return nd=l,nd}var ad,Dg;function K0(){if(Dg)return ad;Dg=1;function l(a){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},s=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:s,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:s,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:g,illegal:"</",contains:[r,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.C_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[a.UNDERSCORE_TITLE_MODE]},{begin:"\\."+a.UNDERSCORE_IDENT_RE,relevance:0}]}}return ad=l,ad}var id,Lg;function Z0(){if(Lg)return id;Lg=1;function l(a){const r=a.regex,s=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,s),f=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),p=r.concat(/[A-Z]+/,s),y={scope:"variable",match:"\\$+"+u},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=a.inherit(a.APOS_STRING_MODE,{illegal:null}),v=a.inherit(a.QUOTE_STRING_MODE,{illegal:null,contains:a.QUOTE_STRING_MODE.contains.concat(m)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:a.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(he,M)=>{M.data._beginMatch=he[1]||he[2]},"on:end":(he,M)=>{M.data._beginMatch!==he[1]&&M.ignoreMatch()}},T=a.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),N=`[
170
- ]`,D={scope:"string",variants:[v,b,_,T]},x={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},C=["false","null","true"],I=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],A=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],V={keyword:I,literal:(he=>{const M=[];return he.forEach(ee=>{M.push(ee),ee.toLowerCase()===ee?M.push(ee.toUpperCase()):M.push(ee.toLowerCase())}),M})(C),built_in:A},ie=he=>he.map(M=>M.replace(/\|\d+$/,"")),H={variants:[{match:[/new/,r.concat(N,"+"),r.concat("(?!",ie(A).join("\\b|"),"\\b)"),f],scope:{1:"keyword",4:"title.class"}}]},R=r.concat(u,"\\b(?!\\()"),q={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),R],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[f,r.concat(/::/,r.lookahead(/(?!class\b)/)),R],scope:{1:"title.class",3:"variable.constant"}},{match:[f,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[f,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},J={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},K={relevance:0,begin:/\(/,end:/\)/,keywords:V,contains:[J,y,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,D,x,H]},me={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",ie(I).join("\\b|"),"|",ie(A).join("\\b|"),"\\b)"),u,r.concat(N,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[K]};K.contains.push(me);const ce=[J,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,D,x,H],Se={begin:r.concat(/#\[\s*\\?/,r.either(f,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:C,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:C,keyword:["new","array"]},contains:["self",...ce]},...ce,{scope:"meta",variants:[{match:f},{match:p}]}]};return{case_insensitive:!1,keywords:V,contains:[Se,a.HASH_COMMENT_MODE,a.COMMENT("//","$"),a.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:a.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},g,{scope:"variable.language",match:/\$this\b/},y,me,q,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},H,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},a.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:V,contains:["self",Se,y,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,D,x]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},a.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[a.inherit(a.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},a.UNDERSCORE_TITLE_MODE]},D,x]}}return id=l,id}var ld,zg;function X0(){if(zg)return ld;zg=1;function l(a){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},a.inherit(a.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),a.inherit(a.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return ld=l,ld}var sd,jg;function V0(){if(jg)return sd;jg=1;function l(a){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return sd=l,sd}var rd,Ug;function Q0(){if(Ug)return rd;Ug=1;function l(a){const r=a.regex,s=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],g={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},v={begin:/\{\{/,relevance:0},_={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,m,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m,v,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[a.BACKSLASH_ESCAPE,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,v,b]},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},T="[0-9](_?[0-9])*",N=`(\\b(${T}))?\\.(${T})|\\b(${T})\\.`,D=`\\b|${u.join("|")}`,x={className:"number",relevance:0,variants:[{begin:`(\\b(${T})|(${N}))[eE][+-]?(${T})[jJ]?(?=${D})`},{begin:`(${N})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${D})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${D})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${D})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${D})`},{begin:`\\b(${T})[jJ](?=${D})`}]},C={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},I={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,x,_,a.HASH_COMMENT_MODE]}]};return b.contains=[_,x,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,x,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,C,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[I]},{variants:[{match:[/\bclass/,/\s+/,s,/\s*/,/\(\s*/,s,/\s*\)/]},{match:[/\bclass/,/\s+/,s]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[x,I,_]}]}}return rd=l,rd}var od,Bg;function W0(){if(Bg)return od;Bg=1;function l(a){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return od=l,od}var cd,Ig;function J0(){if(Ig)return cd;Ig=1;function l(a){const r=a.regex,s=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),f=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,p=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:s,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[a.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:s},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),a.HASH_COMMENT_MODE,{scope:"string",contains:[a.BACKSLASH_ESCAPE],variants:[a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[f,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[p,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:f},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:p},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return cd=l,cd}var ud,Hg;function eS(){if(Hg)return ud;Hg=1;function l(a){const r=a.regex,s=/(r#)?/,u=r.concat(s,a.UNDERSCORE_IDENT_RE),f=r.concat(s,a.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,f,r.lookahead(/\s*\(/))},y="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],v=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:a.IDENT_RE+"!?",type:v,keyword:g,literal:m,built_in:b},illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.COMMENT("/\\*","\\*/",{contains:["self"]}),a.inherit(a.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+y},{begin:"\\b0o([0-7_]+)"+y},{begin:"\\b0x([A-Fa-f0-9_]+)"+y},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+y}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,u],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,u,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:a.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:v}},{scope:"punctuation",begin:"->"},p]}}return ud=l,ud}var dd,qg;function tS(){if(qg)return dd;qg=1;const l=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=l(m),v=p,_=f,T="@[a-z-]+",N="and or not only",x={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},x,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,x,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:T,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:N,attribute:u.join(" ")},contains:[{begin:T,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},x,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return dd=g,dd}var fd,Gg;function nS(){if(Gg)return fd;Gg=1;function l(a){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return fd=l,fd}var hd,$g;function aS(){if($g)return hd;$g=1;function l(a){const r=a.regex,s=a.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},f={begin:/"/,end:/"/,contains:[{match:/""/}]},p=["true","false","unknown"],y=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],v=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],_=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],T=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],N=v,D=[...b,...m].filter(ie=>!v.includes(ie)),x={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},C={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},I={match:r.concat(/\b/,r.either(...N),/\s*\(/),relevance:0,keywords:{built_in:N}};function A(ie){return r.concat(/\b/,r.either(...ie.map(H=>H.replace(/\s+/,"\\s+"))),/\b/)}const Q={scope:"keyword",match:A(T),relevance:0};function V(ie,{exceptions:H,when:R}={}){const q=R;return H=H||[],ie.map(J=>J.match(/\|\d+$/)||H.includes(J)?J:q(J)?`${J}|0`:J)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:V(D,{when:ie=>ie.length<3}),literal:p,type:g,built_in:_},contains:[{scope:"type",match:A(y)},Q,I,x,u,f,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,s,C]}}return hd=l,hd}var pd,Yg;function iS(){if(Yg)return pd;Yg=1;function l(R){return R?typeof R=="string"?R:R.source:null}function a(R){return r("(?=",R,")")}function r(...R){return R.map(J=>l(J)).join("")}function s(R){const q=R[R.length-1];return typeof q=="object"&&q.constructor===Object?(R.splice(R.length-1,1),q):{}}function u(...R){return"("+(s(R).capture?"":"?:")+R.map(K=>l(K)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const f=R=>r(/\b/,R,/\w$/.test(R)?/\b/:/\B/),p=["Protocol","Type"].map(f),y=["init","self"].map(f),g=["Any","Self"],m=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],b=["false","nil","true"],v=["assignment","associativity","higherThan","left","lowerThan","none","right"],_=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],T=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],N=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),D=u(N,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),x=r(N,D,"*"),C=u(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),I=u(C,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),A=r(C,I,"*"),Q=r(/[A-Z]/,I,"*"),V=["attached","autoclosure",r(/convention\(/,u("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,A,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],ie=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function H(R){const q={match:/\s+/,relevance:0},J=R.COMMENT("/\\*","\\*/",{contains:["self"]}),K=[R.C_LINE_COMMENT_MODE,J],me={match:[/\./,u(...p,...y)],className:{2:"keyword"}},ce={match:r(/\./,u(...m)),relevance:0},Se=m.filter(He=>typeof He=="string").concat(["_|0"]),he=m.filter(He=>typeof He!="string").concat(g).map(f),M={variants:[{className:"keyword",match:u(...he,...y)}]},ee={$pattern:u(/\b\w+/,/#\w+/),keyword:Se.concat(_),literal:b},fe=[me,ce,M],we={match:r(/\./,u(...T)),relevance:0},Le={className:"built_in",match:r(/\b/,u(...T),/(?=\()/)},S=[we,Le],z={match:/->/,relevance:0},B={className:"operator",relevance:0,variants:[{match:x},{match:`\\.(\\.|${D})+`}]},se=[z,B],pe="([0-9]_*)+",ve="([0-9a-fA-F]_*)+",Z={className:"number",relevance:0,variants:[{match:`\\b(${pe})(\\.(${pe}))?([eE][+-]?(${pe}))?\\b`},{match:`\\b0x(${ve})(\\.(${ve}))?([pP][+-]?(${pe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ye=(He="")=>({className:"subst",variants:[{match:r(/\\/,He,/[0\\tnr"']/)},{match:r(/\\/,He,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ne=(He="")=>({className:"subst",match:r(/\\/,He,/[\t ]*(?:[\r\n]|\r\n)/)}),Ge=(He="")=>({className:"subst",label:"interpol",begin:r(/\\/,He,/\(/),end:/\)/}),$e=(He="")=>({begin:r(He,/"""/),end:r(/"""/,He),contains:[ye(He),Ne(He),Ge(He)]}),Me=(He="")=>({begin:r(He,/"/),end:r(/"/,He),contains:[ye(He),Ge(He)]}),Dt={className:"string",variants:[$e(),$e("#"),$e("##"),$e("###"),Me(),Me("#"),Me("##"),Me("###")]},Pe=[R.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[R.BACKSLASH_ESCAPE]}],Hn={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Pe},it=He=>{const gn=r(He,/\//),Ht=r(/\//,He);return{begin:gn,end:Ht,contains:[...Pe,{scope:"comment",begin:`#(?!.*${Ht})`,end:/$/}]}},fn={scope:"regexp",variants:[it("###"),it("##"),it("#"),Hn]},Ot={match:r(/`/,A,/`/)},Gt={className:"variable",match:/\$\d+/},Wt={className:"variable",match:`\\$${I}+`},Lt=[Ot,Gt,Wt],vt={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:ie,contains:[...se,Z,Dt]}]}},Ln={scope:"keyword",match:r(/@/,u(...V),a(u(/\(/,/\s+/)))},lt={scope:"meta",match:r(/@/,A)},mt=[vt,Ln,lt],At={match:a(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,I,"+")},{className:"type",match:Q,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,a(Q)),relevance:0}]},_n={begin:/</,end:/>/,keywords:ee,contains:[...K,...fe,...mt,z,At]};At.contains.push(_n);const hn={match:r(A,/\s*:/),keywords:"_|0",relevance:0},qn={begin:/\(/,end:/\)/,relevance:0,keywords:ee,contains:["self",hn,...K,fn,...fe,...S,...se,Z,Dt,...Lt,...mt,At]},Sn={begin:/</,end:/>/,keywords:"repeat each",contains:[...K,At]},wn={begin:u(a(r(A,/\s*:/)),a(r(A,/\s+/,A,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:A}]},ra={begin:/\(/,end:/\)/,keywords:ee,contains:[wn,...K,...fe,...se,Z,Dt,...mt,At,qn],endsParent:!0,illegal:/["']/},zn={match:[/(func|macro)/,/\s+/,u(Ot.match,A,x)],className:{1:"keyword",3:"title.function"},contains:[Sn,ra,q],illegal:[/\[/,/%/]},It={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Sn,ra,q],illegal:/\[|%/},pn={match:[/operator/,/\s+/,x],className:{1:"keyword",3:"title"}},Rt={begin:[/precedencegroup/,/\s+/,Q],className:{1:"keyword",3:"title"},contains:[At],keywords:[...v,...b],end:/}/},Gn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},$n={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},mn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,A,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:ee,contains:[Sn,...fe,{begin:/:/,end:/\{/,keywords:ee,contains:[{scope:"title.class.inherited",match:Q},...fe],relevance:0}]};for(const He of Dt.variants){const gn=He.contains.find($t=>$t.label==="interpol");gn.keywords=ee;const Ht=[...fe,...S,...se,Z,Dt,...Lt];gn.contains=[...Ht,{begin:/\(/,end:/\)/,contains:["self",...Ht]}]}return{name:"Swift",keywords:ee,contains:[...K,zn,It,Gn,$n,mn,pn,Rt,{beginKeywords:"import",end:/$/,contains:[...K],relevance:0},fn,...fe,...S,...se,Z,Dt,...Lt,...mt,At,qn]}}return pd=H,pd}var md,Fg;function lS(){if(Fg)return md;Fg=1;function l(a){const r="true false yes no null",s="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},f={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},p={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},y={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[a.BACKSLASH_ESCAPE,f]},g=a.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),T={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},N={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},D={begin:/\{/,end:/\}/,contains:[N],illegal:"\\n",relevance:0},x={begin:"\\[",end:"\\]",contains:[N],illegal:"\\n",relevance:0},C=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+s},{className:"type",begin:"!<"+s+">"},{className:"type",begin:"!"+s},{className:"type",begin:"!!"+s},{className:"meta",begin:"&"+a.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+a.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},a.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},T,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},D,x,p,y],I=[...C];return I.pop(),I.push(g),N.contains=I,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:C}}return md=l,md}var gd,Pg;function sS(){if(Pg)return gd;Pg=1;const l="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],f=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(f,s,u);function g(b){const v=b.regex,_=(ye,{after:Ne})=>{const Ge="</"+ye[0].slice(1);return ye.input.indexOf(Ge,Ne)!==-1},T=l,N={begin:"<>",end:"</>"},D=/<[A-Za-z0-9\\._:-]+\s*\/>/,x={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ye,Ne)=>{const Ge=ye[0].length+ye.index,$e=ye.input[Ge];if($e==="<"||$e===","){Ne.ignoreMatch();return}$e===">"&&(_(ye,{after:Ge})||Ne.ignoreMatch());let Me;const Dt=ye.input.substring(Ge);if(Me=Dt.match(/^\s*=/)){Ne.ignoreMatch();return}if((Me=Dt.match(/^\s+extends\s+/))&&Me.index===0){Ne.ignoreMatch();return}}},C={$pattern:l,keyword:a,literal:r,built_in:y,"variable.language":p},I="[0-9](_?[0-9])*",A=`\\.(${I})`,Q="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",V={className:"number",variants:[{begin:`(\\b(${Q})((${A})|\\.)?|(${A}))[eE][+-]?(${I})\\b`},{begin:`\\b(${Q})\\b((${A})\\b|\\.)?|(${A})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},ie={className:"subst",begin:"\\$\\{",end:"\\}",keywords:C,contains:[]},H={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ie],subLanguage:"xml"}},R={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ie],subLanguage:"css"}},q={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ie],subLanguage:"graphql"}},J={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,ie]},me={className:"comment",variants:[b.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:T+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},ce=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,H,R,q,J,{match:/\$\d+/},V];ie.contains=ce.concat({begin:/\{/,end:/\}/,keywords:C,contains:["self"].concat(ce)});const Se=[].concat(me,ie.contains),he=Se.concat([{begin:/(\s*)\(/,end:/\)/,keywords:C,contains:["self"].concat(Se)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:C,contains:he},ee={variants:[{match:[/class/,/\s+/,T,/\s+/,/extends/,/\s+/,v.concat(T,"(",v.concat(/\./,T),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,T],scope:{1:"keyword",3:"title.class"}}]},fe={relevance:0,match:v.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...u]}},we={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Le={variants:[{match:[/function/,/\s+/,T,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(ye){return v.concat("(?!",ye.join("|"),")")}const B={match:v.concat(/\b/,z([...f,"super","import","await"].map(ye=>`${ye}\\s*\\(`)),T,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},se={begin:v.concat(/\./,v.lookahead(v.concat(T,/(?![0-9A-Za-z$_(])/))),end:T,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},pe={match:[/get|set/,/\s+/,T,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},ve="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,T,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(ve)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:C,exports:{PARAMS_CONTAINS:he,CLASS_REFERENCE:fe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),we,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,H,R,q,J,me,{match:/\$\d+/},V,fe,{scope:"attr",match:T+v.lookahead(":"),relevance:0},Z,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[me,b.REGEXP_MODE,{className:"function",begin:ve,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:b.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:C,contains:he}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:N.begin,end:N.end},{match:D},{begin:x.begin,"on:begin":x.isTrulyOpeningTag,end:x.end}],subLanguage:"xml",contains:[{begin:x.begin,end:x.end,skip:!0,contains:["self"]}]}]},Le,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,b.inherit(b.TITLE_MODE,{begin:T,className:"title.function"})]},{match:/\.\.\./,relevance:0},se,{match:"\\$"+T,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},B,S,ee,pe,{match:/\$[(.]/}]}}function m(b){const v=b.regex,_=g(b),T=l,N=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],D={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},x={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:N},contains:[_.exports.CLASS_REFERENCE]},C={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},I=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],A={$pattern:l,keyword:a.concat(I),literal:r,built_in:y.concat(N),"variable.language":p},Q={className:"meta",begin:"@"+T},V=(q,J,K)=>{const me=q.contains.findIndex(ce=>ce.label===J);if(me===-1)throw new Error("can not find mode to replace");q.contains.splice(me,1,K)};Object.assign(_.keywords,A),_.exports.PARAMS_CONTAINS.push(Q);const ie=_.contains.find(q=>q.scope==="attr"),H=Object.assign({},ie,{match:v.concat(T,v.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,ie,H]),_.contains=_.contains.concat([Q,D,x,H]),V(_,"shebang",b.SHEBANG()),V(_,"use_strict",C);const R=_.contains.find(q=>q.label==="func.def");return R.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return gd=m,gd}var bd,Kg;function rS(){if(Kg)return bd;Kg=1;function l(a){const r=a.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},f=/\d{1,2}\/\d{1,2}\/\d{4}/,p=/\d{4}-\d{1,2}-\d{1,2}/,y=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:r.concat(/# */,r.either(p,f),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(p,f),/ +/,r.either(y,g),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},v={className:"label",begin:/^\w+:/},_=a.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),T=a.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[s,u,m,b,v,_,T,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[T]}]}}return bd=l,bd}var yd,Zg;function oS(){if(Zg)return yd;Zg=1;function l(a){a.regex;const r=a.COMMENT(/\(;/,/;\)/);r.contains.push("self");const s=a.COMMENT(/;;/,/$/),u=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],f={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},p={className:"variable",begin:/\$[\w_]+/},y={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[s,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,y,f,a.QUOTE_STRING_MODE,m,b,g]}}return yd=l,yd}var vd,Xg;function cS(){if(Xg)return vd;Xg=1;var l=x0();return l.registerLanguage("xml",A0()),l.registerLanguage("bash",R0()),l.registerLanguage("c",k0()),l.registerLanguage("cpp",O0()),l.registerLanguage("csharp",C0()),l.registerLanguage("css",M0()),l.registerLanguage("markdown",D0()),l.registerLanguage("diff",L0()),l.registerLanguage("ruby",z0()),l.registerLanguage("go",j0()),l.registerLanguage("graphql",U0()),l.registerLanguage("ini",B0()),l.registerLanguage("java",I0()),l.registerLanguage("javascript",H0()),l.registerLanguage("json",q0()),l.registerLanguage("kotlin",G0()),l.registerLanguage("less",$0()),l.registerLanguage("lua",Y0()),l.registerLanguage("makefile",F0()),l.registerLanguage("perl",P0()),l.registerLanguage("objectivec",K0()),l.registerLanguage("php",Z0()),l.registerLanguage("php-template",X0()),l.registerLanguage("plaintext",V0()),l.registerLanguage("python",Q0()),l.registerLanguage("python-repl",W0()),l.registerLanguage("r",J0()),l.registerLanguage("rust",eS()),l.registerLanguage("scss",tS()),l.registerLanguage("shell",nS()),l.registerLanguage("sql",aS()),l.registerLanguage("swift",iS()),l.registerLanguage("yaml",lS()),l.registerLanguage("typescript",sS()),l.registerLanguage("vbnet",rS()),l.registerLanguage("wasm",oS()),l.HighlightJS=l,l.default=l,vd=l,vd}var uS=cS();const Wd=Db(uS),dS={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},fS=2e5,Wb="http://www.w3.org/1999/xhtml";function hS(l){for(const a of l.querySelectorAll(".d2h-file-wrapper")){const r=pS(a.dataset.lang??"");if(r)for(const s of mS(a))Vg(s.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Vg(s.filter(u=>u.kind!=="del"),()=>!0,r)}}function pS(l){const a=dS[l]??T0(l);return a==="plaintext"||!Wd.getLanguage(a)?null:a}function mS(l){const a=[];let r=[];for(const s of l.querySelectorAll(".d2h-diff-tbody > tr")){const u=s.querySelector("td:last-child"),f=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!f){r.length&&a.push(r),r=[];continue}const p=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:p,ctn:f})}return r.length&&a.push(r),a}function Vg(l,a,r){if(l.filter(a).length===0)return;const u=l.map(y=>y.ctn.textContent??"").join(`
171
- `);if(!u.trim()||u.length>fS)return;const f=bS(u)&&yS(r)?`/**
172
- `:"",p=ES(Wd.highlight(f+u,{language:r,ignoreIllegals:!0}).value).slice(f?1:0);l.forEach((y,g)=>{const m=p[g];m===void 0||!a(y)||vS(y.ctn,m)})}const gS=/(^|\s)\*\//m,Qg=/^\s*\*(\s|$)/;function bS(l){const a=l.search(gS);if(a===-1){const s=l.split(`
173
- `).filter(u=>u.trim());return s.length>0&&s.every(u=>Qg.test(u))}return l.slice(0,a).split(`
174
- `).every(s=>Qg.test(s)||!s.includes("/*"))}function yS(l){return Wd.highlight("/* */",{language:l,ignoreIllegals:!0}).value.startsWith('<span class="hljs-comment">')}function vS(l,a){const r=dg(l);let s=a;if(r.length){const u=document.createElementNS(Wb,"div");u.innerHTML=a,s=w0(r,dg(u),l.textContent??"")}l.classList.add("hljs"),l.innerHTML=s}function ES(l){const a=document.createElementNS(Wb,"div");a.innerHTML=l;const r=[],s=[];let u="";const f=p=>{if(p.nodeType===Node.TEXT_NODE){(p.textContent??"").split(`
175
- `).forEach((m,b)=>{b>0&&(u+="</span>".repeat(s.length),r.push(u),u=s.join("")),u+=_S(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 _S(l){return l.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const SS={arrowRight:["M5 12h14","m12 5 7 7-7 7"],chevronLeft:["m15 6-6 6 6 6"],chevronRight:["m9 6 6 6-6 6"],skip:["m5 4 10 8-10 8V4Z","M19 5v14"],rerun:["M21 12a9 9 0 1 1-3-6.7","M21 4v5h-5"],zap:["M13 2 4 14h7l-1 8 9-12h-7Z"],comment:["M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"],check:["M20 6 9 17l-5-5"],edit:["M12 20h9","M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"],drop:["M3 6h18","M8 6V4h8v2","M6 6l1 14h10l1-14"],plus:["M12 5v14","M5 12h14"],file:["M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8Z","M14 3v5h5"],send:["M22 2 11 13","M22 2 15 22l-4-9-9-4Z"],eye:["M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"],download:["M12 3v12","m7 12 5 5 5-5","M5 21h14"],external:["M14 4h6v6","M20 4 10 14","M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"],settings:["M20 7h-9","M14 17H5"],down:["M12 5v13","m6 12 6 6 6-6"],up:["M12 19V6","m6 12 6-6 6 6"],bell:["M18 9a6 6 0 1 0-12 0c0 5-2 6-2 6h16s-2-1-2-6","M13.7 20a2 2 0 0 1-3.4 0"],bellOff:["M8.5 3.6A6 6 0 0 1 18 9c0 1.7.2 2.9.6 3.9","M16.5 17H4s2-1 2-6a6 6 0 0 1 .7-2.8","M13.7 20a2 2 0 0 1-3.4 0","m3 3 18 18"]},wS={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}]},NS={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Ze({name:l,size:a=13}){const r=[...SS[l]??[],...NS[l]??[]];return d.jsxs("svg",{className:"icon",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(wS[l]??[]).map((s,u)=>d.jsx("circle",{cx:s.cx,cy:s.cy,r:s.r},u)),r.map((s,u)=>d.jsx("path",{d:s},u))]})}function TS({size:l=17}){return d.jsxs("svg",{className:"logo",width:l,height:l,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[d.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),d.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),d.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),d.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function za({children:l}){return d.jsx("span",{className:"key",children:l})}/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function Wg(l,a){(a==null||a>l.length)&&(a=l.length);for(var r=0,s=Array(a);r<a;r++)s[r]=l[r];return s}function xS(l){if(Array.isArray(l))return l}function AS(l,a){var r=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(r!=null){var s,u,f,p,y=[],g=!0,m=!1;try{if(f=(r=r.call(l)).next,a!==0)for(;!(g=(s=f.call(r)).done)&&(y.push(s.value),y.length!==a);g=!0);}catch(b){m=!0,u=b}finally{try{if(!g&&r.return!=null&&(p=r.return(),Object(p)!==p))return}finally{if(m)throw u}}return y}}function RS(){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 kS(l,a){return xS(l)||AS(l,a)||OS(l,a)||RS()}function OS(l,a){if(l){if(typeof l=="string")return Wg(l,a);var r={}.toString.call(l).slice(8,-1);return r==="Object"&&l.constructor&&(r=l.constructor.name),r==="Map"||r==="Set"?Array.from(l):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wg(l,a):void 0}}const Jb=Object.entries,Jg=Object.setPrototypeOf,CS=Object.isFrozen,MS=Object.getPrototypeOf,DS=Object.getOwnPropertyDescriptor;let Rn=Object.freeze,kn=Object.seal,jl=Object.create,ey=typeof Reflect<"u"&&Reflect,Cd=ey.apply,Md=ey.construct;Rn||(Rn=function(a){return a});kn||(kn=function(a){return a});Cd||(Cd=function(a,r){for(var s=arguments.length,u=new Array(s>2?s-2:0),f=2;f<s;f++)u[f-2]=arguments[f];return a.apply(r,u)});Md||(Md=function(a){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new a(...s)});const Dl=on(Array.prototype.forEach),LS=on(Array.prototype.lastIndexOf),eb=on(Array.prototype.pop),Ll=on(Array.prototype.push),zS=on(Array.prototype.splice),zi=Array.isArray,Us=on(String.prototype.toLowerCase),Ed=on(String.prototype.toString),tb=on(String.prototype.match),Ls=on(String.prototype.replace),nb=on(String.prototype.indexOf),jS=on(String.prototype.trim),US=on(Number.prototype.toString),BS=on(Boolean.prototype.toString),ab=typeof BigInt>"u"?null:on(BigInt.prototype.toString),ib=typeof Symbol>"u"?null:on(Symbol.prototype.toString),En=on(Object.prototype.hasOwnProperty),zs=on(Object.prototype.toString),vn=on(RegExp.prototype.test),Wi=IS(TypeError);function on(l){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return Cd(l,a,s)}}function IS(l){return function(){for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return Md(l,r)}}function dt(l,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Us;if(Jg&&Jg(l,null),!zi(a))return l;let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const f=r(u);f!==u&&(CS(a)||(a[s]=f),u=f)}l[u]=!0}return l}function HS(l){for(let a=0;a<l.length;a++)En(l,a)||(l[a]=null);return l}function Mn(l){const a=jl(null);for(const s of Jb(l)){var r=kS(s,2);const u=r[0],f=r[1];En(l,u)&&(zi(f)?a[u]=HS(f):f&&typeof f=="object"&&f.constructor===Object?a[u]=Mn(f):a[u]=f)}return a}function qS(l){switch(typeof l){case"string":return l;case"number":return US(l);case"boolean":return BS(l);case"bigint":return ab?ab(l):"0";case"symbol":return ib?ib(l):"Symbol()";case"undefined":return zs(l);case"function":case"object":{if(l===null)return zs(l);const a=l,r=Na(a,"toString");if(typeof r=="function"){const s=r(a);return typeof s=="string"?s:zs(s)}return zs(l)}default:return zs(l)}}function Na(l,a){for(;l!==null;){const s=DS(l,a);if(s){if(s.get)return on(s.get);if(typeof s.value=="function")return on(s.value)}l=MS(l)}function r(){return null}return r}function GS(l){try{return vn(l,""),!0}catch{return!1}}const lb=Rn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_d=Rn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Sd=Rn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$S=Rn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wd=Rn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),YS=Rn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sb=Rn(["#text"]),rb=Rn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Nd=Rn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ob=Rn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),eo=Rn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),FS=kn(/{{[\w\W]*|^[\w\W]*}}/g),PS=kn(/<%[\w\W]*|^[\w\W]*%>/g),KS=kn(/\${[\w\W]*/g),ZS=kn(/^data-[\-\w.\u00B7-\uFFFF]+$/),XS=kn(/^aria-[\-\w]+$/),cb=kn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),VS=kn(/^(?:\w+script|data):/i),QS=kn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),WS=kn(/^html$/i),JS=kn(/^[a-z][.\w]*(-[.\w]+)+$/i),ub=kn(/<[/\w!]/g),db=kn(/<[/\w]/g),ew=kn(/<\/no(script|embed|frames)/i),tw=kn(/\/>/i),sa={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},nw=function(){return typeof window>"u"?null:window},aw=function(a,r){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(s=r.getAttribute(u));const f="dompurify"+(s?"#"+s:"");try{return a.createPolicy(f,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},fb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Mi=function(a,r,s,u){return En(a,r)&&zi(a[r])?dt(u.base?Mn(u.base):{},a[r],u.transform):s};function ty(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nw();const a=W=>ty(W);if(a.version="3.4.13",a.removed=[],!l||!l.document||l.document.nodeType!==sa.document||!l.Element)return a.isSupported=!1,a;let r=l.document;const s=r,u=s.currentScript;l.DocumentFragment;const f=l.HTMLTemplateElement,p=l.Node,y=l.Element,g=l.NodeFilter,m=l.NamedNodeMap;m===void 0&&(l.NamedNodeMap||l.MozNamedAttrMap),l.HTMLFormElement;const b=l.DOMParser,v=l.trustedTypes,_=y.prototype,T=Na(_,"cloneNode"),N=Na(_,"remove"),D=Na(_,"nextSibling"),x=Na(_,"childNodes"),C=Na(_,"parentNode"),I=Na(_,"shadowRoot"),A=Na(_,"attributes"),Q=p&&p.prototype?Na(p.prototype,"nodeType"):null,V=p&&p.prototype?Na(p.prototype,"nodeName"):null,ie=p&&p.prototype?Na(p.prototype,"ownerDocument"):null;if(typeof f=="function"){const W=r.createElement("template");W.content&&W.content.ownerDocument&&(r=W.content.ownerDocument)}let H,R="",q,J=!1,K=0;const me=function(){if(K>0)throw Wi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ce=function(w){me(),K++;try{return H.createHTML(w)}finally{K--}},Se=function(w){me(),K++;try{return H.createScriptURL(w)}finally{K--}},he=function(){return J||(q=aw(v,u),J=!0),q},M=r,ee=M.implementation,fe=M.createNodeIterator,we=M.createDocumentFragment,Le=M.getElementsByTagName,S=s.importNode;let z=fb();a.isSupported=typeof Jb=="function"&&typeof C=="function"&&ee&&ee.createHTMLDocument!==void 0;const B=FS,se=PS,pe=KS,ve=ZS,Z=XS,ye=VS,Ne=QS,Ge=JS;let $e=cb,Me=null;const Dt=dt({},[...lb,..._d,...Sd,...wd,...sb]);let Pe=null;const Hn=dt({},[...rb,...Nd,...ob,...eo]);let it=Object.seal(jl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fn=null,Ot=null;const Gt=Object.seal(jl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Wt=!0,Lt=!0,vt=!1,Ln=!0,lt=!1,mt=!0,At=!1,_n=!1,hn=null,qn=null,Sn=!1,wn=!1,ra=!1,zn=!1,It=!0,pn=!1;const Rt="user-content-";let Gn=!0,$n=!1,mn={},He=null;const gn=dt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ht=null;const $t=dt({},["audio","video","img","source","image","track"]);let O=null;const ne=dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),be="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let st=Qe,Ae=!1,_e=null;const Ue=dt({},[be,je,Qe],Ed),Ct=Rn(["mi","mo","mn","ms","mtext"]);let bt=dt({},Ct);const jn=Rn(["annotation-xml"]);let Un=dt({},jn);const ba=dt({},["title","style","font","a","script"]);let Pt=null;const St=["application/xhtml+xml","text/html"],Kt="text/html";let ut=null,Yn=null;const ii=r.createElement("form"),ya=function(w){return w instanceof RegExp||w instanceof Function},va=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Yn&&Yn===w)return;(!w||typeof w!="object")&&(w={}),w=Mn(w),Pt=St.indexOf(w.PARSER_MEDIA_TYPE)===-1?Kt:w.PARSER_MEDIA_TYPE,ut=Pt==="application/xhtml+xml"?Ed:Us,Me=Mi(w,"ALLOWED_TAGS",Dt,{transform:ut}),Pe=Mi(w,"ALLOWED_ATTR",Hn,{transform:ut}),_e=Mi(w,"ALLOWED_NAMESPACES",Ue,{transform:Ed}),O=Mi(w,"ADD_URI_SAFE_ATTR",ne,{transform:ut,base:ne}),Ht=Mi(w,"ADD_DATA_URI_TAGS",$t,{transform:ut,base:$t}),He=Mi(w,"FORBID_CONTENTS",gn,{transform:ut}),fn=Mi(w,"FORBID_TAGS",Mn({}),{transform:ut}),Ot=Mi(w,"FORBID_ATTR",Mn({}),{transform:ut}),mn=En(w,"USE_PROFILES")?w.USE_PROFILES&&typeof w.USE_PROFILES=="object"?Mn(w.USE_PROFILES):w.USE_PROFILES:!1,Wt=w.ALLOW_ARIA_ATTR!==!1,Lt=w.ALLOW_DATA_ATTR!==!1,vt=w.ALLOW_UNKNOWN_PROTOCOLS||!1,Ln=w.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=w.SAFE_FOR_TEMPLATES||!1,mt=w.SAFE_FOR_XML!==!1,At=w.WHOLE_DOCUMENT||!1,wn=w.RETURN_DOM||!1,ra=w.RETURN_DOM_FRAGMENT||!1,zn=w.RETURN_TRUSTED_TYPE||!1,Sn=w.FORCE_BODY||!1,It=w.SANITIZE_DOM!==!1,pn=w.SANITIZE_NAMED_PROPS||!1,Gn=w.KEEP_CONTENT!==!1,$n=w.IN_PLACE||!1,$e=GS(w.ALLOWED_URI_REGEXP)?w.ALLOWED_URI_REGEXP:cb,st=typeof w.NAMESPACE=="string"?w.NAMESPACE:Qe,bt=En(w,"MATHML_TEXT_INTEGRATION_POINTS")&&w.MATHML_TEXT_INTEGRATION_POINTS&&typeof w.MATHML_TEXT_INTEGRATION_POINTS=="object"?Mn(w.MATHML_TEXT_INTEGRATION_POINTS):dt({},Ct),Un=En(w,"HTML_INTEGRATION_POINTS")&&w.HTML_INTEGRATION_POINTS&&typeof w.HTML_INTEGRATION_POINTS=="object"?Mn(w.HTML_INTEGRATION_POINTS):dt({},jn);const j=En(w,"CUSTOM_ELEMENT_HANDLING")&&w.CUSTOM_ELEMENT_HANDLING&&typeof w.CUSTOM_ELEMENT_HANDLING=="object"?Mn(w.CUSTOM_ELEMENT_HANDLING):jl(null);if(it=jl(null),En(j,"tagNameCheck")&&ya(j.tagNameCheck)&&(it.tagNameCheck=j.tagNameCheck),En(j,"attributeNameCheck")&&ya(j.attributeNameCheck)&&(it.attributeNameCheck=j.attributeNameCheck),En(j,"allowCustomizedBuiltInElements")&&typeof j.allowCustomizedBuiltInElements=="boolean"&&(it.allowCustomizedBuiltInElements=j.allowCustomizedBuiltInElements),kn(it),lt&&(Lt=!1),ra&&(wn=!0),mn&&(Me=dt({},sb),Pe=jl(null),mn.html===!0&&(dt(Me,lb),dt(Pe,rb)),mn.svg===!0&&(dt(Me,_d),dt(Pe,Nd),dt(Pe,eo)),mn.svgFilters===!0&&(dt(Me,Sd),dt(Pe,Nd),dt(Pe,eo)),mn.mathMl===!0&&(dt(Me,wd),dt(Pe,ob),dt(Pe,eo))),Gt.tagCheck=null,Gt.attributeCheck=null,En(w,"ADD_TAGS")&&(typeof w.ADD_TAGS=="function"?Gt.tagCheck=w.ADD_TAGS:zi(w.ADD_TAGS)&&(Me===Dt&&(Me=Mn(Me)),dt(Me,w.ADD_TAGS,ut))),En(w,"ADD_ATTR")&&(typeof w.ADD_ATTR=="function"?Gt.attributeCheck=w.ADD_ATTR:zi(w.ADD_ATTR)&&(Pe===Hn&&(Pe=Mn(Pe)),dt(Pe,w.ADD_ATTR,ut))),En(w,"ADD_URI_SAFE_ATTR")&&zi(w.ADD_URI_SAFE_ATTR)&&dt(O,w.ADD_URI_SAFE_ATTR,ut),En(w,"FORBID_CONTENTS")&&zi(w.FORBID_CONTENTS)&&(He===gn&&(He=Mn(He)),dt(He,w.FORBID_CONTENTS,ut)),En(w,"ADD_FORBID_CONTENTS")&&zi(w.ADD_FORBID_CONTENTS)&&(He===gn&&(He=Mn(He)),dt(He,w.ADD_FORBID_CONTENTS,ut)),Gn&&(Me["#text"]=!0),At&&dt(Me,["html","head","body"]),Me.table&&(dt(Me,["tbody"]),delete fn.tbody),w.TRUSTED_TYPES_POLICY){if(typeof w.TRUSTED_TYPES_POLICY.createHTML!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof w.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const te=H;H=w.TRUSTED_TYPES_POLICY;try{R=ce("")}catch(xe){throw H=te,xe}}else w.TRUSTED_TYPES_POLICY===null?(H=void 0,R=""):(H===void 0&&(H=he()),H&&typeof R=="string"&&(R=ce("")));Rn&&Rn(w),Yn=w},Wn=dt({},[..._d,...Sd,...$S]),Ea=dt({},[...wd,...YS]),Jt=function(w,j,te){return j.namespaceURI===Qe?w==="svg":j.namespaceURI===be?w==="svg"&&(te==="annotation-xml"||bt[te]):!!Wn[w]},Fn=function(w,j,te){return j.namespaceURI===Qe?w==="math":j.namespaceURI===je?w==="math"&&Un[te]:!!Ea[w]},G=function(w,j,te){return j.namespaceURI===je&&!Un[te]||j.namespaceURI===be&&!bt[te]?!1:!Ea[w]&&(ba[w]||!Wn[w])},de=function(w){let j=C(w);(!j||!j.tagName)&&(j={namespaceURI:st,tagName:"template"});const te=Us(w.tagName),xe=Us(j.tagName);return _e[w.namespaceURI]?w.namespaceURI===je?Jt(te,j,xe):w.namespaceURI===be?Fn(te,j,xe):w.namespaceURI===Qe?G(te,j,xe):!!(Pt==="application/xhtml+xml"&&_e[w.namespaceURI]):!1},ge=function(w){Ll(a.removed,{element:w});try{C(w).removeChild(w)}catch{if(N(w),!C(w))throw Wi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Te=function(w){oe(w);const j=x(w);if(j){const xe=[];Dl(j,Oe=>{Ll(xe,Oe)}),Dl(xe,Oe=>{try{N(Oe)}catch{}})}const te=A(w);if(te)for(let xe=te.length-1;xe>=0;--xe){const Oe=te[xe],qe=Oe&&Oe.name;if(typeof qe=="string")try{w.removeAttribute(qe)}catch{}}},Ye=function(w,j){try{Ll(a.removed,{attribute:j.getAttributeNode(w),from:j})}catch{Ll(a.removed,{attribute:null,from:j})}if(j.removeAttribute(w),w==="is")if(wn||ra)try{ge(j)}catch{}else try{j.setAttribute(w,"")}catch{}},un=function(w){const j=A(w);if(j)for(let te=j.length-1;te>=0;--te){const xe=j[te],Oe=xe&&xe.name;if(!(typeof Oe!="string"||Pe[ut(Oe)]))try{w.removeAttribute(Oe)}catch{}}},oe=function(w){const j=[w];for(;j.length>0;){const te=j.pop();(Q?Q(te):te.nodeType)===sa.element&&un(te);const Oe=x(te);if(Oe)for(let qe=Oe.length-1;qe>=0;--qe)j.push(Oe[qe])}},Re=function(w){if(!mt)return;const j=[w];for(;j.length>0;){const te=j.pop(),xe=Q?Q(te):te.nodeType;if(xe===sa.processingInstruction||xe===sa.comment&&vn(db,te.data)){try{N(te)}catch{}continue}if(xe===sa.element){const qe=te,et=ut(V?V(te):te.nodeName);try{qe.hasAttribute&&qe.hasAttribute("patchsrc")&&qe.removeAttribute("patchsrc"),qe.hasAttribute&&qe.hasAttribute("for")&&et!=="label"&&et!=="output"&&qe.removeAttribute("for")}catch{}}const Oe=x(te);if(Oe)for(let qe=Oe.length-1;qe>=0;--qe)j.push(Oe[qe])}},Be=function(w){let j=null,te=null;if(Sn)w="<remove></remove>"+w;else{const qe=tb(w,/^[\r\n\t ]+/);te=qe&&qe[0]}Pt==="application/xhtml+xml"&&st===Qe&&(w='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+w+"</body></html>");const xe=H?ce(w):w;if(st===Qe)try{j=new b().parseFromString(xe,Pt)}catch{}if(!j||!j.documentElement){j=ee.createDocument(st,"template",null);try{j.documentElement.innerHTML=Ae?R:xe}catch{}}const Oe=j.body||j.documentElement;return w&&te&&Oe.insertBefore(r.createTextNode(te),Oe.childNodes[0]||null),st===Qe?Le.call(j,At?"html":"body")[0]:At?j.documentElement:Oe},Je=function(w){const j=ie?ie(w):w.ownerDocument;return fe.call(j||w,w,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},Mt=function(w){return w=Ls(w,B," "),w=Ls(w,se," "),w=Ls(w,pe," "),w},en=function(w){var j;w.normalize();const te=ie?ie(w):w.ownerDocument,xe=fe.call(te||w,w,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let Oe=xe.nextNode();for(;Oe;)Oe.data=Mt(Oe.data),Oe=xe.nextNode();const qe=(j=w.querySelectorAll)===null||j===void 0?void 0:j.call(w,"template");qe&&Dl(qe,et=>{Zt(et.content)&&en(et.content)})},bn=function(w){const j=V?V(w):null;return typeof j!="string"||ut(j)!=="form"?!1:typeof w.nodeName!="string"||typeof w.textContent!="string"||typeof w.removeChild!="function"||w.attributes!==A(w)||typeof w.removeAttribute!="function"||typeof w.setAttribute!="function"||typeof w.namespaceURI!="string"||typeof w.insertBefore!="function"||typeof w.hasChildNodes!="function"||w.nodeType!==Q(w)||w.childNodes!==x(w)},Zt=function(w){if(!Q||typeof w!="object"||w===null)return!1;try{return Q(w)===sa.documentFragment}catch{return!1}},ft=function(w){if(!Q||typeof w!="object"||w===null)return!1;try{return typeof Q(w)=="number"}catch{return!1}};function Ut(W,w,j){W.length!==0&&Dl(W,te=>{te.call(a,w,j,Yn)})}const nl=function(w,j){return!!(mt&&w.hasChildNodes()&&!ft(w.firstElementChild)&&vn(ub,w.textContent)&&vn(ub,w.innerHTML)||mt&&w.namespaceURI===Qe&&j==="style"&&ft(w.firstElementChild)||w.nodeType===sa.processingInstruction||mt&&w.nodeType===sa.comment&&vn(db,w.data))},li=function(w,j,te){if(!fn[j]&&ri(j)&&(it.tagNameCheck instanceof RegExp&&vn(it.tagNameCheck,j)||it.tagNameCheck instanceof Function&&it.tagNameCheck(j)))return!1;if(Gn&&!He[j]){const xe=C(w),Oe=x(w);if(Oe&&xe){const qe=Oe.length;for(let et=qe-1;et>=0;--et){const ue=w===te?T(Oe[et],!0):Oe[et];xe.insertBefore(ue,D(w))}}}return ge(w),!0},si=function(w,j,te,xe){return w.length===0?j:j===te||j===xe?Mn(j):j},Ua=function(w,j){if(Ut(z.beforeSanitizeElements,w,null),w!==j&&C(w)===null)return $n&&oe(w),!0;if(bn(w))return ge(w),!0;const te=ut(V?V(w):w.nodeName);if(Me=si(z.uponSanitizeElement,Me,Dt,hn),Ut(z.uponSanitizeElement,w,{tagName:te,allowedTags:Me}),w!==j&&C(w)===null)return $n&&oe(w),!0;if(nl(w,te))return ge(w),!0;if(fn[te]||!(Gt.tagCheck instanceof Function&&Gt.tagCheck(te))&&!Me[te]){const Oe=li(w,te,j);return Oe===!1&&Ut(z.afterSanitizeElements,w,null),Oe}if((Q?Q(w):w.nodeType)===sa.element&&!de(w)||(te==="noscript"||te==="noembed"||te==="noframes")&&vn(ew,w.innerHTML))return ge(w),!0;if(lt&&w.nodeType===sa.text){const Oe=Mt(w.textContent);w.textContent!==Oe&&(Ll(a.removed,{element:w.cloneNode()}),w.textContent=Oe)}return Ut(z.afterSanitizeElements,w,null),!1},al=function(w,j,te){if(Ot[j]||mt&&j==="patchsrc"||mt&&j==="for"&&w!=="label"&&w!=="output"||It&&(j==="id"||j==="name")&&(te in r||te in ii))return!1;const xe=Pe[j]||Gt.attributeCheck instanceof Function&&Gt.attributeCheck(j,w);if(!(Lt&&vn(ve,j))){if(!(Wt&&vn(Z,j))){if(xe){if(!O[j]){if(!vn($e,Ls(te,Ne,""))){if(!((j==="src"||j==="xlink:href"||j==="href")&&w!=="script"&&nb(te,"data:")===0&&Ht[w])){if(!(vt&&!vn(ye,Ls(te,Ne,"")))){if(te)return!1}}}}}else if(!(ri(w)&&(it.tagNameCheck instanceof RegExp&&vn(it.tagNameCheck,w)||it.tagNameCheck instanceof Function&&it.tagNameCheck(w))&&(it.attributeNameCheck instanceof RegExp&&vn(it.attributeNameCheck,j)||it.attributeNameCheck instanceof Function&&it.attributeNameCheck(j,w))||j==="is"&&it.allowCustomizedBuiltInElements&&(it.tagNameCheck instanceof RegExp&&vn(it.tagNameCheck,te)||it.tagNameCheck instanceof Function&&it.tagNameCheck(te))))return!1}}return!0},On=dt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ri=function(w){return!On[Us(w)]&&vn(Ge,w)},Ba=function(w,j,te,xe){if(H&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!te)switch(v.getAttributeType(w,j)){case"TrustedHTML":return ce(xe);case"TrustedScriptURL":return Se(xe)}return xe},oi=function(w,j,te,xe){try{te?w.setAttributeNS(te,j,xe):w.setAttribute(j,xe),bn(w)?ge(w):eb(a.removed)}catch{Ye(j,w)}},tn=function(w){Ut(z.beforeSanitizeAttributes,w,null);const j=w.attributes;if(!j||bn(w))return;Pe=si(z.uponSanitizeAttribute,Pe,Hn,qn);const te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pe,forceKeepAttr:void 0};let xe=j.length;const Oe=ut(w.nodeName);for(;xe--;){const qe=j[xe],et=qe.name,ue=qe.namespaceURI,Ee=qe.value,De=ut(et),Ve=Ee;let We=et==="value"?Ve:jS(Ve);if(te.attrName=De,te.attrValue=We,te.keepAttr=!0,te.forceKeepAttr=void 0,Ut(z.uponSanitizeAttribute,w,te),We=te.attrValue,pn&&(De==="id"||De==="name")&&nb(We,Rt)!==0&&(Ye(et,w),We=Rt+We),mt&&vn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,We)){Ye(et,w);continue}if(De==="attributename"&&tb(We,"href")){Ye(et,w);continue}if(!te.forceKeepAttr){if(!te.keepAttr){Ye(et,w);continue}if(!Ln&&vn(tw,We)){Ye(et,w);continue}if(lt&&(We=Mt(We)),!al(Oe,De,We)){Ye(et,w);continue}We=Ba(Oe,De,ue,We),We!==Ve&&oi(w,et,ue,We)}}Ut(z.afterSanitizeAttributes,w,null)},Ia=function(w){let j=null;const te=Je(w);for(Ut(z.beforeSanitizeShadowDOM,w,null);j=te.nextNode();)if(Ut(z.uponSanitizeShadowNode,j,null),Ua(j,w),tn(j),Zt(j.content)&&Ia(j.content),(Q?Q(j):j.nodeType)===sa.element){const Oe=I(j);Zt(Oe)&&(Aa(Oe),Ia(Oe))}Ut(z.afterSanitizeShadowDOM,w,null)},Aa=function(w){const j=[{node:w,shadow:null}];for(;j.length>0;){const te=j.pop();if(te.shadow){Ia(te.shadow);continue}const xe=te.node,qe=(Q?Q(xe):xe.nodeType)===sa.element,et=x(xe);if(et)for(let ue=et.length-1;ue>=0;--ue)j.push({node:et[ue],shadow:null});if(qe){const ue=V?V(xe):null;if(typeof ue=="string"&&ut(ue)==="template"){const Ee=xe.content;Zt(Ee)&&j.push({node:Ee,shadow:null})}}if(qe){const ue=I(xe);Zt(ue)&&j.push({node:null,shadow:ue},{node:ue,shadow:null})}}};return a.sanitize=function(W){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,te=null,xe=null,Oe=null;if(Ae=!W,Ae&&(W="<!-->"),typeof W!="string"&&!ft(W)&&(W=qS(W),typeof W!="string"))throw Wi("dirty is not a string, aborting");if(!a.isSupported)return W;_n?(Me=hn,Pe=qn):va(w),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(Me=Mn(Me)),z.uponSanitizeAttribute.length>0&&(Pe=Mn(Pe)),a.removed=[];const qe=$n&&typeof W!="string"&&ft(W);if(qe){Re(W);const Ee=V?V(W):W.nodeName;if(typeof Ee=="string"){const De=ut(Ee);if(!Me[De]||fn[De])throw Te(W),Wi("root node is forbidden and cannot be sanitized in-place")}if(bn(W))throw Te(W),Wi("root node is clobbered and cannot be sanitized in-place");try{Aa(W)}catch(De){throw Te(W),De}}else if(ft(W))j=Be("<!---->"),te=j.ownerDocument.importNode(W,!0),te.nodeType===sa.element&&te.nodeName==="BODY"||te.nodeName==="HTML"?j=te:j.appendChild(te),Aa(te);else{if(!wn&&!lt&&!At&&W.indexOf("<")===-1)return H&&zn?ce(W):W;if(j=Be(W),!j)return wn?null:zn?R:""}j&&Sn&&ge(j.firstChild);const et=qe?W:j;try{const Ee=Je(et);for(;xe=Ee.nextNode();)Ua(xe,et),tn(xe),Zt(xe.content)&&Ia(xe.content)}catch(Ee){throw qe&&(Te(W),Dl(a.removed,De=>{De.element&&oe(De.element)})),Ee}if(qe)return Dl(a.removed,Ee=>{Ee.element&&oe(Ee.element)}),lt&&en(W),W;if(wn){if(lt&&en(j),ra)for(Oe=we.call(j.ownerDocument);j.firstChild;)Oe.appendChild(j.firstChild);else Oe=j;return(Pe.shadowroot||Pe.shadowrootmode)&&(Oe=S.call(s,Oe,!0)),Oe}let ue=At?j.outerHTML:j.innerHTML;return At&&Me["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&vn(WS,j.ownerDocument.doctype.name)&&(ue="<!DOCTYPE "+j.ownerDocument.doctype.name+`>
177
- `+ue),lt&&(ue=Mt(ue)),H&&zn?ce(ue):ue},a.setConfig=function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};va(W),_n=!0,hn=Me,qn=Pe},a.clearConfig=function(){Yn=null,_n=!1,hn=null,qn=null,H=q,R=""},a.isValidAttribute=function(W,w,j){Yn||va({});const te=ut(W),xe=ut(w);return al(te,xe,j)},a.addHook=function(W,w){typeof w=="function"&&En(z,W)&&Ll(z[W],w)},a.removeHook=function(W,w){if(En(z,W)){if(w!==void 0){const j=LS(z[W],w);return j===-1?void 0:zS(z[W],j,1)[0]}return eb(z[W])}},a.removeHooks=function(W){En(z,W)&&(z[W]=[])},a.removeAllHooks=function(){z=fb()},a}var iw=ty();function Jd(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var tl=Jd();function ny(l){tl=l}var Ji={exec:()=>null};function zl(l){let a=[];return r=>{let s=Math.max(0,Math.min(3,r-1)),u=a[s];return u||(u=l(s),a[s]=u),u}}function at(l,a=""){let r=typeof l=="string"?l:l.source,s={replace:(u,f)=>{let p=typeof f=="string"?f:f.source;return p=p.replace(Dn.caret,"$1"),r=r.replace(u,p),s},getRegex:()=>new RegExp(r,a)};return s}var lw=((l="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+l)}catch{return!1}})(),Dn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:l=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:zl(l=>new RegExp(`^ {0,${l}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:zl(l=>new RegExp(`^ {0,${l}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:zl(l=>new RegExp(`^ {0,${l}}(?:\`\`\`|~~~)`)),headingBeginRegex:zl(l=>new RegExp(`^ {0,${l}}#`)),htmlBeginRegex:zl(l=>new RegExp(`^ {0,${l}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:zl(l=>new RegExp(`^ {0,${l}}>`))},sw=/^(?:[ \t]*(?:\n|$))+/,rw=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ow=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Gs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,cw=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ef=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ay=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,iy=at(ay).replace(/bull/g,ef).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(),uw=at(ay).replace(/bull/g,ef).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(),tf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,dw=/^[^\n]+/,nf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,fw=at(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",nf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),hw=at(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ef).getRegex(),vo="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",af=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,pw=at("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",af).replace("tag",vo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ly=l=>at(tf).replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",l).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vo).getRegex(),mw=ly(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),gw=ly(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),bw=at(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",gw).getRegex(),lf={blockquote:bw,code:rw,def:fw,fences:ow,heading:cw,hr:Gs,html:pw,lheading:iy,list:hw,newline:sw,paragraph:mw,table:Ji,text:dw},hb=at("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vo).getRegex(),yw={...lf,lheading:uw,table:hb,paragraph:at(tf).replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hb).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",vo).getRegex()},vw={...lf,html:at(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",af).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ji,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:at(tf).replace("hr",Gs).replace("heading",` *#{1,6} *[^
178
- ]`).replace("lheading",iy).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ew=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,_w=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,sy=/^( {2,}|\\)\n(?!\s*$)/,Sw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ai=/[\p{P}\p{S}]/u,ql=/[\s\p{P}\p{S}]/u,$s=/[^\s\p{P}\p{S}]/u,ww=at(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ql).getRegex(),Nw=/[\p{Pi}\p{Ps}"']/u,ry=/(?!~)[\p{P}\p{S}]/u,Tw=/(?!~)[\s\p{P}\p{S}]/u,xw=/(?:[^\s\p{P}\p{S}]|~)/u,Aw=at(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",lw?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),oy=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Rw=at(oy,"u").replace(/punct/g,ai).getRegex(),kw=at(oy,"u").replace(/punct/g,ry).getRegex(),Ow=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Cw=at(Ow,"u").replace(/openQuote/g,Nw).replace(/punct/g,ai).getRegex(),cy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Mw=at(cy,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),Dw=at(cy,"gu").replace(/notPunctSpace/g,xw).replace(/punctSpace/g,Tw).replace(/punct/g,ry).getRegex(),Lw="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",zw=at(Lw,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),jw=at("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),Uw="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Bw=at(Uw,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),Iw=at(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ai).getRegex(),Hw="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",qw=at(Hw,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,ai).getRegex(),Gw=at(/\\(punct)/,"gu").replace(/punct/g,ai).getRegex(),$w=at(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Yw=at(af).replace("(?:-->|$)","-->").getRegex(),Fw=at("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Yw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),uo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Pw=at(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",uo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),uy=at(/^!?\[(label)\]\[(ref)\]/).replace("label",uo).replace("ref",nf).getRegex(),dy=at(/^!?\[(ref)\](?:\[\])?/).replace("ref",nf).getRegex(),Kw=at("reflink|nolink(?!\\()","g").replace("reflink",uy).replace("nolink",dy).getRegex(),pb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,sf={_backpedal:Ji,anyPunctuation:Gw,autolink:$w,blockSkip:Aw,br:sy,code:_w,del:Ji,delLDelim:Ji,delRDelim:Ji,emStrongLDelim:Rw,emStrongRDelimAst:Mw,emStrongRDelimUnd:jw,escape:Ew,link:Pw,nolink:dy,punctuation:ww,reflink:uy,reflinkSearch:Kw,tag:Fw,text:Sw,url:Ji},Zw={...sf,emStrongLDelim:Cw,emStrongRDelimAst:zw,emStrongRDelimUnd:Bw,link:at(/^!?\[(label)\]\((.*?)\)/).replace("label",uo).getRegex(),reflink:at(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",uo).getRegex()},Dd={...sf,emStrongRDelimAst:Dw,emStrongLDelim:kw,delLDelim:Iw,delRDelim:qw,url:at(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",pb).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:at(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",pb).getRegex()},Xw={...Dd,br:at(sy).replace("{2,}","*").getRegex(),text:at(Dd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},to={normal:lf,gfm:yw,pedantic:vw},js={normal:sf,gfm:Dd,breaks:Xw,pedantic:Zw},Vw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},mb=l=>Vw[l];function Da(l,a){if(a){if(Dn.escapeTest.test(l))return l.replace(Dn.escapeReplace,mb)}else if(Dn.escapeTestNoEncode.test(l))return l.replace(Dn.escapeReplaceNoEncode,mb);return l}function gb(l){try{l=encodeURI(l).replace(Dn.percentDecode,"%")}catch{return null}return l}function bb(l,a){var f;let r=l.replace(Dn.findPipe,(p,y,g)=>{let m=!1,b=y;for(;--b>=0&&g[b]==="\\";)m=!m;return m?"|":" |"}),s=r.split(Dn.splitPipe),u=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),a)if(s.length>a)s.splice(a);else for(;s.length<a;)s.push("");for(;u<s.length;u++)s[u]=s[u].trim().replace(Dn.slashPipe,"|");return s}function Di(l,a,r){let s=l.length;if(s===0)return"";let u=0;for(;u<s&&l.charAt(s-u-1)===a;)u++;return l.slice(0,s-u)}function yb(l){let a=l.split(`
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 Gb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function og(l,a){return a?`${Gb[a]} **${a}** — ${l}`:l}const M_=["inbox","awaiting","drafted"],Rd=["requests","settled","sent","archived"],Mu={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 cg(l){return l.status==="awaiting"||l.status==="running"?"awaiting":l.status==="sent"?"sent":"drafted"}const qs=l=>!!l.pr.state&&l.pr.state!=="OPEN",ug=["ready","awaiting","running","failed","reviewed","skipped","sent"];function Bl(l){return[...l].sort((a,r)=>ug.indexOf(a.status)-ug.indexOf(r.status)||r.updatedAt.localeCompare(a.updatedAt))}const $b=["sent","reviewed","skipped"];function Gs(l){return Bl(l.filter(a=>!qs(a)&&!$b.includes(a.status)))}function D_(l,a,r){return Gs(l).filter(s=>s.key===a||!r.has(s.key))}function L_(l,a){if(!(a!=null&&a.enabled)||a.awaiting.length===0)return[];const r=new Set(Gs(l).map(u=>u.id)),s=new Set(a.awaiting.map(u=>u.id));return Bl(l.filter(u=>s.has(u.id)&&!r.has(u.id)))}const z_=(l,a)=>a.some(r=>r.id===l.id);function j_(l,a){const r=l.filter(u=>!qs(u)),s=Bl(r.filter(u=>!$b.includes(u.status)));return{inbox:s,awaiting:s.filter(u=>cg(u)==="awaiting"),drafted:s.filter(u=>cg(u)==="drafted"),requests:L_(l,a),settled:Bl(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Bl(r.filter(u=>u.status==="sent")),archived:Bl(l.filter(qs))}}function U_(l,a){return Rd.includes(l)&&a[l].length===0?"inbox":l}function Yb(l){var a,r;return l.reason==="own-review"?((a=l.review)==null?void 0:a.at)??l.at:l.reason==="own-reply"?((r=l.reply)==null?void 0:r.at)??l.at:l.at}const uo={"own-review":{tag:"reviewed on GitHub",meta:l=>`you reviewed this on GitHub on ${l}`,reasoning:"GitHub stopped asking you for a review and already had one of yours, so this draft was filed rather than left in the inbox. It was never sent — open it to read or send it.",requested:"You submitted a review on GitHub, outside cerber, so this draft was filed."},"own-reply":{tag:"replied on GitHub",meta:l=>`you replied on GitHub on ${l}`,reasoning:"You answered in the PR conversation and nobody has answered back, so the draft was filed rather than left in the inbox. GitHub does not count a comment as a review, but whoever opened the PR is the one holding it. Nothing was sent — open it to read or send it.",requested:"You commented on the PR and nobody answered, so this draft was filed."},"request-withdrawn":{tag:"request withdrawn",meta:l=>`nobody was asking for this any more on ${l}`,reasoning:"Whoever asked for this review took the request back, and you had said nothing on the PR, so the draft was filed rather than left in the inbox. It is still a review — open it to read or send it.",requested:"The review request had gone away when this draft was filed."}};function B_(l){var a;return qs(l)?((a=l.pr.state)==null?void 0:a.toLowerCase())??null:l.handoff?`handed to @${l.handoff.to}`:l.filed?uo[l.filed.reason].tag:l.status==="reviewed"||l.status==="skipped"?l.status:null}function I_(l,a){var r;return a!=null&&a.enabled?((r=a.awaiting.find(s=>s.id===l.id))==null?void 0:r.reply)??"unknown":"unknown"}const H_={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."}},q_=l=>H_[l];function G_(l){const a=Qd[l.event]??l.event,r=new Date(l.at).toLocaleDateString();return{label:l.auto?"auto-sent a review":"you replied with a review",title:`${l.auto?"The daemon auto-sent this review":"You sent this review"} to GitHub on ${r} as ${a}. The last inbox poll still listed a review request for you — a request can lag a send, and GitHub holds some open even after one.`}}function $_(l){const a=uo[l.reason],r=new Date(Yb(l)).toLocaleDateString();return{label:a.tag,title:`${a.requested} That was ${r}. GitHub lists a review request for you now — most likely the author has asked for another look since. Re-review it to draft against the current head.`}}function Y_(l){const a=new Date(l.at).toLocaleDateString();return{label:`handed to @${l.to}`,title:l.withdrewYours?`You handed this to @${l.to} on ${a} and cerber took your own review request off the PR. GitHub still lists one for you — most likely the last inbox poll ran before the swap, or somebody has asked you again since.`:`You handed this to @${l.to} on ${a}, but cerber could not take your own review request off the PR — so GitHub is asking both of you. Remove yourself on GitHub if that is not what you wanted.`}}const F_=(l,a)=>l.handoff?Y_(l.handoff):l.sent?G_(l.sent):l.filed?$_(l.filed):q_(a);function P_(l){const a=l.length,r=a===1?"1 review request":`${a} review requests`,s=l.some(qs)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${s} ${a===1?"it":"them"} here without submitting a review, so ${a===1?"it is":"they are"} under open requests, tagged with whose move it is.`}function Fb(l,a=Date.now()){const r=Math.max(0,Math.round((a-new Date(l).getTime())/1e3));return r<45?"now":r<3600?`${Math.round(r/60)}m`:r<86400?`${Math.round(r/3600)}h`:`${Math.round(r/86400)}d`}const K_={approve:"approve",comment:"comment",request_changes:"changes"},Qd={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function Z_(l){return l.status==="running"?{label:"reviewing…",tone:"running"}:l.status==="awaiting"?{label:"review now",tone:"awaiting"}:l.status==="failed"?{label:"run failed",tone:"failed"}:l.sent?{label:`sent · ${Qd[l.sent.event]??l.sent.event}`,tone:"sent"}:l.verdict?{label:`${l.verdict.recommendation.replace("_"," ")} ${l.verdict.confidence}%`,tone:K_[l.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function X_(l){return l.status==="running"||l.status==="awaiting"||l.status==="failed"||!l.verdict&&!l.sent?"—":String(l.commentCount)}function Du(l){return l.trusted?"ran the code":l.withSource?"read the full source":"read the diff only"}function V_(l){if(l.commentCount===0)return"no comments drafted";const a=[`${l.commentCount} comment${l.commentCount===1?"":"s"} drafted`];return l.driftedCount&&a.push(`${l.driftedCount} off-diff`),l.gradedCount&&a.push(l.blockerCount?`${l.blockerCount} blocker${l.blockerCount===1?"":"s"}`:"no blockers"),a.join(", ")}function Q_(l,a,r=Date.now()){var u,f;if(l.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Fb(l.updatedAt,r)} ago`,Du(l)]};if(l.status==="awaiting")return{reasoning:"Found by the inbox poll, not drafted yet — auto-review was off when it arrived, or it is still queued behind another run.",meta:["no run yet","press r to review now"]};if(l.status==="failed")return{reasoning:l.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(l.sent)return{reasoning:`Sent to GitHub as ${Qd[l.sent.event]??l.sent.event} on ${new Date(l.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue, though a re-review can draft against the current head.`+(l.handoff?` GitHub asks @${l.handoff.to} for it now.`:""),meta:[...l.handoff?[`you handed this to @${l.handoff.to}`]:[],l.sent.auto?"auto-sent by the daemon":"sent by you",Du(l)]};const s=[Du(l)];if(l.handoff?s.unshift(`you handed this to @${l.handoff.to} on ${new Date(l.handoff.at).toLocaleDateString()}`):l.filed?s.unshift(uo[l.filed.reason].meta(new Date(Yb(l.filed)).toLocaleDateString())):l.status==="reviewed"?s.unshift("you marked this reviewed"):l.status==="skipped"&&s.unshift("you skipped this"),l.costUsd!=null&&s.push(`≈$${l.costUsd.toFixed(2)} at API rates`),s.push(V_(l)),a!=null&&a.enabled&&l.status==="ready"&&((u=l.verdict)==null?void 0:u.recommendation)==="approve"&&s.push(l.verdict.confidence>=a.autoSendThreshold?`auto-send candidate at ${l.verdict.confidence}%`:`below the ${a.autoSendThreshold}% auto-send bar`),l.handoff){const p=l.commentCount>0||l.verdict!=null;return{reasoning:`GitHub asks @${l.handoff.to} for this review now${l.handoff.withdrewYours?" and no longer asks you":" — and still asks you, because your own request could not be taken off"}. `+(p?"The draft was never sent: it is still yours to read or send.":"Nothing was drafted here, and nothing was sent."),meta:s}}return l.filed?{reasoning:uo[l.filed.reason].reasoning,meta:s}:{reasoning:((f=l.verdict)==null?void 0:f.reasoning)??"This review has a draft but no verdict.",meta:s}}const W_="/favicon.svg",J_="/favicon-dot.svg",e0=l=>Gs(l).length>0,t0=l=>l?J_:W_;function n0(l){const a=t0(e0(l)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===a||r.setAttribute("href",a)}async function qt(l,a){const r=await fetch(l,{...a,headers:a!=null&&a.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let s=`${(a==null?void 0:a.method)??"GET"} ${l}: ${r.status}`;try{const u=await r.json();u.error&&(s=u.error)}catch{}throw new Error(s)}return r.json()}const Wd=async()=>{const l=await qt("/api/reviews");return n0(l),l},Pb=()=>qt("/api/daemon"),dg=l=>qt(`/api/reviews/${encodeURIComponent(l)}`),a0=(l,a,r)=>qt(`/api/reviews/${encodeURIComponent(l)}/viewed`,{method:"PUT",body:JSON.stringify({path:a,fingerprint:r})}),lo=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}`,{method:"PATCH",body:JSON.stringify(a)}),i0=(l,a,r)=>qt(`/api/reviews/${encodeURIComponent(l)}/comments/${a}`,{method:"PATCH",body:JSON.stringify(r)}),l0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/comments`,{method:"POST",body:JSON.stringify(a)}),s0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/comments/${a}`,{method:"DELETE"}),r0=l=>qt("/api/reviews",{method:"POST",body:JSON.stringify({input:l})}),o0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/refresh`,{method:"POST"}),Kb=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/rerun`+(a===void 0?"":`?source=${a?"1":"0"}`),{method:"POST"}),kd=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/chat`,{method:"POST",body:JSON.stringify(a)}),c0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/chat/steer`,{method:"POST",body:JSON.stringify({message:a})}),u0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/chat/pending`,{method:"DELETE"}),d0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),Zb=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/send-preview?event=${a}`),f0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/send`,{method:"POST",body:JSON.stringify({event:a,confirm:!0})}),h0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/raised`,{method:"POST"}),p0=l=>qt(`/api/reviews/${encodeURIComponent(l)}/reviewers`),m0=(l,a)=>qt(`/api/reviews/${encodeURIComponent(l)}/handoff`,{method:"POST",body:JSON.stringify({...a,confirm:!0})}),g0=l=>`/api/reviews/${encodeURIComponent(l)}/export`,b0=()=>qt("/api/config"),Lu=(l,a=!1)=>qt("/api/config/trust",{method:"POST",body:JSON.stringify({rule:l,remove:a})}),zu=l=>qt("/api/config/daemon",{method:"POST",body:JSON.stringify(l)}),Xb="cerber.handoff.recent",Vb=5,y0=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,Qb=l=>y0.test(l);function v0(l){try{const a=JSON.parse(l??"");return Array.isArray(a)?a.filter(r=>typeof r=="string"&&Qb(r)).slice(0,Vb):[]}catch{return[]}}function Wb(){try{return v0(localStorage.getItem(Xb))}catch{return[]}}function E0(l,a){const r=l.filter(s=>s.toLowerCase()!==a.toLowerCase());return[a,...r].slice(0,Vb)}function _0(l){const a=E0(Wb(),l);try{localStorage.setItem(Xb,JSON.stringify(a))}catch{}return a}const Od=l=>l.trim().replace(/^@/,"");function S0(l,a){const r=new Set,s=[];for(const u of[...a,...l]){const f=u.toLowerCase();r.has(f)||(r.add(f),s.push({login:u,recent:a.some(p=>p.toLowerCase()===f)}))}return s}function w0(l,a){const r=Od(a).toLowerCase();if(!r)return l;const s=l.filter(p=>p.login.toLowerCase().includes(r)),u=p=>p.login.toLowerCase()===r,f=p=>p.login.toLowerCase().startsWith(r);return[...s.filter(u),...s.filter(p=>!u(p)&&f(p)),...s.filter(p=>!f(p))]}function ju(l){return l.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function Cd(l){return l.nodeName.toLowerCase()}function fg(l){const a=[],r=(s,u)=>{for(let f=s.firstChild;f;f=f.nextSibling)f.nodeType===3&&f.nodeValue!==null?u+=f.nodeValue.length:f.nodeType===1&&(a.push({event:"start",offset:u,node:f}),u=r(f,u),Cd(f).match(/br|hr|img|input/)||a.push({event:"stop",offset:u,node:f}));return u};return r(l,0),a}function N0(l,a,r){let s=0,u="";const f=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!l.length||!a.length?l.length?l:a:l[0].offset!==a[0].offset?l[0].offset<a[0].offset?l:a:a[0].event==="start"?l:a}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${Cd(v)} ${Array().map.call(v.attributes,_=>`${_.nodeName}="${ju(_.value).replace(/"/g,"&quot;")}"`).join(" ")}>`}function m(v){u+="</"+Cd(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;l.length||a.length;){let v=y();if(u+=ju(r.substring(s,v[0].offset)),s=v[0].offset,v===l){f.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();while(v===l&&v.length&&v[0].offset===s);f.reverse().forEach(g)}else v[0].event==="start"?f.push(v[0].node):f.pop(),b(v.splice(0,1)[0])}return u+ju(r.substr(s))}const T0={"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 x0(l){var a;return(a=T0[l])!==null&&a!==void 0?a:"plaintext"}var Uu,hg;function A0(){if(hg)return Uu;hg=1;function l(O){return O instanceof Map?O.clear=O.delete=O.set=function(){throw new Error("map is read-only")}:O instanceof Set&&(O.add=O.clear=O.delete=function(){throw new Error("set is read-only")}),Object.freeze(O),Object.getOwnPropertyNames(O).forEach(ne=>{const be=O[ne],je=typeof be;(je==="object"||je==="function")&&!Object.isFrozen(be)&&l(be)}),O}class a{constructor(ne){ne.data===void 0&&(ne.data={}),this.data=ne.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(O){return O.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(O,...ne){const be=Object.create(null);for(const je in O)be[je]=O[je];return ne.forEach(function(je){for(const Qe in je)be[Qe]=je[Qe]}),be}const u="</span>",f=O=>!!O.scope,p=(O,{prefix:ne})=>{if(O.startsWith("language:"))return O.replace("language:","language-");if(O.includes(".")){const be=O.split(".");return[`${ne}${be.shift()}`,...be.map((je,Qe)=>`${je}${"_".repeat(Qe+1)}`)].join(" ")}return`${ne}${O}`};class y{constructor(ne,be){this.buffer="",this.classPrefix=be.classPrefix,ne.walk(this)}addText(ne){this.buffer+=r(ne)}openNode(ne){if(!f(ne))return;const be=p(ne.scope,{prefix:this.classPrefix});this.span(be)}closeNode(ne){f(ne)&&(this.buffer+=u)}value(){return this.buffer}span(ne){this.buffer+=`<span class="${ne}">`}}const g=(O={})=>{const ne={children:[]};return Object.assign(ne,O),ne};class m{constructor(){this.rootNode=g(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ne){this.top.children.push(ne)}openNode(ne){const be=g({scope:ne});this.add(be),this.stack.push(be)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ne){return this.constructor._walk(ne,this.rootNode)}static _walk(ne,be){return typeof be=="string"?ne.addText(be):be.children&&(ne.openNode(be),be.children.forEach(je=>this._walk(ne,je)),ne.closeNode(be)),ne}static _collapse(ne){typeof ne!="string"&&ne.children&&(ne.children.every(be=>typeof be=="string")?ne.children=[ne.children.join("")]:ne.children.forEach(be=>{m._collapse(be)}))}}class b extends m{constructor(ne){super(),this.options=ne}addText(ne){ne!==""&&this.add(ne)}startScope(ne){this.openNode(ne)}endScope(){this.closeNode()}__addSublanguage(ne,be){const je=ne.root;be&&(je.scope=`language:${be}`),this.add(je)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(O){return O?typeof O=="string"?O:O.source:null}function _(O){return D("(?=",O,")")}function T(O){return D("(?:",O,")*")}function N(O){return D("(?:",O,")?")}function D(...O){return O.map(be=>v(be)).join("")}function x(O){const ne=O[O.length-1];return typeof ne=="object"&&ne.constructor===Object?(O.splice(O.length-1,1),ne):{}}function C(...O){return"("+(x(O).capture?"":"?:")+O.map(je=>v(je)).join("|")+")"}function I(O){return new RegExp(O.toString()+"|").exec("").length-1}function A(O,ne){const be=O&&O.exec(ne);return be&&be.index===0}const Q=new RegExp(C(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function V(O,{joinWith:ne}){let be=0;return O.map(je=>{be+=1;const Qe=be;let st=v(je),Ae="";for(;st.length>0;){const _e=Q.exec(st);if(!_e){Ae+=st;break}Ae+=st.substring(0,_e.index),st=st.substring(_e.index+_e[0].length),_e[0][0]==="\\"&&_e[1]?Ae+="\\"+String(Number(_e[1])+Qe):(Ae+=_e[0],(_e[0]==="("||/^\(\?[<']/.test(_e[0]))&&be++)}return Ae}).map(je=>`(${je})`).join(ne)}const ie=/\b\B/,H="[a-zA-Z]\\w*",R="[a-zA-Z_]\\w*",q="\\b\\d+(\\.\\d+)?",J="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",me="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ce=(O={})=>{const ne=/^#![ ]*\//;return O.binary&&(O.begin=D(ne,/.*\b/,O.binary,/\b.*/)),s({scope:"meta",begin:ne,end:/$/,relevance:0,"on:begin":(be,je)=>{be.index!==0&&je.ignoreMatch()}},O)},Se={begin:"\\\\[\\s\\S]",relevance:0},he={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Se]},M={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Se]},ee={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},fe=function(O,ne,be={}){const je=s({scope:"comment",begin:O,end:ne,contains:[]},be);je.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Qe=C("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return je.contains.push({begin:D(/[ ]+/,"(",Qe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),je},we=fe("//","$"),Le=fe("/\\*","\\*/"),S=fe("#","$"),z={scope:"number",begin:q,relevance:0},B={scope:"number",begin:J,relevance:0},se={scope:"number",begin:K,relevance:0},pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Se,{begin:/\[/,end:/\]/,relevance:0,contains:[Se]}]},ve={scope:"title",begin:H,relevance:0},Z={scope:"title",begin:R,relevance:0},ye={begin:"\\.\\s*"+R,relevance:0};var Ge=Object.freeze({__proto__:null,APOS_STRING_MODE:he,BACKSLASH_ESCAPE:Se,BINARY_NUMBER_MODE:se,BINARY_NUMBER_RE:K,COMMENT:fe,C_BLOCK_COMMENT_MODE:Le,C_LINE_COMMENT_MODE:we,C_NUMBER_MODE:B,C_NUMBER_RE:J,END_SAME_AS_BEGIN:function(O){return Object.assign(O,{"on:begin":(ne,be)=>{be.data._beginMatch=ne[1]},"on:end":(ne,be)=>{be.data._beginMatch!==ne[1]&&be.ignoreMatch()}})},HASH_COMMENT_MODE:S,IDENT_RE:H,MATCH_NOTHING_RE:ie,METHOD_GUARD:ye,NUMBER_MODE:z,NUMBER_RE:q,PHRASAL_WORDS_MODE:ee,QUOTE_STRING_MODE:M,REGEXP_MODE:pe,RE_STARTERS_RE:me,SHEBANG:ce,TITLE_MODE:ve,UNDERSCORE_IDENT_RE:R,UNDERSCORE_TITLE_MODE:Z});function $e(O,ne){O.input[O.index-1]==="."&&ne.ignoreMatch()}function Me(O,ne){O.className!==void 0&&(O.scope=O.className,delete O.className)}function Dt(O,ne){ne&&O.beginKeywords&&(O.begin="\\b("+O.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",O.__beforeBegin=$e,O.keywords=O.keywords||O.beginKeywords,delete O.beginKeywords,O.relevance===void 0&&(O.relevance=0))}function Pe(O,ne){Array.isArray(O.illegal)&&(O.illegal=C(...O.illegal))}function Hn(O,ne){if(O.match){if(O.begin||O.end)throw new Error("begin & end are not supported with match");O.begin=O.match,delete O.match}}function it(O,ne){O.relevance===void 0&&(O.relevance=1)}const fn=(O,ne)=>{if(!O.beforeMatch)return;if(O.starts)throw new Error("beforeMatch cannot be used with starts");const be=Object.assign({},O);Object.keys(O).forEach(je=>{delete O[je]}),O.keywords=be.keywords,O.begin=D(be.beforeMatch,_(be.begin)),O.starts={relevance:0,contains:[Object.assign(be,{endsParent:!0})]},O.relevance=0,delete be.beforeMatch},Ot=["of","and","for","in","not","or","if","then","parent","list","value"],Gt="keyword";function Wt(O,ne,be=Gt){const je=Object.create(null);return typeof O=="string"?Qe(be,O.split(" ")):Array.isArray(O)?Qe(be,O):Object.keys(O).forEach(function(st){Object.assign(je,Wt(O[st],ne,st))}),je;function Qe(st,Ae){ne&&(Ae=Ae.map(_e=>_e.toLowerCase())),Ae.forEach(function(_e){const Ue=_e.split("|");je[Ue[0]]=[st,Lt(Ue[0],Ue[1])]})}}function Lt(O,ne){return ne?Number(ne):vt(O)?0:1}function vt(O){return Ot.includes(O.toLowerCase())}const Ln={},lt=O=>{console.error(O)},mt=(O,...ne)=>{console.log(`WARN: ${O}`,...ne)},At=(O,ne)=>{Ln[`${O}/${ne}`]||(console.log(`Deprecated as of ${O}. ${ne}`),Ln[`${O}/${ne}`]=!0)},_n=new Error;function hn(O,ne,{key:be}){let je=0;const Qe=O[be],st={},Ae={};for(let _e=1;_e<=ne.length;_e++)Ae[_e+je]=Qe[_e],st[_e+je]=!0,je+=I(ne[_e-1]);O[be]=Ae,O[be]._emit=st,O[be]._multi=!0}function qn(O){if(Array.isArray(O.begin)){if(O.skip||O.excludeBegin||O.returnBegin)throw lt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),_n;if(typeof O.beginScope!="object"||O.beginScope===null)throw lt("beginScope must be object"),_n;hn(O,O.begin,{key:"beginScope"}),O.begin=V(O.begin,{joinWith:""})}}function Sn(O){if(Array.isArray(O.end)){if(O.skip||O.excludeEnd||O.returnEnd)throw lt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),_n;if(typeof O.endScope!="object"||O.endScope===null)throw lt("endScope must be object"),_n;hn(O,O.end,{key:"endScope"}),O.end=V(O.end,{joinWith:""})}}function wn(O){O.scope&&typeof O.scope=="object"&&O.scope!==null&&(O.beginScope=O.scope,delete O.scope)}function ra(O){wn(O),typeof O.beginScope=="string"&&(O.beginScope={_wrap:O.beginScope}),typeof O.endScope=="string"&&(O.endScope={_wrap:O.endScope}),qn(O),Sn(O)}function zn(O){function ne(Ae,_e){return new RegExp(v(Ae),"m"+(O.case_insensitive?"i":"")+(O.unicodeRegex?"u":"")+(_e?"g":""))}class be{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(_e,Ue){Ue.position=this.position++,this.matchIndexes[this.matchAt]=Ue,this.regexes.push([Ue,_e]),this.matchAt+=I(_e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const _e=this.regexes.map(Ue=>Ue[1]);this.matcherRe=ne(V(_e,{joinWith:"|"}),!0),this.lastIndex=0}exec(_e){this.matcherRe.lastIndex=this.lastIndex;const Ue=this.matcherRe.exec(_e);if(!Ue)return null;const Ct=Ue.findIndex((jn,Un)=>Un>0&&jn!==void 0),bt=this.matchIndexes[Ct];return Ue.splice(0,Ct),Object.assign(Ue,bt)}}class je{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(_e){if(this.multiRegexes[_e])return this.multiRegexes[_e];const Ue=new be;return this.rules.slice(_e).forEach(([Ct,bt])=>Ue.addRule(Ct,bt)),Ue.compile(),this.multiRegexes[_e]=Ue,Ue}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(_e,Ue){this.rules.push([_e,Ue]),Ue.type==="begin"&&this.count++}exec(_e){const Ue=this.getMatcher(this.regexIndex);Ue.lastIndex=this.lastIndex;let Ct=Ue.exec(_e);if(this.resumingScanAtSamePosition()&&!(Ct&&Ct.index===this.lastIndex)){const bt=this.getMatcher(0);bt.lastIndex=this.lastIndex+1,Ct=bt.exec(_e)}return Ct&&(this.regexIndex+=Ct.position+1,this.regexIndex===this.count&&this.considerAll()),Ct}}function Qe(Ae){const _e=new je;return Ae.contains.forEach(Ue=>_e.addRule(Ue.begin,{rule:Ue,type:"begin"})),Ae.terminatorEnd&&_e.addRule(Ae.terminatorEnd,{type:"end"}),Ae.illegal&&_e.addRule(Ae.illegal,{type:"illegal"}),_e}function st(Ae,_e){const Ue=Ae;if(Ae.isCompiled)return Ue;[Me,Hn,ra,fn].forEach(bt=>bt(Ae,_e)),O.compilerExtensions.forEach(bt=>bt(Ae,_e)),Ae.__beforeBegin=null,[Dt,Pe,it].forEach(bt=>bt(Ae,_e)),Ae.isCompiled=!0;let Ct=null;return typeof Ae.keywords=="object"&&Ae.keywords.$pattern&&(Ae.keywords=Object.assign({},Ae.keywords),Ct=Ae.keywords.$pattern,delete Ae.keywords.$pattern),Ct=Ct||/\w+/,Ae.keywords&&(Ae.keywords=Wt(Ae.keywords,O.case_insensitive)),Ue.keywordPatternRe=ne(Ct,!0),_e&&(Ae.begin||(Ae.begin=/\B|\b/),Ue.beginRe=ne(Ue.begin),!Ae.end&&!Ae.endsWithParent&&(Ae.end=/\B|\b/),Ae.end&&(Ue.endRe=ne(Ue.end)),Ue.terminatorEnd=v(Ue.end)||"",Ae.endsWithParent&&_e.terminatorEnd&&(Ue.terminatorEnd+=(Ae.end?"|":"")+_e.terminatorEnd)),Ae.illegal&&(Ue.illegalRe=ne(Ae.illegal)),Ae.contains||(Ae.contains=[]),Ae.contains=[].concat(...Ae.contains.map(function(bt){return pn(bt==="self"?Ae:bt)})),Ae.contains.forEach(function(bt){st(bt,Ue)}),Ae.starts&&st(Ae.starts,_e),Ue.matcher=Qe(Ue),Ue}if(O.compilerExtensions||(O.compilerExtensions=[]),O.contains&&O.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return O.classNameAliases=s(O.classNameAliases||{}),st(O)}function It(O){return O?O.endsWithParent||It(O.starts):!1}function pn(O){return O.variants&&!O.cachedVariants&&(O.cachedVariants=O.variants.map(function(ne){return s(O,{variants:null},ne)})),O.cachedVariants?O.cachedVariants:It(O)?s(O,{starts:O.starts?s(O.starts):null}):Object.isFrozen(O)?s(O):O}var Rt="11.12.0";class Gn extends Error{constructor(ne,be){super(ne),this.name="HTMLInjectionError",this.html=be}}const $n=r,mn=s,He=Symbol("nomatch"),gn=7,Ht=function(O){const ne=Object.create(null),be=Object.create(null),je=[];let Qe=!0;const st="Could not find the language '{}', did you forget to load/include a language module?",Ae={disableAutodetect:!0,name:"Plain text",contains:[]};let _e={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Ue(oe){return _e.noHighlightRe.test(oe)}function Ct(oe){let Re=oe.className+" ";Re+=oe.parentNode?oe.parentNode.className:"";const Be=_e.languageDetectRe.exec(Re);if(Be){const Je=Jt(Be[1]);return Je||(mt(st.replace("{}",Be[1])),mt("Falling back to no-highlight mode for this block.",oe)),Je?Be[1]:"no-highlight"}return Re.split(/\s+/).find(Je=>Ue(Je)||Jt(Je))}function bt(oe,Re,Be){let Je="",Mt="";typeof Re=="object"?(Je=oe,Be=Re.ignoreIllegals,Mt=Re.language):(At("10.7.0","highlight(lang, code, ...args) has been deprecated."),At("10.7.0",`Please use highlight(code, options) instead.
167
+ https://github.com/highlightjs/highlight.js/issues/2277`),Mt=oe,Je=Re),Be===void 0&&(Be=!0);const en={code:Je,language:Mt};Ye("before:highlight",en);const bn=en.result?en.result:jn(en.language,en.code,Be);return bn.code=en.code,Ye("after:highlight",bn),bn}function jn(oe,Re,Be,Je){const Mt=Object.create(null);function en(ue,Ee){return ue.keywords[Ee]}function bn(){if(!W.keywords){j.addText(te);return}let ue=0;W.keywordPatternRe.lastIndex=0;let Ee=W.keywordPatternRe.exec(te),De="";for(;Ee;){De+=te.substring(ue,Ee.index);const Ve=tn.case_insensitive?Ee[0].toLowerCase():Ee[0],We=en(W,Ve);if(We){const[oa,$l]=We;if(j.addText(De),De="",Mt[Ve]=(Mt[Ve]||0)+1,Mt[Ve]<=gn&&(xe+=$l),oa.startsWith("_"))De+=Ee[0];else{const Ps=tn.classNameAliases[oa]||oa;Ut(Ee[0],Ps)}}else De+=Ee[0];ue=W.keywordPatternRe.lastIndex,Ee=W.keywordPatternRe.exec(te)}De+=te.substring(ue),j.addText(De)}function Zt(){if(te==="")return;let ue=null;if(typeof W.subLanguage=="string"){if(!ne[W.subLanguage]){j.addText(te);return}ue=jn(W.subLanguage,te,!0,w[W.subLanguage]),w[W.subLanguage]=ue._top}else ue=ba(te,W.subLanguage.length?W.subLanguage:null);W.relevance>0&&(xe+=ue.relevance),j.__addSublanguage(ue._emitter,ue.language)}function ft(){W.subLanguage!=null?Zt():bn(),te=""}function Ut(ue,Ee){ue!==""&&(j.startScope(Ee),j.addText(ue),j.endScope())}function al(ue,Ee){let De=1;const Ve=Ee.length-1;for(;De<=Ve;){if(!ue._emit[De]){De++;continue}const We=tn.classNameAliases[ue[De]]||ue[De],oa=Ee[De];We?Ut(oa,We):(te=oa,bn(),te=""),De++}}function li(ue,Ee){return ue.scope&&typeof ue.scope=="string"&&j.openNode(tn.classNameAliases[ue.scope]||ue.scope),ue.beginScope&&(ue.beginScope._wrap?(Ut(te,tn.classNameAliases[ue.beginScope._wrap]||ue.beginScope._wrap),te=""):ue.beginScope._multi&&(al(ue.beginScope,Ee),te="")),W=Object.create(ue,{parent:{value:W}}),W}function si(ue,Ee,De){let Ve=A(ue.endRe,De);if(Ve){if(ue["on:end"]){const We=new a(ue);ue["on:end"](Ee,We),We.isMatchIgnored&&(Ve=!1)}if(Ve){for(;ue.endsParent&&ue.parent;)ue=ue.parent;return ue}}if(ue.endsWithParent)return si(ue.parent,Ee,De)}function Ua(ue){return W.matcher.regexIndex===0?(te+=ue[0],1):(et=!0,0)}function il(ue){const Ee=ue[0],De=ue.rule,Ve=new a(De),We=[De.__beforeBegin,De["on:begin"]];for(const oa of We)if(oa&&(oa(ue,Ve),Ve.isMatchIgnored))return Ua(Ee);return De.skip?te+=Ee:(De.excludeBegin&&(te+=Ee),ft(),!De.returnBegin&&!De.excludeBegin&&(te=Ee)),li(De,ue),De.returnBegin?0:Ee.length}function On(ue){const Ee=ue[0],De=Re.substring(ue.index),Ve=si(W,ue,De);if(!Ve)return He;const We=W;W.endScope&&W.endScope._wrap?(ft(),Ut(Ee,W.endScope._wrap)):W.endScope&&W.endScope._multi?(ft(),al(W.endScope,ue)):We.skip?te+=Ee:(We.returnEnd||We.excludeEnd||(te+=Ee),ft(),We.excludeEnd&&(te=Ee));do W.scope&&j.closeNode(),!W.skip&&!W.subLanguage&&(xe+=W.relevance),W=W.parent;while(W!==Ve.parent);return Ve.starts&&li(Ve.starts,ue),We.returnEnd?0:Ee.length}function ri(){const ue=[];for(let Ee=W;Ee!==tn;Ee=Ee.parent)Ee.scope&&ue.unshift(Ee.scope);ue.forEach(Ee=>j.openNode(Ee))}let Ba={};function oi(ue,Ee){const De=Ee&&Ee[0];if(te+=ue,De==null)return ft(),0;if(Ba.type==="begin"&&Ee.type==="end"&&Ba.index===Ee.index&&De===""){if(te+=Re.slice(Ee.index,Ee.index+1),!Qe){const Ve=new Error(`0 width match regex (${oe})`);throw Ve.languageName=oe,Ve.badRule=Ba.rule,Ve}return 1}if(Ba=Ee,Ee.type==="begin")return il(Ee);if(Ee.type==="illegal"&&!Be){const Ve=new Error('Illegal lexeme "'+De+'" for mode "'+(W.scope||"<unnamed>")+'"');throw Ve.mode=W,Ve}else if(Ee.type==="end"){const Ve=On(Ee);if(Ve!==He)return Ve}if(Ee.type==="illegal"&&De==="")return Ee.index===Re.length||(te+=`
168
+ `),1;if(qe>1e5&&qe>Ee.index*3)throw new Error("potential infinite loop, way more iterations than matches");return te+=De,De.length}const tn=Jt(oe);if(!tn)throw lt(st.replace("{}",oe)),new Error('Unknown language: "'+oe+'"');const Ia=zn(tn);let Aa="",W=Je||Ia;const w={},j=new _e.__emitter(_e);ri();let te="",xe=0,Oe=0,qe=0,et=!1;try{if(tn.__emitTokens)tn.__emitTokens(Re,j);else{for(W.matcher.considerAll();;){qe++,et?et=!1:W.matcher.considerAll(),W.matcher.lastIndex=Oe;const ue=W.matcher.exec(Re);if(!ue)break;const Ee=Re.substring(Oe,ue.index),De=oi(Ee,ue);Oe=ue.index+De}oi(Re.substring(Oe))}return j.finalize(),Aa=j.toHTML(),{language:oe,value:Aa,relevance:xe,illegal:!1,_emitter:j,_top:W}}catch(ue){if(ue.message&&ue.message.includes("Illegal"))return{language:oe,value:$n(Re),illegal:!0,relevance:0,_illegalBy:{message:ue.message,index:Oe,context:Re.slice(Oe-100,Oe+100),mode:ue.mode,resultSoFar:Aa},_emitter:j};if(Qe)return{language:oe,value:$n(Re),illegal:!1,relevance:0,errorRaised:ue,_emitter:j,_top:W};throw ue}}function Un(oe){const Re={value:$n(oe),illegal:!1,relevance:0,_top:Ae,_emitter:new _e.__emitter(_e)};return Re._emitter.addText(oe),Re}function ba(oe,Re){Re=Re||_e.languages||Object.keys(ne);const Be=Un(oe),Je=Re.filter(Jt).filter(G).map(ft=>jn(ft,oe,!1));Je.unshift(Be);const Mt=Je.sort((ft,Ut)=>{if(ft.relevance!==Ut.relevance)return Ut.relevance-ft.relevance;if(ft.language&&Ut.language){if(Jt(ft.language).supersetOf===Ut.language)return 1;if(Jt(Ut.language).supersetOf===ft.language)return-1}return 0}),[en,bn]=Mt,Zt=en;return Zt.secondBest=bn,Zt}function Pt(oe,Re,Be){const Je=Re&&be[Re]||Be;oe.classList.add("hljs"),oe.classList.add(`language-${Je}`)}function St(oe){let Re=null;const Be=Ct(oe);if(Ue(Be))return;if(Ye("before:highlightElement",{el:oe,language:Be}),oe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",oe);return}if(oe.children.length>0&&(_e.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(oe)),_e.throwUnescapedHTML))throw new Gn("One of your code blocks includes unescaped HTML.",oe.innerHTML);Re=oe;const Je=Re.textContent,Mt=Be?bt(Je,{language:Be,ignoreIllegals:!0}):ba(Je);oe.innerHTML=Mt.value,oe.dataset.highlighted="yes",Pt(oe,Be,Mt.language),oe.result={language:Mt.language,re:Mt.relevance,relevance:Mt.relevance},Mt.secondBest&&(oe.secondBest={language:Mt.secondBest.language,relevance:Mt.secondBest.relevance}),Ye("after:highlightElement",{el:oe,result:Mt,text:Je})}function Kt(oe){_e=mn(_e,oe)}const ut=()=>{ya(),At("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Yn(){ya(),At("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ii=!1;function ya(){function oe(){ya()}if(document.readyState==="loading"){ii||window.addEventListener("DOMContentLoaded",oe,!1),ii=!0;return}document.querySelectorAll(_e.cssSelector).forEach(St)}function va(oe,Re){let Be=null;try{Be=Re(O)}catch(Je){if(lt("Language definition for '{}' could not be registered.".replace("{}",oe)),Qe)lt(Je);else throw Je;Be=Ae}Be.name||(Be.name=oe),ne[oe]=Be,Be.rawDefinition=Re.bind(null,O),Be.aliases&&Fn(Be.aliases,{languageName:oe})}function Wn(oe){delete ne[oe];for(const Re of Object.keys(be))be[Re]===oe&&delete be[Re]}function Ea(){return Object.keys(ne)}function Jt(oe){return oe=(oe||"").toLowerCase(),ne[oe]||ne[be[oe]]}function Fn(oe,{languageName:Re}){typeof oe=="string"&&(oe=[oe]),oe.forEach(Be=>{be[Be.toLowerCase()]=Re})}function G(oe){const Re=Jt(oe);return Re&&!Re.disableAutodetect}function de(oe){oe["before:highlightBlock"]&&!oe["before:highlightElement"]&&(oe["before:highlightElement"]=Re=>{oe["before:highlightBlock"](Object.assign({block:Re.el},Re))}),oe["after:highlightBlock"]&&!oe["after:highlightElement"]&&(oe["after:highlightElement"]=Re=>{oe["after:highlightBlock"](Object.assign({block:Re.el},Re))})}function ge(oe){de(oe),je.push(oe)}function Te(oe){const Re=je.indexOf(oe);Re!==-1&&je.splice(Re,1)}function Ye(oe,Re){const Be=oe;je.forEach(function(Je){Je[Be]&&Je[Be](Re)})}function un(oe){return At("10.7.0","highlightBlock will be removed entirely in v12.0"),At("10.7.0","Please use highlightElement now."),St(oe)}Object.assign(O,{highlight:bt,highlightAuto:ba,highlightAll:ya,highlightElement:St,highlightBlock:un,configure:Kt,initHighlighting:ut,initHighlightingOnLoad:Yn,registerLanguage:va,unregisterLanguage:Wn,listLanguages:Ea,getLanguage:Jt,registerAliases:Fn,autoDetection:G,inherit:mn,addPlugin:ge,removePlugin:Te}),O.debugMode=function(){Qe=!1},O.safeMode=function(){Qe=!0},O.versionString=Rt,O.regex={concat:D,lookahead:_,either:C,optional:N,anyNumberOfTimes:T};for(const oe in Ge)typeof Ge[oe]=="object"&&l(Ge[oe]);return Object.assign(O,Ge),O},$t=Ht({});return $t.newInstance=()=>Ht({}),Uu=$t,$t.HighlightJS=$t,$t.default=$t,Uu}var Bu,pg;function R0(){if(pg)return Bu;pg=1;function l(a){const r=a.regex,s=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,f={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},p={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},y=a.inherit(p,{begin:/\(/,end:/\)/}),g=a.inherit(a.APOS_STRING_MODE,{className:"string"}),m=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[f]},{begin:/'/,end:/'/,contains:[f]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[p,m,g,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[p,y,m,g]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},f,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(s,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Bu=l,Bu}var Iu,mg;function k0(){if(mg)return Iu;mg=1;function l(a){const r=a.regex,s={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const f={className:"subst",begin:/\$\(/,end:/\)/,contains:[a.BACKSLASH_ESCAPE]},p=a.inherit(a.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),y={begin:/<<-?\s*(?=\w+)/,starts:{contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,s,f]};f.contains.push(g);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},a.NUMBER_MODE,s]},T=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],N=a.SHEBANG({binary:`(${T.join("|")})`,relevance:10}),D={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[a.inherit(a.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},x=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],C=["true","false"],I={match:/(\/[a-z._-]+)+/},A=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],Q=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],V=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],ie=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:x,literal:C,built_in:[...A,...Q,"set","shopt",...V,...ie]},contains:[N,a.SHEBANG(),D,_,p,y,I,g,m,b,v,s]}}return Iu=l,Iu}var Hu,gg;function O0(){if(gg)return Hu;gg=1;function l(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(f)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g=r.concat(/\batomic_/,r.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),m={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:g}]},v={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},_={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},T={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},N={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(v,{className:"string"}),s,a.C_BLOCK_COMMENT_MODE]},D=[T,N],x={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},C=r.optional(f)+a.IDENT_RE+"\\s*\\(",I=12,V={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},ie=[...D,m,s,a.C_BLOCK_COMMENT_MODE,_,v],H={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:V,contains:ie.concat([{begin:/\(/,end:/\)/,keywords:V,contains:ie.concat(["self"]),relevance:0}]),relevance:0},R={begin:"("+y+"[\\*&\\s]+){1,"+I+"}"+C,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:V,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:V,relevance:0},{begin:C,returnBegin:!0,contains:[a.inherit(x,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:V,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,v,_,m,{begin:/\(/,end:/\)/,keywords:V,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,v,_,m]}]},m,s,a.C_BLOCK_COMMENT_MODE,...D]};return{name:"C",aliases:["h"],keywords:V,disableAutodetect:!0,illegal:"</",contains:[].concat(H,R,ie,[...D,{begin:a.IDENT_RE+"::",keywords:V},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:N,strings:v,keywords:V}}}return Hu=l,Hu}var qu,bg;function C0(){if(bg)return qu;bg=1;function l(a){const r=a.regex,s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",f="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(f)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},a.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},v={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},_={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},b,{scope:"string",begin:/<.*?>/},s,a.C_BLOCK_COMMENT_MODE]},T={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(b,{className:"string"}),s,a.C_BLOCK_COMMENT_MODE]},N=[_,T],D={className:"title",begin:r.optional(f)+a.IDENT_RE,relevance:0},x=r.optional(f)+a.IDENT_RE+"\\s*\\(",C=12,I=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],A=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],Q=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],V=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],R={type:A,keyword:I,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:Q},q={className:"function.dispatch",relevance:0,keywords:{_hint:V},begin:r.concat(/\b/,`(?!${I.join("|")})`,a.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},J=[q,...N,g,s,a.C_BLOCK_COMMENT_MODE,v,b],K={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:R,contains:J.concat([{begin:/\(/,end:/\)/,keywords:R,contains:J.concat(["self"]),relevance:0}]),relevance:0},me={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+C+"}"+x,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:R,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:R,relevance:0},{begin:x,returnBegin:!0,contains:[D],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:["self",s,a.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,s,a.C_BLOCK_COMMENT_MODE,...N]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:R,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(K,me,q,J,[...N,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:R,contains:["self",g]},{begin:a.IDENT_RE+"::",keywords:R},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return qu=l,qu}var Gu,yg;function M0(){if(yg)return Gu;yg=1;function l(a){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],s=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],f=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],p=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],y={keyword:f.concat(p),built_in:r,literal:u},g=a.inherit(a.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",_={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+b},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+b},{begin:"(-?)(\\b"+m+"(\\.("+m+")?)?|\\."+m+")([eE][-+]?"+m+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},T={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},N={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},D=a.inherit(N,{illegal:/\n/}),x={className:"subst",begin:/\{/,end:/\}/,keywords:y},C=a.inherit(x,{illegal:/\n/}),I={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},a.BACKSLASH_ESCAPE,C]},A={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},x]},Q=a.inherit(A,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},C]});x.contains=[A,I,N,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.C_BLOCK_COMMENT_MODE],C.contains=[Q,I,D,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,_,a.inherit(a.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const V={variants:[T,A,I,N,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},ie={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},H=a.IDENT_RE+"(<"+a.IDENT_RE+"(\\s*,\\s*"+a.IDENT_RE+")*>)?(\\[\\])?",R={begin:"@"+a.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:y,illegal:/::/,contains:[a.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},V,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,ie,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,ie,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+H+"\\s+)+"+a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:s.join(" "),relevance:0},{begin:a.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[a.TITLE_MODE,ie],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[V,_,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},R]}}return Gu=l,Gu}var $u,vg;function D0(){if(vg)return $u;vg=1;const l=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=m.regex,v=l(m),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},T="and or not only",N=/@-?\w[\w]*(-\w+)*/,D="[a-zA-Z-][a-zA-Z0-9_-]*",x=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[v.BLOCK_COMMENT,_,v.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+D,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+f.join("|")+")"},{begin:":(:)?("+p.join("|")+")"}]},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[v.BLOCK_COMMENT,v.HEXCOLOR,v.IMPORTANT,v.CSS_NUMBER_MODE,v.UNICODE_RANGE,...x,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...x,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:N},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...x,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b"}]}}return $u=g,$u}var Yu,Eg;function L0(){if(Eg)return Yu;Eg=1;function l(a){const r=a.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},f={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},p={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},y={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},v={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},_=a.inherit(b,{contains:[]}),T=a.inherit(v,{contains:[]});b.contains.push(T),v.contains.push(_);let N=[s,m];return[b,v,_,T].forEach(I=>{I.contains=I.contains.concat(N)}),N=N.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:N},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:N}]}]},s,p,u,b,v,{className:"quote",begin:"^>\\s+",contains:N,end:"$"},f,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Yu=l,Yu}var Fu,_g;function z0(){if(_g)return Fu;_g=1;function l(a){const r=a.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Fu=l,Fu}var Pu,Sg;function j0(){if(Sg)return Pu;Sg=1;function l(a){const r=a.regex,s="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),f=r.concat(u,/(::\w+)*/),y={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},b=[a.COMMENT("#","$",{contains:[g]}),a.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),a.COMMENT("^__END__",a.MATCH_NOTHING_RE)],v={className:"subst",begin:/#\{/,end:/\}/,keywords:y},_={className:"string",contains:[a.BACKSLASH_ESCAPE,v],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[a.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[a.BACKSLASH_ESCAPE,v]})]}]},T="[1-9](_?[0-9])*|0",N="[0-9](_?[0-9])*",D={className:"number",relevance:0,variants:[{begin:`\\b(${T})(\\.(${N}))?([eE][+-]?(${N})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},x={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},H=[_,{variants:[{match:[/class\s+/,f,/\s+<\s+/,f]},{match:[/\b(class|module)\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,f],scope:{2:"title.class"},keywords:y},{relevance:0,match:[f,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:u,scope:"title.class"},{match:[/def/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[x]},{begin:"::"},{className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:s}],relevance:0},D,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:y},{begin:"("+a.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[a.BACKSLASH_ESCAPE,v],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,b),relevance:0}].concat(m,b);v.contains=H,x.contains=H;const K=[{begin:/^\s*=>/,starts:{end:"$",contains:H}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:H}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[a.SHEBANG({binary:"ruby"})].concat(K).concat(b).concat(H)}}return Pu=l,Pu}var Ku,wg;function U0(){if(wg)return Ku;wg=1;function l(a){const p={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:p,illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{className:"string",variants:[a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[a.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,illegal:/["']/}]}]}}return Ku=l,Ku}var Zu,Ng;function B0(){if(Ng)return Zu;Ng=1;function l(a){const r=a.regex,s=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[a.HASH_COMMENT_MODE,a.QUOTE_STRING_MODE,a.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(s,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Zu=l,Zu}var Xu,Tg;function I0(){if(Tg)return Xu;Tg=1;function l(a){const r=a.regex,s={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},u=a.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const f={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},p={className:"literal",begin:/\bon|off|true|false|yes|no\b/},y={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[u,p,f,y,s,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,_=r.either(m,b,v),T=r.concat(_,"(\\s*\\.\\s*",_,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[u,{className:"section",begin:/\[+/,end:/\]+/},{begin:T,className:"attr",starts:{end:/$/,contains:[u,g,p,f,y,s]}}]}}return Xu=l,Xu}var Vu,xg;function H0(){if(xg)return Vu;xg=1;var l="[0-9](_*[0-9])*",a=`\\.(${l})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${l})((${a})|\\.)?|(${a}))[eE][+-]?(${l})[fFdD]?\\b`},{begin:`\\b(${l})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${l})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${l})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(p,y,g){return g===-1?"":p.replace(y,m=>u(p,y,g-1))}function f(p){const y=p.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=g+"<@@@>"+m,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",T=u("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),I={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},A={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},Q={className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[p.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:I,illegal:/<\/|#/,contains:[p.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[p.BACKSLASH_ESCAPE]},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,g],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[g,y.concat(T,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[Q,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(T,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:I,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[A,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,s,p.C_BLOCK_COMMENT_MODE]},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},s,A]}}return Vu=f,Vu}var Qu,Ag;function q0(){if(Ag)return Qu;Ag=1;const l="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],f=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(f,s,u);function g(m){const b=m.regex,v=(Z,{after:ye})=>{const Ne="</"+Z[0].slice(1);return Z.input.indexOf(Ne,ye)!==-1},_=l,T={begin:"<>",end:"</>"},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,D={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Z,ye)=>{const Ne=Z[0].length+Z.index,Ge=Z.input[Ne];if(Ge==="<"||Ge===","){ye.ignoreMatch();return}Ge===">"&&(v(Z,{after:Ne})||ye.ignoreMatch());let $e;const Me=Z.input.substring(Ne);if($e=Me.match(/^\s*=/)){ye.ignoreMatch();return}if(($e=Me.match(/^\s+extends\s+/))&&$e.index===0){ye.ignoreMatch();return}}},x={$pattern:l,keyword:a,literal:r,built_in:y,"variable.language":p},C="[0-9](_?[0-9])*",I=`\\.(${C})`,A="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",Q={className:"number",variants:[{begin:`(\\b(${A})((${I})|\\.)?|(${I}))[eE][+-]?(${C})\\b`},{begin:`\\b(${A})\\b((${I})\\b|\\.)?|(${I})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},V={className:"subst",begin:"\\$\\{",end:"\\}",keywords:x,contains:[]},ie={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,V],subLanguage:"xml"}},H={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,V],subLanguage:"css"}},R={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,V],subLanguage:"graphql"}},q={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,V]},K={className:"comment",variants:[m.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:_+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},me=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ie,H,R,q,{match:/\$\d+/},Q];V.contains=me.concat({begin:/\{/,end:/\}/,keywords:x,contains:["self"].concat(me)});const ce=[].concat(K,V.contains),Se=ce.concat([{begin:/(\s*)\(/,end:/\)/,keywords:x,contains:["self"].concat(ce)}]),he={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:Se},M={variants:[{match:[/class/,/\s+/,_,/\s+/,/extends/,/\s+/,b.concat(_,"(",b.concat(/\./,_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,_],scope:{1:"keyword",3:"title.class"}}]},ee={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...u]}},fe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},we={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[he],illegal:/%/},Le={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function S(Z){return b.concat("(?!",Z.join("|"),")")}const z={match:b.concat(/\b/,S([...f,"super","import","await"].map(Z=>`${Z}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},B={begin:b.concat(/\./,b.lookahead(b.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},se={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},he]},pe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",ve={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(pe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[he]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:x,exports:{PARAMS_CONTAINS:Se,CLASS_REFERENCE:ee},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),fe,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,ie,H,R,q,K,{match:/\$\d+/},Q,ee,{scope:"attr",match:_+b.lookahead(":"),relevance:0},ve,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[K,m.REGEXP_MODE,{className:"function",begin:pe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:x,contains:Se}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:T.begin,end:T.end},{match:N},{begin:D.begin,"on:begin":D.isTrulyOpeningTag,end:D.end}],subLanguage:"xml",contains:[{begin:D.begin,end:D.end,skip:!0,contains:["self"]}]}]},we,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[he,m.inherit(m.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[he]},z,Le,M,se,{match:/\$[(.]/}]}}return Qu=g,Qu}var Wu,Rg;function G0(){if(Rg)return Wu;Rg=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 Wu=r,Wu}var Ju,kg;function $0(){if(kg)return Ju;kg=1;var l="[0-9](_*[0-9])*",a=`\\.(${l})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${l})((${a})|\\.)?|(${a}))[eE][+-]?(${l})[fFdD]?\\b`},{begin:`\\b(${l})((${a})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${a})[fFdD]?\\b`},{begin:`\\b(${l})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${l})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(f){const p={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},y={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},g={className:"symbol",begin:f.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[f.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+f.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[f.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[f.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+f.UNDERSCORE_IDENT_RE+")?"},T={className:"meta",begin:"@"+f.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[f.inherit(v,{className:"string"}),"self"]}]},N=s,D=f.COMMENT("/\\*","\\*/",{contains:[f.C_BLOCK_COMMENT_MODE]}),x={variants:[{className:"type",begin:f.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},C=x;return C.variants[1].contains=[x],x.variants[1].contains=[C],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:p,contains:[f.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),f.C_LINE_COMMENT_MODE,D,y,g,_,T,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:p,relevance:5,contains:[{begin:f.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[f.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[x,f.C_LINE_COMMENT_MODE,D],relevance:0},f.C_LINE_COMMENT_MODE,D,_,T,v,f.C_NUMBER_MODE]},D]},{begin:[/class|interface|trait/,/\s+/,f.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},f.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,T]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
169
+ `},N]}}return Ju=u,Ju}var ed,Og;function Y0(){if(Og)return ed;Og=1;const l=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),g=f.concat(p).sort().reverse();function m(b){const v=l(b),_=g,T="and or not only",N="[\\w-]+",D="("+N+"|@\\{"+N+"\\})",x=[],C=[],I=function(ce){return{className:"string",begin:"~?"+ce+".*?"+ce}},A=function(ce,Se,he){return{className:ce,begin:Se,relevance:he}},Q={$pattern:/[a-z-]+/,keyword:T,attribute:u.join(" ")},V={begin:"\\(",end:"\\)",contains:C,keywords:Q,relevance:0};C.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,I("'"),I('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,V,A("variable","@@?"+N,10),A("variable","@\\{"+N+"\\}"),A("built_in","~?`[^`]*?`"),{className:"attribute",begin:N+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const ie=C.concat({begin:/\{/,end:/\}/,contains:x}),H={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(C)},R={begin:D+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:C}}]},q={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:Q,returnEnd:!0,contains:C,relevance:0}},J={className:"variable",variants:[{begin:"@"+N+"\\s*:",relevance:15},{begin:"@"+N}],starts:{end:"[;}]",returnEnd:!0,contains:ie}},K={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:D,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,H,A("keyword","all\\b"),A("variable","@\\{"+N+"\\}"),{begin:"\\b("+s.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,A("selector-tag",D,0),A("selector-id","#"+D),A("selector-class","\\."+D,0),A("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:ie},{begin:"!important"},v.FUNCTION_DISPATCH]},me={begin:N+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[K]};return x.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,q,J,me,R,K,H,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:x}}return ed=m,ed}var td,Cg;function F0(){if(Cg)return td;Cg=1;function l(a){const r="\\[=*\\[",s="\\]=*\\]",u={begin:r,end:s,contains:["self"]},f=[a.COMMENT("--(?!"+r+")","$"),a.COMMENT("--"+r,s,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:a.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:f.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[a.inherit(a.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:f}].concat(f)},a.C_NUMBER_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"string",begin:r,end:s,contains:[u],relevance:5}])}}return td=l,td}var nd,Mg;function P0(){if(Mg)return nd;Mg=1;function l(a){const r={className:"variable",variants:[{begin:"\\$\\("+a.UNDERSCORE_IDENT_RE+"\\)",contains:[a.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},s={className:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,r]},u={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,s]},f={begin:"^"+a.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},p={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},y={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[a.HASH_COMMENT_MODE,r,s,u,f,p,y]}}return nd=l,nd}var ad,Dg;function K0(){if(Dg)return ad;Dg=1;function l(a){const r=a.regex,s=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,f={$pattern:/[\w.]+/,keyword:s.join(" ")},p={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:f},y={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},b={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},v=[a.BACKSLASH_ESCAPE,p,m],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],T=(x,C,I="\\1")=>{const A=I==="\\1"?I:r.concat(I,C);return r.concat(r.concat("(?:",x,")"),C,/(?:\\.|[^\\\/])*?/,A,/(?:\\.|[^\\\/])*?/,I,u)},N=(x,C,I)=>r.concat(r.concat("(?:",x,")"),C,/(?:\\.|[^\\\/])*?/,I,u),D=[m,a.HASH_COMMENT_MODE,a.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),y,{className:"string",contains:v,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},b,{begin:"(\\/\\/|"+a.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[a.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:T("s|tr|y",r.either(..._,{capture:!0}))},{begin:T("s|tr|y","\\(","\\)")},{begin:T("s|tr|y","\\[","\\]")},{begin:T("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:N("(?:m|qr)?",/\//,/\//)},{begin:N("m|qr",r.either(..._,{capture:!0}),/\1/)},{begin:N("m|qr",/\(/,/\)/)},{begin:N("m|qr",/\[/,/\]/)},{begin:N("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[a.TITLE_MODE,g,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return p.contains=D,y.contains=D,{name:"Perl",aliases:["pl","pm"],keywords:f,contains:D}}return ad=l,ad}var id,Lg;function Z0(){if(Lg)return id;Lg=1;function l(a){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},s=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:s,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:s,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:g,illegal:"</",contains:[r,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.C_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[a.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[a.UNDERSCORE_TITLE_MODE]},{begin:"\\."+a.UNDERSCORE_IDENT_RE,relevance:0}]}}return id=l,id}var ld,zg;function X0(){if(zg)return ld;zg=1;function l(a){const r=a.regex,s=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,s),f=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),p=r.concat(/[A-Z]+/,s),y={scope:"variable",match:"\\$+"+u},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=a.inherit(a.APOS_STRING_MODE,{illegal:null}),v=a.inherit(a.QUOTE_STRING_MODE,{illegal:null,contains:a.QUOTE_STRING_MODE.contains.concat(m)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:a.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(he,M)=>{M.data._beginMatch=he[1]||he[2]},"on:end":(he,M)=>{M.data._beginMatch!==he[1]&&M.ignoreMatch()}},T=a.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),N=`[
170
+ ]`,D={scope:"string",variants:[v,b,_,T]},x={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},C=["false","null","true"],I=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],A=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],V={keyword:I,literal:(he=>{const M=[];return he.forEach(ee=>{M.push(ee),ee.toLowerCase()===ee?M.push(ee.toUpperCase()):M.push(ee.toLowerCase())}),M})(C),built_in:A},ie=he=>he.map(M=>M.replace(/\|\d+$/,"")),H={variants:[{match:[/new/,r.concat(N,"+"),r.concat("(?!",ie(A).join("\\b|"),"\\b)"),f],scope:{1:"keyword",4:"title.class"}}]},R=r.concat(u,"\\b(?!\\()"),q={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),R],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[f,r.concat(/::/,r.lookahead(/(?!class\b)/)),R],scope:{1:"title.class",3:"variable.constant"}},{match:[f,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[f,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},J={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},K={relevance:0,begin:/\(/,end:/\)/,keywords:V,contains:[J,y,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,D,x,H]},me={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",ie(I).join("\\b|"),"|",ie(A).join("\\b|"),"\\b)"),u,r.concat(N,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[K]};K.contains.push(me);const ce=[J,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,D,x,H],Se={begin:r.concat(/#\[\s*\\?/,r.either(f,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:C,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:C,keyword:["new","array"]},contains:["self",...ce]},...ce,{scope:"meta",variants:[{match:f},{match:p}]}]};return{case_insensitive:!1,keywords:V,contains:[Se,a.HASH_COMMENT_MODE,a.COMMENT("//","$"),a.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:a.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},g,{scope:"variable.language",match:/\$this\b/},y,me,q,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},H,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},a.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:V,contains:["self",Se,y,q,a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE,a.HASH_COMMENT_MODE,D,x]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},a.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[a.inherit(a.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},a.UNDERSCORE_TITLE_MODE]},D,x]}}return ld=l,ld}var sd,jg;function V0(){if(jg)return sd;jg=1;function l(a){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},a.inherit(a.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),a.inherit(a.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return sd=l,sd}var rd,Ug;function Q0(){if(Ug)return rd;Ug=1;function l(a){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return rd=l,rd}var od,Bg;function W0(){if(Bg)return od;Bg=1;function l(a){const r=a.regex,s=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],g={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},v={begin:/\{\{/,relevance:0},_={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE,m,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,m,v,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[a.BACKSLASH_ESCAPE,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,v,b]},a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},T="[0-9](_?[0-9])*",N=`(\\b(${T}))?\\.(${T})|\\b(${T})\\.`,D=`\\b|${u.join("|")}`,x={className:"number",relevance:0,variants:[{begin:`(\\b(${T})|(${N}))[eE][+-]?(${T})[jJ]?(?=${D})`},{begin:`(${N})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${D})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${D})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${D})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${D})`},{begin:`\\b(${T})[jJ](?=${D})`}]},C={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},I={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,x,_,a.HASH_COMMENT_MODE]}]};return b.contains=[_,x,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,x,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,C,a.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[I]},{variants:[{match:[/\bclass/,/\s+/,s,/\s*/,/\(\s*/,s,/\s*\)/]},{match:[/\bclass/,/\s+/,s]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[x,I,_]}]}}return od=l,od}var cd,Ig;function J0(){if(Ig)return cd;Ig=1;function l(a){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return cd=l,cd}var ud,Hg;function eS(){if(Hg)return ud;Hg=1;function l(a){const r=a.regex,s=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),f=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,p=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:s,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[a.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:s},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),a.HASH_COMMENT_MODE,{scope:"string",contains:[a.BACKSLASH_ESCAPE],variants:[a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[f,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[p,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:f},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:p},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return ud=l,ud}var dd,qg;function tS(){if(qg)return dd;qg=1;function l(a){const r=a.regex,s=/(r#)?/,u=r.concat(s,a.UNDERSCORE_IDENT_RE),f=r.concat(s,a.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,f,r.lookahead(/\s*\(/))},y="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],v=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:a.IDENT_RE+"!?",type:v,keyword:g,literal:m,built_in:b},illegal:"</",contains:[a.C_LINE_COMMENT_MODE,a.COMMENT("/\\*","\\*/",{contains:["self"]}),a.inherit(a.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+y},{begin:"\\b0o([0-7_]+)"+y},{begin:"\\b0x([A-Fa-f0-9_]+)"+y},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+y}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,u],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,u,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:a.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:v}},{scope:"punctuation",begin:"->"},p]}}return dd=l,dd}var fd,Gg;function nS(){if(Gg)return fd;Gg=1;const l=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),a=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],s=[...a,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),f=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=l(m),v=p,_=f,T="@[a-z-]+",N="and or not only",x={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},x,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,x,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:T,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:N,attribute:u.join(" ")},contains:[{begin:T,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},x,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return fd=g,fd}var hd,$g;function aS(){if($g)return hd;$g=1;function l(a){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return hd=l,hd}var pd,Yg;function iS(){if(Yg)return pd;Yg=1;function l(a){const r=a.regex,s=a.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},f={begin:/"/,end:/"/,contains:[{match:/""/}]},p=["true","false","unknown"],y=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],v=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],_=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],T=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],N=v,D=[...b,...m].filter(ie=>!v.includes(ie)),x={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},C={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},I={match:r.concat(/\b/,r.either(...N),/\s*\(/),relevance:0,keywords:{built_in:N}};function A(ie){return r.concat(/\b/,r.either(...ie.map(H=>H.replace(/\s+/,"\\s+"))),/\b/)}const Q={scope:"keyword",match:A(T),relevance:0};function V(ie,{exceptions:H,when:R}={}){const q=R;return H=H||[],ie.map(J=>J.match(/\|\d+$/)||H.includes(J)?J:q(J)?`${J}|0`:J)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:V(D,{when:ie=>ie.length<3}),literal:p,type:g,built_in:_},contains:[{scope:"type",match:A(y)},Q,I,x,u,f,a.C_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,s,C]}}return pd=l,pd}var md,Fg;function lS(){if(Fg)return md;Fg=1;function l(R){return R?typeof R=="string"?R:R.source:null}function a(R){return r("(?=",R,")")}function r(...R){return R.map(J=>l(J)).join("")}function s(R){const q=R[R.length-1];return typeof q=="object"&&q.constructor===Object?(R.splice(R.length-1,1),q):{}}function u(...R){return"("+(s(R).capture?"":"?:")+R.map(K=>l(K)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const f=R=>r(/\b/,R,/\w$/.test(R)?/\b/:/\B/),p=["Protocol","Type"].map(f),y=["init","self"].map(f),g=["Any","Self"],m=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],b=["false","nil","true"],v=["assignment","associativity","higherThan","left","lowerThan","none","right"],_=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],T=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],N=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),D=u(N,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),x=r(N,D,"*"),C=u(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),I=u(C,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),A=r(C,I,"*"),Q=r(/[A-Z]/,I,"*"),V=["attached","autoclosure",r(/convention\(/,u("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,A,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],ie=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function H(R){const q={match:/\s+/,relevance:0},J=R.COMMENT("/\\*","\\*/",{contains:["self"]}),K=[R.C_LINE_COMMENT_MODE,J],me={match:[/\./,u(...p,...y)],className:{2:"keyword"}},ce={match:r(/\./,u(...m)),relevance:0},Se=m.filter(He=>typeof He=="string").concat(["_|0"]),he=m.filter(He=>typeof He!="string").concat(g).map(f),M={variants:[{className:"keyword",match:u(...he,...y)}]},ee={$pattern:u(/\b\w+/,/#\w+/),keyword:Se.concat(_),literal:b},fe=[me,ce,M],we={match:r(/\./,u(...T)),relevance:0},Le={className:"built_in",match:r(/\b/,u(...T),/(?=\()/)},S=[we,Le],z={match:/->/,relevance:0},B={className:"operator",relevance:0,variants:[{match:x},{match:`\\.(\\.|${D})+`}]},se=[z,B],pe="([0-9]_*)+",ve="([0-9a-fA-F]_*)+",Z={className:"number",relevance:0,variants:[{match:`\\b(${pe})(\\.(${pe}))?([eE][+-]?(${pe}))?\\b`},{match:`\\b0x(${ve})(\\.(${ve}))?([pP][+-]?(${pe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ye=(He="")=>({className:"subst",variants:[{match:r(/\\/,He,/[0\\tnr"']/)},{match:r(/\\/,He,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ne=(He="")=>({className:"subst",match:r(/\\/,He,/[\t ]*(?:[\r\n]|\r\n)/)}),Ge=(He="")=>({className:"subst",label:"interpol",begin:r(/\\/,He,/\(/),end:/\)/}),$e=(He="")=>({begin:r(He,/"""/),end:r(/"""/,He),contains:[ye(He),Ne(He),Ge(He)]}),Me=(He="")=>({begin:r(He,/"/),end:r(/"/,He),contains:[ye(He),Ge(He)]}),Dt={className:"string",variants:[$e(),$e("#"),$e("##"),$e("###"),Me(),Me("#"),Me("##"),Me("###")]},Pe=[R.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[R.BACKSLASH_ESCAPE]}],Hn={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Pe},it=He=>{const gn=r(He,/\//),Ht=r(/\//,He);return{begin:gn,end:Ht,contains:[...Pe,{scope:"comment",begin:`#(?!.*${Ht})`,end:/$/}]}},fn={scope:"regexp",variants:[it("###"),it("##"),it("#"),Hn]},Ot={match:r(/`/,A,/`/)},Gt={className:"variable",match:/\$\d+/},Wt={className:"variable",match:`\\$${I}+`},Lt=[Ot,Gt,Wt],vt={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:ie,contains:[...se,Z,Dt]}]}},Ln={scope:"keyword",match:r(/@/,u(...V),a(u(/\(/,/\s+/)))},lt={scope:"meta",match:r(/@/,A)},mt=[vt,Ln,lt],At={match:a(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,I,"+")},{className:"type",match:Q,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,a(Q)),relevance:0}]},_n={begin:/</,end:/>/,keywords:ee,contains:[...K,...fe,...mt,z,At]};At.contains.push(_n);const hn={match:r(A,/\s*:/),keywords:"_|0",relevance:0},qn={begin:/\(/,end:/\)/,relevance:0,keywords:ee,contains:["self",hn,...K,fn,...fe,...S,...se,Z,Dt,...Lt,...mt,At]},Sn={begin:/</,end:/>/,keywords:"repeat each",contains:[...K,At]},wn={begin:u(a(r(A,/\s*:/)),a(r(A,/\s+/,A,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:A}]},ra={begin:/\(/,end:/\)/,keywords:ee,contains:[wn,...K,...fe,...se,Z,Dt,...mt,At,qn],endsParent:!0,illegal:/["']/},zn={match:[/(func|macro)/,/\s+/,u(Ot.match,A,x)],className:{1:"keyword",3:"title.function"},contains:[Sn,ra,q],illegal:[/\[/,/%/]},It={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Sn,ra,q],illegal:/\[|%/},pn={match:[/operator/,/\s+/,x],className:{1:"keyword",3:"title"}},Rt={begin:[/precedencegroup/,/\s+/,Q],className:{1:"keyword",3:"title"},contains:[At],keywords:[...v,...b],end:/}/},Gn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},$n={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},mn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,A,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:ee,contains:[Sn,...fe,{begin:/:/,end:/\{/,keywords:ee,contains:[{scope:"title.class.inherited",match:Q},...fe],relevance:0}]};for(const He of Dt.variants){const gn=He.contains.find($t=>$t.label==="interpol");gn.keywords=ee;const Ht=[...fe,...S,...se,Z,Dt,...Lt];gn.contains=[...Ht,{begin:/\(/,end:/\)/,contains:["self",...Ht]}]}return{name:"Swift",keywords:ee,contains:[...K,zn,It,Gn,$n,mn,pn,Rt,{beginKeywords:"import",end:/$/,contains:[...K],relevance:0},fn,...fe,...S,...se,Z,Dt,...Lt,...mt,At,qn]}}return md=H,md}var gd,Pg;function sS(){if(Pg)return gd;Pg=1;function l(a){const r="true false yes no null",s="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},f={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},p={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},y={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[a.BACKSLASH_ESCAPE,f]},g=a.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),T={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},N={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},D={begin:/\{/,end:/\}/,contains:[N],illegal:"\\n",relevance:0},x={begin:"\\[",end:"\\]",contains:[N],illegal:"\\n",relevance:0},C=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+s},{className:"type",begin:"!<"+s+">"},{className:"type",begin:"!"+s},{className:"type",begin:"!!"+s},{className:"meta",begin:"&"+a.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+a.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},a.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},T,{className:"number",begin:a.C_NUMBER_RE+"\\b",relevance:0},D,x,p,y],I=[...C];return I.pop(),I.push(g),N.contains=I,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:C}}return gd=l,gd}var bd,Kg;function rS(){if(Kg)return bd;Kg=1;const l="[A-Za-z$_][0-9A-Za-z$_]*",a=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],f=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(f,s,u);function g(b){const v=b.regex,_=(ye,{after:Ne})=>{const Ge="</"+ye[0].slice(1);return ye.input.indexOf(Ge,Ne)!==-1},T=l,N={begin:"<>",end:"</>"},D=/<[A-Za-z0-9\\._:-]+\s*\/>/,x={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ye,Ne)=>{const Ge=ye[0].length+ye.index,$e=ye.input[Ge];if($e==="<"||$e===","){Ne.ignoreMatch();return}$e===">"&&(_(ye,{after:Ge})||Ne.ignoreMatch());let Me;const Dt=ye.input.substring(Ge);if(Me=Dt.match(/^\s*=/)){Ne.ignoreMatch();return}if((Me=Dt.match(/^\s+extends\s+/))&&Me.index===0){Ne.ignoreMatch();return}}},C={$pattern:l,keyword:a,literal:r,built_in:y,"variable.language":p},I="[0-9](_?[0-9])*",A=`\\.(${I})`,Q="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",V={className:"number",variants:[{begin:`(\\b(${Q})((${A})|\\.)?|(${A}))[eE][+-]?(${I})\\b`},{begin:`\\b(${Q})\\b((${A})\\b|\\.)?|(${A})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},ie={className:"subst",begin:"\\$\\{",end:"\\}",keywords:C,contains:[]},H={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ie],subLanguage:"xml"}},R={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ie],subLanguage:"css"}},q={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ie],subLanguage:"graphql"}},J={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,ie]},me={className:"comment",variants:[b.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:T+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},ce=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,H,R,q,J,{match:/\$\d+/},V];ie.contains=ce.concat({begin:/\{/,end:/\}/,keywords:C,contains:["self"].concat(ce)});const Se=[].concat(me,ie.contains),he=Se.concat([{begin:/(\s*)\(/,end:/\)/,keywords:C,contains:["self"].concat(Se)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:C,contains:he},ee={variants:[{match:[/class/,/\s+/,T,/\s+/,/extends/,/\s+/,v.concat(T,"(",v.concat(/\./,T),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,T],scope:{1:"keyword",3:"title.class"}}]},fe={relevance:0,match:v.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...u]}},we={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Le={variants:[{match:[/function/,/\s+/,T,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(ye){return v.concat("(?!",ye.join("|"),")")}const B={match:v.concat(/\b/,z([...f,"super","import","await"].map(ye=>`${ye}\\s*\\(`)),T,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},se={begin:v.concat(/\./,v.lookahead(v.concat(T,/(?![0-9A-Za-z$_(])/))),end:T,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},pe={match:[/get|set/,/\s+/,T,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},ve="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,T,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(ve)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:C,exports:{PARAMS_CONTAINS:he,CLASS_REFERENCE:fe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),we,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,H,R,q,J,me,{match:/\$\d+/},V,fe,{scope:"attr",match:T+v.lookahead(":"),relevance:0},Z,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[me,b.REGEXP_MODE,{className:"function",begin:ve,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:b.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:C,contains:he}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:N.begin,end:N.end},{match:D},{begin:x.begin,"on:begin":x.isTrulyOpeningTag,end:x.end}],subLanguage:"xml",contains:[{begin:x.begin,end:x.end,skip:!0,contains:["self"]}]}]},Le,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,b.inherit(b.TITLE_MODE,{begin:T,className:"title.function"})]},{match:/\.\.\./,relevance:0},se,{match:"\\$"+T,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},B,S,ee,pe,{match:/\$[(.]/}]}}function m(b){const v=b.regex,_=g(b),T=l,N=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],D={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},x={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:N},contains:[_.exports.CLASS_REFERENCE]},C={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},I=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],A={$pattern:l,keyword:a.concat(I),literal:r,built_in:y.concat(N),"variable.language":p},Q={className:"meta",begin:"@"+T},V=(q,J,K)=>{const me=q.contains.findIndex(ce=>ce.label===J);if(me===-1)throw new Error("can not find mode to replace");q.contains.splice(me,1,K)};Object.assign(_.keywords,A),_.exports.PARAMS_CONTAINS.push(Q);const ie=_.contains.find(q=>q.scope==="attr"),H=Object.assign({},ie,{match:v.concat(T,v.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,ie,H]),_.contains=_.contains.concat([Q,D,x,H]),V(_,"shebang",b.SHEBANG()),V(_,"use_strict",C);const R=_.contains.find(q=>q.label==="func.def");return R.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return bd=m,bd}var yd,Zg;function oS(){if(Zg)return yd;Zg=1;function l(a){const r=a.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},f=/\d{1,2}\/\d{1,2}\/\d{4}/,p=/\d{4}-\d{1,2}-\d{1,2}/,y=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:r.concat(/# */,r.either(p,f),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(p,f),/ +/,r.either(y,g),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},v={className:"label",begin:/^\w+:/},_=a.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),T=a.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[s,u,m,b,v,_,T,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[T]}]}}return yd=l,yd}var vd,Xg;function cS(){if(Xg)return vd;Xg=1;function l(a){a.regex;const r=a.COMMENT(/\(;/,/;\)/);r.contains.push("self");const s=a.COMMENT(/;;/,/$/),u=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],f={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},p={className:"variable",begin:/\$[\w_]+/},y={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[s,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,y,f,a.QUOTE_STRING_MODE,m,b,g]}}return vd=l,vd}var Ed,Vg;function uS(){if(Vg)return Ed;Vg=1;var l=A0();return l.registerLanguage("xml",R0()),l.registerLanguage("bash",k0()),l.registerLanguage("c",O0()),l.registerLanguage("cpp",C0()),l.registerLanguage("csharp",M0()),l.registerLanguage("css",D0()),l.registerLanguage("markdown",L0()),l.registerLanguage("diff",z0()),l.registerLanguage("ruby",j0()),l.registerLanguage("go",U0()),l.registerLanguage("graphql",B0()),l.registerLanguage("ini",I0()),l.registerLanguage("java",H0()),l.registerLanguage("javascript",q0()),l.registerLanguage("json",G0()),l.registerLanguage("kotlin",$0()),l.registerLanguage("less",Y0()),l.registerLanguage("lua",F0()),l.registerLanguage("makefile",P0()),l.registerLanguage("perl",K0()),l.registerLanguage("objectivec",Z0()),l.registerLanguage("php",X0()),l.registerLanguage("php-template",V0()),l.registerLanguage("plaintext",Q0()),l.registerLanguage("python",W0()),l.registerLanguage("python-repl",J0()),l.registerLanguage("r",eS()),l.registerLanguage("rust",tS()),l.registerLanguage("scss",nS()),l.registerLanguage("shell",aS()),l.registerLanguage("sql",iS()),l.registerLanguage("swift",lS()),l.registerLanguage("yaml",sS()),l.registerLanguage("typescript",rS()),l.registerLanguage("vbnet",oS()),l.registerLanguage("wasm",cS()),l.HighlightJS=l,l.default=l,Ed=l,Ed}var dS=uS();const Jd=Lb(dS),fS={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},hS=2e5,Jb="http://www.w3.org/1999/xhtml";function pS(l){for(const a of l.querySelectorAll(".d2h-file-wrapper")){const r=mS(a.dataset.lang??"");if(r)for(const s of gS(a))Qg(s.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Qg(s.filter(u=>u.kind!=="del"),()=>!0,r)}}function mS(l){const a=fS[l]??x0(l);return a==="plaintext"||!Jd.getLanguage(a)?null:a}function gS(l){const a=[];let r=[];for(const s of l.querySelectorAll(".d2h-diff-tbody > tr")){const u=s.querySelector("td:last-child"),f=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!f){r.length&&a.push(r),r=[];continue}const p=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:p,ctn:f})}return r.length&&a.push(r),a}function Qg(l,a,r){if(l.filter(a).length===0)return;const u=l.map(y=>y.ctn.textContent??"").join(`
171
+ `);if(!u.trim()||u.length>hS)return;const f=yS(u)&&vS(r)?`/**
172
+ `:"",p=_S(Jd.highlight(f+u,{language:r,ignoreIllegals:!0}).value).slice(f?1:0);l.forEach((y,g)=>{const m=p[g];m===void 0||!a(y)||ES(y.ctn,m)})}const bS=/(^|\s)\*\//m,Wg=/^\s*\*(\s|$)/;function yS(l){const a=l.search(bS);if(a===-1){const s=l.split(`
173
+ `).filter(u=>u.trim());return s.length>0&&s.every(u=>Wg.test(u))}return l.slice(0,a).split(`
174
+ `).every(s=>Wg.test(s)||!s.includes("/*"))}function vS(l){return Jd.highlight("/* */",{language:l,ignoreIllegals:!0}).value.startsWith('<span class="hljs-comment">')}function ES(l,a){const r=fg(l);let s=a;if(r.length){const u=document.createElementNS(Jb,"div");u.innerHTML=a,s=N0(r,fg(u),l.textContent??"")}l.classList.add("hljs"),l.innerHTML=s}function _S(l){const a=document.createElementNS(Jb,"div");a.innerHTML=l;const r=[],s=[];let u="";const f=p=>{if(p.nodeType===Node.TEXT_NODE){(p.textContent??"").split(`
175
+ `).forEach((m,b)=>{b>0&&(u+="</span>".repeat(s.length),r.push(u),u=s.join("")),u+=SS(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 SS(l){return l.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const wS={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"]},NS={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}]},TS={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Ze({name:l,size:a=13}){const r=[...wS[l]??[],...TS[l]??[]];return d.jsxs("svg",{className:"icon",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(NS[l]??[]).map((s,u)=>d.jsx("circle",{cx:s.cx,cy:s.cy,r:s.r},u)),r.map((s,u)=>d.jsx("path",{d:s},u))]})}function xS({size:l=17}){return d.jsxs("svg",{className:"logo",width:l,height:l,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[d.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),d.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),d.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),d.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function za({children:l}){return d.jsx("span",{className:"key",children:l})}/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function Jg(l,a){(a==null||a>l.length)&&(a=l.length);for(var r=0,s=Array(a);r<a;r++)s[r]=l[r];return s}function AS(l){if(Array.isArray(l))return l}function RS(l,a){var r=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(r!=null){var s,u,f,p,y=[],g=!0,m=!1;try{if(f=(r=r.call(l)).next,a!==0)for(;!(g=(s=f.call(r)).done)&&(y.push(s.value),y.length!==a);g=!0);}catch(b){m=!0,u=b}finally{try{if(!g&&r.return!=null&&(p=r.return(),Object(p)!==p))return}finally{if(m)throw u}}return y}}function kS(){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 OS(l,a){return AS(l)||RS(l,a)||CS(l,a)||kS()}function CS(l,a){if(l){if(typeof l=="string")return Jg(l,a);var r={}.toString.call(l).slice(8,-1);return r==="Object"&&l.constructor&&(r=l.constructor.name),r==="Map"||r==="Set"?Array.from(l):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jg(l,a):void 0}}const ey=Object.entries,eb=Object.setPrototypeOf,MS=Object.isFrozen,DS=Object.getPrototypeOf,LS=Object.getOwnPropertyDescriptor;let Rn=Object.freeze,kn=Object.seal,Ul=Object.create,ty=typeof Reflect<"u"&&Reflect,Md=ty.apply,Dd=ty.construct;Rn||(Rn=function(a){return a});kn||(kn=function(a){return a});Md||(Md=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)});Dd||(Dd=function(a){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return new a(...s)});const Ll=on(Array.prototype.forEach),zS=on(Array.prototype.lastIndexOf),tb=on(Array.prototype.pop),zl=on(Array.prototype.push),jS=on(Array.prototype.splice),zi=Array.isArray,Bs=on(String.prototype.toLowerCase),_d=on(String.prototype.toString),nb=on(String.prototype.match),zs=on(String.prototype.replace),ab=on(String.prototype.indexOf),US=on(String.prototype.trim),BS=on(Number.prototype.toString),IS=on(Boolean.prototype.toString),ib=typeof BigInt>"u"?null:on(BigInt.prototype.toString),lb=typeof Symbol>"u"?null:on(Symbol.prototype.toString),En=on(Object.prototype.hasOwnProperty),js=on(Object.prototype.toString),vn=on(RegExp.prototype.test),Wi=HS(TypeError);function on(l){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return Md(l,a,s)}}function HS(l){return function(){for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return Dd(l,r)}}function dt(l,a){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bs;if(eb&&eb(l,null),!zi(a))return l;let s=a.length;for(;s--;){let u=a[s];if(typeof u=="string"){const f=r(u);f!==u&&(MS(a)||(a[s]=f),u=f)}l[u]=!0}return l}function qS(l){for(let a=0;a<l.length;a++)En(l,a)||(l[a]=null);return l}function Mn(l){const a=Ul(null);for(const s of ey(l)){var r=OS(s,2);const u=r[0],f=r[1];En(l,u)&&(zi(f)?a[u]=qS(f):f&&typeof f=="object"&&f.constructor===Object?a[u]=Mn(f):a[u]=f)}return a}function GS(l){switch(typeof l){case"string":return l;case"number":return BS(l);case"boolean":return IS(l);case"bigint":return ib?ib(l):"0";case"symbol":return lb?lb(l):"Symbol()";case"undefined":return js(l);case"function":case"object":{if(l===null)return js(l);const a=l,r=Na(a,"toString");if(typeof r=="function"){const s=r(a);return typeof s=="string"?s:js(s)}return js(l)}default:return js(l)}}function Na(l,a){for(;l!==null;){const s=LS(l,a);if(s){if(s.get)return on(s.get);if(typeof s.value=="function")return on(s.value)}l=DS(l)}function r(){return null}return r}function $S(l){try{return vn(l,""),!0}catch{return!1}}const sb=Rn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Sd=Rn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),wd=Rn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),YS=Rn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Nd=Rn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),FS=Rn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),rb=Rn(["#text"]),ob=Rn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Td=Rn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),cb=Rn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),to=Rn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),PS=kn(/{{[\w\W]*|^[\w\W]*}}/g),KS=kn(/<%[\w\W]*|^[\w\W]*%>/g),ZS=kn(/\${[\w\W]*/g),XS=kn(/^data-[\-\w.\u00B7-\uFFFF]+$/),VS=kn(/^aria-[\-\w]+$/),ub=kn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),QS=kn(/^(?:\w+script|data):/i),WS=kn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),JS=kn(/^html$/i),ew=kn(/^[a-z][.\w]*(-[.\w]+)+$/i),db=kn(/<[/\w!]/g),fb=kn(/<[/\w]/g),tw=kn(/<\/no(script|embed|frames)/i),nw=kn(/\/>/i),sa={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},aw=function(){return typeof window>"u"?null:window},iw=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}},hb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Mi=function(a,r,s,u){return En(a,r)&&zi(a[r])?dt(u.base?Mn(u.base):{},a[r],u.transform):s};function ny(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:aw();const a=W=>ny(W);if(a.version="3.4.13",a.removed=[],!l||!l.document||l.document.nodeType!==sa.document||!l.Element)return a.isSupported=!1,a;let r=l.document;const s=r,u=s.currentScript;l.DocumentFragment;const f=l.HTMLTemplateElement,p=l.Node,y=l.Element,g=l.NodeFilter,m=l.NamedNodeMap;m===void 0&&(l.NamedNodeMap||l.MozNamedAttrMap),l.HTMLFormElement;const b=l.DOMParser,v=l.trustedTypes,_=y.prototype,T=Na(_,"cloneNode"),N=Na(_,"remove"),D=Na(_,"nextSibling"),x=Na(_,"childNodes"),C=Na(_,"parentNode"),I=Na(_,"shadowRoot"),A=Na(_,"attributes"),Q=p&&p.prototype?Na(p.prototype,"nodeType"):null,V=p&&p.prototype?Na(p.prototype,"nodeName"):null,ie=p&&p.prototype?Na(p.prototype,"ownerDocument"):null;if(typeof f=="function"){const W=r.createElement("template");W.content&&W.content.ownerDocument&&(r=W.content.ownerDocument)}let H,R="",q,J=!1,K=0;const me=function(){if(K>0)throw Wi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ce=function(w){me(),K++;try{return H.createHTML(w)}finally{K--}},Se=function(w){me(),K++;try{return H.createScriptURL(w)}finally{K--}},he=function(){return J||(q=iw(v,u),J=!0),q},M=r,ee=M.implementation,fe=M.createNodeIterator,we=M.createDocumentFragment,Le=M.getElementsByTagName,S=s.importNode;let z=hb();a.isSupported=typeof ey=="function"&&typeof C=="function"&&ee&&ee.createHTMLDocument!==void 0;const B=PS,se=KS,pe=ZS,ve=XS,Z=VS,ye=QS,Ne=WS,Ge=ew;let $e=ub,Me=null;const Dt=dt({},[...sb,...Sd,...wd,...Nd,...rb]);let Pe=null;const Hn=dt({},[...ob,...Td,...cb,...to]);let it=Object.seal(Ul(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fn=null,Ot=null;const Gt=Object.seal(Ul(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Wt=!0,Lt=!0,vt=!1,Ln=!0,lt=!1,mt=!0,At=!1,_n=!1,hn=null,qn=null,Sn=!1,wn=!1,ra=!1,zn=!1,It=!0,pn=!1;const Rt="user-content-";let Gn=!0,$n=!1,mn={},He=null;const gn=dt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ht=null;const $t=dt({},["audio","video","img","source","image","track"]);let O=null;const ne=dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),be="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let st=Qe,Ae=!1,_e=null;const Ue=dt({},[be,je,Qe],_d),Ct=Rn(["mi","mo","mn","ms","mtext"]);let bt=dt({},Ct);const jn=Rn(["annotation-xml"]);let Un=dt({},jn);const ba=dt({},["title","style","font","a","script"]);let Pt=null;const St=["application/xhtml+xml","text/html"],Kt="text/html";let ut=null,Yn=null;const ii=r.createElement("form"),ya=function(w){return w instanceof RegExp||w instanceof Function},va=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Yn&&Yn===w)return;(!w||typeof w!="object")&&(w={}),w=Mn(w),Pt=St.indexOf(w.PARSER_MEDIA_TYPE)===-1?Kt:w.PARSER_MEDIA_TYPE,ut=Pt==="application/xhtml+xml"?_d:Bs,Me=Mi(w,"ALLOWED_TAGS",Dt,{transform:ut}),Pe=Mi(w,"ALLOWED_ATTR",Hn,{transform:ut}),_e=Mi(w,"ALLOWED_NAMESPACES",Ue,{transform:_d}),O=Mi(w,"ADD_URI_SAFE_ATTR",ne,{transform:ut,base:ne}),Ht=Mi(w,"ADD_DATA_URI_TAGS",$t,{transform:ut,base:$t}),He=Mi(w,"FORBID_CONTENTS",gn,{transform:ut}),fn=Mi(w,"FORBID_TAGS",Mn({}),{transform:ut}),Ot=Mi(w,"FORBID_ATTR",Mn({}),{transform:ut}),mn=En(w,"USE_PROFILES")?w.USE_PROFILES&&typeof w.USE_PROFILES=="object"?Mn(w.USE_PROFILES):w.USE_PROFILES:!1,Wt=w.ALLOW_ARIA_ATTR!==!1,Lt=w.ALLOW_DATA_ATTR!==!1,vt=w.ALLOW_UNKNOWN_PROTOCOLS||!1,Ln=w.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=w.SAFE_FOR_TEMPLATES||!1,mt=w.SAFE_FOR_XML!==!1,At=w.WHOLE_DOCUMENT||!1,wn=w.RETURN_DOM||!1,ra=w.RETURN_DOM_FRAGMENT||!1,zn=w.RETURN_TRUSTED_TYPE||!1,Sn=w.FORCE_BODY||!1,It=w.SANITIZE_DOM!==!1,pn=w.SANITIZE_NAMED_PROPS||!1,Gn=w.KEEP_CONTENT!==!1,$n=w.IN_PLACE||!1,$e=$S(w.ALLOWED_URI_REGEXP)?w.ALLOWED_URI_REGEXP:ub,st=typeof w.NAMESPACE=="string"?w.NAMESPACE:Qe,bt=En(w,"MATHML_TEXT_INTEGRATION_POINTS")&&w.MATHML_TEXT_INTEGRATION_POINTS&&typeof w.MATHML_TEXT_INTEGRATION_POINTS=="object"?Mn(w.MATHML_TEXT_INTEGRATION_POINTS):dt({},Ct),Un=En(w,"HTML_INTEGRATION_POINTS")&&w.HTML_INTEGRATION_POINTS&&typeof w.HTML_INTEGRATION_POINTS=="object"?Mn(w.HTML_INTEGRATION_POINTS):dt({},jn);const j=En(w,"CUSTOM_ELEMENT_HANDLING")&&w.CUSTOM_ELEMENT_HANDLING&&typeof w.CUSTOM_ELEMENT_HANDLING=="object"?Mn(w.CUSTOM_ELEMENT_HANDLING):Ul(null);if(it=Ul(null),En(j,"tagNameCheck")&&ya(j.tagNameCheck)&&(it.tagNameCheck=j.tagNameCheck),En(j,"attributeNameCheck")&&ya(j.attributeNameCheck)&&(it.attributeNameCheck=j.attributeNameCheck),En(j,"allowCustomizedBuiltInElements")&&typeof j.allowCustomizedBuiltInElements=="boolean"&&(it.allowCustomizedBuiltInElements=j.allowCustomizedBuiltInElements),kn(it),lt&&(Lt=!1),ra&&(wn=!0),mn&&(Me=dt({},rb),Pe=Ul(null),mn.html===!0&&(dt(Me,sb),dt(Pe,ob)),mn.svg===!0&&(dt(Me,Sd),dt(Pe,Td),dt(Pe,to)),mn.svgFilters===!0&&(dt(Me,wd),dt(Pe,Td),dt(Pe,to)),mn.mathMl===!0&&(dt(Me,Nd),dt(Pe,cb),dt(Pe,to))),Gt.tagCheck=null,Gt.attributeCheck=null,En(w,"ADD_TAGS")&&(typeof w.ADD_TAGS=="function"?Gt.tagCheck=w.ADD_TAGS:zi(w.ADD_TAGS)&&(Me===Dt&&(Me=Mn(Me)),dt(Me,w.ADD_TAGS,ut))),En(w,"ADD_ATTR")&&(typeof w.ADD_ATTR=="function"?Gt.attributeCheck=w.ADD_ATTR:zi(w.ADD_ATTR)&&(Pe===Hn&&(Pe=Mn(Pe)),dt(Pe,w.ADD_ATTR,ut))),En(w,"ADD_URI_SAFE_ATTR")&&zi(w.ADD_URI_SAFE_ATTR)&&dt(O,w.ADD_URI_SAFE_ATTR,ut),En(w,"FORBID_CONTENTS")&&zi(w.FORBID_CONTENTS)&&(He===gn&&(He=Mn(He)),dt(He,w.FORBID_CONTENTS,ut)),En(w,"ADD_FORBID_CONTENTS")&&zi(w.ADD_FORBID_CONTENTS)&&(He===gn&&(He=Mn(He)),dt(He,w.ADD_FORBID_CONTENTS,ut)),Gn&&(Me["#text"]=!0),At&&dt(Me,["html","head","body"]),Me.table&&(dt(Me,["tbody"]),delete fn.tbody),w.TRUSTED_TYPES_POLICY){if(typeof w.TRUSTED_TYPES_POLICY.createHTML!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof w.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Wi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const te=H;H=w.TRUSTED_TYPES_POLICY;try{R=ce("")}catch(xe){throw H=te,xe}}else w.TRUSTED_TYPES_POLICY===null?(H=void 0,R=""):(H===void 0&&(H=he()),H&&typeof R=="string"&&(R=ce("")));Rn&&Rn(w),Yn=w},Wn=dt({},[...Sd,...wd,...YS]),Ea=dt({},[...Nd,...FS]),Jt=function(w,j,te){return j.namespaceURI===Qe?w==="svg":j.namespaceURI===be?w==="svg"&&(te==="annotation-xml"||bt[te]):!!Wn[w]},Fn=function(w,j,te){return j.namespaceURI===Qe?w==="math":j.namespaceURI===je?w==="math"&&Un[te]:!!Ea[w]},G=function(w,j,te){return j.namespaceURI===je&&!Un[te]||j.namespaceURI===be&&!bt[te]?!1:!Ea[w]&&(ba[w]||!Wn[w])},de=function(w){let j=C(w);(!j||!j.tagName)&&(j={namespaceURI:st,tagName:"template"});const te=Bs(w.tagName),xe=Bs(j.tagName);return _e[w.namespaceURI]?w.namespaceURI===je?Jt(te,j,xe):w.namespaceURI===be?Fn(te,j,xe):w.namespaceURI===Qe?G(te,j,xe):!!(Pt==="application/xhtml+xml"&&_e[w.namespaceURI]):!1},ge=function(w){zl(a.removed,{element:w});try{C(w).removeChild(w)}catch{if(N(w),!C(w))throw Wi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Te=function(w){oe(w);const j=x(w);if(j){const xe=[];Ll(j,Oe=>{zl(xe,Oe)}),Ll(xe,Oe=>{try{N(Oe)}catch{}})}const te=A(w);if(te)for(let xe=te.length-1;xe>=0;--xe){const Oe=te[xe],qe=Oe&&Oe.name;if(typeof qe=="string")try{w.removeAttribute(qe)}catch{}}},Ye=function(w,j){try{zl(a.removed,{attribute:j.getAttributeNode(w),from:j})}catch{zl(a.removed,{attribute:null,from:j})}if(j.removeAttribute(w),w==="is")if(wn||ra)try{ge(j)}catch{}else try{j.setAttribute(w,"")}catch{}},un=function(w){const j=A(w);if(j)for(let te=j.length-1;te>=0;--te){const xe=j[te],Oe=xe&&xe.name;if(!(typeof Oe!="string"||Pe[ut(Oe)]))try{w.removeAttribute(Oe)}catch{}}},oe=function(w){const j=[w];for(;j.length>0;){const te=j.pop();(Q?Q(te):te.nodeType)===sa.element&&un(te);const Oe=x(te);if(Oe)for(let qe=Oe.length-1;qe>=0;--qe)j.push(Oe[qe])}},Re=function(w){if(!mt)return;const j=[w];for(;j.length>0;){const te=j.pop(),xe=Q?Q(te):te.nodeType;if(xe===sa.processingInstruction||xe===sa.comment&&vn(fb,te.data)){try{N(te)}catch{}continue}if(xe===sa.element){const qe=te,et=ut(V?V(te):te.nodeName);try{qe.hasAttribute&&qe.hasAttribute("patchsrc")&&qe.removeAttribute("patchsrc"),qe.hasAttribute&&qe.hasAttribute("for")&&et!=="label"&&et!=="output"&&qe.removeAttribute("for")}catch{}}const Oe=x(te);if(Oe)for(let qe=Oe.length-1;qe>=0;--qe)j.push(Oe[qe])}},Be=function(w){let j=null,te=null;if(Sn)w="<remove></remove>"+w;else{const qe=nb(w,/^[\r\n\t ]+/);te=qe&&qe[0]}Pt==="application/xhtml+xml"&&st===Qe&&(w='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+w+"</body></html>");const xe=H?ce(w):w;if(st===Qe)try{j=new b().parseFromString(xe,Pt)}catch{}if(!j||!j.documentElement){j=ee.createDocument(st,"template",null);try{j.documentElement.innerHTML=Ae?R:xe}catch{}}const Oe=j.body||j.documentElement;return w&&te&&Oe.insertBefore(r.createTextNode(te),Oe.childNodes[0]||null),st===Qe?Le.call(j,At?"html":"body")[0]:At?j.documentElement:Oe},Je=function(w){const j=ie?ie(w):w.ownerDocument;return fe.call(j||w,w,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},Mt=function(w){return w=zs(w,B," "),w=zs(w,se," "),w=zs(w,pe," "),w},en=function(w){var j;w.normalize();const te=ie?ie(w):w.ownerDocument,xe=fe.call(te||w,w,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let Oe=xe.nextNode();for(;Oe;)Oe.data=Mt(Oe.data),Oe=xe.nextNode();const qe=(j=w.querySelectorAll)===null||j===void 0?void 0:j.call(w,"template");qe&&Ll(qe,et=>{Zt(et.content)&&en(et.content)})},bn=function(w){const j=V?V(w):null;return typeof j!="string"||ut(j)!=="form"?!1:typeof w.nodeName!="string"||typeof w.textContent!="string"||typeof w.removeChild!="function"||w.attributes!==A(w)||typeof w.removeAttribute!="function"||typeof w.setAttribute!="function"||typeof w.namespaceURI!="string"||typeof w.insertBefore!="function"||typeof w.hasChildNodes!="function"||w.nodeType!==Q(w)||w.childNodes!==x(w)},Zt=function(w){if(!Q||typeof w!="object"||w===null)return!1;try{return Q(w)===sa.documentFragment}catch{return!1}},ft=function(w){if(!Q||typeof w!="object"||w===null)return!1;try{return typeof Q(w)=="number"}catch{return!1}};function Ut(W,w,j){W.length!==0&&Ll(W,te=>{te.call(a,w,j,Yn)})}const al=function(w,j){return!!(mt&&w.hasChildNodes()&&!ft(w.firstElementChild)&&vn(db,w.textContent)&&vn(db,w.innerHTML)||mt&&w.namespaceURI===Qe&&j==="style"&&ft(w.firstElementChild)||w.nodeType===sa.processingInstruction||mt&&w.nodeType===sa.comment&&vn(fb,w.data))},li=function(w,j,te){if(!fn[j]&&ri(j)&&(it.tagNameCheck instanceof RegExp&&vn(it.tagNameCheck,j)||it.tagNameCheck instanceof Function&&it.tagNameCheck(j)))return!1;if(Gn&&!He[j]){const xe=C(w),Oe=x(w);if(Oe&&xe){const qe=Oe.length;for(let et=qe-1;et>=0;--et){const ue=w===te?T(Oe[et],!0):Oe[et];xe.insertBefore(ue,D(w))}}}return ge(w),!0},si=function(w,j,te,xe){return w.length===0?j:j===te||j===xe?Mn(j):j},Ua=function(w,j){if(Ut(z.beforeSanitizeElements,w,null),w!==j&&C(w)===null)return $n&&oe(w),!0;if(bn(w))return ge(w),!0;const te=ut(V?V(w):w.nodeName);if(Me=si(z.uponSanitizeElement,Me,Dt,hn),Ut(z.uponSanitizeElement,w,{tagName:te,allowedTags:Me}),w!==j&&C(w)===null)return $n&&oe(w),!0;if(al(w,te))return ge(w),!0;if(fn[te]||!(Gt.tagCheck instanceof Function&&Gt.tagCheck(te))&&!Me[te]){const Oe=li(w,te,j);return Oe===!1&&Ut(z.afterSanitizeElements,w,null),Oe}if((Q?Q(w):w.nodeType)===sa.element&&!de(w)||(te==="noscript"||te==="noembed"||te==="noframes")&&vn(tw,w.innerHTML))return ge(w),!0;if(lt&&w.nodeType===sa.text){const Oe=Mt(w.textContent);w.textContent!==Oe&&(zl(a.removed,{element:w.cloneNode()}),w.textContent=Oe)}return Ut(z.afterSanitizeElements,w,null),!1},il=function(w,j,te){if(Ot[j]||mt&&j==="patchsrc"||mt&&j==="for"&&w!=="label"&&w!=="output"||It&&(j==="id"||j==="name")&&(te in r||te in ii))return!1;const xe=Pe[j]||Gt.attributeCheck instanceof Function&&Gt.attributeCheck(j,w);if(!(Lt&&vn(ve,j))){if(!(Wt&&vn(Z,j))){if(xe){if(!O[j]){if(!vn($e,zs(te,Ne,""))){if(!((j==="src"||j==="xlink:href"||j==="href")&&w!=="script"&&ab(te,"data:")===0&&Ht[w])){if(!(vt&&!vn(ye,zs(te,Ne,"")))){if(te)return!1}}}}}else if(!(ri(w)&&(it.tagNameCheck instanceof RegExp&&vn(it.tagNameCheck,w)||it.tagNameCheck instanceof Function&&it.tagNameCheck(w))&&(it.attributeNameCheck instanceof RegExp&&vn(it.attributeNameCheck,j)||it.attributeNameCheck instanceof Function&&it.attributeNameCheck(j,w))||j==="is"&&it.allowCustomizedBuiltInElements&&(it.tagNameCheck instanceof RegExp&&vn(it.tagNameCheck,te)||it.tagNameCheck instanceof Function&&it.tagNameCheck(te))))return!1}}return!0},On=dt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ri=function(w){return!On[Bs(w)]&&vn(Ge,w)},Ba=function(w,j,te,xe){if(H&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!te)switch(v.getAttributeType(w,j)){case"TrustedHTML":return ce(xe);case"TrustedScriptURL":return Se(xe)}return xe},oi=function(w,j,te,xe){try{te?w.setAttributeNS(te,j,xe):w.setAttribute(j,xe),bn(w)?ge(w):tb(a.removed)}catch{Ye(j,w)}},tn=function(w){Ut(z.beforeSanitizeAttributes,w,null);const j=w.attributes;if(!j||bn(w))return;Pe=si(z.uponSanitizeAttribute,Pe,Hn,qn);const te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pe,forceKeepAttr:void 0};let xe=j.length;const Oe=ut(w.nodeName);for(;xe--;){const qe=j[xe],et=qe.name,ue=qe.namespaceURI,Ee=qe.value,De=ut(et),Ve=Ee;let We=et==="value"?Ve:US(Ve);if(te.attrName=De,te.attrValue=We,te.keepAttr=!0,te.forceKeepAttr=void 0,Ut(z.uponSanitizeAttribute,w,te),We=te.attrValue,pn&&(De==="id"||De==="name")&&ab(We,Rt)!==0&&(Ye(et,w),We=Rt+We),mt&&vn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,We)){Ye(et,w);continue}if(De==="attributename"&&nb(We,"href")){Ye(et,w);continue}if(!te.forceKeepAttr){if(!te.keepAttr){Ye(et,w);continue}if(!Ln&&vn(nw,We)){Ye(et,w);continue}if(lt&&(We=Mt(We)),!il(Oe,De,We)){Ye(et,w);continue}We=Ba(Oe,De,ue,We),We!==Ve&&oi(w,et,ue,We)}}Ut(z.afterSanitizeAttributes,w,null)},Ia=function(w){let j=null;const te=Je(w);for(Ut(z.beforeSanitizeShadowDOM,w,null);j=te.nextNode();)if(Ut(z.uponSanitizeShadowNode,j,null),Ua(j,w),tn(j),Zt(j.content)&&Ia(j.content),(Q?Q(j):j.nodeType)===sa.element){const Oe=I(j);Zt(Oe)&&(Aa(Oe),Ia(Oe))}Ut(z.afterSanitizeShadowDOM,w,null)},Aa=function(w){const j=[{node:w,shadow:null}];for(;j.length>0;){const te=j.pop();if(te.shadow){Ia(te.shadow);continue}const xe=te.node,qe=(Q?Q(xe):xe.nodeType)===sa.element,et=x(xe);if(et)for(let ue=et.length-1;ue>=0;--ue)j.push({node:et[ue],shadow:null});if(qe){const ue=V?V(xe):null;if(typeof ue=="string"&&ut(ue)==="template"){const Ee=xe.content;Zt(Ee)&&j.push({node:Ee,shadow:null})}}if(qe){const ue=I(xe);Zt(ue)&&j.push({node:null,shadow:ue},{node:ue,shadow:null})}}};return a.sanitize=function(W){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,te=null,xe=null,Oe=null;if(Ae=!W,Ae&&(W="<!-->"),typeof W!="string"&&!ft(W)&&(W=GS(W),typeof W!="string"))throw Wi("dirty is not a string, aborting");if(!a.isSupported)return W;_n?(Me=hn,Pe=qn):va(w),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(Me=Mn(Me)),z.uponSanitizeAttribute.length>0&&(Pe=Mn(Pe)),a.removed=[];const qe=$n&&typeof W!="string"&&ft(W);if(qe){Re(W);const Ee=V?V(W):W.nodeName;if(typeof Ee=="string"){const De=ut(Ee);if(!Me[De]||fn[De])throw Te(W),Wi("root node is forbidden and cannot be sanitized in-place")}if(bn(W))throw Te(W),Wi("root node is clobbered and cannot be sanitized in-place");try{Aa(W)}catch(De){throw Te(W),De}}else if(ft(W))j=Be("<!---->"),te=j.ownerDocument.importNode(W,!0),te.nodeType===sa.element&&te.nodeName==="BODY"||te.nodeName==="HTML"?j=te:j.appendChild(te),Aa(te);else{if(!wn&&!lt&&!At&&W.indexOf("<")===-1)return H&&zn?ce(W):W;if(j=Be(W),!j)return wn?null:zn?R:""}j&&Sn&&ge(j.firstChild);const et=qe?W:j;try{const Ee=Je(et);for(;xe=Ee.nextNode();)Ua(xe,et),tn(xe),Zt(xe.content)&&Ia(xe.content)}catch(Ee){throw qe&&(Te(W),Ll(a.removed,De=>{De.element&&oe(De.element)})),Ee}if(qe)return Ll(a.removed,Ee=>{Ee.element&&oe(Ee.element)}),lt&&en(W),W;if(wn){if(lt&&en(j),ra)for(Oe=we.call(j.ownerDocument);j.firstChild;)Oe.appendChild(j.firstChild);else Oe=j;return(Pe.shadowroot||Pe.shadowrootmode)&&(Oe=S.call(s,Oe,!0)),Oe}let ue=At?j.outerHTML:j.innerHTML;return At&&Me["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&vn(JS,j.ownerDocument.doctype.name)&&(ue="<!DOCTYPE "+j.ownerDocument.doctype.name+`>
177
+ `+ue),lt&&(ue=Mt(ue)),H&&zn?ce(ue):ue},a.setConfig=function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};va(W),_n=!0,hn=Me,qn=Pe},a.clearConfig=function(){Yn=null,_n=!1,hn=null,qn=null,H=q,R=""},a.isValidAttribute=function(W,w,j){Yn||va({});const te=ut(W),xe=ut(w);return il(te,xe,j)},a.addHook=function(W,w){typeof w=="function"&&En(z,W)&&zl(z[W],w)},a.removeHook=function(W,w){if(En(z,W)){if(w!==void 0){const j=zS(z[W],w);return j===-1?void 0:jS(z[W],j,1)[0]}return tb(z[W])}},a.removeHooks=function(W){En(z,W)&&(z[W]=[])},a.removeAllHooks=function(){z=hb()},a}var lw=ny();function ef(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var nl=ef();function ay(l){nl=l}var el={exec:()=>null};function jl(l){let a=[];return r=>{let s=Math.max(0,Math.min(3,r-1)),u=a[s];return u||(u=l(s),a[s]=u),u}}function at(l,a=""){let r=typeof l=="string"?l:l.source,s={replace:(u,f)=>{let p=typeof f=="string"?f:f.source;return p=p.replace(Dn.caret,"$1"),r=r.replace(u,p),s},getRegex:()=>new RegExp(r,a)};return s}var sw=((l="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+l)}catch{return!1}})(),Dn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:l=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:jl(l=>new RegExp(`^ {0,${l}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:jl(l=>new RegExp(`^ {0,${l}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:jl(l=>new RegExp(`^ {0,${l}}(?:\`\`\`|~~~)`)),headingBeginRegex:jl(l=>new RegExp(`^ {0,${l}}#`)),htmlBeginRegex:jl(l=>new RegExp(`^ {0,${l}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:jl(l=>new RegExp(`^ {0,${l}}>`))},rw=/^(?:[ \t]*(?:\n|$))+/,ow=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,cw=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$s=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,uw=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,tf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,iy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ly=at(iy).replace(/bull/g,tf).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(),dw=at(iy).replace(/bull/g,tf).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(),nf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,fw=/^[^\n]+/,af=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,hw=at(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",af).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),pw=at(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,tf).getRegex(),Eo="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",lf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,mw=at("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",lf).replace("tag",Eo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),sy=l=>at(nf).replace("hr",$s).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",l).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Eo).getRegex(),gw=sy(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),bw=sy(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),yw=at(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",bw).getRegex(),sf={blockquote:yw,code:ow,def:hw,fences:cw,heading:uw,hr:$s,html:mw,lheading:ly,list:pw,newline:rw,paragraph:gw,table:el,text:fw},pb=at("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$s).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Eo).getRegex(),vw={...sf,lheading:dw,table:pb,paragraph:at(nf).replace("hr",$s).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",pb).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",Eo).getRegex()},Ew={...sf,html:at(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",lf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:el,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:at(nf).replace("hr",$s).replace("heading",` *#{1,6} *[^
178
+ ]`).replace("lheading",ly).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},_w=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Sw=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ry=/^( {2,}|\\)\n(?!\s*$)/,ww=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ai=/[\p{P}\p{S}]/u,Gl=/[\s\p{P}\p{S}]/u,Ys=/[^\s\p{P}\p{S}]/u,Nw=at(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Gl).getRegex(),Tw=/[\p{Pi}\p{Ps}"']/u,oy=/(?!~)[\p{P}\p{S}]/u,xw=/(?!~)[\s\p{P}\p{S}]/u,Aw=/(?:[^\s\p{P}\p{S}]|~)/u,Rw=at(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",sw?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),cy=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,kw=at(cy,"u").replace(/punct/g,ai).getRegex(),Ow=at(cy,"u").replace(/punct/g,oy).getRegex(),Cw=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Mw=at(Cw,"u").replace(/openQuote/g,Tw).replace(/punct/g,ai).getRegex(),uy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Dw=at(uy,"gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,Gl).replace(/punct/g,ai).getRegex(),Lw=at(uy,"gu").replace(/notPunctSpace/g,Aw).replace(/punctSpace/g,xw).replace(/punct/g,oy).getRegex(),zw="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",jw=at(zw,"gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,Gl).replace(/punct/g,ai).getRegex(),Uw=at("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,Gl).replace(/punct/g,ai).getRegex(),Bw="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Iw=at(Bw,"gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,Gl).replace(/punct/g,ai).getRegex(),Hw=at(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ai).getRegex(),qw="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Gw=at(qw,"gu").replace(/notPunctSpace/g,Ys).replace(/punctSpace/g,Gl).replace(/punct/g,ai).getRegex(),$w=at(/\\(punct)/,"gu").replace(/punct/g,ai).getRegex(),Yw=at(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Fw=at(lf).replace("(?:-->|$)","-->").getRegex(),Pw=at("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Fw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Kw=at(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",fo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),dy=at(/^!?\[(label)\]\[(ref)\]/).replace("label",fo).replace("ref",af).getRegex(),fy=at(/^!?\[(ref)\](?:\[\])?/).replace("ref",af).getRegex(),Zw=at("reflink|nolink(?!\\()","g").replace("reflink",dy).replace("nolink",fy).getRegex(),mb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,rf={_backpedal:el,anyPunctuation:$w,autolink:Yw,blockSkip:Rw,br:ry,code:Sw,del:el,delLDelim:el,delRDelim:el,emStrongLDelim:kw,emStrongRDelimAst:Dw,emStrongRDelimUnd:Uw,escape:_w,link:Kw,nolink:fy,punctuation:Nw,reflink:dy,reflinkSearch:Zw,tag:Pw,text:ww,url:el},Xw={...rf,emStrongLDelim:Mw,emStrongRDelimAst:jw,emStrongRDelimUnd:Iw,link:at(/^!?\[(label)\]\((.*?)\)/).replace("label",fo).getRegex(),reflink:at(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fo).getRegex()},Ld={...rf,emStrongRDelimAst:Lw,emStrongLDelim:Ow,delLDelim:Hw,delRDelim:Gw,url:at(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",mb).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:at(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",mb).getRegex()},Vw={...Ld,br:at(ry).replace("{2,}","*").getRegex(),text:at(Ld.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},no={normal:sf,gfm:vw,pedantic:Ew},Us={normal:rf,gfm:Ld,breaks:Vw,pedantic:Xw},Qw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gb=l=>Qw[l];function Da(l,a){if(a){if(Dn.escapeTest.test(l))return l.replace(Dn.escapeReplace,gb)}else if(Dn.escapeTestNoEncode.test(l))return l.replace(Dn.escapeReplaceNoEncode,gb);return l}function bb(l){try{l=encodeURI(l).replace(Dn.percentDecode,"%")}catch{return null}return l}function yb(l,a){var f;let r=l.replace(Dn.findPipe,(p,y,g)=>{let m=!1,b=y;for(;--b>=0&&g[b]==="\\";)m=!m;return m?"|":" |"}),s=r.split(Dn.splitPipe),u=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),a)if(s.length>a)s.splice(a);else for(;s.length<a;)s.push("");for(;u<s.length;u++)s[u]=s[u].trim().replace(Dn.slashPipe,"|");return s}function Di(l,a,r){let s=l.length;if(s===0)return"";let u=0;for(;u<s&&l.charAt(s-u-1)===a;)u++;return l.slice(0,s-u)}function vb(l){let a=l.split(`
179
179
  `),r=a.length-1;for(;r>=0&&Dn.blankLine.test(a[r]);)r--;return a.length-r<=2?l:a.slice(0,r+1).join(`
180
- `)}function Qw(l,a){if(l.indexOf(a[1])===-1)return-1;let r=0;for(let s=0;s<l.length;s++)if(l[s]==="\\")s++;else if(l[s]===a[0])r++;else if(l[s]===a[1]&&(r--,r<0))return s;return r>0?-2:-1}function Ww(l,a=0){let r=a,s="";for(let u of l)if(u===" "){let f=4-r%4;s+=" ".repeat(f),r+=f}else s+=u,r++;return s}function vb(l,a,r,s,u){let f=a.href,p=a.title||null,y=l[1].replace(u.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:l[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:p,text:y,tokens:s.inlineTokens(y)};return s.state.inLink=!1,g}function Jw(l,a,r){let s=l.match(r.other.indentCodeCompensation);if(s===null)return a;let u=s[1];return a.split(`
180
+ `)}function Ww(l,a){if(l.indexOf(a[1])===-1)return-1;let r=0;for(let s=0;s<l.length;s++)if(l[s]==="\\")s++;else if(l[s]===a[0])r++;else if(l[s]===a[1]&&(r--,r<0))return s;return r>0?-2:-1}function Jw(l,a=0){let r=a,s="";for(let u of l)if(u===" "){let f=4-r%4;s+=" ".repeat(f),r+=f}else s+=u,r++;return s}function Eb(l,a,r,s,u){let f=a.href,p=a.title||null,y=l[1].replace(u.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:l[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:p,text:y,tokens:s.inlineTokens(y)};return s.state.inLink=!1,g}function eN(l,a,r){let s=l.match(r.other.indentCodeCompensation);if(s===null)return a;let u=s[1];return a.split(`
181
181
  `).map(f=>{let p=f.match(r.other.beginningSpace);if(p===null)return f;let[y]=p;return y.length>=u.length?f.slice(u.length):f}).join(`
182
- `)}var fo=class{constructor(l){xt(this,"options");xt(this,"rules");xt(this,"lexer");this.options=l||tl}space(l){let a=this.rules.block.newline.exec(l);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(l){let a=this.rules.block.code.exec(l);if(a){let r=this.options.pedantic?a[0]:yb(a[0]),s=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:s}}}fences(l){let a=this.rules.block.fences.exec(l);if(a){let r=a[0],s=Jw(r,a[3]||"",this.rules);return{type:"code",raw:r,lang:a[2]?a[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):a[2],text:s}}}heading(l){let a=this.rules.block.heading.exec(l);if(a){let r=a[2].trim();if(this.rules.other.endingHash.test(r)){let s=Di(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:Di(a[0],`
182
+ `)}var ho=class{constructor(l){xt(this,"options");xt(this,"rules");xt(this,"lexer");this.options=l||nl}space(l){let a=this.rules.block.newline.exec(l);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(l){let a=this.rules.block.code.exec(l);if(a){let r=this.options.pedantic?a[0]:vb(a[0]),s=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:s}}}fences(l){let a=this.rules.block.fences.exec(l);if(a){let r=a[0],s=eN(r,a[3]||"",this.rules);return{type:"code",raw:r,lang:a[2]?a[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):a[2],text:s}}}heading(l){let a=this.rules.block.heading.exec(l);if(a){let r=a[2].trim();if(this.rules.other.endingHash.test(r)){let s=Di(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:Di(a[0],`
183
183
  `),depth:a[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(l){let a=this.rules.block.hr.exec(l);if(a)return{type:"hr",raw:Di(a[0],`
184
184
  `)}}blockquote(l){let a=this.rules.block.blockquote.exec(l);if(a){let r=Di(a[0],`
185
185
  `).split(`
@@ -193,19 +193,19 @@ ${b}`:b;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
193
193
  ${N}`,u=u.substring(0,u.length-T.text.length)+x.text;break}else if((_==null?void 0:_.type)==="list"){let T=_,N=T.raw+`
194
194
  `+r.join(`
195
195
  `),D=this.list(N);f[f.length-1]=D,s=s.substring(0,s.length-_.raw.length)+D.raw,u=u.substring(0,u.length-T.raw.length)+D.raw,r=N.substring(f.at(-1).raw.length).split(`
196
- `);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(l){let a=this.rules.block.list.exec(l);if(a){let r=a[1].trim(),s=r.length>1,u={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let f=this.rules.other.listItemRegex(r),p=!1;for(;l;){let g=!1,m="",b="";if(!(a=f.exec(l))||this.rules.block.hr.test(l))break;m=a[0],l=l.substring(m.length);let v=Ww(a[2].split(`
196
+ `);continue}}return{type:"blockquote",raw:s,tokens:f,text:u}}}list(l){let a=this.rules.block.list.exec(l);if(a){let r=a[1].trim(),s=r.length>1,u={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let f=this.rules.other.listItemRegex(r),p=!1;for(;l;){let g=!1,m="",b="";if(!(a=f.exec(l))||this.rules.block.hr.test(l))break;m=a[0],l=l.substring(m.length);let v=Jw(a[2].split(`
197
197
  `,1)[0],a[1].length),_=l.split(`
198
198
  `,1)[0],T=!v.trim(),N=0;if(this.options.pedantic?(N=2,b=v.trimStart()):T?N=a[1].length+1:(N=v.search(this.rules.other.nonSpaceChar),N=N>4?1:N,b=v.slice(N),N+=a[1].length),T&&this.rules.other.blankLine.test(_)&&(m+=_+`
199
199
  `,l=l.substring(_.length+1),g=!0),!g){let D=this.rules.other.nextBulletRegex(N),x=this.rules.other.hrRegex(N),C=this.rules.other.fencesBeginRegex(N),I=this.rules.other.headingBeginRegex(N),A=this.rules.other.htmlBeginRegex(N),Q=this.rules.other.blockquoteBeginRegex(N);for(;l;){let V=l.split(`
200
200
  `,1)[0],ie;if(_=V,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),ie=_):ie=_.replace(this.rules.other.tabCharGlobal," "),C.test(_)||I.test(_)||A.test(_)||Q.test(_)||D.test(_)||x.test(_))break;if(ie.search(this.rules.other.nonSpaceChar)>=N||!_.trim())b+=`
201
201
  `+ie.slice(N);else{if(T||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||C.test(v)||I.test(v)||x.test(v))break;b+=`
202
202
  `+_}T=!_.trim(),m+=V+`
203
- `,l=l.substring(V.length+1),v=ie.slice(N)}}u.loose||(p?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(p=!0)),u.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(b),loose:!1,text:b,tokens:[]}),u.raw+=m}let y=u.items.at(-1);if(y)y.raw=y.raw.trimEnd(),y.text=y.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let g of u.items)if(this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]),!u.loose){let m=g.tokens.filter(v=>v.type==="space"),b=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));u.loose=b}for(let g of u.items){let m=g.tokens[0];if(g.task&&((m==null?void 0:m.type)==="text"||(m==null?void 0:m.type)==="paragraph")){g.text=g.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}let b=this.rules.other.listTaskCheckbox.exec(g.raw);if(b){let v={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};g.checked=v.checked,u.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=v.raw+g.tokens[0].raw,g.tokens[0].text=v.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(v)):g.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):g.tokens.unshift(v)}}else g.task&&(g.task=!1)}if(u.loose)for(let g of u.items){g.loose=!0;for(let m of g.tokens)m.type==="text"&&(m.type="paragraph")}return u}}html(l){let a=this.rules.block.html.exec(l);if(a){let r=yb(a[0]);return{type:"html",block:!0,raw:r,pre:a[1]==="pre"||a[1]==="script"||a[1]==="style",text:r}}}def(l){let a=this.rules.block.def.exec(l);if(a){let r=a[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=a[2]?a[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=a[3]?a[3].substring(1,a[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):a[3];return{type:"def",tag:r,raw:Di(a[0],`
204
- `),href:s,title:u}}}table(l){var p;let a=this.rules.block.table.exec(l);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let r=bb(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(`
203
+ `,l=l.substring(V.length+1),v=ie.slice(N)}}u.loose||(p?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(p=!0)),u.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(b),loose:!1,text:b,tokens:[]}),u.raw+=m}let y=u.items.at(-1);if(y)y.raw=y.raw.trimEnd(),y.text=y.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let g of u.items)if(this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]),!u.loose){let m=g.tokens.filter(v=>v.type==="space"),b=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));u.loose=b}for(let g of u.items){let m=g.tokens[0];if(g.task&&((m==null?void 0:m.type)==="text"||(m==null?void 0:m.type)==="paragraph")){g.text=g.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}let b=this.rules.other.listTaskCheckbox.exec(g.raw);if(b){let v={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};g.checked=v.checked,u.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=v.raw+g.tokens[0].raw,g.tokens[0].text=v.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(v)):g.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):g.tokens.unshift(v)}}else g.task&&(g.task=!1)}if(u.loose)for(let g of u.items){g.loose=!0;for(let m of g.tokens)m.type==="text"&&(m.type="paragraph")}return u}}html(l){let a=this.rules.block.html.exec(l);if(a){let r=vb(a[0]);return{type:"html",block:!0,raw:r,pre:a[1]==="pre"||a[1]==="script"||a[1]==="style",text:r}}}def(l){let a=this.rules.block.def.exec(l);if(a){let r=a[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=a[2]?a[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=a[3]?a[3].substring(1,a[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):a[3];return{type:"def",tag:r,raw:Di(a[0],`
204
+ `),href:s,title:u}}}table(l){var p;let a=this.rules.block.table.exec(l);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let r=yb(a[1]),s=a[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(p=a[3])!=null&&p.trim()?a[3].replace(this.rules.other.tableRowBlankLine,"").split(`
205
205
  `):[],f={type:"table",raw:Di(a[0],`
206
- `),header:[],align:[],rows:[]};if(r.length===s.length){for(let y of s)this.rules.other.tableAlignRight.test(y)?f.align.push("right"):this.rules.other.tableAlignCenter.test(y)?f.align.push("center"):this.rules.other.tableAlignLeft.test(y)?f.align.push("left"):f.align.push(null);for(let y=0;y<r.length;y++)f.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:f.align[y]});for(let y of u)f.rows.push(bb(y,f.header.length).map((g,m)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:f.align[m]})));return f}}lheading(l){let a=this.rules.block.lheading.exec(l);if(a){let r=a[1].trim();return{type:"heading",raw:Di(a[0],`
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(yb(y,f.header.length).map((g,m)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:f.align[m]})));return f}}lheading(l){let a=this.rules.block.lheading.exec(l);if(a){let r=a[1].trim();return{type:"heading",raw:Di(a[0],`
207
207
  `),depth:a[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(l){let a=this.rules.block.paragraph.exec(l);if(a){let r=a[1].charAt(a[1].length-1)===`
208
- `?a[1].slice(0,-1):a[1];return{type:"paragraph",raw:a[0],text:r,tokens:this.lexer.inline(r)}}}text(l){let a=this.rules.block.text.exec(l);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(l){let a=this.rules.inline.escape.exec(l);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(l){let a=this.rules.inline.tag.exec(l);if(a)return!this.lexer.state.inLink&&this.rules.other.startATag.test(a[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(a[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(a[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(a[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:a[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:a[0]}}link(l){let a=this.rules.inline.link.exec(l);if(a){let r=a[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let f=Di(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{let f=Qw(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)),vb(a,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},a[0],this.lexer,this.rules)}}reflink(l,a){let r;if((r=this.rules.inline.reflink.exec(l))||(r=this.rules.inline.nolink.exec(l))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=a[s.toLowerCase()];if(!u){let f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return vb(r,u,r[0],this.lexer,this.rules)}}emStrong(l,a,r=""){let s=this.rules.inline.emStrongLDelim.exec(l);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,f,p,y=u,g=0,m=s[0][0],b=r===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,a=a.slice(-1*l.length+u);(s=v.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f)continue;if(p=[...f].length,s[3]||s[4]){y+=p;continue}else if(s[5]||s[6]){if(u%3&&!((u+p)%3)){g+=p;continue}if(b)break}if(y-=p,y>0)continue;p=Math.min(p,p+y+g);let _=[...s[0]][0].length,T=l.slice(0,u+s.index+_+p);if(Math.min(u,p)%2){let D=T.slice(1,-1);return{type:"em",raw:T,text:D,tokens:this.lexer.inlineTokens(D)}}let N=T.slice(2,-2);return{type:"strong",raw:T,text:N,tokens:this.lexer.inlineTokens(N)}}}}codespan(l){let a=this.rules.inline.code.exec(l);if(a){let r=a[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:a[0],text:r}}}br(l){let a=this.rules.inline.br.exec(l);if(a)return{type:"br",raw:a[0]}}del(l,a,r=""){let s=this.rules.inline.delLDelim.exec(l);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,f,p,y=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,a=a.slice(-1*l.length+u);(s=g.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f||(p=[...f].length,p!==u))continue;if(s[3]||s[4]){y+=p;continue}if(y-=p,y>0)continue;p=Math.min(p,p+y);let m=[...s[0]][0].length,b=l.slice(0,u+s.index+m+p),v=b.slice(u,-u);return{type:"del",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(l){let a=this.rules.inline.autolink.exec(l);if(a){let r,s;return a[2]==="@"?(r=a[1],s="mailto:"+r):(r=a[1],s=r),{type:"link",raw:a[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(l){var r;let a;if(a=this.rules.inline.url.exec(l)){let s,u;if(a[2]==="@")s=a[0],u="mailto:"+s;else{let f;do f=a[0],a[0]=((r=this.rules.inline._backpedal.exec(a[0]))==null?void 0:r[0])??"";while(f!==a[0]);s=a[0],a[1]==="www."?u="http://"+a[0]:u=a[0]}return{type:"link",raw:a[0],text:s,href:u,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(l){let a=this.rules.inline.text.exec(l);if(a){let r=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:r}}}},Ta=class Ld{constructor(a){xt(this,"tokens");xt(this,"options");xt(this,"state");xt(this,"inlineQueue");xt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=a||tl,this.options.tokenizer=this.options.tokenizer||new fo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Dn,block:to.normal,inline:js.normal};this.options.pedantic?(r.block=to.pedantic,r.inline=js.pedantic):this.options.gfm&&(r.block=to.gfm,this.options.breaks?r.inline=js.breaks:r.inline=js.gfm),this.tokenizer.rules=r}static get rules(){return{block:to,inline:js}}static lex(a,r){return new Ld(r).lex(a)}static lexInline(a,r){return new Ld(r).inlineTokens(a)}lex(a){a=a.replace(Dn.carriageReturn,`
208
+ `?a[1].slice(0,-1):a[1];return{type:"paragraph",raw:a[0],text:r,tokens:this.lexer.inline(r)}}}text(l){let a=this.rules.block.text.exec(l);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(l){let a=this.rules.inline.escape.exec(l);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(l){let a=this.rules.inline.tag.exec(l);if(a)return!this.lexer.state.inLink&&this.rules.other.startATag.test(a[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(a[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(a[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(a[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:a[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:a[0]}}link(l){let a=this.rules.inline.link.exec(l);if(a){let r=a[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let f=Di(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{let f=Ww(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)),Eb(a,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},a[0],this.lexer,this.rules)}}reflink(l,a){let r;if((r=this.rules.inline.reflink.exec(l))||(r=this.rules.inline.nolink.exec(l))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=a[s.toLowerCase()];if(!u){let f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return Eb(r,u,r[0],this.lexer,this.rules)}}emStrong(l,a,r=""){let s=this.rules.inline.emStrongLDelim.exec(l);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,f,p,y=u,g=0,m=s[0][0],b=r===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,a=a.slice(-1*l.length+u);(s=v.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f)continue;if(p=[...f].length,s[3]||s[4]){y+=p;continue}else if(s[5]||s[6]){if(u%3&&!((u+p)%3)){g+=p;continue}if(b)break}if(y-=p,y>0)continue;p=Math.min(p,p+y+g);let _=[...s[0]][0].length,T=l.slice(0,u+s.index+_+p);if(Math.min(u,p)%2){let D=T.slice(1,-1);return{type:"em",raw:T,text:D,tokens:this.lexer.inlineTokens(D)}}let N=T.slice(2,-2);return{type:"strong",raw:T,text:N,tokens:this.lexer.inlineTokens(N)}}}}codespan(l){let a=this.rules.inline.code.exec(l);if(a){let r=a[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:a[0],text:r}}}br(l){let a=this.rules.inline.br.exec(l);if(a)return{type:"br",raw:a[0]}}del(l,a,r=""){let s=this.rules.inline.delLDelim.exec(l);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...s[0]].length-1,f,p,y=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,a=a.slice(-1*l.length+u);(s=g.exec(a))!==null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f||(p=[...f].length,p!==u))continue;if(s[3]||s[4]){y+=p;continue}if(y-=p,y>0)continue;p=Math.min(p,p+y);let m=[...s[0]][0].length,b=l.slice(0,u+s.index+m+p),v=b.slice(u,-u);return{type:"del",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(l){let a=this.rules.inline.autolink.exec(l);if(a){let r,s;return a[2]==="@"?(r=a[1],s="mailto:"+r):(r=a[1],s=r),{type:"link",raw:a[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(l){var r;let a;if(a=this.rules.inline.url.exec(l)){let s,u;if(a[2]==="@")s=a[0],u="mailto:"+s;else{let f;do f=a[0],a[0]=((r=this.rules.inline._backpedal.exec(a[0]))==null?void 0:r[0])??"";while(f!==a[0]);s=a[0],a[1]==="www."?u="http://"+a[0]:u=a[0]}return{type:"link",raw:a[0],text:s,href:u,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(l){let a=this.rules.inline.text.exec(l);if(a){let r=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:r}}}},Ta=class zd{constructor(a){xt(this,"tokens");xt(this,"options");xt(this,"state");xt(this,"inlineQueue");xt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=a||nl,this.options.tokenizer=this.options.tokenizer||new ho,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Dn,block:no.normal,inline:Us.normal};this.options.pedantic?(r.block=no.pedantic,r.inline=Us.pedantic):this.options.gfm&&(r.block=no.gfm,this.options.breaks?r.inline=Us.breaks:r.inline=Us.gfm),this.tokenizer.rules=r}static get rules(){return{block:no,inline:Us}}static lex(a,r){return new zd(r).lex(a)}static lexInline(a,r){return new zd(r).inlineTokens(a)}lex(a){a=a.replace(Dn.carriageReturn,`
209
209
  `),this.blockTokens(a,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(a,r=[],s=!1){var f,p,y;this.tokenizer.lexer=this,this.options.pedantic&&(a=a.replace(Dn.tabCharGlobal," ").replace(Dn.spaceLine,""));let u=1/0;for(;a;){if(a.length<u)u=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}let g;if((p=(f=this.options.extensions)==null?void 0:f.block)!=null&&p.some(b=>(g=b.call({lexer:this},a,r))?(a=a.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.space(a)){a=a.substring(g.raw.length);let b=r.at(-1);g.raw.length===1&&b!==void 0?b.raw+=`
210
210
  `:r.push(g);continue}if(g=this.tokenizer.code(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
211
211
  `)?"":`
@@ -219,7 +219,7 @@ ${N}`,u=u.substring(0,u.length-T.text.length)+x.text;break}else if((_==null?void
219
219
  `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g),s=m.length!==a.length,a=a.substring(g.raw.length);continue}if(g=this.tokenizer.text(a)){a=a.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
220
220
  `)?"":`
221
221
  `)+g.raw,b.text+=`
222
- `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(a){this.infiniteLoopError(a.charCodeAt(0));break}}return this.state.top=!0,r}inline(a,r=[]){return this.inlineQueue.push({src:a,tokens:r}),r}inlineTokens(a,r=[]){var y,g,m,b,v;this.tokenizer.lexer=this;let s=a;if(this.tokens.links){let _=Object.keys(this.tokens.links);_.length>0&&(s=s.replace(this.tokenizer.rules.inline.reflinkSearch,T=>_.includes(T.slice(T.lastIndexOf("[")+1,-1))?"["+"a".repeat(T.length-2)+"]":T))}s=s.replace(this.tokenizer.rules.inline.anyPunctuation,_=>"+".repeat(_.length)),s=s.replace(this.tokenizer.rules.inline.blockSkip,(_,T,N)=>{let D=N?N.length:0;return _.slice(0,D)+"["+"a".repeat(_.length-D-2)+"]"}),s=((g=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:g.call({lexer:this},s))??s;let u=!1,f="",p=1/0;for(;a;){if(a.length<p)p=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}u||(f=""),u=!1;let _;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(N=>(_=N.call({lexer:this},a,r))?(a=a.substring(_.raw.length),r.push(_),!0):!1))continue;if(_=this.tokenizer.escape(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.tag(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.link(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(_.raw.length);let N=r.at(-1);_.type==="text"&&(N==null?void 0:N.type)==="text"?(N.raw+=_.raw,N.text+=_.text):r.push(_);continue}if(_=this.tokenizer.emStrong(a,s,f)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.codespan(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.br(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.del(a,s,f)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.autolink(a)){a=a.substring(_.raw.length),r.push(_);continue}if(!this.state.inLink&&(_=this.tokenizer.url(a))){a=a.substring(_.raw.length),r.push(_);continue}let T=a;if((v=this.options.extensions)!=null&&v.startInline){let N=1/0,D=a.slice(1),x;this.options.extensions.startInline.forEach(C=>{x=C.call({lexer:this},D),typeof x=="number"&&x>=0&&(N=Math.min(N,x))}),N<1/0&&N>=0&&(T=a.substring(0,N+1))}if(_=this.tokenizer.inlineText(T)){a=a.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(f=_.raw.slice(-1)),u=!0;let N=r.at(-1);(N==null?void 0:N.type)==="text"?(N.raw+=_.raw,N.text+=_.text):r.push(_);continue}if(a){this.infiniteLoopError(a.charCodeAt(0));break}}return r}infiniteLoopError(a){let r="Infinite loop on byte: "+a;if(this.options.silent)console.error(r);else throw new Error(r)}},ho=class{constructor(l){xt(this,"options");xt(this,"parser");this.options=l||tl}space(l){return""}code({text:l,lang:a,escaped:r}){var f;let s=(f=(a||"").match(Dn.notSpaceStart))==null?void 0:f[0],u=l.replace(Dn.endingNewline,"")+`
222
+ `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(a){this.infiniteLoopError(a.charCodeAt(0));break}}return this.state.top=!0,r}inline(a,r=[]){return this.inlineQueue.push({src:a,tokens:r}),r}inlineTokens(a,r=[]){var y,g,m,b,v;this.tokenizer.lexer=this;let s=a;if(this.tokens.links){let _=Object.keys(this.tokens.links);_.length>0&&(s=s.replace(this.tokenizer.rules.inline.reflinkSearch,T=>_.includes(T.slice(T.lastIndexOf("[")+1,-1))?"["+"a".repeat(T.length-2)+"]":T))}s=s.replace(this.tokenizer.rules.inline.anyPunctuation,_=>"+".repeat(_.length)),s=s.replace(this.tokenizer.rules.inline.blockSkip,(_,T,N)=>{let D=N?N.length:0;return _.slice(0,D)+"["+"a".repeat(_.length-D-2)+"]"}),s=((g=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:g.call({lexer:this},s))??s;let u=!1,f="",p=1/0;for(;a;){if(a.length<p)p=a.length;else{this.infiniteLoopError(a.charCodeAt(0));break}u||(f=""),u=!1;let _;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(N=>(_=N.call({lexer:this},a,r))?(a=a.substring(_.raw.length),r.push(_),!0):!1))continue;if(_=this.tokenizer.escape(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.tag(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.link(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(_.raw.length);let N=r.at(-1);_.type==="text"&&(N==null?void 0:N.type)==="text"?(N.raw+=_.raw,N.text+=_.text):r.push(_);continue}if(_=this.tokenizer.emStrong(a,s,f)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.codespan(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.br(a)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.del(a,s,f)){a=a.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.autolink(a)){a=a.substring(_.raw.length),r.push(_);continue}if(!this.state.inLink&&(_=this.tokenizer.url(a))){a=a.substring(_.raw.length),r.push(_);continue}let T=a;if((v=this.options.extensions)!=null&&v.startInline){let N=1/0,D=a.slice(1),x;this.options.extensions.startInline.forEach(C=>{x=C.call({lexer:this},D),typeof x=="number"&&x>=0&&(N=Math.min(N,x))}),N<1/0&&N>=0&&(T=a.substring(0,N+1))}if(_=this.tokenizer.inlineText(T)){a=a.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(f=_.raw.slice(-1)),u=!0;let N=r.at(-1);(N==null?void 0:N.type)==="text"?(N.raw+=_.raw,N.text+=_.text):r.push(_);continue}if(a){this.infiniteLoopError(a.charCodeAt(0));break}}return r}infiniteLoopError(a){let r="Infinite loop on byte: "+a;if(this.options.silent)console.error(r);else throw new Error(r)}},po=class{constructor(l){xt(this,"options");xt(this,"parser");this.options=l||nl}space(l){return""}code({text:l,lang:a,escaped:r}){var f;let s=(f=(a||"").match(Dn.notSpaceStart))==null?void 0:f[0],u=l.replace(Dn.endingNewline,"")+`
223
223
  `;return s?'<pre><code class="language-'+Da(s)+'">'+(r?u:Da(u,!0))+`</code></pre>
224
224
  `:"<pre><code>"+(r?u:Da(u,!0))+`</code></pre>
225
225
  `}blockquote({tokens:l}){return`<blockquote>
@@ -237,14 +237,14 @@ ${this.parser.parse(l)}</blockquote>
237
237
  `}tablerow({text:l}){return`<tr>
238
238
  ${l}</tr>
239
239
  `}tablecell(l){let a=this.parser.parseInline(l.tokens),r=l.header?"th":"td";return(l.align?`<${r} align="${l.align}">`:`<${r}>`)+a+`</${r}>
240
- `}strong({tokens:l}){return`<strong>${this.parser.parseInline(l)}</strong>`}em({tokens:l}){return`<em>${this.parser.parseInline(l)}</em>`}codespan({text:l}){return`<code>${Da(l,!0)}</code>`}br(l){return"<br>"}del({tokens:l}){return`<del>${this.parser.parseInline(l)}</del>`}link({href:l,title:a,tokens:r}){let s=this.parser.parseInline(r),u=gb(l);if(u===null)return s;l=u;let f='<a href="'+l+'"';return a&&(f+=' title="'+Da(a)+'"'),f+=">"+s+"</a>",f}image({href:l,title:a,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let u=gb(l);if(u===null)return Da(r);l=u;let f=`<img src="${l}" alt="${Da(r)}"`;return a&&(f+=` title="${Da(a)}"`),f+=">",f}text(l){return"tokens"in l&&l.tokens?this.parser.parseInline(l.tokens):"escaped"in l&&l.escaped?l.text:Da(l.text)}},rf=class{strong({text:l}){return l}em({text:l}){return l}codespan({text:l}){return l}del({text:l}){return l}html({text:l}){return l}text({text:l}){return l}link({text:l}){return""+l}image({text:l}){return""+l}br(){return""}checkbox({raw:l}){return l}},xa=class zd{constructor(a){xt(this,"options");xt(this,"renderer");xt(this,"textRenderer");this.options=a||tl,this.options.renderer=this.options.renderer||new ho,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new rf}static parse(a,r){return new zd(r).parse(a)}static parseInline(a,r){return new zd(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}},ao,Bs=(ao=class{constructor(l){xt(this,"options");xt(this,"block");this.options=l||tl}preprocess(l){return l}postprocess(l){return l}processAllTokens(l){return l}emStrongMask(l){return l}provideLexer(l=this.block){return l?Ta.lex:Ta.lexInline}provideParser(l=this.block){return l?xa.parse:xa.parseInline}},xt(ao,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),xt(ao,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ao),eN=class{constructor(...l){xt(this,"defaults",Jd());xt(this,"options",this.setOptions);xt(this,"parse",this.parseMarkdown(!0));xt(this,"parseInline",this.parseMarkdown(!1));xt(this,"Parser",xa);xt(this,"Renderer",ho);xt(this,"TextRenderer",rf);xt(this,"Lexer",Ta);xt(this,"Tokenizer",fo);xt(this,"Hooks",Bs);this.use(...l)}walkTokens(l,a){var s,u;let r=[];for(let f of l)switch(r=r.concat(a.call(this,f)),f.type){case"table":{let p=f;for(let y of p.header)r=r.concat(this.walkTokens(y.tokens,a));for(let y of p.rows)for(let g of y)r=r.concat(this.walkTokens(g.tokens,a));break}case"list":{let p=f;r=r.concat(this.walkTokens(p.items,a));break}default:{let p=f;(u=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&u[p.type]?this.defaults.extensions.childTokens[p.type].forEach(y=>{let g=p[y].flat(1/0);r=r.concat(this.walkTokens(g,a))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,a)))}}return r}use(...l){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return l.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let f=a.renderers[u.name];f?a.renderers[u.name]=function(...p){let y=u.renderer.apply(this,p);return y===!1&&(y=f.apply(this,p)),y}:a.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let f=a[u.level];f?f.unshift(u.tokenizer):a[u.level]=[u.tokenizer],u.start&&(u.level==="block"?a.startBlock?a.startBlock.push(u.start):a.startBlock=[u.start]:u.level==="inline"&&(a.startInline?a.startInline.push(u.start):a.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(a.childTokens[u.name]=u.childTokens)}),s.extensions=a),r.renderer){let u=this.defaults.renderer||new ho(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 fo(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 Bs;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];Bs.passThroughHooks.has(f)?u[p]=m=>{if(this.defaults.async&&Bs.passThroughHooksRespectAsync.has(f))return(async()=>{let v=await y.call(u,m);return g.call(u,v)})();let b=y.call(u,m);return g.call(u,b)}:u[p]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await y.apply(u,m);return v===!1&&(v=await g.apply(u,m)),v})();let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}s.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,f=r.walkTokens;s.walkTokens=function(p){let y=[];return y.push(f.call(this,p)),u&&(y=y.concat(u.call(this,p))),y}}this.defaults={...this.defaults,...s}}),this}setOptions(l){return this.defaults={...this.defaults,...l},this}lexer(l,a){return Ta.lex(l,a??this.defaults)}parser(l,a){return xa.parse(l,a??this.defaults)}parseMarkdown(l){return(a,r)=>{let s={...r},u={...this.defaults,...s},f=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&s.async===!1)return f(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));if(u.hooks&&(u.hooks.options=u,u.hooks.block=l),u.async)return(async()=>{let p=u.hooks?await u.hooks.preprocess(a):a,y=await(u.hooks?await u.hooks.provideLexer(l):l?Ta.lex:Ta.lexInline)(p,u),g=u.hooks?await u.hooks.processAllTokens(y):y;u.walkTokens&&await Promise.all(this.walkTokens(g,u.walkTokens));let m=await(u.hooks?await u.hooks.provideParser(l):l?xa.parse:xa.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(f);try{u.hooks&&(a=u.hooks.preprocess(a));let p=(u.hooks?u.hooks.provideLexer(l):l?Ta.lex:Ta.lexInline)(a,u);u.hooks&&(p=u.hooks.processAllTokens(p)),u.walkTokens&&this.walkTokens(p,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(l):l?xa.parse:xa.parseInline)(p,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(p){return f(p)}}}onError(l,a){return r=>{if(r.message+=`
241
- Please report this to https://github.com/markedjs/marked.`,l){let s="<p>An error occurred:</p><pre>"+Da(r.message+"",!0)+"</pre>";return a?Promise.resolve(s):s}if(a)return Promise.reject(r);throw r}}},el=new eN;function yt(l,a){return el.parse(l,a)}yt.options=yt.setOptions=function(l){return el.setOptions(l),yt.defaults=el.defaults,ny(yt.defaults),yt};yt.getDefaults=Jd;yt.defaults=tl;function tN(...l){return el.use(...l),yt.defaults=el.defaults,ny(yt.defaults),yt}yt.use=tN;yt.walkTokens=function(l,a){return el.walkTokens(l,a)};yt.parseInline=el.parseInline;yt.Parser=xa;yt.parser=xa.parse;yt.Renderer=ho;yt.TextRenderer=rf;yt.Lexer=Ta;yt.lexer=Ta.lex;yt.Tokenizer=fo;yt.Hooks=Bs;yt.parse=yt;yt.options;yt.setOptions;yt.walkTokens;yt.parseInline;xa.parse;Ta.lex;yt.setOptions({gfm:!0,breaks:!1});function of(l){const a=yt.parse(l??"",{async:!1});return iw.sanitize(a)}function ni({text:l,className:a}){const r=F.useMemo(()=>of(l),[l]);return l!=null&&l.trim()?d.jsx("div",{className:`md ${a??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const nN={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function aN(l){return l.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(a,r)=>nN[r.toLowerCase()]??a).replace(/\s+/g," ").trim()}function iN(l,a){return aN(a)!==l.replace(/\s+/g," ").trim()}function Ys({text:l,className:a}){const r=F.useMemo(()=>l!=null&&l.trim()?of(l):"",[l]);return!r||!iN(l,r)?null:d.jsxs("div",{className:"md-preview",children:[d.jsx("div",{className:"lab",children:"preview"}),d.jsx("div",{className:`md prose ${a??""}`,dangerouslySetInnerHTML:{__html:r}})]})}const lN=/\.(md|markdown)$/i;function cf(l){return lN.test(l)}function sN(l){return/^new file mode /m.test(l)||/^--- \/dev\/null$/m.test(l)}function rN(l){const a=[];let r=0,s=!1;const u=l.split(`
242
- `);for(let f=0;f<u.length;f++){const p=u[f],y=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),s=!0;continue}s&&(p===""&&f===u.length-1||p.startsWith("\\")||p.startsWith("-")||(p.startsWith("+")||p.startsWith(" ")||p==="")&&(a.push({n:r,text:p===""?"":p.slice(1),added:p.startsWith("+")}),r++))}return a}const no=l=>(l.match(/\n/g)??[]).length;function uf(l){const a=rN(l),r=sN(l),s=[];let u=[];const f=()=>{if(u.length===0)return;const p=u[0].n,y=new Set(u.filter(b=>b.added).map(b=>b.n)),g=u.map(b=>b.text).join(`
240
+ `}strong({tokens:l}){return`<strong>${this.parser.parseInline(l)}</strong>`}em({tokens:l}){return`<em>${this.parser.parseInline(l)}</em>`}codespan({text:l}){return`<code>${Da(l,!0)}</code>`}br(l){return"<br>"}del({tokens:l}){return`<del>${this.parser.parseInline(l)}</del>`}link({href:l,title:a,tokens:r}){let s=this.parser.parseInline(r),u=bb(l);if(u===null)return s;l=u;let f='<a href="'+l+'"';return a&&(f+=' title="'+Da(a)+'"'),f+=">"+s+"</a>",f}image({href:l,title:a,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let u=bb(l);if(u===null)return Da(r);l=u;let f=`<img src="${l}" alt="${Da(r)}"`;return a&&(f+=` title="${Da(a)}"`),f+=">",f}text(l){return"tokens"in l&&l.tokens?this.parser.parseInline(l.tokens):"escaped"in l&&l.escaped?l.text:Da(l.text)}},of=class{strong({text:l}){return l}em({text:l}){return l}codespan({text:l}){return l}del({text:l}){return l}html({text:l}){return l}text({text:l}){return l}link({text:l}){return""+l}image({text:l}){return""+l}br(){return""}checkbox({raw:l}){return l}},xa=class jd{constructor(a){xt(this,"options");xt(this,"renderer");xt(this,"textRenderer");this.options=a||nl,this.options.renderer=this.options.renderer||new po,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new of}static parse(a,r){return new jd(r).parse(a)}static parseInline(a,r){return new jd(r).parseInline(a)}parse(a){var s,u;this.renderer.parser=this;let r="";for(let f=0;f<a.length;f++){let p=a[f];if((u=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&u[p.type]){let g=p,m=this.options.extensions.renderers[g.type].call({parser:this},g);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(g.type)){r+=m||"";continue}}let y=p;switch(y.type){case"space":{r+=this.renderer.space(y);break}case"hr":{r+=this.renderer.hr(y);break}case"heading":{r+=this.renderer.heading(y);break}case"code":{r+=this.renderer.code(y);break}case"table":{r+=this.renderer.table(y);break}case"blockquote":{r+=this.renderer.blockquote(y);break}case"list":{r+=this.renderer.list(y);break}case"checkbox":{r+=this.renderer.checkbox(y);break}case"html":{r+=this.renderer.html(y);break}case"def":{r+=this.renderer.def(y);break}case"paragraph":{r+=this.renderer.paragraph(y);break}case"text":{r+=this.renderer.text(y);break}default:{let g='Token with "'+y.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return r}parseInline(a,r=this.renderer){var u,f;this.renderer.parser=this;let s="";for(let p=0;p<a.length;p++){let y=a[p];if((f=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&f[y.type]){let m=this.options.extensions.renderers[y.type].call({parser:this},y);if(m!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(y.type)){s+=m||"";continue}}let g=y;switch(g.type){case"escape":{s+=r.text(g);break}case"html":{s+=r.html(g);break}case"link":{s+=r.link(g);break}case"image":{s+=r.image(g);break}case"checkbox":{s+=r.checkbox(g);break}case"strong":{s+=r.strong(g);break}case"em":{s+=r.em(g);break}case"codespan":{s+=r.codespan(g);break}case"br":{s+=r.br(g);break}case"del":{s+=r.del(g);break}case"text":{s+=r.text(g);break}default:{let m='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return s}},io,Is=(io=class{constructor(l){xt(this,"options");xt(this,"block");this.options=l||nl}preprocess(l){return l}postprocess(l){return l}processAllTokens(l){return l}emStrongMask(l){return l}provideLexer(l=this.block){return l?Ta.lex:Ta.lexInline}provideParser(l=this.block){return l?xa.parse:xa.parseInline}},xt(io,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),xt(io,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),io),tN=class{constructor(...l){xt(this,"defaults",ef());xt(this,"options",this.setOptions);xt(this,"parse",this.parseMarkdown(!0));xt(this,"parseInline",this.parseMarkdown(!1));xt(this,"Parser",xa);xt(this,"Renderer",po);xt(this,"TextRenderer",of);xt(this,"Lexer",Ta);xt(this,"Tokenizer",ho);xt(this,"Hooks",Is);this.use(...l)}walkTokens(l,a){var s,u;let r=[];for(let f of l)switch(r=r.concat(a.call(this,f)),f.type){case"table":{let p=f;for(let y of p.header)r=r.concat(this.walkTokens(y.tokens,a));for(let y of p.rows)for(let g of y)r=r.concat(this.walkTokens(g.tokens,a));break}case"list":{let p=f;r=r.concat(this.walkTokens(p.items,a));break}default:{let p=f;(u=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&u[p.type]?this.defaults.extensions.childTokens[p.type].forEach(y=>{let g=p[y].flat(1/0);r=r.concat(this.walkTokens(g,a))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,a)))}}return r}use(...l){let a=this.defaults.extensions||{renderers:{},childTokens:{}};return l.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let f=a.renderers[u.name];f?a.renderers[u.name]=function(...p){let y=u.renderer.apply(this,p);return y===!1&&(y=f.apply(this,p)),y}:a.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let f=a[u.level];f?f.unshift(u.tokenizer):a[u.level]=[u.tokenizer],u.start&&(u.level==="block"?a.startBlock?a.startBlock.push(u.start):a.startBlock=[u.start]:u.level==="inline"&&(a.startInline?a.startInline.push(u.start):a.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(a.childTokens[u.name]=u.childTokens)}),s.extensions=a),r.renderer){let u=this.defaults.renderer||new po(this.defaults);for(let f in r.renderer){if(!(f in u))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;let p=f,y=r.renderer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b||""}}s.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new ho(this.defaults);for(let f in r.tokenizer){if(!(f in u))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;let p=f,y=r.tokenizer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}s.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new Is;for(let f in r.hooks){if(!(f in u))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;let p=f,y=r.hooks[p],g=u[p];Is.passThroughHooks.has(f)?u[p]=m=>{if(this.defaults.async&&Is.passThroughHooksRespectAsync.has(f))return(async()=>{let v=await y.call(u,m);return g.call(u,v)})();let b=y.call(u,m);return g.call(u,b)}:u[p]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await y.apply(u,m);return v===!1&&(v=await g.apply(u,m)),v})();let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}s.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,f=r.walkTokens;s.walkTokens=function(p){let y=[];return y.push(f.call(this,p)),u&&(y=y.concat(u.call(this,p))),y}}this.defaults={...this.defaults,...s}}),this}setOptions(l){return this.defaults={...this.defaults,...l},this}lexer(l,a){return Ta.lex(l,a??this.defaults)}parser(l,a){return xa.parse(l,a??this.defaults)}parseMarkdown(l){return(a,r)=>{let s={...r},u={...this.defaults,...s},f=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&s.async===!1)return f(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof a>"u"||a===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));if(u.hooks&&(u.hooks.options=u,u.hooks.block=l),u.async)return(async()=>{let p=u.hooks?await u.hooks.preprocess(a):a,y=await(u.hooks?await u.hooks.provideLexer(l):l?Ta.lex:Ta.lexInline)(p,u),g=u.hooks?await u.hooks.processAllTokens(y):y;u.walkTokens&&await Promise.all(this.walkTokens(g,u.walkTokens));let m=await(u.hooks?await u.hooks.provideParser(l):l?xa.parse:xa.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(f);try{u.hooks&&(a=u.hooks.preprocess(a));let p=(u.hooks?u.hooks.provideLexer(l):l?Ta.lex:Ta.lexInline)(a,u);u.hooks&&(p=u.hooks.processAllTokens(p)),u.walkTokens&&this.walkTokens(p,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(l):l?xa.parse:xa.parseInline)(p,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(p){return f(p)}}}onError(l,a){return r=>{if(r.message+=`
241
+ Please report this to https://github.com/markedjs/marked.`,l){let s="<p>An error occurred:</p><pre>"+Da(r.message+"",!0)+"</pre>";return a?Promise.resolve(s):s}if(a)return Promise.reject(r);throw r}}},tl=new tN;function yt(l,a){return tl.parse(l,a)}yt.options=yt.setOptions=function(l){return tl.setOptions(l),yt.defaults=tl.defaults,ay(yt.defaults),yt};yt.getDefaults=ef;yt.defaults=nl;function nN(...l){return tl.use(...l),yt.defaults=tl.defaults,ay(yt.defaults),yt}yt.use=nN;yt.walkTokens=function(l,a){return tl.walkTokens(l,a)};yt.parseInline=tl.parseInline;yt.Parser=xa;yt.parser=xa.parse;yt.Renderer=po;yt.TextRenderer=of;yt.Lexer=Ta;yt.lexer=Ta.lex;yt.Tokenizer=ho;yt.Hooks=Is;yt.parse=yt;yt.options;yt.setOptions;yt.walkTokens;yt.parseInline;xa.parse;Ta.lex;yt.setOptions({gfm:!0,breaks:!1});function cf(l){const a=yt.parse(l??"",{async:!1});return lw.sanitize(a)}function ni({text:l,className:a}){const r=F.useMemo(()=>cf(l),[l]);return l!=null&&l.trim()?d.jsx("div",{className:`md ${a??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const aN={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function iN(l){return l.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(a,r)=>aN[r.toLowerCase()]??a).replace(/\s+/g," ").trim()}function lN(l,a){return iN(a)!==l.replace(/\s+/g," ").trim()}function Fs({text:l,className:a}){const r=F.useMemo(()=>l!=null&&l.trim()?cf(l):"",[l]);return!r||!lN(l,r)?null:d.jsxs("div",{className:"md-preview",children:[d.jsx("div",{className:"lab",children:"preview"}),d.jsx("div",{className:`md prose ${a??""}`,dangerouslySetInnerHTML:{__html:r}})]})}const sN=/\.(md|markdown)$/i;function uf(l){return sN.test(l)}function rN(l){return/^new file mode /m.test(l)||/^--- \/dev\/null$/m.test(l)}function oN(l){const a=[];let r=0,s=!1;const u=l.split(`
242
+ `);for(let f=0;f<u.length;f++){const p=u[f],y=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),s=!0;continue}s&&(p===""&&f===u.length-1||p.startsWith("\\")||p.startsWith("-")||(p.startsWith("+")||p.startsWith(" ")||p==="")&&(a.push({n:r,text:p===""?"":p.slice(1),added:p.startsWith("+")}),r++))}return a}const ao=l=>(l.match(/\n/g)??[]).length;function df(l){const a=oN(l),r=rN(l),s=[];let u=[];const f=()=>{if(u.length===0)return;const p=u[0].n,y=new Set(u.filter(b=>b.added).map(b=>b.n)),g=u.map(b=>b.text).join(`
243
243
  `)+`
244
- `;let m=p;for(const b of yt.lexer(g)){const v=b.raw,_=v.trimEnd();if(_===""){m+=no(v);continue}const T=v.length-v.trimStart().length,N=m+no(v.slice(0,T)),D=N+no(_.slice(T));let x=!1;for(let C=N;C<=D&&!x;C++)x=y.has(C);s.push({kind:"block",raw:_.slice(T),from:N,to:D,changed:x}),m+=no(v)}u=[]};for(const p of a){const y=u[u.length-1];if(y&&p.n!==y.n+1){const g=p.n-y.n-1;f(),s.push({kind:"gap",lines:g})}u.push(p)}return f(),{items:s,isNew:r,lines:a.length}}const jd="cerber.stickyChapters";function oN(l){return l!=="off"}function cN(){try{return oN(localStorage.getItem(jd))}catch{return!0}}function fy(){const[l,a]=F.useState(cN);return[l,s=>{try{s?localStorage.removeItem(jd):localStorage.setItem(jd,"off")}catch{}a(s)}]}function lo(l){const a=l.alreadyRaised;return!a||a.decision==="send"?"post":a.decision==="reply"?a.where.kind==="thread"?"reply":"hold":a.where.kind==="thread"&&a.where.state==="resolved"?"post":"hold"}const Ud={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},uN={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function dN(l){return(l==null?void 0:l.recommendation)==="approve"?"APPROVE":(l==null?void 0:l.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function hy(l,a){const r=A_(l);return a.filter(s=>{var u;return!s.drifted&&s.line!=null&&((u=r.get(s.path))==null?void 0:u.has(s.line))})}function Eb(l,a){const r=f=>{const p=Number((f??"").trim());return Number.isInteger(p)&&p>0?p:null},s=r(a);if(s!=null)return{line:s,side:"new"};const u=r(l);return u!=null?{line:u,side:"old"}:null}function py(l){const a=l.comments.filter(y=>y.status==="dropped"),r=l.comments.filter(y=>y.status!=="dropped"),s=r.filter(y=>lo(y)==="reply"),u=r.filter(y=>lo(y)==="hold"),f=r.filter(y=>lo(y)==="post"),p=hy(l.diff,f);return{inline:p,folded:f.filter(y=>!p.includes(y)),dropped:a,replies:s,held:u}}function _b(l){return l.sent!=null||(l.priorSends??[]).length>0}function Sb(l){return(l.priorSends??[]).length+(l.sent?1:0)}function fN(l,a){if(l.sent==null)return!1;const r=a==null?void 0:a.headSha;return r!=null&&l.pr.headSha!==""&&r!==l.pr.headSha}function hN(l,a){const r=l.alreadyRaised;if(!r)return null;if(l.status==="dropped")return a?"dropped — not posted":"dropped — never posts";if(r.replied)return"replied in their thread";const s=lo(l);return a?s==="reply"?"the reply in their thread did not post":s==="hold"?"left out of the review":"posted as a comment of its own":s==="reply"?"replies in their thread when you send":s==="hold"?"left out of Send":r.decision==="send"?"posts as a comment of its own":"posts — their thread was resolved, and the problem is still here"}function pN(l){return l.where.kind==="thread"?`${l.where.state} thread`:"review"}function Td(l){const a=l.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:a.filter(f=>f.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:f})=>`${qb[u]} ${f} ${u}${f===1?"":"s"}`).join(" · ")}function mN(l){if(!l.comments.some(s=>s.severity!=null))return null;const r=l.comments.filter(s=>s.status!=="dropped"&&s.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function gN(l){if(!l.verdict||!l.comments.some(u=>u.severity!=null))return null;const r=l.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,s=l.verdict.recommendation;return s==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:s==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function Bd(l){const{inline:a,folded:r,replies:s,held:u}=py(l),f=[s.length>0?`${s.length} ${s.length===1?"reply":"replies"} in another reviewer's thread`:"",u.length>0?`${u.length} already raised, left out`:""].filter(Boolean);return[bN(l,a,r),...f].join(" · ")}function bN(l,a,r){if(l.bodyOverride!=null)return`${a.length===0?"no inline comments":`${a.length} inline`} · body you wrote`;if(a.length===0&&r.length===0)return"no inline comments · body only";const s=[`${a.length} inline`];return r.length>0&&s.push(`${r.length} folded into the body`),s.join(" · ")}const Id="cerber.sendKey";function yN(l){return l==="enter"?l:"mod-enter"}function vN(l,a){return a.key!=="Enter"||a.isComposing||a.keyCode===229?!1:a.metaKey||a.ctrlKey?!0:l==="enter"&&!a.shiftKey}let po=null;function EN(l){if(po)return po;try{return yN((l??localStorage).getItem(Id))}catch{return"mod-enter"}}function _N(l,a){try{const r=a??localStorage;l==="mod-enter"?r.removeItem(Id):r.setItem(Id,l),po=null}catch{po=l}}function my(){const[l,a]=F.useState(()=>EN());return[l,s=>{_N(s),a(s)}]}const wb={approve:"approve",comment:"comment",request_changes:"changes"},SN={approve:"approve",comment:"comment",request_changes:"changes"};function wN(l,a){return l.status==="dropped"?"none":l.drifted?"comment":l.origin==="user"?"awaiting":a}function gy(l,a=20){const r=document.getElementById(`c-${l}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}a>0&&requestAnimationFrame(()=>gy(l,a-1))}function NN(l){const a=l,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function Nb(l,a){const r=document.createElement("tr");r.className=a;const s=document.createElement("td");s.colSpan=2;const u=document.createElement("div");return s.appendChild(u),r.appendChild(s),l.after(r),{tr:r,holder:u}}function Tb(l,a,r){l.querySelectorAll(".d2h-file-wrapper").forEach(s=>{const u=s.dataset.path;if(!u)return;const f=a.has(u);s.classList.toggle("file-viewed-on",f),s.classList.toggle("file-peek",f&&r.has(u));const p=s.querySelector("input[data-viewed-path]");p&&(p.checked=f)})}function mo(l,a){!l||!a||l.getBoundingClientRect().top<parseFloat(getComputedStyle(a).top)&&requestAnimationFrame(()=>l.scrollIntoView({block:"start"}))}function TN(l){const a=document.createElement("label");a.className="file-viewed",a.title="Mark as viewed — folds the file until its diff changes";const r=document.createElement("input");return r.type="checkbox",r.dataset.viewedPath=l,a.append(r," Viewed"),a}function by({pick:l,chatBusy:a,onAdd:r,onAsk:s,onClose:u}){const[f,p]=F.useState(""),y=F.useRef(null);F.useEffect(()=>{var m;return(m=y.current)==null?void 0:m.focus()},[]);const g=f.trim();return d.jsxs("div",{className:"line-composer",children:[d.jsxs("div",{className:"line-composer-head",children:[d.jsxs("span",{className:"comment-loc",children:[l.path,":",l.line]}),l.side==="old"&&d.jsx("span",{className:"faint",title:"GitHub only takes inline comments on the new side of a diff.",children:"this line is gone from the new file — a comment on it posts on the file, not the line"})]}),d.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:f,onChange:m=>p(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),d.jsx(Ys,{className:"comment-body",text:f}),d.jsxs("div",{className:"line-composer-actions",children:[d.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[d.jsx(Ze,{name:"plus"}),"add comment",d.jsx(za,{children:"⌘↵"})]}),d.jsxs("button",{className:"btn btn-accent",disabled:!g||a,title:a?"the reviewer is still answering the last question":"Ask the reviewer about this line — the answer lands in the chat below",onClick:()=>s(g),children:[d.jsx(Ze,{name:"comment"}),"ask the reviewer"]}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function xN({patch:l,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onRead:y,viewedState:g}){const m=F.useMemo(()=>l.trim()?w_(l,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[l]),b=F.useMemo(()=>ja(l).map(ce=>ce.path),[l]),v=F.useMemo(()=>new Set(ja(l).filter(ce=>cf(ce.path)&&uf(ce.patch).lines>0).map(ce=>ce.path)),[l]),_=F.useMemo(()=>a.map(ce=>`${ce.id}@${ce.path}:${ce.line}`).join("|"),[a]),T=F.useRef(null),N=F.useRef(y);N.current=y;const D=F.useRef(g);D.current=g;const[x,C]=F.useState([]),[I,A]=F.useState([]),[Q,V]=F.useState(null),[ie,H]=F.useState(null);F.useEffect(()=>{var Le,S;const ce=T.current;if(!ce)return;ce.innerHTML=m,hS(ce);const Se=new Map,he=[];ce.querySelectorAll(".d2h-file-wrapper").forEach((z,B)=>{var ve,Z,ye,Ne,Ge;const se=(Z=(ve=z.querySelector(".d2h-file-name"))==null?void 0:ve.textContent)==null?void 0:Z.trim(),pe=se&&b.includes(se)?se:b[B];if(se&&Se.set(se,z),pe){Se.set(pe,z),z.dataset.path=pe;const $e=document.createElement("div");if($e.className="file-comments",(ye=z.querySelector(".d2h-file-header"))==null||ye.after($e),he.push({path:pe,el:$e}),v.has(pe)){const Me=document.createElement("button");Me.type="button",Me.className="btn btn-sm md-read-toggle",Me.dataset.readPath=pe,Me.textContent="read as a document",Me.title="Render this markdown instead of showing it line by line",(Ne=z.querySelector(".d2h-file-header"))==null||Ne.appendChild(Me)}(Ge=z.querySelector(".d2h-file-header"))==null||Ge.appendChild(TN(pe))}}),Tb(ce,D.current.viewed,D.current.peeked);const M=[],ee=new Map;for(const z of a){if(z.line==null)continue;const B=Se.get(z.path);if(!B)continue;const se=Array.from(B.querySelectorAll(".d2h-diff-tbody > tr")).find(ve=>{var Z,ye;return((ye=(Z=ve.querySelector(".line-num2"))==null?void 0:Z.textContent)==null?void 0:ye.trim())===String(z.line)});if(!se)continue;const pe=Nb(ee.get(se)??se,"inline-comment-row");ee.set(se,pe.tr),M.push({id:z.id,el:pe.holder})}C(M),A(he);const fe=z=>{var $e;const B=z.target,se=B.closest(".md-read-toggle");if(se!=null&&se.dataset.readPath){N.current(se.dataset.readPath);return}const pe=B.closest(".d2h-file-wrapper");if(B instanceof HTMLInputElement&&B.dataset.viewedPath){B.checked&&mo(pe,(pe==null?void 0:pe.querySelector(".d2h-file-header"))??null),D.current.onToggleViewed(B.dataset.viewedPath);return}if(B.closest(".file-viewed"))return;const ve=($e=B.closest(".d2h-file-header"))==null?void 0:$e.closest(".file-viewed-on");if(ve!=null&&ve.dataset.path){mo(pe,(pe==null?void 0:pe.querySelector(".d2h-file-header"))??null),D.current.onTogglePeek(ve.dataset.path);return}const Z=z.target.closest(".line-add");if(!Z)return;const{path:ye,line:Ne,side:Ge}=Z.dataset;!ye||!Ne||V({path:ye,line:Number(Ne),side:Ge==="old"?"old":"new"})};ce.addEventListener("click",fe);const we=()=>ce.removeEventListener("click",fe);if(s)return V(null),H(null),we;for(const z of ce.querySelectorAll(".d2h-file-wrapper")){const B=z.dataset.path;if(B)for(const se of z.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const pe=Eb((Le=se.querySelector(".line-num1"))==null?void 0:Le.textContent,(S=se.querySelector(".line-num2"))==null?void 0:S.textContent);if(!pe)continue;const ve=document.createElement("button");ve.type="button",ve.className="line-add";const Z=`Say something about ${B}:${pe.line}`;ve.title=Z,ve.setAttribute("aria-label",Z),ve.tabIndex=-1,ve.dataset.path=B,ve.dataset.line=String(pe.line),ve.dataset.side=pe.side,se.appendChild(ve)}}return H(null),we},[m,_,b,v,s]);const R=b.filter(ce=>g.viewed.has(ce)).join(`
244
+ `;let m=p;for(const b of yt.lexer(g)){const v=b.raw,_=v.trimEnd();if(_===""){m+=ao(v);continue}const T=v.length-v.trimStart().length,N=m+ao(v.slice(0,T)),D=N+ao(_.slice(T));let x=!1;for(let C=N;C<=D&&!x;C++)x=y.has(C);s.push({kind:"block",raw:_.slice(T),from:N,to:D,changed:x}),m+=ao(v)}u=[]};for(const p of a){const y=u[u.length-1];if(y&&p.n!==y.n+1){const g=p.n-y.n-1;f(),s.push({kind:"gap",lines:g})}u.push(p)}return f(),{items:s,isNew:r,lines:a.length}}const Ud="cerber.stickyChapters";function cN(l){return l!=="off"}function uN(){try{return cN(localStorage.getItem(Ud))}catch{return!0}}function hy(){const[l,a]=F.useState(uN);return[l,s=>{try{s?localStorage.removeItem(Ud):localStorage.setItem(Ud,"off")}catch{}a(s)}]}function so(l){const a=l.alreadyRaised;return!a||a.decision==="send"?"post":a.decision==="reply"?a.where.kind==="thread"?"reply":"hold":a.where.kind==="thread"&&a.where.state==="resolved"?"post":"hold"}const Bd={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},dN={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function fN(l){return(l==null?void 0:l.recommendation)==="approve"?"APPROVE":(l==null?void 0:l.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function py(l,a){const r=R_(l);return a.filter(s=>{var u;return!s.drifted&&s.line!=null&&((u=r.get(s.path))==null?void 0:u.has(s.line))})}function _b(l,a){const r=f=>{const p=Number((f??"").trim());return Number.isInteger(p)&&p>0?p:null},s=r(a);if(s!=null)return{line:s,side:"new"};const u=r(l);return u!=null?{line:u,side:"old"}:null}function my(l){const a=l.comments.filter(y=>y.status==="dropped"),r=l.comments.filter(y=>y.status!=="dropped"),s=r.filter(y=>so(y)==="reply"),u=r.filter(y=>so(y)==="hold"),f=r.filter(y=>so(y)==="post"),p=py(l.diff,f);return{inline:p,folded:f.filter(y=>!p.includes(y)),dropped:a,replies:s,held:u}}function Sb(l){return l.sent!=null||(l.priorSends??[]).length>0}function wb(l){return(l.priorSends??[]).length+(l.sent?1:0)}function hN(l,a){if(l.sent==null)return!1;const r=a==null?void 0:a.headSha;return r!=null&&l.pr.headSha!==""&&r!==l.pr.headSha}function pN(l,a){const r=l.alreadyRaised;if(!r)return null;if(l.status==="dropped")return a?"dropped — not posted":"dropped — never posts";if(r.replied)return"replied in their thread";const s=so(l);return a?s==="reply"?"the reply in their thread did not post":s==="hold"?"left out of the review":"posted as a comment of its own":s==="reply"?"replies in their thread when you send":s==="hold"?"left out of Send":r.decision==="send"?"posts as a comment of its own":"posts — their thread was resolved, and the problem is still here"}function mN(l){return l.where.kind==="thread"?`${l.where.state} thread`:"review"}function xd(l){const a=l.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:a.filter(f=>f.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:f})=>`${Gb[u]} ${f} ${u}${f===1?"":"s"}`).join(" · ")}function gN(l){if(!l.comments.some(s=>s.severity!=null))return null;const r=l.comments.filter(s=>s.status!=="dropped"&&s.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function bN(l){if(!l.verdict||!l.comments.some(u=>u.severity!=null))return null;const r=l.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,s=l.verdict.recommendation;return s==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:s==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function Id(l){const{inline:a,folded:r,replies:s,held:u}=my(l),f=[s.length>0?`${s.length} ${s.length===1?"reply":"replies"} in another reviewer's thread`:"",u.length>0?`${u.length} already raised, left out`:""].filter(Boolean);return[yN(l,a,r),...f].join(" · ")}function yN(l,a,r){if(l.bodyOverride!=null)return`${a.length===0?"no inline comments":`${a.length} inline`} · body you wrote`;if(a.length===0&&r.length===0)return"no inline comments · body only";const s=[`${a.length} inline`];return r.length>0&&s.push(`${r.length} folded into the body`),s.join(" · ")}const Hd="cerber.sendKey";function vN(l){return l==="enter"?l:"mod-enter"}function EN(l,a){return a.key!=="Enter"||a.isComposing||a.keyCode===229?!1:a.metaKey||a.ctrlKey?!0:l==="enter"&&!a.shiftKey}let mo=null;function _N(l){if(mo)return mo;try{return vN((l??localStorage).getItem(Hd))}catch{return"mod-enter"}}function SN(l,a){try{const r=a??localStorage;l==="mod-enter"?r.removeItem(Hd):r.setItem(Hd,l),mo=null}catch{mo=l}}function gy(){const[l,a]=F.useState(()=>_N());return[l,s=>{SN(s),a(s)}]}const Nb={approve:"approve",comment:"comment",request_changes:"changes"},wN={approve:"approve",comment:"comment",request_changes:"changes"};function NN(l,a){return l.status==="dropped"?"none":l.drifted?"comment":l.origin==="user"?"awaiting":a}function by(l,a=20){const r=document.getElementById(`c-${l}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}a>0&&requestAnimationFrame(()=>by(l,a-1))}function TN(l){const a=l,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function Tb(l,a){const r=document.createElement("tr");r.className=a;const s=document.createElement("td");s.colSpan=2;const u=document.createElement("div");return s.appendChild(u),r.appendChild(s),l.after(r),{tr:r,holder:u}}function xb(l,a,r){l.querySelectorAll(".d2h-file-wrapper").forEach(s=>{const u=s.dataset.path;if(!u)return;const f=a.has(u);s.classList.toggle("file-viewed-on",f),s.classList.toggle("file-peek",f&&r.has(u));const p=s.querySelector("input[data-viewed-path]");p&&(p.checked=f)})}function go(l,a){!l||!a||l.getBoundingClientRect().top<parseFloat(getComputedStyle(a).top)&&requestAnimationFrame(()=>l.scrollIntoView({block:"start"}))}function xN(l){const a=document.createElement("label");a.className="file-viewed",a.title="Mark as viewed — folds the file until its diff changes";const r=document.createElement("input");return r.type="checkbox",r.dataset.viewedPath=l,a.append(r," Viewed"),a}function yy({pick:l,chatBusy:a,onAdd:r,onAsk:s,onClose:u}){const[f,p]=F.useState(""),y=F.useRef(null);F.useEffect(()=>{var m;return(m=y.current)==null?void 0:m.focus()},[]);const g=f.trim();return d.jsxs("div",{className:"line-composer",children:[d.jsxs("div",{className:"line-composer-head",children:[d.jsxs("span",{className:"comment-loc",children:[l.path,":",l.line]}),l.side==="old"&&d.jsx("span",{className:"faint",title:"GitHub only takes inline comments on the new side of a diff.",children:"this line is gone from the new file — a comment on it posts on the file, not the line"})]}),d.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:f,onChange:m=>p(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),d.jsx(Fs,{className:"comment-body",text:f}),d.jsxs("div",{className:"line-composer-actions",children:[d.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[d.jsx(Ze,{name:"plus"}),"add comment",d.jsx(za,{children:"⌘↵"})]}),d.jsxs("button",{className:"btn btn-accent",disabled:!g||a,title:a?"the reviewer is still answering the last question":"Ask the reviewer about this line — the answer lands in the chat below",onClick:()=>s(g),children:[d.jsx(Ze,{name:"comment"}),"ask the reviewer"]}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function AN({patch:l,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onRead:y,viewedState:g}){const m=F.useMemo(()=>l.trim()?N_(l,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[l]),b=F.useMemo(()=>ja(l).map(ce=>ce.path),[l]),v=F.useMemo(()=>new Set(ja(l).filter(ce=>uf(ce.path)&&df(ce.patch).lines>0).map(ce=>ce.path)),[l]),_=F.useMemo(()=>a.map(ce=>`${ce.id}@${ce.path}:${ce.line}`).join("|"),[a]),T=F.useRef(null),N=F.useRef(y);N.current=y;const D=F.useRef(g);D.current=g;const[x,C]=F.useState([]),[I,A]=F.useState([]),[Q,V]=F.useState(null),[ie,H]=F.useState(null);F.useEffect(()=>{var Le,S;const ce=T.current;if(!ce)return;ce.innerHTML=m,pS(ce);const Se=new Map,he=[];ce.querySelectorAll(".d2h-file-wrapper").forEach((z,B)=>{var ve,Z,ye,Ne,Ge;const se=(Z=(ve=z.querySelector(".d2h-file-name"))==null?void 0:ve.textContent)==null?void 0:Z.trim(),pe=se&&b.includes(se)?se:b[B];if(se&&Se.set(se,z),pe){Se.set(pe,z),z.dataset.path=pe;const $e=document.createElement("div");if($e.className="file-comments",(ye=z.querySelector(".d2h-file-header"))==null||ye.after($e),he.push({path:pe,el:$e}),v.has(pe)){const Me=document.createElement("button");Me.type="button",Me.className="btn btn-sm md-read-toggle",Me.dataset.readPath=pe,Me.textContent="read as a document",Me.title="Render this markdown instead of showing it line by line",(Ne=z.querySelector(".d2h-file-header"))==null||Ne.appendChild(Me)}(Ge=z.querySelector(".d2h-file-header"))==null||Ge.appendChild(xN(pe))}}),xb(ce,D.current.viewed,D.current.peeked);const M=[],ee=new Map;for(const z of a){if(z.line==null)continue;const B=Se.get(z.path);if(!B)continue;const se=Array.from(B.querySelectorAll(".d2h-diff-tbody > tr")).find(ve=>{var Z,ye;return((ye=(Z=ve.querySelector(".line-num2"))==null?void 0:Z.textContent)==null?void 0:ye.trim())===String(z.line)});if(!se)continue;const pe=Tb(ee.get(se)??se,"inline-comment-row");ee.set(se,pe.tr),M.push({id:z.id,el:pe.holder})}C(M),A(he);const fe=z=>{var $e;const B=z.target,se=B.closest(".md-read-toggle");if(se!=null&&se.dataset.readPath){N.current(se.dataset.readPath);return}const pe=B.closest(".d2h-file-wrapper");if(B instanceof HTMLInputElement&&B.dataset.viewedPath){B.checked&&go(pe,(pe==null?void 0:pe.querySelector(".d2h-file-header"))??null),D.current.onToggleViewed(B.dataset.viewedPath);return}if(B.closest(".file-viewed"))return;const ve=($e=B.closest(".d2h-file-header"))==null?void 0:$e.closest(".file-viewed-on");if(ve!=null&&ve.dataset.path){go(pe,(pe==null?void 0:pe.querySelector(".d2h-file-header"))??null),D.current.onTogglePeek(ve.dataset.path);return}const Z=z.target.closest(".line-add");if(!Z)return;const{path:ye,line:Ne,side:Ge}=Z.dataset;!ye||!Ne||V({path:ye,line:Number(Ne),side:Ge==="old"?"old":"new"})};ce.addEventListener("click",fe);const we=()=>ce.removeEventListener("click",fe);if(s)return V(null),H(null),we;for(const z of ce.querySelectorAll(".d2h-file-wrapper")){const B=z.dataset.path;if(B)for(const se of z.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const pe=_b((Le=se.querySelector(".line-num1"))==null?void 0:Le.textContent,(S=se.querySelector(".line-num2"))==null?void 0:S.textContent);if(!pe)continue;const ve=document.createElement("button");ve.type="button",ve.className="line-add";const Z=`Say something about ${B}:${pe.line}`;ve.title=Z,ve.setAttribute("aria-label",Z),ve.tabIndex=-1,ve.dataset.path=B,ve.dataset.line=String(pe.line),ve.dataset.side=pe.side,se.appendChild(ve)}}return H(null),we},[m,_,b,v,s]);const R=b.filter(ce=>g.viewed.has(ce)).join(`
245
245
  `),q=b.filter(ce=>g.peeked.has(ce)).join(`
246
- `);F.useEffect(()=>{T.current&&Tb(T.current,g.viewed,g.peeked)},[R,q]),F.useEffect(()=>{const ce=T.current;if(!ce||!Q||s){H(null);return}const Se=Array.from(ce.querySelectorAll(".d2h-file-wrapper")).find(ee=>ee.dataset.path===Q.path),he=Array.from((Se==null?void 0:Se.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(ee=>{var Le,S;const fe=ee.querySelector(".d2h-code-linenumber"),we=Eb((Le=fe==null?void 0:fe.querySelector(".line-num1"))==null?void 0:Le.textContent,(S=fe==null?void 0:fe.querySelector(".line-num2"))==null?void 0:S.textContent);return(we==null?void 0:we.line)===Q.line&&we.side===Q.side});if(!he){V(null);return}const M=Nb(he,"line-composer-row");return H(M.holder),()=>M.tr.remove()},[Q,x,s]);const J=a.filter(ce=>!x.some(Se=>Se.id===ce.id)),K=I.map(ce=>({...ce,comments:J.filter(Se=>Se.path===ce.path)})).filter(ce=>ce.comments.length>0),me=J.filter(ce=>!I.some(Se=>Se.path===ce.path));return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"diff",ref:T}),x.map(({id:ce,el:Se})=>{const he=a.find(M=>M.id===ce);return he?Ou.createPortal(r(he),Se,ce):null}),K.map(({path:ce,el:Se,comments:he})=>Ou.createPortal(d.jsx(d.Fragment,{children:he.map(r)}),Se,`file:${ce}`)),Q&&ie&&Ou.createPortal(d.jsx(by,{pick:Q,chatBusy:u,onAdd:ce=>{f(Q,ce),V(null)},onAsk:ce=>{p(Q,ce),V(null)},onClose:()=>V(null)}),ie,`pick-${Q.path}-${Q.side}-${Q.line}`),me.map(ce=>r(ce))]})}function AN({block:l,path:a,changed:r,readOnly:s,onPick:u}){const f=F.useMemo(()=>of(l.raw),[l.raw]),p=`Say something about ${a}:${l.from}`;return d.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!s&&d.jsx("button",{type:"button",className:"md-block-add",title:p,"aria-label":p,tabIndex:-1,onClick:u,children:d.jsx(Ze,{name:"plus"})}),d.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:f}})]})}function RN({path:l,doc:a,comments:r,renderComment:s,readOnly:u,chatBusy:f,onAddLineComment:p,onAskAboutLine:y,onShowDiff:g,viewedState:m}){const[b,v]=F.useState(null),_=F.useRef(null),T=F.useRef(null),N=m.viewed.has(l),D=N&&!m.peeked.has(l),x=F.useMemo(()=>{const C=new Map,I=a.items.flatMap((Q,V)=>Q.kind==="block"?[{item:Q,i:V}]:[]),A=[];for(const Q of r){const V=Q.line==null?void 0:I.filter(ie=>ie.item.from<=Q.line).pop()??I[0];if(!V){A.push(Q);continue}C.set(V.i,[...C.get(V.i)??[],Q])}return{at:C,rest:A}},[a,r]);return d.jsxs("div",{className:"md-file",ref:_,children:[d.jsxs("div",{ref:T,className:`md-file-head${N?" md-file-head-viewed":""}${D?" md-file-head-folded":""}`,onClick:C=>{N&&!C.target.closest("button, label")&&(mo(_.current,T.current),m.onTogglePeek(l))},children:[d.jsx(Ze,{name:"file"}),d.jsx("span",{className:"md-file-name",children:l}),a.isNew?d.jsx("span",{className:"tag tag-added",children:"new file"}):d.jsx("span",{className:"faint",title:"A diff carries the lines around a change, not the file.",children:"the diff's lines only — what the PR removed isn't here"}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:g,title:"Back to the line-by-line diff",children:"show the diff"}),d.jsxs("label",{className:"file-viewed",title:"Mark as viewed — folds the file until its diff changes",children:[d.jsx("input",{type:"checkbox",checked:N,onChange:()=>{N||mo(_.current,T.current),m.onToggleViewed(l)}})," ","Viewed"]})]}),!D&&x.rest.length>0&&d.jsx("div",{className:"file-comments",children:x.rest.map(s)}),!D&&a.items.map((C,I)=>d.jsxs(F.Fragment,{children:[C.kind==="gap"?d.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",C.lines.toLocaleString()," line",C.lines===1?"":"s"," the diff skips"]}):d.jsx(AN,{block:C,path:l,changed:C.changed&&!a.isNew,readOnly:u,onPick:()=>v({path:l,line:C.from,side:"new"})}),(x.at.get(I)??[]).map(s),C.kind==="block"&&(b==null?void 0:b.line)===C.from&&d.jsx(by,{pick:b,chatBusy:f,onAdd:A=>{p(b,A),v(null)},onAsk:A=>{y(b,A),v(null)},onClose:()=>v(null)})]},I))]})}function kN({patch:l,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,viewedState:y}){const g=F.useMemo(()=>l.trim()?ja(l):[],[l]),m=F.useMemo(()=>new Map(g.filter(x=>cf(x.path)).map(x=>[x.path,uf(x.patch)]).filter(([,x])=>x.lines>0)),[g]),[b,v]=F.useState({}),_=x=>{var C;return b[x]??((C=m.get(x))==null?void 0:C.isNew)??!1},T=[];for(const x of g){const C=T[T.length-1];if(m.has(x.path)&&_(x.path)){T.push({kind:"read",paths:[x.path],patch:x.patch});continue}(C==null?void 0:C.kind)==="diff"?(C.paths.push(x.path),C.patch+=`
247
- ${x.patch}`):T.push({kind:"diff",paths:[x.path],patch:x.patch})}if(g.length===0)return d.jsx("p",{className:"muted",children:"No diff for this chapter."});const N=new Set(g.map(x=>x.path)),D=x=>a.filter(C=>x(C.path));return d.jsxs(d.Fragment,{children:[T.map(x=>{const C=new Set(x.paths);if(x.kind==="read"){const I=x.paths[0];return d.jsx(RN,{path:I,doc:m.get(I),comments:D(A=>A===I),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onShowDiff:()=>v(A=>({...A,[I]:!1})),viewedState:y},`read:${I}`)}return d.jsx(xN,{patch:x.patch,comments:D(I=>C.has(I)),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onRead:I=>v(A=>({...A,[I]:!0})),viewedState:y},`diff:${x.paths[0]}`)}),D(x=>!N.has(x)).map(r)]})}function ON({check:l,raised:a,held:r,replies:s}){if(!l)return null;const u=[r>0&&`${r} left out`,s>0&&`${s} as replies`].filter(Boolean),f=a>0?d.jsxs("div",{className:"warn",title:"Findings another reviewer already raised on the PR — each card says who, and what Send does with it.",children:[a," already raised",u.length>0?` · ${u.join(" · ")}`:""]}):null;return l.checkingSince?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"faint",children:"checking what others already raised…"})]}):l.error?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"warn",title:l.error,children:"couldn't check what others already raised"})]}):f||(l.remarks.length>0?d.jsx("div",{className:"faint",children:"none already raised by others"}):null)}function CN({comment:l,readOnly:a,onDecide:r}){var y;const s=l.alreadyRaised;if(!s)return null;const u=hN(l,a),f=s.where.kind==="thread",p=!a&&l.status!=="dropped";return d.jsxs("div",{className:"raised",children:[d.jsxs("div",{className:"raised-head",children:[d.jsxs("span",{className:"tag tag-raised",children:[d.jsx(Ze,{name:"comment"}),"already raised by @",s.by," · ",pN(s)]}),s.url&&d.jsxs("a",{href:s.url,target:"_blank",rel:"noreferrer",className:"faint",children:["see it on GitHub ",d.jsx(Ze,{name:"external"})]}),d.jsx("span",{className:"grow"}),p&&d.jsxs(d.Fragment,{children:[f&&d.jsx("button",{className:`btn btn-sm${s.decision==="reply"?" btn-keep-on":""}`,title:"Send posts this as a reply in their thread instead of a new comment — for when it adds something",onClick:()=>r(s.decision==="reply"?null:"reply"),children:"reply in their thread"}),d.jsx("button",{className:`btn btn-sm${s.decision==="send"?" btn-keep-on":""}`,title:"Send posts it as a comment of its own all the same",onClick:()=>r(s.decision==="send"?null:"send"),children:"send anyway"})]})]}),d.jsxs("p",{className:"raised-reason",children:[s.reason,u&&d.jsxs("span",{className:"raised-fate",children:[" — ",(y=s.replied)!=null&&y.url?d.jsx("a",{href:s.replied.url,target:"_blank",rel:"noreferrer",children:u}):u,"."]})]})]})}function yy({comment:l,onUpdate:a,onDelete:r,onDiscuss:s,readOnly:u,flash:f}){const[p,y]=F.useState(!1),[g,m]=F.useState(l.body),b=l.status==="approved",v=l.status==="dropped",_=l.origin==="user"?"yours":v?"dropped":b?"kept":"drafted";return d.jsxs("div",{id:`c-${l.id}`,className:`comment comment-${l.status}${f?" comment-flash":""}`,children:[d.jsxs("div",{className:"comment-head",children:[d.jsxs("span",{className:"comment-loc",children:[l.path,l.line!=null?`:${l.line}`:""]}),d.jsx("span",{className:`tag tag-${l.origin==="user"?"yours":_}`,children:_}),l.drifted?d.jsx("span",{className:"tag tag-drift",title:"The code this comment pointed at is gone from the diff, so it can't post inline.",children:"drifted — posts in the body"}):l.line==null&&d.jsx("span",{className:"tag tag-drift",title:"A comment with no line — either about the file as a whole, or on a line the PR removed, which GitHub can't take inline.",children:"on the file — posts in the body"}),!l.drifted&&l.originalLine!=null&&l.originalLine!==l.line&&d.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",l.originalLine]}),d.jsx("span",{className:"grow"}),!u&&(p?d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"btn btn-sm",onClick:()=>{a({body:g}),y(!1)},children:"save"}),d.jsx("button",{className:"btn btn-sm",onClick:()=>{m(l.body),y(!1)},children:"cancel"})]}):d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:`btn btn-sm${b?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>a({status:b?"draft":"approved"}),children:[d.jsx(Ze,{name:"check"}),"keep"]}),d.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[d.jsx(Ze,{name:"edit"}),"edit"]}),d.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>a({status:v?"draft":"dropped"}),children:[d.jsx(Ze,{name:"drop"}),v?"dropped":"drop"]}),s&&d.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:s,children:[d.jsx(Ze,{name:"comment"}),"discuss"]}),l.origin==="user"&&d.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),d.jsx(CN,{comment:l,readOnly:u,onDecide:T=>a({raisedDecision:T})}),p?d.jsxs(d.Fragment,{children:[d.jsx("textarea",{className:"comment-edit",value:g,onChange:T=>m(T.target.value),rows:Math.max(3,g.split(`
248
- `).length)}),d.jsx(Ys,{className:"comment-body",text:rg(g,l.severity??null)})]}):d.jsx(ni,{className:"comment-body prose",text:rg(l.body,l.severity??null)})]})}function MN({files:l,chapterId:a,onAdd:r}){const[s,u]=F.useState(!1),[f,p]=F.useState(l[0]??""),[y,g]=F.useState(""),[m,b]=F.useState("");return s?d.jsxs("div",{className:"add-comment",children:[d.jsxs("div",{className:"add-comment-row",children:[d.jsx("select",{value:f,onChange:v=>p(v.target.value),children:l.map(v=>d.jsx("option",{value:v,children:v},v))}),d.jsx("input",{placeholder:"line (optional)",value:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),d.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(v.target.value),rows:3}),d.jsx(Ys,{className:"comment-body",text:m}),d.jsxs("div",{className:"add-comment-row",children:[d.jsx("button",{className:"btn",disabled:!m.trim()||!f,onClick:()=>{r({path:f,line:y?Number(y):null,body:m.trim(),chapterId:a}),b(""),g(""),u(!1)},children:"add"}),d.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):d.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[d.jsx(Ze,{name:"plus"}),"add a comment of your own"]})}const DN=2e3;function LN({chapter:l,n:a,diff:r,comments:s,open:u,heavy:f,onToggle:p,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:_,readOnly:T,anchorRef:N,flash:D,viewedState:x,sticky:C,stuck:I}){const[A,Q]=F.useState(!1);F.useEffect(()=>{I||Q(!1)},[I]);const V=C&&I&&u,ie=F.useRef(null),H=F.useRef(null);F.useEffect(()=>{const M=ie.current,ee=H.current;if(!C||!M||!ee)return;const fe=()=>M.style.setProperty("--chapter-head-h",`${ee.offsetHeight}px`);fe();const we=new ResizeObserver(fe);return we.observe(ee),()=>{we.disconnect(),M.style.removeProperty("--chapter-head-h")}},[C]);const R=()=>{p(),V&&requestAnimationFrame(()=>{var M;return(M=ie.current)==null?void 0:M.scrollIntoView({block:"start"})})},q=F.useMemo(()=>N_(r,l.files),[r,l.files]),J=l.files.filter(M=>x.viewed.has(M)).length,K=F.useMemo(()=>hy(q,s),[q,s]),me=F.useMemo(()=>new Set(ja(q).map(M=>M.path)),[q]),ce=s.filter(M=>!K.includes(M)&&!me.has(M.path)),Se=s.filter(M=>K.includes(M)||me.has(M.path)),he=M=>d.jsx(yy,{comment:M,onUpdate:ee=>y(M.id,ee),onDelete:()=>g(M.id),onDiscuss:b&&(()=>b({target:"comment",id:M.id})),readOnly:T,flash:D===M.id},M.id);return d.jsxs("section",{className:`chapter${C?" chapter-sticky":""}`,ref:M=>{ie.current=M,N(M)},children:[d.jsxs("header",{ref:H,className:`chapter-head${C?" chapter-head-sticky":""}${V?" chapter-head-stuck":""}`,onClick:R,children:[d.jsx("span",{className:"faint",children:u?"▾":"▸"}),d.jsxs("h3",{children:[a," · ",l.title]}),d.jsxs("span",{className:"faint chapter-meta",children:[l.files.length," file",l.files.length===1?"":"s",s.length>0?` · ${s.length} comment${s.length===1?"":"s"}`:" · no comments",J>0&&` · ${J}/${l.files.length} viewed`,f!=null&&!u&&d.jsx("span",{title:"Drawing this many lines at once would leave the page too slow to scroll. Open it if you want it — nothing else on the page is affected.",children:` · ${f.toLocaleString()} lines to draw, folded to keep the page quick`})]}),d.jsx("span",{className:"grow"}),C&&u&&d.jsx("button",{className:`btn btn-sm${V?"":" chapter-about-idle"}`,"aria-expanded":A,onClick:M=>{M.stopPropagation(),Q(ee=>!ee)},children:A?"hide explanation":"what this chapter is about"}),b&&d.jsxs("button",{className:"btn btn-sm",onClick:M=>{M.stopPropagation(),b({target:"chapter",id:l.id})},children:[d.jsx(Ze,{name:"comment"}),"discuss"]}),V&&A&&d.jsx("div",{className:"chapter-head-about",onClick:M=>M.stopPropagation(),children:d.jsx(ni,{className:"prose",text:l.explanation})})]}),u&&d.jsxs("div",{className:"chapter-body",children:[d.jsx(ni,{className:"prose chapter-explanation",text:l.explanation}),ce.map(he),d.jsx(kN,{patch:q,comments:Se,renderComment:he,readOnly:T,chatBusy:_,onAddLineComment:(M,ee)=>m({path:M.path,line:M.side==="new"?M.line:null,body:ee,chapterId:l.id}),onAskAboutLine:v,viewedState:x}),!T&&l.files.length>0&&d.jsx(MN,{files:l.files,chapterId:l.id,onAdd:m})]})]})}function zN(l,a){switch(l.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${l.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=a.chapters.find(s=>s.id===l.chapterId);return`rewrote the "${(r==null?void 0:r.title)??l.chapterId}" chapter`}case"comment-edit":{const r=a.comments.find(s=>s.id===l.commentId);return r?`rewrote the comment on ${r.path}:${r.line??"file"}`:"rewrote a comment"}case"comment-drop":{const r=a.comments.find(s=>s.id===l.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${l.path}:${l.line??"file"}`}}function Hd(l,a){var s;if(l.target==="summary")return"the summary";if(l.target==="verdict")return"the verdict";if(l.target==="chapter")return((s=a.chapters.find(u=>u.id===l.id))==null?void 0:s.title)??"a chapter";if(l.target==="line")return l.path==null||l.line==null?"a line of the diff":`${l.path}:${l.line}${l.side==="old"?" (removed)":""}`;const r=a.comments.find(u=>u.id===l.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function jN({turn:l,artifact:a}){return d.jsxs("div",{className:`chat-turn chat-turn-${l.role}`,children:[d.jsx("div",{className:"chat-turn-who",children:l.role==="user"?l.steer?"You, while it worked":"You":"Reviewer"}),l.refs.length>0&&d.jsx("div",{className:"chat-refs",children:l.refs.map((r,s)=>d.jsx("span",{className:"chat-ref",children:Hd(r,a)},s))}),d.jsx(ni,{className:"chat-turn-body prose",text:l.body}),l.revisions.map((r,s)=>d.jsxs("div",{className:"chat-revision",children:["↳ ",zN(r,a)]},s)),l.refused.map((r,s)=>d.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},s))]})}function UN({artifact:l,reviewKey:a,refs:r,onClearRefs:s,onDropRef:u,onArtifact:f,readOnly:p,inputRef:y,anchorRef:g}){const[m,b]=F.useState(""),[v,_]=F.useState(!1),[T,N]=F.useState(null),[D]=my(),x=l.chat??[],C=l.pendingChat??null,I=C!=null&&C.error==null,A=v||I,Q=(H,R,q)=>{!H||A||(_(!0),N(null),Rd(a,{message:H,refs:R}).then(J=>{f(J),q==null||q()}).catch(J=>N(String(J.message??J))).finally(()=>_(!1)))},V=H=>{_(!0),N(null),o0(a,H).then(R=>{var q;f(R),b(""),(q=y.current)==null||q.focus()}).catch(R=>N(String(R.message??R))).finally(()=>_(!1))},ie=()=>{const H=m.trim();if(!(!H||v)){if(I)return V(H);Q(H,r,()=>{var R;b(""),s(),(R=y.current)==null||R.focus()})}};return d.jsxs("section",{className:"card chat-panel",ref:g,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"talk to the reviewer"}),d.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),d.jsxs("div",{className:"card-body",children:[(x.length>0||C)&&d.jsxs("div",{className:"chat-log",children:[x.map(H=>d.jsx(jN,{turn:H,artifact:l},H.id)),C&&d.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[d.jsx("div",{className:"chat-turn-who",children:"You"}),C.refs.length>0&&d.jsx("div",{className:"chat-refs",children:C.refs.map((H,R)=>d.jsx("span",{className:"chat-ref",children:Hd(H,l)},R))}),d.jsx(ni,{className:"chat-turn-body prose",text:C.message}),(C.steers??[]).map((H,R)=>d.jsxs("div",{className:"chat-steer",children:[d.jsx("div",{className:"chat-turn-who",children:"You, while it worked"}),d.jsx(ni,{className:"chat-turn-body prose",text:H})]},R)),C.error?d.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",C.error,!p&&d.jsxs(d.Fragment,{children:[" ",d.jsx("button",{className:"btn btn-sm",onClick:()=>Q([C.message,...C.steers??[]].join(`
246
+ `);F.useEffect(()=>{T.current&&xb(T.current,g.viewed,g.peeked)},[R,q]),F.useEffect(()=>{const ce=T.current;if(!ce||!Q||s){H(null);return}const Se=Array.from(ce.querySelectorAll(".d2h-file-wrapper")).find(ee=>ee.dataset.path===Q.path),he=Array.from((Se==null?void 0:Se.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(ee=>{var Le,S;const fe=ee.querySelector(".d2h-code-linenumber"),we=_b((Le=fe==null?void 0:fe.querySelector(".line-num1"))==null?void 0:Le.textContent,(S=fe==null?void 0:fe.querySelector(".line-num2"))==null?void 0:S.textContent);return(we==null?void 0:we.line)===Q.line&&we.side===Q.side});if(!he){V(null);return}const M=Tb(he,"line-composer-row");return H(M.holder),()=>M.tr.remove()},[Q,x,s]);const J=a.filter(ce=>!x.some(Se=>Se.id===ce.id)),K=I.map(ce=>({...ce,comments:J.filter(Se=>Se.path===ce.path)})).filter(ce=>ce.comments.length>0),me=J.filter(ce=>!I.some(Se=>Se.path===ce.path));return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"diff",ref:T}),x.map(({id:ce,el:Se})=>{const he=a.find(M=>M.id===ce);return he?Cu.createPortal(r(he),Se,ce):null}),K.map(({path:ce,el:Se,comments:he})=>Cu.createPortal(d.jsx(d.Fragment,{children:he.map(r)}),Se,`file:${ce}`)),Q&&ie&&Cu.createPortal(d.jsx(yy,{pick:Q,chatBusy:u,onAdd:ce=>{f(Q,ce),V(null)},onAsk:ce=>{p(Q,ce),V(null)},onClose:()=>V(null)}),ie,`pick-${Q.path}-${Q.side}-${Q.line}`),me.map(ce=>r(ce))]})}function RN({block:l,path:a,changed:r,readOnly:s,onPick:u}){const f=F.useMemo(()=>cf(l.raw),[l.raw]),p=`Say something about ${a}:${l.from}`;return d.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!s&&d.jsx("button",{type:"button",className:"md-block-add",title:p,"aria-label":p,tabIndex:-1,onClick:u,children:d.jsx(Ze,{name:"plus"})}),d.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:f}})]})}function kN({path:l,doc:a,comments:r,renderComment:s,readOnly:u,chatBusy:f,onAddLineComment:p,onAskAboutLine:y,onShowDiff:g,viewedState:m}){const[b,v]=F.useState(null),_=F.useRef(null),T=F.useRef(null),N=m.viewed.has(l),D=N&&!m.peeked.has(l),x=F.useMemo(()=>{const C=new Map,I=a.items.flatMap((Q,V)=>Q.kind==="block"?[{item:Q,i:V}]:[]),A=[];for(const Q of r){const V=Q.line==null?void 0:I.filter(ie=>ie.item.from<=Q.line).pop()??I[0];if(!V){A.push(Q);continue}C.set(V.i,[...C.get(V.i)??[],Q])}return{at:C,rest:A}},[a,r]);return d.jsxs("div",{className:"md-file",ref:_,children:[d.jsxs("div",{ref:T,className:`md-file-head${N?" md-file-head-viewed":""}${D?" md-file-head-folded":""}`,onClick:C=>{N&&!C.target.closest("button, label")&&(go(_.current,T.current),m.onTogglePeek(l))},children:[d.jsx(Ze,{name:"file"}),d.jsx("span",{className:"md-file-name",children:l}),a.isNew?d.jsx("span",{className:"tag tag-added",children:"new file"}):d.jsx("span",{className:"faint",title:"A diff carries the lines around a change, not the file.",children:"the diff's lines only — what the PR removed isn't here"}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:g,title:"Back to the line-by-line diff",children:"show the diff"}),d.jsxs("label",{className:"file-viewed",title:"Mark as viewed — folds the file until its diff changes",children:[d.jsx("input",{type:"checkbox",checked:N,onChange:()=>{N||go(_.current,T.current),m.onToggleViewed(l)}})," ","Viewed"]})]}),!D&&x.rest.length>0&&d.jsx("div",{className:"file-comments",children:x.rest.map(s)}),!D&&a.items.map((C,I)=>d.jsxs(F.Fragment,{children:[C.kind==="gap"?d.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",C.lines.toLocaleString()," line",C.lines===1?"":"s"," the diff skips"]}):d.jsx(RN,{block:C,path:l,changed:C.changed&&!a.isNew,readOnly:u,onPick:()=>v({path:l,line:C.from,side:"new"})}),(x.at.get(I)??[]).map(s),C.kind==="block"&&(b==null?void 0:b.line)===C.from&&d.jsx(yy,{pick:b,chatBusy:f,onAdd:A=>{p(b,A),v(null)},onAsk:A=>{y(b,A),v(null)},onClose:()=>v(null)})]},I))]})}function ON({patch:l,comments:a,renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,viewedState:y}){const g=F.useMemo(()=>l.trim()?ja(l):[],[l]),m=F.useMemo(()=>new Map(g.filter(x=>uf(x.path)).map(x=>[x.path,df(x.patch)]).filter(([,x])=>x.lines>0)),[g]),[b,v]=F.useState({}),_=x=>{var C;return b[x]??((C=m.get(x))==null?void 0:C.isNew)??!1},T=[];for(const x of g){const C=T[T.length-1];if(m.has(x.path)&&_(x.path)){T.push({kind:"read",paths:[x.path],patch:x.patch});continue}(C==null?void 0:C.kind)==="diff"?(C.paths.push(x.path),C.patch+=`
247
+ ${x.patch}`):T.push({kind:"diff",paths:[x.path],patch:x.patch})}if(g.length===0)return d.jsx("p",{className:"muted",children:"No diff for this chapter."});const N=new Set(g.map(x=>x.path)),D=x=>a.filter(C=>x(C.path));return d.jsxs(d.Fragment,{children:[T.map(x=>{const C=new Set(x.paths);if(x.kind==="read"){const I=x.paths[0];return d.jsx(kN,{path:I,doc:m.get(I),comments:D(A=>A===I),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onShowDiff:()=>v(A=>({...A,[I]:!1})),viewedState:y},`read:${I}`)}return d.jsx(AN,{patch:x.patch,comments:D(I=>C.has(I)),renderComment:r,readOnly:s,chatBusy:u,onAddLineComment:f,onAskAboutLine:p,onRead:I=>v(A=>({...A,[I]:!0})),viewedState:y},`diff:${x.paths[0]}`)}),D(x=>!N.has(x)).map(r)]})}function CN({check:l,raised:a,held:r,replies:s}){if(!l)return null;const u=[r>0&&`${r} left out`,s>0&&`${s} as replies`].filter(Boolean),f=a>0?d.jsxs("div",{className:"warn",title:"Findings another reviewer already raised on the PR — each card says who, and what Send does with it.",children:[a," already raised",u.length>0?` · ${u.join(" · ")}`:""]}):null;return l.checkingSince?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"faint",children:"checking what others already raised…"})]}):l.error?d.jsxs(d.Fragment,{children:[f,d.jsx("div",{className:"warn",title:l.error,children:"couldn't check what others already raised"})]}):f||(l.remarks.length>0?d.jsx("div",{className:"faint",children:"none already raised by others"}):null)}function MN({comment:l,readOnly:a,onDecide:r}){var y;const s=l.alreadyRaised;if(!s)return null;const u=pN(l,a),f=s.where.kind==="thread",p=!a&&l.status!=="dropped";return d.jsxs("div",{className:"raised",children:[d.jsxs("div",{className:"raised-head",children:[d.jsxs("span",{className:"tag tag-raised",children:[d.jsx(Ze,{name:"comment"}),"already raised by @",s.by," · ",mN(s)]}),s.url&&d.jsxs("a",{href:s.url,target:"_blank",rel:"noreferrer",className:"faint",children:["see it on GitHub ",d.jsx(Ze,{name:"external"})]}),d.jsx("span",{className:"grow"}),p&&d.jsxs(d.Fragment,{children:[f&&d.jsx("button",{className:`btn btn-sm${s.decision==="reply"?" btn-keep-on":""}`,title:"Send posts this as a reply in their thread instead of a new comment — for when it adds something",onClick:()=>r(s.decision==="reply"?null:"reply"),children:"reply in their thread"}),d.jsx("button",{className:`btn btn-sm${s.decision==="send"?" btn-keep-on":""}`,title:"Send posts it as a comment of its own all the same",onClick:()=>r(s.decision==="send"?null:"send"),children:"send anyway"})]})]}),d.jsxs("p",{className:"raised-reason",children:[s.reason,u&&d.jsxs("span",{className:"raised-fate",children:[" — ",(y=s.replied)!=null&&y.url?d.jsx("a",{href:s.replied.url,target:"_blank",rel:"noreferrer",children:u}):u,"."]})]})]})}function vy({comment:l,onUpdate:a,onDelete:r,onDiscuss:s,readOnly:u,flash:f}){const[p,y]=F.useState(!1),[g,m]=F.useState(l.body),b=l.status==="approved",v=l.status==="dropped",_=l.origin==="user"?"yours":v?"dropped":b?"kept":"drafted";return d.jsxs("div",{id:`c-${l.id}`,className:`comment comment-${l.status}${f?" comment-flash":""}`,children:[d.jsxs("div",{className:"comment-head",children:[d.jsxs("span",{className:"comment-loc",children:[l.path,l.line!=null?`:${l.line}`:""]}),d.jsx("span",{className:`tag tag-${l.origin==="user"?"yours":_}`,children:_}),l.drifted?d.jsx("span",{className:"tag tag-drift",title:"The code this comment pointed at is gone from the diff, so it can't post inline.",children:"drifted — posts in the body"}):l.line==null&&d.jsx("span",{className:"tag tag-drift",title:"A comment with no line — either about the file as a whole, or on a line the PR removed, which GitHub can't take inline.",children:"on the file — posts in the body"}),!l.drifted&&l.originalLine!=null&&l.originalLine!==l.line&&d.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",l.originalLine]}),d.jsx("span",{className:"grow"}),!u&&(p?d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"btn btn-sm",onClick:()=>{a({body:g}),y(!1)},children:"save"}),d.jsx("button",{className:"btn btn-sm",onClick:()=>{m(l.body),y(!1)},children:"cancel"})]}):d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:`btn btn-sm${b?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>a({status:b?"draft":"approved"}),children:[d.jsx(Ze,{name:"check"}),"keep"]}),d.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[d.jsx(Ze,{name:"edit"}),"edit"]}),d.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>a({status:v?"draft":"dropped"}),children:[d.jsx(Ze,{name:"drop"}),v?"dropped":"drop"]}),s&&d.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:s,children:[d.jsx(Ze,{name:"comment"}),"discuss"]}),l.origin==="user"&&d.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),d.jsx(MN,{comment:l,readOnly:u,onDecide:T=>a({raisedDecision:T})}),p?d.jsxs(d.Fragment,{children:[d.jsx("textarea",{className:"comment-edit",value:g,onChange:T=>m(T.target.value),rows:Math.max(3,g.split(`
248
+ `).length)}),d.jsx(Fs,{className:"comment-body",text:og(g,l.severity??null)})]}):d.jsx(ni,{className:"comment-body prose",text:og(l.body,l.severity??null)})]})}function DN({files:l,chapterId:a,onAdd:r}){const[s,u]=F.useState(!1),[f,p]=F.useState(l[0]??""),[y,g]=F.useState(""),[m,b]=F.useState("");return s?d.jsxs("div",{className:"add-comment",children:[d.jsxs("div",{className:"add-comment-row",children:[d.jsx("select",{value:f,onChange:v=>p(v.target.value),children:l.map(v=>d.jsx("option",{value:v,children:v},v))}),d.jsx("input",{placeholder:"line (optional)",value:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),d.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(v.target.value),rows:3}),d.jsx(Fs,{className:"comment-body",text:m}),d.jsxs("div",{className:"add-comment-row",children:[d.jsx("button",{className:"btn",disabled:!m.trim()||!f,onClick:()=>{r({path:f,line:y?Number(y):null,body:m.trim(),chapterId:a}),b(""),g(""),u(!1)},children:"add"}),d.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):d.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[d.jsx(Ze,{name:"plus"}),"add a comment of your own"]})}const LN=2e3;function zN({chapter:l,n:a,diff:r,comments:s,open:u,heavy:f,onToggle:p,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:_,readOnly:T,anchorRef:N,flash:D,viewedState:x,sticky:C,stuck:I}){const[A,Q]=F.useState(!1);F.useEffect(()=>{I||Q(!1)},[I]);const V=C&&I&&u,ie=F.useRef(null),H=F.useRef(null);F.useEffect(()=>{const M=ie.current,ee=H.current;if(!C||!M||!ee)return;const fe=()=>M.style.setProperty("--chapter-head-h",`${ee.offsetHeight}px`);fe();const we=new ResizeObserver(fe);return we.observe(ee),()=>{we.disconnect(),M.style.removeProperty("--chapter-head-h")}},[C]);const R=()=>{p(),V&&requestAnimationFrame(()=>{var M;return(M=ie.current)==null?void 0:M.scrollIntoView({block:"start"})})},q=F.useMemo(()=>T_(r,l.files),[r,l.files]),J=l.files.filter(M=>x.viewed.has(M)).length,K=F.useMemo(()=>py(q,s),[q,s]),me=F.useMemo(()=>new Set(ja(q).map(M=>M.path)),[q]),ce=s.filter(M=>!K.includes(M)&&!me.has(M.path)),Se=s.filter(M=>K.includes(M)||me.has(M.path)),he=M=>d.jsx(vy,{comment:M,onUpdate:ee=>y(M.id,ee),onDelete:()=>g(M.id),onDiscuss:b&&(()=>b({target:"comment",id:M.id})),readOnly:T,flash:D===M.id},M.id);return d.jsxs("section",{className:`chapter${C?" chapter-sticky":""}`,ref:M=>{ie.current=M,N(M)},children:[d.jsxs("header",{ref:H,className:`chapter-head${C?" chapter-head-sticky":""}${V?" chapter-head-stuck":""}`,onClick:R,children:[d.jsx("span",{className:"faint",children:u?"▾":"▸"}),d.jsxs("h3",{children:[a," · ",l.title]}),d.jsxs("span",{className:"faint chapter-meta",children:[l.files.length," file",l.files.length===1?"":"s",s.length>0?` · ${s.length} comment${s.length===1?"":"s"}`:" · no comments",J>0&&` · ${J}/${l.files.length} viewed`,f!=null&&!u&&d.jsx("span",{title:"Drawing this many lines at once would leave the page too slow to scroll. Open it if you want it — nothing else on the page is affected.",children:` · ${f.toLocaleString()} lines to draw, folded to keep the page quick`})]}),d.jsx("span",{className:"grow"}),C&&u&&d.jsx("button",{className:`btn btn-sm${V?"":" chapter-about-idle"}`,"aria-expanded":A,onClick:M=>{M.stopPropagation(),Q(ee=>!ee)},children:A?"hide explanation":"what this chapter is about"}),b&&d.jsxs("button",{className:"btn btn-sm",onClick:M=>{M.stopPropagation(),b({target:"chapter",id:l.id})},children:[d.jsx(Ze,{name:"comment"}),"discuss"]}),V&&A&&d.jsx("div",{className:"chapter-head-about",onClick:M=>M.stopPropagation(),children:d.jsx(ni,{className:"prose",text:l.explanation})})]}),u&&d.jsxs("div",{className:"chapter-body",children:[d.jsx(ni,{className:"prose chapter-explanation",text:l.explanation}),ce.map(he),d.jsx(ON,{patch:q,comments:Se,renderComment:he,readOnly:T,chatBusy:_,onAddLineComment:(M,ee)=>m({path:M.path,line:M.side==="new"?M.line:null,body:ee,chapterId:l.id}),onAskAboutLine:v,viewedState:x}),!T&&l.files.length>0&&d.jsx(DN,{files:l.files,chapterId:l.id,onAdd:m})]})]})}function jN(l,a){switch(l.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${l.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=a.chapters.find(s=>s.id===l.chapterId);return`rewrote the "${(r==null?void 0:r.title)??l.chapterId}" chapter`}case"comment-edit":{const r=a.comments.find(s=>s.id===l.commentId);return r?`rewrote the comment on ${r.path}:${r.line??"file"}`:"rewrote a comment"}case"comment-drop":{const r=a.comments.find(s=>s.id===l.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${l.path}:${l.line??"file"}`}}function qd(l,a){var s;if(l.target==="summary")return"the summary";if(l.target==="verdict")return"the verdict";if(l.target==="chapter")return((s=a.chapters.find(u=>u.id===l.id))==null?void 0:s.title)??"a chapter";if(l.target==="line")return l.path==null||l.line==null?"a line of the diff":`${l.path}:${l.line}${l.side==="old"?" (removed)":""}`;const r=a.comments.find(u=>u.id===l.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function UN({turn:l,artifact:a}){return d.jsxs("div",{className:`chat-turn chat-turn-${l.role}`,children:[d.jsx("div",{className:"chat-turn-who",children:l.role==="user"?l.steer?"You, while it worked":"You":"Reviewer"}),l.refs.length>0&&d.jsx("div",{className:"chat-refs",children:l.refs.map((r,s)=>d.jsx("span",{className:"chat-ref",children:qd(r,a)},s))}),d.jsx(ni,{className:"chat-turn-body prose",text:l.body}),l.revisions.map((r,s)=>d.jsxs("div",{className:"chat-revision",children:["↳ ",jN(r,a)]},s)),l.refused.map((r,s)=>d.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},s))]})}function BN({artifact:l,reviewKey:a,refs:r,onClearRefs:s,onDropRef:u,onArtifact:f,readOnly:p,inputRef:y,anchorRef:g}){const[m,b]=F.useState(""),[v,_]=F.useState(!1),[T,N]=F.useState(null),[D]=gy(),x=l.chat??[],C=l.pendingChat??null,I=C!=null&&C.error==null,A=v||I,Q=(H,R,q)=>{!H||A||(_(!0),N(null),kd(a,{message:H,refs:R}).then(J=>{f(J),q==null||q()}).catch(J=>N(String(J.message??J))).finally(()=>_(!1)))},V=H=>{_(!0),N(null),c0(a,H).then(R=>{var q;f(R),b(""),(q=y.current)==null||q.focus()}).catch(R=>N(String(R.message??R))).finally(()=>_(!1))},ie=()=>{const H=m.trim();if(!(!H||v)){if(I)return V(H);Q(H,r,()=>{var R;b(""),s(),(R=y.current)==null||R.focus()})}};return d.jsxs("section",{className:"card chat-panel",ref:g,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"talk to the reviewer"}),d.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),d.jsxs("div",{className:"card-body",children:[(x.length>0||C)&&d.jsxs("div",{className:"chat-log",children:[x.map(H=>d.jsx(UN,{turn:H,artifact:l},H.id)),C&&d.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[d.jsx("div",{className:"chat-turn-who",children:"You"}),C.refs.length>0&&d.jsx("div",{className:"chat-refs",children:C.refs.map((H,R)=>d.jsx("span",{className:"chat-ref",children:qd(H,l)},R))}),d.jsx(ni,{className:"chat-turn-body prose",text:C.message}),(C.steers??[]).map((H,R)=>d.jsxs("div",{className:"chat-steer",children:[d.jsx("div",{className:"chat-turn-who",children:"You, while it worked"}),d.jsx(ni,{className:"chat-turn-body prose",text:H})]},R)),C.error?d.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",C.error,!p&&d.jsxs(d.Fragment,{children:[" ",d.jsx("button",{className:"btn btn-sm",onClick:()=>Q([C.message,...C.steers??[]].join(`
249
249
 
250
- `),C.refs),children:"ask again"})," ",d.jsx("button",{className:"btn btn-sm",onClick:()=>c0(a).then(f).catch(H=>N(String(H.message??H))),children:"dismiss"})]})]}):d.jsx("div",{className:"chat-waiting",children:C.progress.length>0?d.jsx("ol",{className:"chat-progress",children:C.progress.map((H,R)=>d.jsx("li",{className:R===C.progress.length-1?"now":void 0,children:H},R))}):"Thinking… it re-reads the code before answering."})]})]}),p?d.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):d.jsxs(d.Fragment,{children:[r.length>0&&d.jsxs("div",{className:"chat-refs chat-refs-pending",children:[d.jsx("span",{className:"faint",children:"about:"}),r.map((H,R)=>d.jsxs("button",{className:"chat-ref",onClick:()=>u(R),title:"Remove",children:[Hd(H,l)," ✕"]},R))]}),d.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,readOnly:v,placeholder:I?"steer it — it reads this before its next step":x.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:H=>b(H.target.value),title:D==="enter"?"Enter sends · Shift+Enter for a new line":"⌘↵ sends · Enter for a new line",onKeyDown:H=>{vN(D,{...H,isComposing:H.nativeEvent.isComposing})&&(H.preventDefault(),ie())}}),d.jsx(Ys,{className:"chat-turn-body",text:m}),d.jsxs("div",{className:"chat-actions",children:[d.jsxs("button",{className:"btn btn-dark",onClick:ie,disabled:v||m.trim()==="",title:I?"Add this to the turn it's working on":void 0,children:[d.jsx(Ze,{name:"send"}),v?"sending…":I?"steer":"send message",d.jsx(za,{children:D==="enter"?"↵":"⌘↵"})]}),d.jsx("span",{className:"grow"}),l.preChat&&d.jsx("button",{className:"btn btn-sm",disabled:A,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),u0(a).then(f).catch(H=>N(String(H.message??H))).finally(()=>_(!1))},children:"reset the review"})]})]}),T&&d.jsx("div",{className:"error",children:T})]})]})}function vy(l){const a=F.useRef(null),r=F.useCallback(()=>{const s=a.current;s&&(s.style.height="auto",s.style.height=`${Math.min(s.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return F.useEffect(r,[l,r]),F.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),a}function BN({initial:l,onSave:a,onCancel:r}){const[s,u]=F.useState(l),[f,p]=F.useState(!1),[y,g]=F.useState(null),m=vy(s),b=()=>{f||(p(!0),g(null),a(s).catch(v=>{g(String((v==null?void 0:v.message)??v)),p(!1)}))};return d.jsxs("div",{className:"body-edit-wrap",children:[d.jsx("textarea",{ref:m,className:"body-edit",autoFocus:!0,value:s,onChange:v=>u(v.target.value),rows:10,onKeyDown:v=>{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),b()),v.key==="Escape"&&!f&&r()}}),d.jsx(Ys,{className:"body-md",text:s}),y&&d.jsx("p",{className:"error",children:y}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:f,children:[f?"saving…":"save this body",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:r,disabled:f,children:"cancel"}),d.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const IN=l=>l?`@${l} — handing this review over to you.`:"";function HN({artifact:l,reviewKey:a,onConfirm:r,onCancel:s}){const[u]=F.useState(Qb),[f,p]=F.useState(""),[y,g]=F.useState(""),[m,b]=F.useState(!1),[v,_]=F.useState(!1),[T,N]=F.useState(null),[D,x]=F.useState(null),[C,I]=F.useState(null),[A,Q]=F.useState(!1),[V,ie]=F.useState(null),[H,R]=F.useState(null),[q,J]=F.useState(!1),[K,me]=F.useState(-1),ce=vy(y),Se=F.useRef(null),he=kd(f),M=Vb(he),ee=l.summary!==""||l.comments.length>0,fe=!_b(l)&&ee,we=_b(l)&&l.sent==null&&ee,Le=A?JSON.stringify([l.bodyOverride,l.summary,l.chapters.map(Z=>[Z.title,Z.explanation]),l.comments.map(Z=>{var ye,Ne;return[Z.path,Z.line,Z.body,Z.severity,Z.status,Z.drifted,(ye=Z.alreadyRaised)==null?void 0:ye.decision,(Ne=Z.alreadyRaised)==null?void 0:Ne.where]})]):"";F.useEffect(()=>{if(!A)return;let Z=!1;return R(null),ie(null),Kb(a,"COMMENT").then(ye=>!Z&&ie(ye)).catch(ye=>{Z||(ie(null),R(String((ye==null?void 0:ye.message)??ye)))}),()=>{Z=!0}},[A,a,Le]);const S=!A||V!=null;F.useEffect(()=>{var Z;K<0||(Z=document.getElementById(`handoff-option-${K}`))==null||Z.scrollIntoView({block:"nearest"})},[K]);const z=F.useMemo(()=>_0(D??[],u),[D,u]),B=F.useMemo(()=>S0(z,f),[z,f]);F.useEffect(()=>{let Z=!1;return h0(a).then(ye=>!Z&&x(ye.logins)).catch(ye=>!Z&&I(String((ye==null?void 0:ye.message)??ye))),()=>{Z=!0}},[a]);const se=Z=>{p(Z),m||g(IN(kd(Z)))},pe=Z=>{se(Z),J(!1),me(-1)};F.useLayoutEffect(()=>{var Z;(Z=Se.current)==null||Z.showModal()},[]);const ve=()=>{v||!M||!S||(_(!0),N(null),r(he,y.trim(),A).catch(Z=>{N(String((Z==null?void 0:Z.message)??Z)),_(!1)}))};return d.jsx("dialog",{className:"handoff-dialog",ref:Se,"aria-label":`Hand off ${l.id}`,onCancel:Z=>{Z.preventDefault(),v||s()},onClick:Z=>{Z.target===Se.current&&!v&&s()},children:d.jsxs("div",{className:"handoff-body",children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"hand off"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:l.id})]}),d.jsxs("div",{className:"handoff-who",children:[d.jsx("span",{className:"handoff-at",children:"@"}),d.jsxs("div",{className:"handoff-combo",children:[d.jsx("input",{className:"handoff-login",autoFocus:!0,value:f,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":q&&B.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":K>=0?`handoff-option-${K}`:void 0,onFocus:()=>J(!0),onBlur:()=>J(!1),onChange:Z=>{se(Z.target.value),J(!0),me(0)},onKeyDown:Z=>{const ye=q&&B.length>0;if(Z.key==="ArrowDown"||Z.key==="ArrowUp"){if(Z.preventDefault(),!ye)return J(!0);const Ne=Z.key==="ArrowDown"?1:-1;me(Ge=>(Ge+Ne+B.length)%B.length);return}if(Z.key==="Enter"){const Ne=ye&&K>=0?B[K]:void 0;Ne&&Ne.login.toLowerCase()!==he.toLowerCase()?pe(Ne.login):ve();return}Z.key==="Escape"&&ye&&(Z.preventDefault(),J(!1),me(-1))}}),q&&B.length>0&&d.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:B.map((Z,ye)=>d.jsxs("li",{id:`handoff-option-${ye}`,role:"option","aria-selected":ye===K,className:ye===K?"on":void 0,onMouseEnter:()=>me(ye),onMouseDown:Ne=>{Ne.preventDefault(),pe(Z.login)},children:[d.jsxs("span",{className:"handoff-option-login",children:["@",Z.login]}),Z.recent&&d.jsx("span",{className:"faint",children:"handed to before"})]},Z.login))})]})]}),C&&d.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),d.jsx("textarea",{ref:ce,className:"body-edit",rows:2,value:y,onChange:Z=>{b(!0),g(Z.target.value)},onKeyDown:Z=>{Z.key==="Enter"&&(Z.metaKey||Z.ctrlKey)&&(Z.preventDefault(),ve())}}),d.jsxs("div",{className:"body-source",children:[d.jsx("span",{className:"faint",children:y.trim()?"goes on the PR as a plain comment, not a review":"nothing will be posted — only the review request moves"}),y.trim()!==""&&d.jsx("button",{className:"link",onClick:()=>{b(!0),g("")},disabled:v,children:"post no note"})]}),we&&d.jsx("p",{className:"faint handoff-says",children:"You already reviewed this PR, so this draft can't ride along — a handoff that carried it would be your second review. Send it yourself if that is what you mean."}),fe&&d.jsxs("div",{className:"handoff-with-review",children:[d.jsxs("label",{children:[d.jsx("input",{type:"checkbox",checked:A,disabled:v,onChange:Z=>Q(Z.target.checked)}),d.jsxs("span",{children:["also post the review — ",d.jsx("span",{className:"faint",children:Bd(l)})]})]}),A&&d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"faint",children:["Posts as a ",d.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",M?he:"them","'s to make. The findings keep their grades."]}),H?d.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",H]}):V?d.jsx("pre",{className:"body-preview",children:V.body}):d.jsx("p",{className:"faint",children:"building the body…"})]})]}),T&&d.jsx("p",{className:"error",children:T}),d.jsxs("p",{className:"faint handoff-says",children:[M?d.jsxs(d.Fragment,{children:["@",he]}):"They"," will be asked for this review and you will be taken off it."," ",A?"This row goes under sent, with the review on the PR.":l.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:ve,disabled:v||!M||!S,children:[d.jsx(Ze,{name:"arrowRight"}),v?"handing over…":M?`hand off to @${he}`:"hand off",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:s,disabled:v,children:"cancel"})]})]})})}function qN({artifact:l,reviewKey:a,event:r,sending:s,checking:u,onSend:f,error:p,footer:y,next:g,onAdvance:m,onBody:b,anchorRef:v}){const[_,T]=F.useState(null),[N,D]=F.useState(null),[x,C]=F.useState(l.bodyOverride!=null),[I,A]=F.useState(!1),Q=l.bodyOverride!=null,V=l.priorSends??[];F.useEffect(()=>{Q&&C(!0)},[Q]);const ie=x&&!I?JSON.stringify([l.bodyOverride,l.summary,l.chapters.map(H=>[H.title,H.explanation]),l.comments.map(H=>{var R,q;return[H.path,H.line,H.body,H.severity,H.status,H.drifted,(R=H.alreadyRaised)==null?void 0:R.decision,(q=H.alreadyRaised)==null?void 0:q.where]})]):"";return F.useEffect(()=>{if(!x||I)return;let H=!1;return T(null),D(null),Kb(a,r).then(R=>{H||(T(R),D(null))}).catch(R=>{H||D(String(R))}),()=>{H=!0}},[a,r,ie,x,I]),l.sent?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sent-strip",ref:v,children:[d.jsxs("strong",{children:["✔ sent as ",Ud[l.sent.event]]}),d.jsxs("span",{className:"faint",children:[new Date(l.sent.at).toLocaleString()," · ",Bd(l),l.sent.auto?" · auto-sent by the daemon":"",V.length>0?` · review ${Sb(l)} on this PR`:""]}),d.jsx("span",{className:"grow"}),l.sent.url&&d.jsxs("a",{href:l.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",d.jsx(Ze,{name:"external"})]}),d.jsxs("button",{className:"btn",onClick:m,children:[g?`next review: ${g.pr.repo}#${g.pr.number}`:"back to the queue",d.jsx(Ze,{name:"arrowRight"})]})]}),d.jsx("div",{className:"post-actions",children:y})]}):d.jsxs("div",{className:"send-panel",ref:v,children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"send to github"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:Bd(l)}),d.jsxs("button",{className:"link",onClick:()=>C(!x),disabled:I,title:I?"save or cancel the body you are writing first":void 0,children:[d.jsx(Ze,{name:"eye"}),x?"hide what gets posted":"see what gets posted"]})]}),V.length>0&&d.jsxs("p",{className:"send-note",children:["This posts review ",Sb(l)+1," on this PR. What you sent before stays on GitHub — a new one sits beside it rather than replacing it."]}),d.jsx("div",{className:"send-action",children:d.jsxs("button",{className:`send-btn tone-bg-${uN[r]}`,disabled:s||u,onClick:f,children:[d.jsx(Ze,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),s?"sending…":u?"checking what others already raised…":`${Ud[r]} on ${l.id}`," ",d.jsx(za,{children:"s"})]})}),p&&d.jsx("p",{className:"error",children:p}),x&&d.jsxs(d.Fragment,{children:[N&&d.jsx("p",{className:"error",children:N}),_?I?d.jsx(BN,{initial:_.body,onSave:H=>b(H).then(()=>A(!1)),onCancel:()=>A(!1)}):d.jsxs(d.Fragment,{children:[d.jsx("pre",{className:"body-preview",children:_.body}),d.jsxs("div",{className:"body-source",children:[Q?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),d.jsx("button",{className:"link",onClick:()=>b(null).catch(H=>D(String((H==null?void 0:H.message)??H))),children:"build it from the review again"})]}):d.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),d.jsxs("button",{className:"link",onClick:()=>A(!0),children:[d.jsx(Ze,{name:"edit"}),Q?"keep editing it":"write it yourself"]})]})]}):!N&&d.jsx("p",{className:"faint",children:"building the body…"})]}),d.jsx("div",{className:"send-footer",children:y})]})}function xb({sends:l}){const a=l[l.length-1],r=l.length===1,s=f=>new Date(f).toLocaleDateString(),u=Ud[a.event];return d.jsxs("div",{children:[d.jsxs("strong",{children:["You already sent ",r?"a review":`${l.length} reviews`," on this PR",r?"":", the last"," on ",s(a.at),r?` — ${u}`:` as ${u}`,"."]})," ",a.url?d.jsx("a",{href:a.url,target:"_blank",rel:"noreferrer",children:r?"It is still on GitHub":"The last is still on GitHub"}):r?"It is still on GitHub":"The last is still on GitHub",", untouched by the draft below — a re-review replaces what cerber holds, never what was posted. Sending this one would be review ",l.length+1,"."]})}function GN({filed:l}){var s,u,f;const a=((s=l.review)==null?void 0:s.url)??((u=l.reply)==null?void 0:u.url)??null,r=p=>new Date(p).toLocaleDateString();return l.reason==="own-reply"&&l.reply?d.jsxs("div",{children:[d.jsxs("strong",{children:["You answered on this PR on ",r(l.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",a?d.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"comment"}):"comment"," ","as a review, but the PR is with its author either way. Nothing here was changed or sent — the draft is still yours to send."]}):l.reason==="request-withdrawn"?d.jsxs("div",{children:[d.jsx("strong",{children:"Nobody is asking for this review any more."})," The request that put this PR in the inbox was taken back on or before ",r(l.at),", and you had said nothing on the PR, so cerber filed the draft under settled rather than leaving it out for you. Nothing here was changed or sent — the draft is still yours to send."]}):d.jsxs("div",{children:[d.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((f=l.review)==null?void 0:f.at)??l.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",a?d.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"already on the PR"}):"already on the PR",". Nothing here was changed or sent — the draft is still yours to send."]})}function $N({entries:l,open:a,onToggle:r,anchorRef:s}){const u=f=>{const p=new Date(f);return Number.isNaN(p.getTime())?f:`${p.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${p.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return d.jsxs("section",{className:"card",ref:s,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"history"}),d.jsx("span",{className:"faint",children:l.length>0?`${l.length} entr${l.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),d.jsx("span",{className:"grow"}),d.jsxs("button",{className:"btn btn-sm","aria-expanded":a,onClick:r,children:[d.jsx(Ze,{name:a?"up":"down",size:12}),a?"hide":"show"]})]}),a&&d.jsx("div",{className:"card-body",children:l.length===0?d.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):d.jsx("ol",{className:"history",children:l.map((f,p)=>({e:f,i:p})).reverse().map(({e:f,i:p})=>d.jsxs("li",{className:"history-row",title:f.at,children:[d.jsx("span",{className:"history-at",children:u(f.at)}),d.jsx("span",{className:"history-by",children:f.by}),d.jsx("span",{className:"history-what",children:f.what}),f.cause&&d.jsx("span",{className:"history-cause",children:f.cause})]},`${p}-${f.at}`))})})]})}function YN({handoff:l,sent:a,hasDraft:r}){const s=new Date(l.at).toLocaleDateString();return d.jsxs("div",{children:[d.jsxs("strong",{children:["You handed this to @",l.to," on ",s,"."]})," ","GitHub asks them for this review now",l.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",l.note?l.note.url?d.jsxs(d.Fragment,{children:["A"," ",d.jsx("a",{href:l.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):d.jsx(d.Fragment,{children:"A note on the PR says so."}):d.jsx(d.Fragment,{children:"No note was posted — only the request moved."})," ",a?d.jsx(d.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?d.jsx(d.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):d.jsx(d.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function FN({artifact:l,freshness:a,rerunning:r,onRerun:s}){const u=l.status==="running",f=(a==null?void 0:a.prState)??l.pr.state,p=f==="CLOSED"||f==="MERGED",y=l.refresh,g=a!=null&&a.changed?y:null,m=!p&&fN(l,a)?l.sent:null;if(u)return d.jsxs("div",{className:"freshness",children:[(l.sent?[]:l.priorSends??[]).length>0&&d.jsx(xb,{sends:l.priorSends??[]}),d.jsxs("div",{className:"freshness-running",children:[d.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]})]});const b=l.filed,v=l.handoff,_=l.sent?[]:l.priorSends??[];return!p&&!g&&!m&&!b&&!v&&_.length===0?null:d.jsxs("div",{className:"freshness",children:[_.length>0&&d.jsx(xb,{sends:_}),v&&d.jsx(YN,{handoff:v,sent:l.sent,hasDraft:l.summary!==""||l.comments.length>0}),b&&d.jsx(GN,{filed:b}),p&&d.jsxs("div",{children:[d.jsxs("strong",{children:["This PR is ",f==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",d.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",d.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&d.jsxs(d.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&d.jsxs(d.Fragment,{children:[g.drifted," could not — the code they point at is gone, so they will post in the review body instead of inline."," "]}),"The summary and verdict still describe the commit that was reviewed.",!l.sent&&d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]}),m&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since you sent this review."})," ",(a==null?void 0:a.headSha)&&l.pr.headSha&&d.jsxs(d.Fragment,{children:["Now at ",d.jsx("code",{children:a.headSha.slice(0,7)}),", sent at"," ",d.jsx("code",{children:l.pr.headSha.slice(0,7)}),"."," "]}),"What you sent stays exactly as it was posted — cerber never re-anchors a review that is already on GitHub. Answering the new commits means a new draft, which replaces this one here and leaves what was posted alone.",d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]})]})}function PN({reviewKey:l}){var va,Wn,Ea,Jt,Fn;const[a,r]=F.useState(null),[s,u]=F.useState(null),[f,p]=F.useState(null),[y,g]=F.useState(null),[m,b]=F.useState(!1),[v,_]=F.useState([]),[T,N]=F.useState(new Set),D=G=>N(de=>new Set(de).add(G)),[x,C]=F.useState(!1),[I,A]=F.useState([]),Q=F.useRef(null),[V,ie]=F.useState(new Set),[H,R]=F.useState(new Set),q=F.useRef(Promise.resolve()),J=F.useRef(0),[K,me]=F.useState(0),ce=F.useRef(new Map),[Se]=fy(),[he,M]=F.useState(null),ee=F.useRef(null),fe=F.useRef(null),we=F.useRef(null),Le=F.useRef(null),S=F.useRef(null),z=F.useRef(null),[B,se]=F.useState(!1),pe=F.useRef(null),[ve,Z]=F.useState(!1),[ye,Ne]=F.useState(!1),[Ge,$e]=F.useState(null),[Me,Dt]=F.useState(null);F.useEffect(()=>{if(!Me)return;const G=setTimeout(()=>Dt(null),1800);return()=>clearTimeout(G)},[Me]);const Pe=G=>{var de,ge;A(Te=>Te.some(Ye=>Ye.target===G.target&&Ye.id===G.id)?Te:[...Te,G]),(de=Q.current)==null||de.scrollIntoView({behavior:"smooth",block:"center"}),(ge=Q.current)==null||ge.focus()};F.useEffect(()=>{let G=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),$e(null),Ne(!1),ug(l).then(de=>{if(!G)return r(de),r0(l).then(ge=>{G||(p(ge),ge.changed&&r(ge.artifact))}).catch(ge=>!G&&g(String(ge.message??ge))).then(()=>{if(!(G||de.sent||de.status==="running"||de.comments.length===0))return Ne(!0),f0(l).then(ge=>!G&&r(ge)).catch(()=>{}).finally(()=>!G&&Ne(!1))})}).catch(de=>!G&&u(String(de))),()=>{G=!0}},[l]),F.useEffect(()=>{Qd().then(_).catch(()=>{})},[]),F.useEffect(()=>{const G=pe.current;if(!G)return;const de=()=>document.documentElement.style.setProperty("--top-h",`${G.offsetHeight}px`);de();const ge=new ResizeObserver(de);return ge.observe(G),()=>{ge.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[a==null?void 0:a.id]);const Hn=(a==null?void 0:a.pendingChat)!=null&&a.pendingChat.error==null,it=F.useRef(null),fn=((va=a==null?void 0:a.raisedCheck)==null?void 0:va.checkingSince)!=null||ye;F.useEffect(()=>{if((a==null?void 0:a.status)!=="running"&&!Hn&&!fn)return;const G=setInterval(()=>{ug(l).then(de=>{var ge;if(r(de),de.status!=="running"){b(!1);const Te=it.current;Te!=null&&de.sent&&(((ge=de.run)==null?void 0:ge.startedAt)??"none")===Te&&u("The re-review didn't start, so nothing here changed — the review you sent is untouched. The history below says why."),it.current=null}}).catch(()=>{})},3e3);return()=>clearInterval(G)},[a==null?void 0:a.status,Hn,fn,l]);const Ot=(a==null?void 0:a.sent)!=null,Gt=F.useMemo(()=>M_(v,l,T),[v,l,T]),Wt=Gt.findIndex(G=>G.key===l),Lt=(Wt>0?Gt[Wt-1]:null)??null,vt=(Wt>=0&&Wt<Gt.length-1?Gt[Wt+1]:null)??null,Ln=G=>{window.location.hash=`#/r/${encodeURIComponent(G)}`},lt=()=>{vt?Ln(vt.key):window.location.hash="#/"},mt=F.useMemo(()=>{if(!a)return[];const G=R_(a.diff,a.chapters);return G.length>0?[...a.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:G}]:a.chapters},[a]);F.useEffect(()=>{let G=0;const de=()=>{var Re;G=0;const Ye=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--top-h"))||0,un=Ye+16;let oe=null;for(const Be of mt){const Je=(Re=ce.current.get(Be.id))==null?void 0:Re.getBoundingClientRect();Je&&Je.top<=un&&Je.bottom>un&&(oe={id:Be.id,stuck:Je.top<Ye-1})}M(Be=>(Be==null?void 0:Be.id)===(oe==null?void 0:oe.id)&&(Be==null?void 0:Be.stuck)===(oe==null?void 0:oe.stuck)?Be:oe)},ge=()=>{G||(G=requestAnimationFrame(de))};de(),window.addEventListener("scroll",ge,{passive:!0}),window.addEventListener("resize",ge);const Te=new ResizeObserver(ge);return Te.observe(document.body),()=>{cancelAnimationFrame(G),window.removeEventListener("scroll",ge),window.removeEventListener("resize",ge),Te.disconnect()}},[mt]);const At=F.useMemo(()=>{const G=k_((a==null?void 0:a.diff)??""),de=new Set(ja((a==null?void 0:a.diff)??"").filter(Te=>cf(Te.path)&&uf(Te.patch).isNew).map(Te=>Te.path)),ge=Te=>{const Ye=G.get(Te)??0;return de.has(Te)?Math.round(Ye/4):Ye};return new Map(mt.map(Te=>[Te.id,Te.files.reduce((Ye,un)=>Ye+ge(un),0)]))},[a==null?void 0:a.diff,mt]),_n=G=>{const de=At.get(G)??0;return de>DN?de:null},hn=G=>V.has(G)?_n(G)!=null:_n(G)==null,qn=G=>ie(de=>{const ge=new Set(de);return ge.has(G)?ge.delete(G):ge.add(G),ge});F.useEffect(()=>{ie(new Set),R(new Set)},[l]);const Sn=F.useMemo(()=>Object.fromEntries(ja((a==null?void 0:a.diff)??"").map(G=>[G.path,O_(G.patch)])),[a==null?void 0:a.diff]),wn=F.useMemo(()=>new Set(Object.keys(Sn).filter(G=>{var de;return((de=a==null?void 0:a.viewed)==null?void 0:de[G])===Sn[G]})),[Sn,a==null?void 0:a.viewed]),It={viewed:wn,peeked:H,onToggleViewed:G=>{const de=wn.has(G)?null:Sn[G]??null;R(Te=>{const Ye=new Set(Te);return Ye.delete(G),Ye}),r(Te=>{if(!Te)return Te;const Ye={...Te.viewed};return de===null?delete Ye[G]:Ye[G]=de,{...Te,viewed:Ye}});const ge=++J.current;q.current=q.current.then(()=>n0(l,G,de)).then(Te=>{ge===J.current&&r(Ye=>Ye&&Ye.id===Te.id?{...Ye,viewed:Te.viewed}:Ye)}).catch(Te=>u(String(Te)))},onTogglePeek:G=>R(de=>{const ge=new Set(de);return ge.has(G)?ge.delete(G):ge.add(G),ge})},pn=G=>{const de=mt[G];return de?(me(G),hn(de.id)||qn(de.id),de):null},Rt=(...G)=>{for(const de of G)if(de.current)return de.current.scrollIntoView({behavior:"smooth",block:"start"})},Gn=G=>{var ge;const de=pn(G);de&&((ge=ce.current.get(de.id))==null||ge.scrollIntoView({behavior:"smooth",block:"start"}))},$n=(G,de)=>{var Te;pn(G);const ge=(Te=a==null?void 0:a.comments.find(Ye=>Ye.id===de))==null?void 0:Te.path;ge&&wn.has(ge)&&R(Ye=>new Set(Ye).add(ge)),Dt(de),gy(de)},mn=dN(a==null?void 0:a.verdict);F.useEffect(()=>$e(null),[mn]);const He=()=>{!a||a.sent||ve||fn||(Z(!0),$e(null),d0(l,mn).then(({replyError:G,...de})=>{r(de),G&&$e(`Sent — but ${G}`),D(l)}).catch(G=>$e(String(G.message??G))).finally(()=>Z(!1)))};if(F.useEffect(()=>{const G=de=>{NN(de.target)||de.metaKey||de.ctrlKey||de.altKey||(de.key==="["&&Lt?Ln(Lt.key):de.key==="]"&&vt?Ln(vt.key):de.key==="n"?Gn(Math.min(mt.length-1,K+1)):de.key==="N"?Gn(Math.max(0,K-1)):de.key==="s"&&!Ot&&He())};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[Lt==null?void 0:Lt.key,vt==null?void 0:vt.key,mt,K,Ot,mn,a==null?void 0:a.sent,ve,fn]),s&&!a)return d.jsx("p",{className:"error pad",children:s});if(!a)return d.jsx("p",{className:"muted pad",children:"Loading…"});const gn=G=>{var de;b(!0),u(null),it.current=a.sent?((de=a.run)==null?void 0:de.startedAt)??"none":null,Pb(l,G).then(r).catch(ge=>{u(String(ge)),b(!1)})},Ht=G=>G.then(r).catch(de=>u(String(de))),$t=G=>io(l,{status:G}).then(()=>{D(l),lt()}).catch(de=>u(String(de))),O=(G,de,ge)=>p0(l,{to:G,note:de,postReview:ge}).then(({artifact:Te,noteError:Ye,sendError:un,replyError:oe})=>{E0(G),r(Te),C(!1),D(l);const Re=[un&&`the review did not post: ${un}`,oe,Ye&&`the note did not post: ${Ye}`].filter(Boolean);Re.length>0?u(`Handed to @${G}, but ${Re.join("; and ")}`):lt()}),ne=(G,de)=>Ht(a0(l,G,de)),be=G=>Ht(l0(l,G)),je=G=>Ht(i0(l,G)),Qe=a.comments.filter(G=>!G.chapterId||!mt.some(de=>de.id===G.chapterId)),{inline:st,folded:Ae,dropped:_e,held:Ue,replies:Ct}=py(a),bt=a.comments.filter(G=>G.alreadyRaised&&G.status!=="dropped").length,jn=a.comments.filter(G=>G.status!=="dropped"&&G.drifted).length,Un=a.verdict?wb[a.verdict.recommendation]:"none",ba=gN(a),Pt=mN(a),St=a.pendingChat!=null&&a.pendingChat.error==null,Kt=a.status==="running"||St,ut=()=>Ht(Rd(l,{message:"Some findings were dropped, edited or re-graded after this review was drafted. Update the summary and verdict to match what still stands — do not re-review the whole PR.",refs:[{target:"verdict",id:null}]})),Yn=(G,de)=>{Ht(Rd(l,{message:de,refs:[{target:"line",id:null,path:G.path,line:G.line,side:G.side}]}).then(ge=>{var Te;return(Te=Le.current)==null||Te.scrollIntoView({behavior:"smooth",block:"start"}),ge}))},ii=(Wn=a.run)!=null&&Wn.trusted?"ran the code":(Ea=a.run)!=null&&Ea.withSource?"read the full source":a.run?"read the diff only":"no run yet",ya=G=>{var de;return d.jsxs("button",{className:`verdict-pick${((de=a.verdict)==null?void 0:de.recommendation)===G?` verdict-pick-on tone-${wb[G]}`:""}`,title:G==="approve"?"Approve":G==="comment"?"Comment without blocking":"Request changes",onClick:()=>Ht(io(l,{verdictRecommendation:G})),children:[d.jsx(Ze,{name:SN[G]}),G.replace("_"," ")]},G)};return d.jsxs("div",{className:"review",children:[d.jsxs("div",{className:"review-top",ref:pe,children:[d.jsx("div",{className:"crumb",children:d.jsxs("div",{className:"bar-inner",children:[d.jsx("a",{href:"#/",children:"← queue"}),d.jsx("span",{className:"crumb-sep",children:"/"}),d.jsx("span",{className:"crumb-slug",children:a.id}),d.jsxs("span",{className:"walk",children:[d.jsx("button",{className:"walk-btn",disabled:!Lt,title:Lt?`[ — ${Lt.id}: ${Lt.pr.title}`:"no more reviews this way",onClick:()=>Lt&&Ln(Lt.key),children:d.jsx(Ze,{name:"chevronLeft"})}),d.jsx("button",{className:"walk-btn",disabled:!vt,title:vt?`] — ${vt.id}: ${vt.pr.title}`:"no more reviews this way",onClick:()=>vt&&Ln(vt.key),children:d.jsx(Ze,{name:"chevronRight"})})]}),Wt>=0&&d.jsxs("span",{className:"faint",children:[Wt+1," of ",Gt.length," awaiting"]}),d.jsx("span",{className:"faint crumb-next",children:vt?`next: ${vt.pr.title}`:Wt>=0?"last in the queue":""}),d.jsx("span",{className:"grow"}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Ze,{name:"settings",size:15})})]})}),d.jsx("div",{className:"review-head",children:d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"review-head-top",children:[d.jsx("a",{className:"review-title",href:a.pr.url,target:"_blank",rel:"noreferrer",children:a.pr.title}),d.jsx("span",{className:"grow"}),a.verdict&&(Ot?d.jsxs("span",{className:`chip tone-${Un}`,children:[a.verdict.recommendation.replace("_"," "),Pt&&` · ${Pt}`," · ",a.verdict.confidence,"%"]}):d.jsxs("button",{className:`chip chip-btn tone-${Un}`,title:"change it, or send — both are at the foot of the page",onClick:()=>Rt(ee,S),children:[a.verdict.recommendation.replace("_"," "),Pt&&` · ${Pt}`," · ",a.verdict.confidence,"%",d.jsx(Ze,{name:"down",size:12})]})),a.status!=="running"&&d.jsxs("button",{className:"btn btn-sm",disabled:m,title:Ot?"Draft a new review at the current head. What you sent stays on GitHub — this replaces the draft here, and sending again posts a second review":a.run?"Review the current head again — this draft is replaced, comments and all":"Draft a review of this PR",onClick:()=>gn(!0),children:[d.jsx(Ze,{name:"rerun"}),m?"starting…":a.run?"re-review at head":"review now"]})]}),d.jsxs("div",{className:"review-head-meta",children:[d.jsx("span",{children:a.pr.author}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.headRefName," → ",a.pr.baseRefName,a.pr.headSha?` · ${a.pr.headSha.slice(0,7)}`:""]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",a.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",a.pr.deletions]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:ii}),((Jt=a.run)==null?void 0:Jt.costUsd)!=null&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{title:"What this review would cost at API token rates. Riding a Claude subscription, it draws on your usage limits instead.",children:["≈$",a.run.costUsd.toFixed(2)," at API rates"]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:a.status})]})]})})]}),d.jsxs("div",{className:"wrap review-body",children:[d.jsxs("aside",{className:"rail",children:[d.jsxs("div",{className:"rail-jumps",children:[d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Rt(fe),children:"summary"}),a.verdict&&d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Rt(we),children:"why"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var G;Rt(Le),(G=Q.current)==null||G.focus()},children:"chat"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{se(!0),Rt(z)},children:"history"})]}),mt.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>Gn(0),children:"changes"}),mt.map((G,de)=>{const ge=G.files.length>0&&G.files.every(Te=>wn.has(Te));return d.jsxs("div",{className:"rail-group",children:[d.jsxs("button",{className:`rail-item${hn(G.id)?" rail-item-on":""}${ge?" rail-item-done":""}${(he==null?void 0:he.id)===G.id?" rail-item-here":""}`,onClick:()=>Gn(de),children:[d.jsxs("span",{className:"grow",children:[de+1," · ",G.title]}),d.jsxs("span",{className:"rail-count",title:ge?"every file viewed":void 0,children:[ge?"✓ ":"",G.files.length,"f"]})]}),a.comments.filter(Te=>Te.chapterId===G.id).map(Te=>d.jsxs("button",{className:`rail-comment${Te.status==="dropped"?" rail-comment-dropped":""}`,title:`${Te.path}${Te.line!=null?`:${Te.line}`:""} — ${Te.body}`,onClick:()=>$n(de,Te.id),children:[d.jsx("span",{className:`rail-dot tone-${wN(Te,Un)}`,children:"●"}),d.jsxs("span",{className:"rail-comment-loc",children:[Te.path.split("/").pop(),Te.line!=null?`:${Te.drifted?"~":""}${Te.line}`:""]})]},Te.id))]},G.id)})]}),d.jsx("button",{className:`lab rail-lab-btn${mt.length>0?" rail-lab":""}`,onClick:()=>Rt(ee,S),children:"verdict"}),d.jsxs("div",{className:"rail-facts",children:[d.jsxs("div",{children:[a.comments.length-_e.length," keeping · ",_e.length," dropped"]}),d.jsxs("div",{children:[st.length," inline · ",Ae.length," folded into body"]}),jn>0&&d.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[jn," drifted"]}),d.jsx(ON,{check:a.raisedCheck??null,raised:bt,held:Ue.length,replies:Ct.length})]})]}),d.jsxs("div",{className:"main",children:[d.jsx(FN,{artifact:a,freshness:f,rerunning:m,onRerun:gn}),y&&d.jsxs("div",{className:"freshness",title:y,children:[d.jsx("strong",{children:"Couldn't check GitHub for newer commits."})," This is the review as it was drafted — if the PR has moved on since, nothing here knows it yet."]}),s&&d.jsx("div",{className:"error",children:s}),((Fn=a.run)==null?void 0:Fn.error)&&d.jsxs("div",{className:"error",children:["Run failed: ",a.run.error]}),d.jsx("div",{className:"card card-summary",ref:fe,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"summary"}),d.jsx(ni,{className:"prose lead",text:a.summary||"(no summary)"}),!Ot&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Pe({target:"summary",id:null}),children:[d.jsx(Ze,{name:"comment"}),"discuss the summary"]})]})}),a.verdict&&d.jsx("div",{className:`card card-why tone-border-${Un}`,ref:we,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"why"}),d.jsxs("div",{className:"sev-counts",children:[Td(a)&&d.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Td(a)}),Td(a)&&d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{title:"How sure the review is that its own findings and grades are right — not how good an idea merging is. That is the verdict, and it follows from the blockers.",children:[a.verdict.confidence,"% sure of the findings"]})]}),d.jsx(ni,{className:"prose lead",text:a.verdict.reasoning}),!Ot&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Pe({target:"verdict",id:null}),children:[d.jsx(Ze,{name:"comment"}),"discuss the verdict"]})]})}),mt.map((G,de)=>d.jsx(LN,{chapter:G,n:de+1,diff:a.diff,comments:a.comments.filter(ge=>ge.chapterId===G.id),open:hn(G.id),heavy:_n(G.id),onToggle:()=>qn(G.id),onUpdateComment:ne,onDeleteComment:be,onAddComment:je,onDiscuss:Ot?void 0:Pe,onAskAboutLine:Yn,chatBusy:St,readOnly:Ot,flash:Me,viewedState:It,sticky:Se,stuck:(he==null?void 0:he.id)===G.id&&he.stuck,anchorRef:ge=>{ge?ce.current.set(G.id,ge):ce.current.delete(G.id)}},G.id)),Qe.length>0&&d.jsxs("section",{className:"card",children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"unattached comments"}),d.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),d.jsx("div",{className:"card-body",children:Qe.map(G=>d.jsx(yy,{comment:G,onUpdate:de=>ne(G.id,de),onDelete:()=>be(G.id),onDiscuss:Ot?void 0:()=>Pe({target:"comment",id:G.id}),readOnly:Ot},G.id))})]}),d.jsx($N,{entries:a.history??[],open:B,onToggle:()=>se(G=>!G),anchorRef:z})]}),d.jsxs("aside",{className:"cockpit",children:[d.jsx(UN,{artifact:a,reviewKey:l,refs:I,onClearRefs:()=>A([]),onDropRef:G=>A(de=>de.filter((ge,Te)=>Te!==G)),onArtifact:r,readOnly:Ot,inputRef:Q,anchorRef:Le}),d.jsxs("div",{className:"cockpit-decide",children:[!Ot&&ba&&d.jsxs("div",{className:"verdict-hint",children:[d.jsxs("span",{children:[d.jsx("strong",{children:ba})," — the verdict was written before those edits."]}),d.jsxs("button",{className:"btn btn-sm",onClick:ut,disabled:St,children:[d.jsx(Ze,{name:"comment"}),St?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),a.verdict&&!Ot&&d.jsxs("div",{className:"verdict-bar",ref:ee,children:[d.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(ya)]}),d.jsx(qN,{artifact:a,reviewKey:l,event:mn,sending:ve,checking:fn,onSend:He,error:Ge,next:vt,onAdvance:lt,onBody:G=>io(l,{bodyOverride:G}).then(r),anchorRef:S,footer:d.jsxs(d.Fragment,{children:[!Ot&&d.jsx("span",{className:"faint",children:"not sending?"}),!Ot&&d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-sm",title:vt?`Settle it locally and go to ${vt.id}`:"Settle it locally and go back to the queue",onClick:()=>$t("reviewed"),children:[d.jsx(Ze,{name:"check"}),"mark reviewed"]}),d.jsxs("button",{className:"btn btn-sm",title:vt?`Leave it and go to ${vt.id}`:"Leave it and go back to the queue",onClick:()=>$t("skipped"),children:[d.jsx(Ze,{name:"skip"}),"skip"]})]}),d.jsxs("button",{className:"btn btn-sm",title:Kt?"Wait for the run to finish — a handoff settles the row it is rewriting":"Move GitHub's review request to somebody else, and settle this row",onClick:()=>C(!0),disabled:x||Kt,children:[d.jsx(Ze,{name:"arrowRight"}),"hand off"]}),d.jsxs("a",{className:"btn btn-sm",href:m0(l),children:[d.jsx(Ze,{name:"download"}),"export .md"]})]})}),x&&d.jsx(HN,{artifact:a,reviewKey:l,onConfirm:O,onCancel:()=>C(!1)})]})]})]})]})}const Ab="cerber.notify.seen.v2",KN="cerber.notify.seen",qd="cerber.notify",ZN=1e4,Is=l=>l.status==="ready",Gd=l=>{try{return localStorage.getItem(l)}catch{return null}},$d=(l,a)=>{try{localStorage.setItem(l,a)}catch{}};function XN(l,a){return l?!!(l.enabled&&l.pollEnabled&&l.autoReview):a}function Ey(l,a){return l.announceable===!1||l.status==="running"?!1:l.status==="awaiting"?!a:!0}const _y=":draft",so=l=>`${l.key}${_y}`,Sy=l=>Is(l)?so(l):l.key;function VN(l,a,r){const s=new Set(a);return qs(l).filter(u=>Ey(u,r)&&!s.has(Sy(u)))}function QN(l,a,r=[]){const s=new Set(r),u=new Set(qs(l).map(p=>p.key)),f=[];for(const p of l){if(u.has(p.key)&&!Ey(p,a)){for(const y of[p.key,so(p)])s.has(y)&&f.push(y);continue}f.push(p.key),(Is(p)||!u.has(p.key)||s.has(so(p)))&&f.push(so(p))}return f}const xd=l=>`${l.pr.repo}#${l.pr.number}`,WN={approve:"approves",comment:"comments",request_changes:"requests changes"};function JN(l){const a=l.verdict?WN[l.verdict.recommendation]:"drafted",r=l.blockerCount??0;return r===0?a:`${a} · ${r} blocker${r===1?"":"s"}`}function eT(l){if(l.length===0)return null;const a=`cerber:${l.map(Sy).sort().join("|")}`;if(l.length===1){const u=l[0];return{title:Is(u)?`${xd(u)} draft ready`:`${xd(u)} awaits your review`,body:Is(u)?`${JN(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:a,key:u.key}}const r=l.slice(0,3).map(xd),s=l.length-r.length;return{title:l.every(Is)?`${l.length} drafts ready`:`${l.length} PRs await your review`,body:s>0?`${r.join(", ")} and ${s} more`:r.join(", "),tag:a,key:null}}const tT=new Set(["127.0.0.1","localhost","::1","[::1]"]);function nT(l,a=window.location.hostname){return!(l!=null&&l.enabled)||!l.notify?!1:tT.has(a)}function Hl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Gd(qd)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function aT(){const l=Hl();if(l==="unsupported"||l==="blocked")return l;if(l==="on")return $d(qd,"off"),Hl();if($d(qd,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Hl()}function iT(l){const a=new Notification(l.title,{body:l.body,tag:l.tag,icon:"/favicon.svg"});a.onclick=()=>{window.focus(),window.location.hash=l.key?`#/r/${encodeURIComponent(l.key)}`:"#/",a.close()}}function lT(l,a){const r=l??a;if(!r)return null;let s;try{s=JSON.parse(r)}catch{return null}if(!Array.isArray(s))return null;const u=s.filter(f=>typeof f=="string");return l?u:u.flatMap(f=>[f,`${f}${_y}`])}function sT(){const l=F.useRef(null),a=F.useRef(!0),[r,s]=F.useState(!1);return F.useEffect(()=>{let u=!0;l.current=lT(Gd(Ab),Gd(KN));const f=()=>Promise.all([Qd(),Fb().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=nT(g);s(m),a.current=XN(g,a.current);const b=a.current,v=l.current;if(l.current=QN(y,b,v??[]),$d(Ab,JSON.stringify(l.current)),!v||Hl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const _=eT(VN(y,v,b));_&&iT(_)}).catch(()=>{});f();const p=setInterval(f,ZN);return()=>{u=!1,clearInterval(p)}},[]),r}function wy(){const[l,a]=F.useState(Hl);return F.useEffect(()=>{const r=()=>a(Hl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[l,()=>void aT().then(a)]}const ro=l=>{window.location.hash=`#/r/${encodeURIComponent(l)}`};function rT(l){const a=l,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function oT({daemon:l}){return l!=null&&l.enabled?d.jsx("div",{className:"daemon-bar",children:d.jsxs("div",{className:"bar-inner",children:[l.pollEnabled?d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot"}),l.repos.length>0?l.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(l.intervalMs/6e4),"m"]}):d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),d.jsxs("span",{children:["auto-review ",d.jsx("b",{children:l.autoReview?"on":"off"})]}),d.jsxs("span",{children:["auto-send ",d.jsx("b",{children:l.autoSend==="on"?"on":"shadow"})," ≥",l.autoSendThreshold,"%",l.autoSend==="on"?` · ${l.autoSent} sent`:` · ${l.autoSendCandidates} candidate${l.autoSendCandidates===1?"":"s"}`]}),l.trustedRuns&&d.jsxs("span",{className:"warn",title:"Trust rules are set and auto-review is on: reviews of matching PRs run their code unattended. Settings → Trusted PRs, or serve --no-trust.",children:[d.jsx(Ze,{name:"zap",size:12})," trusted PRs run with Bash"]}),d.jsx("span",{className:"grow"}),l.lastPollError?d.jsx("span",{className:"danger",title:l.lastPollError,children:"discovery offline — showing local reviews only"}):d.jsx("span",{className:"faint",children:l.polling?"polling now…":[l.lastSummary?`last: ${l.lastSummary}`:null,l.nextPollAt?`next ${new Date(l.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function cT({r:l,selected:a,onSelect:r,onOpen:s,awaiting:u}){const f=K_(l),p=U_(l),y=u?Y_(l,u):null;return d.jsxs("div",{className:`row${a?" row-on":""}`,onClick:s,onMouseEnter:r,role:"button",tabIndex:-1,children:[d.jsx("span",{className:"col-caret",children:"›"}),d.jsxs("span",{className:"col-slug",title:`${l.pr.owner}/${l.pr.repo}#${l.pr.number}`,children:[l.pr.repo,"#",l.pr.number]}),d.jsx("span",{className:"col-author",title:l.pr.author,children:l.pr.author}),d.jsx("span",{className:"col-title",title:l.pr.title,children:l.pr.title}),l.pr.isDraft&&d.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&d.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),p&&d.jsx("span",{className:"tag tag-done",children:p}),d.jsx("span",{className:"col-comments",children:Z_(l)}),d.jsx("span",{className:"col-size",children:l.pr.changedFiles>0?d.jsxs(d.Fragment,{children:[l.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",l.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",l.pr.deletions]})]}):"—"}),d.jsx("span",{className:`col-verdict tone-${f.tone}`,children:f.label}),d.jsx("span",{className:"col-age",children:Yb(l.updatedAt)})]})}function Rb({autoFocus:l}){const[a,r]=F.useState(""),[s,u]=F.useState(!1),[f,p]=F.useState(null),y=g=>{g.preventDefault();const m=a.trim();!m||s||(u(!0),p(null),s0(m).then(b=>ro(b.key)).catch(b=>{p(String(b instanceof Error?b.message:b)),u(!1)}))};return d.jsxs("form",{className:"pull",onSubmit:y,children:[d.jsx(Ze,{name:"plus"}),d.jsx("input",{className:"pull-input",value:a,autoFocus:l,disabled:s,onChange:g=>{r(g.target.value),f&&p(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),a.trim()&&d.jsx("button",{className:"btn btn-small",type:"submit",disabled:s,children:s?"starting…":"review"}),f&&d.jsx("span",{className:"pull-error",children:f})]})}function uT({text:l}){const a=F.useRef(null),[r,s]=F.useState(!1);return F.useLayoutEffect(()=>{const u=a.current;if(!u)return;const f=()=>s(u.scrollHeight-u.clientHeight>4);f();const p=new ResizeObserver(f);return p.observe(u),()=>p.disconnect()},[l]),d.jsx("div",{ref:a,className:`strip-prose${r?" strip-prose-clipped":""}`,children:d.jsx(ni,{className:"prose",text:l})})}function dT(){var J;const[l,a]=F.useState(null),[r,s]=F.useState(null),[u,f]=F.useState(null),[p,y]=F.useState(new Set),[g,m]=F.useState("inbox"),[b,v]=F.useState(null),_=F.useRef(!0);F.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const T=()=>{Qd().then(K=>_.current&&a(K)).catch(K=>_.current&&f(String(K))),Fb().then(K=>_.current&&s(K)).catch(()=>{})};F.useEffect(()=>{T();const K=setInterval(T,1e4);return()=>clearInterval(K)},[]);const N=l??[],D=F.useMemo(()=>z_(N,r),[N,r]),x=D.requests,C=j_(g,D),I=D[C];F.useEffect(()=>{C!==g&&m(C)},[C,g]);const A=I.find(K=>K.key===b)??I[0]??null,Q=K=>{y(me=>new Set(me).add(K)),Pb(K).then(()=>T()).catch(me=>_.current&&f(String(me))).finally(()=>{_.current&&y(me=>{const ce=new Set(me);return ce.delete(K),ce})})};if(F.useEffect(()=>{const K=me=>{if(rT(me.target)||me.metaKey||me.ctrlKey||me.altKey)return;const ce=I.findIndex(he=>he.key===(A==null?void 0:A.key)),Se=he=>{const M=I[Math.min(I.length-1,Math.max(0,ce+he))];M&&v(M.key)};me.key==="j"||me.key==="ArrowDown"?(me.preventDefault(),Se(1)):me.key==="k"||me.key==="ArrowUp"?(me.preventDefault(),Se(-1)):me.key==="Enter"&&A?ro(A.key):me.key==="r"&&A&&A.status!=="running"&&A.status!=="sent"&&Q(A.key)};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[I,A==null?void 0:A.key]),u&&!l)return d.jsx("p",{className:"error",children:u});if(!l)return d.jsx("p",{className:"muted pad",children:"Loading…"});const V=I.reduce((K,me)=>K+(me.costUsd??0),0),ie=A?V_(A,r):null,H=A?p.has(A.key):!1,R=Ad.filter(K=>D[K].length>0),q=K=>d.jsxs("button",{className:`tab${C===K?" tab-on":""}${Ad.includes(K)?" tab-filed":""}${K==="requests"?" tab-requests":""}`,title:Cu[K].title,onClick:()=>m(K),children:[Cu[K].label," ",d.jsx("span",{className:"tab-count",children:D[K].length})]},K);return d.jsxs(d.Fragment,{children:[d.jsx(oT,{daemon:r}),u&&d.jsx("div",{className:"wrap",children:d.jsx("p",{className:"error",children:u})}),N.length===0?d.jsx("div",{className:"wrap",children:d.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?d.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):d.jsx("p",{children:"No reviews yet."}),d.jsx(Rb,{autoFocus:!0})]})}):d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"tabs",children:[C_.map(q),R.length>0&&d.jsx("span",{className:"tab-split","aria-hidden":"true"}),R.map(q),d.jsx("span",{className:"grow"}),d.jsx(Rb,{}),V>0&&d.jsxs("span",{className:"faint",title:"What these reviews would cost at API token rates. Riding a Claude subscription, they draw on your usage limits instead.",children:["≈$",V.toFixed(2)," at API rates"]})]}),d.jsxs("div",{className:"table-head",children:[d.jsx("span",{className:"col-caret"}),d.jsx("span",{className:"col-slug",title:"Repository and pull request number",children:"repo#pr"}),d.jsx("span",{className:"col-author",title:"Who opened the pull request",children:"author"}),d.jsx("span",{className:"col-title",title:"Pull request title",children:"title"}),d.jsx("span",{className:"col-comments",title:"Comments in the drafted review (— while there is no draft yet)",children:"c"}),d.jsx("span",{className:"col-size",title:"Files changed, lines added, lines removed",children:"size"}),d.jsx("span",{className:"col-verdict",title:"What the review recommends, and how sure it is of itself",children:"verdict"}),d.jsx("span",{className:"col-age",title:"When this review last changed",children:"upd"})]}),I.length===0?d.jsx("div",{className:"empty-tab",children:C==="inbox"&&x.length>0?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:F_(x)}),d.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[d.jsx(Ze,{name:"arrowRight"}),"show ",x.length===1?"it":`all ${x.length}`]})]}):d.jsx("p",{className:"muted",children:C==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Cu[C].label} right now.`})}):I.map(K=>d.jsx(cT,{r:K,selected:K.key===(A==null?void 0:A.key),onSelect:()=>v(K.key),onOpen:()=>ro(K.key),awaiting:L_(K,x)?B_(K,r):null},K.key)),A&&ie&&d.jsxs("div",{className:"cursor-strip",children:[d.jsxs("div",{className:"cursor-strip-body",children:[d.jsxs("div",{className:"lab",children:[A.pr.owner,"/",A.pr.repo,"#",A.pr.number,A.pr.headRefName&&A.pr.baseRefName?` · ${A.pr.headRefName} → ${A.pr.baseRefName}`:""]}),d.jsx(uT,{text:ie.reasoning}),d.jsxs("div",{className:"cursor-strip-meta",children:[ie.meta.join(" · "),((J=A.sent)==null?void 0:J.url)&&d.jsxs(d.Fragment,{children:[" · ",d.jsx("a",{href:A.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),d.jsxs("div",{className:"cursor-strip-actions",children:[d.jsxs("button",{className:"btn-primary",onClick:()=>ro(A.key),children:[d.jsx(Ze,{name:"arrowRight"}),"open review ",d.jsx(za,{children:"↵"})]}),d.jsxs("div",{className:"cursor-strip-row",children:[d.jsxs("button",{className:"btn",disabled:A.status==="sent"||A.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>io(A.key,{status:"skipped"}).then(T).catch(K=>f(String(K))),children:[d.jsx(Ze,{name:"skip"}),"skip"]}),d.jsxs("button",{className:"btn",disabled:H||A.status==="running",title:A.status==="sent"?"Draft a review of the PR's current head. What you sent stays on GitHub.":"Draft a review of the PR's current head.",onClick:()=>Q(A.key),children:[d.jsx(Ze,{name:"rerun"}),H?"starting…":A.status==="awaiting"||A.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const go="cerber.theme";function Ny(l){return l==="light"||l==="dark"?l:"system"}function fT(){try{return Ny(localStorage.getItem(go))}catch{return"system"}}function Ty(l,a=document.documentElement){l==="system"?delete a.dataset.theme:a.dataset.theme=l}function hT(l,a){try{const r=a??localStorage;l==="system"?r.removeItem(go):r.setItem(go,l)}catch{}}function pT(){xy(Ty)}function xy(l){const a=r=>{(r.key===go||r.key===null)&&l(Ny(r.newValue))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)}function mT(){const[l,a]=F.useState(fT);return F.useEffect(()=>xy(a),[]),[l,s=>{hT(s),Ty(s),a(s)}]}const gT=[{rule:"@acme/*",meaning:"anyone in the acme org"},{rule:"@acme/devs",meaning:"anyone on that GitHub team"},{rule:"@teammate",meaning:"one person, by login"},{rule:"!@acme/contractors",meaning:"deny — beats every rule above"}],kb=l=>l instanceof Error?l.message:String(l),bT={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"},yT=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}],vT=[{choice:"mod-enter",label:"⌘↵ sends a chat message, Enter starts a new line"},{choice:"enter",label:"Enter sends a chat message, Shift+Enter starts a new line"}];function ET({daemonAnnounces:l}){const[a,r]=wy(),[s,u]=mT(),[f,p]=fy(),[y,g]=my(),[m,b]=F.useState(null),[v,_]=F.useState(""),[T,N]=F.useState(null),[D,x]=F.useState(!1);F.useEffect(()=>{g0().then(b).catch(A=>N(kb(A)))},[]);const C=A=>{x(!0),N(null),A.then(b).catch(Q=>N(kb(Q))).finally(()=>x(!1))};if(T&&!m)return d.jsx("p",{className:"error",children:T});if(!m)return d.jsx("p",{className:"muted",children:"Loading…"});const I=l&&m.daemon.poll&&m.daemon.notify;return d.jsxs("div",{className:"settings",children:[d.jsx("a",{href:"#/",className:"back",children:"← queue"}),d.jsx("h1",{children:"Inbox"}),d.jsx("p",{children:"By default cerber keeps the queue itself: it polls GitHub for PRs awaiting your review and drafts a review for each, so they're ready when you open the cockpit. Nothing is ever sent without you. Changes apply on the next poll — no restart."}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.poll,disabled:D,onChange:A=>C(Lu({poll:A.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",m.daemon.intervalMinutes,"m)"]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.autoReview,disabled:D||!m.daemon.poll,onChange:A=>C(Lu({autoReview:A.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),d.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",d.jsx("code",{children:m.path})," under"," ",d.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),d.jsx("h1",{children:"Notifications"}),d.jsx("p",{children:'When a PR is worth coming back for, cerber says so: one desktop notification per poll. With auto-review on that moment is the draft landing, not the PR arriving — a tap that leads to "no run yet" costs you the walk back and gives you nothing — and the notification names what the review found. A PR nobody is drafting (auto-review off, or a run that failed) is announced as it lands, since that is all the news there will be — and if a retry then drafts it after all, that is new news and you are told. Several at once fold into one notification, and a PR whose draft has been announced never arrives twice, however its next re-review ends.'}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.notify,disabled:D||!m.daemon.poll,onChange:A=>C(Lu({notify:A.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),d.jsxs("p",{className:"muted",children:["This is the one that works while you're somewhere else: it rides the poll, so it needs nothing open but ",d.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",d.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",d.jsx("strong",{children:"opens that review when you click it"}),', through a small app cerber builds for the job (the first one asks you to allow notifications from "Cerber"); a'," ",d.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:a==="on",disabled:a==="unsupported"||a==="blocked"||I,onChange:r})," ",I?"let this browser announce them instead":bT[a]]}),d.jsx("p",{className:"muted",children:I?d.jsx(d.Fragment,{children:"Standing down while the machine's own notification is on — two popups for one PR is one too many. Untick the machine one above and this browser takes over: it names the PR and opens that review on click just the same, but only while a cockpit tab is open and this browser has granted the permission."}):d.jsxs(d.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",d.jsx("code",{children:m.path}),". Granting it is the browser's prompt, not cerber's — a browser that has blocked cerber has to be un-blocked from the padlock next to the address bar. Nothing is announced while you're looking straight at the cockpit."]})}),d.jsx("h1",{id:"appearance",children:"Appearance"}),d.jsx("div",{role:"radiogroup","aria-labelledby":"appearance",children:yT.map(({choice:A,label:Q})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"theme",checked:s===A,onChange:()=>u(A)})," ",Q]},A))}),d.jsxs("p",{className:"muted",children:["Per-browser, like the notification switch: it's about this screen, not your reviews, so it lives here rather than in ",d.jsx("code",{children:m.path}),"."]}),d.jsx("h1",{children:"Review page"}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:f,onChange:A=>p(A.target.checked)})," ","keep chapter titles and file headers pinned while scrolling"]}),d.jsx("p",{className:"muted",children:"Ten files into a chapter you still see which one you're in, and the pinned title can open the chapter's explanation. Deep in a long file its name and Viewed box stay in reach. Per-browser, like the theme."}),vT.map(({choice:A,label:Q})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"send-key",checked:y===A,onChange:()=>g(A)})," ",Q]},A)),d.jsx("p",{className:"muted",children:"In the conversation with the reviewer. ⌘↵ sends under either choice, and the other boxes — comments, the review body, a handoff note — always take ⌘↵, since what goes in them runs to several lines. Per-browser, like the theme."}),d.jsx("h1",{children:"Trusted PRs"}),d.jsxs("p",{children:["Every review reads the PR's code. A ",d.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",d.jsx("code",{children:"git log"})," — so it can report what happened instead of guessing. That means executing code from the PR on this machine, the same as checking the branch out and running the tests yourself."]}),d.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",d.jsx("code",{children:m.path}),"."]}),d.jsx("p",{className:"muted",children:'Only people can be trusted — there is no way to trust a repository. Anyone can open a PR against a repo you own, so trusting the repo would trust them too. Membership is checked against GitHub when the review runs, and a check that fails counts as "not a member".'}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:v,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:D,onChange:A=>_(A.target.value),onKeyDown:A=>{A.key==="Enter"&&!D&&v.trim()&&(C(Du(v.trim())),_(""))}}),d.jsx("button",{className:"btn",disabled:D||!v.trim(),onClick:()=>{C(Du(v.trim())),_("")},children:"trust"})]}),T&&d.jsx("p",{className:"error",children:T}),m.trust.length===0?d.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.trust.map(A=>d.jsxs("tr",{className:A.denies?"trust-deny":void 0,children:[d.jsx("td",{children:d.jsx("code",{children:A.rule})}),d.jsx("td",{className:"muted",children:A.explanation}),d.jsx("td",{className:"trust-actions",children:d.jsx("button",{className:"btn",disabled:D,onClick:()=>C(Du(A.rule,!0)),children:"remove"})})]},A.rule))})}),d.jsx("h2",{children:"Rule syntax"}),d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:gT.map(A=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:A.rule})}),d.jsx("td",{className:"muted",children:A.meaning})]},A.rule))})}),d.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",d.jsx("code",{children:"gh"})," login, no git or ssh identity — so a push fails to authenticate rather than being merely discouraged. It is not a sandbox though: it has ",d.jsx("code",{children:"Bash"})," and this machine, so trust people you would let run their branch here anyway. The daemon reviews unattended, so with rules set it runs matching PRs' code with nobody watching — start it with ",d.jsx("code",{children:"--no-trust"})," to prevent that."]}),d.jsxs("p",{className:"muted settings-version",children:["cerber ",m.version]})]})}function Ob(){const l=window.location.hash,a=l.match(/^#\/r\/(.+)$/);return a?{view:"detail",key:decodeURIComponent(a[1])}:l==="#/settings"?{view:"settings"}:{view:"queue"}}const Cb={unsupported:"",blocked:"This browser blocked notifications for cerber. Turn them back on in its site settings — the padlock next to the address bar.",off:"Notifications off. Click to be told when a review is ready for you.",ask:"Click to be told when a review is ready for you — the browser will ask you first.",on:"Telling you when a review is ready for you. Click to stop."},Mb="cerber taps this machine itself when a PR is worth coming back for — no tab required. The browser's own bell would be a second popup about one PR, so it stands down. Turn the machine one off in Settings to have this browser announce them instead.";function _T({daemonAnnounces:l}){const[a,r]=wy();return l?d.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:Mb,"aria-label":Mb,children:d.jsx(Ze,{name:"bell",size:15})}):a==="unsupported"?null:d.jsx("button",{className:`topbar-link bell bell-${a}`,title:Cb[a],"aria-label":Cb[a],"aria-pressed":a==="on",onClick:r,children:d.jsx(Ze,{name:a==="on"?"bell":"bellOff",size:15})})}function ST(){const[l,a]=F.useState(Ob()),r=sT();return F.useEffect(()=>{const s=()=>a(Ob());return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[]),l.view==="detail"?d.jsx("div",{className:"app",children:d.jsx(PN,{reviewKey:l.key})}):d.jsxs("div",{className:"app",children:[d.jsx("header",{className:"topbar",children:d.jsxs("div",{className:"bar-inner",children:[d.jsxs("a",{href:"#/",className:"brand",children:[d.jsx(TS,{}),"cerber"]}),d.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),d.jsx("span",{className:"grow"}),l.view==="queue"&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"j"}),d.jsx(za,{children:"k"}),"move"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"↵"}),"open"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"r"}),"review now"]})]}),d.jsx(_T,{daemonAnnounces:r}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Ze,{name:"settings",size:15})})]})}),l.view==="queue"?d.jsx(dT,{}):d.jsx(ET,{daemonAnnounces:r})]})}pT();HE.createRoot(document.getElementById("root")).render(d.jsx(LE.StrictMode,{children:d.jsx(ST,{})}));
250
+ `),C.refs),children:"ask again"})," ",d.jsx("button",{className:"btn btn-sm",onClick:()=>u0(a).then(f).catch(H=>N(String(H.message??H))),children:"dismiss"})]})]}):d.jsx("div",{className:"chat-waiting",children:C.progress.length>0?d.jsx("ol",{className:"chat-progress",children:C.progress.map((H,R)=>d.jsx("li",{className:R===C.progress.length-1?"now":void 0,children:H},R))}):"Thinking… it re-reads the code before answering."})]})]}),p?d.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):d.jsxs(d.Fragment,{children:[r.length>0&&d.jsxs("div",{className:"chat-refs chat-refs-pending",children:[d.jsx("span",{className:"faint",children:"about:"}),r.map((H,R)=>d.jsxs("button",{className:"chat-ref",onClick:()=>u(R),title:"Remove",children:[qd(H,l)," ✕"]},R))]}),d.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,readOnly:v,placeholder:I?"steer it — it reads this before its next step":x.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:H=>b(H.target.value),title:D==="enter"?"Enter sends · Shift+Enter for a new line":"⌘↵ sends · Enter for a new line",onKeyDown:H=>{EN(D,{...H,isComposing:H.nativeEvent.isComposing})&&(H.preventDefault(),ie())}}),d.jsx(Fs,{className:"chat-turn-body",text:m}),d.jsxs("div",{className:"chat-actions",children:[d.jsxs("button",{className:"btn btn-dark",onClick:ie,disabled:v||m.trim()==="",title:I?"Add this to the turn it's working on":void 0,children:[d.jsx(Ze,{name:"send"}),v?"sending…":I?"steer":"send message",d.jsx(za,{children:D==="enter"?"↵":"⌘↵"})]}),d.jsx("span",{className:"grow"}),l.preChat&&d.jsx("button",{className:"btn btn-sm",disabled:A,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),d0(a).then(f).catch(H=>N(String(H.message??H))).finally(()=>_(!1))},children:"reset the review"})]})]}),T&&d.jsx("div",{className:"error",children:T})]})]})}function Ey(l){const a=F.useRef(null),r=F.useCallback(()=>{const s=a.current;s&&(s.style.height="auto",s.style.height=`${Math.min(s.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return F.useEffect(r,[l,r]),F.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),a}function IN({initial:l,onSave:a,onCancel:r}){const[s,u]=F.useState(l),[f,p]=F.useState(!1),[y,g]=F.useState(null),m=Ey(s),b=()=>{f||(p(!0),g(null),a(s).catch(v=>{g(String((v==null?void 0:v.message)??v)),p(!1)}))};return d.jsxs("div",{className:"body-edit-wrap",children:[d.jsx("textarea",{ref:m,className:"body-edit",autoFocus:!0,value:s,onChange:v=>u(v.target.value),rows:10,onKeyDown:v=>{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),b()),v.key==="Escape"&&!f&&r()}}),d.jsx(Fs,{className:"body-md",text:s}),y&&d.jsx("p",{className:"error",children:y}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:f,children:[f?"saving…":"save this body",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:r,disabled:f,children:"cancel"}),d.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const HN=l=>l?`@${l} — handing this review over to you.`:"";function qN({artifact:l,reviewKey:a,onConfirm:r,onCancel:s}){const[u]=F.useState(Wb),[f,p]=F.useState(""),[y,g]=F.useState(""),[m,b]=F.useState(!1),[v,_]=F.useState(!1),[T,N]=F.useState(null),[D,x]=F.useState(null),[C,I]=F.useState(null),[A,Q]=F.useState(!1),[V,ie]=F.useState(null),[H,R]=F.useState(null),[q,J]=F.useState(!1),[K,me]=F.useState(-1),ce=Ey(y),Se=F.useRef(null),he=Od(f),M=Qb(he),ee=l.summary!==""||l.comments.length>0,fe=!Sb(l)&&ee,we=Sb(l)&&l.sent==null&&ee,Le=A?JSON.stringify([l.bodyOverride,l.summary,l.chapters.map(Z=>[Z.title,Z.explanation]),l.comments.map(Z=>{var ye,Ne;return[Z.path,Z.line,Z.body,Z.severity,Z.status,Z.drifted,(ye=Z.alreadyRaised)==null?void 0:ye.decision,(Ne=Z.alreadyRaised)==null?void 0:Ne.where]})]):"";F.useEffect(()=>{if(!A)return;let Z=!1;return R(null),ie(null),Zb(a,"COMMENT").then(ye=>!Z&&ie(ye)).catch(ye=>{Z||(ie(null),R(String((ye==null?void 0:ye.message)??ye)))}),()=>{Z=!0}},[A,a,Le]);const S=!A||V!=null;F.useEffect(()=>{var Z;K<0||(Z=document.getElementById(`handoff-option-${K}`))==null||Z.scrollIntoView({block:"nearest"})},[K]);const z=F.useMemo(()=>S0(D??[],u),[D,u]),B=F.useMemo(()=>w0(z,f),[z,f]);F.useEffect(()=>{let Z=!1;return p0(a).then(ye=>!Z&&x(ye.logins)).catch(ye=>!Z&&I(String((ye==null?void 0:ye.message)??ye))),()=>{Z=!0}},[a]);const se=Z=>{p(Z),m||g(HN(Od(Z)))},pe=Z=>{se(Z),J(!1),me(-1)};F.useLayoutEffect(()=>{var Z;(Z=Se.current)==null||Z.showModal()},[]);const ve=()=>{v||!M||!S||(_(!0),N(null),r(he,y.trim(),A).catch(Z=>{N(String((Z==null?void 0:Z.message)??Z)),_(!1)}))};return d.jsx("dialog",{className:"handoff-dialog",ref:Se,"aria-label":`Hand off ${l.id}`,onCancel:Z=>{Z.preventDefault(),v||s()},onClick:Z=>{Z.target===Se.current&&!v&&s()},children:d.jsxs("div",{className:"handoff-body",children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"hand off"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:l.id})]}),d.jsxs("div",{className:"handoff-who",children:[d.jsx("span",{className:"handoff-at",children:"@"}),d.jsxs("div",{className:"handoff-combo",children:[d.jsx("input",{className:"handoff-login",autoFocus:!0,value:f,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":q&&B.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":K>=0?`handoff-option-${K}`:void 0,onFocus:()=>J(!0),onBlur:()=>J(!1),onChange:Z=>{se(Z.target.value),J(!0),me(0)},onKeyDown:Z=>{const ye=q&&B.length>0;if(Z.key==="ArrowDown"||Z.key==="ArrowUp"){if(Z.preventDefault(),!ye)return J(!0);const Ne=Z.key==="ArrowDown"?1:-1;me(Ge=>(Ge+Ne+B.length)%B.length);return}if(Z.key==="Enter"){const Ne=ye&&K>=0?B[K]:void 0;Ne&&Ne.login.toLowerCase()!==he.toLowerCase()?pe(Ne.login):ve();return}Z.key==="Escape"&&ye&&(Z.preventDefault(),J(!1),me(-1))}}),q&&B.length>0&&d.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:B.map((Z,ye)=>d.jsxs("li",{id:`handoff-option-${ye}`,role:"option","aria-selected":ye===K,className:ye===K?"on":void 0,onMouseEnter:()=>me(ye),onMouseDown:Ne=>{Ne.preventDefault(),pe(Z.login)},children:[d.jsxs("span",{className:"handoff-option-login",children:["@",Z.login]}),Z.recent&&d.jsx("span",{className:"faint",children:"handed to before"})]},Z.login))})]})]}),C&&d.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),d.jsx("textarea",{ref:ce,className:"body-edit",rows:2,value:y,onChange:Z=>{b(!0),g(Z.target.value)},onKeyDown:Z=>{Z.key==="Enter"&&(Z.metaKey||Z.ctrlKey)&&(Z.preventDefault(),ve())}}),d.jsxs("div",{className:"body-source",children:[d.jsx("span",{className:"faint",children:y.trim()?"goes on the PR as a plain comment, not a review":"nothing will be posted — only the review request moves"}),y.trim()!==""&&d.jsx("button",{className:"link",onClick:()=>{b(!0),g("")},disabled:v,children:"post no note"})]}),we&&d.jsx("p",{className:"faint handoff-says",children:"You already reviewed this PR, so this draft can't ride along — a handoff that carried it would be your second review. Send it yourself if that is what you mean."}),fe&&d.jsxs("div",{className:"handoff-with-review",children:[d.jsxs("label",{children:[d.jsx("input",{type:"checkbox",checked:A,disabled:v,onChange:Z=>Q(Z.target.checked)}),d.jsxs("span",{children:["also post the review — ",d.jsx("span",{className:"faint",children:Id(l)})]})]}),A&&d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"faint",children:["Posts as a ",d.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",M?he:"them","'s to make. The findings keep their grades."]}),H?d.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",H]}):V?d.jsx("pre",{className:"body-preview",children:V.body}):d.jsx("p",{className:"faint",children:"building the body…"})]})]}),T&&d.jsx("p",{className:"error",children:T}),d.jsxs("p",{className:"faint handoff-says",children:[M?d.jsxs(d.Fragment,{children:["@",he]}):"They"," will be asked for this review and you will be taken off it."," ",A?"This row goes under sent, with the review on the PR.":l.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),d.jsxs("div",{className:"card-actions",children:[d.jsxs("button",{className:"btn btn-sm",onClick:ve,disabled:v||!M||!S,children:[d.jsx(Ze,{name:"arrowRight"}),v?"handing over…":M?`hand off to @${he}`:"hand off",d.jsx(za,{children:"⌘↵"})]}),d.jsx("button",{className:"btn btn-sm",onClick:s,disabled:v,children:"cancel"})]})]})})}function GN({artifact:l,reviewKey:a,event:r,sending:s,checking:u,onSend:f,error:p,footer:y,next:g,onAdvance:m,onBody:b,anchorRef:v}){const[_,T]=F.useState(null),[N,D]=F.useState(null),[x,C]=F.useState(l.bodyOverride!=null),[I,A]=F.useState(!1),Q=l.bodyOverride!=null,V=l.priorSends??[];F.useEffect(()=>{Q&&C(!0)},[Q]);const ie=x&&!I?JSON.stringify([l.bodyOverride,l.summary,l.chapters.map(H=>[H.title,H.explanation]),l.comments.map(H=>{var R,q;return[H.path,H.line,H.body,H.severity,H.status,H.drifted,(R=H.alreadyRaised)==null?void 0:R.decision,(q=H.alreadyRaised)==null?void 0:q.where]})]):"";return F.useEffect(()=>{if(!x||I)return;let H=!1;return T(null),D(null),Zb(a,r).then(R=>{H||(T(R),D(null))}).catch(R=>{H||D(String(R))}),()=>{H=!0}},[a,r,ie,x,I]),l.sent?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sent-strip",ref:v,children:[d.jsxs("strong",{children:["✔ sent as ",Bd[l.sent.event]]}),d.jsxs("span",{className:"faint",children:[new Date(l.sent.at).toLocaleString()," · ",Id(l),l.sent.auto?" · auto-sent by the daemon":"",V.length>0?` · review ${wb(l)} on this PR`:""]}),d.jsx("span",{className:"grow"}),l.sent.url&&d.jsxs("a",{href:l.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",d.jsx(Ze,{name:"external"})]}),d.jsxs("button",{className:"btn",onClick:m,children:[g?`next review: ${g.pr.repo}#${g.pr.number}`:"back to the queue",d.jsx(Ze,{name:"arrowRight"})]})]}),d.jsx("div",{className:"post-actions",children:y})]}):d.jsxs("div",{className:"send-panel",ref:v,children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"send to github"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:Id(l)}),d.jsxs("button",{className:"link",onClick:()=>C(!x),disabled:I,title:I?"save or cancel the body you are writing first":void 0,children:[d.jsx(Ze,{name:"eye"}),x?"hide what gets posted":"see what gets posted"]})]}),V.length>0&&d.jsxs("p",{className:"send-note",children:["This posts review ",wb(l)+1," on this PR. What you sent before stays on GitHub — a new one sits beside it rather than replacing it."]}),d.jsx("div",{className:"send-action",children:d.jsxs("button",{className:`send-btn tone-bg-${dN[r]}`,disabled:s||u,onClick:f,children:[d.jsx(Ze,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),s?"sending…":u?"checking what others already raised…":`${Bd[r]} on ${l.id}`," ",d.jsx(za,{children:"s"})]})}),p&&d.jsx("p",{className:"error",children:p}),x&&d.jsxs(d.Fragment,{children:[N&&d.jsx("p",{className:"error",children:N}),_?I?d.jsx(IN,{initial:_.body,onSave:H=>b(H).then(()=>A(!1)),onCancel:()=>A(!1)}):d.jsxs(d.Fragment,{children:[d.jsx("pre",{className:"body-preview",children:_.body}),d.jsxs("div",{className:"body-source",children:[Q?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),d.jsx("button",{className:"link",onClick:()=>b(null).catch(H=>D(String((H==null?void 0:H.message)??H))),children:"build it from the review again"})]}):d.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),d.jsxs("button",{className:"link",onClick:()=>A(!0),children:[d.jsx(Ze,{name:"edit"}),Q?"keep editing it":"write it yourself"]})]})]}):!N&&d.jsx("p",{className:"faint",children:"building the body…"})]}),d.jsx("div",{className:"send-footer",children:y})]})}function Ab({sends:l}){const a=l[l.length-1],r=l.length===1,s=f=>new Date(f).toLocaleDateString(),u=Bd[a.event];return d.jsxs("div",{children:[d.jsxs("strong",{children:["You already sent ",r?"a review":`${l.length} reviews`," on this PR",r?"":", the last"," on ",s(a.at),r?` — ${u}`:` as ${u}`,"."]})," ",a.url?d.jsx("a",{href:a.url,target:"_blank",rel:"noreferrer",children:r?"It is still on GitHub":"The last is still on GitHub"}):r?"It is still on GitHub":"The last is still on GitHub",", untouched by the draft below — a re-review replaces what cerber holds, never what was posted. Sending this one would be review ",l.length+1,"."]})}function $N({filed:l}){var s,u,f;const a=((s=l.review)==null?void 0:s.url)??((u=l.reply)==null?void 0:u.url)??null,r=p=>new Date(p).toLocaleDateString();return l.reason==="own-reply"&&l.reply?d.jsxs("div",{children:[d.jsxs("strong",{children:["You answered on this PR on ",r(l.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",a?d.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"comment"}):"comment"," ","as a review, but the PR is with its author either way. Nothing here was changed or sent — the draft is still yours to send."]}):l.reason==="request-withdrawn"?d.jsxs("div",{children:[d.jsx("strong",{children:"Nobody is asking for this review any more."})," The request that put this PR in the inbox was taken back on or before ",r(l.at),", and you had said nothing on the PR, so cerber filed the draft under settled rather than leaving it out for you. Nothing here was changed or sent — the draft is still yours to send."]}):d.jsxs("div",{children:[d.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((f=l.review)==null?void 0:f.at)??l.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",a?d.jsx("a",{href:a,target:"_blank",rel:"noreferrer",children:"already on the PR"}):"already on the PR",". Nothing here was changed or sent — the draft is still yours to send."]})}function YN({entries:l,open:a,onToggle:r,anchorRef:s}){const u=f=>{const p=new Date(f);return Number.isNaN(p.getTime())?f:`${p.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${p.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return d.jsxs("section",{className:"card",ref:s,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"history"}),d.jsx("span",{className:"faint",children:l.length>0?`${l.length} entr${l.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),d.jsx("span",{className:"grow"}),d.jsxs("button",{className:"btn btn-sm","aria-expanded":a,onClick:r,children:[d.jsx(Ze,{name:a?"up":"down",size:12}),a?"hide":"show"]})]}),a&&d.jsx("div",{className:"card-body",children:l.length===0?d.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):d.jsx("ol",{className:"history",children:l.map((f,p)=>({e:f,i:p})).reverse().map(({e:f,i:p})=>d.jsxs("li",{className:"history-row",title:f.at,children:[d.jsx("span",{className:"history-at",children:u(f.at)}),d.jsx("span",{className:"history-by",children:f.by}),d.jsx("span",{className:"history-what",children:f.what}),f.cause&&d.jsx("span",{className:"history-cause",children:f.cause})]},`${p}-${f.at}`))})})]})}function FN({handoff:l,sent:a,hasDraft:r}){const s=new Date(l.at).toLocaleDateString();return d.jsxs("div",{children:[d.jsxs("strong",{children:["You handed this to @",l.to," on ",s,"."]})," ","GitHub asks them for this review now",l.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",l.note?l.note.url?d.jsxs(d.Fragment,{children:["A"," ",d.jsx("a",{href:l.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):d.jsx(d.Fragment,{children:"A note on the PR says so."}):d.jsx(d.Fragment,{children:"No note was posted — only the request moved."})," ",a?d.jsx(d.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?d.jsx(d.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):d.jsx(d.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function PN({artifact:l,freshness:a,rerunning:r,onRerun:s}){const u=l.status==="running",f=(a==null?void 0:a.prState)??l.pr.state,p=f==="CLOSED"||f==="MERGED",y=l.refresh,g=a!=null&&a.changed?y:null,m=!p&&hN(l,a)?l.sent:null;if(u)return d.jsxs("div",{className:"freshness",children:[(l.sent?[]:l.priorSends??[]).length>0&&d.jsx(Ab,{sends:l.priorSends??[]}),d.jsxs("div",{className:"freshness-running",children:[d.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]})]});const b=l.filed,v=l.handoff,_=l.sent?[]:l.priorSends??[];return!p&&!g&&!m&&!b&&!v&&_.length===0?null:d.jsxs("div",{className:"freshness",children:[_.length>0&&d.jsx(Ab,{sends:_}),v&&d.jsx(FN,{handoff:v,sent:l.sent,hasDraft:l.summary!==""||l.comments.length>0}),b&&d.jsx($N,{filed:b}),p&&d.jsxs("div",{children:[d.jsxs("strong",{children:["This PR is ",f==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",d.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",d.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&d.jsxs(d.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&d.jsxs(d.Fragment,{children:[g.drifted," could not — the code they point at is gone, so they will post in the review body instead of inline."," "]}),"The summary and verdict still describe the commit that was reviewed.",!l.sent&&d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]}),m&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since you sent this review."})," ",(a==null?void 0:a.headSha)&&l.pr.headSha&&d.jsxs(d.Fragment,{children:["Now at ",d.jsx("code",{children:a.headSha.slice(0,7)}),", sent at"," ",d.jsx("code",{children:l.pr.headSha.slice(0,7)}),"."," "]}),"What you sent stays exactly as it was posted — cerber never re-anchors a review that is already on GitHub. Answering the new commits means a new draft, which replaces this one here and leaves what was posted alone.",d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>s(),children:r?"starting…":"re-review at the new head"})]})]})}function KN({reviewKey:l}){var va,Wn,Ea,Jt,Fn;const[a,r]=F.useState(null),[s,u]=F.useState(null),[f,p]=F.useState(null),[y,g]=F.useState(null),[m,b]=F.useState(!1),[v,_]=F.useState([]),[T,N]=F.useState(new Set),D=G=>N(de=>new Set(de).add(G)),[x,C]=F.useState(!1),[I,A]=F.useState([]),Q=F.useRef(null),[V,ie]=F.useState(new Set),[H,R]=F.useState(new Set),q=F.useRef(Promise.resolve()),J=F.useRef(0),[K,me]=F.useState(0),ce=F.useRef(new Map),[Se]=hy(),[he,M]=F.useState(null),ee=F.useRef(null),fe=F.useRef(null),we=F.useRef(null),Le=F.useRef(null),S=F.useRef(null),z=F.useRef(null),[B,se]=F.useState(!1),pe=F.useRef(null),[ve,Z]=F.useState(!1),[ye,Ne]=F.useState(!1),[Ge,$e]=F.useState(null),[Me,Dt]=F.useState(null);F.useEffect(()=>{if(!Me)return;const G=setTimeout(()=>Dt(null),1800);return()=>clearTimeout(G)},[Me]);const Pe=G=>{var de,ge;A(Te=>Te.some(Ye=>Ye.target===G.target&&Ye.id===G.id)?Te:[...Te,G]),(de=Q.current)==null||de.scrollIntoView({behavior:"smooth",block:"center"}),(ge=Q.current)==null||ge.focus()};F.useEffect(()=>{let G=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),$e(null),Ne(!1),dg(l).then(de=>{if(!G)return r(de),o0(l).then(ge=>{G||(p(ge),ge.changed&&r(ge.artifact))}).catch(ge=>!G&&g(String(ge.message??ge))).then(()=>{if(!(G||de.sent||de.status==="running"||de.comments.length===0))return Ne(!0),h0(l).then(ge=>!G&&r(ge)).catch(()=>{}).finally(()=>!G&&Ne(!1))})}).catch(de=>!G&&u(String(de))),()=>{G=!0}},[l]),F.useEffect(()=>{Wd().then(_).catch(()=>{})},[]),F.useEffect(()=>{const G=pe.current;if(!G)return;const de=()=>document.documentElement.style.setProperty("--top-h",`${G.offsetHeight}px`);de();const ge=new ResizeObserver(de);return ge.observe(G),()=>{ge.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[a==null?void 0:a.id]);const Hn=(a==null?void 0:a.pendingChat)!=null&&a.pendingChat.error==null,it=F.useRef(null),fn=((va=a==null?void 0:a.raisedCheck)==null?void 0:va.checkingSince)!=null||ye;F.useEffect(()=>{if((a==null?void 0:a.status)!=="running"&&!Hn&&!fn)return;const G=setInterval(()=>{dg(l).then(de=>{var ge;if(r(de),de.status!=="running"){b(!1);const Te=it.current;Te!=null&&de.sent&&(((ge=de.run)==null?void 0:ge.startedAt)??"none")===Te&&u("The re-review didn't start, so nothing here changed — the review you sent is untouched. The history below says why."),it.current=null}}).catch(()=>{})},3e3);return()=>clearInterval(G)},[a==null?void 0:a.status,Hn,fn,l]);const Ot=(a==null?void 0:a.sent)!=null,Gt=F.useMemo(()=>D_(v,l,T),[v,l,T]),Wt=Gt.findIndex(G=>G.key===l),Lt=(Wt>0?Gt[Wt-1]:null)??null,vt=(Wt>=0&&Wt<Gt.length-1?Gt[Wt+1]:null)??null,Ln=G=>{window.location.hash=`#/r/${encodeURIComponent(G)}`},lt=()=>{vt?Ln(vt.key):window.location.hash="#/"},mt=F.useMemo(()=>{if(!a)return[];const G=k_(a.diff,a.chapters);return G.length>0?[...a.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:G}]:a.chapters},[a]);F.useEffect(()=>{let G=0;const de=()=>{var Re;G=0;const Ye=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--top-h"))||0,un=Ye+16;let oe=null;for(const Be of mt){const Je=(Re=ce.current.get(Be.id))==null?void 0:Re.getBoundingClientRect();Je&&Je.top<=un&&Je.bottom>un&&(oe={id:Be.id,stuck:Je.top<Ye-1})}M(Be=>(Be==null?void 0:Be.id)===(oe==null?void 0:oe.id)&&(Be==null?void 0:Be.stuck)===(oe==null?void 0:oe.stuck)?Be:oe)},ge=()=>{G||(G=requestAnimationFrame(de))};de(),window.addEventListener("scroll",ge,{passive:!0}),window.addEventListener("resize",ge);const Te=new ResizeObserver(ge);return Te.observe(document.body),()=>{cancelAnimationFrame(G),window.removeEventListener("scroll",ge),window.removeEventListener("resize",ge),Te.disconnect()}},[mt]);const At=F.useMemo(()=>{const G=O_((a==null?void 0:a.diff)??""),de=new Set(ja((a==null?void 0:a.diff)??"").filter(Te=>uf(Te.path)&&df(Te.patch).isNew).map(Te=>Te.path)),ge=Te=>{const Ye=G.get(Te)??0;return de.has(Te)?Math.round(Ye/4):Ye};return new Map(mt.map(Te=>[Te.id,Te.files.reduce((Ye,un)=>Ye+ge(un),0)]))},[a==null?void 0:a.diff,mt]),_n=G=>{const de=At.get(G)??0;return de>LN?de:null},hn=G=>V.has(G)?_n(G)!=null:_n(G)==null,qn=G=>ie(de=>{const ge=new Set(de);return ge.has(G)?ge.delete(G):ge.add(G),ge});F.useEffect(()=>{ie(new Set),R(new Set)},[l]);const Sn=F.useMemo(()=>Object.fromEntries(ja((a==null?void 0:a.diff)??"").map(G=>[G.path,C_(G.patch)])),[a==null?void 0:a.diff]),wn=F.useMemo(()=>new Set(Object.keys(Sn).filter(G=>{var de;return((de=a==null?void 0:a.viewed)==null?void 0:de[G])===Sn[G]})),[Sn,a==null?void 0:a.viewed]),It={viewed:wn,peeked:H,onToggleViewed:G=>{const de=wn.has(G)?null:Sn[G]??null;R(Te=>{const Ye=new Set(Te);return Ye.delete(G),Ye}),r(Te=>{if(!Te)return Te;const Ye={...Te.viewed};return de===null?delete Ye[G]:Ye[G]=de,{...Te,viewed:Ye}});const ge=++J.current;q.current=q.current.then(()=>a0(l,G,de)).then(Te=>{ge===J.current&&r(Ye=>Ye&&Ye.id===Te.id?{...Ye,viewed:Te.viewed}:Ye)}).catch(Te=>u(String(Te)))},onTogglePeek:G=>R(de=>{const ge=new Set(de);return ge.has(G)?ge.delete(G):ge.add(G),ge})},pn=G=>{const de=mt[G];return de?(me(G),hn(de.id)||qn(de.id),de):null},Rt=(...G)=>{for(const de of G)if(de.current)return de.current.scrollIntoView({behavior:"smooth",block:"start"})},Gn=G=>{var ge;const de=pn(G);de&&((ge=ce.current.get(de.id))==null||ge.scrollIntoView({behavior:"smooth",block:"start"}))},$n=(G,de)=>{var Te;pn(G);const ge=(Te=a==null?void 0:a.comments.find(Ye=>Ye.id===de))==null?void 0:Te.path;ge&&wn.has(ge)&&R(Ye=>new Set(Ye).add(ge)),Dt(de),by(de)},mn=fN(a==null?void 0:a.verdict);F.useEffect(()=>$e(null),[mn]);const He=()=>{!a||a.sent||ve||fn||(Z(!0),$e(null),f0(l,mn).then(({replyError:G,...de})=>{r(de),G&&$e(`Sent — but ${G}`),D(l)}).catch(G=>$e(String(G.message??G))).finally(()=>Z(!1)))};if(F.useEffect(()=>{const G=de=>{TN(de.target)||de.metaKey||de.ctrlKey||de.altKey||(de.key==="["&&Lt?Ln(Lt.key):de.key==="]"&&vt?Ln(vt.key):de.key==="n"?Gn(Math.min(mt.length-1,K+1)):de.key==="N"?Gn(Math.max(0,K-1)):de.key==="s"&&!Ot&&He())};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[Lt==null?void 0:Lt.key,vt==null?void 0:vt.key,mt,K,Ot,mn,a==null?void 0:a.sent,ve,fn]),s&&!a)return d.jsx("p",{className:"error pad",children:s});if(!a)return d.jsx("p",{className:"muted pad",children:"Loading…"});const gn=G=>{var de;b(!0),u(null),it.current=a.sent?((de=a.run)==null?void 0:de.startedAt)??"none":null,Kb(l,G).then(r).catch(ge=>{u(String(ge)),b(!1)})},Ht=G=>G.then(r).catch(de=>u(String(de))),$t=G=>lo(l,{status:G}).then(()=>{D(l),lt()}).catch(de=>u(String(de))),O=(G,de,ge)=>m0(l,{to:G,note:de,postReview:ge}).then(({artifact:Te,noteError:Ye,sendError:un,replyError:oe})=>{_0(G),r(Te),C(!1),D(l);const Re=[un&&`the review did not post: ${un}`,oe,Ye&&`the note did not post: ${Ye}`].filter(Boolean);Re.length>0?u(`Handed to @${G}, but ${Re.join("; and ")}`):lt()}),ne=(G,de)=>Ht(i0(l,G,de)),be=G=>Ht(s0(l,G)),je=G=>Ht(l0(l,G)),Qe=a.comments.filter(G=>!G.chapterId||!mt.some(de=>de.id===G.chapterId)),{inline:st,folded:Ae,dropped:_e,held:Ue,replies:Ct}=my(a),bt=a.comments.filter(G=>G.alreadyRaised&&G.status!=="dropped").length,jn=a.comments.filter(G=>G.status!=="dropped"&&G.drifted).length,Un=a.verdict?Nb[a.verdict.recommendation]:"none",ba=bN(a),Pt=gN(a),St=a.pendingChat!=null&&a.pendingChat.error==null,Kt=a.status==="running"||St,ut=()=>Ht(kd(l,{message:"Some findings were dropped, edited or re-graded after this review was drafted. Update the summary and verdict to match what still stands — do not re-review the whole PR.",refs:[{target:"verdict",id:null}]})),Yn=(G,de)=>{Ht(kd(l,{message:de,refs:[{target:"line",id:null,path:G.path,line:G.line,side:G.side}]}).then(ge=>{var Te;return(Te=Le.current)==null||Te.scrollIntoView({behavior:"smooth",block:"start"}),ge}))},ii=(Wn=a.run)!=null&&Wn.trusted?"ran the code":(Ea=a.run)!=null&&Ea.withSource?"read the full source":a.run?"read the diff only":"no run yet",ya=G=>{var de;return d.jsxs("button",{className:`verdict-pick${((de=a.verdict)==null?void 0:de.recommendation)===G?` verdict-pick-on tone-${Nb[G]}`:""}`,title:G==="approve"?"Approve":G==="comment"?"Comment without blocking":"Request changes",onClick:()=>Ht(lo(l,{verdictRecommendation:G})),children:[d.jsx(Ze,{name:wN[G]}),G.replace("_"," ")]},G)};return d.jsxs("div",{className:"review",children:[d.jsxs("div",{className:"review-top",ref:pe,children:[d.jsx("div",{className:"crumb",children:d.jsxs("div",{className:"bar-inner",children:[d.jsx("a",{href:"#/",children:"← queue"}),d.jsx("span",{className:"crumb-sep",children:"/"}),d.jsx("span",{className:"crumb-slug",children:a.id}),d.jsxs("span",{className:"walk",children:[d.jsx("button",{className:"walk-btn",disabled:!Lt,title:Lt?`[ — ${Lt.id}: ${Lt.pr.title}`:"no more reviews this way",onClick:()=>Lt&&Ln(Lt.key),children:d.jsx(Ze,{name:"chevronLeft"})}),d.jsx("button",{className:"walk-btn",disabled:!vt,title:vt?`] — ${vt.id}: ${vt.pr.title}`:"no more reviews this way",onClick:()=>vt&&Ln(vt.key),children:d.jsx(Ze,{name:"chevronRight"})})]}),Wt>=0&&d.jsxs("span",{className:"faint",children:[Wt+1," of ",Gt.length," awaiting"]}),d.jsx("span",{className:"faint crumb-next",children:vt?`next: ${vt.pr.title}`:Wt>=0?"last in the queue":""}),d.jsx("span",{className:"grow"}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Ze,{name:"settings",size:15})})]})}),d.jsx("div",{className:"review-head",children:d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"review-head-top",children:[d.jsx("a",{className:"review-title",href:a.pr.url,target:"_blank",rel:"noreferrer",children:a.pr.title}),d.jsx("span",{className:"grow"}),a.verdict&&(Ot?d.jsxs("span",{className:`chip tone-${Un}`,children:[a.verdict.recommendation.replace("_"," "),Pt&&` · ${Pt}`," · ",a.verdict.confidence,"%"]}):d.jsxs("button",{className:`chip chip-btn tone-${Un}`,title:"change it, or send — both are at the foot of the page",onClick:()=>Rt(ee,S),children:[a.verdict.recommendation.replace("_"," "),Pt&&` · ${Pt}`," · ",a.verdict.confidence,"%",d.jsx(Ze,{name:"down",size:12})]})),a.status!=="running"&&d.jsxs("button",{className:"btn btn-sm",disabled:m,title:Ot?"Draft a new review at the current head. What you sent stays on GitHub — this replaces the draft here, and sending again posts a second review":a.run?"Review the current head again — this draft is replaced, comments and all":"Draft a review of this PR",onClick:()=>gn(!0),children:[d.jsx(Ze,{name:"rerun"}),m?"starting…":a.run?"re-review at head":"review now"]})]}),d.jsxs("div",{className:"review-head-meta",children:[d.jsx("span",{children:a.pr.author}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.headRefName," → ",a.pr.baseRefName,a.pr.headSha?` · ${a.pr.headSha.slice(0,7)}`:""]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[a.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",a.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",a.pr.deletions]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:ii}),((Jt=a.run)==null?void 0:Jt.costUsd)!=null&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{title:"What this review would cost at API token rates. Riding a Claude subscription, it draws on your usage limits instead.",children:["≈$",a.run.costUsd.toFixed(2)," at API rates"]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:a.status})]})]})})]}),d.jsxs("div",{className:"wrap review-body",children:[d.jsxs("aside",{className:"rail",children:[d.jsxs("div",{className:"rail-jumps",children:[d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Rt(fe),children:"summary"}),a.verdict&&d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Rt(we),children:"why"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var G;Rt(Le),(G=Q.current)==null||G.focus()},children:"chat"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{se(!0),Rt(z)},children:"history"})]}),mt.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>Gn(0),children:"changes"}),mt.map((G,de)=>{const ge=G.files.length>0&&G.files.every(Te=>wn.has(Te));return d.jsxs("div",{className:"rail-group",children:[d.jsxs("button",{className:`rail-item${hn(G.id)?" rail-item-on":""}${ge?" rail-item-done":""}${(he==null?void 0:he.id)===G.id?" rail-item-here":""}`,onClick:()=>Gn(de),children:[d.jsxs("span",{className:"grow",children:[de+1," · ",G.title]}),d.jsxs("span",{className:"rail-count",title:ge?"every file viewed":void 0,children:[ge?"✓ ":"",G.files.length,"f"]})]}),a.comments.filter(Te=>Te.chapterId===G.id).map(Te=>d.jsxs("button",{className:`rail-comment${Te.status==="dropped"?" rail-comment-dropped":""}`,title:`${Te.path}${Te.line!=null?`:${Te.line}`:""} — ${Te.body}`,onClick:()=>$n(de,Te.id),children:[d.jsx("span",{className:`rail-dot tone-${NN(Te,Un)}`,children:"●"}),d.jsxs("span",{className:"rail-comment-loc",children:[Te.path.split("/").pop(),Te.line!=null?`:${Te.drifted?"~":""}${Te.line}`:""]})]},Te.id))]},G.id)})]}),d.jsx("button",{className:`lab rail-lab-btn${mt.length>0?" rail-lab":""}`,onClick:()=>Rt(ee,S),children:"verdict"}),d.jsxs("div",{className:"rail-facts",children:[d.jsxs("div",{children:[a.comments.length-_e.length," keeping · ",_e.length," dropped"]}),d.jsxs("div",{children:[st.length," inline · ",Ae.length," folded into body"]}),jn>0&&d.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[jn," drifted"]}),d.jsx(CN,{check:a.raisedCheck??null,raised:bt,held:Ue.length,replies:Ct.length})]})]}),d.jsxs("div",{className:"main",children:[d.jsx(PN,{artifact:a,freshness:f,rerunning:m,onRerun:gn}),y&&d.jsxs("div",{className:"freshness",title:y,children:[d.jsx("strong",{children:"Couldn't check GitHub for newer commits."})," This is the review as it was drafted — if the PR has moved on since, nothing here knows it yet."]}),s&&d.jsx("div",{className:"error",children:s}),((Fn=a.run)==null?void 0:Fn.error)&&d.jsxs("div",{className:"error",children:["Run failed: ",a.run.error]}),d.jsx("div",{className:"card card-summary",ref:fe,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"summary"}),d.jsx(ni,{className:"prose lead",text:a.summary||"(no summary)"}),!Ot&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Pe({target:"summary",id:null}),children:[d.jsx(Ze,{name:"comment"}),"discuss the summary"]})]})}),a.verdict&&d.jsx("div",{className:`card card-why tone-border-${Un}`,ref:we,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"why"}),d.jsxs("div",{className:"sev-counts",children:[xd(a)&&d.jsx("span",{title:"Live findings by grade. Only blockers block.",children:xd(a)}),xd(a)&&d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{title:"How sure the review is that its own findings and grades are right — not how good an idea merging is. That is the verdict, and it follows from the blockers.",children:[a.verdict.confidence,"% sure of the findings"]})]}),d.jsx(ni,{className:"prose lead",text:a.verdict.reasoning}),!Ot&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>Pe({target:"verdict",id:null}),children:[d.jsx(Ze,{name:"comment"}),"discuss the verdict"]})]})}),mt.map((G,de)=>d.jsx(zN,{chapter:G,n:de+1,diff:a.diff,comments:a.comments.filter(ge=>ge.chapterId===G.id),open:hn(G.id),heavy:_n(G.id),onToggle:()=>qn(G.id),onUpdateComment:ne,onDeleteComment:be,onAddComment:je,onDiscuss:Ot?void 0:Pe,onAskAboutLine:Yn,chatBusy:St,readOnly:Ot,flash:Me,viewedState:It,sticky:Se,stuck:(he==null?void 0:he.id)===G.id&&he.stuck,anchorRef:ge=>{ge?ce.current.set(G.id,ge):ce.current.delete(G.id)}},G.id)),Qe.length>0&&d.jsxs("section",{className:"card",children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"unattached comments"}),d.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),d.jsx("div",{className:"card-body",children:Qe.map(G=>d.jsx(vy,{comment:G,onUpdate:de=>ne(G.id,de),onDelete:()=>be(G.id),onDiscuss:Ot?void 0:()=>Pe({target:"comment",id:G.id}),readOnly:Ot},G.id))})]}),d.jsx(YN,{entries:a.history??[],open:B,onToggle:()=>se(G=>!G),anchorRef:z})]}),d.jsxs("aside",{className:"cockpit",children:[d.jsx(BN,{artifact:a,reviewKey:l,refs:I,onClearRefs:()=>A([]),onDropRef:G=>A(de=>de.filter((ge,Te)=>Te!==G)),onArtifact:r,readOnly:Ot,inputRef:Q,anchorRef:Le}),d.jsxs("div",{className:"cockpit-decide",children:[!Ot&&ba&&d.jsxs("div",{className:"verdict-hint",children:[d.jsxs("span",{children:[d.jsx("strong",{children:ba})," — the verdict was written before those edits."]}),d.jsxs("button",{className:"btn btn-sm",onClick:ut,disabled:St,children:[d.jsx(Ze,{name:"comment"}),St?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),a.verdict&&!Ot&&d.jsxs("div",{className:"verdict-bar",ref:ee,children:[d.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(ya)]}),d.jsx(GN,{artifact:a,reviewKey:l,event:mn,sending:ve,checking:fn,onSend:He,error:Ge,next:vt,onAdvance:lt,onBody:G=>lo(l,{bodyOverride:G}).then(r),anchorRef:S,footer:d.jsxs(d.Fragment,{children:[!Ot&&d.jsx("span",{className:"faint",children:"not sending?"}),!Ot&&d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-sm",title:vt?`Settle it locally and go to ${vt.id}`:"Settle it locally and go back to the queue",onClick:()=>$t("reviewed"),children:[d.jsx(Ze,{name:"check"}),"mark reviewed"]}),d.jsxs("button",{className:"btn btn-sm",title:vt?`Leave it and go to ${vt.id}`:"Leave it and go back to the queue",onClick:()=>$t("skipped"),children:[d.jsx(Ze,{name:"skip"}),"skip"]})]}),d.jsxs("button",{className:"btn btn-sm",title:Kt?"Wait for the run to finish — a handoff settles the row it is rewriting":"Move GitHub's review request to somebody else, and settle this row",onClick:()=>C(!0),disabled:x||Kt,children:[d.jsx(Ze,{name:"arrowRight"}),"hand off"]}),d.jsxs("a",{className:"btn btn-sm",href:g0(l),children:[d.jsx(Ze,{name:"download"}),"export .md"]})]})}),x&&d.jsx(qN,{artifact:a,reviewKey:l,onConfirm:O,onCancel:()=>C(!1)})]})]})]})]})}const Rb="cerber.notify.seen.v2",ZN="cerber.notify.seen",Gd="cerber.notify",XN=1e4,Hs=l=>l.status==="ready",$d=l=>{try{return localStorage.getItem(l)}catch{return null}},Yd=(l,a)=>{try{localStorage.setItem(l,a)}catch{}};function VN(l,a){return l?!!(l.enabled&&l.pollEnabled&&l.autoReview):a}function _y(l,a){return l.announceable===!1||l.status==="running"?!1:l.status==="awaiting"?!a:!0}const Sy=":draft",ro=l=>`${l.key}${Sy}`,wy=l=>Hs(l)?ro(l):l.key;function QN(l,a,r){const s=new Set(a);return Gs(l).filter(u=>_y(u,r)&&!s.has(wy(u)))}function WN(l,a,r=[]){const s=new Set(r),u=new Set(Gs(l).map(p=>p.key)),f=[];for(const p of l){if(u.has(p.key)&&!_y(p,a)){for(const y of[p.key,ro(p)])s.has(y)&&f.push(y);continue}f.push(p.key),(Hs(p)||!u.has(p.key)||s.has(ro(p)))&&f.push(ro(p))}return f}const Ad=l=>`${l.pr.repo}#${l.pr.number}`,JN={approve:"approves",comment:"comments",request_changes:"requests changes"};function eT(l){const a=l.verdict?JN[l.verdict.recommendation]:"drafted",r=l.blockerCount??0;return r===0?a:`${a} · ${r} blocker${r===1?"":"s"}`}function tT(l){if(l.length===0)return null;const a=`cerber:${l.map(wy).sort().join("|")}`;if(l.length===1){const u=l[0];return{title:Hs(u)?`${Ad(u)} draft ready`:`${Ad(u)} awaits your review`,body:Hs(u)?`${eT(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:a,key:u.key}}const r=l.slice(0,3).map(Ad),s=l.length-r.length;return{title:l.every(Hs)?`${l.length} drafts ready`:`${l.length} PRs await your review`,body:s>0?`${r.join(", ")} and ${s} more`:r.join(", "),tag:a,key:null}}const nT=new Set(["127.0.0.1","localhost","::1","[::1]"]);function aT(l,a=window.location.hostname){return!(l!=null&&l.enabled)||!l.notify?!1:nT.has(a)}function ql(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":$d(Gd)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function iT(){const l=ql();if(l==="unsupported"||l==="blocked")return l;if(l==="on")return Yd(Gd,"off"),ql();if(Yd(Gd,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return ql()}function lT(l){const a=new Notification(l.title,{body:l.body,tag:l.tag,icon:"/favicon.svg"});a.onclick=()=>{window.focus(),window.location.hash=l.key?`#/r/${encodeURIComponent(l.key)}`:"#/",a.close()}}function sT(l,a){const r=l??a;if(!r)return null;let s;try{s=JSON.parse(r)}catch{return null}if(!Array.isArray(s))return null;const u=s.filter(f=>typeof f=="string");return l?u:u.flatMap(f=>[f,`${f}${Sy}`])}function rT(){const l=F.useRef(null),a=F.useRef(!0),[r,s]=F.useState(!1);return F.useEffect(()=>{let u=!0;l.current=sT($d(Rb),$d(ZN));const f=()=>Promise.all([Wd(),Pb().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=aT(g);s(m),a.current=VN(g,a.current);const b=a.current,v=l.current;if(l.current=WN(y,b,v??[]),Yd(Rb,JSON.stringify(l.current)),!v||ql()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const _=tT(QN(y,v,b));_&&lT(_)}).catch(()=>{});f();const p=setInterval(f,XN);return()=>{u=!1,clearInterval(p)}},[]),r}function Ny(){const[l,a]=F.useState(ql);return F.useEffect(()=>{const r=()=>a(ql());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[l,()=>void iT().then(a)]}const oo=l=>{window.location.hash=`#/r/${encodeURIComponent(l)}`};function oT(l){const a=l,r=a==null?void 0:a.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(a==null?void 0:a.isContentEditable)===!0}function cT({daemon:l}){return l!=null&&l.enabled?d.jsx("div",{className:"daemon-bar",children:d.jsxs("div",{className:"bar-inner",children:[l.pollEnabled?d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot"}),l.repos.length>0?l.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(l.intervalMs/6e4),"m"]}):d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),d.jsxs("span",{children:["auto-review ",d.jsx("b",{children:l.autoReview?"on":"off"})]}),d.jsxs("span",{children:["auto-send ",d.jsx("b",{children:l.autoSend==="on"?"on":"shadow"})," ≥",l.autoSendThreshold,"%",l.autoSend==="on"?` · ${l.autoSent} sent`:` · ${l.autoSendCandidates} candidate${l.autoSendCandidates===1?"":"s"}`]}),l.trustedRuns&&d.jsxs("span",{className:"warn",title:"Trust rules are set and auto-review is on: reviews of matching PRs run their code unattended. Settings → Trusted PRs, or serve --no-trust.",children:[d.jsx(Ze,{name:"zap",size:12})," trusted PRs run with Bash"]}),d.jsx("span",{className:"grow"}),l.lastPollError?d.jsx("span",{className:"danger",title:l.lastPollError,children:"discovery offline — showing local reviews only"}):d.jsx("span",{className:"faint",children:l.polling?"polling now…":[l.lastSummary?`last: ${l.lastSummary}`:null,l.nextPollAt?`next ${new Date(l.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function Ji({className:l,label:a,tip:r}){return d.jsx("span",{className:l,children:d.jsxs("span",{className:"head-cell",children:[a,d.jsx("span",{className:"head-tip",role:"tooltip",children:r})]})})}function uT({r:l,selected:a,onSelect:r,onOpen:s,awaiting:u}){const f=Z_(l),p=B_(l),y=u?F_(l,u):null;return d.jsxs("div",{className:`row${a?" row-on":""}`,onClick:s,onMouseEnter:r,role:"button",tabIndex:-1,children:[d.jsx("span",{className:"col-caret",children:"›"}),d.jsxs("span",{className:"col-slug",title:`${l.pr.owner}/${l.pr.repo}#${l.pr.number}`,children:[l.pr.repo,"#",l.pr.number]}),d.jsx("span",{className:"col-author",title:l.pr.author,children:l.pr.author}),d.jsx("span",{className:"col-title",title:l.pr.title,children:l.pr.title}),l.pr.isDraft&&d.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&d.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),p&&d.jsx("span",{className:"tag tag-done",children:p}),d.jsx("span",{className:"col-comments",children:X_(l)}),d.jsx("span",{className:"col-size",children:l.pr.changedFiles>0?d.jsxs(d.Fragment,{children:[l.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",l.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",l.pr.deletions]})]}):"—"}),d.jsx("span",{className:`col-verdict tone-${f.tone}`,children:f.label}),d.jsx("span",{className:"col-age",children:Fb(l.updatedAt)})]})}function kb({autoFocus:l}){const[a,r]=F.useState(""),[s,u]=F.useState(!1),[f,p]=F.useState(null),y=g=>{g.preventDefault();const m=a.trim();!m||s||(u(!0),p(null),r0(m).then(b=>oo(b.key)).catch(b=>{p(String(b instanceof Error?b.message:b)),u(!1)}))};return d.jsxs("form",{className:"pull",onSubmit:y,children:[d.jsx(Ze,{name:"plus"}),d.jsx("input",{className:"pull-input",value:a,autoFocus:l,disabled:s,onChange:g=>{r(g.target.value),f&&p(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),a.trim()&&d.jsx("button",{className:"btn btn-small",type:"submit",disabled:s,children:s?"starting…":"review"}),f&&d.jsx("span",{className:"pull-error",children:f})]})}function dT({text:l}){const a=F.useRef(null),[r,s]=F.useState(!1);return F.useLayoutEffect(()=>{const u=a.current;if(!u)return;const f=()=>s(u.scrollHeight-u.clientHeight>4);f();const p=new ResizeObserver(f);return p.observe(u),()=>p.disconnect()},[l]),d.jsx("div",{ref:a,className:`strip-prose${r?" strip-prose-clipped":""}`,children:d.jsx(ni,{className:"prose",text:l})})}function fT(){var J;const[l,a]=F.useState(null),[r,s]=F.useState(null),[u,f]=F.useState(null),[p,y]=F.useState(new Set),[g,m]=F.useState("inbox"),[b,v]=F.useState(null),_=F.useRef(!0);F.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const T=()=>{Wd().then(K=>_.current&&a(K)).catch(K=>_.current&&f(String(K))),Pb().then(K=>_.current&&s(K)).catch(()=>{})};F.useEffect(()=>{T();const K=setInterval(T,1e4);return()=>clearInterval(K)},[]);const N=l??[],D=F.useMemo(()=>j_(N,r),[N,r]),x=D.requests,C=U_(g,D),I=D[C];F.useEffect(()=>{C!==g&&m(C)},[C,g]);const A=I.find(K=>K.key===b)??I[0]??null,Q=K=>{y(me=>new Set(me).add(K)),Kb(K).then(()=>T()).catch(me=>_.current&&f(String(me))).finally(()=>{_.current&&y(me=>{const ce=new Set(me);return ce.delete(K),ce})})};if(F.useEffect(()=>{const K=me=>{if(oT(me.target)||me.metaKey||me.ctrlKey||me.altKey)return;const ce=I.findIndex(he=>he.key===(A==null?void 0:A.key)),Se=he=>{const M=I[Math.min(I.length-1,Math.max(0,ce+he))];M&&v(M.key)};me.key==="j"||me.key==="ArrowDown"?(me.preventDefault(),Se(1)):me.key==="k"||me.key==="ArrowUp"?(me.preventDefault(),Se(-1)):me.key==="Enter"&&A?oo(A.key):me.key==="r"&&A&&A.status!=="running"&&A.status!=="sent"&&Q(A.key)};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[I,A==null?void 0:A.key]),u&&!l)return d.jsx("p",{className:"error",children:u});if(!l)return d.jsx("p",{className:"muted pad",children:"Loading…"});const V=I.reduce((K,me)=>K+(me.costUsd??0),0),ie=A?Q_(A,r):null,H=A?p.has(A.key):!1,R=Rd.filter(K=>D[K].length>0),q=K=>d.jsxs("button",{className:`tab${C===K?" tab-on":""}${Rd.includes(K)?" tab-filed":""}${K==="requests"?" tab-requests":""}`,title:Mu[K].title,onClick:()=>m(K),children:[Mu[K].label," ",d.jsx("span",{className:"tab-count",children:D[K].length})]},K);return d.jsxs(d.Fragment,{children:[d.jsx(cT,{daemon:r}),u&&d.jsx("div",{className:"wrap",children:d.jsx("p",{className:"error",children:u})}),N.length===0?d.jsx("div",{className:"wrap",children:d.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?d.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):d.jsx("p",{children:"No reviews yet."}),d.jsx(kb,{autoFocus:!0})]})}):d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"tabs",children:[M_.map(q),R.length>0&&d.jsx("span",{className:"tab-split","aria-hidden":"true"}),R.map(q),d.jsx("span",{className:"grow"}),d.jsx(kb,{}),V>0&&d.jsxs("span",{className:"faint",title:"What these reviews would cost at API token rates. Riding a Claude subscription, they draw on your usage limits instead.",children:["≈$",V.toFixed(2)," at API rates"]})]}),d.jsxs("div",{className:"table-head",children:[d.jsx("span",{className:"col-caret"}),d.jsx(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:"Inline comments in the draft (— before one exists)"}),d.jsx(Ji,{className:"col-size",label:"size",tip:"Files changed, lines added, lines removed"}),d.jsx(Ji,{className:"col-verdict",label:"verdict",tip:"Recommendation, and how sure the review is"}),d.jsx(Ji,{className:"col-age",label:"upd",tip:"When this review last changed"})]}),I.length===0?d.jsx("div",{className:"empty-tab",children:C==="inbox"&&x.length>0?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:P_(x)}),d.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[d.jsx(Ze,{name:"arrowRight"}),"show ",x.length===1?"it":`all ${x.length}`]})]}):d.jsx("p",{className:"muted",children:C==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Mu[C].label} right now.`})}):I.map(K=>d.jsx(uT,{r:K,selected:K.key===(A==null?void 0:A.key),onSelect:()=>v(K.key),onOpen:()=>oo(K.key),awaiting:z_(K,x)?I_(K,r):null},K.key)),A&&ie&&d.jsxs("div",{className:"cursor-strip",children:[d.jsxs("div",{className:"cursor-strip-body",children:[d.jsxs("div",{className:"lab",children:[A.pr.owner,"/",A.pr.repo,"#",A.pr.number,A.pr.headRefName&&A.pr.baseRefName?` · ${A.pr.headRefName} → ${A.pr.baseRefName}`:""]}),d.jsx(dT,{text:ie.reasoning}),d.jsxs("div",{className:"cursor-strip-meta",children:[ie.meta.join(" · "),((J=A.sent)==null?void 0:J.url)&&d.jsxs(d.Fragment,{children:[" · ",d.jsx("a",{href:A.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),d.jsxs("div",{className:"cursor-strip-actions",children:[d.jsxs("button",{className:"btn-primary",onClick:()=>oo(A.key),children:[d.jsx(Ze,{name:"arrowRight"}),"open review ",d.jsx(za,{children:"↵"})]}),d.jsxs("div",{className:"cursor-strip-row",children:[d.jsxs("button",{className:"btn",disabled:A.status==="sent"||A.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>lo(A.key,{status:"skipped"}).then(T).catch(K=>f(String(K))),children:[d.jsx(Ze,{name:"skip"}),"skip"]}),d.jsxs("button",{className:"btn",disabled:H||A.status==="running",title:A.status==="sent"?"Draft a review of the PR's current head. What you sent stays on GitHub.":"Draft a review of the PR's current head.",onClick:()=>Q(A.key),children:[d.jsx(Ze,{name:"rerun"}),H?"starting…":A.status==="awaiting"||A.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const bo="cerber.theme";function Ty(l){return l==="light"||l==="dark"?l:"system"}function hT(){try{return Ty(localStorage.getItem(bo))}catch{return"system"}}function xy(l,a=document.documentElement){l==="system"?delete a.dataset.theme:a.dataset.theme=l}function pT(l,a){try{const r=a??localStorage;l==="system"?r.removeItem(bo):r.setItem(bo,l)}catch{}}function mT(){Ay(xy)}function Ay(l){const a=r=>{(r.key===bo||r.key===null)&&l(Ty(r.newValue))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)}function gT(){const[l,a]=F.useState(hT);return F.useEffect(()=>Ay(a),[]),[l,s=>{pT(s),xy(s),a(s)}]}const bT=[{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"}],Ob=l=>l instanceof Error?l.message:String(l),yT={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"},vT=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}],ET=[{choice:"mod-enter",label:"⌘↵ sends a chat message, Enter starts a new line"},{choice:"enter",label:"Enter sends a chat message, Shift+Enter starts a new line"}];function _T({daemonAnnounces:l}){const[a,r]=Ny(),[s,u]=gT(),[f,p]=hy(),[y,g]=gy(),[m,b]=F.useState(null),[v,_]=F.useState(""),[T,N]=F.useState(null),[D,x]=F.useState(!1);F.useEffect(()=>{b0().then(b).catch(A=>N(Ob(A)))},[]);const C=A=>{x(!0),N(null),A.then(b).catch(Q=>N(Ob(Q))).finally(()=>x(!1))};if(T&&!m)return d.jsx("p",{className:"error",children:T});if(!m)return d.jsx("p",{className:"muted",children:"Loading…"});const I=l&&m.daemon.poll&&m.daemon.notify;return d.jsxs("div",{className:"settings",children:[d.jsx("a",{href:"#/",className:"back",children:"← queue"}),d.jsx("h1",{children:"Inbox"}),d.jsx("p",{children:"By default cerber keeps the queue itself: it polls GitHub for PRs awaiting your review and drafts a review for each, so they're ready when you open the cockpit. Nothing is ever sent without you. Changes apply on the next poll — no restart."}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.poll,disabled:D,onChange:A=>C(zu({poll:A.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",m.daemon.intervalMinutes,"m)"]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.autoReview,disabled:D||!m.daemon.poll,onChange:A=>C(zu({autoReview:A.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),d.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",d.jsx("code",{children:m.path})," under"," ",d.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),d.jsx("h1",{children:"Notifications"}),d.jsx("p",{children:'When a PR is worth coming back for, cerber says so: one desktop notification per poll. With auto-review on that moment is the draft landing, not the PR arriving — a tap that leads to "no run yet" costs you the walk back and gives you nothing — and the notification names what the review found. A PR nobody is drafting (auto-review off, or a run that failed) is announced as it lands, since that is all the news there will be — and if a retry then drafts it after all, that is new news and you are told. Several at once fold into one notification, and a PR whose draft has been announced never arrives twice, however its next re-review ends.'}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:m.daemon.notify,disabled:D||!m.daemon.poll,onChange:A=>C(zu({notify:A.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),d.jsxs("p",{className:"muted",children:["This is the one that works while you're somewhere else: it rides the poll, so it needs nothing open but ",d.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",d.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",d.jsx("strong",{children:"opens that review when you click it"}),', through a small app cerber builds for the job (the first one asks you to allow notifications from "Cerber"); a'," ",d.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:a==="on",disabled:a==="unsupported"||a==="blocked"||I,onChange:r})," ",I?"let this browser announce them instead":yT[a]]}),d.jsx("p",{className:"muted",children:I?d.jsx(d.Fragment,{children:"Standing down while the machine's own notification is on — two popups for one PR is one too many. Untick the machine one above and this browser takes over: it names the PR and opens that review on click just the same, but only while a cockpit tab is open and this browser has granted the permission."}):d.jsxs(d.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",d.jsx("code",{children:m.path}),". Granting it is the browser's prompt, not cerber's — a browser that has blocked cerber has to be un-blocked from the padlock next to the address bar. Nothing is announced while you're looking straight at the cockpit."]})}),d.jsx("h1",{id:"appearance",children:"Appearance"}),d.jsx("div",{role:"radiogroup","aria-labelledby":"appearance",children:vT.map(({choice:A,label:Q})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"theme",checked:s===A,onChange:()=>u(A)})," ",Q]},A))}),d.jsxs("p",{className:"muted",children:["Per-browser, like the notification switch: it's about this screen, not your reviews, so it lives here rather than in ",d.jsx("code",{children:m.path}),"."]}),d.jsx("h1",{children:"Review page"}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:f,onChange:A=>p(A.target.checked)})," ","keep chapter titles and file headers pinned while scrolling"]}),d.jsx("p",{className:"muted",children:"Ten files into a chapter you still see which one you're in, and the pinned title can open the chapter's explanation. Deep in a long file its name and Viewed box stay in reach. Per-browser, like the theme."}),ET.map(({choice:A,label:Q})=>d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"radio",name:"send-key",checked:y===A,onChange:()=>g(A)})," ",Q]},A)),d.jsx("p",{className:"muted",children:"In the conversation with the reviewer. ⌘↵ sends under either choice, and the other boxes — comments, the review body, a handoff note — always take ⌘↵, since what goes in them runs to several lines. Per-browser, like the theme."}),d.jsx("h1",{children:"Trusted PRs"}),d.jsxs("p",{children:["Every review reads the PR's code. A ",d.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",d.jsx("code",{children:"git log"})," — so it can report what happened instead of guessing. That means executing code from the PR on this machine, the same as checking the branch out and running the tests yourself."]}),d.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",d.jsx("code",{children:m.path}),"."]}),d.jsx("p",{className:"muted",children:'Only people can be trusted — there is no way to trust a repository. Anyone can open a PR against a repo you own, so trusting the repo would trust them too. Membership is checked against GitHub when the review runs, and a check that fails counts as "not a member".'}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:v,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:D,onChange:A=>_(A.target.value),onKeyDown:A=>{A.key==="Enter"&&!D&&v.trim()&&(C(Lu(v.trim())),_(""))}}),d.jsx("button",{className:"btn",disabled:D||!v.trim(),onClick:()=>{C(Lu(v.trim())),_("")},children:"trust"})]}),T&&d.jsx("p",{className:"error",children:T}),m.trust.length===0?d.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:m.trust.map(A=>d.jsxs("tr",{className:A.denies?"trust-deny":void 0,children:[d.jsx("td",{children:d.jsx("code",{children:A.rule})}),d.jsx("td",{className:"muted",children:A.explanation}),d.jsx("td",{className:"trust-actions",children:d.jsx("button",{className:"btn",disabled:D,onClick:()=>C(Lu(A.rule,!0)),children:"remove"})})]},A.rule))})}),d.jsx("h2",{children:"Rule syntax"}),d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:bT.map(A=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:A.rule})}),d.jsx("td",{className:"muted",children:A.meaning})]},A.rule))})}),d.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",d.jsx("code",{children:"gh"})," login, no git or ssh identity — so a push fails to authenticate rather than being merely discouraged. It is not a sandbox though: it has ",d.jsx("code",{children:"Bash"})," and this machine, so trust people you would let run their branch here anyway. The daemon reviews unattended, so with rules set it runs matching PRs' code with nobody watching — start it with ",d.jsx("code",{children:"--no-trust"})," to prevent that."]}),d.jsxs("p",{className:"muted settings-version",children:["cerber ",m.version]})]})}function Cb(){const l=window.location.hash,a=l.match(/^#\/r\/(.+)$/);return a?{view:"detail",key:decodeURIComponent(a[1])}:l==="#/settings"?{view:"settings"}:{view:"queue"}}const Mb={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."},Db="cerber taps this machine itself when a PR is worth coming back for — no tab required. The browser's own bell would be a second popup about one PR, so it stands down. Turn the machine one off in Settings to have this browser announce them instead.";function ST({daemonAnnounces:l}){const[a,r]=Ny();return l?d.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:Db,"aria-label":Db,children:d.jsx(Ze,{name:"bell",size:15})}):a==="unsupported"?null:d.jsx("button",{className:`topbar-link bell bell-${a}`,title:Mb[a],"aria-label":Mb[a],"aria-pressed":a==="on",onClick:r,children:d.jsx(Ze,{name:a==="on"?"bell":"bellOff",size:15})})}function wT(){const[l,a]=F.useState(Cb()),r=rT();return F.useEffect(()=>{const s=()=>a(Cb());return window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)},[]),l.view==="detail"?d.jsx("div",{className:"app",children:d.jsx(KN,{reviewKey:l.key})}):d.jsxs("div",{className:"app",children:[d.jsx("header",{className:"topbar",children:d.jsxs("div",{className:"bar-inner",children:[d.jsxs("a",{href:"#/",className:"brand",children:[d.jsx(xS,{}),"cerber"]}),d.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),d.jsx("span",{className:"grow"}),l.view==="queue"&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"j"}),d.jsx(za,{children:"k"}),"move"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"↵"}),"open"]}),d.jsxs("span",{className:"hint",children:[d.jsx(za,{children:"r"}),"review now"]})]}),d.jsx(ST,{daemonAnnounces:r}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(Ze,{name:"settings",size:15})})]})}),l.view==="queue"?d.jsx(fT,{}):d.jsx(_T,{daemonAnnounces:r})]})}mT();qE.createRoot(document.getElementById("root")).render(d.jsx(zE.StrictMode,{children:d.jsx(wT,{})}));