@fullstackhouse/cerber 0.27.1 → 0.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
var Xv=Object.defineProperty;var Qv=(s,i,r)=>i in s?Xv(s,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[i]=r;var Et=(s,i,r)=>Qv(s,typeof i!="symbol"?i+"":i,r);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const h of u)if(h.type==="childList")for(const g of h.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&l(g)}).observe(document,{childList:!0,subtree:!0});function r(u){const h={};return u.integrity&&(h.integrity=u.integrity),u.referrerPolicy&&(h.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?h.credentials="include":u.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function l(u){if(u.ep)return;u.ep=!0;const h=r(u);fetch(u.href,h)}})();function db(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var du={exports:{}},Os={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Sm;function Vv(){if(Sm)return Os;Sm=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(l,u,h){var g=null;if(h!==void 0&&(g=""+h),u.key!==void 0&&(g=""+u.key),"key"in u){h={};for(var v in u)v!=="key"&&(h[v]=u[v])}else h=u;return u=h.ref,{$$typeof:s,type:l,key:g,ref:u!==void 0?u:null,props:h}}return Os.Fragment=i,Os.jsx=r,Os.jsxs=r,Os}var Tm;function Jv(){return Tm||(Tm=1,du.exports=Vv()),du.exports}var d=Jv(),hu={exports:{}},He={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Nm;function Wv(){if(Nm)return He;Nm=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),g=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),_=Symbol.iterator;function x(T){return T===null||typeof T!="object"?null:(T=_&&T[_]||T["@@iterator"],typeof T=="function"?T:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,R={};function H(T,L,Y){this.props=T,this.context=L,this.refs=R,this.updater=Y||N}H.prototype.isReactComponent={},H.prototype.setState=function(T,L){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,L,"setState")},H.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function U(){}U.prototype=H.prototype;function M(T,L,Y){this.props=T,this.context=L,this.refs=R,this.updater=Y||N}var V=M.prototype=new U;V.constructor=M,C(V,H.prototype),V.isPureReactComponent=!0;var j=Array.isArray;function ee(){}var ne={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function q(T,L,Y){var re=Y.ref;return{$$typeof:s,type:T,key:L,ref:re!==void 0?re:null,props:Y}}function Q(T,L){return q(T.type,L,T.props)}function K(T){return typeof T=="object"&&T!==null&&T.$$typeof===s}function ce(T){var L={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Y){return L[Y]})}var ve=/\/+/g;function Ae(T,L){return typeof T=="object"&&T!==null&&T.key!=null?ce(""+T.key):L.toString(36)}function pe(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ee,ee):(T.status="pending",T.then(function(L){T.status==="pending"&&(T.status="fulfilled",T.value=L)},function(L){T.status==="pending"&&(T.status="rejected",T.reason=L)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function B(T,L,Y,re,Se){var we=typeof T;(we==="undefined"||we==="boolean")&&(T=null);var ye=!1;if(T===null)ye=!0;else switch(we){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(T.$$typeof){case s:case i:ye=!0;break;case b:return ye=T._init,B(ye(T._payload),L,Y,re,Se)}}if(ye)return Se=Se(T),ye=re===""?"."+Ae(T,0):re,j(Se)?(Y="",ye!=null&&(Y=ye.replace(ve,"$&/")+"/"),B(Se,L,Y,"",function(Fe){return Fe})):Se!=null&&(K(Se)&&(Se=Q(Se,Y+(Se.key==null||T&&T.key===Se.key?"":(""+Se.key).replace(ve,"$&/")+"/")+ye)),L.push(Se)),1;ye=0;var Ee=re===""?".":re+":";if(j(T))for(var Me=0;Me<T.length;Me++)re=T[Me],we=Ee+Ae(re,Me),ye+=B(re,L,Y,we,Se);else if(Me=x(T),typeof Me=="function")for(T=Me.call(T),Me=0;!(re=T.next()).done;)re=re.value,we=Ee+Ae(re,Me++),ye+=B(re,L,Y,we,Se);else if(we==="object"){if(typeof T.then=="function")return B(pe(T),L,Y,re,Se);throw L=String(T),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ye}function ie(T,L,Y){if(T==null)return T;var re=[],Se=0;return B(T,re,"","",function(we){return L.call(Y,we,Se++)}),re}function de(T){if(T._status===-1){var L=T._result;L=L(),L.then(function(Y){(T._status===0||T._status===-1)&&(T._status=1,T._result=Y)},function(Y){(T._status===0||T._status===-1)&&(T._status=2,T._result=Y)}),T._status===-1&&(T._status=0,T._result=L)}if(T._status===1)return T._result.default;throw T._result}var xe=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Ue={map:ie,forEach:function(T,L,Y){ie(T,function(){L.apply(this,arguments)},Y)},count:function(T){var L=0;return ie(T,function(){L++}),L},toArray:function(T){return ie(T,function(L){return L})||[]},only:function(T){if(!K(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return He.Activity=E,He.Children=Ue,He.Component=H,He.Fragment=r,He.Profiler=u,He.PureComponent=M,He.StrictMode=l,He.Suspense=m,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ne,He.__COMPILER_RUNTIME={__proto__:null,c:function(T){return ne.H.useMemoCache(T)}},He.cache=function(T){return function(){return T.apply(null,arguments)}},He.cacheSignal=function(){return null},He.cloneElement=function(T,L,Y){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var re=C({},T.props),Se=T.key;if(L!=null)for(we in L.key!==void 0&&(Se=""+L.key),L)!O.call(L,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&L.ref===void 0||(re[we]=L[we]);var we=arguments.length-2;if(we===1)re.children=Y;else if(1<we){for(var ye=Array(we),Ee=0;Ee<we;Ee++)ye[Ee]=arguments[Ee+2];re.children=ye}return q(T.type,Se,re)},He.createContext=function(T){return T={$$typeof:g,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:h,_context:T},T},He.createElement=function(T,L,Y){var re,Se={},we=null;if(L!=null)for(re in L.key!==void 0&&(we=""+L.key),L)O.call(L,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(Se[re]=L[re]);var ye=arguments.length-2;if(ye===1)Se.children=Y;else if(1<ye){for(var Ee=Array(ye),Me=0;Me<ye;Me++)Ee[Me]=arguments[Me+2];Se.children=Ee}if(T&&T.defaultProps)for(re in ye=T.defaultProps,ye)Se[re]===void 0&&(Se[re]=ye[re]);return q(T,we,Se)},He.createRef=function(){return{current:null}},He.forwardRef=function(T){return{$$typeof:v,render:T}},He.isValidElement=K,He.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:de}},He.memo=function(T,L){return{$$typeof:p,type:T,compare:L===void 0?null:L}},He.startTransition=function(T){var L=ne.T,Y={};ne.T=Y;try{var re=T(),Se=ne.S;Se!==null&&Se(Y,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(ee,xe)}catch(we){xe(we)}finally{L!==null&&Y.types!==null&&(L.types=Y.types),ne.T=L}},He.unstable_useCacheRefresh=function(){return ne.H.useCacheRefresh()},He.use=function(T){return ne.H.use(T)},He.useActionState=function(T,L,Y){return ne.H.useActionState(T,L,Y)},He.useCallback=function(T,L){return ne.H.useCallback(T,L)},He.useContext=function(T){return ne.H.useContext(T)},He.useDebugValue=function(){},He.useDeferredValue=function(T,L){return ne.H.useDeferredValue(T,L)},He.useEffect=function(T,L){return ne.H.useEffect(T,L)},He.useEffectEvent=function(T){return ne.H.useEffectEvent(T)},He.useId=function(){return ne.H.useId()},He.useImperativeHandle=function(T,L,Y){return ne.H.useImperativeHandle(T,L,Y)},He.useInsertionEffect=function(T,L){return ne.H.useInsertionEffect(T,L)},He.useLayoutEffect=function(T,L){return ne.H.useLayoutEffect(T,L)},He.useMemo=function(T,L){return ne.H.useMemo(T,L)},He.useOptimistic=function(T,L){return ne.H.useOptimistic(T,L)},He.useReducer=function(T,L,Y){return ne.H.useReducer(T,L,Y)},He.useRef=function(T){return ne.H.useRef(T)},He.useState=function(T){return ne.H.useState(T)},He.useSyncExternalStore=function(T,L,Y){return ne.H.useSyncExternalStore(T,L,Y)},He.useTransition=function(){return ne.H.useTransition()},He.version="19.2.8",He}var xm;function kf(){return xm||(xm=1,hu.exports=Wv()),hu.exports}var ue=kf();const eE=db(ue);var pu={exports:{}},ks={},mu={exports:{}},gu={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var wm;function tE(){return wm||(wm=1,(function(s){function i(B,ie){var de=B.length;B.push(ie);e:for(;0<de;){var xe=de-1>>>1,Ue=B[xe];if(0<u(Ue,ie))B[xe]=ie,B[de]=Ue,de=xe;else break e}}function r(B){return B.length===0?null:B[0]}function l(B){if(B.length===0)return null;var ie=B[0],de=B.pop();if(de!==ie){B[0]=de;e:for(var xe=0,Ue=B.length,T=Ue>>>1;xe<T;){var L=2*(xe+1)-1,Y=B[L],re=L+1,Se=B[re];if(0>u(Y,de))re<Ue&&0>u(Se,Y)?(B[xe]=Se,B[re]=de,xe=re):(B[xe]=Y,B[L]=de,xe=L);else if(re<Ue&&0>u(Se,de))B[xe]=Se,B[re]=de,xe=re;else break e}}return ie}function u(B,ie){var de=B.sortIndex-ie.sortIndex;return de!==0?de:B.id-ie.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;s.unstable_now=function(){return h.now()}}else{var g=Date,v=g.now();s.unstable_now=function(){return g.now()-v}}var m=[],p=[],b=1,E=null,_=3,x=!1,N=!1,C=!1,R=!1,H=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function V(B){for(var ie=r(p);ie!==null;){if(ie.callback===null)l(p);else if(ie.startTime<=B)l(p),ie.sortIndex=ie.expirationTime,i(m,ie);else break;ie=r(p)}}function j(B){if(C=!1,V(B),!N)if(r(m)!==null)N=!0,ee||(ee=!0,ce());else{var ie=r(p);ie!==null&&pe(j,ie.startTime-B)}}var ee=!1,ne=-1,O=5,q=-1;function Q(){return R?!0:!(s.unstable_now()-q<O)}function K(){if(R=!1,ee){var B=s.unstable_now();q=B;var ie=!0;try{e:{N=!1,C&&(C=!1,U(ne),ne=-1),x=!0;var de=_;try{t:{for(V(B),E=r(m);E!==null&&!(E.expirationTime>B&&Q());){var xe=E.callback;if(typeof xe=="function"){E.callback=null,_=E.priorityLevel;var Ue=xe(E.expirationTime<=B);if(B=s.unstable_now(),typeof Ue=="function"){E.callback=Ue,V(B),ie=!0;break t}E===r(m)&&l(m),V(B)}else l(m);E=r(m)}if(E!==null)ie=!0;else{var T=r(p);T!==null&&pe(j,T.startTime-B),ie=!1}}break e}finally{E=null,_=de,x=!1}ie=void 0}}finally{ie?ce():ee=!1}}}var ce;if(typeof M=="function")ce=function(){M(K)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,Ae=ve.port2;ve.port1.onmessage=K,ce=function(){Ae.postMessage(null)}}else ce=function(){H(K,0)};function pe(B,ie){ne=H(function(){B(s.unstable_now())},ie)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(B){B.callback=null},s.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<B?Math.floor(1e3/B):5},s.unstable_getCurrentPriorityLevel=function(){return _},s.unstable_next=function(B){switch(_){case 1:case 2:case 3:var ie=3;break;default:ie=_}var de=_;_=ie;try{return B()}finally{_=de}},s.unstable_requestPaint=function(){R=!0},s.unstable_runWithPriority=function(B,ie){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var de=_;_=B;try{return ie()}finally{_=de}},s.unstable_scheduleCallback=function(B,ie,de){var xe=s.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0<de?xe+de:xe):de=xe,B){case 1:var Ue=-1;break;case 2:Ue=250;break;case 5:Ue=1073741823;break;case 4:Ue=1e4;break;default:Ue=5e3}return Ue=de+Ue,B={id:b++,callback:ie,priorityLevel:B,startTime:de,expirationTime:Ue,sortIndex:-1},de>xe?(B.sortIndex=de,i(p,B),r(m)===null&&B===r(p)&&(C?(U(ne),ne=-1):C=!0,pe(j,de-xe))):(B.sortIndex=Ue,i(m,B),N||x||(N=!0,ee||(ee=!0,ce()))),B},s.unstable_shouldYield=Q,s.unstable_wrapCallback=function(B){var ie=_;return function(){var de=_;_=ie;try{return B.apply(this,arguments)}finally{_=de}}}})(gu)),gu}var Am;function nE(){return Am||(Am=1,mu.exports=tE()),mu.exports}var bu={exports:{}},_n={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Rm;function aE(){if(Rm)return _n;Rm=1;var s=kf();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(i(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 h(m,p,b){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:m,containerInfo:p,implementation:b}}var g=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return _n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,_n.createPortal=function(m,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return h(m,p,null,b)},_n.flushSync=function(m){var p=g.T,b=l.p;try{if(g.T=null,l.p=2,m)return m()}finally{g.T=p,l.p=b,l.d.f()}},_n.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(m,p))},_n.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},_n.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var b=p.as,E=v(b,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?l.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:E,integrity:_,fetchPriority:x}):b==="script"&&l.d.X(m,{crossOrigin:E,integrity:_,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},_n.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=v(p.as,p.crossOrigin);l.d.M(m,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(m)},_n.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,E=v(b,p.crossOrigin);l.d.L(m,b,{crossOrigin:E,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},_n.preloadModule=function(m,p){if(typeof m=="string")if(p){var b=v(p.as,p.crossOrigin);l.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(m)},_n.requestFormReset=function(m){l.d.r(m)},_n.unstable_batchedUpdates=function(m,p){return m(p)},_n.useFormState=function(m,p,b){return g.H.useFormState(m,p,b)},_n.useFormStatus=function(){return g.H.useHostTransitionStatus()},_n.version="19.2.8",_n}var Om;function hb(){if(Om)return bu.exports;Om=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),bu.exports=aE(),bu.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var km;function iE(){if(km)return ks;km=1;var s=nE(),i=kf(),r=hb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(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 g(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 v(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 m(e){if(h(e)!==e)throw Error(l(188))}function p(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return m(o),e;if(c===a)return m(o),t;c=c.sibling}throw Error(l(188))}if(n.return!==a.return)n=o,a=c;else{for(var f=!1,y=o.child;y;){if(y===n){f=!0,n=o,a=c;break}if(y===a){f=!0,a=o,n=c;break}y=y.sibling}if(!f){for(y=c.child;y;){if(y===n){f=!0,n=c,a=o;break}if(y===a){f=!0,a=c,n=o;break}y=y.sibling}if(!f)throw Error(l(189))}}if(n.alternate!==a)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,_=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),M=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Symbol.for("react.client.reference");function Ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case H:return"Profiler";case R:return"StrictMode";case j:return"Suspense";case ee:return"SuspenseList";case q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case M:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return t=e.displayName||null,t!==null?t:Ae(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return Ae(e(t))}catch{}}return null}var pe=Array.isArray,B=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},xe=[],Ue=-1;function T(e){return{current:e}}function L(e){0>Ue||(e.current=xe[Ue],xe[Ue]=null,Ue--)}function Y(e,t){Ue++,xe[Ue]=e.current,e.current=t}var re=T(null),Se=T(null),we=T(null),ye=T(null);function Ee(e,t){switch(Y(we,t),Y(Se,e),Y(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fp(t),e=Kp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(re),Y(re,e)}function Me(){L(re),L(Se),L(we)}function Fe(e){e.memoizedState!==null&&Y(ye,e);var t=re.current,n=Kp(t,e.type);t!==n&&(Y(Se,e),Y(re,n))}function je(e){Se.current===e&&(L(re),L(Se)),ye.current===e&&(L(ye),xs._currentValue=de)}var De,St;function Ge(e){if(De===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);De=t&&t[1]||"",St=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+De+e+St}var kn=!1;function nt(e,t){if(!e||kn)return"";kn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(P){var F=P}Reflect.construct(e,[],ae)}else{try{ae.call()}catch(P){F=P}e.call(ae.prototype)}}else{try{throw Error()}catch(P){F=P}(ae=e())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(P){if(P&&F&&typeof P.stack=="string")return[P.stack,F.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],y=c[1];if(f&&y){var A=f.split(`
|
|
44
|
+
`),$=y.split(`
|
|
45
|
+
`);for(o=a=0;a<A.length&&!A[a].includes("DetermineComponentFrameRoot");)a++;for(;o<$.length&&!$[o].includes("DetermineComponentFrameRoot");)o++;if(a===A.length||o===$.length)for(a=A.length-1,o=$.length-1;1<=a&&0<=o&&A[a]!==$[o];)o--;for(;1<=a&&0<=o;a--,o--)if(A[a]!==$[o]){if(a!==1||o!==1)do if(a--,o--,0>o||A[a]!==$[o]){var W=`
|
|
46
|
+
`+A[a].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),W}while(1<=a&&0<=o);break}}}finally{kn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ge(n):""}function Xt(e,t){switch(e.tag){case 26:case 27:case 5:return Ge(e.type);case 16:return Ge("Lazy");case 13:return e.child!==t&&t!==null?Ge("Suspense Fallback"):Ge("Suspense");case 19:return Ge("SuspenseList");case 0:case 15:return nt(e.type,!1);case 11:return nt(e.type.render,!1);case 1:return nt(e.type,!0);case 31:return Ge("Activity");default:return""}}function Nn(e){try{var t="",n=null;do t+=Xt(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Jt=Object.prototype.hasOwnProperty,gn=s.unstable_scheduleCallback,xn=s.unstable_cancelCallback,ca=s.unstable_shouldYield,Vn=s.unstable_requestPaint,Pe=s.unstable_now,zt=s.unstable_getCurrentPriorityLevel,mt=s.unstable_ImmediatePriority,bn=s.unstable_UserBlockingPriority,yn=s.unstable_NormalPriority,Mn=s.unstable_LowPriority,Cn=s.unstable_IdlePriority,Dn=s.log,Ln=s.unstable_setDisableYieldValue,rn=null,Tt=null;function Wt(e){if(typeof Dn=="function"&&Ln(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(rn,e)}catch{}}var xt=Math.clz32?Math.clz32:wn,Gn=Math.log,zn=Math.LN2;function wn(e){return e>>>=0,e===0?32:31-(Gn(e)/zn|0)|0}var Ie=256,on=262144,Qt=4194304;function Ct(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 w(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~c,a!==0?o=Ct(a):(f&=y,f!==0?o=Ct(f):n||(n=y&~e,n!==0&&(o=Ct(n))))):(y=a&~c,y!==0?o=Ct(y):f!==0?o=Ct(f):n||(n=a&~e,n!==0&&(o=Ct(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 J(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function fe(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 I(){var e=Qt;return Qt<<=1,(Qt&62914560)===0&&(Qt=4194304),e}function se(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function he(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function me(e,t,n,a,o,c){var f=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 y=e.entanglements,A=e.expirationTimes,$=e.hiddenUpdates;for(n=f&~n;0<n;){var W=31-xt(n),ae=1<<W;y[W]=0,A[W]=-1;var F=$[W];if(F!==null)for($[W]=null,W=0;W<F.length;W++){var P=F[W];P!==null&&(P.lane&=-536870913)}n&=~ae}a!==0&&be(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(f&~t))}function be(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-xt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Le(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-xt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function Rt(e,t){var n=t&-t;return n=(n&42)!==0?1:gt(n),(n&(e.suspendedLanes|t))!==0?0:n}function gt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Jn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ya(){var e=ie.p;return e!==0?e:(e=window.event,e===void 0?32:mm(e.type))}function Ja(e,t){var n=ie.p;try{return ie.p=e,t()}finally{ie.p=n}}var vn=Math.random().toString(36).slice(2),Mt="__reactFiber$"+vn,en="__reactProps$"+vn,lt="__reactContainer$"+vn,Wn="__reactEvents$"+vn,el="__reactListeners$"+vn,ka="__reactHandles$"+vn,Wa="__reactResources$"+vn,va="__reactMarker$"+vn;function ei(e){delete e[Mt],delete e[en],delete e[Wn],delete e[el],delete e[ka]}function cn(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lt]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wp(e);e!==null;){if(n=e[Mt])return n;e=Wp(e)}return t}e=n,n=e.parentNode}return null}function ua(e){if(e=e[Mt]||e[lt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ea(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function _a(e){var t=e[Wa];return t||(t=e[Wa]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[va]=!0}var Ma=new Set,An={};function fa(e,t){oe(e,t),oe(e+"Capture",t)}function oe(e,t){for(An[e]=t,e=0;e<t.length;e++)Ma.add(t[e])}var Oe=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$e={},st={};function Nt(e){return Jt.call(st,e)?!0:Jt.call($e,e)?!1:Oe.test(e)?st[e]=!0:($e[e]=!0,!1)}function Ht(e,t,n){if(Nt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function tn(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 Ut(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ot(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tl(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ti(e){if(!e._valueTracker){var t=Ot(e)?"checked":"value";e._valueTracker=tl(e,t,""+e[t])}}function ni(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Ot(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ca(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 nl=/[\n"\\]/g;function En(e){return e.replace(nl,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ai(e,t,n,a,o,c,f,y){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+rt(t)):e.value!==""+rt(t)&&(e.value=""+rt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?ii(e,f,rt(t)):n!=null?ii(e,f,rt(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+rt(y):e.removeAttribute("name")}function Da(e,t,n,a,o,c,f,y){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)){ti(e);return}n=n!=null?""+rt(n):"",t=t!=null?""+rt(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),ti(e)}function ii(e,t,n){t==="number"&&Ca(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function qt(e,t,n,a){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&&a&&(e[n].defaultSelected=!0)}else{for(n=""+rt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function La(e,t,n){if(t!=null&&(t=""+rt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+rt(n):""}function Sa(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(l(92));if(pe(a)){if(1<a.length)throw Error(l(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=rt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),ti(e)}function Z(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var S=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 D(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||S.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function X(e,t,n){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&D(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&D(e,c,t[c])}function _e(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 Ne=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Be=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Xe(e){return Be.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function le(){}var ge=null;function ke(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ke=null,Ze=null;function ea(e){var t=ua(e);if(t&&(e=t.stateNode)){var n=e[en]||null;e:switch(e=t.stateNode,t.type){case"input":if(ai(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="'+En(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[en]||null;if(!o)throw Error(l(90));ai(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&ni(a)}break e;case"textarea":La(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&qt(e,!!n.multiple,t,!1)}}}var ql=!1;function Gs(e,t,n){if(ql)return e(t,n);ql=!0;try{var a=e(t);return a}finally{if(ql=!1,(Ke!==null||Ze!==null)&&(Or(),Ke&&(t=Ke,e=Ze,Ze=Ke=null,ea(t),e)))for(t=0;t<e.length;t++)ea(e[t])}}function Gl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[en]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var za=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fo=!1;if(za)try{var $l={};Object.defineProperty($l,"passive",{get:function(){fo=!0}}),window.addEventListener("test",$l,$l),window.removeEventListener("test",$l,$l)}catch{fo=!1}var li=null,ho=null,$s=null;function Kf(){if($s)return $s;var e,t=ho,n=t.length,a,o="value"in li?li.value:li.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var f=n-e;for(a=1;a<=f&&t[n-a]===o[c-a];a++);return $s=o.slice(e,1<a?1-a:void 0)}function Ys(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 Fs(){return!0}function Pf(){return!1}function Un(e){function t(n,a,o,c,f){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Fs:Pf,this.isPropagationStopped=Pf,this}return E(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=Fs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fs)},persist:function(){},isPersistent:Fs}),t}var Di={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ks=Un(Di),Yl=E({},Di,{view:0,detail:0}),Pb=Un(Yl),po,mo,Fl,Ps=E({},Yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bo,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!==Fl&&(Fl&&e.type==="mousemove"?(po=e.screenX-Fl.screenX,mo=e.screenY-Fl.screenY):mo=po=0,Fl=e),po)},movementY:function(e){return"movementY"in e?e.movementY:mo}}),Zf=Un(Ps),Zb=E({},Ps,{dataTransfer:0}),Xb=Un(Zb),Qb=E({},Yl,{relatedTarget:0}),go=Un(Qb),Vb=E({},Di,{animationName:0,elapsedTime:0,pseudoElement:0}),Jb=Un(Vb),Wb=E({},Di,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ey=Un(Wb),ty=E({},Di,{data:0}),Xf=Un(ty),ny={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ay={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 ly(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=iy[e])?!!t[e]:!1}function bo(){return ly}var sy=E({},Yl,{key:function(e){if(e.key){var t=ny[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ys(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ay[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bo,charCode:function(e){return e.type==="keypress"?Ys(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ys(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ry=Un(sy),oy=E({},Ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qf=Un(oy),cy=E({},Yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bo}),uy=Un(cy),fy=E({},Di,{propertyName:0,elapsedTime:0,pseudoElement:0}),dy=Un(fy),hy=E({},Ps,{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}),py=Un(hy),my=E({},Di,{newState:0,oldState:0}),gy=Un(my),by=[9,13,27,32],yo=za&&"CompositionEvent"in window,Kl=null;za&&"documentMode"in document&&(Kl=document.documentMode);var yy=za&&"TextEvent"in window&&!Kl,Vf=za&&(!yo||Kl&&8<Kl&&11>=Kl),Jf=" ",Wf=!1;function ed(e,t){switch(e){case"keyup":return by.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var al=!1;function vy(e,t){switch(e){case"compositionend":return td(t);case"keypress":return t.which!==32?null:(Wf=!0,Jf);case"textInput":return e=t.data,e===Jf&&Wf?null:e;default:return null}}function Ey(e,t){if(al)return e==="compositionend"||!yo&&ed(e,t)?(e=Kf(),$s=ho=li=null,al=!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 Vf&&t.locale!=="ko"?null:t.data;default:return null}}var _y={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 nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_y[e.type]:t==="textarea"}function ad(e,t,n,a){Ke?Ze?Ze.push(a):Ze=[a]:Ke=a,t=Ur(t,"onChange"),0<t.length&&(n=new Ks("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Pl=null,Zl=null;function Sy(e){jp(e,0)}function Zs(e){var t=Ea(e);if(ni(t))return e}function id(e,t){if(e==="change")return t}var ld=!1;if(za){var vo;if(za){var Eo="oninput"in document;if(!Eo){var sd=document.createElement("div");sd.setAttribute("oninput","return;"),Eo=typeof sd.oninput=="function"}vo=Eo}else vo=!1;ld=vo&&(!document.documentMode||9<document.documentMode)}function rd(){Pl&&(Pl.detachEvent("onpropertychange",od),Zl=Pl=null)}function od(e){if(e.propertyName==="value"&&Zs(Zl)){var t=[];ad(t,Zl,e,ke(e)),Gs(Sy,t)}}function Ty(e,t,n){e==="focusin"?(rd(),Pl=t,Zl=n,Pl.attachEvent("onpropertychange",od)):e==="focusout"&&rd()}function Ny(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zs(Zl)}function xy(e,t){if(e==="click")return Zs(t)}function wy(e,t){if(e==="input"||e==="change")return Zs(t)}function Ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:Ay;function Xl(e,t){if($n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!Jt.call(t,o)||!$n(e[o],t[o]))return!1}return!0}function cd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ud(e,t){var n=cd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cd(n)}}function fd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ca(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=Ca(e.document)}return t}function _o(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 Ry=za&&"documentMode"in document&&11>=document.documentMode,il=null,So=null,Ql=null,To=!1;function hd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;To||il==null||il!==Ca(a)||(a=il,"selectionStart"in a&&_o(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ql&&Xl(Ql,a)||(Ql=a,a=Ur(So,"onSelect"),0<a.length&&(t=new Ks("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=il)))}function Li(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ll={animationend:Li("Animation","AnimationEnd"),animationiteration:Li("Animation","AnimationIteration"),animationstart:Li("Animation","AnimationStart"),transitionrun:Li("Transition","TransitionRun"),transitionstart:Li("Transition","TransitionStart"),transitioncancel:Li("Transition","TransitionCancel"),transitionend:Li("Transition","TransitionEnd")},No={},pd={};za&&(pd=document.createElement("div").style,"AnimationEvent"in window||(delete ll.animationend.animation,delete ll.animationiteration.animation,delete ll.animationstart.animation),"TransitionEvent"in window||delete ll.transitionend.transition);function zi(e){if(No[e])return No[e];if(!ll[e])return e;var t=ll[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in pd)return No[e]=t[n];return e}var md=zi("animationend"),gd=zi("animationiteration"),bd=zi("animationstart"),Oy=zi("transitionrun"),ky=zi("transitionstart"),My=zi("transitioncancel"),yd=zi("transitionend"),vd=new Map,xo="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(" ");xo.push("scrollEnd");function da(e,t){vd.set(e,t),fa(t,[e])}var Xs=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)},ta=[],sl=0,wo=0;function Qs(){for(var e=sl,t=wo=sl=0;t<e;){var n=ta[t];ta[t++]=null;var a=ta[t];ta[t++]=null;var o=ta[t];ta[t++]=null;var c=ta[t];if(ta[t++]=null,a!==null&&o!==null){var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}c!==0&&Ed(n,o,c)}}function Vs(e,t,n,a){ta[sl++]=e,ta[sl++]=t,ta[sl++]=n,ta[sl++]=a,wo|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ao(e,t,n,a){return Vs(e,t,n,a),Js(e)}function Ui(e,t){return Vs(e,null,null,t),Js(e)}function Ed(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.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-xt(n),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),c):null}function Js(e){if(50<ys)throw ys=0,Uc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var rl={};function Cy(e,t,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yn(e,t,n,a){return new Cy(e,t,n,a)}function Ro(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ua(e,t){var n=e.alternate;return n===null?(n=Yn(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 _d(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 Ws(e,t,n,a,o,c){var f=0;if(a=e,typeof e=="function")Ro(e)&&(f=1);else if(typeof e=="string")f=Bv(e,n,re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case q:return e=Yn(31,n,t,o),e.elementType=q,e.lanes=c,e;case C:return Bi(n.children,o,c,t);case R:f=8,o|=24;break;case H:return e=Yn(12,n,t,o|2),e.elementType=H,e.lanes=c,e;case j:return e=Yn(13,n,t,o),e.elementType=j,e.lanes=c,e;case ee:return e=Yn(19,n,t,o),e.elementType=ee,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:f=10;break e;case U:f=9;break e;case V:f=11;break e;case ne:f=14;break e;case O:f=16,a=null;break e}f=29,n=Error(l(130,e===null?"null":typeof e,"")),a=null}return t=Yn(f,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function Bi(e,t,n,a){return e=Yn(7,e,a,t),e.lanes=n,e}function Oo(e,t,n){return e=Yn(6,e,null,t),e.lanes=n,e}function Sd(e){var t=Yn(18,null,null,0);return t.stateNode=e,t}function ko(e,t,n){return t=Yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Td=new WeakMap;function na(e,t){if(typeof e=="object"&&e!==null){var n=Td.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Nn(t)},Td.set(e,t),t)}return{value:e,source:t,stack:Nn(t)}}var ol=[],cl=0,er=null,Vl=0,aa=[],ia=0,si=null,Ta=1,Na="";function Ba(e,t){ol[cl++]=Vl,ol[cl++]=er,er=e,Vl=t}function Nd(e,t,n){aa[ia++]=Ta,aa[ia++]=Na,aa[ia++]=si,si=e;var a=Ta;e=Na;var o=32-xt(a)-1;a&=~(1<<o),n+=1;var c=32-xt(t)+o;if(30<c){var f=o-o%5;c=(a&(1<<f)-1).toString(32),a>>=f,o-=f,Ta=1<<32-xt(t)+o|n<<o|a,Na=c+e}else Ta=1<<c|n<<o|a,Na=e}function Mo(e){e.return!==null&&(Ba(e,1),Nd(e,1,0))}function Co(e){for(;e===er;)er=ol[--cl],ol[cl]=null,Vl=ol[--cl],ol[cl]=null;for(;e===si;)si=aa[--ia],aa[ia]=null,Na=aa[--ia],aa[ia]=null,Ta=aa[--ia],aa[ia]=null}function xd(e,t){aa[ia++]=Ta,aa[ia++]=Na,aa[ia++]=si,Ta=t.id,Na=t.overflow,si=e}var un=null,wt=null,at=!1,ri=null,la=!1,Do=Error(l(519));function oi(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jl(na(t,e)),Do}function wd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Mt]=e,t[en]=a,n){case"dialog":Ve("cancel",t),Ve("close",t);break;case"iframe":case"object":case"embed":Ve("load",t);break;case"video":case"audio":for(n=0;n<Es.length;n++)Ve(Es[n],t);break;case"source":Ve("error",t);break;case"img":case"image":case"link":Ve("error",t),Ve("load",t);break;case"details":Ve("toggle",t);break;case"input":Ve("invalid",t),Da(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ve("invalid",t);break;case"textarea":Ve("invalid",t),Sa(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||$p(t.textContent,n)?(a.popover!=null&&(Ve("beforetoggle",t),Ve("toggle",t)),a.onScroll!=null&&Ve("scroll",t),a.onScrollEnd!=null&&Ve("scrollend",t),a.onClick!=null&&(t.onclick=le),t=!0):t=!1,t||oi(e,!0)}function Ad(e){for(un=e.return;un;)switch(un.tag){case 5:case 31:case 13:la=!1;return;case 27:case 3:la=!0;return;default:un=un.return}}function ul(e){if(e!==un)return!1;if(!at)return Ad(e),at=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Vc(e.type,e.memoizedProps)),n=!n),n&&wt&&oi(e),Ad(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));wt=Jp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));wt=Jp(e)}else t===27?(t=wt,Si(e.type)?(e=nu,nu=null,wt=e):wt=t):wt=un?ra(e.stateNode.nextSibling):null;return!0}function Ii(){wt=un=null,at=!1}function Lo(){var e=ri;return e!==null&&(Hn===null?Hn=e:Hn.push.apply(Hn,e),ri=null),e}function Jl(e){ri===null?ri=[e]:ri.push(e)}var zo=T(null),ji=null,Ia=null;function ci(e,t,n){Y(zo,t._currentValue),t._currentValue=n}function ja(e){e._currentValue=zo.current,L(zo)}function Uo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Bo(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var f=o.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=o;for(var A=0;A<t.length;A++)if(y.context===t[A]){c.lanes|=n,y=c.alternate,y!==null&&(y.lanes|=n),Uo(c.return,n,e),a||(f=null);break e}c=y.next}}else if(o.tag===18){if(f=o.return,f===null)throw Error(l(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),Uo(f,n,e),f=null}else f=o.child;if(f!==null)f.return=o;else for(f=o;f!==null;){if(f===e){f=null;break}if(o=f.sibling,o!==null){o.return=f.return,f=o;break}f=f.return}o=f}}function fl(e,t,n,a){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 f=o.alternate;if(f===null)throw Error(l(387));if(f=f.memoizedProps,f!==null){var y=o.type;$n(o.pendingProps.value,f.value)||(e!==null?e.push(y):e=[y])}}else if(o===ye.current){if(f=o.alternate,f===null)throw Error(l(387));f.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(xs):e=[xs])}o=o.return}e!==null&&Bo(t,e,n,a),t.flags|=262144}function tr(e){for(e=e.firstContext;e!==null;){if(!$n(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hi(e){ji=e,Ia=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function fn(e){return Rd(ji,e)}function nr(e,t){return ji===null&&Hi(e),Rd(e,t)}function Rd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ia===null){if(e===null)throw Error(l(308));Ia=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ia=Ia.next=t;return n}var Dy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Ly=s.unstable_scheduleCallback,zy=s.unstable_NormalPriority,Gt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Io(){return{controller:new Dy,data:new Map,refCount:0}}function Wl(e){e.refCount--,e.refCount===0&&Ly(zy,function(){e.controller.abort()})}var es=null,jo=0,dl=0,hl=null;function Uy(e,t){if(es===null){var n=es=[];jo=0,dl=Gc(),hl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return jo++,t.then(Od,Od),t}function Od(){if(--jo===0&&es!==null){hl!==null&&(hl.status="fulfilled");var e=es;es=null,dl=0,hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function By(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var kd=B.S;B.S=function(e,t){hp=Pe(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Uy(e,t),kd!==null&&kd(e,t)};var qi=T(null);function Ho(){var e=qi.current;return e!==null?e:_t.pooledCache}function ar(e,t){t===null?Y(qi,qi.current):Y(qi,t.pool)}function Md(){var e=Ho();return e===null?null:{parent:Gt._currentValue,pool:e}}var pl=Error(l(460)),qo=Error(l(474)),ir=Error(l(542)),lr={then:function(){}};function Cd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Dd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(le,le),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zd(e),e;default:if(typeof t.status=="string")t.then(le,le);else{if(e=_t,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zd(e),e}throw $i=t,pl}}function Gi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?($i=n,pl):n}}var $i=null;function Ld(){if($i===null)throw Error(l(459));var e=$i;return $i=null,e}function zd(e){if(e===pl||e===ir)throw Error(l(483))}var ml=null,ts=0;function sr(e){var t=ts;return ts+=1,ml===null&&(ml=[]),Dd(ml,e,t)}function ns(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function rr(e,t){throw t.$$typeof===_?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ud(e){function t(z,k){if(e){var G=z.deletions;G===null?(z.deletions=[k],z.flags|=16):G.push(k)}}function n(z,k){if(!e)return null;for(;k!==null;)t(z,k),k=k.sibling;return null}function a(z){for(var k=new Map;z!==null;)z.key!==null?k.set(z.key,z):k.set(z.index,z),z=z.sibling;return k}function o(z,k){return z=Ua(z,k),z.index=0,z.sibling=null,z}function c(z,k,G){return z.index=G,e?(G=z.alternate,G!==null?(G=G.index,G<k?(z.flags|=67108866,k):G):(z.flags|=67108866,k)):(z.flags|=1048576,k)}function f(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function y(z,k,G,te){return k===null||k.tag!==6?(k=Oo(G,z.mode,te),k.return=z,k):(k=o(k,G),k.return=z,k)}function A(z,k,G,te){var Ce=G.type;return Ce===C?W(z,k,G.props.children,te,G.key):k!==null&&(k.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===O&&Gi(Ce)===k.type)?(k=o(k,G.props),ns(k,G),k.return=z,k):(k=Ws(G.type,G.key,G.props,null,z.mode,te),ns(k,G),k.return=z,k)}function $(z,k,G,te){return k===null||k.tag!==4||k.stateNode.containerInfo!==G.containerInfo||k.stateNode.implementation!==G.implementation?(k=ko(G,z.mode,te),k.return=z,k):(k=o(k,G.children||[]),k.return=z,k)}function W(z,k,G,te,Ce){return k===null||k.tag!==7?(k=Bi(G,z.mode,te,Ce),k.return=z,k):(k=o(k,G),k.return=z,k)}function ae(z,k,G){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=Oo(""+k,z.mode,G),k.return=z,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case x:return G=Ws(k.type,k.key,k.props,null,z.mode,G),ns(G,k),G.return=z,G;case N:return k=ko(k,z.mode,G),k.return=z,k;case O:return k=Gi(k),ae(z,k,G)}if(pe(k)||ce(k))return k=Bi(k,z.mode,G,null),k.return=z,k;if(typeof k.then=="function")return ae(z,sr(k),G);if(k.$$typeof===M)return ae(z,nr(z,k),G);rr(z,k)}return null}function F(z,k,G,te){var Ce=k!==null?k.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Ce!==null?null:y(z,k,""+G,te);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case x:return G.key===Ce?A(z,k,G,te):null;case N:return G.key===Ce?$(z,k,G,te):null;case O:return G=Gi(G),F(z,k,G,te)}if(pe(G)||ce(G))return Ce!==null?null:W(z,k,G,te,null);if(typeof G.then=="function")return F(z,k,sr(G),te);if(G.$$typeof===M)return F(z,k,nr(z,G),te);rr(z,G)}return null}function P(z,k,G,te,Ce){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return z=z.get(G)||null,y(k,z,""+te,Ce);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case x:return z=z.get(te.key===null?G:te.key)||null,A(k,z,te,Ce);case N:return z=z.get(te.key===null?G:te.key)||null,$(k,z,te,Ce);case O:return te=Gi(te),P(z,k,G,te,Ce)}if(pe(te)||ce(te))return z=z.get(G)||null,W(k,z,te,Ce,null);if(typeof te.then=="function")return P(z,k,G,sr(te),Ce);if(te.$$typeof===M)return P(z,k,G,nr(k,te),Ce);rr(k,te)}return null}function Te(z,k,G,te){for(var Ce=null,ot=null,Re=k,Ye=k=0,et=null;Re!==null&&Ye<G.length;Ye++){Re.index>Ye?(et=Re,Re=null):et=Re.sibling;var ct=F(z,Re,G[Ye],te);if(ct===null){Re===null&&(Re=et);break}e&&Re&&ct.alternate===null&&t(z,Re),k=c(ct,k,Ye),ot===null?Ce=ct:ot.sibling=ct,ot=ct,Re=et}if(Ye===G.length)return n(z,Re),at&&Ba(z,Ye),Ce;if(Re===null){for(;Ye<G.length;Ye++)Re=ae(z,G[Ye],te),Re!==null&&(k=c(Re,k,Ye),ot===null?Ce=Re:ot.sibling=Re,ot=Re);return at&&Ba(z,Ye),Ce}for(Re=a(Re);Ye<G.length;Ye++)et=P(Re,z,Ye,G[Ye],te),et!==null&&(e&&et.alternate!==null&&Re.delete(et.key===null?Ye:et.key),k=c(et,k,Ye),ot===null?Ce=et:ot.sibling=et,ot=et);return e&&Re.forEach(function(Ai){return t(z,Ai)}),at&&Ba(z,Ye),Ce}function ze(z,k,G,te){if(G==null)throw Error(l(151));for(var Ce=null,ot=null,Re=k,Ye=k=0,et=null,ct=G.next();Re!==null&&!ct.done;Ye++,ct=G.next()){Re.index>Ye?(et=Re,Re=null):et=Re.sibling;var Ai=F(z,Re,ct.value,te);if(Ai===null){Re===null&&(Re=et);break}e&&Re&&Ai.alternate===null&&t(z,Re),k=c(Ai,k,Ye),ot===null?Ce=Ai:ot.sibling=Ai,ot=Ai,Re=et}if(ct.done)return n(z,Re),at&&Ba(z,Ye),Ce;if(Re===null){for(;!ct.done;Ye++,ct=G.next())ct=ae(z,ct.value,te),ct!==null&&(k=c(ct,k,Ye),ot===null?Ce=ct:ot.sibling=ct,ot=ct);return at&&Ba(z,Ye),Ce}for(Re=a(Re);!ct.done;Ye++,ct=G.next())ct=P(Re,z,Ye,ct.value,te),ct!==null&&(e&&ct.alternate!==null&&Re.delete(ct.key===null?Ye:ct.key),k=c(ct,k,Ye),ot===null?Ce=ct:ot.sibling=ct,ot=ct);return e&&Re.forEach(function(Zv){return t(z,Zv)}),at&&Ba(z,Ye),Ce}function vt(z,k,G,te){if(typeof G=="object"&&G!==null&&G.type===C&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case x:e:{for(var Ce=G.key;k!==null;){if(k.key===Ce){if(Ce=G.type,Ce===C){if(k.tag===7){n(z,k.sibling),te=o(k,G.props.children),te.return=z,z=te;break e}}else if(k.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===O&&Gi(Ce)===k.type){n(z,k.sibling),te=o(k,G.props),ns(te,G),te.return=z,z=te;break e}n(z,k);break}else t(z,k);k=k.sibling}G.type===C?(te=Bi(G.props.children,z.mode,te,G.key),te.return=z,z=te):(te=Ws(G.type,G.key,G.props,null,z.mode,te),ns(te,G),te.return=z,z=te)}return f(z);case N:e:{for(Ce=G.key;k!==null;){if(k.key===Ce)if(k.tag===4&&k.stateNode.containerInfo===G.containerInfo&&k.stateNode.implementation===G.implementation){n(z,k.sibling),te=o(k,G.children||[]),te.return=z,z=te;break e}else{n(z,k);break}else t(z,k);k=k.sibling}te=ko(G,z.mode,te),te.return=z,z=te}return f(z);case O:return G=Gi(G),vt(z,k,G,te)}if(pe(G))return Te(z,k,G,te);if(ce(G)){if(Ce=ce(G),typeof Ce!="function")throw Error(l(150));return G=Ce.call(G),ze(z,k,G,te)}if(typeof G.then=="function")return vt(z,k,sr(G),te);if(G.$$typeof===M)return vt(z,k,nr(z,G),te);rr(z,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,k!==null&&k.tag===6?(n(z,k.sibling),te=o(k,G),te.return=z,z=te):(n(z,k),te=Oo(G,z.mode,te),te.return=z,z=te),f(z)):n(z,k)}return function(z,k,G,te){try{ts=0;var Ce=vt(z,k,G,te);return ml=null,Ce}catch(Re){if(Re===pl||Re===ir)throw Re;var ot=Yn(29,Re,null,z.mode);return ot.lanes=te,ot.return=z,ot}finally{}}}var Yi=Ud(!0),Bd=Ud(!1),ui=!1;function Go(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $o(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 fi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function di(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ut&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Js(e),Ed(e,null,n),t}return Vs(e,a,t,n),Js(e)}function as(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Le(e,n)}}function Yo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Fo=!1;function is(){if(Fo){var e=hl;if(e!==null)throw e}}function ls(e,t,n,a){Fo=!1;var o=e.updateQueue;ui=!1;var c=o.firstBaseUpdate,f=o.lastBaseUpdate,y=o.shared.pending;if(y!==null){o.shared.pending=null;var A=y,$=A.next;A.next=null,f===null?c=$:f.next=$,f=A;var W=e.alternate;W!==null&&(W=W.updateQueue,y=W.lastBaseUpdate,y!==f&&(y===null?W.firstBaseUpdate=$:y.next=$,W.lastBaseUpdate=A))}if(c!==null){var ae=o.baseState;f=0,W=$=A=null,y=c;do{var F=y.lane&-536870913,P=F!==y.lane;if(P?(We&F)===F:(a&F)===F){F!==0&&F===dl&&(Fo=!0),W!==null&&(W=W.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var Te=e,ze=y;F=t;var vt=n;switch(ze.tag){case 1:if(Te=ze.payload,typeof Te=="function"){ae=Te.call(vt,ae,F);break e}ae=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=ze.payload,F=typeof Te=="function"?Te.call(vt,ae,F):Te,F==null)break e;ae=E({},ae,F);break e;case 2:ui=!0}}F=y.callback,F!==null&&(e.flags|=64,P&&(e.flags|=8192),P=o.callbacks,P===null?o.callbacks=[F]:P.push(F))}else P={lane:F,tag:y.tag,payload:y.payload,callback:y.callback,next:null},W===null?($=W=P,A=ae):W=W.next=P,f|=F;if(y=y.next,y===null){if(y=o.shared.pending,y===null)break;P=y,y=P.next,P.next=null,o.lastBaseUpdate=P,o.shared.pending=null}}while(!0);W===null&&(A=ae),o.baseState=A,o.firstBaseUpdate=$,o.lastBaseUpdate=W,c===null&&(o.shared.lanes=0),bi|=f,e.lanes=f,e.memoizedState=ae}}function Id(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function jd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Id(n[e],t)}var gl=T(null),or=T(0);function Hd(e,t){e=Za,Y(or,e),Y(gl,t),Za=e|t.baseLanes}function Ko(){Y(or,Za),Y(gl,gl.current)}function Po(){Za=or.current,L(gl),L(or)}var Fn=T(null),sa=null;function hi(e){var t=e.alternate;Y(Bt,Bt.current&1),Y(Fn,e),sa===null&&(t===null||gl.current!==null||t.memoizedState!==null)&&(sa=e)}function Zo(e){Y(Bt,Bt.current),Y(Fn,e),sa===null&&(sa=e)}function qd(e){e.tag===22?(Y(Bt,Bt.current),Y(Fn,e),sa===null&&(sa=e)):pi()}function pi(){Y(Bt,Bt.current),Y(Fn,Fn.current)}function Kn(e){L(Fn),sa===e&&(sa=null),L(Bt)}var Bt=T(0);function cr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||eu(n)||tu(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 Ha=0,qe=null,bt=null,$t=null,ur=!1,bl=!1,Fi=!1,fr=0,ss=0,yl=null,Iy=0;function Dt(){throw Error(l(321))}function Xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function Qo(e,t,n,a,o,c){return Ha=c,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Nh:fc,Fi=!1,c=n(a,o),Fi=!1,bl&&(c=$d(t,n,a,o)),Gd(e),c}function Gd(e){B.H=cs;var t=bt!==null&&bt.next!==null;if(Ha=0,$t=bt=qe=null,ur=!1,ss=0,yl=null,t)throw Error(l(300));e===null||Yt||(e=e.dependencies,e!==null&&tr(e)&&(Yt=!0))}function $d(e,t,n,a){qe=e;var o=0;do{if(bl&&(yl=null),ss=0,bl=!1,25<=o)throw Error(l(301));if(o+=1,$t=bt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}B.H=xh,c=t(n,a)}while(bl);return c}function jy(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?rs(t):t,e=e.useState()[0],(bt!==null?bt.memoizedState:null)!==e&&(qe.flags|=1024),t}function Vo(){var e=fr!==0;return fr=0,e}function Jo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Wo(e){if(ur){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ur=!1}Ha=0,$t=bt=qe=null,bl=!1,ss=fr=0,yl=null}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?qe.memoizedState=$t=e:$t=$t.next=e,$t}function It(){if(bt===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var t=$t===null?qe.memoizedState:$t.next;if(t!==null)$t=t,bt=e;else{if(e===null)throw qe.alternate===null?Error(l(467)):Error(l(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},$t===null?qe.memoizedState=$t=e:$t=$t.next=e}return $t}function dr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rs(e){var t=ss;return ss+=1,yl===null&&(yl=[]),e=Dd(yl,e,t),t=qe,($t===null?t.memoizedState:$t.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Nh:fc),e}function hr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return rs(e);if(e.$$typeof===M)return fn(e)}throw Error(l(438,String(e)))}function ec(e){var t=null,n=qe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=qe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=dr(),qe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Q;return t.index++,n}function qa(e,t){return typeof t=="function"?t(e):t}function pr(e){var t=It();return tc(t,bt,e)}function tc(e,t,n){var a=e.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var f=o.next;o.next=c.next,c.next=f}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var y=f=null,A=null,$=t,W=!1;do{var ae=$.lane&-536870913;if(ae!==$.lane?(We&ae)===ae:(Ha&ae)===ae){var F=$.revertLane;if(F===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),ae===dl&&(W=!0);else if((Ha&F)===F){$=$.next,F===dl&&(W=!0);continue}else ae={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},A===null?(y=A=ae,f=c):A=A.next=ae,qe.lanes|=F,bi|=F;ae=$.action,Fi&&n(c,ae),c=$.hasEagerState?$.eagerState:n(c,ae)}else F={lane:ae,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},A===null?(y=A=F,f=c):A=A.next=F,qe.lanes|=ae,bi|=ae;$=$.next}while($!==null&&$!==t);if(A===null?f=c:A.next=y,!$n(c,e.memoizedState)&&(Yt=!0,W&&(n=hl,n!==null)))throw n;e.memoizedState=c,e.baseState=f,e.baseQueue=A,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function nc(e){var t=It(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var f=o=o.next;do c=e(c,f.action),f=f.next;while(f!==o);$n(c,t.memoizedState)||(Yt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Yd(e,t,n){var a=qe,o=It(),c=at;if(c){if(n===void 0)throw Error(l(407));n=n()}else n=t();var f=!$n((bt||o).memoizedState,n);if(f&&(o.memoizedState=n,Yt=!0),o=o.queue,lc(Pd.bind(null,a,o,e),[e]),o.getSnapshot!==t||f||$t!==null&&$t.memoizedState.tag&1){if(a.flags|=2048,vl(9,{destroy:void 0},Kd.bind(null,a,o,n,t),null),_t===null)throw Error(l(349));c||(Ha&127)!==0||Fd(a,t,n)}return n}function Fd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=qe.updateQueue,t===null?(t=dr(),qe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Kd(e,t,n,a){t.value=n,t.getSnapshot=a,Zd(t)&&Xd(e)}function Pd(e,t,n){return n(function(){Zd(t)&&Xd(e)})}function Zd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function Xd(e){var t=Ui(e,2);t!==null&&qn(t,e,2)}function ac(e){var t=Rn();if(typeof e=="function"){var n=e;if(e=n(),Fi){Wt(!0);try{n()}finally{Wt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:e},t}function Qd(e,t,n,a){return e.baseState=n,tc(e,bt,typeof a=="function"?a:qa)}function Hy(e,t,n,a,o){if(br(e))throw Error(l(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};B.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Vd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Vd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=B.T,f={};B.T=f;try{var y=n(o,a),A=B.S;A!==null&&A(f,y),Jd(e,t,y)}catch($){ic(e,t,$)}finally{c!==null&&f.types!==null&&(c.types=f.types),B.T=c}}else try{c=n(o,a),Jd(e,t,c)}catch($){ic(e,t,$)}}function Jd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Wd(e,t,a)},function(a){return ic(e,t,a)}):Wd(e,t,n)}function Wd(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,Vd(e,n)))}function ic(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,eh(t),t=t.next;while(t!==a)}e.action=null}function eh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function th(e,t){return t}function nh(e,t){if(at){var n=_t.formState;if(n!==null){e:{var a=qe;if(at){if(wt){t:{for(var o=wt,c=la;o.nodeType!==8;){if(!c){o=null;break t}if(o=ra(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){wt=ra(o.nextSibling),a=o.data==="F!";break e}}oi(a)}a=!1}a&&(t=n[0])}}return n=Rn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:th,lastRenderedState:t},n.queue=a,n=_h.bind(null,qe,a),a.dispatch=n,a=ac(!1),c=uc.bind(null,qe,!1,a.queue),a=Rn(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=Hy.bind(null,qe,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function ah(e){var t=It();return ih(t,bt,e)}function ih(e,t,n){if(t=tc(e,t,th)[0],e=pr(qa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=rs(t)}catch(f){throw f===pl?ir:f}else a=t;t=It();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(qe.flags|=2048,vl(9,{destroy:void 0},qy.bind(null,o,n),null)),[a,c,e]}function qy(e,t){e.action=t}function lh(e){var t=It(),n=bt;if(n!==null)return ih(t,n,e);It(),t=t.memoizedState,n=It();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function vl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=qe.updateQueue,t===null&&(t=dr(),qe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function sh(){return It().memoizedState}function mr(e,t,n,a){var o=Rn();qe.flags|=e,o.memoizedState=vl(1|t,{destroy:void 0},n,a===void 0?null:a)}function gr(e,t,n,a){var o=It();a=a===void 0?null:a;var c=o.memoizedState.inst;bt!==null&&a!==null&&Xo(a,bt.memoizedState.deps)?o.memoizedState=vl(t,c,n,a):(qe.flags|=e,o.memoizedState=vl(1|t,c,n,a))}function rh(e,t){mr(8390656,8,e,t)}function lc(e,t){gr(2048,8,e,t)}function Gy(e){qe.flags|=4;var t=qe.updateQueue;if(t===null)t=dr(),qe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function oh(e){var t=It().memoizedState;return Gy({ref:t,nextImpl:e}),function(){if((ut&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function ch(e,t){return gr(4,2,e,t)}function uh(e,t){return gr(4,4,e,t)}function fh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dh(e,t,n){n=n!=null?n.concat([e]):null,gr(4,4,fh.bind(null,t,e),n)}function sc(){}function hh(e,t){var n=It();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Xo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function ph(e,t){var n=It();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Xo(t,a[1]))return a[0];if(a=e(),Fi){Wt(!0);try{e()}finally{Wt(!1)}}return n.memoizedState=[a,t],a}function rc(e,t,n){return n===void 0||(Ha&1073741824)!==0&&(We&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=mp(),qe.lanes|=e,bi|=e,n)}function mh(e,t,n,a){return $n(n,t)?n:gl.current!==null?(e=rc(e,n,a),$n(e,t)||(Yt=!0),e):(Ha&42)===0||(Ha&1073741824)!==0&&(We&261930)===0?(Yt=!0,e.memoizedState=n):(e=mp(),qe.lanes|=e,bi|=e,t)}function gh(e,t,n,a,o){var c=ie.p;ie.p=c!==0&&8>c?c:8;var f=B.T,y={};B.T=y,uc(e,!1,t,n);try{var A=o(),$=B.S;if($!==null&&$(y,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var W=By(A,a);os(e,t,W,Xn(e))}else os(e,t,a,Xn(e))}catch(ae){os(e,t,{then:function(){},status:"rejected",reason:ae},Xn())}finally{ie.p=c,f!==null&&y.types!==null&&(f.types=y.types),B.T=f}}function $y(){}function oc(e,t,n,a){if(e.tag!==5)throw Error(l(476));var o=bh(e).queue;gh(e,o,t,de,n===null?$y:function(){return yh(e),n(a)})}function bh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yh(e){var t=bh(e);t.next===null&&(t=e.alternate.memoizedState),os(e,t.next.queue,{},Xn())}function cc(){return fn(xs)}function vh(){return It().memoizedState}function Eh(){return It().memoizedState}function Yy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xn();e=fi(n);var a=di(t,e,n);a!==null&&(qn(a,t,n),as(a,t,n)),t={cache:Io()},e.payload=t;return}t=t.return}}function Fy(e,t,n){var a=Xn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},br(e)?Sh(t,n):(n=Ao(e,t,n,a),n!==null&&(qn(n,e,a),Th(n,t,a)))}function _h(e,t,n){var a=Xn();os(e,t,n,a)}function os(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(br(e))Sh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var f=t.lastRenderedState,y=c(f,n);if(o.hasEagerState=!0,o.eagerState=y,$n(y,f))return Vs(e,t,o,0),_t===null&&Qs(),!1}catch{}finally{}if(n=Ao(e,t,o,a),n!==null)return qn(n,e,a),Th(n,t,a),!0}return!1}function uc(e,t,n,a){if(a={lane:2,revertLane:Gc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},br(e)){if(t)throw Error(l(479))}else t=Ao(e,n,a,2),t!==null&&qn(t,e,2)}function br(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function Sh(e,t){bl=ur=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Th(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Le(e,n)}}var cs={readContext:fn,use:hr,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useLayoutEffect:Dt,useInsertionEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useSyncExternalStore:Dt,useId:Dt,useHostTransitionStatus:Dt,useFormState:Dt,useActionState:Dt,useOptimistic:Dt,useMemoCache:Dt,useCacheRefresh:Dt};cs.useEffectEvent=Dt;var Nh={readContext:fn,use:hr,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:fn,useEffect:rh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,mr(4194308,4,fh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mr(4194308,4,e,t)},useInsertionEffect:function(e,t){mr(4,2,e,t)},useMemo:function(e,t){var n=Rn();t=t===void 0?null:t;var a=e();if(Fi){Wt(!0);try{e()}finally{Wt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Rn();if(n!==void 0){var o=n(t);if(Fi){Wt(!0);try{n(t)}finally{Wt(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=Fy.bind(null,qe,e),[a.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:function(e){e=ac(e);var t=e.queue,n=_h.bind(null,qe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:sc,useDeferredValue:function(e,t){var n=Rn();return rc(n,e,t)},useTransition:function(){var e=ac(!1);return e=gh.bind(null,qe,e.queue,!0,!1),Rn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=qe,o=Rn();if(at){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),_t===null)throw Error(l(349));(We&127)!==0||Fd(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,rh(Pd.bind(null,a,c,e),[e]),a.flags|=2048,vl(9,{destroy:void 0},Kd.bind(null,a,c,n,t),null),n},useId:function(){var e=Rn(),t=_t.identifierPrefix;if(at){var n=Na,a=Ta;n=(a&~(1<<32-xt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=fr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Iy++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:cc,useFormState:nh,useActionState:nh,useOptimistic:function(e){var t=Rn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=uc.bind(null,qe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ec,useCacheRefresh:function(){return Rn().memoizedState=Yy.bind(null,qe)},useEffectEvent:function(e){var t=Rn(),n={impl:e};return t.memoizedState=n,function(){if((ut&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},fc={readContext:fn,use:hr,useCallback:hh,useContext:fn,useEffect:lc,useImperativeHandle:dh,useInsertionEffect:ch,useLayoutEffect:uh,useMemo:ph,useReducer:pr,useRef:sh,useState:function(){return pr(qa)},useDebugValue:sc,useDeferredValue:function(e,t){var n=It();return mh(n,bt.memoizedState,e,t)},useTransition:function(){var e=pr(qa)[0],t=It().memoizedState;return[typeof e=="boolean"?e:rs(e),t]},useSyncExternalStore:Yd,useId:vh,useHostTransitionStatus:cc,useFormState:ah,useActionState:ah,useOptimistic:function(e,t){var n=It();return Qd(n,bt,e,t)},useMemoCache:ec,useCacheRefresh:Eh};fc.useEffectEvent=oh;var xh={readContext:fn,use:hr,useCallback:hh,useContext:fn,useEffect:lc,useImperativeHandle:dh,useInsertionEffect:ch,useLayoutEffect:uh,useMemo:ph,useReducer:nc,useRef:sh,useState:function(){return nc(qa)},useDebugValue:sc,useDeferredValue:function(e,t){var n=It();return bt===null?rc(n,e,t):mh(n,bt.memoizedState,e,t)},useTransition:function(){var e=nc(qa)[0],t=It().memoizedState;return[typeof e=="boolean"?e:rs(e),t]},useSyncExternalStore:Yd,useId:vh,useHostTransitionStatus:cc,useFormState:lh,useActionState:lh,useOptimistic:function(e,t){var n=It();return bt!==null?Qd(n,bt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ec,useCacheRefresh:Eh};xh.useEffectEvent=oh;function dc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:E({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Xn(),o=fi(a);o.payload=t,n!=null&&(o.callback=n),t=di(e,o,a),t!==null&&(qn(t,e,a),as(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Xn(),o=fi(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=di(e,o,a),t!==null&&(qn(t,e,a),as(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xn(),a=fi(n);a.tag=2,t!=null&&(a.callback=t),t=di(e,a,n),t!==null&&(qn(t,e,n),as(t,e,n))}};function wh(e,t,n,a,o,c,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,f):t.prototype&&t.prototype.isPureReactComponent?!Xl(n,a)||!Xl(o,c):!0}function Ah(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&hc.enqueueReplaceState(t,t.state,null)}function Ki(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=E({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Rh(e){Xs(e)}function Oh(e){console.error(e)}function kh(e){Xs(e)}function yr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Mh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function pc(e,t,n){return n=fi(n),n.tag=3,n.payload={element:null},n.callback=function(){yr(e,t)},n}function Ch(e){return e=fi(e),e.tag=3,e}function Dh(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=a.value;e.payload=function(){return o(c)},e.callback=function(){Mh(t,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Mh(t,n,a),typeof o!="function"&&(yi===null?yi=new Set([this]):yi.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Ky(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&fl(t,n,o,!0),n=Fn.current,n!==null){switch(n.tag){case 31:case 13:return sa===null?kr():n.alternate===null&&Lt===0&&(Lt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===lr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),jc(e,a,o)),!1;case 22:return n.flags|=65536,a===lr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),jc(e,a,o)),!1}throw Error(l(435,n.tag))}return jc(e,a,o),kr(),!1}if(at)return t=Fn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Do&&(e=Error(l(422),{cause:a}),Jl(na(e,n)))):(a!==Do&&(t=Error(l(423),{cause:a}),Jl(na(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=na(a,n),o=pc(e.stateNode,a,o),Yo(e,o),Lt!==4&&(Lt=2)),!1;var c=Error(l(520),{cause:a});if(c=na(c,n),bs===null?bs=[c]:bs.push(c),Lt!==4&&(Lt=2),t===null)return!0;a=na(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=pc(n.stateNode,a,e),Yo(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"&&(yi===null||!yi.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Ch(o),Dh(o,e,n,a),Yo(n,o),!1}n=n.return}while(n!==null);return!1}var mc=Error(l(461)),Yt=!1;function dn(e,t,n,a){t.child=e===null?Bd(t,null,n,a):Yi(t,e.child,n,a)}function Lh(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var f={};for(var y in a)y!=="ref"&&(f[y]=a[y])}else f=a;return Hi(t),a=Qo(e,t,n,f,c,o),y=Vo(),e!==null&&!Yt?(Jo(e,t,o),Ga(e,t,o)):(at&&y&&Mo(t),t.flags|=1,dn(e,t,a,o),t.child)}function zh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!Ro(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Uh(e,t,c,a,o)):(e=Ws(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Tc(e,o)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Xl,n(f,a)&&e.ref===t.ref)return Ga(e,t,o)}return t.flags|=1,e=Ua(c,a),e.ref=t.ref,e.return=t,t.child=e}function Uh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(Xl(c,a)&&e.ref===t.ref)if(Yt=!1,t.pendingProps=a=c,Tc(e,o))(e.flags&131072)!==0&&(Yt=!0);else return t.lanes=e.lanes,Ga(e,t,o)}return gc(e,t,n,a,o)}function Bh(e,t,n,a){var o=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~c}else a=0,t.child=null;return Ih(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ar(t,c!==null?c.cachePool:null),c!==null?Hd(t,c):Ko(),qd(t);else return a=t.lanes=536870912,Ih(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(ar(t,c.cachePool),Hd(t,c),pi(),t.memoizedState=null):(e!==null&&ar(t,null),Ko(),pi());return dn(e,t,o,n),t.child}function us(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ih(e,t,n,a,o){var c=Ho();return c=c===null?null:{parent:Gt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ar(t,null),Ko(),qd(t),e!==null&&fl(e,t,a,!0),t.childLanes=o,null}function vr(e,t){return t=_r({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function jh(e,t,n){return Yi(t,e.child,null,n),e=vr(t,t.pendingProps),e.flags|=2,Kn(t),t.memoizedState=null,e}function Py(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(at){if(a.mode==="hidden")return e=vr(t,a),t.lanes=536870912,us(null,e);if(Zo(t),(e=wt)?(e=Vp(e,la),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:si!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=Sd(e),n.return=t,t.child=n,un=t,wt=null)):e=null,e===null)throw oi(t);return t.lanes=536870912,null}return vr(t,a)}var c=e.memoizedState;if(c!==null){var f=c.dehydrated;if(Zo(t),o)if(t.flags&256)t.flags&=-257,t=jh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(Yt||fl(e,t,n,!1),o=(n&e.childLanes)!==0,Yt||o){if(a=_t,a!==null&&(f=Rt(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,Ui(e,f),qn(a,e,f),mc;kr(),t=jh(e,t,n)}else e=c.treeContext,wt=ra(f.nextSibling),un=t,at=!0,ri=null,la=!1,e!==null&&xd(t,e),t=vr(t,a),t.flags|=4096;return t}return e=Ua(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Er(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(l(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gc(e,t,n,a,o){return Hi(t),n=Qo(e,t,n,a,void 0,o),a=Vo(),e!==null&&!Yt?(Jo(e,t,o),Ga(e,t,o)):(at&&a&&Mo(t),t.flags|=1,dn(e,t,n,o),t.child)}function Hh(e,t,n,a,o,c){return Hi(t),t.updateQueue=null,n=$d(t,a,n,o),Gd(e),a=Vo(),e!==null&&!Yt?(Jo(e,t,c),Ga(e,t,c)):(at&&a&&Mo(t),t.flags|=1,dn(e,t,n,c),t.child)}function qh(e,t,n,a,o){if(Hi(t),t.stateNode===null){var c=rl,f=n.contextType;typeof f=="object"&&f!==null&&(c=fn(f)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=hc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},Go(t),f=n.contextType,c.context=typeof f=="object"&&f!==null?fn(f):rl,c.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(dc(t,n,f,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&hc.enqueueReplaceState(c,c.state,null),ls(t,a,c,o),is(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,A=Ki(n,y);c.props=A;var $=c.context,W=n.contextType;f=rl,typeof W=="object"&&W!==null&&(f=fn(W));var ae=n.getDerivedStateFromProps;W=typeof ae=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,W||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||$!==f)&&Ah(t,c,a,f),ui=!1;var F=t.memoizedState;c.state=F,ls(t,a,c,o),is(),$=t.memoizedState,y||F!==$||ui?(typeof ae=="function"&&(dc(t,n,ae,a),$=t.memoizedState),(A=ui||wh(t,n,A,a,F,$,f))?(W||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=a,t.memoizedState=$),c.props=a,c.state=$,c.context=f,a=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,$o(e,t),f=t.memoizedProps,W=Ki(n,f),c.props=W,ae=t.pendingProps,F=c.context,$=n.contextType,A=rl,typeof $=="object"&&$!==null&&(A=fn($)),y=n.getDerivedStateFromProps,($=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==ae||F!==A)&&Ah(t,c,a,A),ui=!1,F=t.memoizedState,c.state=F,ls(t,a,c,o),is();var P=t.memoizedState;f!==ae||F!==P||ui||e!==null&&e.dependencies!==null&&tr(e.dependencies)?(typeof y=="function"&&(dc(t,n,y,a),P=t.memoizedState),(W=ui||wh(t,n,W,a,F,P,A)||e!==null&&e.dependencies!==null&&tr(e.dependencies))?($||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,P,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,P,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=P),c.props=a,c.state=P,c.context=A,a=W):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Er(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=Yi(t,e.child,null,o),t.child=Yi(t,null,n,o)):dn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ga(e,t,o),e}function Gh(e,t,n,a){return Ii(),t.flags|=256,dn(e,t,n,a),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yc(e){return{baseLanes:e,cachePool:Md()}}function vc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zn),e}function $h(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(Bt.current&2)!==0),f&&(o=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(at){if(o?hi(t):pi(),(e=wt)?(e=Vp(e,la),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:si!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=Sd(e),n.return=t,t.child=n,un=t,wt=null)):e=null,e===null)throw oi(t);return tu(e)?t.lanes=32:t.lanes=536870912,null}var y=a.children;return a=a.fallback,o?(pi(),o=t.mode,y=_r({mode:"hidden",children:y},o),a=Bi(a,o,n,null),y.return=t,a.return=t,y.sibling=a,t.child=y,a=t.child,a.memoizedState=yc(n),a.childLanes=vc(e,f,n),t.memoizedState=bc,us(null,a)):(hi(t),Ec(t,y))}var A=e.memoizedState;if(A!==null&&(y=A.dehydrated,y!==null)){if(c)t.flags&256?(hi(t),t.flags&=-257,t=_c(e,t,n)):t.memoizedState!==null?(pi(),t.child=e.child,t.flags|=128,t=null):(pi(),y=a.fallback,o=t.mode,a=_r({mode:"visible",children:a.children},o),y=Bi(y,o,n,null),y.flags|=2,a.return=t,y.return=t,a.sibling=y,t.child=a,Yi(t,e.child,null,n),a=t.child,a.memoizedState=yc(n),a.childLanes=vc(e,f,n),t.memoizedState=bc,t=us(null,a));else if(hi(t),tu(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var $=f.dgst;f=$,a=Error(l(419)),a.stack="",a.digest=f,Jl({value:a,source:null,stack:null}),t=_c(e,t,n)}else if(Yt||fl(e,t,n,!1),f=(n&e.childLanes)!==0,Yt||f){if(f=_t,f!==null&&(a=Rt(f,n),a!==0&&a!==A.retryLane))throw A.retryLane=a,Ui(e,a),qn(f,e,a),mc;eu(y)||kr(),t=_c(e,t,n)}else eu(y)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,wt=ra(y.nextSibling),un=t,at=!0,ri=null,la=!1,e!==null&&xd(t,e),t=Ec(t,a.children),t.flags|=4096);return t}return o?(pi(),y=a.fallback,o=t.mode,A=e.child,$=A.sibling,a=Ua(A,{mode:"hidden",children:a.children}),a.subtreeFlags=A.subtreeFlags&65011712,$!==null?y=Ua($,y):(y=Bi(y,o,n,null),y.flags|=2),y.return=t,a.return=t,a.sibling=y,t.child=a,us(null,a),a=t.child,y=e.child.memoizedState,y===null?y=yc(n):(o=y.cachePool,o!==null?(A=Gt._currentValue,o=o.parent!==A?{parent:A,pool:A}:o):o=Md(),y={baseLanes:y.baseLanes|n,cachePool:o}),a.memoizedState=y,a.childLanes=vc(e,f,n),t.memoizedState=bc,us(e.child,a)):(hi(t),n=e.child,e=n.sibling,n=Ua(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=n,t.memoizedState=null,n)}function Ec(e,t){return t=_r({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _r(e,t){return e=Yn(22,e,null,t),e.lanes=0,e}function _c(e,t,n){return Yi(t,e.child,null,n),e=Ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Uo(e.return,t,n)}function Sc(e,t,n,a,o,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=o,f.treeForkCount=c)}function Fh(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var f=Bt.current,y=(f&2)!==0;if(y?(f=f&1|2,t.flags|=128):f&=1,Y(Bt,f),dn(e,t,a,n),a=at?Vl:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yh(e,n,t);else if(e.tag===19)Yh(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&&cr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Sc(t,!1,o,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&cr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Sc(t,!0,n,null,c,a);break;case"together":Sc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Ga(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bi|=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(l(153));if(t.child!==null){for(e=t.child,n=Ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&tr(e)))}function Zy(e,t,n){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),ci(t,Gt,e.memoizedState.cache),Ii();break;case 27:case 5:Fe(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:ci(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Zo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(hi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?$h(e,t,n):(hi(t),e=Ga(e,t,n),e!==null?e.sibling:null);hi(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(fl(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return Fh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(Bt,Bt.current),a)break;return null;case 22:return t.lanes=0,Bh(e,t,n,t.pendingProps);case 24:ci(t,Gt,e.memoizedState.cache)}return Ga(e,t,n)}function Kh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Yt=!0;else{if(!Tc(e,n)&&(t.flags&128)===0)return Yt=!1,Zy(e,t,n);Yt=(e.flags&131072)!==0}else Yt=!1,at&&(t.flags&1048576)!==0&&Nd(t,Vl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Gi(t.elementType),t.type=e,typeof e=="function")Ro(e)?(a=Ki(e,a),t.tag=1,t=qh(null,t,e,a,n)):(t.tag=0,t=gc(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===V){t.tag=11,t=Lh(null,t,e,a,n);break e}else if(o===ne){t.tag=14,t=zh(null,t,e,a,n);break e}}throw t=Ae(e)||e,Error(l(306,t,""))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Ki(a,t.pendingProps),qh(e,t,a,o,n);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(l(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,$o(e,t),ls(t,a,null,n);var f=t.memoizedState;if(a=f.cache,ci(t,Gt,a),a!==c.cache&&Bo(t,[Gt],n,!0),is(),a=f.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Gh(e,t,a,n);break e}else if(a!==o){o=na(Error(l(424)),t),Jl(o),t=Gh(e,t,a,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(wt=ra(e.firstChild),un=t,at=!0,ri=null,la=!0,n=Bd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ii(),a===o){t=Ga(e,t,n);break e}dn(e,t,a,n)}t=t.child}return t;case 26:return Er(e,t),e===null?(n=am(t.type,null,t.pendingProps,null))?t.memoizedState=n:at||(n=t.type,e=t.pendingProps,a=Br(we.current).createElement(n),a[Mt]=t,a[en]=e,hn(a,n,e),ft(a),t.stateNode=a):t.memoizedState=am(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Fe(t),e===null&&at&&(a=t.stateNode=em(t.type,t.pendingProps,we.current),un=t,la=!0,o=wt,Si(t.type)?(nu=o,wt=ra(a.firstChild)):wt=o),dn(e,t,t.pendingProps.children,n),Er(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&at&&((o=a=wt)&&(a=Nv(a,t.type,t.pendingProps,la),a!==null?(t.stateNode=a,un=t,wt=ra(a.firstChild),la=!1,o=!0):o=!1),o||oi(t)),Fe(t),o=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,a=c.children,Vc(o,c)?a=null:f!==null&&Vc(o,f)&&(t.flags|=32),t.memoizedState!==null&&(o=Qo(e,t,jy,null,null,n),xs._currentValue=o),Er(e,t),dn(e,t,a,n),t.child;case 6:return e===null&&at&&((e=n=wt)&&(n=xv(n,t.pendingProps,la),n!==null?(t.stateNode=n,un=t,wt=null,e=!0):e=!1),e||oi(t)),null;case 13:return $h(e,t,n);case 4:return Ee(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Yi(t,null,a,n):dn(e,t,a,n),t.child;case 11:return Lh(e,t,t.type,t.pendingProps,n);case 7:return dn(e,t,t.pendingProps,n),t.child;case 8:return dn(e,t,t.pendingProps.children,n),t.child;case 12:return dn(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,ci(t,t.type,a.value),dn(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Hi(t),o=fn(o),a=a(o),t.flags|=1,dn(e,t,a,n),t.child;case 14:return zh(e,t,t.type,t.pendingProps,n);case 15:return Uh(e,t,t.type,t.pendingProps,n);case 19:return Fh(e,t,n);case 31:return Py(e,t,n);case 22:return Bh(e,t,n,t.pendingProps);case 24:return Hi(t),a=fn(Gt),e===null?(o=Ho(),o===null&&(o=_t,c=Io(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},Go(t),ci(t,Gt,o)):((e.lanes&n)!==0&&($o(e,t),ls(t,null,null,n),is()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),ci(t,Gt,a)):(a=c.cache,ci(t,Gt,a),a!==o.cache&&Bo(t,[Gt],n,!0))),dn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function $a(e){e.flags|=4}function Nc(e,t,n,a,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(vp())e.flags|=8192;else throw $i=lr,qo}else e.flags&=-16777217}function Ph(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!om(t))if(vp())e.flags|=8192;else throw $i=lr,qo}function Sr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?I():536870912,e.lanes|=t,Tl|=t)}function fs(e,t){if(!at)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function At(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Xy(e,t,n){var a=t.pendingProps;switch(Co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(t),null;case 1:return At(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ja(Gt),Me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ul(t)?$a(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Lo())),At(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?($a(t),c!==null?(At(t),Ph(t,c)):(At(t),Nc(t,o,null,a,n))):c?c!==e.memoizedState?($a(t),At(t),Ph(t,c)):(At(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&$a(t),At(t),Nc(t,o,e,a,n)),null;case 27:if(je(t),n=we.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return At(t),null}e=re.current,ul(t)?wd(t):(e=em(o,a,n),t.stateNode=e,$a(t))}return At(t),null;case 5:if(je(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return At(t),null}if(c=re.current,ul(t))wd(t);else{var f=Br(we.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(o,{is:a.is}):f.createElement(o)}}c[Mt]=t,c[en]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=c;e:switch(hn(c,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&$a(t)}}return At(t),Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(l(166));if(e=we.current,ul(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=un,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[Mt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||$p(e.nodeValue,n)),e||oi(t,!0)}else e=Br(e).createTextNode(a),e[Mt]=t,t.stateNode=e}return At(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=ul(t),n!==null){if(e===null){if(!a)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Mt]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;At(t),e=!1}else n=Lo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Kn(t),t):(Kn(t),null);if((t.flags&128)!==0)throw Error(l(558))}return At(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ul(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[Mt]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;At(t),o=!1}else o=Lo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Kn(t),t):(Kn(t),null)}return Kn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Sr(t,t.updateQueue),At(t),null);case 4:return Me(),e===null&&Kc(t.stateNode.containerInfo),At(t),null;case 10:return ja(t.type),At(t),null;case 19:if(L(Bt),a=t.memoizedState,a===null)return At(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)fs(a,!1);else{if(Lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=cr(e),c!==null){for(t.flags|=128,fs(a,!1),e=c.updateQueue,t.updateQueue=e,Sr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)_d(n,e),n=n.sibling;return Y(Bt,Bt.current&1|2),at&&Ba(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Pe()>Ar&&(t.flags|=128,o=!0,fs(a,!1),t.lanes=4194304)}else{if(!o)if(e=cr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Sr(t,e),fs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!at)return At(t),null}else 2*Pe()-a.renderingStartTime>Ar&&n!==536870912&&(t.flags|=128,o=!0,fs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Pe(),e.sibling=null,n=Bt.current,Y(Bt,o?n&1|2:n&1),at&&Ba(t,a.treeForkCount),e):(At(t),null);case 22:case 23:return Kn(t),Po(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(At(t),t.subtreeFlags&6&&(t.flags|=8192)):At(t),n=t.updateQueue,n!==null&&Sr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&L(qi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ja(Gt),At(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function Qy(e,t){switch(Co(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ja(Gt),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return je(t),null;case 31:if(t.memoizedState!==null){if(Kn(t),t.alternate===null)throw Error(l(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Bt),null;case 4:return Me(),null;case 10:return ja(t.type),null;case 22:case 23:return Kn(t),Po(),e!==null&&L(qi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ja(Gt),null;case 25:return null;default:return null}}function Zh(e,t){switch(Co(t),t.tag){case 3:ja(Gt),Me();break;case 26:case 27:case 5:je(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&Kn(t);break;case 13:Kn(t);break;case 19:L(Bt);break;case 10:ja(t.type);break;case 22:case 23:Kn(t),Po(),e!==null&&L(qi);break;case 24:ja(Gt)}}function ds(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,f=n.inst;a=c(),f.destroy=a}n=n.next}while(n!==o)}}catch(y){ht(t,t.return,y)}}function mi(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var f=a.inst,y=f.destroy;if(y!==void 0){f.destroy=void 0,o=t;var A=n,$=y;try{$()}catch(W){ht(o,A,W)}}}a=a.next}while(a!==c)}}catch(W){ht(t,t.return,W)}}function Xh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{jd(t,n)}catch(a){ht(e,e.return,a)}}}function Qh(e,t,n){n.props=Ki(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){ht(e,t,a)}}function hs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){ht(e,t,o)}}function xa(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){ht(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){ht(e,t,o)}else n.current=null}function Vh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){ht(e,e.return,o)}}function xc(e,t,n){try{var a=e.stateNode;yv(a,e.type,n,t),a[en]=t}catch(o){ht(e,e.return,o)}}function Jh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Si(e.type)||e.tag===4}function wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jh(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&&Si(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 Ac(e,t,n){var a=e.tag;if(a===5||a===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=le));else if(a!==4&&(a===27&&Si(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ac(e,t,n),e=e.sibling;e!==null;)Ac(e,t,n),e=e.sibling}function Tr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Si(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Tr(e,t,n),e=e.sibling;e!==null;)Tr(e,t,n),e=e.sibling}function Wh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);hn(t,a,n),t[Mt]=e,t[en]=n}catch(c){ht(e,e.return,c)}}var Ya=!1,Ft=!1,Rc=!1,ep=typeof WeakSet=="function"?WeakSet:Set,nn=null;function Vy(e,t){if(e=e.containerInfo,Xc=Yr,e=dd(e),_o(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var f=0,y=-1,A=-1,$=0,W=0,ae=e,F=null;t:for(;;){for(var P;ae!==n||o!==0&&ae.nodeType!==3||(y=f+o),ae!==c||a!==0&&ae.nodeType!==3||(A=f+a),ae.nodeType===3&&(f+=ae.nodeValue.length),(P=ae.firstChild)!==null;)F=ae,ae=P;for(;;){if(ae===e)break t;if(F===n&&++$===o&&(y=f),F===c&&++W===a&&(A=f),(P=ae.nextSibling)!==null)break;ae=F,F=ae.parentNode}ae=P}n=y===-1||A===-1?null:{start:y,end:A}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qc={focusedElem:e,selectionRange:n},Yr=!1,nn=t;nn!==null;)if(t=nn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nn=e;else for(;nn!==null;){switch(t=nn,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,a=n.stateNode;try{var Te=Ki(n.type,o);e=a.getSnapshotBeforeUpdate(Te,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(ze){ht(n,n.return,ze)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Wc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Wc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,nn=e;break}nn=t.return}}function tp(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Ka(e,n),a&4&&ds(5,n);break;case 1:if(Ka(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(f){ht(n,n.return,f)}else{var o=Ki(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){ht(n,n.return,f)}}a&64&&Xh(n),a&512&&hs(n,n.return);break;case 3:if(Ka(e,n),a&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{jd(e,t)}catch(f){ht(n,n.return,f)}}break;case 27:t===null&&a&4&&Wh(n);case 26:case 5:Ka(e,n),t===null&&a&4&&Vh(n),a&512&&hs(n,n.return);break;case 12:Ka(e,n);break;case 31:Ka(e,n),a&4&&ip(e,n);break;case 13:Ka(e,n),a&4&&lp(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sv.bind(null,n),wv(e,n))));break;case 22:if(a=n.memoizedState!==null||Ya,!a){t=t!==null&&t.memoizedState!==null||Ft,o=Ya;var c=Ft;Ya=a,(Ft=t)&&!c?Pa(e,n,(n.subtreeFlags&8772)!==0):Ka(e,n),Ya=o,Ft=c}break;case 30:break;default:Ka(e,n)}}function np(e){var t=e.alternate;t!==null&&(e.alternate=null,np(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ei(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 kt=null,Bn=!1;function Fa(e,t,n){for(n=n.child;n!==null;)ap(e,t,n),n=n.sibling}function ap(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(rn,n)}catch{}switch(n.tag){case 26:Ft||xa(n,t),Fa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ft||xa(n,t);var a=kt,o=Bn;Si(n.type)&&(kt=n.stateNode,Bn=!1),Fa(e,t,n),Ss(n.stateNode),kt=a,Bn=o;break;case 5:Ft||xa(n,t);case 6:if(a=kt,o=Bn,kt=null,Fa(e,t,n),kt=a,Bn=o,kt!==null)if(Bn)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(n.stateNode)}catch(c){ht(n,t,c)}else try{kt.removeChild(n.stateNode)}catch(c){ht(n,t,c)}break;case 18:kt!==null&&(Bn?(e=kt,Xp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ml(e)):Xp(kt,n.stateNode));break;case 4:a=kt,o=Bn,kt=n.stateNode.containerInfo,Bn=!0,Fa(e,t,n),kt=a,Bn=o;break;case 0:case 11:case 14:case 15:mi(2,n,t),Ft||mi(4,n,t),Fa(e,t,n);break;case 1:Ft||(xa(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Qh(n,t,a)),Fa(e,t,n);break;case 21:Fa(e,t,n);break;case 22:Ft=(a=Ft)||n.memoizedState!==null,Fa(e,t,n),Ft=a;break;default:Fa(e,t,n)}}function ip(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ml(e)}catch(n){ht(t,t.return,n)}}}function lp(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){ht(t,t.return,n)}}function Jy(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(l(435,e.tag))}}function Nr(e,t){var n=Jy(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=rv.bind(null,e,a);a.then(o,o)}})}function In(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,f=t,y=f;e:for(;y!==null;){switch(y.tag){case 27:if(Si(y.type)){kt=y.stateNode,Bn=!1;break e}break;case 5:kt=y.stateNode,Bn=!1;break e;case 3:case 4:kt=y.stateNode.containerInfo,Bn=!0;break e}y=y.return}if(kt===null)throw Error(l(160));ap(c,f,o),kt=null,Bn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)sp(t,e),t=t.sibling}var ha=null;function sp(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:In(t,e),jn(e),a&4&&(mi(3,e,e.return),ds(3,e),mi(5,e,e.return));break;case 1:In(t,e),jn(e),a&512&&(Ft||n===null||xa(n,n.return)),a&64&&Ya&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=ha;if(In(t,e),jn(e),a&512&&(Ft||n===null||xa(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":c=o.getElementsByTagName("title")[0],(!c||c[va]||c[Mt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),hn(c,a,n),c[Mt]=e,ft(c),a=c;break e;case"link":var f=sm("link","href",o).get(a+(n.href||""));if(f){for(var y=0;y<f.length;y++)if(c=f[y],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)){f.splice(y,1);break t}}c=o.createElement(a),hn(c,a,n),o.head.appendChild(c);break;case"meta":if(f=sm("meta","content",o).get(a+(n.content||""))){for(y=0;y<f.length;y++)if(c=f[y],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)){f.splice(y,1);break t}}c=o.createElement(a),hn(c,a,n),o.head.appendChild(c);break;default:throw Error(l(468,a))}c[Mt]=e,ft(c),a=c}e.stateNode=a}else rm(o,e.type,e.stateNode);else e.stateNode=lm(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?rm(o,e.type,e.stateNode):lm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&xc(e,e.memoizedProps,n.memoizedProps)}break;case 27:In(t,e),jn(e),a&512&&(Ft||n===null||xa(n,n.return)),n!==null&&a&4&&xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(In(t,e),jn(e),a&512&&(Ft||n===null||xa(n,n.return)),e.flags&32){o=e.stateNode;try{Z(o,"")}catch(Te){ht(e,e.return,Te)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,xc(e,o,n!==null?n.memoizedProps:o)),a&1024&&(Rc=!0);break;case 6:if(In(t,e),jn(e),a&4){if(e.stateNode===null)throw Error(l(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(Te){ht(e,e.return,Te)}}break;case 3:if(Hr=null,o=ha,ha=Ir(t.containerInfo),In(t,e),ha=o,jn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Ml(t.containerInfo)}catch(Te){ht(e,e.return,Te)}Rc&&(Rc=!1,rp(e));break;case 4:a=ha,ha=Ir(e.stateNode.containerInfo),In(t,e),jn(e),ha=a;break;case 12:In(t,e),jn(e);break;case 31:In(t,e),jn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 13:In(t,e),jn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(wr=Pe()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 22:o=e.memoizedState!==null;var A=n!==null&&n.memoizedState!==null,$=Ya,W=Ft;if(Ya=$||o,Ft=W||A,In(t,e),Ft=W,Ya=$,jn(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||A||Ya||Ft||Pi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){A=n=t;try{if(c=A.stateNode,o)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=A.stateNode;var ae=A.memoizedProps.style,F=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;y.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(Te){ht(A,A.return,Te)}}}else if(t.tag===6){if(n===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(Te){ht(A,A.return,Te)}}}else if(t.tag===18){if(n===null){A=t;try{var P=A.stateNode;o?Qp(P,!0):Qp(A.stateNode,!1)}catch(Te){ht(A,A.return,Te)}}}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}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Nr(e,n))));break;case 19:In(t,e),jn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 30:break;case 21:break;default:In(t,e),jn(e)}}function jn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Jh(a)){n=a;break}a=a.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,c=wc(e);Tr(e,c,o);break;case 5:var f=n.stateNode;n.flags&32&&(Z(f,""),n.flags&=-33);var y=wc(e);Tr(e,y,f);break;case 3:case 4:var A=n.stateNode.containerInfo,$=wc(e);Ac(e,$,A);break;default:throw Error(l(161))}}catch(W){ht(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function rp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;rp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ka(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tp(e,t.alternate,t),t=t.sibling}function Pi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:mi(4,t,t.return),Pi(t);break;case 1:xa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Qh(t,t.return,n),Pi(t);break;case 27:Ss(t.stateNode);case 26:case 5:xa(t,t.return),Pi(t);break;case 22:t.memoizedState===null&&Pi(t);break;case 30:Pi(t);break;default:Pi(t)}e=e.sibling}}function Pa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,f=c.flags;switch(c.tag){case 0:case 11:case 15:Pa(o,c,n),ds(4,c);break;case 1:if(Pa(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch($){ht(a,a.return,$)}if(a=c,o=a.updateQueue,o!==null){var y=a.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)Id(A[o],y)}catch($){ht(a,a.return,$)}}n&&f&64&&Xh(c),hs(c,c.return);break;case 27:Wh(c);case 26:case 5:Pa(o,c,n),n&&a===null&&f&4&&Vh(c),hs(c,c.return);break;case 12:Pa(o,c,n);break;case 31:Pa(o,c,n),n&&f&4&&ip(o,c);break;case 13:Pa(o,c,n),n&&f&4&&lp(o,c);break;case 22:c.memoizedState===null&&Pa(o,c,n),hs(c,c.return);break;case 30:break;default:Pa(o,c,n)}t=t.sibling}}function Oc(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&&Wl(n))}function kc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wl(e))}function pa(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)op(e,t,n,a),t=t.sibling}function op(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:pa(e,t,n,a),o&2048&&ds(9,t);break;case 1:pa(e,t,n,a);break;case 3:pa(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wl(e)));break;case 12:if(o&2048){pa(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,f=c.id,y=c.onPostCommit;typeof y=="function"&&y(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){ht(t,t.return,A)}}else pa(e,t,n,a);break;case 31:pa(e,t,n,a);break;case 13:pa(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,f=t.alternate,t.memoizedState!==null?c._visibility&2?pa(e,t,n,a):ps(e,t):c._visibility&2?pa(e,t,n,a):(c._visibility|=2,El(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Oc(f,t);break;case 24:pa(e,t,n,a),o&2048&&kc(t.alternate,t);break;default:pa(e,t,n,a)}}function El(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,f=t,y=n,A=a,$=f.flags;switch(f.tag){case 0:case 11:case 15:El(c,f,y,A,o),ds(8,f);break;case 23:break;case 22:var W=f.stateNode;f.memoizedState!==null?W._visibility&2?El(c,f,y,A,o):ps(c,f):(W._visibility|=2,El(c,f,y,A,o)),o&&$&2048&&Oc(f.alternate,f);break;case 24:El(c,f,y,A,o),o&&$&2048&&kc(f.alternate,f);break;default:El(c,f,y,A,o)}t=t.sibling}}function ps(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ps(n,a),o&2048&&Oc(a.alternate,a);break;case 24:ps(n,a),o&2048&&kc(a.alternate,a);break;default:ps(n,a)}t=t.sibling}}var ms=8192;function _l(e,t,n){if(e.subtreeFlags&ms)for(e=e.child;e!==null;)cp(e,t,n),e=e.sibling}function cp(e,t,n){switch(e.tag){case 26:_l(e,t,n),e.flags&ms&&e.memoizedState!==null&&Iv(n,ha,e.memoizedState,e.memoizedProps);break;case 5:_l(e,t,n);break;case 3:case 4:var a=ha;ha=Ir(e.stateNode.containerInfo),_l(e,t,n),ha=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ms,ms=16777216,_l(e,t,n),ms=a):_l(e,t,n));break;default:_l(e,t,n)}}function up(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 gs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];nn=a,dp(a,e)}up(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fp(e),e=e.sibling}function fp(e){switch(e.tag){case 0:case 11:case 15:gs(e),e.flags&2048&&mi(9,e,e.return);break;case 3:gs(e);break;case 12:gs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,xr(e)):gs(e);break;default:gs(e)}}function xr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];nn=a,dp(a,e)}up(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:mi(8,t,t.return),xr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,xr(t));break;default:xr(t)}e=e.sibling}}function dp(e,t){for(;nn!==null;){var n=nn;switch(n.tag){case 0:case 11:case 15:mi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Wl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,nn=a;else e:for(n=e;nn!==null;){a=nn;var o=a.sibling,c=a.return;if(np(a),a===n){nn=null;break e}if(o!==null){o.return=c,nn=o;break e}nn=c}}}var Wy={getCacheForType:function(e){var t=fn(Gt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return fn(Gt).controller.signal}},ev=typeof WeakMap=="function"?WeakMap:Map,ut=0,_t=null,Qe=null,We=0,dt=0,Pn=null,gi=!1,Sl=!1,Mc=!1,Za=0,Lt=0,bi=0,Zi=0,Cc=0,Zn=0,Tl=0,bs=null,Hn=null,Dc=!1,wr=0,hp=0,Ar=1/0,Rr=null,yi=null,Vt=0,vi=null,Nl=null,Xa=0,Lc=0,zc=null,pp=null,ys=0,Uc=null;function Xn(){return(ut&2)!==0&&We!==0?We&-We:B.T!==null?Gc():ya()}function mp(){if(Zn===0)if((We&536870912)===0||at){var e=on;on<<=1,(on&3932160)===0&&(on=262144),Zn=e}else Zn=536870912;return e=Fn.current,e!==null&&(e.flags|=32),Zn}function qn(e,t,n){(e===_t&&(dt===2||dt===9)||e.cancelPendingCommit!==null)&&(xl(e,0),Ei(e,We,Zn,!1)),he(e,n),((ut&2)===0||e!==_t)&&(e===_t&&((ut&2)===0&&(Zi|=n),Lt===4&&Ei(e,We,Zn,!1)),wa(e))}function gp(e,t,n){if((ut&6)!==0)throw Error(l(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||J(e,t),o=a?av(e,t):Ic(e,t,!0),c=a;do{if(o===0){Sl&&!a&&Ei(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!tv(n)){o=Ic(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var y=e;o=bs;var A=y.current.memoizedState.isDehydrated;if(A&&(xl(y,f).flags|=256),f=Ic(y,f,!1),f!==2){if(Mc&&!A){y.errorRecoveryDisabledLanes|=c,Zi|=c,o=4;break e}c=Hn,Hn=o,c!==null&&(Hn===null?Hn=c:Hn.push.apply(Hn,c))}o=f}if(c=!1,o!==2)continue}}if(o===1){xl(e,0),Ei(e,t,0,!0);break}e:{switch(a=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Ei(a,t,Zn,!gi);break e;case 2:Hn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=wr+300-Pe(),10<o)){if(Ei(a,t,Zn,!gi),w(a,0,!0)!==0)break e;Xa=t,a.timeoutHandle=Pp(bp.bind(null,a,n,Hn,Rr,Dc,t,Zn,Zi,Tl,gi,c,"Throttled",-0,0),o);break e}bp(a,n,Hn,Rr,Dc,t,Zn,Zi,Tl,gi,c,null,-0,0)}}break}while(!0);wa(e)}function bp(e,t,n,a,o,c,f,y,A,$,W,ae,F,P){if(e.timeoutHandle=-1,ae=t.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:le},cp(t,c,ae);var Te=(c&62914560)===c?wr-Pe():(c&4194048)===c?hp-Pe():0;if(Te=jv(ae,Te),Te!==null){Xa=c,e.cancelPendingCommit=Te(xp.bind(null,e,t,c,n,a,o,f,y,A,W,ae,null,F,P)),Ei(e,c,f,!$);return}}xp(e,t,c,n,a,o,f,y,A)}function tv(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 a=0;a<n.length;a++){var o=n[a],c=o.getSnapshot;o=o.value;try{if(!$n(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 Ei(e,t,n,a){t&=~Cc,t&=~Zi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-xt(o),f=1<<c;a[c]=-1,o&=~f}n!==0&&be(e,n,t)}function Or(){return(ut&6)===0?(vs(0),!1):!0}function Bc(){if(Qe!==null){if(dt===0)var e=Qe.return;else e=Qe,Ia=ji=null,Wo(e),ml=null,ts=0,e=Qe;for(;e!==null;)Zh(e.alternate,e),e=e.return;Qe=null}}function xl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,_v(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Xa=0,Bc(),_t=e,Qe=n=Ua(e.current,null),We=t,dt=0,Pn=null,gi=!1,Sl=J(e,t),Mc=!1,Tl=Zn=Cc=Zi=bi=Lt=0,Hn=bs=null,Dc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-xt(a),c=1<<o;t|=e[o],a&=~c}return Za=t,Qs(),n}function yp(e,t){qe=null,B.H=cs,t===pl||t===ir?(t=Ld(),dt=3):t===qo?(t=Ld(),dt=4):dt=t===mc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Pn=t,Qe===null&&(Lt=1,yr(e,na(t,e.current)))}function vp(){var e=Fn.current;return e===null?!0:(We&4194048)===We?sa===null:(We&62914560)===We||(We&536870912)!==0?e===sa:!1}function Ep(){var e=B.H;return B.H=cs,e===null?cs:e}function _p(){var e=B.A;return B.A=Wy,e}function kr(){Lt=4,gi||(We&4194048)!==We&&Fn.current!==null||(Sl=!0),(bi&134217727)===0&&(Zi&134217727)===0||_t===null||Ei(_t,We,Zn,!1)}function Ic(e,t,n){var a=ut;ut|=2;var o=Ep(),c=_p();(_t!==e||We!==t)&&(Rr=null,xl(e,t)),t=!1;var f=Lt;e:do try{if(dt!==0&&Qe!==null){var y=Qe,A=Pn;switch(dt){case 8:Bc(),f=6;break e;case 3:case 2:case 9:case 6:Fn.current===null&&(t=!0);var $=dt;if(dt=0,Pn=null,wl(e,y,A,$),n&&Sl){f=0;break e}break;default:$=dt,dt=0,Pn=null,wl(e,y,A,$)}}nv(),f=Lt;break}catch(W){yp(e,W)}while(!0);return t&&e.shellSuspendCounter++,Ia=ji=null,ut=a,B.H=o,B.A=c,Qe===null&&(_t=null,We=0,Qs()),f}function nv(){for(;Qe!==null;)Sp(Qe)}function av(e,t){var n=ut;ut|=2;var a=Ep(),o=_p();_t!==e||We!==t?(Rr=null,Ar=Pe()+500,xl(e,t)):Sl=J(e,t);e:do try{if(dt!==0&&Qe!==null){t=Qe;var c=Pn;t:switch(dt){case 1:dt=0,Pn=null,wl(e,t,c,1);break;case 2:case 9:if(Cd(c)){dt=0,Pn=null,Tp(t);break}t=function(){dt!==2&&dt!==9||_t!==e||(dt=7),wa(e)},c.then(t,t);break e;case 3:dt=7;break e;case 4:dt=5;break e;case 7:Cd(c)?(dt=0,Pn=null,Tp(t)):(dt=0,Pn=null,wl(e,t,c,7));break;case 5:var f=null;switch(Qe.tag){case 26:f=Qe.memoizedState;case 5:case 27:var y=Qe;if(f?om(f):y.stateNode.complete){dt=0,Pn=null;var A=y.sibling;if(A!==null)Qe=A;else{var $=y.return;$!==null?(Qe=$,Mr($)):Qe=null}break t}}dt=0,Pn=null,wl(e,t,c,5);break;case 6:dt=0,Pn=null,wl(e,t,c,6);break;case 8:Bc(),Lt=6;break e;default:throw Error(l(462))}}iv();break}catch(W){yp(e,W)}while(!0);return Ia=ji=null,B.H=a,B.A=o,ut=n,Qe!==null?0:(_t=null,We=0,Qs(),Lt)}function iv(){for(;Qe!==null&&!ca();)Sp(Qe)}function Sp(e){var t=Kh(e.alternate,e,Za);e.memoizedProps=e.pendingProps,t===null?Mr(e):Qe=t}function Tp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Hh(n,t,t.pendingProps,t.type,void 0,We);break;case 11:t=Hh(n,t,t.pendingProps,t.type.render,t.ref,We);break;case 5:Wo(t);default:Zh(n,t),t=Qe=_d(t,Za),t=Kh(n,t,Za)}e.memoizedProps=e.pendingProps,t===null?Mr(e):Qe=t}function wl(e,t,n,a){Ia=ji=null,Wo(t),ml=null,ts=0;var o=t.return;try{if(Ky(e,o,t,n,We)){Lt=1,yr(e,na(n,e.current)),Qe=null;return}}catch(c){if(o!==null)throw Qe=o,c;Lt=1,yr(e,na(n,e.current)),Qe=null;return}t.flags&32768?(at||a===1?e=!0:Sl||(We&536870912)!==0?e=!1:(gi=e=!0,(a===2||a===9||a===3||a===6)&&(a=Fn.current,a!==null&&a.tag===13&&(a.flags|=16384))),Np(t,e)):Mr(t)}function Mr(e){var t=e;do{if((t.flags&32768)!==0){Np(t,gi);return}e=t.return;var n=Xy(t.alternate,t,Za);if(n!==null){Qe=n;return}if(t=t.sibling,t!==null){Qe=t;return}Qe=t=e}while(t!==null);Lt===0&&(Lt=5)}function Np(e,t){do{var n=Qy(e.alternate,e);if(n!==null){n.flags&=32767,Qe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Qe=e;return}Qe=e=n}while(e!==null);Lt=6,Qe=null}function xp(e,t,n,a,o,c,f,y,A){e.cancelPendingCommit=null;do Cr();while(Vt!==0);if((ut&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=wo,me(e,n,c,f,y,A),e===_t&&(Qe=_t=null,We=0),Nl=t,vi=e,Xa=n,Lc=c,zc=o,pp=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ov(yn,function(){return kp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null,o=ie.p,ie.p=2,f=ut,ut|=4;try{Vy(e,t,n)}finally{ut=f,ie.p=o,B.T=a}}Vt=1,wp(),Ap(),Rp()}}function wp(){if(Vt===1){Vt=0;var e=vi,t=Nl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=B.T,B.T=null;var a=ie.p;ie.p=2;var o=ut;ut|=4;try{sp(t,e);var c=Qc,f=dd(e.containerInfo),y=c.focusedElem,A=c.selectionRange;if(f!==y&&y&&y.ownerDocument&&fd(y.ownerDocument.documentElement,y)){if(A!==null&&_o(y)){var $=A.start,W=A.end;if(W===void 0&&(W=$),"selectionStart"in y)y.selectionStart=$,y.selectionEnd=Math.min(W,y.value.length);else{var ae=y.ownerDocument||document,F=ae&&ae.defaultView||window;if(F.getSelection){var P=F.getSelection(),Te=y.textContent.length,ze=Math.min(A.start,Te),vt=A.end===void 0?ze:Math.min(A.end,Te);!P.extend&&ze>vt&&(f=vt,vt=ze,ze=f);var z=ud(y,ze),k=ud(y,vt);if(z&&k&&(P.rangeCount!==1||P.anchorNode!==z.node||P.anchorOffset!==z.offset||P.focusNode!==k.node||P.focusOffset!==k.offset)){var G=ae.createRange();G.setStart(z.node,z.offset),P.removeAllRanges(),ze>vt?(P.addRange(G),P.extend(k.node,k.offset)):(G.setEnd(k.node,k.offset),P.addRange(G))}}}}for(ae=[],P=y;P=P.parentNode;)P.nodeType===1&&ae.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<ae.length;y++){var te=ae[y];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Yr=!!Xc,Qc=Xc=null}finally{ut=o,ie.p=a,B.T=n}}e.current=t,Vt=2}}function Ap(){if(Vt===2){Vt=0;var e=vi,t=Nl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=B.T,B.T=null;var a=ie.p;ie.p=2;var o=ut;ut|=4;try{tp(e,t.alternate,t)}finally{ut=o,ie.p=a,B.T=n}}Vt=3}}function Rp(){if(Vt===4||Vt===3){Vt=0,Vn();var e=vi,t=Nl,n=Xa,a=pp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Vt=5:(Vt=0,Nl=vi=null,Op(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(yi=null),Jn(n),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(rn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=B.T,o=ie.p,ie.p=2,B.T=null;try{for(var c=e.onRecoverableError,f=0;f<a.length;f++){var y=a[f];c(y.value,{componentStack:y.stack})}}finally{B.T=t,ie.p=o}}(Xa&3)!==0&&Cr(),wa(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Uc?ys++:(ys=0,Uc=e):ys=0,vs(0)}}function Op(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wl(t)))}function Cr(){return wp(),Ap(),Rp(),kp()}function kp(){if(Vt!==5)return!1;var e=vi,t=Lc;Lc=0;var n=Jn(Xa),a=B.T,o=ie.p;try{ie.p=32>n?32:n,B.T=null,n=zc,zc=null;var c=vi,f=Xa;if(Vt=0,Nl=vi=null,Xa=0,(ut&6)!==0)throw Error(l(331));var y=ut;if(ut|=4,fp(c.current),op(c,c.current,f,n),ut=y,vs(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(rn,c)}catch{}return!0}finally{ie.p=o,B.T=a,Op(e,t)}}function Mp(e,t,n){t=na(n,t),t=pc(e.stateNode,t,2),e=di(e,t,2),e!==null&&(he(e,2),wa(e))}function ht(e,t,n){if(e.tag===3)Mp(e,e,n);else for(;t!==null;){if(t.tag===3){Mp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(yi===null||!yi.has(a))){e=na(n,e),n=Ch(2),a=di(t,n,2),a!==null&&(Dh(n,a,t,e),he(a,2),wa(a));break}}t=t.return}}function jc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new ev;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(Mc=!0,o.add(n),e=lv.bind(null,e,t,n),t.then(e,e))}function lv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,_t===e&&(We&n)===n&&(Lt===4||Lt===3&&(We&62914560)===We&&300>Pe()-wr?(ut&2)===0&&xl(e,0):Cc|=n,Tl===We&&(Tl=0)),wa(e)}function Cp(e,t){t===0&&(t=I()),e=Ui(e,t),e!==null&&(he(e,t),wa(e))}function sv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cp(e,n)}function rv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(l(314))}a!==null&&a.delete(t),Cp(e,n)}function ov(e,t){return gn(e,t)}var Dr=null,Al=null,Hc=!1,Lr=!1,qc=!1,_i=0;function wa(e){e!==Al&&e.next===null&&(Al===null?Dr=Al=e:Al=Al.next=e),Lr=!0,Hc||(Hc=!0,uv())}function vs(e,t){if(!qc&&Lr){qc=!0;do for(var n=!1,a=Dr;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var f=a.suspendedLanes,y=a.pingedLanes;c=(1<<31-xt(42|e)+1)-1,c&=o&~(f&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Up(a,c))}else c=We,c=w(a,a===_t?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||J(a,c)||(n=!0,Up(a,c));a=a.next}while(n);qc=!1}}function cv(){Dp()}function Dp(){Lr=Hc=!1;var e=0;_i!==0&&Ev()&&(e=_i);for(var t=Pe(),n=null,a=Dr;a!==null;){var o=a.next,c=Lp(a,t);c===0?(a.next=null,n===null?Dr=o:n.next=o,o===null&&(Al=n)):(n=a,(e!==0||(c&3)!==0)&&(Lr=!0)),a=o}Vt!==0&&Vt!==5||vs(e),_i!==0&&(_i=0)}function Lp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var f=31-xt(c),y=1<<f,A=o[f];A===-1?((y&n)===0||(y&a)!==0)&&(o[f]=fe(y,t)):A<=t&&(e.expiredLanes|=y),c&=~y}if(t=_t,n=We,n=w(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(dt===2||dt===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&xn(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||J(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&xn(a),Jn(n)){case 2:case 8:n=bn;break;case 32:n=yn;break;case 268435456:n=Cn;break;default:n=yn}return a=zp.bind(null,e),n=gn(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&xn(a),e.callbackPriority=2,e.callbackNode=null,2}function zp(e,t){if(Vt!==0&&Vt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Cr()&&e.callbackNode!==n)return null;var a=We;return a=w(e,e===_t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(gp(e,a,t),Lp(e,Pe()),e.callbackNode!=null&&e.callbackNode===n?zp.bind(null,e):null)}function Up(e,t){if(Cr())return null;gp(e,t,!0)}function uv(){Sv(function(){(ut&6)!==0?gn(mt,cv):Dp()})}function Gc(){if(_i===0){var e=dl;e===0&&(e=Ie,Ie<<=1,(Ie&261888)===0&&(Ie=256)),_i=e}return _i}function Bp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xe(""+e)}function Ip(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,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Bp((o[en]||null).action),f=a.submitter;f&&(t=(t=f[en]||null)?Bp(t.formAction):f.getAttribute("formAction"),t!==null&&(c=t,f=null));var y=new Ks("action","action",null,a,o);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(_i!==0){var A=f?Ip(o,f):new FormData(o);oc(n,{pending:!0,data:A,method:o.method,action:c},null,A)}}else typeof c=="function"&&(y.preventDefault(),A=f?Ip(o,f):new FormData(o),oc(n,{pending:!0,data:A,method:o.method,action:c},c,A))},currentTarget:o}]})}}for(var $c=0;$c<xo.length;$c++){var Yc=xo[$c],dv=Yc.toLowerCase(),hv=Yc[0].toUpperCase()+Yc.slice(1);da(dv,"on"+hv)}da(md,"onAnimationEnd"),da(gd,"onAnimationIteration"),da(bd,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(Oy,"onTransitionRun"),da(ky,"onTransitionStart"),da(My,"onTransitionCancel"),da(yd,"onTransitionEnd"),oe("onMouseEnter",["mouseout","mouseover"]),oe("onMouseLeave",["mouseout","mouseover"]),oe("onPointerEnter",["pointerout","pointerover"]),oe("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Es="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(" "),pv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Es));function jp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var f=a.length-1;0<=f;f--){var y=a[f],A=y.instance,$=y.currentTarget;if(y=y.listener,A!==c&&o.isPropagationStopped())break e;c=y,o.currentTarget=$;try{c(o)}catch(W){Xs(W)}o.currentTarget=null,c=A}else for(f=0;f<a.length;f++){if(y=a[f],A=y.instance,$=y.currentTarget,y=y.listener,A!==c&&o.isPropagationStopped())break e;c=y,o.currentTarget=$;try{c(o)}catch(W){Xs(W)}o.currentTarget=null,c=A}}}}function Ve(e,t){var n=t[Wn];n===void 0&&(n=t[Wn]=new Set);var a=e+"__bubble";n.has(a)||(Hp(t,e,2,!1),n.add(a))}function Fc(e,t,n){var a=0;t&&(a|=4),Hp(n,e,a,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Kc(e){if(!e[zr]){e[zr]=!0,Ma.forEach(function(n){n!=="selectionchange"&&(pv.has(n)||Fc(n,!1,e),Fc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zr]||(t[zr]=!0,Fc("selectionchange",!1,t))}}function Hp(e,t,n,a){switch(mm(t)){case 2:var o=Gv;break;case 8:o=$v;break;default:o=ru}n=o.bind(null,t,n,e),o=void 0,!fo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?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 Pc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var y=a.stateNode.containerInfo;if(y===o)break;if(f===4)for(f=a.return;f!==null;){var A=f.tag;if((A===3||A===4)&&f.stateNode.containerInfo===o)return;f=f.return}for(;y!==null;){if(f=cn(y),f===null)return;if(A=f.tag,A===5||A===6||A===26||A===27){a=c=f;continue e}y=y.parentNode}}a=a.return}Gs(function(){var $=c,W=ke(n),ae=[];e:{var F=vd.get(e);if(F!==void 0){var P=Ks,Te=e;switch(e){case"keypress":if(Ys(n)===0)break e;case"keydown":case"keyup":P=ry;break;case"focusin":Te="focus",P=go;break;case"focusout":Te="blur",P=go;break;case"beforeblur":case"afterblur":P=go;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":P=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=Xb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=uy;break;case md:case gd:case bd:P=Jb;break;case yd:P=dy;break;case"scroll":case"scrollend":P=Pb;break;case"wheel":P=py;break;case"copy":case"cut":case"paste":P=ey;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=Qf;break;case"toggle":case"beforetoggle":P=gy}var ze=(t&4)!==0,vt=!ze&&(e==="scroll"||e==="scrollend"),z=ze?F!==null?F+"Capture":null:F;ze=[];for(var k=$,G;k!==null;){var te=k;if(G=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||G===null||z===null||(te=Gl(k,z),te!=null&&ze.push(_s(k,te,G))),vt)break;k=k.return}0<ze.length&&(F=new P(F,Te,null,n,W),ae.push({event:F,listeners:ze}))}}if((t&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",F&&n!==ge&&(Te=n.relatedTarget||n.fromElement)&&(cn(Te)||Te[lt]))break e;if((P||F)&&(F=W.window===W?W:(F=W.ownerDocument)?F.defaultView||F.parentWindow:window,P?(Te=n.relatedTarget||n.toElement,P=$,Te=Te?cn(Te):null,Te!==null&&(vt=h(Te),ze=Te.tag,Te!==vt||ze!==5&&ze!==27&&ze!==6)&&(Te=null)):(P=null,Te=$),P!==Te)){if(ze=Zf,te="onMouseLeave",z="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(ze=Qf,te="onPointerLeave",z="onPointerEnter",k="pointer"),vt=P==null?F:Ea(P),G=Te==null?F:Ea(Te),F=new ze(te,k+"leave",P,n,W),F.target=vt,F.relatedTarget=G,te=null,cn(W)===$&&(ze=new ze(z,k+"enter",Te,n,W),ze.target=G,ze.relatedTarget=vt,te=ze),vt=te,P&&Te)t:{for(ze=mv,z=P,k=Te,G=0,te=z;te;te=ze(te))G++;te=0;for(var Ce=k;Ce;Ce=ze(Ce))te++;for(;0<G-te;)z=ze(z),G--;for(;0<te-G;)k=ze(k),te--;for(;G--;){if(z===k||k!==null&&z===k.alternate){ze=z;break t}z=ze(z),k=ze(k)}ze=null}else ze=null;P!==null&&qp(ae,F,P,ze,!1),Te!==null&&vt!==null&&qp(ae,vt,Te,ze,!0)}}e:{if(F=$?Ea($):window,P=F.nodeName&&F.nodeName.toLowerCase(),P==="select"||P==="input"&&F.type==="file")var ot=id;else if(nd(F))if(ld)ot=wy;else{ot=Ny;var Re=Ty}else P=F.nodeName,!P||P.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?$&&_e($.elementType)&&(ot=id):ot=xy;if(ot&&(ot=ot(e,$))){ad(ae,ot,n,W);break e}Re&&Re(e,F,$),e==="focusout"&&$&&F.type==="number"&&$.memoizedProps.value!=null&&ii(F,"number",F.value)}switch(Re=$?Ea($):window,e){case"focusin":(nd(Re)||Re.contentEditable==="true")&&(il=Re,So=$,Ql=null);break;case"focusout":Ql=So=il=null;break;case"mousedown":To=!0;break;case"contextmenu":case"mouseup":case"dragend":To=!1,hd(ae,n,W);break;case"selectionchange":if(Ry)break;case"keydown":case"keyup":hd(ae,n,W)}var Ye;if(yo)e:{switch(e){case"compositionstart":var et="onCompositionStart";break e;case"compositionend":et="onCompositionEnd";break e;case"compositionupdate":et="onCompositionUpdate";break e}et=void 0}else al?ed(e,n)&&(et="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(et="onCompositionStart");et&&(Vf&&n.locale!=="ko"&&(al||et!=="onCompositionStart"?et==="onCompositionEnd"&&al&&(Ye=Kf()):(li=W,ho="value"in li?li.value:li.textContent,al=!0)),Re=Ur($,et),0<Re.length&&(et=new Xf(et,e,null,n,W),ae.push({event:et,listeners:Re}),Ye?et.data=Ye:(Ye=td(n),Ye!==null&&(et.data=Ye)))),(Ye=yy?vy(e,n):Ey(e,n))&&(et=Ur($,"onBeforeInput"),0<et.length&&(Re=new Xf("onBeforeInput","beforeinput",null,n,W),ae.push({event:Re,listeners:et}),Re.data=Ye)),fv(ae,e,$,n,W)}jp(ae,t)})}function _s(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Gl(e,n),o!=null&&a.unshift(_s(e,o,c)),o=Gl(e,t),o!=null&&a.push(_s(e,o,c))),e.tag===3)return a;e=e.return}return[]}function mv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qp(e,t,n,a,o){for(var c=t._reactName,f=[];n!==null&&n!==a;){var y=n,A=y.alternate,$=y.stateNode;if(y=y.tag,A!==null&&A===a)break;y!==5&&y!==26&&y!==27||$===null||(A=$,o?($=Gl(n,c),$!=null&&f.unshift(_s(n,$,A))):o||($=Gl(n,c),$!=null&&f.push(_s(n,$,A)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var gv=/\r\n?/g,bv=/\u0000|\uFFFD/g;function Gp(e){return(typeof e=="string"?e:""+e).replace(gv,`
|
|
49
|
+
`).replace(bv,"")}function $p(e,t){return t=Gp(t),Gp(e)===t}function yt(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Z(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Z(e,""+a);break;case"className":tn(e,"class",a);break;case"tabIndex":tn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":tn(e,n,a);break;case"style":X(e,a,c);break;case"data":if(t!=="object"){tn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xe(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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"&&yt(e,t,"name",o.name,o,null),yt(e,t,"formEncType",o.formEncType,o,null),yt(e,t,"formMethod",o.formMethod,o,null),yt(e,t,"formTarget",o.formTarget,o,null)):(yt(e,t,"encType",o.encType,o,null),yt(e,t,"method",o.method,o,null),yt(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xe(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=le);break;case"onScroll":a!=null&&Ve("scroll",e);break;case"onScrollEnd":a!=null&&Ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Xe(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ve("beforetoggle",e),Ve("toggle",e),Ht(e,"popover",a);break;case"xlinkActuate":Ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ut(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ut(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ut(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ut(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ht(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ne.get(n)||n,Ht(e,n,a))}}function Zc(e,t,n,a,o,c){switch(n){case"style":X(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Z(e,a):(typeof a=="number"||typeof a=="bigint")&&Z(e,""+a);break;case"onScroll":a!=null&&Ve("scroll",e);break;case"onScrollEnd":a!=null&&Ve("scrollend",e);break;case"onClick":a!=null&&(e.onclick=le);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!An.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[en]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Ht(e,n,a)}}}function hn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",e),Ve("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:yt(e,t,c,f,n,null)}}o&&yt(e,t,"srcSet",n.srcSet,n,null),a&&yt(e,t,"src",n.src,n,null);return;case"input":Ve("invalid",e);var y=c=f=o=null,A=null,$=null;for(a in n)if(n.hasOwnProperty(a)){var W=n[a];if(W!=null)switch(a){case"name":o=W;break;case"type":f=W;break;case"checked":A=W;break;case"defaultChecked":$=W;break;case"value":c=W;break;case"defaultValue":y=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(l(137,t));break;default:yt(e,t,a,W,n,null)}}Da(e,c,y,A,$,f,o,!1);return;case"select":Ve("invalid",e),a=f=c=null;for(o in n)if(n.hasOwnProperty(o)&&(y=n[o],y!=null))switch(o){case"value":c=y;break;case"defaultValue":f=y;break;case"multiple":a=y;default:yt(e,t,o,y,n,null)}t=c,n=f,e.multiple=!!a,t!=null?qt(e,!!a,t,!1):n!=null&&qt(e,!!a,n,!0);return;case"textarea":Ve("invalid",e),c=o=a=null;for(f in n)if(n.hasOwnProperty(f)&&(y=n[f],y!=null))switch(f){case"value":a=y;break;case"defaultValue":o=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(l(91));break;default:yt(e,t,f,y,n,null)}Sa(e,a,o,c);return;case"option":for(A in n)if(n.hasOwnProperty(A)&&(a=n[A],a!=null))switch(A){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:yt(e,t,A,a,n,null)}return;case"dialog":Ve("beforetoggle",e),Ve("toggle",e),Ve("cancel",e),Ve("close",e);break;case"iframe":case"object":Ve("load",e);break;case"video":case"audio":for(a=0;a<Es.length;a++)Ve(Es[a],e);break;case"image":Ve("error",e),Ve("load",e);break;case"details":Ve("toggle",e);break;case"embed":case"source":case"link":Ve("error",e),Ve("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in n)if(n.hasOwnProperty($)&&(a=n[$],a!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:yt(e,t,$,a,n,null)}return;default:if(_e(t)){for(W in n)n.hasOwnProperty(W)&&(a=n[W],a!==void 0&&Zc(e,t,W,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&yt(e,t,y,a,n,null))}function yv(e,t,n,a){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,f=null,y=null,A=null,$=null,W=null;for(P in n){var ae=n[P];if(n.hasOwnProperty(P)&&ae!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":A=ae;default:a.hasOwnProperty(P)||yt(e,t,P,null,a,ae)}}for(var F in a){var P=a[F];if(ae=n[F],a.hasOwnProperty(F)&&(P!=null||ae!=null))switch(F){case"type":c=P;break;case"name":o=P;break;case"checked":$=P;break;case"defaultChecked":W=P;break;case"value":f=P;break;case"defaultValue":y=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(l(137,t));break;default:P!==ae&&yt(e,t,F,P,a,ae)}}ai(e,f,y,A,$,W,c,o);return;case"select":P=f=y=F=null;for(c in n)if(A=n[c],n.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":P=A;default:a.hasOwnProperty(c)||yt(e,t,c,null,a,A)}for(o in a)if(c=a[o],A=n[o],a.hasOwnProperty(o)&&(c!=null||A!=null))switch(o){case"value":F=c;break;case"defaultValue":y=c;break;case"multiple":f=c;default:c!==A&&yt(e,t,o,c,a,A)}t=y,n=f,a=P,F!=null?qt(e,!!n,F,!1):!!a!=!!n&&(t!=null?qt(e,!!n,t,!0):qt(e,!!n,n?[]:"",!1));return;case"textarea":P=F=null;for(y in n)if(o=n[y],n.hasOwnProperty(y)&&o!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:yt(e,t,y,null,a,o)}for(f in a)if(o=a[f],c=n[f],a.hasOwnProperty(f)&&(o!=null||c!=null))switch(f){case"value":F=o;break;case"defaultValue":P=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&yt(e,t,f,o,a,c)}La(e,F,P);return;case"option":for(var Te in n)if(F=n[Te],n.hasOwnProperty(Te)&&F!=null&&!a.hasOwnProperty(Te))switch(Te){case"selected":e.selected=!1;break;default:yt(e,t,Te,null,a,F)}for(A in a)if(F=a[A],P=n[A],a.hasOwnProperty(A)&&F!==P&&(F!=null||P!=null))switch(A){case"selected":e.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:yt(e,t,A,F,a,P)}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 ze in n)F=n[ze],n.hasOwnProperty(ze)&&F!=null&&!a.hasOwnProperty(ze)&&yt(e,t,ze,null,a,F);for($ in a)if(F=a[$],P=n[$],a.hasOwnProperty($)&&F!==P&&(F!=null||P!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(l(137,t));break;default:yt(e,t,$,F,a,P)}return;default:if(_e(t)){for(var vt in n)F=n[vt],n.hasOwnProperty(vt)&&F!==void 0&&!a.hasOwnProperty(vt)&&Zc(e,t,vt,void 0,a,F);for(W in a)F=a[W],P=n[W],!a.hasOwnProperty(W)||F===P||F===void 0&&P===void 0||Zc(e,t,W,F,a,P);return}}for(var z in n)F=n[z],n.hasOwnProperty(z)&&F!=null&&!a.hasOwnProperty(z)&&yt(e,t,z,null,a,F);for(ae in a)F=a[ae],P=n[ae],!a.hasOwnProperty(ae)||F===P||F==null&&P==null||yt(e,t,ae,F,a,P)}function Yp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,f=o.initiatorType,y=o.duration;if(c&&y&&Yp(f)){for(f=0,y=o.responseEnd,a+=1;a<n.length;a++){var A=n[a],$=A.startTime;if($>y)break;var W=A.transferSize,ae=A.initiatorType;W&&Yp(ae)&&(A=A.responseEnd,f+=W*(A<y?1:(y-$)/(A-$)))}if(--a,t+=8*(c+f)/(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 Xc=null,Qc=null;function Br(e){return e.nodeType===9?e:e.ownerDocument}function Fp(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 Kp(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 Vc(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 Jc=null;function Ev(){var e=window.event;return e&&e.type==="popstate"?e===Jc?!1:(Jc=e,!0):(Jc=null,!1)}var Pp=typeof setTimeout=="function"?setTimeout:void 0,_v=typeof clearTimeout=="function"?clearTimeout:void 0,Zp=typeof Promise=="function"?Promise:void 0,Sv=typeof queueMicrotask=="function"?queueMicrotask:typeof Zp<"u"?function(e){return Zp.resolve(null).then(e).catch(Tv)}:Pp;function Tv(e){setTimeout(function(){throw e})}function Si(e){return e==="head"}function Xp(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Ml(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ss(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ss(n);for(var c=n.firstChild;c;){var f=c.nextSibling,y=c.nodeName;c[va]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&Ss(e.ownerDocument.body);n=o}while(n);Ml(t)}function Qp(e,t){var n=e;e=0;do{var a=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||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Wc(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":Wc(n),ei(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Nv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[va])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=ra(e.nextSibling),e===null)break}return null}function xv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ra(e.nextSibling),e===null))return null;return e}function Vp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ra(e.nextSibling),e===null))return null;return e}function eu(e){return e.data==="$?"||e.data==="$~"}function tu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function ra(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 nu=null;function Jp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ra(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Wp(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=Br(n),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Ss(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ei(e)}var oa=new Map,tm=new Set;function Ir(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qa=ie.d;ie.d={f:Av,r:Rv,D:Ov,C:kv,L:Mv,m:Cv,X:Lv,S:Dv,M:zv};function Av(){var e=Qa.f(),t=Or();return e||t}function Rv(e){var t=ua(e);t!==null&&t.tag===5&&t.type==="form"?yh(t):Qa.r(e)}var Rl=typeof document>"u"?null:document;function nm(e,t,n){var a=Rl;if(a&&typeof t=="string"&&t){var o=En(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),tm.has(o)||(tm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),hn(t,"link",e),ft(t),a.head.appendChild(t)))}}function Ov(e){Qa.D(e),nm("dns-prefetch",e,null)}function kv(e,t){Qa.C(e,t),nm("preconnect",e,t)}function Mv(e,t,n){Qa.L(e,t,n);var a=Rl;if(a&&e&&t){var o='link[rel="preload"][as="'+En(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+En(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+En(n.imageSizes)+'"]')):o+='[href="'+En(e)+'"]';var c=o;switch(t){case"style":c=Ol(e);break;case"script":c=kl(e)}oa.has(c)||(e=E({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),oa.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(Ns(c))||(t=a.createElement("link"),hn(t,"link",e),ft(t),a.head.appendChild(t)))}}function Cv(e,t){Qa.m(e,t);var n=Rl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+En(a)+'"][href="'+En(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=kl(e)}if(!oa.has(c)&&(e=E({rel:"modulepreload",href:e},t),oa.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ns(c)))return}a=n.createElement("link"),hn(a,"link",e),ft(a),n.head.appendChild(a)}}}function Dv(e,t,n){Qa.S(e,t,n);var a=Rl;if(a&&e){var o=_a(a).hoistableStyles,c=Ol(e);t=t||"default";var f=o.get(c);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(Ts(c)))y.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},n),(n=oa.get(c))&&au(e,n);var A=f=a.createElement("link");ft(A),hn(A,"link",e),A._p=new Promise(function($,W){A.onload=$,A.onerror=W}),A.addEventListener("load",function(){y.loading|=1}),A.addEventListener("error",function(){y.loading|=2}),y.loading|=4,jr(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:y},o.set(c,f)}}}function Lv(e,t){Qa.X(e,t);var n=Rl;if(n&&e){var a=_a(n).hoistableScripts,o=kl(e),c=a.get(o);c||(c=n.querySelector(Ns(o)),c||(e=E({src:e,async:!0},t),(t=oa.get(o))&&iu(e,t),c=n.createElement("script"),ft(c),hn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function zv(e,t){Qa.M(e,t);var n=Rl;if(n&&e){var a=_a(n).hoistableScripts,o=kl(e),c=a.get(o);c||(c=n.querySelector(Ns(o)),c||(e=E({src:e,async:!0,type:"module"},t),(t=oa.get(o))&&iu(e,t),c=n.createElement("script"),ft(c),hn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function am(e,t,n,a){var o=(o=we.current)?Ir(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ol(n.href),n=_a(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{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=_a(o).hoistableStyles,f=c.get(e);if(f||(o=o.ownerDocument||o,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=o.querySelector(Ts(e)))&&!c._p&&(f.instance=c,f.state.loading=5),oa.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},oa.set(e,n),c||Uv(o,e,n,f.state))),t&&a===null)throw Error(l(528,""));return f}if(t&&a!==null)throw Error(l(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=kl(n),n=_a(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Ol(e){return'href="'+En(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function im(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function Uv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),hn(t,"link",n),ft(t),e.head.appendChild(t))}function kl(e){return'[src="'+En(e)+'"]'}function Ns(e){return"script[async]"+e}function lm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+En(n.href)+'"]');if(a)return t.instance=a,ft(a),a;var o=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ft(a),hn(a,"style",o),jr(a,n.precedence,e),t.instance=a;case"stylesheet":o=Ol(n.href);var c=e.querySelector(Ts(o));if(c)return t.state.loading|=4,t.instance=c,ft(c),c;a=im(n),(o=oa.get(o))&&au(a,o),c=(e.ownerDocument||e).createElement("link"),ft(c);var f=c;return f._p=new Promise(function(y,A){f.onload=y,f.onerror=A}),hn(c,"link",a),t.state.loading|=4,jr(c,n.precedence,e),t.instance=c;case"script":return c=kl(n.src),(o=e.querySelector(Ns(c)))?(t.instance=o,ft(o),o):(a=n,(o=oa.get(c))&&(a=E({},n),iu(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),ft(o),hn(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,jr(a,n.precedence,e));return t.instance}function jr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,f=0;f<a.length;f++){var y=a[f];if(y.dataset.precedence===t)c=y;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 au(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function iu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hr=null;function sm(e,t,n){if(Hr===null){var a=new Map,o=Hr=new Map;o.set(n,a)}else o=Hr,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[va]||c[Mt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(t)||"";f=e+f;var y=a.get(f);y?y.push(c):a.set(f,[c])}}return a}function rm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Bv(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 om(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Iv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ol(a.href),c=t.querySelector(Ts(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ft(c);return}c=t.ownerDocument||t,a=im(a),(o=oa.get(o))&&au(a,o),c=c.createElement("link"),ft(c);var f=c;f._p=new Promise(function(y,A){f.onload=y,f.onerror=A}),hn(c,"link",a),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=qr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var lu=0;function jv(e,t){return e.stylesheets&&e.count===0&&$r(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&$r(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&lu===0&&(lu=62500*vv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$r(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>lu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function qr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$r(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gr=null;function $r(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gr=new Map,t.forEach(Hv,e),Gr=null,qr.call(e))}function Hv(e,t){if(!(t.state.loading&4)){var n=Gr.get(e);if(n)var a=n.get(null);else{n=new Map,Gr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var f=o[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}o=t.instance,f=o.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,o),n.set(f,o),this.count++,a=qr.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var xs={$$typeof:M,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function qv(e,t,n,a,o,c,f,y,A){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=se(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=se(0),this.hiddenUpdates=se(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function cm(e,t,n,a,o,c,f,y,A,$,W,ae){return e=new qv(e,t,n,f,A,$,W,ae,y),t=1,c===!0&&(t|=24),c=Yn(3,null,null,t),e.current=c,c.stateNode=e,t=Io(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},Go(c),e}function um(e){return e?(e=rl,e):rl}function fm(e,t,n,a,o,c){o=um(o),a.context===null?a.context=o:a.pendingContext=o,a=fi(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=di(e,a,t),n!==null&&(qn(n,e,t),as(n,e,t))}function dm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function su(e,t){dm(e,t),(e=e.alternate)&&dm(e,t)}function hm(e){if(e.tag===13||e.tag===31){var t=Ui(e,67108864);t!==null&&qn(t,e,67108864),su(e,67108864)}}function pm(e){if(e.tag===13||e.tag===31){var t=Xn();t=gt(t);var n=Ui(e,t);n!==null&&qn(n,e,t),su(e,t)}}var Yr=!0;function Gv(e,t,n,a){var o=B.T;B.T=null;var c=ie.p;try{ie.p=2,ru(e,t,n,a)}finally{ie.p=c,B.T=o}}function $v(e,t,n,a){var o=B.T;B.T=null;var c=ie.p;try{ie.p=8,ru(e,t,n,a)}finally{ie.p=c,B.T=o}}function ru(e,t,n,a){if(Yr){var o=ou(a);if(o===null)Pc(e,t,a,Fr,n),gm(e,a);else if(Fv(o,e,t,n,a))a.stopPropagation();else if(gm(e,a),t&4&&-1<Yv.indexOf(e)){for(;o!==null;){var c=ua(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Ct(c.pendingLanes);if(f!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var A=1<<31-xt(f);y.entanglements[1]|=A,f&=~A}wa(c),(ut&6)===0&&(Ar=Pe()+500,vs(0))}}break;case 31:case 13:y=Ui(c,2),y!==null&&qn(y,c,2),Or(),su(c,2)}if(c=ou(a),c===null&&Pc(e,t,a,Fr,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else Pc(e,t,a,null,n)}}function ou(e){return e=ke(e),cu(e)}var Fr=null;function cu(e){if(Fr=null,e=cn(e),e!==null){var t=h(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=g(t),e!==null)return e;e=null}else if(n===31){if(e=v(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 Fr=e,null}function mm(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(zt()){case mt:return 2;case bn:return 8;case yn:case Mn:return 32;case Cn:return 268435456;default:return 32}default:return 32}}var uu=!1,Ti=null,Ni=null,xi=null,ws=new Map,As=new Map,wi=[],Yv="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 gm(e,t){switch(e){case"focusin":case"focusout":Ti=null;break;case"dragenter":case"dragleave":Ni=null;break;case"mouseover":case"mouseout":xi=null;break;case"pointerover":case"pointerout":ws.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":As.delete(t.pointerId)}}function Rs(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ua(t),t!==null&&hm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Fv(e,t,n,a,o){switch(t){case"focusin":return Ti=Rs(Ti,e,t,n,a,o),!0;case"dragenter":return Ni=Rs(Ni,e,t,n,a,o),!0;case"mouseover":return xi=Rs(xi,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return ws.set(c,Rs(ws.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,As.set(c,Rs(As.get(c)||null,e,t,n,a,o)),!0}return!1}function bm(e){var t=cn(e.target);if(t!==null){var n=h(t);if(n!==null){if(t=n.tag,t===13){if(t=g(n),t!==null){e.blockedOn=t,Ja(e.priority,function(){pm(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,Ja(e.priority,function(){pm(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 Kr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ou(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);ge=a,n.target.dispatchEvent(a),ge=null}else return t=ua(n),t!==null&&hm(t),e.blockedOn=n,!1;t.shift()}return!0}function ym(e,t,n){Kr(e)&&n.delete(t)}function Kv(){uu=!1,Ti!==null&&Kr(Ti)&&(Ti=null),Ni!==null&&Kr(Ni)&&(Ni=null),xi!==null&&Kr(xi)&&(xi=null),ws.forEach(ym),As.forEach(ym)}function Pr(e,t){e.blockedOn===t&&(e.blockedOn=null,uu||(uu=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Kv)))}var Zr=null;function vm(e){Zr!==e&&(Zr=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Zr===e&&(Zr=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(cu(a||n)===null)continue;break}var c=ua(n);c!==null&&(e.splice(t,3),t-=3,oc(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Ml(e){function t(A){return Pr(A,e)}Ti!==null&&Pr(Ti,e),Ni!==null&&Pr(Ni,e),xi!==null&&Pr(xi,e),ws.forEach(t),As.forEach(t);for(var n=0;n<wi.length;n++){var a=wi[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<wi.length&&(n=wi[0],n.blockedOn===null);)bm(n),n.blockedOn===null&&wi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],f=o[en]||null;if(typeof c=="function")f||vm(n);else if(f){var y=null;if(c&&c.hasAttribute("formAction")){if(o=c,f=c[en]||null)y=f.formAction;else if(cu(o)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),vm(n)}}}function Em(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return o=f})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!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 a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function fu(e){this._internalRoot=e}Xr.prototype.render=fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,a=Xn();fm(n,a,e,t,null,null)},Xr.prototype.unmount=fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fm(e.current,2,null,e,null,null),Or(),t[lt]=null}};function Xr(e){this._internalRoot=e}Xr.prototype.unstable_scheduleHydration=function(e){if(e){var t=ya();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wi.length&&t!==0&&t<wi[n].priority;n++);wi.splice(n,0,e),n===0&&bm(e)}};var _m=i.version;if(_m!=="19.2.8")throw Error(l(527,_m,"19.2.8"));ie.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Pv={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qr.isDisabled&&Qr.supportsFiber)try{rn=Qr.inject(Pv),Tt=Qr}catch{}}return ks.createRoot=function(e,t){if(!u(e))throw Error(l(299));var n=!1,a="",o=Rh,c=Oh,f=kh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=cm(e,1,!1,null,null,n,a,null,o,c,f,Em),e[lt]=t.current,Kc(e),new fu(t)},ks.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var a=!1,o="",c=Rh,f=Oh,y=kh,A=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(A=n.formState)),t=cm(e,1,!0,t,n??null,a,o,A,c,f,y,Em),t.context=um(null),n=t.current,a=Xn(),a=gt(a),o=fi(a),o.callback=null,di(n,o,a),n=a,t.current.lanes=n,he(t,n),wa(t),e[lt]=t.current,Kc(e),new Xr(t)},ks.version="19.2.8",ks}var Mm;function lE(){if(Mm)return pu.exports;Mm=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),pu.exports=iE(),pu.exports}var sE=lE(),Kt;(function(s){s.INSERT="insert",s.DELETE="delete",s.CONTEXT="context"})(Kt||(Kt={}));const rE={LINE_BY_LINE:"line-by-line"},oE={NONE:"none"},cE={WORD:"word"};var Bl;(function(s){s.AUTO="auto",s.DARK="dark",s.LIGHT="light"})(Bl||(Bl={}));const uE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],fE=RegExp("["+uE.join("\\")+"]","g");function dE(s){return s.replace(fE,"\\$&")}function Cm(s){return s&&s.replace(/\\/g,"/")}function hE(s){let i,r,l,u=0;for(i=0,l=s.length;i<l;i++)r=s.charCodeAt(i),u=(u<<5)-u+r,u|=0;return u}function pb(s){const i=s.length;let r=-1/0;for(let l=0;l<i;l++)r=Math.max(r,s[l]);return r}function Dm(s,i){const r=s.split(".");return r.length>1?r[r.length-1]:i}function Lm(s,i){return i.reduce((r,l)=>r||s.startsWith(l),!1)}const zm=["a/","b/","i/","w/","c/","o/"];function ki(s,i,r){const l=r!==void 0?[...zm,r]:zm,u=i?new RegExp(`^${dE(i)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,h=""]=u.exec(s)||[],g=l.find(m=>h.indexOf(m)===0);return(g?h.slice(g.length):h).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function pE(s,i){return ki(s,"---",i)}function mE(s,i){return ki(s,"+++",i)}function gE(s,i={}){const r=[];let l=null,u=null,h=null,g=null,v=null,m=null,p=null;const b="--- ",E="+++ ",_="@@",x=/^old mode (\d{6})/,N=/^new mode (\d{6})/,C=/^deleted file mode (\d{6})/,R=/^new file mode (\d{6})/,H=/^copy from "?(.+)"?/,U=/^copy to "?(.+)"?/,M=/^rename from "?(.+)"?/,V=/^rename to "?(.+)"?/,j=/^similarity index (\d+)%/,ee=/^dissimilarity index (\d+)%/,ne=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,O=/^Binary files (.*) and (.*) differ/,q=/^GIT binary patch/,Q=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,K=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,ce=/^new file mode (\d{6})/,ve=/^deleted file mode (\d{6}),(\d{6})/,Ae=s.replace(/\/g,"").replace(/\r\n?/g,`
|
|
50
|
+
`).split(`
|
|
51
|
+
`);function pe(){u!==null&&l!==null&&(l.blocks.push(u),u=null)}function B(){l!==null&&(!l.oldName&&m!==null&&(l.oldName=m),!l.newName&&p!==null&&(l.newName=p),l.newName&&(r.push(l),l=null)),m=null,p=null}function ie(){pe(),B(),l={blocks:[],deletedLines:0,addedLines:0}}function de(T){pe();let L;l!==null&&((L=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(T))?(l.isCombined=!1,h=parseInt(L[1],10),v=parseInt(L[2],10)):(L=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(T))?(l.isCombined=!0,h=parseInt(L[1],10),g=parseInt(L[2],10),v=parseInt(L[3],10)):(T.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),h=0,v=0,l.isCombined=!1)),u={lines:[],oldStartLine:h,oldStartLine2:g,newStartLine:v,header:T}}function xe(T){if(l===null||u===null||h===null||v===null)return;const L={content:T},Y=l.isCombined?["+ "," +","++"]:["+"],re=l.isCombined?["- "," -","--"]:["-"];Lm(T,Y)?(l.addedLines++,L.type=Kt.INSERT,L.oldNumber=void 0,L.newNumber=v++):Lm(T,re)?(l.deletedLines++,L.type=Kt.DELETE,L.oldNumber=h++,L.newNumber=void 0):(L.type=Kt.CONTEXT,L.oldNumber=h++,L.newNumber=v++),u.lines.push(L)}function Ue(T,L){let Y=L;for(;Y<Ae.length-3;){if(T.startsWith("diff"))return!1;if(Ae[Y].startsWith(b)&&Ae[Y+1].startsWith(E)&&Ae[Y+2].startsWith(_))return!0;Y++}return!1}return Ae.forEach((T,L)=>{if(!T||T.startsWith("*"))return;let Y;const re=Ae[L-1],Se=Ae[L+1],we=Ae[L+2];if(T.startsWith("diff --git")||T.startsWith("diff --combined")){if(ie(),(Y=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(T))&&(m=ki(Y[1],void 0,i.dstPrefix),p=ki(Y[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isGitDiff=!0;return}if(T.startsWith("Binary files")&&!(l!=null&&l.isGitDiff)){if(ie(),(Y=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(T))&&(m=ki(Y[1],void 0,i.dstPrefix),p=ki(Y[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isBinary=!0;return}if((!l||!l.isGitDiff&&l&&T.startsWith(b)&&Se.startsWith(E)&&we.startsWith(_))&&ie(),l!=null&&l.isTooBig)return;if(l&&(typeof i.diffMaxChanges=="number"&&l.addedLines+l.deletedLines>i.diffMaxChanges||typeof i.diffMaxLineLength=="number"&&T.length>i.diffMaxLineLength)){l.isTooBig=!0,l.addedLines=0,l.deletedLines=0,l.blocks=[],u=null;const Ee=typeof i.diffTooBigMessage=="function"?i.diffTooBigMessage(r.length):"Diff too big to be displayed";de(Ee);return}if(T.startsWith(b)&&Se.startsWith(E)||T.startsWith(E)&&re.startsWith(b)){if(l&&!l.oldName&&T.startsWith("--- ")&&(Y=pE(T,i.srcPrefix))){l.oldName=Y,l.language=Dm(l.oldName,l.language);return}if(l&&!l.newName&&T.startsWith("+++ ")&&(Y=mE(T,i.dstPrefix))){l.newName=Y,l.language=Dm(l.newName,l.language);return}}if(l&&(T.startsWith(_)||l.isGitDiff&&l.oldName&&l.newName&&!u)){de(T);return}if(u&&(T.startsWith("+")||T.startsWith("-")||T.startsWith(" "))){xe(T);return}const ye=!Ue(T,L);if(l===null)throw new Error("Where is my file !!!");(Y=x.exec(T))?l.oldMode=Y[1]:(Y=N.exec(T))?l.newMode=Y[1]:(Y=C.exec(T))?(l.deletedFileMode=Y[1],l.isDeleted=!0):(Y=R.exec(T))?(l.newFileMode=Y[1],l.isNew=!0):(Y=H.exec(T))?(ye&&(l.oldName=Y[1]),l.isCopy=!0):(Y=U.exec(T))?(ye&&(l.newName=Y[1]),l.isCopy=!0):(Y=M.exec(T))?(ye&&(l.oldName=Y[1]),l.isRename=!0):(Y=V.exec(T))?(ye&&(l.newName=Y[1]),l.isRename=!0):(Y=O.exec(T))?(l.isBinary=!0,l.oldName=ki(Y[1],void 0,i.srcPrefix),l.newName=ki(Y[2],void 0,i.dstPrefix),de("Binary file")):q.test(T)?(l.isBinary=!0,de(T)):(Y=j.exec(T))?l.unchangedPercentage=parseInt(Y[1],10):(Y=ee.exec(T))?l.changedPercentage=parseInt(Y[1],10):(Y=ne.exec(T))?(l.checksumBefore=Y[1],l.checksumAfter=Y[2],Y[3]&&(l.mode=Y[3])):(Y=Q.exec(T))?(l.checksumBefore=[Y[2],Y[3]],l.checksumAfter=Y[1]):(Y=K.exec(T))?(l.oldMode=[Y[2],Y[3]],l.newMode=Y[1]):(Y=ce.exec(T))?(l.newFileMode=Y[1],l.isNew=!0):(Y=ve.exec(T))&&(l.deletedFileMode=Y[1],l.isDeleted=!0)}),pe(),B(),r}class mb{diff(i,r,l={}){let u;typeof l=="function"?(u=l,l={}):"callback"in l&&(u=l.callback);const h=this.castInput(i,l),g=this.castInput(r,l),v=this.removeEmpty(this.tokenize(h,l)),m=this.removeEmpty(this.tokenize(g,l));return this.diffWithOptionsObj(v,m,l,u)}diffWithOptionsObj(i,r,l,u){var h;const g=U=>{if(U=this.postProcess(U,l),u){setTimeout(function(){u(U)},0);return}else return U},v=r.length,m=i.length;let p=1,b=v+m;l.maxEditLength!=null&&(b=Math.min(b,l.maxEditLength));const E=(h=l.timeout)!==null&&h!==void 0?h:1/0,_=Date.now()+E,x=[{oldPos:-1,lastComponent:void 0}];let N=this.extractCommon(x[0],r,i,0,l);if(x[0].oldPos+1>=m&&N+1>=v)return g(this.buildValues(x[0].lastComponent,r,i));let C=-1/0,R=1/0;const H=()=>{for(let U=Math.max(C,-p);U<=Math.min(R,p);U+=2){let M;const V=x[U-1],j=x[U+1];V&&(x[U-1]=void 0);let ee=!1;if(j){const O=j.oldPos-U;ee=j&&0<=O&&O<v}const ne=V&&V.oldPos+1<m;if(!ee&&!ne){x[U]=void 0;continue}if(!ne||ee&&V.oldPos<j.oldPos?M=this.addToPath(j,!0,!1,0,l):M=this.addToPath(V,!1,!0,1,l),N=this.extractCommon(M,r,i,U,l),M.oldPos+1>=m&&N+1>=v)return g(this.buildValues(M.lastComponent,r,i))||!0;x[U]=M,M.oldPos+1>=m&&(R=Math.min(R,U-1)),N+1>=v&&(C=Math.max(C,U+1))}p++};if(u)(function U(){setTimeout(function(){if(p>b||Date.now()>_)return u(void 0);H()||U()},0)})();else for(;p<=b&&Date.now()<=_;){const U=H();if(U)return U}}addToPath(i,r,l,u,h){const g=i.lastComponent;return g&&!h.oneChangePerToken&&g.added===r&&g.removed===l?{oldPos:i.oldPos+u,lastComponent:{count:g.count+1,added:r,removed:l,previousComponent:g.previousComponent}}:{oldPos:i.oldPos+u,lastComponent:{count:1,added:r,removed:l,previousComponent:g}}}extractCommon(i,r,l,u,h){const g=r.length,v=l.length;let m=i.oldPos,p=m-u,b=0;for(;p+1<g&&m+1<v&&this.equals(l[m+1],r[p+1],h);)p++,m++,b++,h.oneChangePerToken&&(i.lastComponent={count:1,previousComponent:i.lastComponent,added:!1,removed:!1});return b&&!h.oneChangePerToken&&(i.lastComponent={count:b,previousComponent:i.lastComponent,added:!1,removed:!1}),i.oldPos=m,p}equals(i,r,l){return l.comparator?l.comparator(i,r):i===r||!!l.ignoreCase&&i.toLowerCase()===r.toLowerCase()}removeEmpty(i){const r=[];for(let l=0;l<i.length;l++)i[l]&&r.push(i[l]);return r}castInput(i,r){return i}tokenize(i,r){return Array.from(i)}join(i){return i.join("")}postProcess(i,r){return i}get useLongestToken(){return!1}buildValues(i,r,l){const u=[];let h;for(;i;)u.push(i),h=i.previousComponent,delete i.previousComponent,i=h;u.reverse();const g=u.length;let v=0,m=0,p=0;for(;v<g;v++){const b=u[v];if(b.removed)b.value=this.join(l.slice(p,p+b.count)),p+=b.count;else{if(!b.added&&this.useLongestToken){let E=r.slice(m,m+b.count);E=E.map(function(_,x){const N=l[p+x];return N.length>_.length?N:_}),b.value=this.join(E)}else b.value=this.join(r.slice(m,m+b.count));m+=b.count,b.added||(p+=b.count)}}return u}}class bE extends mb{}const yE=new bE;function vE(s,i,r){return yE.diff(s,i,r)}const Um="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 EE extends mb{tokenize(i){const r=new RegExp(`(\\r?\\n)|[${Um}]+|[^\\S\\n\\r]+|[^${Um}]`,"ug");return i.match(r)||[]}}const _E=new EE;function SE(s,i,r){return _E.diff(s,i,r)}function TE(s,i){if(s.length===0)return i.length;if(i.length===0)return s.length;const r=[];let l;for(l=0;l<=i.length;l++)r[l]=[l];let u;for(u=0;u<=s.length;u++)r[0][u]=u;for(l=1;l<=i.length;l++)for(u=1;u<=s.length;u++)i.charAt(l-1)===s.charAt(u-1)?r[l][u]=r[l-1][u-1]:r[l][u]=Math.min(r[l-1][u-1]+1,Math.min(r[l][u-1]+1,r[l-1][u]+1));return r[i.length][s.length]}function Mf(s){return(i,r)=>{const l=s(i).trim(),u=s(r).trim();return TE(l,u)/(l.length+u.length)}}function Cf(s){function i(l,u,h=new Map){let g=1/0,v;for(let m=0;m<l.length;++m)for(let p=0;p<u.length;++p){const b=JSON.stringify([l[m],u[p]]);let E;h.has(b)&&(E=h.get(b))||(E=s(l[m],u[p]),h.set(b,E)),E<g&&(g=E,v={indexA:m,indexB:p,score:g})}return v}function r(l,u,h=0,g=new Map){const v=i(l,u,g);if(!v||l.length+u.length<3)return[[l,u]];const m=l.slice(0,v.indexA),p=u.slice(0,v.indexB),b=[l[v.indexA]],E=[u[v.indexB]],_=v.indexA+1,x=v.indexB+1,N=l.slice(_),C=u.slice(x),R=r(m,p,h+1,g),H=r(b,E,h+1,g),U=r(N,C,h+1,g);let M=H;return(v.indexA>0||v.indexB>0)&&(M=R.concat(M)),(l.length>_||u.length>x)&&(M=M.concat(U)),M}return r}const On={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},ro={matching:oE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:cE.WORD,colorScheme:Bl.LIGHT},Aa="/",gb=Mf(s=>s.value),NE=Cf(gb);function yu(s){return s.indexOf("dev/null")!==-1}function xE(s){return s.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function wE(s){return s.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function no(s){switch(s){case Kt.CONTEXT:return On.CONTEXT;case Kt.INSERT:return On.INSERTS;case Kt.DELETE:return On.DELETES}}function Df(s){switch(s){case Bl.DARK:return"d2h-dark-color-scheme";case Bl.AUTO:return"d2h-auto-color-scheme";case Bl.LIGHT:default:return"d2h-light-color-scheme"}}function AE(s){return s?2:1}function Il(s){return s.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function Oa(s,i,r=!0){const l=AE(i);return{prefix:s.substring(0,l),content:r?Il(s.substring(l)):s.substring(l)}}function oo(s){const i=Cm(s.oldName),r=Cm(s.newName);if(i!==r&&!yu(i)&&!yu(r)){const l=[],u=[],h=i.split(Aa),g=r.split(Aa),v=h.length,m=g.length;let p=0,b=v-1,E=m-1;for(;p<b&&p<E&&h[p]===g[p];)l.push(g[p]),p+=1;for(;b>p&&E>p&&h[b]===g[E];)u.unshift(g[E]),b-=1,E-=1;const _=l.join(Aa),x=u.join(Aa),N=h.slice(p,b+1).join(Aa),C=g.slice(p,E+1).join(Aa);return _.length&&x.length?_+Aa+"{"+N+" → "+C+"}"+Aa+x:_.length?_+Aa+"{"+N+" → "+C+"}":x.length?"{"+N+" → "+C+"}"+Aa+x:i+" → "+r}else return yu(r)?i:r}function Lf(s){return`d2h-${hE(oo(s)).toString().slice(-6)}`}function zf(s){let i="file-changed";return s.isRename||s.isCopy?i="file-renamed":s.isNew?i="file-added":s.isDeleted?i="file-deleted":s.newName!==s.oldName&&(i="file-renamed"),i}function bb(s,i,r,l={}){const{matching:u,maxLineLengthHighlight:h,matchWordsThreshold:g,diffStyle:v}=Object.assign(Object.assign({},ro),l),m=Oa(s,r,!1),p=Oa(i,r,!1);if(m.content.length>h||p.content.length>h)return{oldLine:{prefix:m.prefix,content:Il(m.content)},newLine:{prefix:p.prefix,content:Il(p.content)}};const b=v==="char"?vE(m.content,p.content):SE(m.content,p.content),E=[];if(v==="word"&&u==="words"){const x=b.filter(R=>R.removed),N=b.filter(R=>R.added);NE(N,x).forEach(R=>{R[0].length===1&&R[1].length===1&&gb(R[0][0],R[1][0])<g&&(E.push(R[0][0]),E.push(R[1][0]))})}const _=b.reduce((x,N)=>{const C=N.added?"ins":N.removed?"del":null,R=E.indexOf(N)>-1?' class="d2h-change"':"",H=Il(N.value);return C!==null?`${x}<${C}${R}>${H}</${C}>`:`${x}${H}`},"");return{oldLine:{prefix:m.prefix,content:xE(_)},newLine:{prefix:p.prefix,content:wE(_)}}}const Bm="file-summary",RE="icon",OE={colorScheme:ro.colorScheme};class kE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},OE),r)}render(i){const r=i.map(l=>this.hoganUtils.render(Bm,"line",{fileHtmlId:Lf(l),oldName:l.oldName,newName:l.newName,fileName:oo(l),deletedLines:"-"+l.deletedLines,addedLines:"+"+l.addedLines},{fileIcon:this.hoganUtils.template(RE,zf(l))})).join(`
|
|
52
|
+
`);return this.hoganUtils.render(Bm,"wrapper",{colorScheme:Df(this.config.colorScheme),filesNumber:i.length,files:r})}}const yb=Object.assign(Object.assign({},ro),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ms="generic",Im="line-by-line",ME="icon",CE="tag";class DE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},yb),r)}render(i){const r=i.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
|
|
53
|
+
`);return this.hoganUtils.render(Ms,"wrapper",{colorScheme:Df(this.config.colorScheme),content:r})}makeFileDiffHtml(i,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(i.blocks)&&i.blocks.length===0)return"";const l=this.hoganUtils.template(Im,"file-diff"),u=this.hoganUtils.template(Ms,"file-path"),h=this.hoganUtils.template(ME,"file"),g=this.hoganUtils.template(CE,zf(i));return l.render({file:i,fileHtmlId:Lf(i),diffs:r,filePath:u.render({fileDiffName:oo(i)},{fileIcon:h,fileTag:g})})}generateEmptyDiff(){return this.hoganUtils.render(Ms,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:On})}generateFileHtml(i){const r=Cf(Mf(l=>Oa(l.content,i.isCombined).content));return i.blocks.map(l=>{let u=this.hoganUtils.render(Ms,"block-header",{CSSLineClass:On,blockHeader:i.isTooBig?l.header:Il(l.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(l).forEach(([h,g,v])=>{if(g.length&&v.length&&!h.length)this.applyRematchMatching(g,v,r).map(([m,p])=>{const{left:b,right:E}=this.processChangedLines(i,i.isCombined,m,p);u+=b,u+=E});else if(h.length)h.forEach(m=>{const{prefix:p,content:b}=Oa(m.content,i.isCombined);u+=this.generateSingleLineHtml(i,{type:On.CONTEXT,prefix:p,content:b,oldNumber:m.oldNumber,newNumber:m.newNumber})});else if(g.length||v.length){const{left:m,right:p}=this.processChangedLines(i,i.isCombined,g,v);u+=m,u+=p}else console.error("Unknown state reached while processing groups of lines",h,g,v)}),u}).join(`
|
|
54
|
+
`)}applyLineGroupping(i){const r=[];let l=[],u=[];for(let h=0;h<i.lines.length;h++){const g=i.lines[h];(g.type!==Kt.INSERT&&u.length||g.type===Kt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),g.type===Kt.CONTEXT?r.push([[g],[],[]]):g.type===Kt.INSERT&&l.length===0?r.push([[],[],[g]]):g.type===Kt.INSERT&&l.length>0?u.push(g):g.type===Kt.DELETE&&l.push(g)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(i,r,l){const u=i.length*r.length,h=pb(i.concat(r).map(v=>v.content.length));return u<this.config.matchingMaxComparisons&&h<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(i,r):[[i,r]]}processChangedLines(i,r,l,u){const h={right:"",left:""},g=Math.max(l.length,u.length);for(let v=0;v<g;v++){const m=l[v],p=u[v],b=m!==void 0&&p!==void 0?bb(m.content,p.content,r,this.config):void 0,E=m!==void 0&&m.oldNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.oldLine.prefix,content:b.oldLine.content,type:On.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(m.content,r)),{type:no(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,_=p!==void 0&&p.newNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.newLine.prefix,content:b.newLine.content,type:On.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(p.content,r)),{type:no(p.type)})),{oldNumber:p.oldNumber,newNumber:p.newNumber}):void 0,{left:x,right:N}=this.generateLineHtml(i,E,_);h.left+=x,h.right+=N}return h}generateLineHtml(i,r,l){return{left:this.generateSingleLineHtml(i,r),right:this.generateSingleLineHtml(i,l)}}generateSingleLineHtml(i,r){if(r===void 0)return"";const l=this.hoganUtils.render(Im,"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===" "?" ":r.prefix,content:r.content,lineNumber:l,line:r,file:i})}}const vb=Object.assign(Object.assign({},ro),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Cs="generic",LE="side-by-side",zE="icon",UE="tag";class BE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},vb),r)}render(i){const r=i.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
|
|
55
|
+
`);return this.hoganUtils.render(Cs,"wrapper",{colorScheme:Df(this.config.colorScheme),content:r})}makeFileDiffHtml(i,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(i.blocks)&&i.blocks.length===0)return"";const l=this.hoganUtils.template(LE,"file-diff"),u=this.hoganUtils.template(Cs,"file-path"),h=this.hoganUtils.template(zE,"file"),g=this.hoganUtils.template(UE,zf(i));return l.render({file:i,fileHtmlId:Lf(i),diffs:r,filePath:u.render({fileDiffName:oo(i)},{fileIcon:h,fileTag:g})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Cs,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:On})}}generateFileHtml(i){const r=Cf(Mf(l=>Oa(l.content,i.isCombined).content));return i.blocks.map(l=>{const u={left:this.makeHeaderHtml(l.header,i),right:this.makeHeaderHtml("")};return this.applyLineGroupping(l).forEach(([h,g,v])=>{if(g.length&&v.length&&!h.length)this.applyRematchMatching(g,v,r).map(([m,p])=>{const{left:b,right:E}=this.processChangedLines(i.isCombined,m,p);u.left+=b,u.right+=E});else if(h.length)h.forEach(m=>{const{prefix:p,content:b}=Oa(m.content,i.isCombined),{left:E,right:_}=this.generateLineHtml({type:On.CONTEXT,prefix:p,content:b,number:m.oldNumber},{type:On.CONTEXT,prefix:p,content:b,number:m.newNumber});u.left+=E,u.right+=_});else if(g.length||v.length){const{left:m,right:p}=this.processChangedLines(i.isCombined,g,v);u.left+=m,u.right+=p}else console.error("Unknown state reached while processing groups of lines",h,g,v)}),u}).reduce((l,u)=>({left:l.left+u.left,right:l.right+u.right}),{left:"",right:""})}applyLineGroupping(i){const r=[];let l=[],u=[];for(let h=0;h<i.lines.length;h++){const g=i.lines[h];(g.type!==Kt.INSERT&&u.length||g.type===Kt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),g.type===Kt.CONTEXT?r.push([[g],[],[]]):g.type===Kt.INSERT&&l.length===0?r.push([[],[],[g]]):g.type===Kt.INSERT&&l.length>0?u.push(g):g.type===Kt.DELETE&&l.push(g)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(i,r,l){const u=i.length*r.length,h=pb(i.concat(r).map(v=>v.content.length));return u<this.config.matchingMaxComparisons&&h<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(i,r):[[i,r]]}makeHeaderHtml(i,r){return this.hoganUtils.render(Cs,"block-header",{CSSLineClass:On,blockHeader:r!=null&&r.isTooBig?i:Il(i),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(i,r,l){const u={right:"",left:""},h=Math.max(r.length,l.length);for(let g=0;g<h;g++){const v=r[g],m=l[g],p=v!==void 0&&m!==void 0?bb(v.content,m.content,i,this.config):void 0,b=v!==void 0&&v.oldNumber!==void 0?Object.assign(Object.assign({},p!==void 0?{prefix:p.oldLine.prefix,content:p.oldLine.content,type:On.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(v.content,i)),{type:no(v.type)})),{number:v.oldNumber}):void 0,E=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},p!==void 0?{prefix:p.newLine.prefix,content:p.newLine.content,type:On.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(m.content,i)),{type:no(m.type)})),{number:m.newNumber}):void 0,{left:_,right:x}=this.generateLineHtml(b,E);u.left+=_,u.right+=x}return u}generateLineHtml(i,r){return{left:this.generateSingleHtml(i),right:this.generateSingleHtml(r)}}generateSingleHtml(i){const r="d2h-code-side-linenumber",l="d2h-code-side-line";return this.hoganUtils.render(Cs,"line",{type:(i==null?void 0:i.type)||`${On.CONTEXT} d2h-emptyplaceholder`,lineClass:i!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:i!==void 0?l:`${l} d2h-code-side-emptyplaceholder`,prefix:(i==null?void 0:i.prefix)===" "?" ":i==null?void 0:i.prefix,content:i==null?void 0:i.content,lineNumber:i==null?void 0:i.number})}}var vu={},jm;function IE(){return jm||(jm=1,(function(s){(function(i){var r=/\S/,l=/\"/g,u=/\n/g,h=/\r/g,g=/\\/g,v=/\u2028/,m=/\u2029/;i.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},i.scan=function(q,Q){var K=q.length,ce=0,ve=1,Ae=2,pe=ce,B=null,ie=null,de="",xe=[],Ue=!1,T=0,L=0,Y="{{",re="}}";function Se(){de.length>0&&(xe.push({tag:"_t",text:new String(de)}),de="")}function we(){for(var Me=!0,Fe=L;Fe<xe.length;Fe++)if(Me=i.tags[xe[Fe].tag]<i.tags._v||xe[Fe].tag=="_t"&&xe[Fe].text.match(r)===null,!Me)return!1;return Me}function ye(Me,Fe){if(Se(),Me&&we())for(var je=L,De;je<xe.length;je++)xe[je].text&&((De=xe[je+1])&&De.tag==">"&&(De.indent=xe[je].text.toString()),xe.splice(je,1));else Fe||xe.push({tag:`
|
|
56
|
+
`});Ue=!1,L=xe.length}function Ee(Me,Fe){var je="="+re,De=Me.indexOf(je,Fe),St=b(Me.substring(Me.indexOf("=",Fe)+1,De)).split(" ");return Y=St[0],re=St[St.length-1],De+je.length-1}for(Q&&(Q=Q.split(" "),Y=Q[0],re=Q[1]),T=0;T<K;T++)pe==ce?E(Y,q,T)?(--T,Se(),pe=ve):q.charAt(T)==`
|
|
57
|
+
`?ye(Ue):de+=q.charAt(T):pe==ve?(T+=Y.length-1,ie=i.tags[q.charAt(T+1)],B=ie?q.charAt(T+1):"_v",B=="="?(T=Ee(q,T),pe=ce):(ie&&T++,pe=Ae),Ue=T):E(re,q,T)?(xe.push({tag:B,n:b(de),otag:Y,ctag:re,i:B=="/"?Ue-Y.length:T+re.length}),de="",T+=re.length-1,pe=ce,B=="{"&&(re=="}}"?T++:p(xe[xe.length-1]))):de+=q.charAt(T);return ye(Ue,!0),xe};function p(O){O.n.substr(O.n.length-1)==="}"&&(O.n=O.n.substring(0,O.n.length-1))}function b(O){return O.trim?O.trim():O.replace(/^\s*|\s*$/g,"")}function E(O,q,Q){if(q.charAt(Q)!=O.charAt(0))return!1;for(var K=1,ce=O.length;K<ce;K++)if(q.charAt(Q+K)!=O.charAt(K))return!1;return!0}var _={_t:!0,"\n":!0,$:!0,"/":!0};function x(O,q,Q,K){var ce=[],ve=null,Ae=null,pe=null;for(Ae=Q[Q.length-1];O.length>0;){if(pe=O.shift(),Ae&&Ae.tag=="<"&&!(pe.tag in _))throw new Error("Illegal content in < super tag.");if(i.tags[pe.tag]<=i.tags.$||N(pe,K))Q.push(pe),pe.nodes=x(O,pe.tag,Q,K);else if(pe.tag=="/"){if(Q.length===0)throw new Error("Closing tag without opener: /"+pe.n);if(ve=Q.pop(),pe.n!=ve.n&&!C(pe.n,ve.n,K))throw new Error("Nesting error: "+ve.n+" vs. "+pe.n);return ve.end=pe.i,ce}else pe.tag==`
|
|
58
|
+
`&&(pe.last=O.length==0||O[0].tag==`
|
|
59
|
+
`);ce.push(pe)}if(Q.length>0)throw new Error("missing closing tag: "+Q.pop().n);return ce}function N(O,q){for(var Q=0,K=q.length;Q<K;Q++)if(q[Q].o==O.n)return O.tag="#",!0}function C(O,q,Q){for(var K=0,ce=Q.length;K<ce;K++)if(Q[K].c==O&&Q[K].o==q)return!0}function R(O){var q=[];for(var Q in O)q.push('"'+M(Q)+'": function(c,p,t,i) {'+O[Q]+"}");return"{ "+q.join(",")+" }"}function H(O){var q=[];for(var Q in O.partials)q.push('"'+M(Q)+'":{name:"'+M(O.partials[Q].name)+'", '+H(O.partials[Q])+"}");return"partials: {"+q.join(",")+"}, subs: "+R(O.subs)}i.stringify=function(O,q,Q){return"{code: function (c,p,i) { "+i.wrapMain(O.code)+" },"+H(O)+"}"};var U=0;i.generate=function(O,q,Q){U=0;var K={code:"",subs:{},partials:{}};return i.walk(O,K),Q.asString?this.stringify(K,q,Q):this.makeTemplate(K,q,Q)},i.wrapMain=function(O){return'var t=this;t.b(i=i||"");'+O+"return t.fl();"},i.template=i.Template,i.makeTemplate=function(O,q,Q){var K=this.makePartials(O);return K.code=new Function("c","p","i",this.wrapMain(O.code)),new this.template(K,q,this,Q)},i.makePartials=function(O){var q,Q={subs:{},partials:O.partials,name:O.name};for(q in Q.partials)Q.partials[q]=this.makePartials(Q.partials[q]);for(q in O.subs)Q.subs[q]=new Function("c","p","t","i",O.subs[q]);return Q};function M(O){return O.replace(g,"\\\\").replace(l,'\\"').replace(u,"\\n").replace(h,"\\r").replace(v,"\\u2028").replace(m,"\\u2029")}function V(O){return~O.indexOf(".")?"d":"f"}function j(O,q){var Q="<"+(q.prefix||""),K=Q+O.n+U++;return q.partials[K]={name:O.n,partials:{}},q.code+='t.b(t.rp("'+M(K)+'",c,p,"'+(O.indent||"")+'"));',K}i.codegen={"#":function(O,q){q.code+="if(t.s(t."+V(O.n)+'("'+M(O.n)+'",c,p,1),c,p,0,'+O.i+","+O.end+',"'+O.otag+" "+O.ctag+'")){t.rs(c,p,function(c,p,t){',i.walk(O.nodes,q),q.code+="});c.pop();}"},"^":function(O,q){q.code+="if(!t.s(t."+V(O.n)+'("'+M(O.n)+'",c,p,1),c,p,1,0,0,"")){',i.walk(O.nodes,q),q.code+="};"},">":j,"<":function(O,q){var Q={partials:{},code:"",subs:{},inPartial:!0};i.walk(O.nodes,Q);var K=q.partials[j(O,q)];K.subs=Q.subs,K.partials=Q.partials},$:function(O,q){var Q={subs:{},code:"",partials:q.partials,prefix:O.n};i.walk(O.nodes,Q),q.subs[O.n]=Q.code,q.inPartial||(q.code+='t.sub("'+M(O.n)+'",c,p,i);')},"\n":function(O,q){q.code+=ne('"\\n"'+(O.last?"":" + i"))},_v:function(O,q){q.code+="t.b(t.v(t."+V(O.n)+'("'+M(O.n)+'",c,p,0)));'},_t:function(O,q){q.code+=ne('"'+M(O.text)+'"')},"{":ee,"&":ee};function ee(O,q){q.code+="t.b(t.t(t."+V(O.n)+'("'+M(O.n)+'",c,p,0)));'}function ne(O){return"t.b("+O+");"}i.walk=function(O,q){for(var Q,K=0,ce=O.length;K<ce;K++)Q=i.codegen[O[K].tag],Q&&Q(O[K],q);return q},i.parse=function(O,q,Q){return Q=Q||{},x(O,"",[],Q.sectionTags||[])},i.cache={},i.cacheKey=function(O,q){return[O,!!q.asString,!!q.disableLambda,q.delimiters,!!q.modelGet].join("||")},i.compile=function(O,q){q=q||{};var Q=i.cacheKey(O,q),K=this.cache[Q];if(K){var ce=K.partials;for(var ve in ce)delete ce[ve].instance;return K}return K=this.generate(this.parse(this.scan(O,q.delimiters),O,q),O,q),this.cache[Q]=K}})(s)})(vu)),vu}var Eu={},Hm;function jE(){return Hm||(Hm=1,(function(s){(function(i){i.Template=function(x,N,C,R){x=x||{},this.r=x.code||this.r,this.c=C,this.options=R||{},this.text=N||"",this.partials=x.partials||{},this.subs=x.subs||{},this.buf=""},i.Template.prototype={r:function(x,N,C){return""},v:E,t:b,render:function(N,C,R){return this.ri([N],C||{},R)},ri:function(x,N,C){return this.r(x,N,C)},ep:function(x,N){var C=this.partials[x],R=N[C.name];if(C.instance&&C.base==R)return C.instance;if(typeof R=="string"){if(!this.c)throw new Error("No compiler available.");R=this.c.compile(R,this.options)}if(!R)return null;if(this.partials[x].base=R,C.subs){N.stackText||(N.stackText={});for(key in C.subs)N.stackText[key]||(N.stackText[key]=this.activeSub!==void 0&&N.stackText[this.activeSub]?N.stackText[this.activeSub]:this.text);R=l(R,C.subs,C.partials,this.stackSubs,this.stackPartials,N.stackText)}return this.partials[x].instance=R,R},rp:function(x,N,C,R){var H=this.ep(x,C);return H?H.ri(N,C,R):""},rs:function(x,N,C){var R=x[x.length-1];if(!_(R)){C(x,N,this);return}for(var H=0;H<R.length;H++)x.push(R[H]),C(x,N,this),x.pop()},s:function(x,N,C,R,H,U,M){var V;return _(x)&&x.length===0?!1:(typeof x=="function"&&(x=this.ms(x,N,C,R,H,U,M)),V=!!x,!R&&V&&N&&N.push(typeof x=="object"?x:N[N.length-1]),V)},d:function(x,N,C,R){var H,U=x.split("."),M=this.f(U[0],N,C,R),V=this.options.modelGet,j=null;if(x==="."&&_(N[N.length-2]))M=N[N.length-1];else for(var ee=1;ee<U.length;ee++)H=r(U[ee],M,V),H!==void 0?(j=M,M=H):M="";return R&&!M?!1:(!R&&typeof M=="function"&&(N.push(j),M=this.mv(M,N,C),N.pop()),M)},f:function(x,N,C,R){for(var H=!1,U=null,M=!1,V=this.options.modelGet,j=N.length-1;j>=0;j--)if(U=N[j],H=r(x,U,V),H!==void 0){M=!0;break}return M?(!R&&typeof H=="function"&&(H=this.mv(H,N,C)),H):R?!1:""},ls:function(x,N,C,R,H,U){var M=this.options.delimiters;return this.options.delimiters=U,this.b(this.ct(b(x.call(N,H,C)),N,R)),this.options.delimiters=M,!1},ct:function(x,N,C){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(x,this.options).render(N,C)},b:function(x){this.buf+=x},fl:function(){var x=this.buf;return this.buf="",x},ms:function(x,N,C,R,H,U,M){var V,j=N[N.length-1],ee=x.call(j);return typeof ee=="function"?R?!0:(V=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(ee,j,N,C,V.substring(H,U),M)):ee},mv:function(x,N,C){var R=N[N.length-1],H=x.call(R);return typeof H=="function"?this.ct(b(H.call(R)),R,C):H},sub:function(x,N,C,R){var H=this.subs[x];H&&(this.activeSub=x,H(N,C,this,R),this.activeSub=!1)}};function r(x,N,C){var R;return N&&typeof N=="object"&&(N[x]!==void 0?R=N[x]:C&&N.get&&typeof N.get=="function"&&(R=N.get(x))),R}function l(x,N,C,R,H,U){function M(){}M.prototype=x;function V(){}V.prototype=x.subs;var j,ee=new M;ee.subs=new V,ee.subsText={},ee.buf="",R=R||{},ee.stackSubs=R,ee.subsText=U;for(j in N)R[j]||(R[j]=N[j]);for(j in R)ee.subs[j]=R[j];H=H||{},ee.stackPartials=H;for(j in C)H[j]||(H[j]=C[j]);for(j in H)ee.partials[j]=H[j];return ee}var u=/&/g,h=/</g,g=/>/g,v=/\'/g,m=/\"/g,p=/[&<>\"\']/;function b(x){return String(x??"")}function E(x){return x=b(x),p.test(x)?x.replace(u,"&").replace(h,"<").replace(g,">").replace(v,"'").replace(m,"""):x}var _=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}})(s)})(Eu)),Eu}var _u,qm;function HE(){if(qm)return _u;qm=1;var s=IE();return s.Template=jE().Template,s.template=s.Template,_u=s,_u}var jt=HE();const Zt={};Zt["file-summary-line"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<li class="d2h-file-list-line">'),l.b(`
|
|
60
|
+
`+r),l.b(' <span class="d2h-file-name-wrapper">'),l.b(`
|
|
61
|
+
`+r),l.b(l.rp("<fileIcon0",s,i," ")),l.b(' <a href="#'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-name">'),l.b(l.v(l.f("fileName",s,i,0))),l.b("</a>"),l.b(`
|
|
62
|
+
`+r),l.b(' <span class="d2h-file-stats">'),l.b(`
|
|
63
|
+
`+r),l.b(' <span class="d2h-lines-added">'),l.b(l.v(l.f("addedLines",s,i,0))),l.b("</span>"),l.b(`
|
|
64
|
+
`+r),l.b(' <span class="d2h-lines-deleted">'),l.b(l.v(l.f("deletedLines",s,i,0))),l.b("</span>"),l.b(`
|
|
65
|
+
`+r),l.b(" </span>"),l.b(`
|
|
66
|
+
`+r),l.b(" </span>"),l.b(`
|
|
67
|
+
`+r),l.b("</li>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});Zt["file-summary-wrapper"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-file-list-wrapper '),l.b(l.v(l.f("colorScheme",s,i,0))),l.b('">'),l.b(`
|
|
68
|
+
`+r),l.b(' <div class="d2h-file-list-header">'),l.b(`
|
|
69
|
+
`+r),l.b(' <span class="d2h-file-list-title">Files changed ('),l.b(l.v(l.f("filesNumber",s,i,0))),l.b(")</span>"),l.b(`
|
|
70
|
+
`+r),l.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),l.b(`
|
|
71
|
+
`+r),l.b(' <a class="d2h-file-switch d2h-show">show</a>'),l.b(`
|
|
72
|
+
`+r),l.b(" </div>"),l.b(`
|
|
73
|
+
`+r),l.b(' <ol class="d2h-file-list">'),l.b(`
|
|
74
|
+
`+r),l.b(" "),l.b(l.t(l.f("files",s,i,0))),l.b(`
|
|
75
|
+
`+r),l.b(" </ol>"),l.b(`
|
|
76
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Zt["generic-block-header"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
|
|
77
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,i,0))),l.b(" "),l.b(l.v(l.d("CSSLineClass.INFO",s,i,0))),l.b('"></td>'),l.b(`
|
|
78
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,i,0))),l.b('">'),l.b(`
|
|
79
|
+
`+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,i,0))),l.b('">'),l.s(l.f("blockHeader",s,i,1),s,i,0,156,173,"{{ }}")&&(l.rs(s,i,function(u,h,g){g.b(g.t(g.f("blockHeader",u,h,0)))}),s.pop()),l.s(l.f("blockHeader",s,i,1),s,i,1,0,0,"")||l.b(" "),l.b("</div>"),l.b(`
|
|
80
|
+
`+r),l.b(" </td>"),l.b(`
|
|
81
|
+
`+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Zt["generic-empty-diff"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
|
|
82
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,i,0))),l.b('">'),l.b(`
|
|
83
|
+
`+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,i,0))),l.b('">'),l.b(`
|
|
84
|
+
`+r),l.b(" File without changes"),l.b(`
|
|
85
|
+
`+r),l.b(" </div>"),l.b(`
|
|
86
|
+
`+r),l.b(" </td>"),l.b(`
|
|
87
|
+
`+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Zt["generic-file-path"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-file-name-wrapper">'),l.b(`
|
|
88
|
+
`+r),l.b(l.rp("<fileIcon0",s,i," ")),l.b(' <span class="d2h-file-name">'),l.b(l.v(l.f("fileDiffName",s,i,0))),l.b("</span>"),l.b(`
|
|
89
|
+
`+r),l.b(l.rp("<fileTag1",s,i," ")),l.b("</span>"),l.b(`
|
|
90
|
+
`+r),l.b('<label class="d2h-file-collapse">'),l.b(`
|
|
91
|
+
`+r),l.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),l.b(`
|
|
92
|
+
`+r),l.b(" Viewed"),l.b(`
|
|
93
|
+
`+r),l.b("</label>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});Zt["generic-line"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
|
|
94
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,i,0))),l.b(" "),l.b(l.v(l.f("type",s,i,0))),l.b('">'),l.b(`
|
|
95
|
+
`+r),l.b(" "),l.b(l.t(l.f("lineNumber",s,i,0))),l.b(`
|
|
96
|
+
`+r),l.b(" </td>"),l.b(`
|
|
97
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.f("type",s,i,0))),l.b('">'),l.b(`
|
|
98
|
+
`+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,i,0))),l.b('">'),l.b(`
|
|
99
|
+
`+r),l.s(l.f("prefix",s,i,1),s,i,0,162,238,"{{ }}")&&(l.rs(s,i,function(u,h,g){g.b(' <span class="d2h-code-line-prefix">'),g.b(g.t(g.f("prefix",u,h,0))),g.b("</span>"),g.b(`
|
|
100
|
+
`+r)}),s.pop()),l.s(l.f("prefix",s,i,1),s,i,1,0,0,"")||(l.b(' <span class="d2h-code-line-prefix"> </span>'),l.b(`
|
|
101
|
+
`+r)),l.s(l.f("content",s,i,1),s,i,0,371,445,"{{ }}")&&(l.rs(s,i,function(u,h,g){g.b(' <span class="d2h-code-line-ctn">'),g.b(g.t(g.f("content",u,h,0))),g.b("</span>"),g.b(`
|
|
102
|
+
`+r)}),s.pop()),l.s(l.f("content",s,i,1),s,i,1,0,0,"")||(l.b(' <span class="d2h-code-line-ctn"><br></span>'),l.b(`
|
|
103
|
+
`+r)),l.b(" </div>"),l.b(`
|
|
104
|
+
`+r),l.b(" </td>"),l.b(`
|
|
105
|
+
`+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Zt["generic-wrapper"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-wrapper '),l.b(l.v(l.f("colorScheme",s,i,0))),l.b('">'),l.b(`
|
|
106
|
+
`+r),l.b(" "),l.b(l.t(l.f("content",s,i,0))),l.b(`
|
|
107
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Zt["icon-file-added"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),l.b(`
|
|
108
|
+
`+r),l.b(' width="14">'),l.b(`
|
|
109
|
+
`+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),l.b(`
|
|
110
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Zt["icon-file-changed"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),l.b(`
|
|
111
|
+
`+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
|
|
112
|
+
`+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),l.b(`
|
|
113
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Zt["icon-file-deleted"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),l.b(`
|
|
114
|
+
`+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
|
|
115
|
+
`+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),l.b(`
|
|
116
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Zt["icon-file-renamed"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),l.b(`
|
|
117
|
+
`+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
|
|
118
|
+
`+r),l.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),l.b(`
|
|
119
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Zt["icon-file"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),l.b(`
|
|
120
|
+
`+r),l.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),l.b(`
|
|
121
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Zt["line-by-line-file-diff"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,i,0))),l.b('">'),l.b(`
|
|
122
|
+
`+r),l.b(' <div class="d2h-file-header">'),l.b(`
|
|
123
|
+
`+r),l.b(" "),l.b(l.t(l.f("filePath",s,i,0))),l.b(`
|
|
124
|
+
`+r),l.b(" </div>"),l.b(`
|
|
125
|
+
`+r),l.b(' <div class="d2h-file-diff">'),l.b(`
|
|
126
|
+
`+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
|
|
127
|
+
`+r),l.b(' <table class="d2h-diff-table">'),l.b(`
|
|
128
|
+
`+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
|
|
129
|
+
`+r),l.b(" "),l.b(l.t(l.f("diffs",s,i,0))),l.b(`
|
|
130
|
+
`+r),l.b(" </tbody>"),l.b(`
|
|
131
|
+
`+r),l.b(" </table>"),l.b(`
|
|
132
|
+
`+r),l.b(" </div>"),l.b(`
|
|
133
|
+
`+r),l.b(" </div>"),l.b(`
|
|
134
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Zt["line-by-line-numbers"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div class="line-num1">'),l.b(l.v(l.f("oldNumber",s,i,0))),l.b("</div>"),l.b(`
|
|
135
|
+
`+r),l.b('<div class="line-num2">'),l.b(l.v(l.f("newNumber",s,i,0))),l.b("</div>"),l.fl()},partials:{},subs:{}});Zt["side-by-side-file-diff"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,i,0))),l.b('">'),l.b(`
|
|
136
|
+
`+r),l.b(' <div class="d2h-file-header">'),l.b(`
|
|
137
|
+
`+r),l.b(" "),l.b(l.t(l.f("filePath",s,i,0))),l.b(`
|
|
138
|
+
`+r),l.b(" </div>"),l.b(`
|
|
139
|
+
`+r),l.b(' <div class="d2h-files-diff">'),l.b(`
|
|
140
|
+
`+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
|
|
141
|
+
`+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
|
|
142
|
+
`+r),l.b(' <table class="d2h-diff-table">'),l.b(`
|
|
143
|
+
`+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
|
|
144
|
+
`+r),l.b(" "),l.b(l.t(l.d("diffs.left",s,i,0))),l.b(`
|
|
145
|
+
`+r),l.b(" </tbody>"),l.b(`
|
|
146
|
+
`+r),l.b(" </table>"),l.b(`
|
|
147
|
+
`+r),l.b(" </div>"),l.b(`
|
|
148
|
+
`+r),l.b(" </div>"),l.b(`
|
|
149
|
+
`+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
|
|
150
|
+
`+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
|
|
151
|
+
`+r),l.b(' <table class="d2h-diff-table">'),l.b(`
|
|
152
|
+
`+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
|
|
153
|
+
`+r),l.b(" "),l.b(l.t(l.d("diffs.right",s,i,0))),l.b(`
|
|
154
|
+
`+r),l.b(" </tbody>"),l.b(`
|
|
155
|
+
`+r),l.b(" </table>"),l.b(`
|
|
156
|
+
`+r),l.b(" </div>"),l.b(`
|
|
157
|
+
`+r),l.b(" </div>"),l.b(`
|
|
158
|
+
`+r),l.b(" </div>"),l.b(`
|
|
159
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Zt["tag-file-added"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),l.fl()},partials:{},subs:{}});Zt["tag-file-changed"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),l.fl()},partials:{},subs:{}});Zt["tag-file-deleted"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),l.fl()},partials:{},subs:{}});Zt["tag-file-renamed"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),l.fl()},partials:{},subs:{}});class qE{constructor({compiledTemplates:i={},rawTemplates:r={}}){const l=Object.entries(r).reduce((u,[h,g])=>{const v=jt.compile(g,{asString:!1});return Object.assign(Object.assign({},u),{[h]:v})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Zt),i),l)}static compile(i){return jt.compile(i,{asString:!1})}render(i,r,l,u,h){const g=this.templateKey(i,r);try{return this.preCompiledTemplates[g].render(l,u,h)}catch{throw new Error(`Could not find template to render '${g}'`)}}template(i,r){return this.preCompiledTemplates[this.templateKey(i,r)]}templateKey(i,r){return`${i}-${r}`}}const GE=Object.assign(Object.assign(Object.assign({},yb),vb),{outputFormat:rE.LINE_BY_LINE,drawFileList:!0});function $E(s,i={}){const r=Object.assign(Object.assign({},GE),i),l=typeof s=="string"?gE(s,r):s,u=new qE(r),{colorScheme:h}=r,g={colorScheme:h},v=r.drawFileList?new kE(u,g).render(l):"",m=r.outputFormat==="side-by-side"?new BE(u,r).render(l):new DE(u,r).render(l);return v+m}var Gm=hb();function js(s){const i=[],r=s.split(`
|
|
160
|
+
`);let l=null,u=null;const h=()=>{l&&u&&i.push({path:u,patch:l.join(`
|
|
161
|
+
`)}),l=null,u=null};for(const g of r)if(g.startsWith("diff --git ")){h(),l=[g];const v=g.match(/^diff --git a\/(.+?) b\/(.+)$/);u=v?v[2]:g.slice(11)}else if(l&&(l.push(g),g.startsWith("--- a/")&&u==="/dev/null"&&(u=g.slice(6)),g==="+++ /dev/null")){const v=l.find(m=>m.startsWith("--- a/"));v&&(u=v.slice(6))}return h(),i}function YE(s,i){const r=new Set(i);return js(s).filter(l=>r.has(l.path)).map(l=>l.patch).join(`
|
|
162
|
+
`)}function FE(s){return KE(s)}function KE(s,i){const l=new Map;for(const{path:u,patch:h}of js(s)){const g=new Map;let v=0,m=!1;const p=h.split(`
|
|
163
|
+
`);for(let b=0;b<p.length;b++){const E=p[b],_=E.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){v=Number(_[2]),m=!0;continue}m&&(E===""&&b===p.length-1||E.startsWith("\\")||(E.startsWith("+")||E.startsWith(" ")||E==="")&&(g.set(v,E===""?"":E.slice(1)),v++))}l.set(u,g)}return l}function PE(s){const i=new Map;for(const[r,l]of FE(s))i.set(r,new Set(l.keys()));return i}function ZE(s,i){const r=new Set(i.flatMap(l=>l.files));return js(s).map(l=>l.path).filter(l=>!r.has(l))}function XE(s){return new Map(js(s).map(i=>[i.path,i.patch.split(`
|
|
164
|
+
`).length]))}const Eb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function QE(s,i){return i?`${Eb[i]} **${i}** — ${s}`:s}const VE=["inbox","awaiting","drafted"],yf=["requests","settled","sent","archived"],Su={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. Nothing 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 $m(s){return s.status==="awaiting"||s.status==="running"?"awaiting":s.status==="sent"?"sent":"drafted"}const Is=s=>!!s.pr.state&&s.pr.state!=="OPEN",Ym=["ready","awaiting","running","failed","reviewed","skipped","sent"];function Ul(s){return[...s].sort((i,r)=>Ym.indexOf(i.status)-Ym.indexOf(r.status)||r.updatedAt.localeCompare(i.updatedAt))}const _b=["sent","reviewed","skipped"];function co(s){return Ul(s.filter(i=>!Is(i)&&!_b.includes(i.status)))}function JE(s,i){if(!(i!=null&&i.enabled)||i.awaiting.length===0)return[];const r=new Set(co(s).map(u=>u.id)),l=new Set(i.awaiting.map(u=>u.id));return Ul(s.filter(u=>l.has(u.id)&&!r.has(u.id)))}const WE=(s,i)=>i.some(r=>r.id===s.id);function e_(s,i){const r=s.filter(u=>!Is(u)),l=Ul(r.filter(u=>!_b.includes(u.status)));return{inbox:l,awaiting:l.filter(u=>$m(u)==="awaiting"),drafted:l.filter(u=>$m(u)==="drafted"),requests:JE(s,i),settled:Ul(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Ul(r.filter(u=>u.status==="sent")),archived:Ul(s.filter(Is))}}function t_(s,i){return yf.includes(s)&&i[s].length===0?"inbox":s}function Sb(s){var i,r;return s.reason==="own-review"?((i=s.review)==null?void 0:i.at)??s.at:s.reason==="own-reply"?((r=s.reply)==null?void 0:r.at)??s.at:s.at}const ao={"own-review":{tag:"reviewed on GitHub",meta:s=>`you reviewed this on GitHub on ${s}`,reasoning:"GitHub stopped asking you for a review and already had one of yours, so this draft was filed rather than left in the inbox. It was never sent — open it to read or send it.",requested:"You submitted a review on GitHub, outside cerber, so this draft was filed."},"own-reply":{tag:"replied on GitHub",meta:s=>`you replied on GitHub on ${s}`,reasoning:"You answered in the PR conversation and nobody has answered back, so the draft was filed rather than left in the inbox. GitHub does not count a comment as a review, but whoever opened the PR is the one holding it. Nothing was sent — open it to read or send it.",requested:"You commented on the PR and nobody answered, so this draft was filed."},"request-withdrawn":{tag:"request withdrawn",meta:s=>`nobody was asking for this any more on ${s}`,reasoning:"Whoever asked for this review took the request back, and you had said nothing on the PR, so the draft was filed rather than left in the inbox. It is still a review — open it to read or send it.",requested:"The review request had gone away when this draft was filed."}};function n_(s){var i;return Is(s)?((i=s.pr.state)==null?void 0:i.toLowerCase())??null:s.filed?ao[s.filed.reason].tag:s.status==="reviewed"||s.status==="skipped"?s.status:null}function a_(s,i){var r;return i!=null&&i.enabled?((r=i.awaiting.find(l=>l.id===s.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."}},l_=s=>i_[s];function s_(s){const i=Uf[s.event]??s.event,r=new Date(s.at).toLocaleDateString();return{label:s.auto?"auto-sent a review":"you replied with a review",title:`${s.auto?"The daemon auto-sent this review":"You sent this review"} to GitHub on ${r} as ${i}. 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 r_(s){const i=ao[s.reason],r=new Date(Sb(s)).toLocaleDateString();return{label:i.tag,title:`${i.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.`}}const o_=(s,i)=>s.sent?s_(s.sent):s.filed?r_(s.filed):l_(i);function c_(s){const i=s.length,r=i===1?"1 review request":`${i} review requests`,l=s.some(Is)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${l} ${i===1?"it":"them"} here without submitting a review, so ${i===1?"it is":"they are"} under open requests, tagged with whose move it is.`}function Tb(s,i=Date.now()){const r=Math.max(0,Math.round((i-new Date(s).getTime())/1e3));return r<45?"now":r<3600?`${Math.round(r/60)}m`:r<86400?`${Math.round(r/3600)}h`:`${Math.round(r/86400)}d`}const u_={approve:"approve",comment:"comment",request_changes:"changes"},Uf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function f_(s){return s.status==="running"?{label:"reviewing…",tone:"running"}:s.status==="awaiting"?{label:"review now",tone:"awaiting"}:s.status==="failed"?{label:"run failed",tone:"failed"}:s.sent?{label:`sent · ${Uf[s.sent.event]??s.sent.event}`,tone:"sent"}:s.verdict?{label:`${s.verdict.recommendation.replace("_"," ")} ${s.verdict.confidence}%`,tone:u_[s.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function Tu(s){return s.trusted?"ran the code":s.withSource?"read the full source":"read the diff only"}function d_(s){if(s.commentCount===0)return"no comments drafted";const i=[`${s.commentCount} comment${s.commentCount===1?"":"s"} drafted`];return s.driftedCount&&i.push(`${s.driftedCount} off-diff`),s.gradedCount&&i.push(s.blockerCount?`${s.blockerCount} blocker${s.blockerCount===1?"":"s"}`:"no blockers"),i.join(", ")}function h_(s,i,r=Date.now()){var u,h;if(s.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Tb(s.updatedAt,r)} ago`,Tu(s)]};if(s.status==="awaiting")return{reasoning:"Found by the inbox poll, not drafted yet — auto-review was off when it arrived, or it is still queued behind another run.",meta:["no run yet","press r to review now"]};if(s.status==="failed")return{reasoning:s.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(s.sent)return{reasoning:`Sent to GitHub as ${Uf[s.sent.event]??s.sent.event} on ${new Date(s.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue.`,meta:[s.sent.auto?"auto-sent by the daemon":"sent by you",Tu(s)]};const l=[Tu(s)];return s.filed?l.unshift(ao[s.filed.reason].meta(new Date(Sb(s.filed)).toLocaleDateString())):s.status==="reviewed"&&l.unshift("you marked this reviewed"),s.status==="skipped"&&l.unshift("you skipped this"),s.costUsd!=null&&l.push(`≈$${s.costUsd.toFixed(2)} at API rates`),l.push(d_(s)),i!=null&&i.enabled&&s.status==="ready"&&((u=s.verdict)==null?void 0:u.recommendation)==="approve"&&l.push(s.verdict.confidence>=i.autoSendThreshold?`auto-send candidate at ${s.verdict.confidence}%`:`below the ${i.autoSendThreshold}% auto-send bar`),s.filed?{reasoning:ao[s.filed.reason].reasoning,meta:l}:{reasoning:((h=s.verdict)==null?void 0:h.reasoning)??"This review has a draft but no verdict.",meta:l}}const p_="/favicon.svg",m_="/favicon-dot.svg",g_=s=>co(s).length>0,b_=s=>s?m_:p_;function y_(s){const i=b_(g_(s)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===i||r.setAttribute("href",i)}async function sn(s,i){const r=await fetch(s,{...i,headers:i!=null&&i.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let l=`${(i==null?void 0:i.method)??"GET"} ${s}: ${r.status}`;try{const u=await r.json();u.error&&(l=u.error)}catch{}throw new Error(l)}return r.json()}const Bf=async()=>{const s=await sn("/api/reviews");return y_(s),s},Nb=()=>sn("/api/daemon"),Fm=s=>sn(`/api/reviews/${encodeURIComponent(s)}`),vf=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}`,{method:"PATCH",body:JSON.stringify(i)}),v_=(s,i,r)=>sn(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"PATCH",body:JSON.stringify(r)}),E_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/comments`,{method:"POST",body:JSON.stringify(i)}),__=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"DELETE"}),S_=s=>sn("/api/reviews",{method:"POST",body:JSON.stringify({input:s})}),T_=s=>sn(`/api/reviews/${encodeURIComponent(s)}/refresh`,{method:"POST"}),xb=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/rerun`+(i===void 0?"":`?source=${i?"1":"0"}`),{method:"POST"}),Ef=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/chat`,{method:"POST",body:JSON.stringify(i)}),N_=s=>sn(`/api/reviews/${encodeURIComponent(s)}/chat/pending`,{method:"DELETE"}),x_=s=>sn(`/api/reviews/${encodeURIComponent(s)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),w_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/send-preview?event=${i}`),A_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/send`,{method:"POST",body:JSON.stringify({event:i,confirm:!0})}),R_=s=>`/api/reviews/${encodeURIComponent(s)}/export`,O_=()=>sn("/api/config"),Nu=(s,i=!1)=>sn("/api/config/trust",{method:"POST",body:JSON.stringify({rule:s,remove:i})}),xu=s=>sn("/api/config/daemon",{method:"POST",body:JSON.stringify(s)});function wu(s){return s.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function _f(s){return s.nodeName.toLowerCase()}function Km(s){const i=[],r=(l,u)=>{for(let h=l.firstChild;h;h=h.nextSibling)h.nodeType===3&&h.nodeValue!==null?u+=h.nodeValue.length:h.nodeType===1&&(i.push({event:"start",offset:u,node:h}),u=r(h,u),_f(h).match(/br|hr|img|input/)||i.push({event:"stop",offset:u,node:h}));return u};return r(s,0),i}function k_(s,i,r){let l=0,u="";const h=[];function g(E){return E!==null&&(E==null?void 0:E.attributes)!==void 0}function v(){return!s.length||!i.length?s.length?s:i:s[0].offset!==i[0].offset?s[0].offset<i[0].offset?s:i:i[0].event==="start"?s:i}function m(E){if(!g(E))throw new Error("Node is not an Element");u+=`<${_f(E)} ${Array().map.call(E.attributes,_=>`${_.nodeName}="${wu(_.value).replace(/"/g,""")}"`).join(" ")}>`}function p(E){u+="</"+_f(E)+">"}function b(E){(E.event==="start"?m:p)(E.node)}for(;s.length||i.length;){let E=v();if(u+=wu(r.substring(l,E[0].offset)),l=E[0].offset,E===s){h.reverse().forEach(p);do b(E.splice(0,1)[0]),E=v();while(E===s&&E.length&&E[0].offset===l);h.reverse().forEach(m)}else E[0].event==="start"?h.push(E[0].node):h.pop(),b(E.splice(0,1)[0])}return u+wu(r.substr(l))}const M_={"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 C_(s){var i;return(i=M_[s])!==null&&i!==void 0?i:"plaintext"}var Au,Pm;function D_(){if(Pm)return Au;Pm=1;function s(w){return w instanceof Map?w.clear=w.delete=w.set=function(){throw new Error("map is read-only")}:w instanceof Set&&(w.add=w.clear=w.delete=function(){throw new Error("set is read-only")}),Object.freeze(w),Object.getOwnPropertyNames(w).forEach(J=>{const fe=w[J],I=typeof fe;(I==="object"||I==="function")&&!Object.isFrozen(fe)&&s(fe)}),w}class i{constructor(J){J.data===void 0&&(J.data={}),this.data=J.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(w){return w.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(w,...J){const fe=Object.create(null);for(const I in w)fe[I]=w[I];return J.forEach(function(I){for(const se in I)fe[se]=I[se]}),fe}const u="</span>",h=w=>!!w.scope,g=(w,{prefix:J})=>{if(w.startsWith("language:"))return w.replace("language:","language-");if(w.includes(".")){const fe=w.split(".");return[`${J}${fe.shift()}`,...fe.map((I,se)=>`${I}${"_".repeat(se+1)}`)].join(" ")}return`${J}${w}`};class v{constructor(J,fe){this.buffer="",this.classPrefix=fe.classPrefix,J.walk(this)}addText(J){this.buffer+=r(J)}openNode(J){if(!h(J))return;const fe=g(J.scope,{prefix:this.classPrefix});this.span(fe)}closeNode(J){h(J)&&(this.buffer+=u)}value(){return this.buffer}span(J){this.buffer+=`<span class="${J}">`}}const m=(w={})=>{const J={children:[]};return Object.assign(J,w),J};class p{constructor(){this.rootNode=m(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(J){this.top.children.push(J)}openNode(J){const fe=m({scope:J});this.add(fe),this.stack.push(fe)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(J){return this.constructor._walk(J,this.rootNode)}static _walk(J,fe){return typeof fe=="string"?J.addText(fe):fe.children&&(J.openNode(fe),fe.children.forEach(I=>this._walk(J,I)),J.closeNode(fe)),J}static _collapse(J){typeof J!="string"&&J.children&&(J.children.every(fe=>typeof fe=="string")?J.children=[J.children.join("")]:J.children.forEach(fe=>{p._collapse(fe)}))}}class b extends p{constructor(J){super(),this.options=J}addText(J){J!==""&&this.add(J)}startScope(J){this.openNode(J)}endScope(){this.closeNode()}__addSublanguage(J,fe){const I=J.root;fe&&(I.scope=`language:${fe}`),this.add(I)}toHTML(){return new v(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function E(w){return w?typeof w=="string"?w:w.source:null}function _(w){return C("(?=",w,")")}function x(w){return C("(?:",w,")*")}function N(w){return C("(?:",w,")?")}function C(...w){return w.map(fe=>E(fe)).join("")}function R(w){const J=w[w.length-1];return typeof J=="object"&&J.constructor===Object?(w.splice(w.length-1,1),J):{}}function H(...w){return"("+(R(w).capture?"":"?:")+w.map(I=>E(I)).join("|")+")"}function U(w){return new RegExp(w.toString()+"|").exec("").length-1}function M(w,J){const fe=w&&w.exec(J);return fe&&fe.index===0}const V=new RegExp(H(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function j(w,{joinWith:J}){let fe=0;return w.map(I=>{fe+=1;const se=fe;let he=E(I),me="";for(;he.length>0;){const be=V.exec(he);if(!be){me+=he;break}me+=he.substring(0,be.index),he=he.substring(be.index+be[0].length),be[0][0]==="\\"&&be[1]?me+="\\"+String(Number(be[1])+se):(me+=be[0],(be[0]==="("||/^\(\?[<']/.test(be[0]))&&fe++)}return me}).map(I=>`(${I})`).join(J)}const ee=/\b\B/,ne="[a-zA-Z]\\w*",O="[a-zA-Z_]\\w*",q="\\b\\d+(\\.\\d+)?",Q="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",ce="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ve=(w={})=>{const J=/^#![ ]*\//;return w.binary&&(w.begin=C(J,/.*\b/,w.binary,/\b.*/)),l({scope:"meta",begin:J,end:/$/,relevance:0,"on:begin":(fe,I)=>{fe.index!==0&&I.ignoreMatch()}},w)},Ae={begin:"\\\\[\\s\\S]",relevance:0},pe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ae]},B={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ae]},ie={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/},de=function(w,J,fe={}){const I=l({scope:"comment",begin:w,end:J,contains:[]},fe);I.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 se=H("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 I.contains.push({begin:C(/[ ]+/,"(",se,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),I},xe=de("//","$"),Ue=de("/\\*","\\*/"),T=de("#","$"),L={scope:"number",begin:q,relevance:0},Y={scope:"number",begin:Q,relevance:0},re={scope:"number",begin:K,relevance:0},Se={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ae,{begin:/\[/,end:/\]/,relevance:0,contains:[Ae]}]},we={scope:"title",begin:ne,relevance:0},ye={scope:"title",begin:O,relevance:0},Ee={begin:"\\.\\s*"+O,relevance:0};var Fe=Object.freeze({__proto__:null,APOS_STRING_MODE:pe,BACKSLASH_ESCAPE:Ae,BINARY_NUMBER_MODE:re,BINARY_NUMBER_RE:K,COMMENT:de,C_BLOCK_COMMENT_MODE:Ue,C_LINE_COMMENT_MODE:xe,C_NUMBER_MODE:Y,C_NUMBER_RE:Q,END_SAME_AS_BEGIN:function(w){return Object.assign(w,{"on:begin":(J,fe)=>{fe.data._beginMatch=J[1]},"on:end":(J,fe)=>{fe.data._beginMatch!==J[1]&&fe.ignoreMatch()}})},HASH_COMMENT_MODE:T,IDENT_RE:ne,MATCH_NOTHING_RE:ee,METHOD_GUARD:Ee,NUMBER_MODE:L,NUMBER_RE:q,PHRASAL_WORDS_MODE:ie,QUOTE_STRING_MODE:B,REGEXP_MODE:Se,RE_STARTERS_RE:ce,SHEBANG:ve,TITLE_MODE:we,UNDERSCORE_IDENT_RE:O,UNDERSCORE_TITLE_MODE:ye});function je(w,J){w.input[w.index-1]==="."&&J.ignoreMatch()}function De(w,J){w.className!==void 0&&(w.scope=w.className,delete w.className)}function St(w,J){J&&w.beginKeywords&&(w.begin="\\b("+w.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",w.__beforeBegin=je,w.keywords=w.keywords||w.beginKeywords,delete w.beginKeywords,w.relevance===void 0&&(w.relevance=0))}function Ge(w,J){Array.isArray(w.illegal)&&(w.illegal=H(...w.illegal))}function kn(w,J){if(w.match){if(w.begin||w.end)throw new Error("begin & end are not supported with match");w.begin=w.match,delete w.match}}function nt(w,J){w.relevance===void 0&&(w.relevance=1)}const Xt=(w,J)=>{if(!w.beforeMatch)return;if(w.starts)throw new Error("beforeMatch cannot be used with starts");const fe=Object.assign({},w);Object.keys(w).forEach(I=>{delete w[I]}),w.keywords=fe.keywords,w.begin=C(fe.beforeMatch,_(fe.begin)),w.starts={relevance:0,contains:[Object.assign(fe,{endsParent:!0})]},w.relevance=0,delete fe.beforeMatch},Nn=["of","and","for","in","not","or","if","then","parent","list","value"],Jt="keyword";function gn(w,J,fe=Jt){const I=Object.create(null);return typeof w=="string"?se(fe,w.split(" ")):Array.isArray(w)?se(fe,w):Object.keys(w).forEach(function(he){Object.assign(I,gn(w[he],J,he))}),I;function se(he,me){J&&(me=me.map(be=>be.toLowerCase())),me.forEach(function(be){const Le=be.split("|");I[Le[0]]=[he,xn(Le[0],Le[1])]})}}function xn(w,J){return J?Number(J):ca(w)?0:1}function ca(w){return Nn.includes(w.toLowerCase())}const Vn={},Pe=w=>{console.error(w)},zt=(w,...J)=>{console.log(`WARN: ${w}`,...J)},mt=(w,J)=>{Vn[`${w}/${J}`]||(console.log(`Deprecated as of ${w}. ${J}`),Vn[`${w}/${J}`]=!0)},bn=new Error;function yn(w,J,{key:fe}){let I=0;const se=w[fe],he={},me={};for(let be=1;be<=J.length;be++)me[be+I]=se[be],he[be+I]=!0,I+=U(J[be-1]);w[fe]=me,w[fe]._emit=he,w[fe]._multi=!0}function Mn(w){if(Array.isArray(w.begin)){if(w.skip||w.excludeBegin||w.returnBegin)throw Pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),bn;if(typeof w.beginScope!="object"||w.beginScope===null)throw Pe("beginScope must be object"),bn;yn(w,w.begin,{key:"beginScope"}),w.begin=j(w.begin,{joinWith:""})}}function Cn(w){if(Array.isArray(w.end)){if(w.skip||w.excludeEnd||w.returnEnd)throw Pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),bn;if(typeof w.endScope!="object"||w.endScope===null)throw Pe("endScope must be object"),bn;yn(w,w.end,{key:"endScope"}),w.end=j(w.end,{joinWith:""})}}function Dn(w){w.scope&&typeof w.scope=="object"&&w.scope!==null&&(w.beginScope=w.scope,delete w.scope)}function Ln(w){Dn(w),typeof w.beginScope=="string"&&(w.beginScope={_wrap:w.beginScope}),typeof w.endScope=="string"&&(w.endScope={_wrap:w.endScope}),Mn(w),Cn(w)}function rn(w){function J(me,be){return new RegExp(E(me),"m"+(w.case_insensitive?"i":"")+(w.unicodeRegex?"u":"")+(be?"g":""))}class fe{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(be,Le){Le.position=this.position++,this.matchIndexes[this.matchAt]=Le,this.regexes.push([Le,be]),this.matchAt+=U(be)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const be=this.regexes.map(Le=>Le[1]);this.matcherRe=J(j(be,{joinWith:"|"}),!0),this.lastIndex=0}exec(be){this.matcherRe.lastIndex=this.lastIndex;const Le=this.matcherRe.exec(be);if(!Le)return null;const Rt=Le.findIndex((Jn,ya)=>ya>0&&Jn!==void 0),gt=this.matchIndexes[Rt];return Le.splice(0,Rt),Object.assign(Le,gt)}}class I{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(be){if(this.multiRegexes[be])return this.multiRegexes[be];const Le=new fe;return this.rules.slice(be).forEach(([Rt,gt])=>Le.addRule(Rt,gt)),Le.compile(),this.multiRegexes[be]=Le,Le}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(be,Le){this.rules.push([be,Le]),Le.type==="begin"&&this.count++}exec(be){const Le=this.getMatcher(this.regexIndex);Le.lastIndex=this.lastIndex;let Rt=Le.exec(be);if(this.resumingScanAtSamePosition()&&!(Rt&&Rt.index===this.lastIndex)){const gt=this.getMatcher(0);gt.lastIndex=this.lastIndex+1,Rt=gt.exec(be)}return Rt&&(this.regexIndex+=Rt.position+1,this.regexIndex===this.count&&this.considerAll()),Rt}}function se(me){const be=new I;return me.contains.forEach(Le=>be.addRule(Le.begin,{rule:Le,type:"begin"})),me.terminatorEnd&&be.addRule(me.terminatorEnd,{type:"end"}),me.illegal&&be.addRule(me.illegal,{type:"illegal"}),be}function he(me,be){const Le=me;if(me.isCompiled)return Le;[De,kn,Ln,Xt].forEach(gt=>gt(me,be)),w.compilerExtensions.forEach(gt=>gt(me,be)),me.__beforeBegin=null,[St,Ge,nt].forEach(gt=>gt(me,be)),me.isCompiled=!0;let Rt=null;return typeof me.keywords=="object"&&me.keywords.$pattern&&(me.keywords=Object.assign({},me.keywords),Rt=me.keywords.$pattern,delete me.keywords.$pattern),Rt=Rt||/\w+/,me.keywords&&(me.keywords=gn(me.keywords,w.case_insensitive)),Le.keywordPatternRe=J(Rt,!0),be&&(me.begin||(me.begin=/\B|\b/),Le.beginRe=J(Le.begin),!me.end&&!me.endsWithParent&&(me.end=/\B|\b/),me.end&&(Le.endRe=J(Le.end)),Le.terminatorEnd=E(Le.end)||"",me.endsWithParent&&be.terminatorEnd&&(Le.terminatorEnd+=(me.end?"|":"")+be.terminatorEnd)),me.illegal&&(Le.illegalRe=J(me.illegal)),me.contains||(me.contains=[]),me.contains=[].concat(...me.contains.map(function(gt){return Wt(gt==="self"?me:gt)})),me.contains.forEach(function(gt){he(gt,Le)}),me.starts&&he(me.starts,be),Le.matcher=se(Le),Le}if(w.compilerExtensions||(w.compilerExtensions=[]),w.contains&&w.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return w.classNameAliases=l(w.classNameAliases||{}),he(w)}function Tt(w){return w?w.endsWithParent||Tt(w.starts):!1}function Wt(w){return w.variants&&!w.cachedVariants&&(w.cachedVariants=w.variants.map(function(J){return l(w,{variants:null},J)})),w.cachedVariants?w.cachedVariants:Tt(w)?l(w,{starts:w.starts?l(w.starts):null}):Object.isFrozen(w)?l(w):w}var xt="11.12.0";class Gn extends Error{constructor(J,fe){super(J),this.name="HTMLInjectionError",this.html=fe}}const zn=r,wn=l,Ie=Symbol("nomatch"),on=7,Qt=function(w){const J=Object.create(null),fe=Object.create(null),I=[];let se=!0;const he="Could not find the language '{}', did you forget to load/include a language module?",me={disableAutodetect:!0,name:"Plain text",contains:[]};let be={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Le(oe){return be.noHighlightRe.test(oe)}function Rt(oe){let Oe=oe.className+" ";Oe+=oe.parentNode?oe.parentNode.className:"";const $e=be.languageDetectRe.exec(Oe);if($e){const st=cn($e[1]);return st||(zt(he.replace("{}",$e[1])),zt("Falling back to no-highlight mode for this block.",oe)),st?$e[1]:"no-highlight"}return Oe.split(/\s+/).find(st=>Le(st)||cn(st))}function gt(oe,Oe,$e){let st="",Nt="";typeof Oe=="object"?(st=oe,$e=Oe.ignoreIllegals,Nt=Oe.language):(mt("10.7.0","highlight(lang, code, ...args) has been deprecated."),mt("10.7.0",`Please use highlight(code, options) instead.
|
|
165
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Nt=oe,st=Oe),$e===void 0&&($e=!0);const Ht={code:st,language:Nt};An("before:highlight",Ht);const tn=Ht.result?Ht.result:Jn(Ht.language,Ht.code,$e);return tn.code=Ht.code,An("after:highlight",tn),tn}function Jn(oe,Oe,$e,st){const Nt=Object.create(null);function Ht(le,ge){return le.keywords[ge]}function tn(){if(!Z.keywords){D.addText(X);return}let le=0;Z.keywordPatternRe.lastIndex=0;let ge=Z.keywordPatternRe.exec(X),ke="";for(;ge;){ke+=X.substring(le,ge.index);const Ke=qt.case_insensitive?ge[0].toLowerCase():ge[0],Ze=Ht(Z,Ke);if(Ze){const[ea,ql]=Ze;if(D.addText(ke),ke="",Nt[Ke]=(Nt[Ke]||0)+1,Nt[Ke]<=on&&(_e+=ql),ea.startsWith("_"))ke+=ge[0];else{const Gs=qt.classNameAliases[ea]||ea;Ot(ge[0],Gs)}}else ke+=ge[0];le=Z.keywordPatternRe.lastIndex,ge=Z.keywordPatternRe.exec(X)}ke+=X.substring(le),D.addText(ke)}function Ut(){if(X==="")return;let le=null;if(typeof Z.subLanguage=="string"){if(!J[Z.subLanguage]){D.addText(X);return}le=Jn(Z.subLanguage,X,!0,S[Z.subLanguage]),S[Z.subLanguage]=le._top}else le=Ja(X,Z.subLanguage.length?Z.subLanguage:null);Z.relevance>0&&(_e+=le.relevance),D.__addSublanguage(le._emitter,le.language)}function rt(){Z.subLanguage!=null?Ut():tn(),X=""}function Ot(le,ge){le!==""&&(D.startScope(ge),D.addText(le),D.endScope())}function tl(le,ge){let ke=1;const Ke=ge.length-1;for(;ke<=Ke;){if(!le._emit[ke]){ke++;continue}const Ze=qt.classNameAliases[le[ke]]||le[ke],ea=ge[ke];Ze?Ot(ea,Ze):(X=ea,tn(),X=""),ke++}}function ti(le,ge){return le.scope&&typeof le.scope=="string"&&D.openNode(qt.classNameAliases[le.scope]||le.scope),le.beginScope&&(le.beginScope._wrap?(Ot(X,qt.classNameAliases[le.beginScope._wrap]||le.beginScope._wrap),X=""):le.beginScope._multi&&(tl(le.beginScope,ge),X="")),Z=Object.create(le,{parent:{value:Z}}),Z}function ni(le,ge,ke){let Ke=M(le.endRe,ke);if(Ke){if(le["on:end"]){const Ze=new i(le);le["on:end"](ge,Ze),Ze.isMatchIgnored&&(Ke=!1)}if(Ke){for(;le.endsParent&&le.parent;)le=le.parent;return le}}if(le.endsWithParent)return ni(le.parent,ge,ke)}function Ca(le){return Z.matcher.regexIndex===0?(X+=le[0],1):(Xe=!0,0)}function nl(le){const ge=le[0],ke=le.rule,Ke=new i(ke),Ze=[ke.__beforeBegin,ke["on:begin"]];for(const ea of Ze)if(ea&&(ea(le,Ke),Ke.isMatchIgnored))return Ca(ge);return ke.skip?X+=ge:(ke.excludeBegin&&(X+=ge),rt(),!ke.returnBegin&&!ke.excludeBegin&&(X=ge)),ti(ke,le),ke.returnBegin?0:ge.length}function En(le){const ge=le[0],ke=Oe.substring(le.index),Ke=ni(Z,le,ke);if(!Ke)return Ie;const Ze=Z;Z.endScope&&Z.endScope._wrap?(rt(),Ot(ge,Z.endScope._wrap)):Z.endScope&&Z.endScope._multi?(rt(),tl(Z.endScope,le)):Ze.skip?X+=ge:(Ze.returnEnd||Ze.excludeEnd||(X+=ge),rt(),Ze.excludeEnd&&(X=ge));do Z.scope&&D.closeNode(),!Z.skip&&!Z.subLanguage&&(_e+=Z.relevance),Z=Z.parent;while(Z!==Ke.parent);return Ke.starts&&ti(Ke.starts,le),Ze.returnEnd?0:ge.length}function ai(){const le=[];for(let ge=Z;ge!==qt;ge=ge.parent)ge.scope&&le.unshift(ge.scope);le.forEach(ge=>D.openNode(ge))}let Da={};function ii(le,ge){const ke=ge&&ge[0];if(X+=le,ke==null)return rt(),0;if(Da.type==="begin"&&ge.type==="end"&&Da.index===ge.index&&ke===""){if(X+=Oe.slice(ge.index,ge.index+1),!se){const Ke=new Error(`0 width match regex (${oe})`);throw Ke.languageName=oe,Ke.badRule=Da.rule,Ke}return 1}if(Da=ge,ge.type==="begin")return nl(ge);if(ge.type==="illegal"&&!$e){const Ke=new Error('Illegal lexeme "'+ke+'" for mode "'+(Z.scope||"<unnamed>")+'"');throw Ke.mode=Z,Ke}else if(ge.type==="end"){const Ke=En(ge);if(Ke!==Ie)return Ke}if(ge.type==="illegal"&&ke==="")return ge.index===Oe.length||(X+=`
|
|
166
|
+
`),1;if(Be>1e5&&Be>ge.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=ke,ke.length}const qt=cn(oe);if(!qt)throw Pe(he.replace("{}",oe)),new Error('Unknown language: "'+oe+'"');const La=rn(qt);let Sa="",Z=st||La;const S={},D=new be.__emitter(be);ai();let X="",_e=0,Ne=0,Be=0,Xe=!1;try{if(qt.__emitTokens)qt.__emitTokens(Oe,D);else{for(Z.matcher.considerAll();;){Be++,Xe?Xe=!1:Z.matcher.considerAll(),Z.matcher.lastIndex=Ne;const le=Z.matcher.exec(Oe);if(!le)break;const ge=Oe.substring(Ne,le.index),ke=ii(ge,le);Ne=le.index+ke}ii(Oe.substring(Ne))}return D.finalize(),Sa=D.toHTML(),{language:oe,value:Sa,relevance:_e,illegal:!1,_emitter:D,_top:Z}}catch(le){if(le.message&&le.message.includes("Illegal"))return{language:oe,value:zn(Oe),illegal:!0,relevance:0,_illegalBy:{message:le.message,index:Ne,context:Oe.slice(Ne-100,Ne+100),mode:le.mode,resultSoFar:Sa},_emitter:D};if(se)return{language:oe,value:zn(Oe),illegal:!1,relevance:0,errorRaised:le,_emitter:D,_top:Z};throw le}}function ya(oe){const Oe={value:zn(oe),illegal:!1,relevance:0,_top:me,_emitter:new be.__emitter(be)};return Oe._emitter.addText(oe),Oe}function Ja(oe,Oe){Oe=Oe||be.languages||Object.keys(J);const $e=ya(oe),st=Oe.filter(cn).filter(Ea).map(rt=>Jn(rt,oe,!1));st.unshift($e);const Nt=st.sort((rt,Ot)=>{if(rt.relevance!==Ot.relevance)return Ot.relevance-rt.relevance;if(rt.language&&Ot.language){if(cn(rt.language).supersetOf===Ot.language)return 1;if(cn(Ot.language).supersetOf===rt.language)return-1}return 0}),[Ht,tn]=Nt,Ut=Ht;return Ut.secondBest=tn,Ut}function vn(oe,Oe,$e){const st=Oe&&fe[Oe]||$e;oe.classList.add("hljs"),oe.classList.add(`language-${st}`)}function Mt(oe){let Oe=null;const $e=Rt(oe);if(Le($e))return;if(An("before:highlightElement",{el:oe,language:$e}),oe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",oe);return}if(oe.children.length>0&&(be.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)),be.throwUnescapedHTML))throw new Gn("One of your code blocks includes unescaped HTML.",oe.innerHTML);Oe=oe;const st=Oe.textContent,Nt=$e?gt(st,{language:$e,ignoreIllegals:!0}):Ja(st);oe.innerHTML=Nt.value,oe.dataset.highlighted="yes",vn(oe,$e,Nt.language),oe.result={language:Nt.language,re:Nt.relevance,relevance:Nt.relevance},Nt.secondBest&&(oe.secondBest={language:Nt.secondBest.language,relevance:Nt.secondBest.relevance}),An("after:highlightElement",{el:oe,result:Nt,text:st})}function en(oe){be=wn(be,oe)}const lt=()=>{ka(),mt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Wn(){ka(),mt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let el=!1;function ka(){function oe(){ka()}if(document.readyState==="loading"){el||window.addEventListener("DOMContentLoaded",oe,!1),el=!0;return}document.querySelectorAll(be.cssSelector).forEach(Mt)}function Wa(oe,Oe){let $e=null;try{$e=Oe(w)}catch(st){if(Pe("Language definition for '{}' could not be registered.".replace("{}",oe)),se)Pe(st);else throw st;$e=me}$e.name||($e.name=oe),J[oe]=$e,$e.rawDefinition=Oe.bind(null,w),$e.aliases&&ua($e.aliases,{languageName:oe})}function va(oe){delete J[oe];for(const Oe of Object.keys(fe))fe[Oe]===oe&&delete fe[Oe]}function ei(){return Object.keys(J)}function cn(oe){return oe=(oe||"").toLowerCase(),J[oe]||J[fe[oe]]}function ua(oe,{languageName:Oe}){typeof oe=="string"&&(oe=[oe]),oe.forEach($e=>{fe[$e.toLowerCase()]=Oe})}function Ea(oe){const Oe=cn(oe);return Oe&&!Oe.disableAutodetect}function _a(oe){oe["before:highlightBlock"]&&!oe["before:highlightElement"]&&(oe["before:highlightElement"]=Oe=>{oe["before:highlightBlock"](Object.assign({block:Oe.el},Oe))}),oe["after:highlightBlock"]&&!oe["after:highlightElement"]&&(oe["after:highlightElement"]=Oe=>{oe["after:highlightBlock"](Object.assign({block:Oe.el},Oe))})}function ft(oe){_a(oe),I.push(oe)}function Ma(oe){const Oe=I.indexOf(oe);Oe!==-1&&I.splice(Oe,1)}function An(oe,Oe){const $e=oe;I.forEach(function(st){st[$e]&&st[$e](Oe)})}function fa(oe){return mt("10.7.0","highlightBlock will be removed entirely in v12.0"),mt("10.7.0","Please use highlightElement now."),Mt(oe)}Object.assign(w,{highlight:gt,highlightAuto:Ja,highlightAll:ka,highlightElement:Mt,highlightBlock:fa,configure:en,initHighlighting:lt,initHighlightingOnLoad:Wn,registerLanguage:Wa,unregisterLanguage:va,listLanguages:ei,getLanguage:cn,registerAliases:ua,autoDetection:Ea,inherit:wn,addPlugin:ft,removePlugin:Ma}),w.debugMode=function(){se=!1},w.safeMode=function(){se=!0},w.versionString=xt,w.regex={concat:C,lookahead:_,either:H,optional:N,anyNumberOfTimes:x};for(const oe in Fe)typeof Fe[oe]=="object"&&s(Fe[oe]);return Object.assign(w,Fe),w},Ct=Qt({});return Ct.newInstance=()=>Qt({}),Au=Ct,Ct.HighlightJS=Ct,Ct.default=Ct,Au}var Ru,Zm;function L_(){if(Zm)return Ru;Zm=1;function s(i){const r=i.regex,l=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,h={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},g={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},v=i.inherit(g,{begin:/\(/,end:/\)/}),m=i.inherit(i.APOS_STRING_MODE,{className:"string"}),p=i.inherit(i.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:[h]},{begin:/'/,end:/'/,contains:[h]},{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:[g,p,m,v,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[g,v,p,m]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},h,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[p]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(l,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Ru=s,Ru}var Ou,Xm;function z_(){if(Xm)return Ou;Xm=1;function s(i){const r=i.regex,l={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[l]}]};Object.assign(l,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const h={className:"subst",begin:/\$\(/,end:/\)/,contains:[i.BACKSLASH_ESCAPE]},g=i.inherit(i.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),v={begin:/<<-?\s*(?=\w+)/,starts:{contains:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},m={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,l,h]};h.contains.push(m);const p={match:/\\"/},b={className:"string",begin:/'/,end:/'/},E={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},i.NUMBER_MODE,l]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],N=i.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),C={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[i.inherit(i.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},R=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],H=["true","false"],U={match:/(\/[a-z._-]+)+/},M=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],V=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],j=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],ee=["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:R,literal:H,built_in:[...M,...V,"set","shopt",...j,...ee]},contains:[N,i.SHEBANG(),C,_,g,v,U,m,p,b,E,l]}}return Ou=s,Ou}var ku,Qm;function U_(){if(Qm)return ku;Qm=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",h="[a-zA-Z_]\\w*::",v="("+u+"|"+r.optional(h)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",m=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/),p={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:m}]},E={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[i.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:"."},i.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},_={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},x={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},E,{scope:"string",begin:/<.*?>/},l,i.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},i.inherit(E,{className:"string"}),l,i.C_BLOCK_COMMENT_MODE]},C=[x,N],R={className:"title",begin:r.optional(h)+i.IDENT_RE,relevance:0},H=r.optional(h)+i.IDENT_RE+"\\s*\\(",U=12,j={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},ee=[...C,p,l,i.C_BLOCK_COMMENT_MODE,_,E],ne={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:j,contains:ee.concat([{begin:/\(/,end:/\)/,keywords:j,contains:ee.concat(["self"]),relevance:0}]),relevance:0},O={begin:"("+v+"[\\*&\\s]+){1,"+U+"}"+H,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:j,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:j,relevance:0},{begin:H,returnBegin:!0,contains:[i.inherit(R,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:j,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,E,_,p,{begin:/\(/,end:/\)/,keywords:j,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,E,_,p]}]},p,l,i.C_BLOCK_COMMENT_MODE,...C]};return{name:"C",aliases:["h"],keywords:j,disableAutodetect:!0,illegal:"</",contains:[].concat(ne,O,ee,[...C,{begin:i.IDENT_RE+"::",keywords:j},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},i.TITLE_MODE]}]),exports:{preprocessor:N,strings:E,keywords:j}}}return ku=s,ku}var Mu,Vm;function B_(){if(Vm)return Mu;Vm=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",h="[a-zA-Z_]\\w*::",v="(?!struct)("+u+"|"+r.optional(h)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",m={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[i.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:"."},i.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},E={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},_={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},b,{scope:"string",begin:/<.*?>/},l,i.C_BLOCK_COMMENT_MODE]},x={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},i.inherit(b,{className:"string"}),l,i.C_BLOCK_COMMENT_MODE]},N=[_,x],C={className:"title",begin:r.optional(h)+i.IDENT_RE,relevance:0},R=r.optional(h)+i.IDENT_RE+"\\s*\\(",H=12,U=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],M=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],V=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],j=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],O={type:M,keyword:U,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:V},q={className:"function.dispatch",relevance:0,keywords:{_hint:j},begin:r.concat(/\b/,`(?!${U.join("|")})`,i.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},Q=[q,...N,m,l,i.C_BLOCK_COMMENT_MODE,E,b],K={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:O,contains:Q.concat([{begin:/\(/,end:/\)/,keywords:O,contains:Q.concat(["self"]),relevance:0}]),relevance:0},ce={className:"function",begin:"("+v+"[\\*&\\s]+){1,"+H+"}"+R,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:O,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:O,relevance:0},{begin:R,returnBegin:!0,contains:[C],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,E]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,b,E,m,{begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,b,E,m]}]},m,l,i.C_BLOCK_COMMENT_MODE,...N]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:O,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(K,ce,q,Q,[...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:O,contains:["self",m]},{begin:i.IDENT_RE+"::",keywords:O},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Mu=s,Mu}var Cu,Jm;function I_(){if(Jm)return Cu;Jm=1;function s(i){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],l=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],h=["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"],g=["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"],v={keyword:h.concat(g),built_in:r,literal:u},m=i.inherit(i.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),p="\\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"+p+"(\\.("+p+")?)?|\\."+p+")([eE][-+]?"+p+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},x={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},N={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},C=i.inherit(N,{illegal:/\n/}),R={className:"subst",begin:/\{/,end:/\}/,keywords:v},H=i.inherit(R,{illegal:/\n/}),U={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},i.BACKSLASH_ESCAPE,H]},M={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},R]},V=i.inherit(M,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},H]});R.contains=[M,U,N,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.C_BLOCK_COMMENT_MODE],H.contains=[V,U,C,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.inherit(i.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const j={variants:[x,M,U,N,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},ee={begin:"<",end:">",contains:[{beginKeywords:"in out"},m]},ne=i.IDENT_RE+"(<"+i.IDENT_RE+"(\\s*,\\s*"+i.IDENT_RE+")*>)?(\\[\\])?",O={begin:"@"+i.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:v,illegal:/::/,contains:[i.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},j,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},m,ee,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[m,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[m,ee,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+ne+"\\s+)+"+i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:v,contains:[{beginKeywords:l.join(" "),relevance:0},{begin:i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[i.TITLE_MODE,ee],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,relevance:0,contains:[j,_,i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},O]}}return Cu=s,Cu}var Du,Wm;function j_(){if(Wm)return Du;Wm=1;const s=p=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:p.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:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:p.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_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...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(),h=["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(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),v=["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 m(p){const b=p.regex,E=s(p),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",N=/@-?\w[\w]*(-\w+)*/,C="[a-zA-Z-][a-zA-Z0-9_-]*",R=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[E.BLOCK_COMMENT,_,E.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+C,relevance:0},E.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+h.join("|")+")"},{begin:":(:)?("+g.join("|")+")"}]},E.CSS_VARIABLE,{className:"attribute",begin:"\\b("+v.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[E.BLOCK_COMMENT,E.HEXCOLOR,E.IMPORTANT,E.CSS_NUMBER_MODE,E.UNICODE_RANGE,...R,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...R,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},E.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:x,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...R,E.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b"}]}}return Du=m,Du}var Lu,eg;function H_(){if(eg)return Lu;eg=1;function s(i){const r=i.regex,l={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},h={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}]},g={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},v={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},m=/[A-Za-z][A-Za-z0-9+.-]*/,p={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,m,/:\/\/.*?\)/),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}/}]},E={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},_=i.inherit(b,{contains:[]}),x=i.inherit(E,{contains:[]});b.contains.push(x),E.contains.push(_);let N=[l,p];return[b,E,_,x].forEach(U=>{U.contains=U.contains.concat(N)}),N=N.concat(b,E),{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}]}]},l,g,u,b,E,{className:"quote",begin:"^>\\s+",contains:N,end:"$"},h,p,v,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Lu=s,Lu}var zu,tg;function q_(){if(tg)return zu;tg=1;function s(i){const r=i.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 zu=s,zu}var Uu,ng;function G_(){if(ng)return Uu;ng=1;function s(i){const r=i.regex,l="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),h=r.concat(u,/(::\w+)*/),v={"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"]},m={className:"doctag",begin:"@[A-Za-z]+"},p={begin:"#<",end:">"},b=[i.COMMENT("#","$",{contains:[m]}),i.COMMENT("^=begin","^=end",{contains:[m],relevance:10}),i.COMMENT("^__END__",i.MATCH_NOTHING_RE)],E={className:"subst",begin:/#\{/,end:/\}/,keywords:v},_={className:"string",contains:[i.BACKSLASH_ESCAPE,E],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:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[i.BACKSLASH_ESCAPE,E]})]}]},x="[1-9](_?[0-9])*|0",N="[0-9](_?[0-9])*",C={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${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"}]},R={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:v}]},ne=[_,{variants:[{match:[/class\s+/,h,/\s+<\s+/,h]},{match:[/\b(class|module)\s+/,h]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:v},{match:[/(include|extend)\s+/,h],scope:{2:"title.class"},keywords:v},{relevance:0,match:[h,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:u,scope:"title.class"},{match:[/def/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[R]},{begin:"::"},{className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:l}],relevance:0},C,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:v},{begin:"("+i.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[i.BACKSLASH_ESCAPE,E],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(p,b),relevance:0}].concat(p,b);E.contains=ne,R.contains=ne;const K=[{begin:/^\s*=>/,starts:{end:"$",contains:ne}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:v,contains:ne}}];return b.unshift(p),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:v,illegal:/\/\*/,contains:[i.SHEBANG({binary:"ruby"})].concat(K).concat(b).concat(ne)}}return Uu=s,Uu}var Bu,ag;function $_(){if(ag)return Bu;ag=1;function s(i){const g={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:g,illegal:"</",contains:[i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{className:"string",variants:[i.QUOTE_STRING_MODE,i.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:[i.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:g,illegal:/["']/}]}]}}return Bu=s,Bu}var Iu,ig;function Y_(){if(ig)return Iu;ig=1;function s(i){const r=i.regex,l=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[i.HASH_COMMENT_MODE,i.QUOTE_STRING_MODE,i.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(l,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Iu=s,Iu}var ju,lg;function F_(){if(lg)return ju;lg=1;function s(i){const r=i.regex,l={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:i.NUMBER_RE}]},u=i.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const h={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},g={className:"literal",begin:/\bon|off|true|false|yes|no\b/},v={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},m={begin:/\[/,end:/\]/,contains:[u,g,h,v,l,"self"],relevance:0},p=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,E=/'[^']*'/,_=r.either(p,b,E),x=r.concat(_,"(\\s*\\.\\s*",_,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[u,{className:"section",begin:/\[+/,end:/\]+/},{begin:x,className:"attr",starts:{end:/$/,contains:[u,m,g,h,v,l]}}]}}return ju=s,ju}var Hu,sg;function K_(){if(sg)return Hu;sg=1;var s="[0-9](_*[0-9])*",i=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(g,v,m){return m===-1?"":g.replace(v,p=>u(g,v,m-1))}function h(g){const v=g.regex,m="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",p="(?:(?:\\s*\\[\\s*])+)?",b=m+"<@@@>"+p,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",x=u("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),U={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},M={className:"meta",begin:"@"+m,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},V={className:"params",begin:/\(/,end:/\)/,keywords:U,relevance:0,contains:[g.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:U,illegal:/<\/|#/,contains:[g.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[g.BACKSLASH_ESCAPE]},g.APOS_STRING_MODE,g.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,m],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[m,v.concat(x,p,/\s+/),m,p,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,m],className:{1:"keyword",3:"title.class"},contains:[V,g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE]},{begin:[m,v.concat(x,p,/\s+/),m,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:U,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:U,relevance:0,contains:[M,g.APOS_STRING_MODE,g.QUOTE_STRING_MODE,l,g.C_BLOCK_COMMENT_MODE]},g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE]},l,M]}}return Hu=h,Hu}var qu,rg;function P_(){if(rg)return qu;rg=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",i=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],l=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],h=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],g=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],v=[].concat(h,l,u);function m(p){const b=p.regex,E=(ye,{after:Ee})=>{const Me="</"+ye[0].slice(1);return ye.input.indexOf(Me,Ee)!==-1},_=s,x={begin:"<>",end:"</>"},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,C={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ye,Ee)=>{const Me=ye[0].length+ye.index,Fe=ye.input[Me];if(Fe==="<"||Fe===","){Ee.ignoreMatch();return}Fe===">"&&(E(ye,{after:Me})||Ee.ignoreMatch());let je;const De=ye.input.substring(Me);if(je=De.match(/^\s*=/)){Ee.ignoreMatch();return}if((je=De.match(/^\s+extends\s+/))&&je.index===0){Ee.ignoreMatch();return}}},R={$pattern:s,keyword:i,literal:r,built_in:v,"variable.language":g},H="[0-9](_?[0-9])*",U=`\\.(${H})`,M="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",V={className:"number",variants:[{begin:`(\\b(${M})((${U})|\\.)?|(${U}))[eE][+-]?(${H})\\b`},{begin:`\\b(${M})\\b((${U})\\b|\\.)?|(${U})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},j={className:"subst",begin:"\\$\\{",end:"\\}",keywords:R,contains:[]},ee={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,j],subLanguage:"xml"}},ne={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,j],subLanguage:"css"}},O={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,j],subLanguage:"graphql"}},q={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,j]},K={className:"comment",variants:[p.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}]}]}),p.C_BLOCK_COMMENT_MODE,p.C_LINE_COMMENT_MODE]},ce=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,ee,ne,O,q,{match:/\$\d+/},V];j.contains=ce.concat({begin:/\{/,end:/\}/,keywords:R,contains:["self"].concat(ce)});const ve=[].concat(K,j.contains),Ae=ve.concat([{begin:/(\s*)\(/,end:/\)/,keywords:R,contains:["self"].concat(ve)}]),pe={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,contains:Ae},B={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"}}]},ie={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},de={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},xe={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[pe],illegal:/%/},Ue={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function T(ye){return b.concat("(?!",ye.join("|"),")")}const L={match:b.concat(/\b/,T([...h,"super","import","await"].map(ye=>`${ye}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},Y={begin:b.concat(/\./,b.lookahead(b.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},re={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},pe]},Se="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",we={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(Se)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[pe]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:R,exports:{PARAMS_CONTAINS:Ae,CLASS_REFERENCE:ie},illegal:/#(?![$_A-Za-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),de,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,ee,ne,O,q,K,{match:/\$\d+/},V,ie,{scope:"attr",match:_+b.lookahead(":"),relevance:0},we,{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[K,p.REGEXP_MODE,{className:"function",begin:Se,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,contains:Ae}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:N},{begin:C.begin,"on:begin":C.isTrulyOpeningTag,end:C.end}],subLanguage:"xml",contains:[{begin:C.begin,end:C.end,skip:!0,contains:["self"]}]}]},xe,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[pe,p.inherit(p.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},Y,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[pe]},L,Ue,B,re,{match:/\$[(.]/}]}}return qu=m,qu}var Gu,og;function Z_(){if(og)return Gu;og=1;const i={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(l){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},h={match:/[{}[\],:]/,className:"punctuation",relevance:0},g=["true","false","null"],v={scope:"literal",beginKeywords:g.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:g},contains:[u,h,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,v,i,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Gu=r,Gu}var $u,cg;function X_(){if(cg)return $u;cg=1;var s="[0-9](_*[0-9])*",i=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(h){const g={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"},v={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},m={className:"symbol",begin:h.UNDERSCORE_IDENT_RE+"@"},p={className:"subst",begin:/\$\{/,end:/\}/,contains:[h.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+h.UNDERSCORE_IDENT_RE},E={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,p]},{begin:"'",end:"'",illegal:/\n/,contains:[h.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[h.BACKSLASH_ESCAPE,b,p]}]};p.contains.push(E);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+h.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+h.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[h.inherit(E,{className:"string"}),"self"]}]},N=l,C=h.COMMENT("/\\*","\\*/",{contains:[h.C_BLOCK_COMMENT_MODE]}),R={variants:[{className:"type",begin:h.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},H=R;return H.variants[1].contains=[R],R.variants[1].contains=[H],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:g,contains:[h.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),h.C_LINE_COMMENT_MODE,C,v,m,_,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:g,relevance:5,contains:[{begin:h.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[h.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:g,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[R,h.C_LINE_COMMENT_MODE,C],relevance:0},h.C_LINE_COMMENT_MODE,C,_,x,E,h.C_NUMBER_MODE]},C]},{begin:[/class|interface|trait/,/\s+/,h.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},h.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,x]},E,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
167
|
+
`},N]}}return $u=u,$u}var Yu,ug;function Q_(){if(ug)return Yu;ug=1;const s=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...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(),h=["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(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),v=["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(),m=h.concat(g).sort().reverse();function p(b){const E=s(b),_=m,x="and or not only",N="[\\w-]+",C="("+N+"|@\\{"+N+"\\})",R=[],H=[],U=function(ve){return{className:"string",begin:"~?"+ve+".*?"+ve}},M=function(ve,Ae,pe){return{className:ve,begin:Ae,relevance:pe}},V={$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},j={begin:"\\(",end:"\\)",contains:H,keywords:V,relevance:0};H.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,U("'"),U('"'),E.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},E.UNICODE_RANGE,E.HEXCOLOR,j,M("variable","@@?"+N,10),M("variable","@\\{"+N+"\\}"),M("built_in","~?`[^`]*?`"),{className:"attribute",begin:N+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},E.IMPORTANT,{beginKeywords:"and not"},E.FUNCTION_DISPATCH);const ee=H.concat({begin:/\{/,end:/\}/,contains:R}),ne={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(H)},O={begin:C+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},E.CSS_VARIABLE,{className:"attribute",begin:"\\b("+v.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:H}}]},q={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:V,returnEnd:!0,contains:H,relevance:0}},Q={className:"variable",variants:[{begin:"@"+N+"\\s*:",relevance:15},{begin:"@"+N}],starts:{end:"[;}]",returnEnd:!0,contains:ee}},K={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:C,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,ne,M("keyword","all\\b"),M("variable","@\\{"+N+"\\}"),{begin:"\\b("+l.join("|")+")\\b",className:"selector-tag"},E.CSS_NUMBER_MODE,M("selector-tag",C,0),M("selector-id","#"+C),M("selector-class","\\."+C,0),M("selector-tag","&",0),E.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+h.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+g.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:ee},{begin:"!important"},E.FUNCTION_DISPATCH]},ce={begin:N+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[K]};return R.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,q,Q,ce,O,K,ne,E.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:R}}return Yu=p,Yu}var Fu,fg;function V_(){if(fg)return Fu;fg=1;function s(i){const r="\\[=*\\[",l="\\]=*\\]",u={begin:r,end:l,contains:["self"]},h=[i.COMMENT("--(?!"+r+")","$"),i.COMMENT("--"+r,l,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:i.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:h.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[i.inherit(i.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:h}].concat(h)},i.C_NUMBER_MODE,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{className:"string",begin:r,end:l,contains:[u],relevance:5}])}}return Fu=s,Fu}var Ku,dg;function J_(){if(dg)return Ku;dg=1;function s(i){const r={className:"variable",variants:[{begin:"\\$\\("+i.UNDERSCORE_IDENT_RE+"\\)",contains:[i.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},l={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,r]},u={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,l]},h={begin:"^"+i.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},g={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},v={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:[i.HASH_COMMENT_MODE,r,l,u,h,g,v]}}return Ku=s,Ku}var Pu,hg;function W_(){if(hg)return Pu;hg=1;function s(i){const r=i.regex,l=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,h={$pattern:/[\w.]+/,keyword:l.join(" ")},g={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:h},v={begin:/->\{/,end:/\}/},m={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},p={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[m]},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},E=[i.BACKSLASH_ESCAPE,g,p],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(R,H,U="\\1")=>{const M=U==="\\1"?U:r.concat(U,H);return r.concat(r.concat("(?:",R,")"),H,/(?:\\.|[^\\\/])*?/,M,/(?:\\.|[^\\\/])*?/,U,u)},N=(R,H,U)=>r.concat(r.concat("(?:",R,")"),H,/(?:\\.|[^\\\/])*?/,U,u),C=[p,i.HASH_COMMENT_MODE,i.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),v,{className:"string",contains:E,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:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},b,{begin:"(\\/\\/|"+i.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[i.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:x("s|tr|y",r.either(..._,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin: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:[i.TITLE_MODE,m]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[i.TITLE_MODE,m,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return g.contains=C,v.contains=C,{name:"Perl",aliases:["pl","pm"],keywords:h,contains:C}}return Pu=s,Pu}var Zu,pg;function e0(){if(pg)return Zu;pg=1;function s(i){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},l=/[a-zA-Z@][a-zA-Z0-9_]*/,m={"variable.language":["this","super"],$pattern:l,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},p={$pattern:l,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:m,illegal:"</",contains:[r,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.C_NUMBER_MODE,i.QUOTE_STRING_MODE,i.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[i.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},i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+p.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:p,contains:[i.UNDERSCORE_TITLE_MODE]},{begin:"\\."+i.UNDERSCORE_IDENT_RE,relevance:0}]}}return Zu=s,Zu}var Xu,mg;function t0(){if(mg)return Xu;mg=1;function s(i){const r=i.regex,l=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,l),h=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,l),g=r.concat(/[A-Z]+/,l),v={scope:"variable",match:"\\$+"+u},m={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},p={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=i.inherit(i.APOS_STRING_MODE,{illegal:null}),E=i.inherit(i.QUOTE_STRING_MODE,{illegal:null,contains:i.QUOTE_STRING_MODE.contains.concat(p)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:i.QUOTE_STRING_MODE.contains.concat(p),"on:begin":(pe,B)=>{B.data._beginMatch=pe[1]||pe[2]},"on:end":(pe,B)=>{B.data._beginMatch!==pe[1]&&B.ignoreMatch()}},x=i.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),N=`[
|
|
168
|
+
]`,C={scope:"string",variants:[E,b,_,x]},R={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},H=["false","null","true"],U=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],M=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],j={keyword:U,literal:(pe=>{const B=[];return pe.forEach(ie=>{B.push(ie),ie.toLowerCase()===ie?B.push(ie.toUpperCase()):B.push(ie.toLowerCase())}),B})(H),built_in:M},ee=pe=>pe.map(B=>B.replace(/\|\d+$/,"")),ne={variants:[{match:[/new/,r.concat(N,"+"),r.concat("(?!",ee(M).join("\\b|"),"\\b)"),h],scope:{1:"keyword",4:"title.class"}}]},O=r.concat(u,"\\b(?!\\()"),q={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),O],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[h,r.concat(/::/,r.lookahead(/(?!class\b)/)),O],scope:{1:"title.class",3:"variable.constant"}},{match:[h,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[h,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Q={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},K={relevance:0,begin:/\(/,end:/\)/,keywords:j,contains:[Q,v,q,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,C,R,ne]},ce={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",ee(U).join("\\b|"),"|",ee(M).join("\\b|"),"\\b)"),u,r.concat(N,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[K]};K.contains.push(ce);const ve=[Q,q,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,C,R,ne],Ae={begin:r.concat(/#\[\s*\\?/,r.either(h,g)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:H,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:H,keyword:["new","array"]},contains:["self",...ve]},...ve,{scope:"meta",variants:[{match:h},{match:g}]}]};return{case_insensitive:!1,keywords:j,contains:[Ae,i.HASH_COMMENT_MODE,i.COMMENT("//","$"),i.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:i.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},m,{scope:"variable.language",match:/\$this\b/},v,ce,q,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},ne,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},i.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:j,contains:["self",Ae,v,q,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,C,R]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},i.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[i.inherit(i.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},i.UNDERSCORE_TITLE_MODE]},C,R]}}return Xu=s,Xu}var Qu,gg;function n0(){if(gg)return Qu;gg=1;function s(i){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},i.inherit(i.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),i.inherit(i.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return Qu=s,Qu}var Vu,bg;function a0(){if(bg)return Vu;bg=1;function s(i){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Vu=s,Vu}var Ju,yg;function i0(){if(yg)return Ju;yg=1;function s(i){const r=i.regex,l=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],m={$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"]},p={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:m,illegal:/#/},E={begin:/\{\{/,relevance:0},_={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,p],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,p],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,p,E,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,p,E,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:[i.BACKSLASH_ESCAPE,E,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,E,b]},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},x="[0-9](_?[0-9])*",N=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,C=`\\b|${u.join("|")}`,R={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${N}))[eE][+-]?(${x})[jJ]?(?=${C})`},{begin:`(${N})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${C})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${C})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${C})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${C})`},{begin:`\\b(${x})[jJ](?=${C})`}]},H={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:m,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},U={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:["self",p,R,_,i.HASH_COMMENT_MODE]}]};return b.contains=[_,R,p],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:m,illegal:/(<\/|\?)|=>/,contains:[p,R,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,H,i.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[U]},{variants:[{match:[/\bclass/,/\s+/,l,/\s*/,/\(\s*/,l,/\s*\)/]},{match:[/\bclass/,/\s+/,l]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[R,U,_]}]}}return Ju=s,Ju}var Wu,vg;function l0(){if(vg)return Wu;vg=1;function s(i){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Wu=s,Wu}var ef,Eg;function s0(){if(Eg)return ef;Eg=1;function s(i){const r=i.regex,l=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),h=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,g=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:l,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[i.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:l},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),i.HASH_COMMENT_MODE,{scope:"string",contains:[i.BACKSLASH_ESCAPE],variants:[i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[h,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[g,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[l,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:h},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:g},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return ef=s,ef}var tf,_g;function r0(){if(_g)return tf;_g=1;function s(i){const r=i.regex,l=/(r#)?/,u=r.concat(l,i.UNDERSCORE_IDENT_RE),h=r.concat(l,i.IDENT_RE),g={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,h,r.lookahead(/\s*\(/))},v="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",m=["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"],p=["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!"],E=["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:i.IDENT_RE+"!?",type:E,keyword:m,literal:p,built_in:b},illegal:"</",contains:[i.C_LINE_COMMENT_MODE,i.COMMENT("/\\*","\\*/",{contains:["self"]}),i.inherit(i.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_]+)"+v},{begin:"\\b0o([0-7_]+)"+v},{begin:"\\b0x([A-Fa-f0-9_]+)"+v},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+v}],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:[i.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:i.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:E}},{scope:"punctuation",begin:"->"},g]}}return tf=s,tf}var nf,Sg;function o0(){if(Sg)return nf;Sg=1;const s=p=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:p.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:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:p.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_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...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(),h=["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(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),v=["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 m(p){const b=s(p),E=g,_=h,x="@[a-z-]+",N="and or not only",R={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+E.join("|")+")"},R,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+v.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,R,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,p.QUOTE_STRING_MODE,p.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:N,attribute:u.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},R,p.QUOTE_STRING_MODE,p.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return nf=m,nf}var af,Tg;function c0(){if(Tg)return af;Tg=1;function s(i){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return af=s,af}var lf,Ng;function u0(){if(Ng)return lf;Ng=1;function s(i){const r=i.regex,l=i.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},h={begin:/"/,end:/"/,contains:[{match:/""/}]},g=["true","false","unknown"],v=["double precision","large object","with timezone","without timezone"],m=["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"],p=["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"],E=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],_=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],x=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],N=E,C=[...b,...p].filter(ee=>!E.includes(ee)),R={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},H={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},U={match:r.concat(/\b/,r.either(...N),/\s*\(/),relevance:0,keywords:{built_in:N}};function M(ee){return r.concat(/\b/,r.either(...ee.map(ne=>ne.replace(/\s+/,"\\s+"))),/\b/)}const V={scope:"keyword",match:M(x),relevance:0};function j(ee,{exceptions:ne,when:O}={}){const q=O;return ne=ne||[],ee.map(Q=>Q.match(/\|\d+$/)||ne.includes(Q)?Q:q(Q)?`${Q}|0`:Q)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:j(C,{when:ee=>ee.length<3}),literal:g,type:m,built_in:_},contains:[{scope:"type",match:M(v)},V,U,R,u,h,i.C_NUMBER_MODE,i.C_BLOCK_COMMENT_MODE,l,H]}}return lf=s,lf}var sf,xg;function f0(){if(xg)return sf;xg=1;function s(O){return O?typeof O=="string"?O:O.source:null}function i(O){return r("(?=",O,")")}function r(...O){return O.map(Q=>s(Q)).join("")}function l(O){const q=O[O.length-1];return typeof q=="object"&&q.constructor===Object?(O.splice(O.length-1,1),q):{}}function u(...O){return"("+(l(O).capture?"":"?:")+O.map(K=>s(K)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const h=O=>r(/\b/,O,/\w$/.test(O)?/\b/:/\B/),g=["Protocol","Type"].map(h),v=["init","self"].map(h),m=["Any","Self"],p=["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"],E=["assignment","associativity","higherThan","left","lowerThan","none","right"],_=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],x=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],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]/),C=u(N,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),R=r(N,C,"*"),H=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]/),U=u(H,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),M=r(H,U,"*"),V=r(/[A-Z]/,U,"*"),j=["attached","autoclosure",r(/convention\(/,u("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,M,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],ee=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ne(O){const q={match:/\s+/,relevance:0},Q=O.COMMENT("/\\*","\\*/",{contains:["self"]}),K=[O.C_LINE_COMMENT_MODE,Q],ce={match:[/\./,u(...g,...v)],className:{2:"keyword"}},ve={match:r(/\./,u(...p)),relevance:0},Ae=p.filter(Ie=>typeof Ie=="string").concat(["_|0"]),pe=p.filter(Ie=>typeof Ie!="string").concat(m).map(h),B={variants:[{className:"keyword",match:u(...pe,...v)}]},ie={$pattern:u(/\b\w+/,/#\w+/),keyword:Ae.concat(_),literal:b},de=[ce,ve,B],xe={match:r(/\./,u(...x)),relevance:0},Ue={className:"built_in",match:r(/\b/,u(...x),/(?=\()/)},T=[xe,Ue],L={match:/->/,relevance:0},Y={className:"operator",relevance:0,variants:[{match:R},{match:`\\.(\\.|${C})+`}]},re=[L,Y],Se="([0-9]_*)+",we="([0-9a-fA-F]_*)+",ye={className:"number",relevance:0,variants:[{match:`\\b(${Se})(\\.(${Se}))?([eE][+-]?(${Se}))?\\b`},{match:`\\b0x(${we})(\\.(${we}))?([pP][+-]?(${Se}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Ee=(Ie="")=>({className:"subst",variants:[{match:r(/\\/,Ie,/[0\\tnr"']/)},{match:r(/\\/,Ie,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Me=(Ie="")=>({className:"subst",match:r(/\\/,Ie,/[\t ]*(?:[\r\n]|\r\n)/)}),Fe=(Ie="")=>({className:"subst",label:"interpol",begin:r(/\\/,Ie,/\(/),end:/\)/}),je=(Ie="")=>({begin:r(Ie,/"""/),end:r(/"""/,Ie),contains:[Ee(Ie),Me(Ie),Fe(Ie)]}),De=(Ie="")=>({begin:r(Ie,/"/),end:r(/"/,Ie),contains:[Ee(Ie),Fe(Ie)]}),St={className:"string",variants:[je(),je("#"),je("##"),je("###"),De(),De("#"),De("##"),De("###")]},Ge=[O.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[O.BACKSLASH_ESCAPE]}],kn={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ge},nt=Ie=>{const on=r(Ie,/\//),Qt=r(/\//,Ie);return{begin:on,end:Qt,contains:[...Ge,{scope:"comment",begin:`#(?!.*${Qt})`,end:/$/}]}},Xt={scope:"regexp",variants:[nt("###"),nt("##"),nt("#"),kn]},Nn={match:r(/`/,M,/`/)},Jt={className:"variable",match:/\$\d+/},gn={className:"variable",match:`\\$${U}+`},xn=[Nn,Jt,gn],ca={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:ee,contains:[...re,ye,St]}]}},Vn={scope:"keyword",match:r(/@/,u(...j),i(u(/\(/,/\s+/)))},Pe={scope:"meta",match:r(/@/,M)},zt=[ca,Vn,Pe],mt={match:i(/\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)/,U,"+")},{className:"type",match:V,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,i(V)),relevance:0}]},bn={begin:/</,end:/>/,keywords:ie,contains:[...K,...de,...zt,L,mt]};mt.contains.push(bn);const yn={match:r(M,/\s*:/),keywords:"_|0",relevance:0},Mn={begin:/\(/,end:/\)/,relevance:0,keywords:ie,contains:["self",yn,...K,Xt,...de,...T,...re,ye,St,...xn,...zt,mt]},Cn={begin:/</,end:/>/,keywords:"repeat each",contains:[...K,mt]},Dn={begin:u(i(r(M,/\s*:/)),i(r(M,/\s+/,M,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:M}]},Ln={begin:/\(/,end:/\)/,keywords:ie,contains:[Dn,...K,...de,...re,ye,St,...zt,mt,Mn],endsParent:!0,illegal:/["']/},rn={match:[/(func|macro)/,/\s+/,u(Nn.match,M,R)],className:{1:"keyword",3:"title.function"},contains:[Cn,Ln,q],illegal:[/\[/,/%/]},Tt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Cn,Ln,q],illegal:/\[|%/},Wt={match:[/operator/,/\s+/,R],className:{1:"keyword",3:"title"}},xt={begin:[/precedencegroup/,/\s+/,V],className:{1:"keyword",3:"title"},contains:[mt],keywords:[...E,...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"}},zn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},wn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,M,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:ie,contains:[Cn,...de,{begin:/:/,end:/\{/,keywords:ie,contains:[{scope:"title.class.inherited",match:V},...de],relevance:0}]};for(const Ie of St.variants){const on=Ie.contains.find(Ct=>Ct.label==="interpol");on.keywords=ie;const Qt=[...de,...T,...re,ye,St,...xn];on.contains=[...Qt,{begin:/\(/,end:/\)/,contains:["self",...Qt]}]}return{name:"Swift",keywords:ie,contains:[...K,rn,Tt,Gn,zn,wn,Wt,xt,{beginKeywords:"import",end:/$/,contains:[...K],relevance:0},Xt,...de,...T,...re,ye,St,...xn,...zt,mt,Mn]}}return sf=ne,sf}var rf,wg;function d0(){if(wg)return rf;wg=1;function s(i){const r="true false yes no null",l="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},h={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},g={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},v={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[i.BACKSLASH_ESCAPE,h]},m=i.inherit(v,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},N={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},C={begin:/\{/,end:/\}/,contains:[N],illegal:"\\n",relevance:0},R={begin:"\\[",end:"\\]",contains:[N],illegal:"\\n",relevance:0},H=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+l},{className:"type",begin:"!<"+l+">"},{className:"type",begin:"!"+l},{className:"type",begin:"!!"+l},{className:"meta",begin:"&"+i.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+i.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},i.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},x,{className:"number",begin:i.C_NUMBER_RE+"\\b",relevance:0},C,R,g,v],U=[...H];return U.pop(),U.push(m),N.contains=U,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:H}}return rf=s,rf}var of,Ag;function h0(){if(Ag)return of;Ag=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",i=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],l=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],h=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],g=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],v=[].concat(h,l,u);function m(b){const E=b.regex,_=(Ee,{after:Me})=>{const Fe="</"+Ee[0].slice(1);return Ee.input.indexOf(Fe,Me)!==-1},x=s,N={begin:"<>",end:"</>"},C=/<[A-Za-z0-9\\._:-]+\s*\/>/,R={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Ee,Me)=>{const Fe=Ee[0].length+Ee.index,je=Ee.input[Fe];if(je==="<"||je===","){Me.ignoreMatch();return}je===">"&&(_(Ee,{after:Fe})||Me.ignoreMatch());let De;const St=Ee.input.substring(Fe);if(De=St.match(/^\s*=/)){Me.ignoreMatch();return}if((De=St.match(/^\s+extends\s+/))&&De.index===0){Me.ignoreMatch();return}}},H={$pattern:s,keyword:i,literal:r,built_in:v,"variable.language":g},U="[0-9](_?[0-9])*",M=`\\.(${U})`,V="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",j={className:"number",variants:[{begin:`(\\b(${V})((${M})|\\.)?|(${M}))[eE][+-]?(${U})\\b`},{begin:`\\b(${V})\\b((${M})\\b|\\.)?|(${M})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},ee={className:"subst",begin:"\\$\\{",end:"\\}",keywords:H,contains:[]},ne={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ee],subLanguage:"xml"}},O={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ee],subLanguage:"css"}},q={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,ee],subLanguage:"graphql"}},Q={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,ee]},ce={className:"comment",variants:[b.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},ve=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ne,O,q,Q,{match:/\$\d+/},j];ee.contains=ve.concat({begin:/\{/,end:/\}/,keywords:H,contains:["self"].concat(ve)});const Ae=[].concat(ce,ee.contains),pe=Ae.concat([{begin:/(\s*)\(/,end:/\)/,keywords:H,contains:["self"].concat(Ae)}]),B={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:H,contains:pe},ie={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,E.concat(x,"(",E.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},de={relevance:0,match:E.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},xe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Ue={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[B],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(Ee){return E.concat("(?!",Ee.join("|"),")")}const Y={match:E.concat(/\b/,L([...h,"super","import","await"].map(Ee=>`${Ee}\\s*\\(`)),x,E.lookahead(/\s*\(/)),className:"title.function",relevance:0},re={begin:E.concat(/\./,E.lookahead(E.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Se={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},B]},we="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",ye={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,E.lookahead(we)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[B]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:H,exports:{PARAMS_CONTAINS:pe,CLASS_REFERENCE:de},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),xe,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ne,O,q,Q,ce,{match:/\$\d+/},j,de,{scope:"attr",match:x+E.lookahead(":"),relevance:0},ye,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ce,b.REGEXP_MODE,{className:"function",begin:we,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:H,contains:pe}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:N.begin,end:N.end},{match:C},{begin:R.begin,"on:begin":R.isTrulyOpeningTag,end:R.end}],subLanguage:"xml",contains:[{begin:R.begin,end:R.end,skip:!0,contains:["self"]}]}]},Ue,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[B,b.inherit(b.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},re,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[B]},Y,T,ie,Se,{match:/\$[(.]/}]}}function p(b){const E=b.regex,_=m(b),x=s,N=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],C={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},R={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:N},contains:[_.exports.CLASS_REFERENCE]},H={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},U=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],M={$pattern:s,keyword:i.concat(U),literal:r,built_in:v.concat(N),"variable.language":g},V={className:"meta",begin:"@"+x},j=(q,Q,K)=>{const ce=q.contains.findIndex(ve=>ve.label===Q);if(ce===-1)throw new Error("can not find mode to replace");q.contains.splice(ce,1,K)};Object.assign(_.keywords,M),_.exports.PARAMS_CONTAINS.push(V);const ee=_.contains.find(q=>q.scope==="attr"),ne=Object.assign({},ee,{match:E.concat(x,E.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,ee,ne]),_.contains=_.contains.concat([V,C,R,ne]),j(_,"shebang",b.SHEBANG()),j(_,"use_strict",H);const O=_.contains.find(q=>q.label==="func.def");return O.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return of=p,of}var cf,Rg;function p0(){if(Rg)return cf;Rg=1;function s(i){const r=i.regex,l={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},h=/\d{1,2}\/\d{1,2}\/\d{4}/,g=/\d{4}-\d{1,2}-\d{1,2}/,v=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,m=/\d{1,2}(:\d{1,2}){1,2}/,p={className:"literal",variants:[{begin:r.concat(/# */,r.either(g,h),/ *#/)},{begin:r.concat(/# */,m,/ *#/)},{begin:r.concat(/# */,v,/ *#/)},{begin:r.concat(/# */,r.either(g,h),/ +/,r.either(v,m),/ *#/)}]},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])|[%&])?/}]},E={className:"label",begin:/^\w+:/},_=i.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=i.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[l,u,p,b,E,_,x,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[x]}]}}return cf=s,cf}var uf,Og;function m0(){if(Og)return uf;Og=1;function s(i){i.regex;const r=i.COMMENT(/\(;/,/;\)/);r.contains.push("self");const l=i.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"],h={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},g={className:"variable",begin:/\$[\w_]+/},v={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},m={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/},p={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[l,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},g,v,h,i.QUOTE_STRING_MODE,p,b,m]}}return uf=s,uf}var ff,kg;function g0(){if(kg)return ff;kg=1;var s=D_();return s.registerLanguage("xml",L_()),s.registerLanguage("bash",z_()),s.registerLanguage("c",U_()),s.registerLanguage("cpp",B_()),s.registerLanguage("csharp",I_()),s.registerLanguage("css",j_()),s.registerLanguage("markdown",H_()),s.registerLanguage("diff",q_()),s.registerLanguage("ruby",G_()),s.registerLanguage("go",$_()),s.registerLanguage("graphql",Y_()),s.registerLanguage("ini",F_()),s.registerLanguage("java",K_()),s.registerLanguage("javascript",P_()),s.registerLanguage("json",Z_()),s.registerLanguage("kotlin",X_()),s.registerLanguage("less",Q_()),s.registerLanguage("lua",V_()),s.registerLanguage("makefile",J_()),s.registerLanguage("perl",W_()),s.registerLanguage("objectivec",e0()),s.registerLanguage("php",t0()),s.registerLanguage("php-template",n0()),s.registerLanguage("plaintext",a0()),s.registerLanguage("python",i0()),s.registerLanguage("python-repl",l0()),s.registerLanguage("r",s0()),s.registerLanguage("rust",r0()),s.registerLanguage("scss",o0()),s.registerLanguage("shell",c0()),s.registerLanguage("sql",u0()),s.registerLanguage("swift",f0()),s.registerLanguage("yaml",d0()),s.registerLanguage("typescript",h0()),s.registerLanguage("vbnet",p0()),s.registerLanguage("wasm",m0()),s.HighlightJS=s,s.default=s,ff=s,ff}var b0=g0();const wb=db(b0),y0={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},v0=2e5,Ab="http://www.w3.org/1999/xhtml";function E0(s){for(const i of s.querySelectorAll(".d2h-file-wrapper")){const r=_0(i.dataset.lang??"");if(r)for(const l of S0(i))Mg(l.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Mg(l.filter(u=>u.kind!=="del"),()=>!0,r)}}function _0(s){const i=y0[s]??C_(s);return i==="plaintext"||!wb.getLanguage(i)?null:i}function S0(s){const i=[];let r=[];for(const l of s.querySelectorAll(".d2h-diff-tbody > tr")){const u=l.querySelector("td:last-child"),h=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!h){r.length&&i.push(r),r=[];continue}const g=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:g,ctn:h})}return r.length&&i.push(r),i}function Mg(s,i,r){if(s.filter(i).length===0)return;const u=s.map(g=>g.ctn.textContent??"").join(`
|
|
169
|
+
`);if(!u.trim()||u.length>v0)return;const h=N0(wb.highlight(u,{language:r,ignoreIllegals:!0}).value);s.forEach((g,v)=>{const m=h[v];m===void 0||!i(g)||T0(g.ctn,m)})}function T0(s,i){const r=Km(s);let l=i;if(r.length){const u=document.createElementNS(Ab,"div");u.innerHTML=i,l=k_(r,Km(u),s.textContent??"")}s.classList.add("hljs"),s.innerHTML=l}function N0(s){const i=document.createElementNS(Ab,"div");i.innerHTML=s;const r=[],l=[];let u="";const h=g=>{if(g.nodeType===Node.TEXT_NODE){(g.textContent??"").split(`
|
|
170
|
+
`).forEach((p,b)=>{b>0&&(u+="</span>".repeat(l.length),r.push(u),u=l.join("")),u+=x0(p)});return}const v=`<span class="${g.className}">`;u+=v,l.push(v),g.childNodes.forEach(h),l.pop(),u+="</span>"};return i.childNodes.forEach(h),r.push(u),r}function x0(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}const w0={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"],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"]},A0={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}]},R0={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function tt({name:s,size:i=13}){const r=[...w0[s]??[],...R0[s]??[]];return d.jsxs("svg",{className:"icon",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(A0[s]??[]).map((l,u)=>d.jsx("circle",{cx:l.cx,cy:l.cy,r:l.r},u)),r.map((l,u)=>d.jsx("path",{d:l},u))]})}function O0({size:s=17}){return d.jsxs("svg",{className:"logo",width:s,height:s,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 Ci({children:s}){return d.jsx("span",{className:"key",children:s})}/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function Cg(s,i){(i==null||i>s.length)&&(i=s.length);for(var r=0,l=Array(i);r<i;r++)l[r]=s[r];return l}function k0(s){if(Array.isArray(s))return s}function M0(s,i){var r=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(r!=null){var l,u,h,g,v=[],m=!0,p=!1;try{if(h=(r=r.call(s)).next,i!==0)for(;!(m=(l=h.call(r)).done)&&(v.push(l.value),v.length!==i);m=!0);}catch(b){p=!0,u=b}finally{try{if(!m&&r.return!=null&&(g=r.return(),Object(g)!==g))return}finally{if(p)throw u}}return v}}function C0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
171
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D0(s,i){return k0(s)||M0(s,i)||L0(s,i)||C0()}function L0(s,i){if(s){if(typeof s=="string")return Cg(s,i);var r={}.toString.call(s).slice(8,-1);return r==="Object"&&s.constructor&&(r=s.constructor.name),r==="Map"||r==="Set"?Array.from(s):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cg(s,i):void 0}}const Rb=Object.entries,Dg=Object.setPrototypeOf,z0=Object.isFrozen,U0=Object.getPrototypeOf,B0=Object.getOwnPropertyDescriptor;let pn=Object.freeze,mn=Object.seal,zl=Object.create,Ob=typeof Reflect<"u"&&Reflect,Sf=Ob.apply,Tf=Ob.construct;pn||(pn=function(i){return i});mn||(mn=function(i){return i});Sf||(Sf=function(i,r){for(var l=arguments.length,u=new Array(l>2?l-2:0),h=2;h<l;h++)u[h-2]=arguments[h];return i.apply(r,u)});Tf||(Tf=function(i){for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return new i(...l)});const Cl=Pt(Array.prototype.forEach),I0=Pt(Array.prototype.lastIndexOf),Lg=Pt(Array.prototype.pop),Dl=Pt(Array.prototype.push),j0=Pt(Array.prototype.splice),Mi=Array.isArray,Us=Pt(String.prototype.toLowerCase),df=Pt(String.prototype.toString),zg=Pt(String.prototype.match),Ds=Pt(String.prototype.replace),Ug=Pt(String.prototype.indexOf),H0=Pt(String.prototype.trim),q0=Pt(Number.prototype.toString),G0=Pt(Boolean.prototype.toString),Bg=typeof BigInt>"u"?null:Pt(BigInt.prototype.toString),Ig=typeof Symbol>"u"?null:Pt(Symbol.prototype.toString),ln=Pt(Object.prototype.hasOwnProperty),Ls=Pt(Object.prototype.toString),an=Pt(RegExp.prototype.test),Xi=$0(TypeError);function Pt(s){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return Sf(s,i,l)}}function $0(s){return function(){for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return Tf(s,r)}}function it(s,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Us;if(Dg&&Dg(s,null),!Mi(i))return s;let l=i.length;for(;l--;){let u=i[l];if(typeof u=="string"){const h=r(u);h!==u&&(z0(i)||(i[l]=h),u=h)}s[u]=!0}return s}function Y0(s){for(let i=0;i<s.length;i++)ln(s,i)||(s[i]=null);return s}function Sn(s){const i=zl(null);for(const l of Rb(s)){var r=D0(l,2);const u=r[0],h=r[1];ln(s,u)&&(Mi(h)?i[u]=Y0(h):h&&typeof h=="object"&&h.constructor===Object?i[u]=Sn(h):i[u]=h)}return i}function F0(s){switch(typeof s){case"string":return s;case"number":return q0(s);case"boolean":return G0(s);case"bigint":return Bg?Bg(s):"0";case"symbol":return Ig?Ig(s):"Symbol()";case"undefined":return Ls(s);case"function":case"object":{if(s===null)return Ls(s);const i=s,r=ma(i,"toString");if(typeof r=="function"){const l=r(i);return typeof l=="string"?l:Ls(l)}return Ls(s)}default:return Ls(s)}}function ma(s,i){for(;s!==null;){const l=B0(s,i);if(l){if(l.get)return Pt(l.get);if(typeof l.value=="function")return Pt(l.value)}s=U0(s)}function r(){return null}return r}function K0(s){try{return an(s,""),!0}catch{return!1}}const jg=pn(["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"]),hf=pn(["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"]),pf=pn(["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"]),P0=pn(["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"]),mf=pn(["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"]),Z0=pn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Hg=pn(["#text"]),qg=pn(["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"]),gf=pn(["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"]),Gg=pn(["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"]),Vr=pn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),X0=mn(/{{[\w\W]*|^[\w\W]*}}/g),Q0=mn(/<%[\w\W]*|^[\w\W]*%>/g),V0=mn(/\${[\w\W]*/g),J0=mn(/^data-[\-\w.\u00B7-\uFFFF]+$/),W0=mn(/^aria-[\-\w]+$/),$g=mn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eS=mn(/^(?:\w+script|data):/i),tS=mn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nS=mn(/^html$/i),aS=mn(/^[a-z][.\w]*(-[.\w]+)+$/i),Yg=mn(/<[/\w!]/g),Fg=mn(/<[/\w]/g),iS=mn(/<\/no(script|embed|frames)/i),lS=mn(/\/>/i),Qn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},sS=function(){return typeof window>"u"?null:window},rS=function(i,r){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let l=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(l=r.getAttribute(u));const h="dompurify"+(l?"#"+l:"");try{return i.createPolicy(h,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+h+" could not be created."),null}},Kg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ri=function(i,r,l,u){return ln(i,r)&&Mi(i[r])?it(u.base?Sn(u.base):{},i[r],u.transform):l};function kb(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sS();const i=Z=>kb(Z);if(i.version="3.4.13",i.removed=[],!s||!s.document||s.document.nodeType!==Qn.document||!s.Element)return i.isSupported=!1,i;let r=s.document;const l=r,u=l.currentScript;s.DocumentFragment;const h=s.HTMLTemplateElement,g=s.Node,v=s.Element,m=s.NodeFilter,p=s.NamedNodeMap;p===void 0&&(s.NamedNodeMap||s.MozNamedAttrMap),s.HTMLFormElement;const b=s.DOMParser,E=s.trustedTypes,_=v.prototype,x=ma(_,"cloneNode"),N=ma(_,"remove"),C=ma(_,"nextSibling"),R=ma(_,"childNodes"),H=ma(_,"parentNode"),U=ma(_,"shadowRoot"),M=ma(_,"attributes"),V=g&&g.prototype?ma(g.prototype,"nodeType"):null,j=g&&g.prototype?ma(g.prototype,"nodeName"):null,ee=g&&g.prototype?ma(g.prototype,"ownerDocument"):null;if(typeof h=="function"){const Z=r.createElement("template");Z.content&&Z.content.ownerDocument&&(r=Z.content.ownerDocument)}let ne,O="",q,Q=!1,K=0;const ce=function(){if(K>0)throw Xi('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.')},ve=function(S){ce(),K++;try{return ne.createHTML(S)}finally{K--}},Ae=function(S){ce(),K++;try{return ne.createScriptURL(S)}finally{K--}},pe=function(){return Q||(q=rS(E,u),Q=!0),q},B=r,ie=B.implementation,de=B.createNodeIterator,xe=B.createDocumentFragment,Ue=B.getElementsByTagName,T=l.importNode;let L=Kg();i.isSupported=typeof Rb=="function"&&typeof H=="function"&&ie&&ie.createHTMLDocument!==void 0;const Y=X0,re=Q0,Se=V0,we=J0,ye=W0,Ee=eS,Me=tS,Fe=aS;let je=$g,De=null;const St=it({},[...jg,...hf,...pf,...mf,...Hg]);let Ge=null;const kn=it({},[...qg,...gf,...Gg,...Vr]);let nt=Object.seal(zl(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}})),Xt=null,Nn=null;const Jt=Object.seal(zl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let gn=!0,xn=!0,ca=!1,Vn=!0,Pe=!1,zt=!0,mt=!1,bn=!1,yn=null,Mn=null,Cn=!1,Dn=!1,Ln=!1,rn=!1,Tt=!0,Wt=!1;const xt="user-content-";let Gn=!0,zn=!1,wn={},Ie=null;const on=it({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Qt=null;const Ct=it({},["audio","video","img","source","image","track"]);let w=null;const J=it({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",I="http://www.w3.org/2000/svg",se="http://www.w3.org/1999/xhtml";let he=se,me=!1,be=null;const Le=it({},[fe,I,se],df),Rt=pn(["mi","mo","mn","ms","mtext"]);let gt=it({},Rt);const Jn=pn(["annotation-xml"]);let ya=it({},Jn);const Ja=it({},["title","style","font","a","script"]);let vn=null;const Mt=["application/xhtml+xml","text/html"],en="text/html";let lt=null,Wn=null;const el=r.createElement("form"),ka=function(S){return S instanceof RegExp||S instanceof Function},Wa=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Wn&&Wn===S)return;(!S||typeof S!="object")&&(S={}),S=Sn(S),vn=Mt.indexOf(S.PARSER_MEDIA_TYPE)===-1?en:S.PARSER_MEDIA_TYPE,lt=vn==="application/xhtml+xml"?df:Us,De=Ri(S,"ALLOWED_TAGS",St,{transform:lt}),Ge=Ri(S,"ALLOWED_ATTR",kn,{transform:lt}),be=Ri(S,"ALLOWED_NAMESPACES",Le,{transform:df}),w=Ri(S,"ADD_URI_SAFE_ATTR",J,{transform:lt,base:J}),Qt=Ri(S,"ADD_DATA_URI_TAGS",Ct,{transform:lt,base:Ct}),Ie=Ri(S,"FORBID_CONTENTS",on,{transform:lt}),Xt=Ri(S,"FORBID_TAGS",Sn({}),{transform:lt}),Nn=Ri(S,"FORBID_ATTR",Sn({}),{transform:lt}),wn=ln(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?Sn(S.USE_PROFILES):S.USE_PROFILES:!1,gn=S.ALLOW_ARIA_ATTR!==!1,xn=S.ALLOW_DATA_ATTR!==!1,ca=S.ALLOW_UNKNOWN_PROTOCOLS||!1,Vn=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=S.SAFE_FOR_TEMPLATES||!1,zt=S.SAFE_FOR_XML!==!1,mt=S.WHOLE_DOCUMENT||!1,Dn=S.RETURN_DOM||!1,Ln=S.RETURN_DOM_FRAGMENT||!1,rn=S.RETURN_TRUSTED_TYPE||!1,Cn=S.FORCE_BODY||!1,Tt=S.SANITIZE_DOM!==!1,Wt=S.SANITIZE_NAMED_PROPS||!1,Gn=S.KEEP_CONTENT!==!1,zn=S.IN_PLACE||!1,je=K0(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:$g,he=typeof S.NAMESPACE=="string"?S.NAMESPACE:se,gt=ln(S,"MATHML_TEXT_INTEGRATION_POINTS")&&S.MATHML_TEXT_INTEGRATION_POINTS&&typeof S.MATHML_TEXT_INTEGRATION_POINTS=="object"?Sn(S.MATHML_TEXT_INTEGRATION_POINTS):it({},Rt),ya=ln(S,"HTML_INTEGRATION_POINTS")&&S.HTML_INTEGRATION_POINTS&&typeof S.HTML_INTEGRATION_POINTS=="object"?Sn(S.HTML_INTEGRATION_POINTS):it({},Jn);const D=ln(S,"CUSTOM_ELEMENT_HANDLING")&&S.CUSTOM_ELEMENT_HANDLING&&typeof S.CUSTOM_ELEMENT_HANDLING=="object"?Sn(S.CUSTOM_ELEMENT_HANDLING):zl(null);if(nt=zl(null),ln(D,"tagNameCheck")&&ka(D.tagNameCheck)&&(nt.tagNameCheck=D.tagNameCheck),ln(D,"attributeNameCheck")&&ka(D.attributeNameCheck)&&(nt.attributeNameCheck=D.attributeNameCheck),ln(D,"allowCustomizedBuiltInElements")&&typeof D.allowCustomizedBuiltInElements=="boolean"&&(nt.allowCustomizedBuiltInElements=D.allowCustomizedBuiltInElements),mn(nt),Pe&&(xn=!1),Ln&&(Dn=!0),wn&&(De=it({},Hg),Ge=zl(null),wn.html===!0&&(it(De,jg),it(Ge,qg)),wn.svg===!0&&(it(De,hf),it(Ge,gf),it(Ge,Vr)),wn.svgFilters===!0&&(it(De,pf),it(Ge,gf),it(Ge,Vr)),wn.mathMl===!0&&(it(De,mf),it(Ge,Gg),it(Ge,Vr))),Jt.tagCheck=null,Jt.attributeCheck=null,ln(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?Jt.tagCheck=S.ADD_TAGS:Mi(S.ADD_TAGS)&&(De===St&&(De=Sn(De)),it(De,S.ADD_TAGS,lt))),ln(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?Jt.attributeCheck=S.ADD_ATTR:Mi(S.ADD_ATTR)&&(Ge===kn&&(Ge=Sn(Ge)),it(Ge,S.ADD_ATTR,lt))),ln(S,"ADD_URI_SAFE_ATTR")&&Mi(S.ADD_URI_SAFE_ATTR)&&it(w,S.ADD_URI_SAFE_ATTR,lt),ln(S,"FORBID_CONTENTS")&&Mi(S.FORBID_CONTENTS)&&(Ie===on&&(Ie=Sn(Ie)),it(Ie,S.FORBID_CONTENTS,lt)),ln(S,"ADD_FORBID_CONTENTS")&&Mi(S.ADD_FORBID_CONTENTS)&&(Ie===on&&(Ie=Sn(Ie)),it(Ie,S.ADD_FORBID_CONTENTS,lt)),Gn&&(De["#text"]=!0),mt&&it(De,["html","head","body"]),De.table&&(it(De,["tbody"]),delete Xt.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw Xi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Xi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const X=ne;ne=S.TRUSTED_TYPES_POLICY;try{O=ve("")}catch(_e){throw ne=X,_e}}else S.TRUSTED_TYPES_POLICY===null?(ne=void 0,O=""):(ne===void 0&&(ne=pe()),ne&&typeof O=="string"&&(O=ve("")));pn&&pn(S),Wn=S},va=it({},[...hf,...pf,...P0]),ei=it({},[...mf,...Z0]),cn=function(S,D,X){return D.namespaceURI===se?S==="svg":D.namespaceURI===fe?S==="svg"&&(X==="annotation-xml"||gt[X]):!!va[S]},ua=function(S,D,X){return D.namespaceURI===se?S==="math":D.namespaceURI===I?S==="math"&&ya[X]:!!ei[S]},Ea=function(S,D,X){return D.namespaceURI===I&&!ya[X]||D.namespaceURI===fe&&!gt[X]?!1:!ei[S]&&(Ja[S]||!va[S])},_a=function(S){let D=H(S);(!D||!D.tagName)&&(D={namespaceURI:he,tagName:"template"});const X=Us(S.tagName),_e=Us(D.tagName);return be[S.namespaceURI]?S.namespaceURI===I?cn(X,D,_e):S.namespaceURI===fe?ua(X,D,_e):S.namespaceURI===se?Ea(X,D,_e):!!(vn==="application/xhtml+xml"&&be[S.namespaceURI]):!1},ft=function(S){Dl(i.removed,{element:S});try{H(S).removeChild(S)}catch{if(N(S),!H(S))throw Xi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ma=function(S){oe(S);const D=R(S);if(D){const _e=[];Cl(D,Ne=>{Dl(_e,Ne)}),Cl(_e,Ne=>{try{N(Ne)}catch{}})}const X=M(S);if(X)for(let _e=X.length-1;_e>=0;--_e){const Ne=X[_e],Be=Ne&&Ne.name;if(typeof Be=="string")try{S.removeAttribute(Be)}catch{}}},An=function(S,D){try{Dl(i.removed,{attribute:D.getAttributeNode(S),from:D})}catch{Dl(i.removed,{attribute:null,from:D})}if(D.removeAttribute(S),S==="is")if(Dn||Ln)try{ft(D)}catch{}else try{D.setAttribute(S,"")}catch{}},fa=function(S){const D=M(S);if(D)for(let X=D.length-1;X>=0;--X){const _e=D[X],Ne=_e&&_e.name;if(!(typeof Ne!="string"||Ge[lt(Ne)]))try{S.removeAttribute(Ne)}catch{}}},oe=function(S){const D=[S];for(;D.length>0;){const X=D.pop();(V?V(X):X.nodeType)===Qn.element&&fa(X);const Ne=R(X);if(Ne)for(let Be=Ne.length-1;Be>=0;--Be)D.push(Ne[Be])}},Oe=function(S){if(!zt)return;const D=[S];for(;D.length>0;){const X=D.pop(),_e=V?V(X):X.nodeType;if(_e===Qn.processingInstruction||_e===Qn.comment&&an(Fg,X.data)){try{N(X)}catch{}continue}if(_e===Qn.element){const Be=X,Xe=lt(j?j(X):X.nodeName);try{Be.hasAttribute&&Be.hasAttribute("patchsrc")&&Be.removeAttribute("patchsrc"),Be.hasAttribute&&Be.hasAttribute("for")&&Xe!=="label"&&Xe!=="output"&&Be.removeAttribute("for")}catch{}}const Ne=R(X);if(Ne)for(let Be=Ne.length-1;Be>=0;--Be)D.push(Ne[Be])}},$e=function(S){let D=null,X=null;if(Cn)S="<remove></remove>"+S;else{const Be=zg(S,/^[\r\n\t ]+/);X=Be&&Be[0]}vn==="application/xhtml+xml"&&he===se&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const _e=ne?ve(S):S;if(he===se)try{D=new b().parseFromString(_e,vn)}catch{}if(!D||!D.documentElement){D=ie.createDocument(he,"template",null);try{D.documentElement.innerHTML=me?O:_e}catch{}}const Ne=D.body||D.documentElement;return S&&X&&Ne.insertBefore(r.createTextNode(X),Ne.childNodes[0]||null),he===se?Ue.call(D,mt?"html":"body")[0]:mt?D.documentElement:Ne},st=function(S){const D=ee?ee(S):S.ownerDocument;return de.call(D||S,S,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Nt=function(S){return S=Ds(S,Y," "),S=Ds(S,re," "),S=Ds(S,Se," "),S},Ht=function(S){var D;S.normalize();const X=ee?ee(S):S.ownerDocument,_e=de.call(X||S,S,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let Ne=_e.nextNode();for(;Ne;)Ne.data=Nt(Ne.data),Ne=_e.nextNode();const Be=(D=S.querySelectorAll)===null||D===void 0?void 0:D.call(S,"template");Be&&Cl(Be,Xe=>{Ut(Xe.content)&&Ht(Xe.content)})},tn=function(S){const D=j?j(S):null;return typeof D!="string"||lt(D)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==M(S)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==V(S)||S.childNodes!==R(S)},Ut=function(S){if(!V||typeof S!="object"||S===null)return!1;try{return V(S)===Qn.documentFragment}catch{return!1}},rt=function(S){if(!V||typeof S!="object"||S===null)return!1;try{return typeof V(S)=="number"}catch{return!1}};function Ot(Z,S,D){Z.length!==0&&Cl(Z,X=>{X.call(i,S,D,Wn)})}const tl=function(S,D){return!!(zt&&S.hasChildNodes()&&!rt(S.firstElementChild)&&an(Yg,S.textContent)&&an(Yg,S.innerHTML)||zt&&S.namespaceURI===se&&D==="style"&&rt(S.firstElementChild)||S.nodeType===Qn.processingInstruction||zt&&S.nodeType===Qn.comment&&an(Fg,S.data))},ti=function(S,D,X){if(!Xt[D]&&ai(D)&&(nt.tagNameCheck instanceof RegExp&&an(nt.tagNameCheck,D)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(D)))return!1;if(Gn&&!Ie[D]){const _e=H(S),Ne=R(S);if(Ne&&_e){const Be=Ne.length;for(let Xe=Be-1;Xe>=0;--Xe){const le=S===X?x(Ne[Xe],!0):Ne[Xe];_e.insertBefore(le,C(S))}}}return ft(S),!0},ni=function(S,D,X,_e){return S.length===0?D:D===X||D===_e?Sn(D):D},Ca=function(S,D){if(Ot(L.beforeSanitizeElements,S,null),S!==D&&H(S)===null)return zn&&oe(S),!0;if(tn(S))return ft(S),!0;const X=lt(j?j(S):S.nodeName);if(De=ni(L.uponSanitizeElement,De,St,yn),Ot(L.uponSanitizeElement,S,{tagName:X,allowedTags:De}),S!==D&&H(S)===null)return zn&&oe(S),!0;if(tl(S,X))return ft(S),!0;if(Xt[X]||!(Jt.tagCheck instanceof Function&&Jt.tagCheck(X))&&!De[X]){const Ne=ti(S,X,D);return Ne===!1&&Ot(L.afterSanitizeElements,S,null),Ne}if((V?V(S):S.nodeType)===Qn.element&&!_a(S)||(X==="noscript"||X==="noembed"||X==="noframes")&&an(iS,S.innerHTML))return ft(S),!0;if(Pe&&S.nodeType===Qn.text){const Ne=Nt(S.textContent);S.textContent!==Ne&&(Dl(i.removed,{element:S.cloneNode()}),S.textContent=Ne)}return Ot(L.afterSanitizeElements,S,null),!1},nl=function(S,D,X){if(Nn[D]||zt&&D==="patchsrc"||zt&&D==="for"&&S!=="label"&&S!=="output"||Tt&&(D==="id"||D==="name")&&(X in r||X in el))return!1;const _e=Ge[D]||Jt.attributeCheck instanceof Function&&Jt.attributeCheck(D,S);if(!(xn&&an(we,D))){if(!(gn&&an(ye,D))){if(_e){if(!w[D]){if(!an(je,Ds(X,Me,""))){if(!((D==="src"||D==="xlink:href"||D==="href")&&S!=="script"&&Ug(X,"data:")===0&&Qt[S])){if(!(ca&&!an(Ee,Ds(X,Me,"")))){if(X)return!1}}}}}else if(!(ai(S)&&(nt.tagNameCheck instanceof RegExp&&an(nt.tagNameCheck,S)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(S))&&(nt.attributeNameCheck instanceof RegExp&&an(nt.attributeNameCheck,D)||nt.attributeNameCheck instanceof Function&&nt.attributeNameCheck(D,S))||D==="is"&&nt.allowCustomizedBuiltInElements&&(nt.tagNameCheck instanceof RegExp&&an(nt.tagNameCheck,X)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(X))))return!1}}return!0},En=it({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ai=function(S){return!En[Us(S)]&&an(Fe,S)},Da=function(S,D,X,_e){if(ne&&typeof E=="object"&&typeof E.getAttributeType=="function"&&!X)switch(E.getAttributeType(S,D)){case"TrustedHTML":return ve(_e);case"TrustedScriptURL":return Ae(_e)}return _e},ii=function(S,D,X,_e){try{X?S.setAttributeNS(X,D,_e):S.setAttribute(D,_e),tn(S)?ft(S):Lg(i.removed)}catch{An(D,S)}},qt=function(S){Ot(L.beforeSanitizeAttributes,S,null);const D=S.attributes;if(!D||tn(S))return;Ge=ni(L.uponSanitizeAttribute,Ge,kn,Mn);const X={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ge,forceKeepAttr:void 0};let _e=D.length;const Ne=lt(S.nodeName);for(;_e--;){const Be=D[_e],Xe=Be.name,le=Be.namespaceURI,ge=Be.value,ke=lt(Xe),Ke=ge;let Ze=Xe==="value"?Ke:H0(Ke);if(X.attrName=ke,X.attrValue=Ze,X.keepAttr=!0,X.forceKeepAttr=void 0,Ot(L.uponSanitizeAttribute,S,X),Ze=X.attrValue,Wt&&(ke==="id"||ke==="name")&&Ug(Ze,xt)!==0&&(An(Xe,S),Ze=xt+Ze),zt&&an(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ze)){An(Xe,S);continue}if(ke==="attributename"&&zg(Ze,"href")){An(Xe,S);continue}if(!X.forceKeepAttr){if(!X.keepAttr){An(Xe,S);continue}if(!Vn&&an(lS,Ze)){An(Xe,S);continue}if(Pe&&(Ze=Nt(Ze)),!nl(Ne,ke,Ze)){An(Xe,S);continue}Ze=Da(Ne,ke,le,Ze),Ze!==Ke&&ii(S,Xe,le,Ze)}}Ot(L.afterSanitizeAttributes,S,null)},La=function(S){let D=null;const X=st(S);for(Ot(L.beforeSanitizeShadowDOM,S,null);D=X.nextNode();)if(Ot(L.uponSanitizeShadowNode,D,null),Ca(D,S),qt(D),Ut(D.content)&&La(D.content),(V?V(D):D.nodeType)===Qn.element){const Ne=U(D);Ut(Ne)&&(Sa(Ne),La(Ne))}Ot(L.afterSanitizeShadowDOM,S,null)},Sa=function(S){const D=[{node:S,shadow:null}];for(;D.length>0;){const X=D.pop();if(X.shadow){La(X.shadow);continue}const _e=X.node,Be=(V?V(_e):_e.nodeType)===Qn.element,Xe=R(_e);if(Xe)for(let le=Xe.length-1;le>=0;--le)D.push({node:Xe[le],shadow:null});if(Be){const le=j?j(_e):null;if(typeof le=="string"&<(le)==="template"){const ge=_e.content;Ut(ge)&&D.push({node:ge,shadow:null})}}if(Be){const le=U(_e);Ut(le)&&D.push({node:null,shadow:le},{node:le,shadow:null})}}};return i.sanitize=function(Z){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,X=null,_e=null,Ne=null;if(me=!Z,me&&(Z="<!-->"),typeof Z!="string"&&!rt(Z)&&(Z=F0(Z),typeof Z!="string"))throw Xi("dirty is not a string, aborting");if(!i.isSupported)return Z;bn?(De=yn,Ge=Mn):Wa(S),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(De=Sn(De)),L.uponSanitizeAttribute.length>0&&(Ge=Sn(Ge)),i.removed=[];const Be=zn&&typeof Z!="string"&&rt(Z);if(Be){Oe(Z);const ge=j?j(Z):Z.nodeName;if(typeof ge=="string"){const ke=lt(ge);if(!De[ke]||Xt[ke])throw Ma(Z),Xi("root node is forbidden and cannot be sanitized in-place")}if(tn(Z))throw Ma(Z),Xi("root node is clobbered and cannot be sanitized in-place");try{Sa(Z)}catch(ke){throw Ma(Z),ke}}else if(rt(Z))D=$e("<!---->"),X=D.ownerDocument.importNode(Z,!0),X.nodeType===Qn.element&&X.nodeName==="BODY"||X.nodeName==="HTML"?D=X:D.appendChild(X),Sa(X);else{if(!Dn&&!Pe&&!mt&&Z.indexOf("<")===-1)return ne&&rn?ve(Z):Z;if(D=$e(Z),!D)return Dn?null:rn?O:""}D&&Cn&&ft(D.firstChild);const Xe=Be?Z:D;try{const ge=st(Xe);for(;_e=ge.nextNode();)Ca(_e,Xe),qt(_e),Ut(_e.content)&&La(_e.content)}catch(ge){throw Be&&(Ma(Z),Cl(i.removed,ke=>{ke.element&&oe(ke.element)})),ge}if(Be)return Cl(i.removed,ge=>{ge.element&&oe(ge.element)}),Pe&&Ht(Z),Z;if(Dn){if(Pe&&Ht(D),Ln)for(Ne=xe.call(D.ownerDocument);D.firstChild;)Ne.appendChild(D.firstChild);else Ne=D;return(Ge.shadowroot||Ge.shadowrootmode)&&(Ne=T.call(l,Ne,!0)),Ne}let le=mt?D.outerHTML:D.innerHTML;return mt&&De["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&an(nS,D.ownerDocument.doctype.name)&&(le="<!DOCTYPE "+D.ownerDocument.doctype.name+`>
|
|
172
|
+
`+le),Pe&&(le=Nt(le)),ne&&rn?ve(le):le},i.setConfig=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Wa(Z),bn=!0,yn=De,Mn=Ge},i.clearConfig=function(){Wn=null,bn=!1,yn=null,Mn=null,ne=q,O=""},i.isValidAttribute=function(Z,S,D){Wn||Wa({});const X=lt(Z),_e=lt(S);return nl(X,_e,D)},i.addHook=function(Z,S){typeof S=="function"&&ln(L,Z)&&Dl(L[Z],S)},i.removeHook=function(Z,S){if(ln(L,Z)){if(S!==void 0){const D=I0(L[Z],S);return D===-1?void 0:j0(L[Z],D,1)[0]}return Lg(L[Z])}},i.removeHooks=function(Z){ln(L,Z)&&(L[Z]=[])},i.removeAllHooks=function(){L=Kg()},i}var oS=kb();function If(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Wi=If();function Mb(s){Wi=s}var Qi={exec:()=>null};function Ll(s){let i=[];return r=>{let l=Math.max(0,Math.min(3,r-1)),u=i[l];return u||(u=s(l),i[l]=u),u}}function Je(s,i=""){let r=typeof s=="string"?s:s.source,l={replace:(u,h)=>{let g=typeof h=="string"?h:h.source;return g=g.replace(Tn.caret,"$1"),r=r.replace(u,g),l},getRegex:()=>new RegExp(r,i)};return l}var cS=((s="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+s)}catch{return!1}})(),Tn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:s=>new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ll(s=>new RegExp(`^ {0,${s}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ll(s=>new RegExp(`^ {0,${s}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ll(s=>new RegExp(`^ {0,${s}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ll(s=>new RegExp(`^ {0,${s}}#`)),htmlBeginRegex:Ll(s=>new RegExp(`^ {0,${s}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ll(s=>new RegExp(`^ {0,${s}}>`))},uS=/^(?:[ \t]*(?:\n|$))+/,fS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,dS=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Hs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,hS=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Cb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Db=Je(Cb).replace(/bull/g,jf).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(),pS=Je(Cb).replace(/bull/g,jf).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(),Hf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,mS=/^[^\n]+/,qf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gS=Je(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",qf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),bS=Je(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,jf).getRegex(),uo="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",Gf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,yS=Je("^ {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",Gf).replace("tag",uo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Lb=s=>Je(Hf).replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",s).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex(),vS=Lb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),ES=Lb(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),_S=Je(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ES).getRegex(),$f={blockquote:_S,code:fS,def:gS,fences:dS,heading:hS,hr:Hs,html:yS,lheading:Db,list:bS,newline:uS,paragraph:vS,table:Qi,text:mS},Pg=Je("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Hs).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",uo).getRegex(),SS={...$f,lheading:pS,table:Pg,paragraph:Je(Hf).replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Pg).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",uo).getRegex()},TS={...$f,html:Je(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Gf).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:Qi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Je(Hf).replace("hr",Hs).replace("heading",` *#{1,6} *[^
|
|
173
|
+
]`).replace("lheading",Db).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},NS=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,xS=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,zb=/^( {2,}|\\)\n(?!\s*$)/,wS=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Va=/[\p{P}\p{S}]/u,Hl=/[\s\p{P}\p{S}]/u,qs=/[^\s\p{P}\p{S}]/u,AS=Je(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Hl).getRegex(),RS=/[\p{Pi}\p{Ps}"']/u,Ub=/(?!~)[\p{P}\p{S}]/u,OS=/(?!~)[\s\p{P}\p{S}]/u,kS=/(?:[^\s\p{P}\p{S}]|~)/u,MS=Je(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",cS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Bb=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,CS=Je(Bb,"u").replace(/punct/g,Va).getRegex(),DS=Je(Bb,"u").replace(/punct/g,Ub).getRegex(),LS=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,zS=Je(LS,"u").replace(/openQuote/g,RS).replace(/punct/g,Va).getRegex(),Ib="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",US=Je(Ib,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),BS=Je(Ib,"gu").replace(/notPunctSpace/g,kS).replace(/punctSpace/g,OS).replace(/punct/g,Ub).getRegex(),IS="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",jS=Je(IS,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),HS=Je("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),qS="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",GS=Je(qS,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),$S=Je(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Va).getRegex(),YS="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",FS=Je(YS,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),KS=Je(/\\(punct)/,"gu").replace(/punct/g,Va).getRegex(),PS=Je(/^<(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(),ZS=Je(Gf).replace("(?:-->|$)","-->").getRegex(),XS=Je("^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",ZS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),io=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,QS=Je(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",io).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),jb=Je(/^!?\[(label)\]\[(ref)\]/).replace("label",io).replace("ref",qf).getRegex(),Hb=Je(/^!?\[(ref)\](?:\[\])?/).replace("ref",qf).getRegex(),VS=Je("reflink|nolink(?!\\()","g").replace("reflink",jb).replace("nolink",Hb).getRegex(),Zg=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Yf={_backpedal:Qi,anyPunctuation:KS,autolink:PS,blockSkip:MS,br:zb,code:xS,del:Qi,delLDelim:Qi,delRDelim:Qi,emStrongLDelim:CS,emStrongRDelimAst:US,emStrongRDelimUnd:HS,escape:NS,link:QS,nolink:Hb,punctuation:AS,reflink:jb,reflinkSearch:VS,tag:XS,text:wS,url:Qi},JS={...Yf,emStrongLDelim:zS,emStrongRDelimAst:jS,emStrongRDelimUnd:GS,link:Je(/^!?\[(label)\]\((.*?)\)/).replace("label",io).getRegex(),reflink:Je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",io).getRegex()},Nf={...Yf,emStrongRDelimAst:BS,emStrongLDelim:DS,delLDelim:$S,delRDelim:FS,url:Je(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Zg).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:Je(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Zg).getRegex()},WS={...Nf,br:Je(zb).replace("{2,}","*").getRegex(),text:Je(Nf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Jr={normal:$f,gfm:SS,pedantic:TS},zs={normal:Yf,gfm:Nf,breaks:WS,pedantic:JS},eT={"&":"&","<":"<",">":">",'"':""","'":"'"},Xg=s=>eT[s];function Ra(s,i){if(i){if(Tn.escapeTest.test(s))return s.replace(Tn.escapeReplace,Xg)}else if(Tn.escapeTestNoEncode.test(s))return s.replace(Tn.escapeReplaceNoEncode,Xg);return s}function Qg(s){try{s=encodeURI(s).replace(Tn.percentDecode,"%")}catch{return null}return s}function Vg(s,i){var h;let r=s.replace(Tn.findPipe,(g,v,m)=>{let p=!1,b=v;for(;--b>=0&&m[b]==="\\";)p=!p;return p?"|":" |"}),l=r.split(Tn.splitPipe),u=0;if(l[0].trim()||l.shift(),l.length>0&&!((h=l.at(-1))!=null&&h.trim())&&l.pop(),i)if(l.length>i)l.splice(i);else for(;l.length<i;)l.push("");for(;u<l.length;u++)l[u]=l[u].trim().replace(Tn.slashPipe,"|");return l}function Oi(s,i,r){let l=s.length;if(l===0)return"";let u=0;for(;u<l&&s.charAt(l-u-1)===i;)u++;return s.slice(0,l-u)}function Jg(s){let i=s.split(`
|
|
174
|
+
`),r=i.length-1;for(;r>=0&&Tn.blankLine.test(i[r]);)r--;return i.length-r<=2?s:i.slice(0,r+1).join(`
|
|
175
|
+
`)}function tT(s,i){if(s.indexOf(i[1])===-1)return-1;let r=0;for(let l=0;l<s.length;l++)if(s[l]==="\\")l++;else if(s[l]===i[0])r++;else if(s[l]===i[1]&&(r--,r<0))return l;return r>0?-2:-1}function nT(s,i=0){let r=i,l="";for(let u of s)if(u===" "){let h=4-r%4;l+=" ".repeat(h),r+=h}else l+=u,r++;return l}function Wg(s,i,r,l,u){let h=i.href,g=i.title||null,v=s[1].replace(u.other.outputLinkReplace,"$1");l.state.inLink=!0;let m={type:s[0].charAt(0)==="!"?"image":"link",raw:r,href:h,title:g,text:v,tokens:l.inlineTokens(v)};return l.state.inLink=!1,m}function aT(s,i,r){let l=s.match(r.other.indentCodeCompensation);if(l===null)return i;let u=l[1];return i.split(`
|
|
176
|
+
`).map(h=>{let g=h.match(r.other.beginningSpace);if(g===null)return h;let[v]=g;return v.length>=u.length?h.slice(u.length):h}).join(`
|
|
177
|
+
`)}var lo=class{constructor(s){Et(this,"options");Et(this,"rules");Et(this,"lexer");this.options=s||Wi}space(s){let i=this.rules.block.newline.exec(s);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(s){let i=this.rules.block.code.exec(s);if(i){let r=this.options.pedantic?i[0]:Jg(i[0]),l=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:l}}}fences(s){let i=this.rules.block.fences.exec(s);if(i){let r=i[0],l=aT(r,i[3]||"",this.rules);return{type:"code",raw:r,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:l}}}heading(s){let i=this.rules.block.heading.exec(s);if(i){let r=i[2].trim();if(this.rules.other.endingHash.test(r)){let l=Oi(r,"#");(this.options.pedantic||!l||this.rules.other.endingSpaceChar.test(l))&&(r=l.trim())}return{type:"heading",raw:Oi(i[0],`
|
|
178
|
+
`),depth:i[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(s){let i=this.rules.block.hr.exec(s);if(i)return{type:"hr",raw:Oi(i[0],`
|
|
179
|
+
`)}}blockquote(s){let i=this.rules.block.blockquote.exec(s);if(i){let r=Oi(i[0],`
|
|
180
|
+
`).split(`
|
|
181
|
+
`),l="",u="",h=[];for(;r.length>0;){let g=!1,v=[],m;for(m=0;m<r.length;m++)if(this.rules.other.blockquoteStart.test(r[m]))v.push(r[m]),g=!0;else if(!g)v.push(r[m]);else break;r=r.slice(m);let p=v.join(`
|
|
182
|
+
`),b=p.replace(this.rules.other.blockquoteSetextReplace,`
|
|
183
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");l=l?`${l}
|
|
184
|
+
${p}`:p,u=u?`${u}
|
|
185
|
+
${b}`:b;let E=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,h,!0),this.lexer.state.top=E,r.length===0)break;let _=h.at(-1);if((_==null?void 0:_.type)==="code")break;if((_==null?void 0:_.type)==="blockquote"){let x=_,N=r.join(`
|
|
186
|
+
`),C=x.raw+`
|
|
187
|
+
`+N.replace(this.rules.other.blockquoteSetextReplace2,""),R=this.blockquote(C);h[h.length-1]=R,l=`${l}
|
|
188
|
+
${N}`,u=u.substring(0,u.length-x.text.length)+R.text;break}else if((_==null?void 0:_.type)==="list"){let x=_,N=x.raw+`
|
|
189
|
+
`+r.join(`
|
|
190
|
+
`),C=this.list(N);h[h.length-1]=C,l=l.substring(0,l.length-_.raw.length)+C.raw,u=u.substring(0,u.length-x.raw.length)+C.raw,r=N.substring(h.at(-1).raw.length).split(`
|
|
191
|
+
`);continue}}return{type:"blockquote",raw:l,tokens:h,text:u}}}list(s){let i=this.rules.block.list.exec(s);if(i){let r=i[1].trim(),l=r.length>1,u={type:"list",raw:"",ordered:l,start:l?+r.slice(0,-1):"",loose:!1,items:[]};r=l?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=l?r:"[*+-]");let h=this.rules.other.listItemRegex(r),g=!1;for(;s;){let m=!1,p="",b="";if(!(i=h.exec(s))||this.rules.block.hr.test(s))break;p=i[0],s=s.substring(p.length);let E=nT(i[2].split(`
|
|
192
|
+
`,1)[0],i[1].length),_=s.split(`
|
|
193
|
+
`,1)[0],x=!E.trim(),N=0;if(this.options.pedantic?(N=2,b=E.trimStart()):x?N=i[1].length+1:(N=E.search(this.rules.other.nonSpaceChar),N=N>4?1:N,b=E.slice(N),N+=i[1].length),x&&this.rules.other.blankLine.test(_)&&(p+=_+`
|
|
194
|
+
`,s=s.substring(_.length+1),m=!0),!m){let C=this.rules.other.nextBulletRegex(N),R=this.rules.other.hrRegex(N),H=this.rules.other.fencesBeginRegex(N),U=this.rules.other.headingBeginRegex(N),M=this.rules.other.htmlBeginRegex(N),V=this.rules.other.blockquoteBeginRegex(N);for(;s;){let j=s.split(`
|
|
195
|
+
`,1)[0],ee;if(_=j,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),ee=_):ee=_.replace(this.rules.other.tabCharGlobal," "),H.test(_)||U.test(_)||M.test(_)||V.test(_)||C.test(_)||R.test(_))break;if(ee.search(this.rules.other.nonSpaceChar)>=N||!_.trim())b+=`
|
|
196
|
+
`+ee.slice(N);else{if(x||E.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||H.test(E)||U.test(E)||R.test(E))break;b+=`
|
|
197
|
+
`+_}x=!_.trim(),p+=j+`
|
|
198
|
+
`,s=s.substring(j.length+1),E=ee.slice(N)}}u.loose||(g?u.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(g=!0)),u.items.push({type:"list_item",raw:p,task:!!this.options.gfm&&this.rules.other.listIsTask.test(b),loose:!1,text:b,tokens:[]}),u.raw+=p}let v=u.items.at(-1);if(v)v.raw=v.raw.trimEnd(),v.text=v.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let m of u.items)if(this.lexer.state.top=!1,m.tokens=this.lexer.blockTokens(m.text,[]),!u.loose){let p=m.tokens.filter(E=>E.type==="space"),b=p.length>0&&p.some(E=>this.rules.other.anyLine.test(E.raw));u.loose=b}for(let m of u.items){let p=m.tokens[0];if(m.task&&((p==null?void 0:p.type)==="text"||(p==null?void 0:p.type)==="paragraph")){m.text=m.text.replace(this.rules.other.listReplaceTask,""),p.raw=p.raw.replace(this.rules.other.listReplaceTask,""),p.text=p.text.replace(this.rules.other.listReplaceTask,"");for(let E=this.lexer.inlineQueue.length-1;E>=0;E--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[E].src)){this.lexer.inlineQueue[E].src=this.lexer.inlineQueue[E].src.replace(this.rules.other.listReplaceTask,"");break}let b=this.rules.other.listTaskCheckbox.exec(m.raw);if(b){let E={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};m.checked=E.checked,u.loose?m.tokens[0]&&["paragraph","text"].includes(m.tokens[0].type)&&"tokens"in m.tokens[0]&&m.tokens[0].tokens?(m.tokens[0].raw=E.raw+m.tokens[0].raw,m.tokens[0].text=E.raw+m.tokens[0].text,m.tokens[0].tokens.unshift(E)):m.tokens.unshift({type:"paragraph",raw:E.raw,text:E.raw,tokens:[E]}):m.tokens.unshift(E)}}else m.task&&(m.task=!1)}if(u.loose)for(let m of u.items){m.loose=!0;for(let p of m.tokens)p.type==="text"&&(p.type="paragraph")}return u}}html(s){let i=this.rules.block.html.exec(s);if(i){let r=Jg(i[0]);return{type:"html",block:!0,raw:r,pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:r}}}def(s){let i=this.rules.block.def.exec(s);if(i){let r=i[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),l=i[2]?i[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:r,raw:Oi(i[0],`
|
|
199
|
+
`),href:l,title:u}}}table(s){var g;let i=this.rules.block.table.exec(s);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let r=Vg(i[1]),l=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(g=i[3])!=null&&g.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
200
|
+
`):[],h={type:"table",raw:Oi(i[0],`
|
|
201
|
+
`),header:[],align:[],rows:[]};if(r.length===l.length){for(let v of l)this.rules.other.tableAlignRight.test(v)?h.align.push("right"):this.rules.other.tableAlignCenter.test(v)?h.align.push("center"):this.rules.other.tableAlignLeft.test(v)?h.align.push("left"):h.align.push(null);for(let v=0;v<r.length;v++)h.header.push({text:r[v],tokens:this.lexer.inline(r[v]),header:!0,align:h.align[v]});for(let v of u)h.rows.push(Vg(v,h.header.length).map((m,p)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:h.align[p]})));return h}}lheading(s){let i=this.rules.block.lheading.exec(s);if(i){let r=i[1].trim();return{type:"heading",raw:Oi(i[0],`
|
|
202
|
+
`),depth:i[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(s){let i=this.rules.block.paragraph.exec(s);if(i){let r=i[1].charAt(i[1].length-1)===`
|
|
203
|
+
`?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:r,tokens:this.lexer.inline(r)}}}text(s){let i=this.rules.block.text.exec(s);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(s){let i=this.rules.inline.escape.exec(s);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(s){let i=this.rules.inline.tag.exec(s);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(s){let i=this.rules.inline.link.exec(s);if(i){let r=i[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let h=Oi(r.slice(0,-1),"\\");if((r.length-h.length)%2===0)return}else{let h=tT(i[2],"()");if(h===-2)return;if(h>-1){let g=(i[0].indexOf("!")===0?5:4)+i[1].length+h;i[2]=i[2].substring(0,h),i[0]=i[0].substring(0,g).trim(),i[3]=""}}let l=i[2],u="";if(this.options.pedantic){let h=this.rules.other.pedanticHrefTitle.exec(l);h&&(l=h[1],u=h[3])}else u=i[3]?i[3].slice(1,-1):"";return l=l.trim(),this.rules.other.startAngleBracket.test(l)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?l=l.slice(1):l=l.slice(1,-1)),Wg(i,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(s,i){let r;if((r=this.rules.inline.reflink.exec(s))||(r=this.rules.inline.nolink.exec(s))){let l=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=i[l.toLowerCase()];if(!u){let h=r[0].charAt(0);return{type:"text",raw:h,text:h}}return Wg(r,u,r[0],this.lexer,this.rules)}}emStrong(s,i,r=""){let l=this.rules.inline.emStrongLDelim.exec(s);if(!(!l||!l[1]&&!l[2]&&!l[3]&&!l[4]||l[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(l[1]||l[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,h,g,v=u,m=0,p=l[0][0],b=r===p,E=p==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(E.lastIndex=0,i=i.slice(-1*s.length+u);(l=E.exec(i))!==null;){if(h=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!h)continue;if(g=[...h].length,l[3]||l[4]){v+=g;continue}else if(l[5]||l[6]){if(u%3&&!((u+g)%3)){m+=g;continue}if(b)break}if(v-=g,v>0)continue;g=Math.min(g,g+v+m);let _=[...l[0]][0].length,x=s.slice(0,u+l.index+_+g);if(Math.min(u,g)%2){let C=x.slice(1,-1);return{type:"em",raw:x,text:C,tokens:this.lexer.inlineTokens(C)}}let N=x.slice(2,-2);return{type:"strong",raw:x,text:N,tokens:this.lexer.inlineTokens(N)}}}}codespan(s){let i=this.rules.inline.code.exec(s);if(i){let r=i[2].replace(this.rules.other.newLineCharGlobal," "),l=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return l&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:i[0],text:r}}}br(s){let i=this.rules.inline.br.exec(s);if(i)return{type:"br",raw:i[0]}}del(s,i,r=""){let l=this.rules.inline.delLDelim.exec(s);if(l&&(!l[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,h,g,v=u,m=this.rules.inline.delRDelim;for(m.lastIndex=0,i=i.slice(-1*s.length+u);(l=m.exec(i))!==null;){if(h=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!h||(g=[...h].length,g!==u))continue;if(l[3]||l[4]){v+=g;continue}if(v-=g,v>0)continue;g=Math.min(g,g+v);let p=[...l[0]][0].length,b=s.slice(0,u+l.index+p+g),E=b.slice(u,-u);return{type:"del",raw:b,text:E,tokens:this.lexer.inlineTokens(E)}}}}autolink(s){let i=this.rules.inline.autolink.exec(s);if(i){let r,l;return i[2]==="@"?(r=i[1],l="mailto:"+r):(r=i[1],l=r),{type:"link",raw:i[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}url(s){var r;let i;if(i=this.rules.inline.url.exec(s)){let l,u;if(i[2]==="@")l=i[0],u="mailto:"+l;else{let h;do h=i[0],i[0]=((r=this.rules.inline._backpedal.exec(i[0]))==null?void 0:r[0])??"";while(h!==i[0]);l=i[0],i[1]==="www."?u="http://"+i[0]:u=i[0]}return{type:"link",raw:i[0],text:l,href:u,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(s){let i=this.rules.inline.text.exec(s);if(i){let r=this.lexer.state.inRawBlock;return{type:"text",raw:i[0],text:i[0],escaped:r}}}},ga=class xf{constructor(i){Et(this,"tokens");Et(this,"options");Et(this,"state");Et(this,"inlineQueue");Et(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=i||Wi,this.options.tokenizer=this.options.tokenizer||new lo,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:Tn,block:Jr.normal,inline:zs.normal};this.options.pedantic?(r.block=Jr.pedantic,r.inline=zs.pedantic):this.options.gfm&&(r.block=Jr.gfm,this.options.breaks?r.inline=zs.breaks:r.inline=zs.gfm),this.tokenizer.rules=r}static get rules(){return{block:Jr,inline:zs}}static lex(i,r){return new xf(r).lex(i)}static lexInline(i,r){return new xf(r).inlineTokens(i)}lex(i){i=i.replace(Tn.carriageReturn,`
|
|
204
|
+
`),this.blockTokens(i,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let l=this.inlineQueue[r];this.inlineTokens(l.src,l.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(i,r=[],l=!1){var h,g,v;this.tokenizer.lexer=this,this.options.pedantic&&(i=i.replace(Tn.tabCharGlobal," ").replace(Tn.spaceLine,""));let u=1/0;for(;i;){if(i.length<u)u=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}let m;if((g=(h=this.options.extensions)==null?void 0:h.block)!=null&&g.some(b=>(m=b.call({lexer:this},i,r))?(i=i.substring(m.raw.length),r.push(m),!0):!1))continue;if(m=this.tokenizer.space(i)){i=i.substring(m.raw.length);let b=r.at(-1);m.raw.length===1&&b!==void 0?b.raw+=`
|
|
205
|
+
`:r.push(m);continue}if(m=this.tokenizer.code(i)){i=i.substring(m.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
206
|
+
`)?"":`
|
|
207
|
+
`)+m.raw,b.text+=`
|
|
208
|
+
`+m.text,this.inlineQueue.at(-1).src=b.text):r.push(m);continue}if(m=this.tokenizer.fences(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.heading(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.hr(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.blockquote(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.list(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.html(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.def(i)){i=i.substring(m.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
209
|
+
`)?"":`
|
|
210
|
+
`)+m.raw,b.text+=`
|
|
211
|
+
`+m.raw,this.inlineQueue.at(-1).src=b.text):this.tokens.links[m.tag]||(this.tokens.links[m.tag]={href:m.href,title:m.title},r.push(m));continue}if(m=this.tokenizer.table(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.lheading(i)){i=i.substring(m.raw.length),r.push(m);continue}let p=i;if((v=this.options.extensions)!=null&&v.startBlock){let b=1/0,E=i.slice(1),_;this.options.extensions.startBlock.forEach(x=>{_=x.call({lexer:this},E),typeof _=="number"&&_>=0&&(b=Math.min(b,_))}),b<1/0&&b>=0&&(p=i.substring(0,b+1))}if(this.state.top&&(m=this.tokenizer.paragraph(p))){let b=r.at(-1);l&&(b==null?void 0:b.type)==="paragraph"?(b.raw+=(b.raw.endsWith(`
|
|
212
|
+
`)?"":`
|
|
213
|
+
`)+m.raw,b.text+=`
|
|
214
|
+
`+m.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(m),l=p.length!==i.length,i=i.substring(m.raw.length);continue}if(m=this.tokenizer.text(i)){i=i.substring(m.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
215
|
+
`)?"":`
|
|
216
|
+
`)+m.raw,b.text+=`
|
|
217
|
+
`+m.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(m);continue}if(i){this.infiniteLoopError(i.charCodeAt(0));break}}return this.state.top=!0,r}inline(i,r=[]){return this.inlineQueue.push({src:i,tokens:r}),r}inlineTokens(i,r=[]){var v,m,p,b,E;this.tokenizer.lexer=this;let l=i;if(this.tokens.links){let _=Object.keys(this.tokens.links);_.length>0&&(l=l.replace(this.tokenizer.rules.inline.reflinkSearch,x=>_.includes(x.slice(x.lastIndexOf("[")+1,-1))?"["+"a".repeat(x.length-2)+"]":x))}l=l.replace(this.tokenizer.rules.inline.anyPunctuation,_=>"+".repeat(_.length)),l=l.replace(this.tokenizer.rules.inline.blockSkip,(_,x,N)=>{let C=N?N.length:0;return _.slice(0,C)+"["+"a".repeat(_.length-C-2)+"]"}),l=((m=(v=this.options.hooks)==null?void 0:v.emStrongMask)==null?void 0:m.call({lexer:this},l))??l;let u=!1,h="",g=1/0;for(;i;){if(i.length<g)g=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}u||(h=""),u=!1;let _;if((b=(p=this.options.extensions)==null?void 0:p.inline)!=null&&b.some(N=>(_=N.call({lexer:this},i,r))?(i=i.substring(_.raw.length),r.push(_),!0):!1))continue;if(_=this.tokenizer.escape(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.tag(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.link(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.reflink(i,this.tokens.links)){i=i.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(i,l,h)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.codespan(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.br(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.del(i,l,h)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.autolink(i)){i=i.substring(_.raw.length),r.push(_);continue}if(!this.state.inLink&&(_=this.tokenizer.url(i))){i=i.substring(_.raw.length),r.push(_);continue}let x=i;if((E=this.options.extensions)!=null&&E.startInline){let N=1/0,C=i.slice(1),R;this.options.extensions.startInline.forEach(H=>{R=H.call({lexer:this},C),typeof R=="number"&&R>=0&&(N=Math.min(N,R))}),N<1/0&&N>=0&&(x=i.substring(0,N+1))}if(_=this.tokenizer.inlineText(x)){i=i.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(h=_.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(i){this.infiniteLoopError(i.charCodeAt(0));break}}return r}infiniteLoopError(i){let r="Infinite loop on byte: "+i;if(this.options.silent)console.error(r);else throw new Error(r)}},so=class{constructor(s){Et(this,"options");Et(this,"parser");this.options=s||Wi}space(s){return""}code({text:s,lang:i,escaped:r}){var h;let l=(h=(i||"").match(Tn.notSpaceStart))==null?void 0:h[0],u=s.replace(Tn.endingNewline,"")+`
|
|
218
|
+
`;return l?'<pre><code class="language-'+Ra(l)+'">'+(r?u:Ra(u,!0))+`</code></pre>
|
|
219
|
+
`:"<pre><code>"+(r?u:Ra(u,!0))+`</code></pre>
|
|
220
|
+
`}blockquote({tokens:s}){return`<blockquote>
|
|
221
|
+
${this.parser.parse(s)}</blockquote>
|
|
222
|
+
`}html({text:s}){return s}def(s){return""}heading({tokens:s,depth:i}){return`<h${i}>${this.parser.parseInline(s)}</h${i}>
|
|
223
|
+
`}hr(s){return`<hr>
|
|
224
|
+
`}list(s){let i=s.ordered,r=s.start,l="";for(let g=0;g<s.items.length;g++){let v=s.items[g];l+=this.listitem(v)}let u=i?"ol":"ul",h=i&&r!==1?' start="'+r+'"':"";return"<"+u+h+`>
|
|
225
|
+
`+l+"</"+u+`>
|
|
226
|
+
`}listitem(s){return`<li>${this.parser.parse(s.tokens)}</li>
|
|
227
|
+
`}checkbox({checked:s}){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:s}){return`<p>${this.parser.parseInline(s)}</p>
|
|
228
|
+
`}table(s){let i="",r="";for(let u=0;u<s.header.length;u++)r+=this.tablecell(s.header[u]);i+=this.tablerow({text:r});let l="";for(let u=0;u<s.rows.length;u++){let h=s.rows[u];r="";for(let g=0;g<h.length;g++)r+=this.tablecell(h[g]);l+=this.tablerow({text:r})}return l&&(l=`<tbody>${l}</tbody>`),`<table>
|
|
229
|
+
<thead>
|
|
230
|
+
`+i+`</thead>
|
|
231
|
+
`+l+`</table>
|
|
232
|
+
`}tablerow({text:s}){return`<tr>
|
|
233
|
+
${s}</tr>
|
|
234
|
+
`}tablecell(s){let i=this.parser.parseInline(s.tokens),r=s.header?"th":"td";return(s.align?`<${r} align="${s.align}">`:`<${r}>`)+i+`</${r}>
|
|
235
|
+
`}strong({tokens:s}){return`<strong>${this.parser.parseInline(s)}</strong>`}em({tokens:s}){return`<em>${this.parser.parseInline(s)}</em>`}codespan({text:s}){return`<code>${Ra(s,!0)}</code>`}br(s){return"<br>"}del({tokens:s}){return`<del>${this.parser.parseInline(s)}</del>`}link({href:s,title:i,tokens:r}){let l=this.parser.parseInline(r),u=Qg(s);if(u===null)return l;s=u;let h='<a href="'+s+'"';return i&&(h+=' title="'+Ra(i)+'"'),h+=">"+l+"</a>",h}image({href:s,title:i,text:r,tokens:l}){l&&(r=this.parser.parseInline(l,this.parser.textRenderer));let u=Qg(s);if(u===null)return Ra(r);s=u;let h=`<img src="${s}" alt="${Ra(r)}"`;return i&&(h+=` title="${Ra(i)}"`),h+=">",h}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:Ra(s.text)}},Ff=class{strong({text:s}){return s}em({text:s}){return s}codespan({text:s}){return s}del({text:s}){return s}html({text:s}){return s}text({text:s}){return s}link({text:s}){return""+s}image({text:s}){return""+s}br(){return""}checkbox({raw:s}){return s}},ba=class wf{constructor(i){Et(this,"options");Et(this,"renderer");Et(this,"textRenderer");this.options=i||Wi,this.options.renderer=this.options.renderer||new so,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ff}static parse(i,r){return new wf(r).parse(i)}static parseInline(i,r){return new wf(r).parseInline(i)}parse(i){var l,u;this.renderer.parser=this;let r="";for(let h=0;h<i.length;h++){let g=i[h];if((u=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&u[g.type]){let m=g,p=this.options.extensions.renderers[m.type].call({parser:this},m);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(m.type)){r+=p||"";continue}}let v=g;switch(v.type){case"space":{r+=this.renderer.space(v);break}case"hr":{r+=this.renderer.hr(v);break}case"heading":{r+=this.renderer.heading(v);break}case"code":{r+=this.renderer.code(v);break}case"table":{r+=this.renderer.table(v);break}case"blockquote":{r+=this.renderer.blockquote(v);break}case"list":{r+=this.renderer.list(v);break}case"checkbox":{r+=this.renderer.checkbox(v);break}case"html":{r+=this.renderer.html(v);break}case"def":{r+=this.renderer.def(v);break}case"paragraph":{r+=this.renderer.paragraph(v);break}case"text":{r+=this.renderer.text(v);break}default:{let m='Token with "'+v.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}parseInline(i,r=this.renderer){var u,h;this.renderer.parser=this;let l="";for(let g=0;g<i.length;g++){let v=i[g];if((h=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&h[v.type]){let p=this.options.extensions.renderers[v.type].call({parser:this},v);if(p!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(v.type)){l+=p||"";continue}}let m=v;switch(m.type){case"escape":{l+=r.text(m);break}case"html":{l+=r.html(m);break}case"link":{l+=r.link(m);break}case"image":{l+=r.image(m);break}case"checkbox":{l+=r.checkbox(m);break}case"strong":{l+=r.strong(m);break}case"em":{l+=r.em(m);break}case"codespan":{l+=r.codespan(m);break}case"br":{l+=r.br(m);break}case"del":{l+=r.del(m);break}case"text":{l+=r.text(m);break}default:{let p='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return l}},eo,Bs=(eo=class{constructor(s){Et(this,"options");Et(this,"block");this.options=s||Wi}preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}emStrongMask(s){return s}provideLexer(s=this.block){return s?ga.lex:ga.lexInline}provideParser(s=this.block){return s?ba.parse:ba.parseInline}},Et(eo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Et(eo,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),eo),iT=class{constructor(...s){Et(this,"defaults",If());Et(this,"options",this.setOptions);Et(this,"parse",this.parseMarkdown(!0));Et(this,"parseInline",this.parseMarkdown(!1));Et(this,"Parser",ba);Et(this,"Renderer",so);Et(this,"TextRenderer",Ff);Et(this,"Lexer",ga);Et(this,"Tokenizer",lo);Et(this,"Hooks",Bs);this.use(...s)}walkTokens(s,i){var l,u;let r=[];for(let h of s)switch(r=r.concat(i.call(this,h)),h.type){case"table":{let g=h;for(let v of g.header)r=r.concat(this.walkTokens(v.tokens,i));for(let v of g.rows)for(let m of v)r=r.concat(this.walkTokens(m.tokens,i));break}case"list":{let g=h;r=r.concat(this.walkTokens(g.items,i));break}default:{let g=h;(u=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&u[g.type]?this.defaults.extensions.childTokens[g.type].forEach(v=>{let m=g[v].flat(1/0);r=r.concat(this.walkTokens(m,i))}):g.tokens&&(r=r.concat(this.walkTokens(g.tokens,i)))}}return r}use(...s){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(r=>{let l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let h=i.renderers[u.name];h?i.renderers[u.name]=function(...g){let v=u.renderer.apply(this,g);return v===!1&&(v=h.apply(this,g)),v}:i.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 h=i[u.level];h?h.unshift(u.tokenizer):i[u.level]=[u.tokenizer],u.start&&(u.level==="block"?i.startBlock?i.startBlock.push(u.start):i.startBlock=[u.start]:u.level==="inline"&&(i.startInline?i.startInline.push(u.start):i.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(i.childTokens[u.name]=u.childTokens)}),l.extensions=i),r.renderer){let u=this.defaults.renderer||new so(this.defaults);for(let h in r.renderer){if(!(h in u))throw new Error(`renderer '${h}' does not exist`);if(["options","parser"].includes(h))continue;let g=h,v=r.renderer[g],m=u[g];u[g]=(...p)=>{let b=v.apply(u,p);return b===!1&&(b=m.apply(u,p)),b||""}}l.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new lo(this.defaults);for(let h in r.tokenizer){if(!(h in u))throw new Error(`tokenizer '${h}' does not exist`);if(["options","rules","lexer"].includes(h))continue;let g=h,v=r.tokenizer[g],m=u[g];u[g]=(...p)=>{let b=v.apply(u,p);return b===!1&&(b=m.apply(u,p)),b}}l.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new Bs;for(let h in r.hooks){if(!(h in u))throw new Error(`hook '${h}' does not exist`);if(["options","block"].includes(h))continue;let g=h,v=r.hooks[g],m=u[g];Bs.passThroughHooks.has(h)?u[g]=p=>{if(this.defaults.async&&Bs.passThroughHooksRespectAsync.has(h))return(async()=>{let E=await v.call(u,p);return m.call(u,E)})();let b=v.call(u,p);return m.call(u,b)}:u[g]=(...p)=>{if(this.defaults.async)return(async()=>{let E=await v.apply(u,p);return E===!1&&(E=await m.apply(u,p)),E})();let b=v.apply(u,p);return b===!1&&(b=m.apply(u,p)),b}}l.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,h=r.walkTokens;l.walkTokens=function(g){let v=[];return v.push(h.call(this,g)),u&&(v=v.concat(u.call(this,g))),v}}this.defaults={...this.defaults,...l}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,i){return ga.lex(s,i??this.defaults)}parser(s,i){return ba.parse(s,i??this.defaults)}parseMarkdown(s){return(i,r)=>{let l={...r},u={...this.defaults,...l},h=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&l.async===!1)return h(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 i>"u"||i===null)return h(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return h(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(u.hooks&&(u.hooks.options=u,u.hooks.block=s),u.async)return(async()=>{let g=u.hooks?await u.hooks.preprocess(i):i,v=await(u.hooks?await u.hooks.provideLexer(s):s?ga.lex:ga.lexInline)(g,u),m=u.hooks?await u.hooks.processAllTokens(v):v;u.walkTokens&&await Promise.all(this.walkTokens(m,u.walkTokens));let p=await(u.hooks?await u.hooks.provideParser(s):s?ba.parse:ba.parseInline)(m,u);return u.hooks?await u.hooks.postprocess(p):p})().catch(h);try{u.hooks&&(i=u.hooks.preprocess(i));let g=(u.hooks?u.hooks.provideLexer(s):s?ga.lex:ga.lexInline)(i,u);u.hooks&&(g=u.hooks.processAllTokens(g)),u.walkTokens&&this.walkTokens(g,u.walkTokens);let v=(u.hooks?u.hooks.provideParser(s):s?ba.parse:ba.parseInline)(g,u);return u.hooks&&(v=u.hooks.postprocess(v)),v}catch(g){return h(g)}}}onError(s,i){return r=>{if(r.message+=`
|
|
236
|
+
Please report this to https://github.com/markedjs/marked.`,s){let l="<p>An error occurred:</p><pre>"+Ra(r.message+"",!0)+"</pre>";return i?Promise.resolve(l):l}if(i)return Promise.reject(r);throw r}}},Vi=new iT;function pt(s,i){return Vi.parse(s,i)}pt.options=pt.setOptions=function(s){return Vi.setOptions(s),pt.defaults=Vi.defaults,Mb(pt.defaults),pt};pt.getDefaults=If;pt.defaults=Wi;function lT(...s){return Vi.use(...s),pt.defaults=Vi.defaults,Mb(pt.defaults),pt}pt.use=lT;pt.walkTokens=function(s,i){return Vi.walkTokens(s,i)};pt.parseInline=Vi.parseInline;pt.Parser=ba;pt.parser=ba.parse;pt.Renderer=so;pt.TextRenderer=Ff;pt.Lexer=ga;pt.lexer=ga.lex;pt.Tokenizer=lo;pt.Hooks=Bs;pt.parse=pt;pt.options;pt.setOptions;pt.walkTokens;pt.parseInline;ba.parse;ga.lex;pt.setOptions({gfm:!0,breaks:!1});function Ji({text:s,className:i}){const r=ue.useMemo(()=>{const l=pt.parse(s??"",{async:!1});return oS.sanitize(l)},[s]);return s!=null&&s.trim()?d.jsx("div",{className:`md ${i??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const Wr={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},eb={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function sT(s){return(s==null?void 0:s.recommendation)==="approve"?"APPROVE":(s==null?void 0:s.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function qb(s,i){const r=PE(s);return i.filter(l=>{var u;return!l.drifted&&l.line!=null&&((u=r.get(l.path))==null?void 0:u.has(l.line))})}function tb(s,i){const r=h=>{const g=Number((h??"").trim());return Number.isInteger(g)&&g>0?g:null},l=r(i);if(l!=null)return{line:l,side:"new"};const u=r(s);return u!=null?{line:u,side:"old"}:null}function Gb(s){const i=s.comments.filter(u=>u.status==="dropped"),r=s.comments.filter(u=>u.status!=="dropped"),l=qb(s.diff,r);return{inline:l,folded:r.filter(u=>!l.includes(u)),dropped:i}}function bf(s){const i=s.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:i.filter(h=>h.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:h})=>`${Eb[u]} ${h} ${u}${h===1?"":"s"}`).join(" · ")}function rT(s){if(!s.comments.some(l=>l.severity!=null))return null;const r=s.comments.filter(l=>l.status!=="dropped"&&l.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function oT(s){if(!s.verdict||!s.comments.some(u=>u.severity!=null))return null;const r=s.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,l=s.verdict.recommendation;return l==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:l==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function nb(s){const{inline:i,folded:r}=Gb(s);if(i.length===0&&r.length===0)return"no inline comments · body only";const l=[`${i.length} inline`];return r.length>0&&l.push(`${r.length} folded into the body`),l.join(" · ")}const ab={approve:"approve",comment:"comment",request_changes:"changes"},cT={approve:"approve",comment:"comment",request_changes:"changes"};function uT(s,i){return s.status==="dropped"?"none":s.drifted?"comment":s.origin==="user"?"awaiting":i}function $b(s,i=20){const r=document.getElementById(`c-${s}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}i>0&&requestAnimationFrame(()=>$b(s,i-1))}function fT(s){const i=s,r=i==null?void 0:i.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(i==null?void 0:i.isContentEditable)===!0}function ib(s,i){const r=document.createElement("tr");r.className=i;const l=document.createElement("td");l.colSpan=2;const u=document.createElement("div");return l.appendChild(u),r.appendChild(l),s.after(r),{tr:r,holder:u}}function dT({pick:s,chatBusy:i,onAdd:r,onAsk:l,onClose:u}){const[h,g]=ue.useState(""),v=ue.useRef(null);ue.useEffect(()=>{var p;return(p=v.current)==null?void 0:p.focus()},[]);const m=h.trim();return d.jsxs("div",{className:"line-composer",children:[d.jsxs("div",{className:"line-composer-head",children:[d.jsxs("span",{className:"comment-loc",children:[s.path,":",s.line]}),s.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:v,className:"comment-edit",rows:3,placeholder:"what about this line?",value:h,onChange:p=>g(p.target.value),onKeyDown:p=>{p.key==="Escape"&&u(),p.key==="Enter"&&(p.metaKey||p.ctrlKey)&&m&&(p.preventDefault(),r(m))}}),d.jsxs("div",{className:"line-composer-actions",children:[d.jsxs("button",{className:"btn",disabled:!m,onClick:()=>r(m),children:[d.jsx(tt,{name:"plus"}),"add comment",d.jsx(Ci,{children:"⌘↵"})]}),d.jsxs("button",{className:"btn btn-accent",disabled:!m||i,title:i?"the reviewer is still answering the last question":"Ask the reviewer about this line — the answer lands in the chat below",onClick:()=>l(m),children:[d.jsx(tt,{name:"comment"}),"ask the reviewer"]}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function hT({patch:s,comments:i,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:h,onAskAboutLine:g}){const v=ue.useMemo(()=>s.trim()?$E(s,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[s]),m=ue.useMemo(()=>js(s).map(U=>U.path),[s]),p=ue.useMemo(()=>i.map(U=>`${U.id}@${U.path}:${U.line}`).join("|"),[i]),b=ue.useRef(null),[E,_]=ue.useState([]),[x,N]=ue.useState(null),[C,R]=ue.useState(null);if(ue.useEffect(()=>{var ne,O;const U=b.current;if(!U)return;U.innerHTML=v,E0(U);const M=new Map;U.querySelectorAll(".d2h-file-wrapper").forEach((q,Q)=>{var ve,Ae;const K=(Ae=(ve=q.querySelector(".d2h-file-name"))==null?void 0:ve.textContent)==null?void 0:Ae.trim(),ce=K&&m.includes(K)?K:m[Q];K&&M.set(K,q),ce&&(M.set(ce,q),q.dataset.path=ce)});const V=[],j=new Map;for(const q of i){if(q.line==null)continue;const Q=M.get(q.path);if(!Q)continue;const K=Array.from(Q.querySelectorAll(".d2h-diff-tbody > tr")).find(ve=>{var Ae,pe;return((pe=(Ae=ve.querySelector(".line-num2"))==null?void 0:Ae.textContent)==null?void 0:pe.trim())===String(q.line)});if(!K)continue;const ce=ib(j.get(K)??K,"inline-comment-row");j.set(K,ce.tr),V.push({id:q.id,el:ce.holder})}if(_(V),l){N(null),R(null);return}for(const q of U.querySelectorAll(".d2h-file-wrapper")){const Q=q.dataset.path;if(Q)for(const K of q.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const ce=tb((ne=K.querySelector(".line-num1"))==null?void 0:ne.textContent,(O=K.querySelector(".line-num2"))==null?void 0:O.textContent);if(!ce)continue;const ve=document.createElement("button");ve.type="button",ve.className="line-add";const Ae=`Say something about ${Q}:${ce.line}`;ve.title=Ae,ve.setAttribute("aria-label",Ae),ve.tabIndex=-1,ve.dataset.path=Q,ve.dataset.line=String(ce.line),ve.dataset.side=ce.side,K.appendChild(ve)}}const ee=q=>{const Q=q.target.closest(".line-add");if(!Q)return;const{path:K,line:ce,side:ve}=Q.dataset;!K||!ce||N({path:K,line:Number(ce),side:ve==="old"?"old":"new"})};return U.addEventListener("click",ee),R(null),()=>U.removeEventListener("click",ee)},[v,p,m,l]),ue.useEffect(()=>{const U=b.current;if(!U||!x||l){R(null);return}const M=Array.from(U.querySelectorAll(".d2h-file-wrapper")).find(ee=>ee.dataset.path===x.path),V=Array.from((M==null?void 0:M.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(ee=>{var q,Q;const ne=ee.querySelector(".d2h-code-linenumber"),O=tb((q=ne==null?void 0:ne.querySelector(".line-num1"))==null?void 0:q.textContent,(Q=ne==null?void 0:ne.querySelector(".line-num2"))==null?void 0:Q.textContent);return(O==null?void 0:O.line)===x.line&&O.side===x.side});if(!V){N(null);return}const j=ib(V,"line-composer-row");return R(j.holder),()=>j.tr.remove()},[x,E,l]),!v)return d.jsx("p",{className:"muted",children:"No diff for this chapter."});const H=i.filter(U=>!E.some(M=>M.id===U.id));return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"diff",ref:b}),E.map(({id:U,el:M})=>{const V=i.find(j=>j.id===U);return V?Gm.createPortal(r(V),M,U):null}),x&&C&&Gm.createPortal(d.jsx(dT,{pick:x,chatBusy:u,onAdd:U=>{h(x,U),N(null)},onAsk:U=>{g(x,U),N(null)},onClose:()=>N(null)}),C,`pick-${x.path}-${x.side}-${x.line}`),H.map(U=>r(U))]})}function Yb({comment:s,onUpdate:i,onDelete:r,onDiscuss:l,readOnly:u,flash:h}){const[g,v]=ue.useState(!1),[m,p]=ue.useState(s.body),b=s.status==="approved",E=s.status==="dropped",_=s.origin==="user"?"yours":E?"dropped":b?"kept":"drafted";return d.jsxs("div",{id:`c-${s.id}`,className:`comment comment-${s.status}${h?" comment-flash":""}`,children:[d.jsxs("div",{className:"comment-head",children:[d.jsxs("span",{className:"comment-loc",children:[s.path,s.line!=null?`:${s.line}`:""]}),d.jsx("span",{className:`tag tag-${s.origin==="user"?"yours":_}`,children:_}),s.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"}),!s.drifted&&s.originalLine!=null&&s.originalLine!==s.line&&d.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",s.originalLine]}),d.jsx("span",{className:"grow"}),!u&&(g?d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"btn btn-sm",onClick:()=>{i({body:m}),v(!1)},children:"save"}),d.jsx("button",{className:"btn btn-sm",onClick:()=>{p(s.body),v(!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:()=>i({status:b?"draft":"approved"}),children:[d.jsx(tt,{name:"check"}),"keep"]}),d.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>v(!0),children:[d.jsx(tt,{name:"edit"}),"edit"]}),d.jsxs("button",{className:`btn btn-sm${E?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>i({status:E?"draft":"dropped"}),children:[d.jsx(tt,{name:"drop"}),E?"dropped":"drop"]}),l&&d.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:l,children:[d.jsx(tt,{name:"comment"}),"discuss"]}),s.origin==="user"&&d.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),g?d.jsx("textarea",{className:"comment-edit",value:m,onChange:x=>p(x.target.value),rows:Math.max(3,m.split(`
|
|
237
|
+
`).length)}):d.jsx(Ji,{className:"comment-body prose",text:QE(s.body,s.severity??null)})]})}function pT({files:s,chapterId:i,onAdd:r}){const[l,u]=ue.useState(!1),[h,g]=ue.useState(s[0]??""),[v,m]=ue.useState(""),[p,b]=ue.useState("");return l?d.jsxs("div",{className:"add-comment",children:[d.jsxs("div",{className:"add-comment-row",children:[d.jsx("select",{value:h,onChange:E=>g(E.target.value),children:s.map(E=>d.jsx("option",{value:E,children:E},E))}),d.jsx("input",{placeholder:"line (optional)",value:v,onChange:E=>m(E.target.value.replace(/\D/g,"")),size:12})]}),d.jsx("textarea",{placeholder:"Your comment…",value:p,onChange:E=>b(E.target.value),rows:3}),d.jsxs("div",{className:"add-comment-row",children:[d.jsx("button",{className:"btn",disabled:!p.trim()||!h,onClick:()=>{r({path:h,line:v?Number(v):null,body:p.trim(),chapterId:i}),b(""),m(""),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(tt,{name:"plus"}),"add a comment of your own"]})}const mT=2e3;function gT({chapter:s,n:i,diff:r,comments:l,open:u,heavy:h,onToggle:g,onUpdateComment:v,onDeleteComment:m,onAddComment:p,onDiscuss:b,onAskAboutLine:E,chatBusy:_,readOnly:x,anchorRef:N,flash:C}){const R=ue.useMemo(()=>YE(r,s.files),[r,s.files]),H=ue.useMemo(()=>qb(R,l),[R,l]),U=l.filter(V=>!H.includes(V)),M=V=>d.jsx(Yb,{comment:V,onUpdate:j=>v(V.id,j),onDelete:()=>m(V.id),onDiscuss:b&&(()=>b({target:"comment",id:V.id})),readOnly:x,flash:C===V.id},V.id);return d.jsxs("section",{className:"chapter",ref:N,children:[d.jsxs("header",{className:"chapter-head",onClick:g,children:[d.jsx("span",{className:"faint",children:u?"▾":"▸"}),d.jsxs("h3",{children:[i," · ",s.title]}),d.jsxs("span",{className:"faint chapter-meta",children:[s.files.length," file",s.files.length===1?"":"s",l.length>0?` · ${l.length} comment${l.length===1?"":"s"}`:" · no comments",h!=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:` · ${h.toLocaleString()} diff lines, folded to keep the page quick`})]}),d.jsx("span",{className:"grow"}),b&&d.jsxs("button",{className:"btn btn-sm",onClick:V=>{V.stopPropagation(),b({target:"chapter",id:s.id})},children:[d.jsx(tt,{name:"comment"}),"discuss"]})]}),u&&d.jsxs("div",{className:"chapter-body",children:[d.jsx(Ji,{className:"prose chapter-explanation",text:s.explanation}),U.map(M),d.jsx(hT,{patch:R,comments:H,renderComment:M,readOnly:x,chatBusy:_,onAddLineComment:(V,j)=>p({path:V.path,line:V.side==="new"?V.line:null,body:j,chapterId:s.id}),onAskAboutLine:E}),!x&&s.files.length>0&&d.jsx(pT,{files:s.files,chapterId:s.id,onAdd:p})]})]})}function bT(s,i){switch(s.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${s.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=i.chapters.find(l=>l.id===s.chapterId);return`rewrote the "${(r==null?void 0:r.title)??s.chapterId}" chapter`}case"comment-edit":{const r=i.comments.find(l=>l.id===s.commentId);return r?`rewrote the comment on ${r.path}:${r.line??"file"}`:"rewrote a comment"}case"comment-drop":{const r=i.comments.find(l=>l.id===s.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${s.path}:${s.line??"file"}`}}function Af(s,i){var l;if(s.target==="summary")return"the summary";if(s.target==="verdict")return"the verdict";if(s.target==="chapter")return((l=i.chapters.find(u=>u.id===s.id))==null?void 0:l.title)??"a chapter";if(s.target==="line")return s.path==null||s.line==null?"a line of the diff":`${s.path}:${s.line}${s.side==="old"?" (removed)":""}`;const r=i.comments.find(u=>u.id===s.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function yT({turn:s,artifact:i}){return d.jsxs("div",{className:`chat-turn chat-turn-${s.role}`,children:[d.jsx("div",{className:"chat-turn-who",children:s.role==="user"?"You":"Reviewer"}),s.refs.length>0&&d.jsx("div",{className:"chat-refs",children:s.refs.map((r,l)=>d.jsx("span",{className:"chat-ref",children:Af(r,i)},l))}),d.jsx(Ji,{className:"chat-turn-body prose",text:s.body}),s.revisions.map((r,l)=>d.jsxs("div",{className:"chat-revision",children:["↳ ",bT(r,i)]},l)),s.refused.map((r,l)=>d.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},l))]})}function vT({artifact:s,reviewKey:i,refs:r,onClearRefs:l,onDropRef:u,onArtifact:h,readOnly:g,inputRef:v,anchorRef:m}){const[p,b]=ue.useState(""),[E,_]=ue.useState(!1),[x,N]=ue.useState(null),C=s.chat??[],R=s.pendingChat??null,H=R!=null&&R.error==null,U=E||H,M=(j,ee,ne)=>{!j||U||(_(!0),N(null),Ef(i,{message:j,refs:ee}).then(O=>{h(O),ne==null||ne()}).catch(O=>N(String(O.message??O))).finally(()=>_(!1)))},V=()=>M(p.trim(),r,()=>{b(""),l()});return d.jsxs("section",{className:"card chat-panel",ref:m,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:[(C.length>0||R)&&d.jsxs("div",{className:"chat-log",children:[C.map(j=>d.jsx(yT,{turn:j,artifact:s},j.id)),R&&d.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[d.jsx("div",{className:"chat-turn-who",children:"You"}),R.refs.length>0&&d.jsx("div",{className:"chat-refs",children:R.refs.map((j,ee)=>d.jsx("span",{className:"chat-ref",children:Af(j,s)},ee))}),d.jsx(Ji,{className:"chat-turn-body prose",text:R.message}),R.error?d.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",R.error,!g&&d.jsxs(d.Fragment,{children:[" ",d.jsx("button",{className:"btn btn-sm",onClick:()=>M(R.message,R.refs),children:"ask again"})," ",d.jsx("button",{className:"btn btn-sm",onClick:()=>N_(i).then(h).catch(j=>N(String(j.message??j))),children:"dismiss"})]})]}):d.jsx("div",{className:"chat-waiting",children:R.progress.length>0?d.jsx("ol",{className:"chat-progress",children:R.progress.map((j,ee)=>d.jsx("li",{className:ee===R.progress.length-1?"now":void 0,children:j},ee))}):"Thinking… it re-reads the code before answering."})]})]}),g?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((j,ee)=>d.jsxs("button",{className:"chat-ref",onClick:()=>u(ee),title:"Remove",children:[Af(j,s)," ✕"]},ee))]}),d.jsx("textarea",{ref:v,className:"chat-input",rows:2,value:p,disabled:E,placeholder:C.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:j=>b(j.target.value),onKeyDown:j=>{j.key==="Enter"&&(j.metaKey||j.ctrlKey)&&V()}}),d.jsxs("div",{className:"chat-actions",children:[d.jsxs("button",{className:"btn btn-dark",onClick:V,disabled:U||p.trim()==="",children:[d.jsx(tt,{name:"send"}),H?"waiting for the answer…":E?"sending…":"send message",d.jsx(Ci,{children:"⌘↵"})]}),d.jsx("span",{className:"grow"}),s.preChat&&d.jsx("button",{className:"btn btn-sm",disabled:U,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),x_(i).then(h).catch(j=>N(String(j.message??j))).finally(()=>_(!1))},children:"reset the review"})]})]}),x&&d.jsx("div",{className:"error",children:x})]})]})}function ET({artifact:s,reviewKey:i,event:r,overridden:l,onPickEvent:u,sending:h,onSend:g,error:v,footer:m,next:p,onAdvance:b,anchorRef:E}){var V;const[_,x]=ue.useState(null),[N,C]=ue.useState(null),[R,H]=ue.useState(!1),[U,M]=ue.useState(!1);return ue.useEffect(()=>{R&&w_(i,r).then(j=>{x(j),C(null)}).catch(j=>C(String(j)))},[i,r,s,R]),s.sent?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sent-strip",ref:E,children:[d.jsxs("strong",{children:["✔ sent as ",Wr[s.sent.event]]}),d.jsxs("span",{className:"faint",children:[new Date(s.sent.at).toLocaleString()," · ",nb(s),s.sent.auto?" · auto-sent by the daemon":""]}),d.jsx("span",{className:"grow"}),s.sent.url&&d.jsxs("a",{href:s.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",d.jsx(tt,{name:"external"})]}),d.jsxs("button",{className:"btn",onClick:b,children:[p?`next review: ${p.pr.repo}#${p.pr.number}`:"back to the queue",d.jsx(tt,{name:"arrowRight"})]})]}),d.jsx("div",{className:"post-actions",children:m})]}):d.jsxs("div",{className:"send-panel",ref:E,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:nb(s)}),d.jsxs("button",{className:"link",onClick:()=>H(!R),children:[d.jsx(tt,{name:"eye"}),R?"hide what gets posted":"see what gets posted"]})]}),d.jsxs("div",{className:"send-action",children:[d.jsxs("button",{className:`send-btn tone-bg-${eb[r]}`,disabled:h,onClick:g,children:[d.jsx(tt,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),h?"sending…":`${Wr[r]} on ${s.id}`," ",d.jsx(Ci,{children:"s"})]}),d.jsxs("div",{className:"send-as",children:[d.jsxs("button",{className:"send-as-toggle",onClick:()=>M(!U),children:["as ",d.jsx("b",{children:Wr[r]})," ",U?"▴":"▾"]}),d.jsx("div",{className:"send-as-why",children:l?`you chose this — the verdict says ${((V=s.verdict)==null?void 0:V.recommendation.replace("_"," "))??"nothing"}`:"follows the verdict"}),U&&d.jsx("div",{className:"menu",children:["REQUEST_CHANGES","COMMENT","APPROVE"].map(j=>d.jsxs("button",{className:`menu-item${r===j?" menu-item-on":""}`,onClick:()=>{u(j),M(!1)},children:[d.jsx("span",{className:`tone-${eb[j]}`,children:d.jsx(tt,{name:j==="APPROVE"?"approve":j==="COMMENT"?"comment":"changes"})}),d.jsx("span",{className:"grow",children:Wr[j]}),d.jsx("span",{className:"menu-check",children:r===j?"✓":""})]},j))})]})]}),v&&d.jsx("p",{className:"error",children:v}),R&&(N?d.jsx("p",{className:"error",children:N}):_?d.jsx("pre",{className:"body-preview",children:_.body}):d.jsx("p",{className:"faint",children:"building the body…"})),d.jsx("div",{className:"send-footer",children:m})]})}function _T({filed:s}){var l,u,h;const i=((l=s.review)==null?void 0:l.url)??((u=s.reply)==null?void 0:u.url)??null,r=g=>new Date(g).toLocaleDateString();return s.reason==="own-reply"&&s.reply?d.jsxs("div",{children:[d.jsxs("strong",{children:["You answered on this PR on ",r(s.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",i?d.jsx("a",{href:i,target:"_blank",rel:"noreferrer",children:"comment"}):"comment"," ","as a review, but the PR is with its author either way. Nothing here was changed or sent — the draft is still yours to send."]}):s.reason==="request-withdrawn"?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(s.at),", and you had said nothing on the PR, so cerber filed the draft under settled rather than leaving it out for you. Nothing here was changed or sent — the draft is still yours to send."]}):d.jsxs("div",{children:[d.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((h=s.review)==null?void 0:h.at)??s.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",i?d.jsx("a",{href:i,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 ST({entries:s,open:i,onToggle:r,anchorRef:l}){const u=h=>{const g=new Date(h);return Number.isNaN(g.getTime())?h:`${g.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${g.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return d.jsxs("section",{className:"card",ref:l,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"history"}),d.jsx("span",{className:"faint",children:s.length>0?`${s.length} entr${s.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),d.jsx("span",{className:"grow"}),d.jsxs("button",{className:"btn btn-sm","aria-expanded":i,onClick:r,children:[d.jsx(tt,{name:i?"up":"down",size:12}),i?"hide":"show"]})]}),i&&d.jsx("div",{className:"card-body",children:s.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:s.map((h,g)=>({e:h,i:g})).reverse().map(({e:h,i:g})=>d.jsxs("li",{className:"history-row",title:h.at,children:[d.jsx("span",{className:"history-at",children:u(h.at)}),d.jsx("span",{className:"history-by",children:h.by}),d.jsx("span",{className:"history-what",children:h.what}),h.cause&&d.jsx("span",{className:"history-cause",children:h.cause})]},`${g}-${h.at}`))})})]})}function TT({artifact:s,freshness:i,rerunning:r,onRerun:l}){const u=s.status==="running",h=(i==null?void 0:i.prState)??s.pr.state,g=h==="CLOSED"||h==="MERGED",v=s.refresh,m=i!=null&&i.changed?v:null;if(u)return d.jsxs("div",{className:"freshness 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 p=s.filed;return!g&&!m&&!p?null:d.jsxs("div",{className:"freshness",children:[p&&d.jsx(_T,{filed:p}),g&&d.jsxs("div",{children:[d.jsxs("strong",{children:["This PR is ",h==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),m&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",d.jsx("code",{children:m.toSha.slice(0,7)}),", reviewed at"," ",d.jsx("code",{children:m.fromSha.slice(0,7)}),"."," ",m.moved>0&&d.jsxs(d.Fragment,{children:[m.moved," comment(s) followed the code. "]}),m.drifted>0&&d.jsxs(d.Fragment,{children:[m.drifted," could not — the code they point at is gone, so they will post in the review body instead of inline."," "]}),"The summary and verdict still describe the commit that was reviewed.",!s.sent&&d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>l(),children:r?"starting…":"re-review at the new head"})]})]})}function NT({reviewKey:s}){var Qt,Ct,w,J,fe;const[i,r]=ue.useState(null),[l,u]=ue.useState(null),[h,g]=ue.useState(null),[v,m]=ue.useState(null),[p,b]=ue.useState(!1),[E,_]=ue.useState([]),[x,N]=ue.useState([]),C=ue.useRef(null),[R,H]=ue.useState(new Set),[U,M]=ue.useState(0),V=ue.useRef(new Map),j=ue.useRef(null),ee=ue.useRef(null),ne=ue.useRef(null),O=ue.useRef(null),q=ue.useRef(null),Q=ue.useRef(null),[K,ce]=ue.useState(!1),ve=ue.useRef(null),[Ae,pe]=ue.useState(null),[B,ie]=ue.useState(!1),[de,xe]=ue.useState(null),[Ue,T]=ue.useState(null);ue.useEffect(()=>{if(!Ue)return;const I=setTimeout(()=>T(null),1800);return()=>clearTimeout(I)},[Ue]);const L=I=>{var se,he;N(me=>me.some(be=>be.target===I.target&&be.id===I.id)?me:[...me,I]),(se=C.current)==null||se.scrollIntoView({behavior:"smooth",block:"center"}),(he=C.current)==null||he.focus()};ue.useEffect(()=>{let I=!1;return window.scrollTo({top:0}),r(null),u(null),g(null),m(null),pe(null),xe(null),Fm(s).then(se=>{if(!I)return r(se),T_(s).then(he=>{I||(g(he),he.changed&&r(he.artifact))}).catch(he=>!I&&m(String(he.message??he)))}).catch(se=>!I&&u(String(se))),()=>{I=!0}},[s]),ue.useEffect(()=>{Bf().then(_).catch(()=>{})},[]),ue.useEffect(()=>{const I=ve.current;if(!I)return;const se=()=>document.documentElement.style.setProperty("--top-h",`${I.offsetHeight}px`);se();const he=new ResizeObserver(se);return he.observe(I),()=>{he.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[i==null?void 0:i.id]);const Y=(i==null?void 0:i.pendingChat)!=null&&i.pendingChat.error==null;ue.useEffect(()=>{if((i==null?void 0:i.status)!=="running"&&!Y)return;const I=setInterval(()=>{Fm(s).then(se=>{r(se),se.status!=="running"&&b(!1)}).catch(()=>{})},3e3);return()=>clearInterval(I)},[i==null?void 0:i.status,Y,s]);const re=(i==null?void 0:i.sent)!=null,Se=ue.useMemo(()=>co(E),[E]),we=Se.findIndex(I=>I.key===s),ye=(we>0?Se[we-1]:null)??null,Ee=(we>=0&&we<Se.length-1?Se[we+1]:null)??null,Me=I=>{window.location.hash=`#/r/${encodeURIComponent(I)}`},Fe=()=>{Ee?Me(Ee.key):window.location.hash="#/"},je=ue.useMemo(()=>{if(!i)return[];const I=ZE(i.diff,i.chapters);return I.length>0?[...i.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:I}]:i.chapters},[i]),De=ue.useMemo(()=>{const I=XE((i==null?void 0:i.diff)??"");return new Map(je.map(se=>[se.id,se.files.reduce((he,me)=>he+(I.get(me)??0),0)]))},[i==null?void 0:i.diff,je]),St=I=>{const se=De.get(I)??0;return se>mT?se:null},Ge=I=>R.has(I)?St(I)!=null:St(I)==null,kn=I=>H(se=>{const he=new Set(se);return he.has(I)?he.delete(I):he.add(I),he});ue.useEffect(()=>H(new Set),[s]);const nt=I=>{const se=je[I];return se?(M(I),Ge(se.id)||kn(se.id),se):null},Xt=(...I)=>{for(const se of I)if(se.current)return se.current.scrollIntoView({behavior:"smooth",block:"start"})},Nn=I=>{var he;const se=nt(I);se&&((he=V.current.get(se.id))==null||he.scrollIntoView({behavior:"smooth",block:"start"}))},Jt=(I,se)=>{nt(I),T(se),$b(se)},gn=Ae??sT(i==null?void 0:i.verdict),xn=(Qt=i==null?void 0:i.verdict)==null?void 0:Qt.recommendation;ue.useEffect(()=>pe(null),[xn]),ue.useEffect(()=>xe(null),[gn]);const ca=()=>{!i||i.sent||B||(ie(!0),xe(null),A_(s,gn).then(r).catch(I=>xe(String(I.message??I))).finally(()=>ie(!1)))};if(ue.useEffect(()=>{const I=se=>{fT(se.target)||se.metaKey||se.ctrlKey||se.altKey||(se.key==="["&&ye?Me(ye.key):se.key==="]"&&Ee?Me(Ee.key):se.key==="n"?Nn(Math.min(je.length-1,U+1)):se.key==="N"?Nn(Math.max(0,U-1)):se.key==="s"&&!re&&ca())};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[ye==null?void 0:ye.key,Ee==null?void 0:Ee.key,je,U,re,gn,i==null?void 0:i.sent,B]),l&&!i)return d.jsx("p",{className:"error pad",children:l});if(!i)return d.jsx("p",{className:"muted pad",children:"Loading…"});const Vn=I=>{b(!0),u(null),xb(s,I).then(r).catch(se=>{u(String(se)),b(!1)})},Pe=I=>I.then(r).catch(se=>u(String(se))),zt=I=>vf(s,{status:I}).then(Fe).catch(se=>u(String(se))),mt=(I,se)=>Pe(v_(s,I,se)),bn=I=>Pe(__(s,I)),yn=I=>Pe(E_(s,I)),Mn=i.comments.filter(I=>!I.chapterId||!je.some(se=>se.id===I.chapterId)),{inline:Cn,folded:Dn,dropped:Ln}=Gb(i),rn=i.comments.filter(I=>I.status!=="dropped"&&I.drifted).length,Tt=i.verdict?ab[i.verdict.recommendation]:"none",Wt=oT(i),xt=rT(i),Gn=i.pendingChat!=null&&i.pendingChat.error==null,zn=()=>Pe(Ef(s,{message:"Some findings were dropped, edited or re-graded after this review was drafted. Update the summary and verdict to match what still stands — do not re-review the whole PR.",refs:[{target:"verdict",id:null}]})),wn=(I,se)=>{Pe(Ef(s,{message:se,refs:[{target:"line",id:null,path:I.path,line:I.line,side:I.side}]}).then(he=>{var me;return(me=O.current)==null||me.scrollIntoView({behavior:"smooth",block:"start"}),he}))},Ie=(Ct=i.run)!=null&&Ct.trusted?"ran the code":(w=i.run)!=null&&w.withSource?"read the full source":i.run?"read the diff only":"no run yet",on=I=>{var se;return d.jsxs("button",{className:`verdict-pick${((se=i.verdict)==null?void 0:se.recommendation)===I?` verdict-pick-on tone-${ab[I]}`:""}`,title:I==="approve"?"Approve":I==="comment"?"Comment without blocking":"Request changes",onClick:()=>Pe(vf(s,{verdictRecommendation:I})),children:[d.jsx(tt,{name:cT[I]}),I.replace("_"," ")]},I)};return d.jsxs("div",{className:"review",children:[d.jsxs("div",{className:"review-top",ref:ve,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:i.id}),d.jsxs("span",{className:"walk",children:[d.jsx("button",{className:"walk-btn",disabled:!ye,title:ye?`[ — ${ye.id}: ${ye.pr.title}`:"no more reviews this way",onClick:()=>ye&&Me(ye.key),children:d.jsx(tt,{name:"chevronLeft"})}),d.jsx("button",{className:"walk-btn",disabled:!Ee,title:Ee?`] — ${Ee.id}: ${Ee.pr.title}`:"no more reviews this way",onClick:()=>Ee&&Me(Ee.key),children:d.jsx(tt,{name:"chevronRight"})})]}),we>=0&&d.jsxs("span",{className:"faint",children:[we+1," of ",Se.length," awaiting"]}),d.jsx("span",{className:"faint crumb-next",children:Ee?`next: ${Ee.pr.title}`:we>=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(tt,{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:i.pr.url,target:"_blank",rel:"noreferrer",children:i.pr.title}),d.jsx("span",{className:"grow"}),i.verdict&&(re?d.jsxs("span",{className:`chip tone-${Tt}`,children:[i.verdict.recommendation.replace("_"," "),xt&&` · ${xt}`," · ",i.verdict.confidence,"%"]}):d.jsxs("button",{className:`chip chip-btn tone-${Tt}`,title:"change it, or send — both are at the foot of the page",onClick:()=>Xt(j,q),children:[i.verdict.recommendation.replace("_"," "),xt&&` · ${xt}`," · ",i.verdict.confidence,"%",d.jsx(tt,{name:"down",size:12})]})),!re&&i.status!=="running"&&d.jsxs("button",{className:"btn btn-sm",disabled:p,title:i.run?"Review the current head again — this draft is replaced, your own comments are kept":"Draft a review of this PR",onClick:()=>Vn(!0),children:[d.jsx(tt,{name:"rerun"}),p?"starting…":i.run?"re-review at head":"review now"]})]}),d.jsxs("div",{className:"review-head-meta",children:[d.jsx("span",{children:i.pr.author}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[i.pr.headRefName," → ",i.pr.baseRefName,i.pr.headSha?` · ${i.pr.headSha.slice(0,7)}`:""]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[i.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",i.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",i.pr.deletions]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:Ie}),((J=i.run)==null?void 0:J.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:["≈$",i.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:i.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:()=>Xt(ee),children:"summary"}),i.verdict&&d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Xt(ne),children:"why"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var I;Xt(O),(I=C.current)==null||I.focus()},children:"chat"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{ce(!0),Xt(Q)},children:"history"})]}),je.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>Nn(0),children:"changes"}),je.map((I,se)=>d.jsxs("div",{className:"rail-group",children:[d.jsxs("button",{className:`rail-item${Ge(I.id)?" rail-item-on":""}`,onClick:()=>Nn(se),children:[d.jsxs("span",{className:"grow",children:[se+1," · ",I.title]}),d.jsxs("span",{className:"rail-count",children:[I.files.length,"f"]})]}),i.comments.filter(he=>he.chapterId===I.id).map(he=>d.jsxs("button",{className:`rail-comment${he.status==="dropped"?" rail-comment-dropped":""}`,title:`${he.path}${he.line!=null?`:${he.line}`:""} — ${he.body}`,onClick:()=>Jt(se,he.id),children:[d.jsx("span",{className:`rail-dot tone-${uT(he,Tt)}`,children:"●"}),d.jsxs("span",{className:"rail-comment-loc",children:[he.path.split("/").pop(),he.line!=null?`:${he.drifted?"~":""}${he.line}`:""]})]},he.id))]},I.id))]}),d.jsx("button",{className:`lab rail-lab-btn${je.length>0?" rail-lab":""}`,onClick:()=>Xt(j,q),children:"verdict"}),d.jsxs("div",{className:"rail-facts",children:[d.jsxs("div",{children:[i.comments.length-Ln.length," keeping · ",Ln.length," dropped"]}),d.jsxs("div",{children:[Cn.length," inline · ",Dn.length," folded into body"]}),rn>0&&d.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[rn," drifted"]})]})]}),d.jsxs("div",{className:"main",children:[d.jsx(TT,{artifact:i,freshness:h,rerunning:p,onRerun:Vn}),v&&d.jsxs("div",{className:"freshness",title:v,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."]}),l&&d.jsx("div",{className:"error",children:l}),((fe=i.run)==null?void 0:fe.error)&&d.jsxs("div",{className:"error",children:["Run failed: ",i.run.error]}),d.jsx("div",{className:"card card-summary",ref:ee,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"summary"}),d.jsx(Ji,{className:"prose lead",text:i.summary||"(no summary)"}),!re&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>L({target:"summary",id:null}),children:[d.jsx(tt,{name:"comment"}),"discuss the summary"]})]})}),i.verdict&&d.jsx("div",{className:`card card-why tone-border-${Tt}`,ref:ne,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"why"}),d.jsxs("div",{className:"sev-counts",children:[bf(i)&&d.jsx("span",{title:"Live findings by grade. Only blockers block.",children:bf(i)}),bf(i)&&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:[i.verdict.confidence,"% sure of the findings"]})]}),d.jsx(Ji,{className:"prose lead",text:i.verdict.reasoning}),!re&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>L({target:"verdict",id:null}),children:[d.jsx(tt,{name:"comment"}),"discuss the verdict"]})]})}),je.map((I,se)=>d.jsx(gT,{chapter:I,n:se+1,diff:i.diff,comments:i.comments.filter(he=>he.chapterId===I.id),open:Ge(I.id),heavy:St(I.id),onToggle:()=>kn(I.id),onUpdateComment:mt,onDeleteComment:bn,onAddComment:yn,onDiscuss:re?void 0:L,onAskAboutLine:wn,chatBusy:Gn,readOnly:re,flash:Ue,anchorRef:he=>{he?V.current.set(I.id,he):V.current.delete(I.id)}},I.id)),Mn.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:Mn.map(I=>d.jsx(Yb,{comment:I,onUpdate:se=>mt(I.id,se),onDelete:()=>bn(I.id),onDiscuss:re?void 0:()=>L({target:"comment",id:I.id}),readOnly:re},I.id))})]}),d.jsx(ST,{entries:i.history??[],open:K,onToggle:()=>ce(I=>!I),anchorRef:Q})]}),d.jsxs("aside",{className:"cockpit",children:[d.jsx(vT,{artifact:i,reviewKey:s,refs:x,onClearRefs:()=>N([]),onDropRef:I=>N(se=>se.filter((he,me)=>me!==I)),onArtifact:r,readOnly:re,inputRef:C,anchorRef:O}),d.jsxs("div",{className:"cockpit-decide",children:[!re&&Wt&&d.jsxs("div",{className:"verdict-hint",children:[d.jsxs("span",{children:[d.jsx("strong",{children:Wt})," — the verdict was written before those edits."]}),d.jsxs("button",{className:"btn btn-sm",onClick:zn,disabled:Gn,children:[d.jsx(tt,{name:"comment"}),Gn?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),i.verdict&&!re&&d.jsxs("div",{className:"verdict-bar",ref:j,children:[d.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(on),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:"what you send follows this unless you say otherwise"})]}),d.jsx(ET,{artifact:i,reviewKey:s,event:gn,overridden:Ae!=null,onPickEvent:pe,sending:B,onSend:ca,error:de,next:Ee,onAdvance:Fe,anchorRef:q,footer:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"faint",children:"not sending?"}),!re&&d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-sm",title:Ee?`Settle it locally and go to ${Ee.id}`:"Settle it locally and go back to the queue",onClick:()=>zt("reviewed"),children:[d.jsx(tt,{name:"check"}),"mark reviewed"]}),d.jsxs("button",{className:"btn btn-sm",title:Ee?`Leave it and go to ${Ee.id}`:"Leave it and go back to the queue",onClick:()=>zt("skipped"),children:[d.jsx(tt,{name:"skip"}),"skip"]})]}),d.jsxs("a",{className:"btn btn-sm",href:R_(s),children:[d.jsx(tt,{name:"download"}),"export .md"]})]})})]})]})]})]})}const lb="cerber.notify.seen",Rf="cerber.notify",xT=1e4,Fb=s=>{try{return localStorage.getItem(s)}catch{return null}},Of=(s,i)=>{try{localStorage.setItem(s,i)}catch{}};function wT(s,i){const r=new Set(i);return co(s).filter(l=>!r.has(l.key))}function AT(s){return s.map(i=>i.key)}const sb=s=>`${s.pr.repo}#${s.pr.number}`;function RT(s){if(s.length===0)return null;const i=`cerber:${s.map(u=>u.key).sort().join("|")}`;if(s.length===1){const u=s[0];return{title:`${sb(u)} awaits your review`,body:`${u.pr.title} — ${u.pr.author}`,tag:i,key:u.key}}const r=s.slice(0,3).map(sb),l=s.length-r.length;return{title:`${s.length} PRs await your review`,body:l>0?`${r.join(", ")} and ${l} more`:r.join(", "),tag:i,key:null}}const OT=new Set(["127.0.0.1","localhost","::1","[::1]"]);function kT(s,i=window.location.hostname){return!(s!=null&&s.enabled)||!s.notify?!1:OT.has(i)}function jl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Fb(Rf)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function MT(){const s=jl();if(s==="unsupported"||s==="blocked")return s;if(s==="on")return Of(Rf,"off"),jl();if(Of(Rf,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return jl()}function CT(s){const i=new Notification(s.title,{body:s.body,tag:s.tag,icon:"/favicon.svg"});i.onclick=()=>{window.focus(),window.location.hash=s.key?`#/r/${encodeURIComponent(s.key)}`:"#/",i.close()}}function DT(){const s=ue.useRef(null),[i,r]=ue.useState(!1);return ue.useEffect(()=>{let l=!0;const u=Fb(lb);if(u)try{const v=JSON.parse(u);Array.isArray(v)&&(s.current=v.filter(m=>typeof m=="string"))}catch{}const h=()=>Promise.all([Bf(),Nb().catch(()=>null)]).then(([v,m])=>{if(!l)return;const p=kT(m);r(p);const b=s.current;if(s.current=AT(v),Of(lb,JSON.stringify(s.current)),!b||jl()!=="on"||p||document.visibilityState==="visible"&&document.hasFocus())return;const E=RT(wT(v,b));E&&CT(E)}).catch(()=>{});h();const g=setInterval(h,xT);return()=>{l=!1,clearInterval(g)}},[]),i}function Kb(){const[s,i]=ue.useState(jl);return ue.useEffect(()=>{const r=()=>i(jl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[s,()=>void MT().then(i)]}const to=s=>{window.location.hash=`#/r/${encodeURIComponent(s)}`};function LT(s){const i=s,r=i==null?void 0:i.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(i==null?void 0:i.isContentEditable)===!0}function zT({daemon:s}){return s!=null&&s.enabled?d.jsx("div",{className:"daemon-bar",children:d.jsxs("div",{className:"bar-inner",children:[s.pollEnabled?d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot"}),s.repos.length>0?s.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(s.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:s.autoReview?"on":"off"})]}),d.jsxs("span",{children:["auto-send ",d.jsx("b",{children:s.autoSend==="on"?"on":"shadow"})," ≥",s.autoSendThreshold,"%",s.autoSend==="on"?` · ${s.autoSent} sent`:` · ${s.autoSendCandidates} candidate${s.autoSendCandidates===1?"":"s"}`]}),s.trustedRuns&&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(tt,{name:"zap",size:12})," trusted PRs run with Bash"]}),d.jsx("span",{className:"grow"}),s.lastPollError?d.jsx("span",{className:"danger",title:s.lastPollError,children:"discovery offline — showing local reviews only"}):d.jsx("span",{className:"faint",children:s.polling?"polling now…":[s.lastSummary?`last: ${s.lastSummary}`:null,s.nextPollAt?`next ${new Date(s.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function UT({r:s,selected:i,onSelect:r,onOpen:l,awaiting:u}){const h=f_(s),g=n_(s),v=u?o_(s,u):null;return d.jsxs("div",{className:`row${i?" row-on":""}`,onClick:l,onMouseEnter:r,role:"button",tabIndex:-1,children:[d.jsx("span",{className:"col-caret",children:"›"}),d.jsxs("span",{className:"col-slug",title:`${s.pr.owner}/${s.pr.repo}#${s.pr.number}`,children:[s.pr.repo,"#",s.pr.number]}),d.jsx("span",{className:"col-author",title:s.pr.author,children:s.pr.author}),d.jsx("span",{className:"col-title",title:s.pr.title,children:s.pr.title}),s.pr.isDraft&&d.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),v&&d.jsx("span",{className:"tag tag-awaiting",title:v.title,children:v.label}),g&&d.jsx("span",{className:"tag tag-done",children:g}),d.jsx("span",{className:"col-comments",children:s.commentCount||""}),d.jsx("span",{className:"col-size",children:s.pr.changedFiles>0?d.jsxs(d.Fragment,{children:[s.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",s.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",s.pr.deletions]})]}):"—"}),d.jsx("span",{className:`col-verdict tone-${h.tone}`,children:h.label}),d.jsx("span",{className:"col-age",children:Tb(s.updatedAt)})]})}function rb({autoFocus:s}){const[i,r]=ue.useState(""),[l,u]=ue.useState(!1),[h,g]=ue.useState(null),v=m=>{m.preventDefault();const p=i.trim();!p||l||(u(!0),g(null),S_(p).then(b=>to(b.key)).catch(b=>{g(String(b instanceof Error?b.message:b)),u(!1)}))};return d.jsxs("form",{className:"pull",onSubmit:v,children:[d.jsx(tt,{name:"plus"}),d.jsx("input",{className:"pull-input",value:i,autoFocus:s,disabled:l,onChange:m=>{r(m.target.value),h&&g(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),i.trim()&&d.jsx("button",{className:"btn btn-small",type:"submit",disabled:l,children:l?"starting…":"review"}),h&&d.jsx("span",{className:"pull-error",children:h})]})}function BT({text:s}){const i=ue.useRef(null),[r,l]=ue.useState(!1);return ue.useLayoutEffect(()=>{const u=i.current;if(!u)return;const h=()=>l(u.scrollHeight-u.clientHeight>4);h();const g=new ResizeObserver(h);return g.observe(u),()=>g.disconnect()},[s]),d.jsx("div",{ref:i,className:`strip-prose${r?" strip-prose-clipped":""}`,children:d.jsx(Ji,{className:"prose",text:s})})}function IT(){var Q;const[s,i]=ue.useState(null),[r,l]=ue.useState(null),[u,h]=ue.useState(null),[g,v]=ue.useState(new Set),[m,p]=ue.useState("inbox"),[b,E]=ue.useState(null),_=ue.useRef(!0);ue.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const x=()=>{Bf().then(K=>_.current&&i(K)).catch(K=>_.current&&h(String(K))),Nb().then(K=>_.current&&l(K)).catch(()=>{})};ue.useEffect(()=>{x();const K=setInterval(x,1e4);return()=>clearInterval(K)},[]);const N=s??[],C=ue.useMemo(()=>e_(N,r),[N,r]),R=C.requests,H=t_(m,C),U=C[H];ue.useEffect(()=>{H!==m&&p(H)},[H,m]);const M=U.find(K=>K.key===b)??U[0]??null,V=K=>{v(ce=>new Set(ce).add(K)),xb(K).then(()=>x()).catch(ce=>_.current&&h(String(ce))).finally(()=>{_.current&&v(ce=>{const ve=new Set(ce);return ve.delete(K),ve})})};if(ue.useEffect(()=>{const K=ce=>{if(LT(ce.target)||ce.metaKey||ce.ctrlKey||ce.altKey)return;const ve=U.findIndex(pe=>pe.key===(M==null?void 0:M.key)),Ae=pe=>{const B=U[Math.min(U.length-1,Math.max(0,ve+pe))];B&&E(B.key)};ce.key==="j"||ce.key==="ArrowDown"?(ce.preventDefault(),Ae(1)):ce.key==="k"||ce.key==="ArrowUp"?(ce.preventDefault(),Ae(-1)):ce.key==="Enter"&&M?to(M.key):ce.key==="r"&&M&&M.status!=="sent"&&M.status!=="running"&&V(M.key)};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[U,M==null?void 0:M.key]),u&&!s)return d.jsx("p",{className:"error",children:u});if(!s)return d.jsx("p",{className:"muted pad",children:"Loading…"});const j=U.reduce((K,ce)=>K+(ce.costUsd??0),0),ee=M?h_(M,r):null,ne=M?g.has(M.key):!1,O=yf.filter(K=>C[K].length>0),q=K=>d.jsxs("button",{className:`tab${H===K?" tab-on":""}${yf.includes(K)?" tab-filed":""}${K==="requests"?" tab-requests":""}`,title:Su[K].title,onClick:()=>p(K),children:[Su[K].label," ",d.jsx("span",{className:"tab-count",children:C[K].length})]},K);return d.jsxs(d.Fragment,{children:[d.jsx(zT,{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:[VE.map(q),O.length>0&&d.jsx("span",{className:"tab-split","aria-hidden":"true"}),O.map(q),d.jsx("span",{className:"grow"}),d.jsx(rb,{}),j>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:["≈$",j.toFixed(2)," at API rates"]})]}),d.jsxs("div",{className:"table-head",children:[d.jsx("span",{className:"col-caret"}),d.jsx("span",{className:"col-slug",children:"repo#pr"}),d.jsx("span",{className:"col-author",children:"author"}),d.jsx("span",{className:"col-title",children:"title"}),d.jsx("span",{className:"col-comments",children:"c"}),d.jsx("span",{className:"col-size",children:"size"}),d.jsx("span",{className:"col-verdict",children:"verdict"}),d.jsx("span",{className:"col-age",children:"upd"})]}),U.length===0?d.jsx("div",{className:"empty-tab",children:H==="inbox"&&R.length>0?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:c_(R)}),d.jsxs("button",{className:"btn",onClick:()=>p("requests"),children:[d.jsx(tt,{name:"arrowRight"}),"show ",R.length===1?"it":`all ${R.length}`]})]}):d.jsx("p",{className:"muted",children:H==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Su[H].label} right now.`})}):U.map(K=>d.jsx(UT,{r:K,selected:K.key===(M==null?void 0:M.key),onSelect:()=>E(K.key),onOpen:()=>to(K.key),awaiting:WE(K,R)?a_(K,r):null},K.key)),M&&ee&&d.jsxs("div",{className:"cursor-strip",children:[d.jsxs("div",{className:"cursor-strip-body",children:[d.jsxs("div",{className:"lab",children:[M.pr.owner,"/",M.pr.repo,"#",M.pr.number,M.pr.headRefName&&M.pr.baseRefName?` · ${M.pr.headRefName} → ${M.pr.baseRefName}`:""]}),d.jsx(BT,{text:ee.reasoning}),d.jsxs("div",{className:"cursor-strip-meta",children:[ee.meta.join(" · "),((Q=M.sent)==null?void 0:Q.url)&&d.jsxs(d.Fragment,{children:[" · ",d.jsx("a",{href:M.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:()=>to(M.key),children:[d.jsx(tt,{name:"arrowRight"}),"open review ",d.jsx(Ci,{children:"↵"})]}),d.jsxs("div",{className:"cursor-strip-row",children:[d.jsxs("button",{className:"btn",disabled:M.status==="sent"||M.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>vf(M.key,{status:"skipped"}).then(x).catch(K=>h(String(K))),children:[d.jsx(tt,{name:"skip"}),"skip"]}),d.jsxs("button",{className:"btn",disabled:ne||M.status==="running"||M.status==="sent",title:M.status==="sent"?"This review was sent — it is a record now.":"Draft a review of the PR's current head.",onClick:()=>V(M.key),children:[d.jsx(tt,{name:"rerun"}),ne?"starting…":M.status==="awaiting"||M.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const jT=[{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=s=>s instanceof Error?s.message:String(s),HT={unsupported:"this browser has no notifications to give",blocked:"this browser has blocked notifications for cerber",off:"tell me when a PR lands in the queue",ask:"tell me when a PR lands in the queue (the browser will ask first)",on:"tell me when a PR lands in the queue"};function qT({daemonAnnounces:s}){const[i,r]=Kb(),[l,u]=ue.useState(null),[h,g]=ue.useState(""),[v,m]=ue.useState(null),[p,b]=ue.useState(!1);ue.useEffect(()=>{O_().then(u).catch(_=>m(ob(_)))},[]);const E=_=>{b(!0),m(null),_.then(u).catch(x=>m(ob(x))).finally(()=>b(!1))};return v&&!l?d.jsx("p",{className:"error",children:v}):l?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:l.daemon.poll,disabled:p,onChange:_=>E(xu({poll:_.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",l.daemon.intervalMinutes,"m)"]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:l.daemon.autoReview,disabled:p||!l.daemon.poll,onChange:_=>E(xu({autoReview:_.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:l.path})," under"," ",d.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),d.jsx("h1",{children:"Notifications"}),d.jsx("p",{children:"When a PR lands in the queue, cerber says so: one desktop notification per poll. A single arrival names the PR; several landing at once fold into one notification. A PR that has already been announced never arrives twice."}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:l.daemon.notify,disabled:p||!l.daemon.poll,onChange:_=>E(xu({notify:_.target.checked}))})," ","tell this machine when a PR lands (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 that finds the PR, 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. It cannot open a review on click; the browser's can."]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:i==="on",disabled:i==="unsupported"||i==="blocked"||s,onChange:r})," ",s?"let this browser announce them instead":HT[i]]}),d.jsx("p",{className:"muted",children:s?d.jsxs(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 ",d.jsx("strong",{children:"opens that review when you click it"}),", 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:l.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",{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:l.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:h,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:p,onChange:_=>g(_.target.value),onKeyDown:_=>{_.key==="Enter"&&!p&&h.trim()&&(E(Nu(h.trim())),g(""))}}),d.jsx("button",{className:"btn",disabled:p||!h.trim(),onClick:()=>{E(Nu(h.trim())),g("")},children:"trust"})]}),v&&d.jsx("p",{className:"error",children:v}),l.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:l.trust.map(_=>d.jsxs("tr",{className:_.denies?"trust-deny":void 0,children:[d.jsx("td",{children:d.jsx("code",{children:_.rule})}),d.jsx("td",{className:"muted",children:_.explanation}),d.jsx("td",{className:"trust-actions",children:d.jsx("button",{className:"btn",disabled:p,onClick:()=>E(Nu(_.rule,!0)),children:"remove"})})]},_.rule))})}),d.jsx("h2",{children:"Rule syntax"}),d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:jT.map(_=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:_.rule})}),d.jsx("td",{className:"muted",children:_.meaning})]},_.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.jsx("p",{className:"muted",children:"Loading…"})}function cb(){const s=window.location.hash,i=s.match(/^#\/r\/(.+)$/);return i?{view:"detail",key:decodeURIComponent(i[1])}:s==="#/settings"?{view:"settings"}:{view:"queue"}}const ub={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 PR lands in the queue.",ask:"Click to be told when a PR lands in the queue — the browser will ask you first.",on:"Telling you when a PR lands in the queue. Click to stop."},fb="cerber taps this machine itself when a PR lands — 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 arrivals instead.";function GT({daemonAnnounces:s}){const[i,r]=Kb();return s?d.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:fb,"aria-label":fb,children:d.jsx(tt,{name:"bell",size:15})}):i==="unsupported"?null:d.jsx("button",{className:`topbar-link bell bell-${i}`,title:ub[i],"aria-label":ub[i],"aria-pressed":i==="on",onClick:r,children:d.jsx(tt,{name:i==="on"?"bell":"bellOff",size:15})})}function $T(){const[s,i]=ue.useState(cb()),r=DT();return ue.useEffect(()=>{const l=()=>i(cb());return window.addEventListener("hashchange",l),()=>window.removeEventListener("hashchange",l)},[]),s.view==="detail"?d.jsx("div",{className:"app",children:d.jsx(NT,{reviewKey:s.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(O0,{}),"cerber"]}),d.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),d.jsx("span",{className:"grow"}),s.view==="queue"&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"hint",children:[d.jsx(Ci,{children:"j"}),d.jsx(Ci,{children:"k"}),"move"]}),d.jsxs("span",{className:"hint",children:[d.jsx(Ci,{children:"↵"}),"open"]}),d.jsxs("span",{className:"hint",children:[d.jsx(Ci,{children:"r"}),"review now"]})]}),d.jsx(GT,{daemonAnnounces:r}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(tt,{name:"settings",size:15})})]})}),s.view==="queue"?d.jsx(IT,{}):d.jsx(qT,{daemonAnnounces:r})]})}sE.createRoot(document.getElementById("root")).render(d.jsx(eE.StrictMode,{children:d.jsx($T,{})}));
|