@fullstackhouse/cerber 0.27.3 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,241 @@
1
+ var nE=Object.defineProperty;var aE=(s,i,r)=>i in s?nE(s,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[i]=r;var _t=(s,i,r)=>aE(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 d of u)if(d.type==="childList")for(const g of d.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&l(g)}).observe(document,{childList:!0,subtree:!0});function r(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(u){if(u.ep)return;u.ep=!0;const d=r(u);fetch(u.href,d)}})();function yb(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var pu={exports:{}},ks={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Rm;function iE(){if(Rm)return ks;Rm=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(l,u,d){var g=null;if(d!==void 0&&(g=""+d),u.key!==void 0&&(g=""+u.key),"key"in u){d={};for(var y in u)y!=="key"&&(d[y]=u[y])}else d=u;return u=d.ref,{$$typeof:s,type:l,key:g,ref:u!==void 0?u:null,props:d}}return ks.Fragment=i,ks.jsx=r,ks.jsxs=r,ks}var Om;function lE(){return Om||(Om=1,pu.exports=iE()),pu.exports}var f=lE(),mu={exports:{}},qe={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var km;function sE(){if(km)return qe;km=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"),d=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=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(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,w={};function B(S,C,H){this.props=S,this.context=C,this.refs=w,this.updater=H||N}B.prototype.isReactComponent={},B.prototype.setState=function(S,C){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,C,"setState")},B.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function q(){}q.prototype=B.prototype;function D(S,C,H){this.props=S,this.context=C,this.refs=w,this.updater=H||N}var re=D.prototype=new q;re.constructor=D,A(re,B.prototype),re.isPureReactComponent=!0;var $=Array.isArray;function Q(){}var ie={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function L(S,C,H){var ue=H.ref;return{$$typeof:s,type:S,key:C,ref:ue!==void 0?ue:null,props:H}}function V(S,C){return L(S.type,C,S.props)}function K(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function de(S){var C={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(H){return C[H]})}var Te=/\/+/g;function Ne(S,C){return typeof S=="object"&&S!==null&&S.key!=null?de(""+S.key):C.toString(36)}function me(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(Q,Q):(S.status="pending",S.then(function(C){S.status==="pending"&&(S.status="fulfilled",S.value=C)},function(C){S.status==="pending"&&(S.status="rejected",S.reason=C)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function I(S,C,H,ue,ye){var we=typeof S;(we==="undefined"||we==="boolean")&&(S=null);var pe=!1;if(S===null)pe=!0;else switch(we){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(S.$$typeof){case s:case i:pe=!0;break;case b:return pe=S._init,I(pe(S._payload),C,H,ue,ye)}}if(pe)return ye=ye(S),pe=ue===""?"."+Ne(S,0):ue,$(ye)?(H="",pe!=null&&(H=pe.replace(Te,"$&/")+"/"),I(ye,C,H,"",function(Ue){return Ue})):ye!=null&&(K(ye)&&(ye=V(ye,H+(ye.key==null||S&&S.key===ye.key?"":(""+ye.key).replace(Te,"$&/")+"/")+pe)),C.push(ye)),1;pe=0;var De=ue===""?".":ue+":";if($(S))for(var Ae=0;Ae<S.length;Ae++)ue=S[Ae],we=De+Ne(ue,Ae),pe+=I(ue,C,H,we,ye);else if(Ae=x(S),typeof Ae=="function")for(S=Ae.call(S),Ae=0;!(ue=S.next()).done;)ue=ue.value,we=De+Ne(ue,Ae++),pe+=I(ue,C,H,we,ye);else if(we==="object"){if(typeof S.then=="function")return I(me(S),C,H,ue,ye);throw C=String(S),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return pe}function ne(S,C,H){if(S==null)return S;var ue=[],ye=0;return I(S,ue,"","",function(we){return C.call(H,we,ye++)}),ue}function oe(S){if(S._status===-1){var C=S._result;C=C(),C.then(function(H){(S._status===0||S._status===-1)&&(S._status=1,S._result=H)},function(H){(S._status===0||S._status===-1)&&(S._status=2,S._result=H)}),S._status===-1&&(S._status=0,S._result=C)}if(S._status===1)return S._result.default;throw S._result}var be=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Ee={map:ne,forEach:function(S,C,H){ne(S,function(){C.apply(this,arguments)},H)},count:function(S){var C=0;return ne(S,function(){C++}),C},toArray:function(S){return ne(S,function(C){return C})||[]},only:function(S){if(!K(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return qe.Activity=E,qe.Children=Ee,qe.Component=B,qe.Fragment=r,qe.Profiler=u,qe.PureComponent=D,qe.StrictMode=l,qe.Suspense=m,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ie,qe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return ie.H.useMemoCache(S)}},qe.cache=function(S){return function(){return S.apply(null,arguments)}},qe.cacheSignal=function(){return null},qe.cloneElement=function(S,C,H){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ue=A({},S.props),ye=S.key;if(C!=null)for(we in C.key!==void 0&&(ye=""+C.key),C)!k.call(C,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&C.ref===void 0||(ue[we]=C[we]);var we=arguments.length-2;if(we===1)ue.children=H;else if(1<we){for(var pe=Array(we),De=0;De<we;De++)pe[De]=arguments[De+2];ue.children=pe}return L(S.type,ye,ue)},qe.createContext=function(S){return S={$$typeof:g,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:d,_context:S},S},qe.createElement=function(S,C,H){var ue,ye={},we=null;if(C!=null)for(ue in C.key!==void 0&&(we=""+C.key),C)k.call(C,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ye[ue]=C[ue]);var pe=arguments.length-2;if(pe===1)ye.children=H;else if(1<pe){for(var De=Array(pe),Ae=0;Ae<pe;Ae++)De[Ae]=arguments[Ae+2];ye.children=De}if(S&&S.defaultProps)for(ue in pe=S.defaultProps,pe)ye[ue]===void 0&&(ye[ue]=pe[ue]);return L(S,we,ye)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(S){return{$$typeof:y,render:S}},qe.isValidElement=K,qe.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:oe}},qe.memo=function(S,C){return{$$typeof:p,type:S,compare:C===void 0?null:C}},qe.startTransition=function(S){var C=ie.T,H={};ie.T=H;try{var ue=S(),ye=ie.S;ye!==null&&ye(H,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(Q,be)}catch(we){be(we)}finally{C!==null&&H.types!==null&&(C.types=H.types),ie.T=C}},qe.unstable_useCacheRefresh=function(){return ie.H.useCacheRefresh()},qe.use=function(S){return ie.H.use(S)},qe.useActionState=function(S,C,H){return ie.H.useActionState(S,C,H)},qe.useCallback=function(S,C){return ie.H.useCallback(S,C)},qe.useContext=function(S){return ie.H.useContext(S)},qe.useDebugValue=function(){},qe.useDeferredValue=function(S,C){return ie.H.useDeferredValue(S,C)},qe.useEffect=function(S,C){return ie.H.useEffect(S,C)},qe.useEffectEvent=function(S){return ie.H.useEffectEvent(S)},qe.useId=function(){return ie.H.useId()},qe.useImperativeHandle=function(S,C,H){return ie.H.useImperativeHandle(S,C,H)},qe.useInsertionEffect=function(S,C){return ie.H.useInsertionEffect(S,C)},qe.useLayoutEffect=function(S,C){return ie.H.useLayoutEffect(S,C)},qe.useMemo=function(S,C){return ie.H.useMemo(S,C)},qe.useOptimistic=function(S,C){return ie.H.useOptimistic(S,C)},qe.useReducer=function(S,C,H){return ie.H.useReducer(S,C,H)},qe.useRef=function(S){return ie.H.useRef(S)},qe.useState=function(S){return ie.H.useState(S)},qe.useSyncExternalStore=function(S,C,H){return ie.H.useSyncExternalStore(S,C,H)},qe.useTransition=function(){return ie.H.useTransition()},qe.version="19.2.8",qe}var Mm;function Df(){return Mm||(Mm=1,mu.exports=sE()),mu.exports}var le=Df();const rE=yb(le);var gu={exports:{}},Ms={},bu={exports:{}},yu={};/**
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 Cm;function oE(){return Cm||(Cm=1,(function(s){function i(I,ne){var oe=I.length;I.push(ne);e:for(;0<oe;){var be=oe-1>>>1,Ee=I[be];if(0<u(Ee,ne))I[be]=ne,I[oe]=Ee,oe=be;else break e}}function r(I){return I.length===0?null:I[0]}function l(I){if(I.length===0)return null;var ne=I[0],oe=I.pop();if(oe!==ne){I[0]=oe;e:for(var be=0,Ee=I.length,S=Ee>>>1;be<S;){var C=2*(be+1)-1,H=I[C],ue=C+1,ye=I[ue];if(0>u(H,oe))ue<Ee&&0>u(ye,H)?(I[be]=ye,I[ue]=oe,be=ue):(I[be]=H,I[C]=oe,be=C);else if(ue<Ee&&0>u(ye,oe))I[be]=ye,I[ue]=oe,be=ue;else break e}}return ne}function u(I,ne){var oe=I.sortIndex-ne.sortIndex;return oe!==0?oe:I.id-ne.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var g=Date,y=g.now();s.unstable_now=function(){return g.now()-y}}var m=[],p=[],b=1,E=null,_=3,x=!1,N=!1,A=!1,w=!1,B=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function re(I){for(var ne=r(p);ne!==null;){if(ne.callback===null)l(p);else if(ne.startTime<=I)l(p),ne.sortIndex=ne.expirationTime,i(m,ne);else break;ne=r(p)}}function $(I){if(A=!1,re(I),!N)if(r(m)!==null)N=!0,Q||(Q=!0,de());else{var ne=r(p);ne!==null&&me($,ne.startTime-I)}}var Q=!1,ie=-1,k=5,L=-1;function V(){return w?!0:!(s.unstable_now()-L<k)}function K(){if(w=!1,Q){var I=s.unstable_now();L=I;var ne=!0;try{e:{N=!1,A&&(A=!1,q(ie),ie=-1),x=!0;var oe=_;try{t:{for(re(I),E=r(m);E!==null&&!(E.expirationTime>I&&V());){var be=E.callback;if(typeof be=="function"){E.callback=null,_=E.priorityLevel;var Ee=be(E.expirationTime<=I);if(I=s.unstable_now(),typeof Ee=="function"){E.callback=Ee,re(I),ne=!0;break t}E===r(m)&&l(m),re(I)}else l(m);E=r(m)}if(E!==null)ne=!0;else{var S=r(p);S!==null&&me($,S.startTime-I),ne=!1}}break e}finally{E=null,_=oe,x=!1}ne=void 0}}finally{ne?de():Q=!1}}}var de;if(typeof D=="function")de=function(){D(K)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Ne=Te.port2;Te.port1.onmessage=K,de=function(){Ne.postMessage(null)}}else de=function(){B(K,0)};function me(I,ne){ie=B(function(){I(s.unstable_now())},ne)}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(I){I.callback=null},s.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<I?Math.floor(1e3/I):5},s.unstable_getCurrentPriorityLevel=function(){return _},s.unstable_next=function(I){switch(_){case 1:case 2:case 3:var ne=3;break;default:ne=_}var oe=_;_=ne;try{return I()}finally{_=oe}},s.unstable_requestPaint=function(){w=!0},s.unstable_runWithPriority=function(I,ne){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var oe=_;_=I;try{return ne()}finally{_=oe}},s.unstable_scheduleCallback=function(I,ne,oe){var be=s.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?be+oe:be):oe=be,I){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=oe+Ee,I={id:b++,callback:ne,priorityLevel:I,startTime:oe,expirationTime:Ee,sortIndex:-1},oe>be?(I.sortIndex=oe,i(p,I),r(m)===null&&I===r(p)&&(A?(q(ie),ie=-1):A=!0,me($,oe-be))):(I.sortIndex=Ee,i(m,I),N||x||(N=!0,Q||(Q=!0,de()))),I},s.unstable_shouldYield=V,s.unstable_wrapCallback=function(I){var ne=_;return function(){var oe=_;_=ne;try{return I.apply(this,arguments)}finally{_=oe}}}})(yu)),yu}var Dm;function cE(){return Dm||(Dm=1,bu.exports=oE()),bu.exports}var vu={exports:{}},Tn={};/**
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 Lm;function uE(){if(Lm)return Tn;Lm=1;var s=Df();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 d(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 y(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Tn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Tn.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 d(m,p,null,b)},Tn.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()}},Tn.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))},Tn.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},Tn.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var b=p.as,E=y(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})}},Tn.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=y(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)},Tn.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,E=y(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})}},Tn.preloadModule=function(m,p){if(typeof m=="string")if(p){var b=y(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)},Tn.requestFormReset=function(m){l.d.r(m)},Tn.unstable_batchedUpdates=function(m,p){return m(p)},Tn.useFormState=function(m,p,b){return g.H.useFormState(m,p,b)},Tn.useFormStatus=function(){return g.H.useHostTransitionStatus()},Tn.version="19.2.8",Tn}var zm;function vb(){if(zm)return vu.exports;zm=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(),vu.exports=uE(),vu.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 Um;function fE(){if(Um)return Ms;Um=1;var s=cE(),i=Df(),r=vb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function 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 y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(d(e)!==e)throw Error(l(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,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 h=!1,v=o.child;v;){if(v===n){h=!0,n=o,a=c;break}if(v===a){h=!0,a=o,n=c;break}v=v.sibling}if(!h){for(v=c.child;v;){if(v===n){h=!0,n=c,a=o;break}if(v===a){h=!0,a=c,n=o;break}v=v.sibling}if(!h)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"),A=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),D=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||e["@@iterator"],typeof e=="function"?e:null)}var Te=Symbol.for("react.client.reference");function Ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case B:return"Profiler";case w:return"StrictMode";case $:return"Suspense";case Q:return"SuspenseList";case L:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case D:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:Ne(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return Ne(e(t))}catch{}}return null}var me=Array.isArray,I=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},be=[],Ee=-1;function S(e){return{current:e}}function C(e){0>Ee||(e.current=be[Ee],be[Ee]=null,Ee--)}function H(e,t){Ee++,be[Ee]=e.current,e.current=t}var ue=S(null),ye=S(null),we=S(null),pe=S(null);function De(e,t){switch(H(we,t),H(ye,e),H(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vp(t),e=Jp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}C(ue),H(ue,e)}function Ae(){C(ue),C(ye),C(we)}function Ue(e){e.memoizedState!==null&&H(pe,e);var t=ue.current,n=Jp(t,e.type);t!==n&&(H(ye,e),H(ue,n))}function Le(e){ye.current===e&&(C(ue),C(ye)),pe.current===e&&(C(pe),ws._currentValue=oe)}var ke,Nt;function je(e){if(ke===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ke=t&&t[1]||"",Nt=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+ke+e+Nt}var $n=!1;function et(e,t){if(!e||$n)return"";$n=!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(Z){var F=Z}Reflect.construct(e,[],ae)}else{try{ae.call()}catch(Z){F=Z}e.call(ae.prototype)}}else{try{throw Error()}catch(Z){F=Z}(ae=e())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(Z){if(Z&&F&&typeof Z.stack=="string")return[Z.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(),h=c[0],v=c[1];if(h&&v){var R=h.split(`
44
+ `),Y=v.split(`
45
+ `);for(o=a=0;a<R.length&&!R[a].includes("DetermineComponentFrameRoot");)a++;for(;o<Y.length&&!Y[o].includes("DetermineComponentFrameRoot");)o++;if(a===R.length||o===Y.length)for(a=R.length-1,o=Y.length-1;1<=a&&0<=o&&R[a]!==Y[o];)o--;for(;1<=a&&0<=o;a--,o--)if(R[a]!==Y[o]){if(a!==1||o!==1)do if(a--,o--,0>o||R[a]!==Y[o]){var ee=`
46
+ `+R[a].replace(" at new "," at ");return e.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",e.displayName)),ee}while(1<=a&&0<=o);break}}}finally{$n=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?je(n):""}function vn(e,t){switch(e.tag){case 26:case 27:case 5:return je(e.type);case 16:return je("Lazy");case 13:return e.child!==t&&t!==null?je("Suspense Fallback"):je("Suspense");case 19:return je("SuspenseList");case 0:case 15:return et(e.type,!1);case 11:return et(e.type.render,!1);case 1:return et(e.type,!0);case 31:return je("Activity");default:return""}}function Yn(e){try{var t="",n=null;do t+=vn(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var Qt=Object.prototype.hasOwnProperty,Jt=s.unstable_scheduleCallback,Wt=s.unstable_cancelCallback,ba=s.unstable_shouldYield,Mn=s.unstable_requestPaint,lt=s.unstable_now,Lt=s.unstable_getCurrentPriorityLevel,bt=s.unstable_ImmediatePriority,Ht=s.unstable_UserBlockingPriority,un=s.unstable_NormalPriority,Cn=s.unstable_LowPriority,wn=s.unstable_IdlePriority,Dn=s.log,Ln=s.unstable_setDisableYieldValue,En=null,Ot=null;function en(e){if(typeof Dn=="function"&&Ln(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(En,e)}catch{}}var kt=Math.clz32?Math.clz32:tn,zn=Math.log,An=Math.LN2;function tn(e){return e>>>=0,e===0?32:31-(zn(e)/An|0)|0}var Be=256,fn=262144,nn=4194304;function zt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function O(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~c,a!==0?o=zt(a):(h&=v,h!==0?o=zt(h):n||(n=v&~e,n!==0&&(o=zt(n))))):(v=a&~c,v!==0?o=zt(v):h!==0?o=zt(h):n||(n=a&~e,n!==0&&(o=zt(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 W(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function he(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 Me(){var e=nn;return nn<<=1,(nn&62914560)===0&&(nn=4194304),e}function Ke(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function U(e,t,n,a,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,R=e.expirationTimes,Y=e.hiddenUpdates;for(n=h&~n;0<n;){var ee=31-kt(n),ae=1<<ee;v[ee]=0,R[ee]=-1;var F=Y[ee];if(F!==null)for(Y[ee]=null,ee=0;ee<F.length;ee++){var Z=F[ee];Z!==null&&(Z.lane&=-536870913)}n&=~ae}a!==0&&P(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function P(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-kt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function fe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-kt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function He(e,t){var n=t&-t;return n=(n&42)!==0?1:tt(n),(n&(e.suspendedLanes|t))!==0?0:n}function tt(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 Un(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ya(){var e=ne.p;return e!==0?e:(e=window.event,e===void 0?32:_m(e.type))}function Wa(e,t){var n=ne.p;try{return ne.p=e,t()}finally{ne.p=n}}var _n=Math.random().toString(36).slice(2),Mt="__reactFiber$"+_n,an="__reactProps$"+_n,rt="__reactContainer$"+_n,Wn="__reactEvents$"+_n,tl="__reactListeners$"+_n,ka="__reactHandles$"+_n,ei="__reactResources$"+_n,va="__reactMarker$"+_n;function ti(e){delete e[Mt],delete e[an],delete e[Wn],delete e[tl],delete e[ka]}function dn(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rt]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=lm(e);e!==null;){if(n=e[Mt])return n;e=lm(e)}return t}e=n,n=e.parentNode}return null}function ca(e){if(e=e[Mt]||e[rt]){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[ei];return t||(t=e[ei]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function pt(e){e[va]=!0}var Ma=new Set,Rn={};function ua(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(Rn[e]=t,e=0;e<t.length;e++)Ma.add(t[e])}var Re=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$e={},ot={};function Tt(e){return Qt.call(ot,e)?!0:Qt.call($e,e)?!1:Re.test(e)?ot[e]=!0:($e[e]=!0,!1)}function qt(e,t,n){if(Tt(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 ln(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 ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function At(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nl(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(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ni(e){if(!e._valueTracker){var t=At(e)?"checked":"value";e._valueTracker=nl(e,t,""+e[t])}}function ai(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=At(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 al=/[\n"\\]/g;function Sn(e){return e.replace(al,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ii(e,t,n,a,o,c,h,v){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ct(t)):e.value!==""+ct(t)&&(e.value=""+ct(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?li(e,h,ct(t)):n!=null?li(e,h,ct(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+ct(v):e.removeAttribute("name")}function Da(e,t,n,a,o,c,h,v){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)){ni(e);return}n=n!=null?""+ct(n):"",t=t!=null?""+ct(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),ni(e)}function li(e,t,n){t==="number"&&Ca(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Gt(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=""+ct(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=""+ct(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ct(n):""}function Sa(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(l(92));if(me(a)){if(1<a.length)throw Error(l(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=ct(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),ni(e)}function X(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var T=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 z(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||T.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function J(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&&z(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&z(e,c,t[c])}function ve(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 Se=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"]]),Ie=/^[\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 Qe(e){return Ie.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function se(){}var ge=null;function Oe(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fe=null,Pe=null;function ea(e){var t=ca(e);if(t&&(e=t.stateNode)){var n=e[an]||null;e:switch(e=t.stateNode,t.type){case"input":if(ii(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="'+Sn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[an]||null;if(!o)throw Error(l(90));ii(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&&ai(a)}break e;case"textarea":La(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Gt(e,!!n.multiple,t,!1)}}}var Gl=!1;function Gs(e,t,n){if(Gl)return e(t,n);Gl=!0;try{var a=e(t);return a}finally{if(Gl=!1,(Fe!==null||Pe!==null)&&(Or(),Fe&&(t=Fe,e=Pe,Pe=Fe=null,ea(t),e)))for(t=0;t<e.length;t++)ea(e[t])}}function $l(e,t){var n=e.stateNode;if(n===null)return null;var a=n[an]||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"),po=!1;if(za)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){po=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{po=!1}var si=null,mo=null,$s=null;function Jf(){if($s)return $s;var e,t=mo,n=t.length,a,o="value"in si?si.value:si.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(a=1;a<=h&&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 Wf(){return!1}function Bn(e){function t(n,a,o,c,h){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Fs:Wf,this.isPropagationStopped=Wf,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 Li={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ks=Bn(Li),Fl=E({},Li,{view:0,detail:0}),ey=Bn(Fl),go,bo,Kl,Ps=E({},Fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kl&&(Kl&&e.type==="mousemove"?(go=e.screenX-Kl.screenX,bo=e.screenY-Kl.screenY):bo=go=0,Kl=e),go)},movementY:function(e){return"movementY"in e?e.movementY:bo}}),ed=Bn(Ps),ty=E({},Ps,{dataTransfer:0}),ny=Bn(ty),ay=E({},Fl,{relatedTarget:0}),yo=Bn(ay),iy=E({},Li,{animationName:0,elapsedTime:0,pseudoElement:0}),ly=Bn(iy),sy=E({},Li,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ry=Bn(sy),oy=E({},Li,{data:0}),td=Bn(oy),cy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fy[e])?!!t[e]:!1}function vo(){return dy}var hy=E({},Fl,{key:function(e){if(e.key){var t=cy[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"?uy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vo,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}}),py=Bn(hy),my=E({},Ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nd=Bn(my),gy=E({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vo}),by=Bn(gy),yy=E({},Li,{propertyName:0,elapsedTime:0,pseudoElement:0}),vy=Bn(yy),Ey=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}),_y=Bn(Ey),Sy=E({},Li,{newState:0,oldState:0}),Ty=Bn(Sy),Ny=[9,13,27,32],Eo=za&&"CompositionEvent"in window,Pl=null;za&&"documentMode"in document&&(Pl=document.documentMode);var xy=za&&"TextEvent"in window&&!Pl,ad=za&&(!Eo||Pl&&8<Pl&&11>=Pl),id=" ",ld=!1;function sd(e,t){switch(e){case"keyup":return Ny.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function wy(e,t){switch(e){case"compositionend":return rd(t);case"keypress":return t.which!==32?null:(ld=!0,id);case"textInput":return e=t.data,e===id&&ld?null:e;default:return null}}function Ay(e,t){if(il)return e==="compositionend"||!Eo&&sd(e,t)?(e=Jf(),$s=mo=si=null,il=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ad&&t.locale!=="ko"?null:t.data;default:return null}}var Ry={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 od(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ry[e.type]:t==="textarea"}function cd(e,t,n,a){Fe?Pe?Pe.push(a):Pe=[a]:Fe=a,t=Ur(t,"onChange"),0<t.length&&(n=new Ks("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Zl=null,Xl=null;function Oy(e){Fp(e,0)}function Zs(e){var t=Ea(e);if(ai(t))return e}function ud(e,t){if(e==="change")return t}var fd=!1;if(za){var _o;if(za){var So="oninput"in document;if(!So){var dd=document.createElement("div");dd.setAttribute("oninput","return;"),So=typeof dd.oninput=="function"}_o=So}else _o=!1;fd=_o&&(!document.documentMode||9<document.documentMode)}function hd(){Zl&&(Zl.detachEvent("onpropertychange",pd),Xl=Zl=null)}function pd(e){if(e.propertyName==="value"&&Zs(Xl)){var t=[];cd(t,Xl,e,Oe(e)),Gs(Oy,t)}}function ky(e,t,n){e==="focusin"?(hd(),Zl=t,Xl=n,Zl.attachEvent("onpropertychange",pd)):e==="focusout"&&hd()}function My(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zs(Xl)}function Cy(e,t){if(e==="click")return Zs(t)}function Dy(e,t){if(e==="input"||e==="change")return Zs(t)}function Ly(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:Ly;function Ql(e,t){if(Fn(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(!Qt.call(t,o)||!Fn(e[o],t[o]))return!1}return!0}function md(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gd(e,t){var n=md(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=md(n)}}function bd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yd(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 To(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 zy=za&&"documentMode"in document&&11>=document.documentMode,ll=null,No=null,Vl=null,xo=!1;function vd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xo||ll==null||ll!==Ca(a)||(a=ll,"selectionStart"in a&&To(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}),Vl&&Ql(Vl,a)||(Vl=a,a=Ur(No,"onSelect"),0<a.length&&(t=new Ks("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ll)))}function zi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sl={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionrun:zi("Transition","TransitionRun"),transitionstart:zi("Transition","TransitionStart"),transitioncancel:zi("Transition","TransitionCancel"),transitionend:zi("Transition","TransitionEnd")},wo={},Ed={};za&&(Ed=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);function Ui(e){if(wo[e])return wo[e];if(!sl[e])return e;var t=sl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ed)return wo[e]=t[n];return e}var _d=Ui("animationend"),Sd=Ui("animationiteration"),Td=Ui("animationstart"),Uy=Ui("transitionrun"),By=Ui("transitionstart"),jy=Ui("transitioncancel"),Nd=Ui("transitionend"),xd=new Map,Ao="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(" ");Ao.push("scrollEnd");function fa(e,t){xd.set(e,t),ua(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=[],rl=0,Ro=0;function Qs(){for(var e=rl,t=Ro=rl=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 h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}c!==0&&wd(n,o,c)}}function Vs(e,t,n,a){ta[rl++]=e,ta[rl++]=t,ta[rl++]=n,ta[rl++]=a,Ro|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Oo(e,t,n,a){return Vs(e,t,n,a),Js(e)}function Bi(e,t){return Vs(e,null,null,t),Js(e)}function wd(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-kt(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<vs)throw vs=0,jc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ol={};function Iy(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 Kn(e,t,n,a){return new Iy(e,t,n,a)}function ko(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ua(e,t){var n=e.alternate;return n===null?(n=Kn(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 Ad(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 h=0;if(a=e,typeof e=="function")ko(e)&&(h=1);else if(typeof e=="string")h=Yv(e,n,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case L:return e=Kn(31,n,t,o),e.elementType=L,e.lanes=c,e;case A:return ji(n.children,o,c,t);case w:h=8,o|=24;break;case B:return e=Kn(12,n,t,o|2),e.elementType=B,e.lanes=c,e;case $:return e=Kn(13,n,t,o),e.elementType=$,e.lanes=c,e;case Q:return e=Kn(19,n,t,o),e.elementType=Q,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:h=10;break e;case q:h=9;break e;case re:h=11;break e;case ie:h=14;break e;case k:h=16,a=null;break e}h=29,n=Error(l(130,e===null?"null":typeof e,"")),a=null}return t=Kn(h,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function ji(e,t,n,a){return e=Kn(7,e,a,t),e.lanes=n,e}function Mo(e,t,n){return e=Kn(6,e,null,t),e.lanes=n,e}function Rd(e){var t=Kn(18,null,null,0);return t.stateNode=e,t}function Co(e,t,n){return t=Kn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Od=new WeakMap;function na(e,t){if(typeof e=="object"&&e!==null){var n=Od.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Yn(t)},Od.set(e,t),t)}return{value:e,source:t,stack:Yn(t)}}var cl=[],ul=0,er=null,Jl=0,aa=[],ia=0,ri=null,Ta=1,Na="";function Ba(e,t){cl[ul++]=Jl,cl[ul++]=er,er=e,Jl=t}function kd(e,t,n){aa[ia++]=Ta,aa[ia++]=Na,aa[ia++]=ri,ri=e;var a=Ta;e=Na;var o=32-kt(a)-1;a&=~(1<<o),n+=1;var c=32-kt(t)+o;if(30<c){var h=o-o%5;c=(a&(1<<h)-1).toString(32),a>>=h,o-=h,Ta=1<<32-kt(t)+o|n<<o|a,Na=c+e}else Ta=1<<c|n<<o|a,Na=e}function Do(e){e.return!==null&&(Ba(e,1),kd(e,1,0))}function Lo(e){for(;e===er;)er=cl[--ul],cl[ul]=null,Jl=cl[--ul],cl[ul]=null;for(;e===ri;)ri=aa[--ia],aa[ia]=null,Na=aa[--ia],aa[ia]=null,Ta=aa[--ia],aa[ia]=null}function Md(e,t){aa[ia++]=Ta,aa[ia++]=Na,aa[ia++]=ri,Ta=t.id,Na=t.overflow,ri=e}var hn=null,xt=null,it=!1,oi=null,la=!1,zo=Error(l(519));function ci(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wl(na(t,e)),zo}function Cd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Mt]=e,t[an]=a,n){case"dialog":Je("cancel",t),Je("close",t);break;case"iframe":case"object":case"embed":Je("load",t);break;case"video":case"audio":for(n=0;n<_s.length;n++)Je(_s[n],t);break;case"source":Je("error",t);break;case"img":case"image":case"link":Je("error",t),Je("load",t);break;case"details":Je("toggle",t);break;case"input":Je("invalid",t),Da(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Je("invalid",t);break;case"textarea":Je("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||Xp(t.textContent,n)?(a.popover!=null&&(Je("beforetoggle",t),Je("toggle",t)),a.onScroll!=null&&Je("scroll",t),a.onScrollEnd!=null&&Je("scrollend",t),a.onClick!=null&&(t.onclick=se),t=!0):t=!1,t||ci(e,!0)}function Dd(e){for(hn=e.return;hn;)switch(hn.tag){case 5:case 31:case 13:la=!1;return;case 27:case 3:la=!0;return;default:hn=hn.return}}function fl(e){if(e!==hn)return!1;if(!it)return Dd(e),it=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Wc(e.type,e.memoizedProps)),n=!n),n&&xt&&ci(e),Dd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));xt=im(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));xt=im(e)}else t===27?(t=xt,Ti(e.type)?(e=iu,iu=null,xt=e):xt=t):xt=hn?ra(e.stateNode.nextSibling):null;return!0}function Ii(){xt=hn=null,it=!1}function Uo(){var e=oi;return e!==null&&(qn===null?qn=e:qn.push.apply(qn,e),oi=null),e}function Wl(e){oi===null?oi=[e]:oi.push(e)}var Bo=S(null),Hi=null,ja=null;function ui(e,t,n){H(Bo,t._currentValue),t._currentValue=n}function Ia(e){e._currentValue=Bo.current,C(Bo)}function jo(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 Io(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=o;for(var R=0;R<t.length;R++)if(v.context===t[R]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),jo(c.return,n,e),a||(h=null);break e}c=v.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(l(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),jo(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function dl(e,t,n,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 h=o.alternate;if(h===null)throw Error(l(387));if(h=h.memoizedProps,h!==null){var v=o.type;Fn(o.pendingProps.value,h.value)||(e!==null?e.push(v):e=[v])}}else if(o===pe.current){if(h=o.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ws):e=[ws])}o=o.return}e!==null&&Io(t,e,n,a),t.flags|=262144}function tr(e){for(e=e.firstContext;e!==null;){if(!Fn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qi(e){Hi=e,ja=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pn(e){return Ld(Hi,e)}function nr(e,t){return Hi===null&&qi(e),Ld(e,t)}function Ld(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ja===null){if(e===null)throw Error(l(308));ja=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ja=ja.next=t;return n}var Hy=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()})}},qy=s.unstable_scheduleCallback,Gy=s.unstable_NormalPriority,$t={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ho(){return{controller:new Hy,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&qy(Gy,function(){e.controller.abort()})}var ts=null,qo=0,hl=0,pl=null;function $y(e,t){if(ts===null){var n=ts=[];qo=0,hl=Yc(),pl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return qo++,t.then(zd,zd),t}function zd(){if(--qo===0&&ts!==null){pl!==null&&(pl.status="fulfilled");var e=ts;ts=null,hl=0,pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Yy(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 Ud=I.S;I.S=function(e,t){vp=lt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&$y(e,t),Ud!==null&&Ud(e,t)};var Gi=S(null);function Go(){var e=Gi.current;return e!==null?e:St.pooledCache}function ar(e,t){t===null?H(Gi,Gi.current):H(Gi,t.pool)}function Bd(){var e=Go();return e===null?null:{parent:$t._currentValue,pool:e}}var ml=Error(l(460)),$o=Error(l(474)),ir=Error(l(542)),lr={then:function(){}};function jd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Id(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(se,se),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qd(e),e;default:if(typeof t.status=="string")t.then(se,se);else{if(e=St,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,qd(e),e}throw Yi=t,ml}}function $i(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Yi=n,ml):n}}var Yi=null;function Hd(){if(Yi===null)throw Error(l(459));var e=Yi;return Yi=null,e}function qd(e){if(e===ml||e===ir)throw Error(l(483))}var gl=null,ns=0;function sr(e){var t=ns;return ns+=1,gl===null&&(gl=[]),Id(gl,e,t)}function as(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 Gd(e){function t(j,M){if(e){var G=j.deletions;G===null?(j.deletions=[M],j.flags|=16):G.push(M)}}function n(j,M){if(!e)return null;for(;M!==null;)t(j,M),M=M.sibling;return null}function a(j){for(var M=new Map;j!==null;)j.key!==null?M.set(j.key,j):M.set(j.index,j),j=j.sibling;return M}function o(j,M){return j=Ua(j,M),j.index=0,j.sibling=null,j}function c(j,M,G){return j.index=G,e?(G=j.alternate,G!==null?(G=G.index,G<M?(j.flags|=67108866,M):G):(j.flags|=67108866,M)):(j.flags|=1048576,M)}function h(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function v(j,M,G,te){return M===null||M.tag!==6?(M=Mo(G,j.mode,te),M.return=j,M):(M=o(M,G),M.return=j,M)}function R(j,M,G,te){var Ce=G.type;return Ce===A?ee(j,M,G.props.children,te,G.key):M!==null&&(M.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===k&&$i(Ce)===M.type)?(M=o(M,G.props),as(M,G),M.return=j,M):(M=Ws(G.type,G.key,G.props,null,j.mode,te),as(M,G),M.return=j,M)}function Y(j,M,G,te){return M===null||M.tag!==4||M.stateNode.containerInfo!==G.containerInfo||M.stateNode.implementation!==G.implementation?(M=Co(G,j.mode,te),M.return=j,M):(M=o(M,G.children||[]),M.return=j,M)}function ee(j,M,G,te,Ce){return M===null||M.tag!==7?(M=ji(G,j.mode,te,Ce),M.return=j,M):(M=o(M,G),M.return=j,M)}function ae(j,M,G){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Mo(""+M,j.mode,G),M.return=j,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return G=Ws(M.type,M.key,M.props,null,j.mode,G),as(G,M),G.return=j,G;case N:return M=Co(M,j.mode,G),M.return=j,M;case k:return M=$i(M),ae(j,M,G)}if(me(M)||de(M))return M=ji(M,j.mode,G,null),M.return=j,M;if(typeof M.then=="function")return ae(j,sr(M),G);if(M.$$typeof===D)return ae(j,nr(j,M),G);rr(j,M)}return null}function F(j,M,G,te){var Ce=M!==null?M.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Ce!==null?null:v(j,M,""+G,te);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case x:return G.key===Ce?R(j,M,G,te):null;case N:return G.key===Ce?Y(j,M,G,te):null;case k:return G=$i(G),F(j,M,G,te)}if(me(G)||de(G))return Ce!==null?null:ee(j,M,G,te,null);if(typeof G.then=="function")return F(j,M,sr(G),te);if(G.$$typeof===D)return F(j,M,nr(j,G),te);rr(j,G)}return null}function Z(j,M,G,te,Ce){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return j=j.get(G)||null,v(M,j,""+te,Ce);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case x:return j=j.get(te.key===null?G:te.key)||null,R(M,j,te,Ce);case N:return j=j.get(te.key===null?G:te.key)||null,Y(M,j,te,Ce);case k:return te=$i(te),Z(j,M,G,te,Ce)}if(me(te)||de(te))return j=j.get(G)||null,ee(M,j,te,Ce,null);if(typeof te.then=="function")return Z(j,M,G,sr(te),Ce);if(te.$$typeof===D)return Z(j,M,G,nr(M,te),Ce);rr(M,te)}return null}function _e(j,M,G,te){for(var Ce=null,ut=null,xe=M,Ye=M=0,at=null;xe!==null&&Ye<G.length;Ye++){xe.index>Ye?(at=xe,xe=null):at=xe.sibling;var ft=F(j,xe,G[Ye],te);if(ft===null){xe===null&&(xe=at);break}e&&xe&&ft.alternate===null&&t(j,xe),M=c(ft,M,Ye),ut===null?Ce=ft:ut.sibling=ft,ut=ft,xe=at}if(Ye===G.length)return n(j,xe),it&&Ba(j,Ye),Ce;if(xe===null){for(;Ye<G.length;Ye++)xe=ae(j,G[Ye],te),xe!==null&&(M=c(xe,M,Ye),ut===null?Ce=xe:ut.sibling=xe,ut=xe);return it&&Ba(j,Ye),Ce}for(xe=a(xe);Ye<G.length;Ye++)at=Z(xe,j,Ye,G[Ye],te),at!==null&&(e&&at.alternate!==null&&xe.delete(at.key===null?Ye:at.key),M=c(at,M,Ye),ut===null?Ce=at:ut.sibling=at,ut=at);return e&&xe.forEach(function(Ri){return t(j,Ri)}),it&&Ba(j,Ye),Ce}function ze(j,M,G,te){if(G==null)throw Error(l(151));for(var Ce=null,ut=null,xe=M,Ye=M=0,at=null,ft=G.next();xe!==null&&!ft.done;Ye++,ft=G.next()){xe.index>Ye?(at=xe,xe=null):at=xe.sibling;var Ri=F(j,xe,ft.value,te);if(Ri===null){xe===null&&(xe=at);break}e&&xe&&Ri.alternate===null&&t(j,xe),M=c(Ri,M,Ye),ut===null?Ce=Ri:ut.sibling=Ri,ut=Ri,xe=at}if(ft.done)return n(j,xe),it&&Ba(j,Ye),Ce;if(xe===null){for(;!ft.done;Ye++,ft=G.next())ft=ae(j,ft.value,te),ft!==null&&(M=c(ft,M,Ye),ut===null?Ce=ft:ut.sibling=ft,ut=ft);return it&&Ba(j,Ye),Ce}for(xe=a(xe);!ft.done;Ye++,ft=G.next())ft=Z(xe,j,Ye,ft.value,te),ft!==null&&(e&&ft.alternate!==null&&xe.delete(ft.key===null?Ye:ft.key),M=c(ft,M,Ye),ut===null?Ce=ft:ut.sibling=ft,ut=ft);return e&&xe.forEach(function(tE){return t(j,tE)}),it&&Ba(j,Ye),Ce}function Et(j,M,G,te){if(typeof G=="object"&&G!==null&&G.type===A&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case x:e:{for(var Ce=G.key;M!==null;){if(M.key===Ce){if(Ce=G.type,Ce===A){if(M.tag===7){n(j,M.sibling),te=o(M,G.props.children),te.return=j,j=te;break e}}else if(M.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===k&&$i(Ce)===M.type){n(j,M.sibling),te=o(M,G.props),as(te,G),te.return=j,j=te;break e}n(j,M);break}else t(j,M);M=M.sibling}G.type===A?(te=ji(G.props.children,j.mode,te,G.key),te.return=j,j=te):(te=Ws(G.type,G.key,G.props,null,j.mode,te),as(te,G),te.return=j,j=te)}return h(j);case N:e:{for(Ce=G.key;M!==null;){if(M.key===Ce)if(M.tag===4&&M.stateNode.containerInfo===G.containerInfo&&M.stateNode.implementation===G.implementation){n(j,M.sibling),te=o(M,G.children||[]),te.return=j,j=te;break e}else{n(j,M);break}else t(j,M);M=M.sibling}te=Co(G,j.mode,te),te.return=j,j=te}return h(j);case k:return G=$i(G),Et(j,M,G,te)}if(me(G))return _e(j,M,G,te);if(de(G)){if(Ce=de(G),typeof Ce!="function")throw Error(l(150));return G=Ce.call(G),ze(j,M,G,te)}if(typeof G.then=="function")return Et(j,M,sr(G),te);if(G.$$typeof===D)return Et(j,M,nr(j,G),te);rr(j,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,M!==null&&M.tag===6?(n(j,M.sibling),te=o(M,G),te.return=j,j=te):(n(j,M),te=Mo(G,j.mode,te),te.return=j,j=te),h(j)):n(j,M)}return function(j,M,G,te){try{ns=0;var Ce=Et(j,M,G,te);return gl=null,Ce}catch(xe){if(xe===ml||xe===ir)throw xe;var ut=Kn(29,xe,null,j.mode);return ut.lanes=te,ut.return=j,ut}finally{}}}var Fi=Gd(!0),$d=Gd(!1),fi=!1;function Yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fo(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 di(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function hi(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(dt&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),wd(e,null,n),t}return Vs(e,a,t,n),Js(e)}function is(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,fe(e,n)}}function Ko(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 h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState: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 Po=!1;function ls(){if(Po){var e=pl;if(e!==null)throw e}}function ss(e,t,n,a){Po=!1;var o=e.updateQueue;fi=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var R=v,Y=R.next;R.next=null,h===null?c=Y:h.next=Y,h=R;var ee=e.alternate;ee!==null&&(ee=ee.updateQueue,v=ee.lastBaseUpdate,v!==h&&(v===null?ee.firstBaseUpdate=Y:v.next=Y,ee.lastBaseUpdate=R))}if(c!==null){var ae=o.baseState;h=0,ee=Y=R=null,v=c;do{var F=v.lane&-536870913,Z=F!==v.lane;if(Z?(nt&F)===F:(a&F)===F){F!==0&&F===hl&&(Po=!0),ee!==null&&(ee=ee.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var _e=e,ze=v;F=t;var Et=n;switch(ze.tag){case 1:if(_e=ze.payload,typeof _e=="function"){ae=_e.call(Et,ae,F);break e}ae=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=ze.payload,F=typeof _e=="function"?_e.call(Et,ae,F):_e,F==null)break e;ae=E({},ae,F);break e;case 2:fi=!0}}F=v.callback,F!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=o.callbacks,Z===null?o.callbacks=[F]:Z.push(F))}else Z={lane:F,tag:v.tag,payload:v.payload,callback:v.callback,next:null},ee===null?(Y=ee=Z,R=ae):ee=ee.next=Z,h|=F;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;Z=v,v=Z.next,Z.next=null,o.lastBaseUpdate=Z,o.shared.pending=null}}while(!0);ee===null&&(R=ae),o.baseState=R,o.firstBaseUpdate=Y,o.lastBaseUpdate=ee,c===null&&(o.shared.lanes=0),yi|=h,e.lanes=h,e.memoizedState=ae}}function Yd(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function Fd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Yd(n[e],t)}var bl=S(null),or=S(0);function Kd(e,t){e=Za,H(or,e),H(bl,t),Za=e|t.baseLanes}function Zo(){H(or,Za),H(bl,bl.current)}function Xo(){Za=or.current,C(bl),C(or)}var Pn=S(null),sa=null;function pi(e){var t=e.alternate;H(Bt,Bt.current&1),H(Pn,e),sa===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(sa=e)}function Qo(e){H(Bt,Bt.current),H(Pn,e),sa===null&&(sa=e)}function Pd(e){e.tag===22?(H(Bt,Bt.current),H(Pn,e),sa===null&&(sa=e)):mi()}function mi(){H(Bt,Bt.current),H(Pn,Pn.current)}function Zn(e){C(Pn),sa===e&&(sa=null),C(Bt)}var Bt=S(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||nu(n)||au(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,Ge=null,yt=null,Yt=null,ur=!1,yl=!1,Ki=!1,fr=0,rs=0,vl=null,Fy=0;function Ct(){throw Error(l(321))}function Vo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fn(e[n],t[n]))return!1;return!0}function Jo(e,t,n,a,o,c){return Ha=c,Ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?kh:hc,Ki=!1,c=n(a,o),Ki=!1,yl&&(c=Xd(t,n,a,o)),Zd(e),c}function Zd(e){I.H=us;var t=yt!==null&&yt.next!==null;if(Ha=0,Yt=yt=Ge=null,ur=!1,rs=0,vl=null,t)throw Error(l(300));e===null||Ft||(e=e.dependencies,e!==null&&tr(e)&&(Ft=!0))}function Xd(e,t,n,a){Ge=e;var o=0;do{if(yl&&(vl=null),rs=0,yl=!1,25<=o)throw Error(l(301));if(o+=1,Yt=yt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}I.H=Mh,c=t(n,a)}while(yl);return c}function Ky(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(yt!==null?yt.memoizedState:null)!==e&&(Ge.flags|=1024),t}function Wo(){var e=fr!==0;return fr=0,e}function ec(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function tc(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,Yt=yt=Ge=null,yl=!1,rs=fr=0,vl=null}function On(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?Ge.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function jt(){if(yt===null){var e=Ge.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var t=Yt===null?Ge.memoizedState:Yt.next;if(t!==null)Yt=t,yt=e;else{if(e===null)throw Ge.alternate===null?Error(l(467)):Error(l(310));yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},Yt===null?Ge.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function dr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=rs;return rs+=1,vl===null&&(vl=[]),e=Id(vl,e,t),t=Ge,(Yt===null?t.memoizedState:Yt.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?kh:hc),e}function hr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===D)return pn(e)}throw Error(l(438,String(e)))}function nc(e){var t=null,n=Ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Ge.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(),Ge.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]=V;return t.index++,n}function qa(e,t){return typeof t=="function"?t(e):t}function pr(e){var t=jt();return ac(t,yt,e)}function ac(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 h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var v=h=null,R=null,Y=t,ee=!1;do{var ae=Y.lane&-536870913;if(ae!==Y.lane?(nt&ae)===ae:(Ha&ae)===ae){var F=Y.revertLane;if(F===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),ae===hl&&(ee=!0);else if((Ha&F)===F){Y=Y.next,F===hl&&(ee=!0);continue}else ae={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},R===null?(v=R=ae,h=c):R=R.next=ae,Ge.lanes|=F,yi|=F;ae=Y.action,Ki&&n(c,ae),c=Y.hasEagerState?Y.eagerState:n(c,ae)}else F={lane:ae,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},R===null?(v=R=F,h=c):R=R.next=F,Ge.lanes|=ae,yi|=ae;Y=Y.next}while(Y!==null&&Y!==t);if(R===null?h=c:R.next=v,!Fn(c,e.memoizedState)&&(Ft=!0,ee&&(n=pl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=R,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ic(e){var t=jt(),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 h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);Fn(c,t.memoizedState)||(Ft=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Qd(e,t,n){var a=Ge,o=jt(),c=it;if(c){if(n===void 0)throw Error(l(407));n=n()}else n=t();var h=!Fn((yt||o).memoizedState,n);if(h&&(o.memoizedState=n,Ft=!0),o=o.queue,rc(Wd.bind(null,a,o,e),[e]),o.getSnapshot!==t||h||Yt!==null&&Yt.memoizedState.tag&1){if(a.flags|=2048,El(9,{destroy:void 0},Jd.bind(null,a,o,n,t),null),St===null)throw Error(l(349));c||(Ha&127)!==0||Vd(a,t,n)}return n}function Vd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ge.updateQueue,t===null?(t=dr(),Ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jd(e,t,n,a){t.value=n,t.getSnapshot=a,eh(t)&&th(e)}function Wd(e,t,n){return n(function(){eh(t)&&th(e)})}function eh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fn(e,n)}catch{return!0}}function th(e){var t=Bi(e,2);t!==null&&Gn(t,e,2)}function lc(e){var t=On();if(typeof e=="function"){var n=e;if(e=n(),Ki){en(!0);try{n()}finally{en(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:e},t}function nh(e,t,n,a){return e.baseState=n,ac(e,yt,typeof a=="function"?a:qa)}function Py(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(h){c.listeners.push(h)}};I.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,ah(t,c)):(c.next=n.next,t.pending=n.next=c)}}function ah(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=I.T,h={};I.T=h;try{var v=n(o,a),R=I.S;R!==null&&R(h,v),ih(e,t,v)}catch(Y){sc(e,t,Y)}finally{c!==null&&h.types!==null&&(c.types=h.types),I.T=c}}else try{c=n(o,a),ih(e,t,c)}catch(Y){sc(e,t,Y)}}function ih(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){lh(e,t,a)},function(a){return sc(e,t,a)}):lh(e,t,n)}function lh(e,t,n){t.status="fulfilled",t.value=n,sh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ah(e,n)))}function sc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,sh(t),t=t.next;while(t!==a)}e.action=null}function sh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rh(e,t){return t}function oh(e,t){if(it){var n=St.formState;if(n!==null){e:{var a=Ge;if(it){if(xt){t:{for(var o=xt,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){xt=ra(o.nextSibling),a=o.data==="F!";break e}}ci(a)}a=!1}a&&(t=n[0])}}return n=On(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rh,lastRenderedState:t},n.queue=a,n=Ah.bind(null,Ge,a),a.dispatch=n,a=lc(!1),c=dc.bind(null,Ge,!1,a.queue),a=On(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=Py.bind(null,Ge,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function ch(e){var t=jt();return uh(t,yt,e)}function uh(e,t,n){if(t=ac(e,t,rh)[0],e=pr(qa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=os(t)}catch(h){throw h===ml?ir:h}else a=t;t=jt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Ge.flags|=2048,El(9,{destroy:void 0},Zy.bind(null,o,n),null)),[a,c,e]}function Zy(e,t){e.action=t}function fh(e){var t=jt(),n=yt;if(n!==null)return uh(t,n,e);jt(),t=t.memoizedState,n=jt();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function El(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Ge.updateQueue,t===null&&(t=dr(),Ge.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 dh(){return jt().memoizedState}function mr(e,t,n,a){var o=On();Ge.flags|=e,o.memoizedState=El(1|t,{destroy:void 0},n,a===void 0?null:a)}function gr(e,t,n,a){var o=jt();a=a===void 0?null:a;var c=o.memoizedState.inst;yt!==null&&a!==null&&Vo(a,yt.memoizedState.deps)?o.memoizedState=El(t,c,n,a):(Ge.flags|=e,o.memoizedState=El(1|t,c,n,a))}function hh(e,t){mr(8390656,8,e,t)}function rc(e,t){gr(2048,8,e,t)}function Xy(e){Ge.flags|=4;var t=Ge.updateQueue;if(t===null)t=dr(),Ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ph(e){var t=jt().memoizedState;return Xy({ref:t,nextImpl:e}),function(){if((dt&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function mh(e,t){return gr(4,2,e,t)}function gh(e,t){return gr(4,4,e,t)}function bh(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 yh(e,t,n){n=n!=null?n.concat([e]):null,gr(4,4,bh.bind(null,t,e),n)}function oc(){}function vh(e,t){var n=jt();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Vo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Eh(e,t){var n=jt();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Vo(t,a[1]))return a[0];if(a=e(),Ki){en(!0);try{e()}finally{en(!1)}}return n.memoizedState=[a,t],a}function cc(e,t,n){return n===void 0||(Ha&1073741824)!==0&&(nt&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=_p(),Ge.lanes|=e,yi|=e,n)}function _h(e,t,n,a){return Fn(n,t)?n:bl.current!==null?(e=cc(e,n,a),Fn(e,t)||(Ft=!0),e):(Ha&42)===0||(Ha&1073741824)!==0&&(nt&261930)===0?(Ft=!0,e.memoizedState=n):(e=_p(),Ge.lanes|=e,yi|=e,t)}function Sh(e,t,n,a,o){var c=ne.p;ne.p=c!==0&&8>c?c:8;var h=I.T,v={};I.T=v,dc(e,!1,t,n);try{var R=o(),Y=I.S;if(Y!==null&&Y(v,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var ee=Yy(R,a);cs(e,t,ee,Vn(e))}else cs(e,t,a,Vn(e))}catch(ae){cs(e,t,{then:function(){},status:"rejected",reason:ae},Vn())}finally{ne.p=c,h!==null&&v.types!==null&&(h.types=v.types),I.T=h}}function Qy(){}function uc(e,t,n,a){if(e.tag!==5)throw Error(l(476));var o=Th(e).queue;Sh(e,o,t,oe,n===null?Qy:function(){return Nh(e),n(a)})}function Th(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:oe},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 Nh(e){var t=Th(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},Vn())}function fc(){return pn(ws)}function xh(){return jt().memoizedState}function wh(){return jt().memoizedState}function Vy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Vn();e=di(n);var a=hi(t,e,n);a!==null&&(Gn(a,t,n),is(a,t,n)),t={cache:Ho()},e.payload=t;return}t=t.return}}function Jy(e,t,n){var a=Vn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},br(e)?Rh(t,n):(n=Oo(e,t,n,a),n!==null&&(Gn(n,e,a),Oh(n,t,a)))}function Ah(e,t,n){var a=Vn();cs(e,t,n,a)}function cs(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(br(e))Rh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,v=c(h,n);if(o.hasEagerState=!0,o.eagerState=v,Fn(v,h))return Vs(e,t,o,0),St===null&&Qs(),!1}catch{}finally{}if(n=Oo(e,t,o,a),n!==null)return Gn(n,e,a),Oh(n,t,a),!0}return!1}function dc(e,t,n,a){if(a={lane:2,revertLane:Yc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},br(e)){if(t)throw Error(l(479))}else t=Oo(e,n,a,2),t!==null&&Gn(t,e,2)}function br(e){var t=e.alternate;return e===Ge||t!==null&&t===Ge}function Rh(e,t){yl=ur=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Oh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,fe(e,n)}}var us={readContext:pn,use:hr,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};us.useEffectEvent=Ct;var kh={readContext:pn,use:hr,useCallback:function(e,t){return On().memoizedState=[e,t===void 0?null:t],e},useContext:pn,useEffect:hh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,mr(4194308,4,bh.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=On();t=t===void 0?null:t;var a=e();if(Ki){en(!0);try{e()}finally{en(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=On();if(n!==void 0){var o=n(t);if(Ki){en(!0);try{n(t)}finally{en(!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=Jy.bind(null,Ge,e),[a.memoizedState,e]},useRef:function(e){var t=On();return e={current:e},t.memoizedState=e},useState:function(e){e=lc(e);var t=e.queue,n=Ah.bind(null,Ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:oc,useDeferredValue:function(e,t){var n=On();return cc(n,e,t)},useTransition:function(){var e=lc(!1);return e=Sh.bind(null,Ge,e.queue,!0,!1),On().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Ge,o=On();if(it){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),St===null)throw Error(l(349));(nt&127)!==0||Vd(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,hh(Wd.bind(null,a,c,e),[e]),a.flags|=2048,El(9,{destroy:void 0},Jd.bind(null,a,c,n,t),null),n},useId:function(){var e=On(),t=St.identifierPrefix;if(it){var n=Na,a=Ta;n=(a&~(1<<32-kt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=fr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Fy++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:fc,useFormState:oh,useActionState:oh,useOptimistic:function(e){var t=On();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dc.bind(null,Ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:nc,useCacheRefresh:function(){return On().memoizedState=Vy.bind(null,Ge)},useEffectEvent:function(e){var t=On(),n={impl:e};return t.memoizedState=n,function(){if((dt&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},hc={readContext:pn,use:hr,useCallback:vh,useContext:pn,useEffect:rc,useImperativeHandle:yh,useInsertionEffect:mh,useLayoutEffect:gh,useMemo:Eh,useReducer:pr,useRef:dh,useState:function(){return pr(qa)},useDebugValue:oc,useDeferredValue:function(e,t){var n=jt();return _h(n,yt.memoizedState,e,t)},useTransition:function(){var e=pr(qa)[0],t=jt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:Qd,useId:xh,useHostTransitionStatus:fc,useFormState:ch,useActionState:ch,useOptimistic:function(e,t){var n=jt();return nh(n,yt,e,t)},useMemoCache:nc,useCacheRefresh:wh};hc.useEffectEvent=ph;var Mh={readContext:pn,use:hr,useCallback:vh,useContext:pn,useEffect:rc,useImperativeHandle:yh,useInsertionEffect:mh,useLayoutEffect:gh,useMemo:Eh,useReducer:ic,useRef:dh,useState:function(){return ic(qa)},useDebugValue:oc,useDeferredValue:function(e,t){var n=jt();return yt===null?cc(n,e,t):_h(n,yt.memoizedState,e,t)},useTransition:function(){var e=ic(qa)[0],t=jt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:Qd,useId:xh,useHostTransitionStatus:fc,useFormState:fh,useActionState:fh,useOptimistic:function(e,t){var n=jt();return yt!==null?nh(n,yt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:nc,useCacheRefresh:wh};Mh.useEffectEvent=ph;function pc(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 mc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Vn(),o=di(a);o.payload=t,n!=null&&(o.callback=n),t=hi(e,o,a),t!==null&&(Gn(t,e,a),is(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Vn(),o=di(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=hi(e,o,a),t!==null&&(Gn(t,e,a),is(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vn(),a=di(n);a.tag=2,t!=null&&(a.callback=t),t=hi(e,a,n),t!==null&&(Gn(t,e,n),is(t,e,n))}};function Ch(e,t,n,a,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,h):t.prototype&&t.prototype.isPureReactComponent?!Ql(n,a)||!Ql(o,c):!0}function Dh(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&&mc.enqueueReplaceState(t,t.state,null)}function Pi(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 Lh(e){Xs(e)}function zh(e){console.error(e)}function Uh(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 Bh(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 gc(e,t,n){return n=di(n),n.tag=3,n.payload={element:null},n.callback=function(){yr(e,t)},n}function jh(e){return e=di(e),e.tag=3,e}function Ih(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(){Bh(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Bh(t,n,a),typeof o!="function"&&(vi===null?vi=new Set([this]):vi.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function Wy(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&dl(t,n,o,!0),n=Pn.current,n!==null){switch(n.tag){case 31:case 13:return sa===null?kr():n.alternate===null&&Dt===0&&(Dt=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),qc(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)),qc(e,a,o)),!1}throw Error(l(435,n.tag))}return qc(e,a,o),kr(),!1}if(it)return t=Pn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==zo&&(e=Error(l(422),{cause:a}),Wl(na(e,n)))):(a!==zo&&(t=Error(l(423),{cause:a}),Wl(na(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=na(a,n),o=gc(e.stateNode,a,o),Ko(e,o),Dt!==4&&(Dt=2)),!1;var c=Error(l(520),{cause:a});if(c=na(c,n),ys===null?ys=[c]:ys.push(c),Dt!==4&&(Dt=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=gc(n.stateNode,a,e),Ko(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"&&(vi===null||!vi.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=jh(o),Ih(o,e,n,a),Ko(n,o),!1}n=n.return}while(n!==null);return!1}var bc=Error(l(461)),Ft=!1;function mn(e,t,n,a){t.child=e===null?$d(t,null,n,a):Fi(t,e.child,n,a)}function Hh(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var h={};for(var v in a)v!=="ref"&&(h[v]=a[v])}else h=a;return qi(t),a=Jo(e,t,n,h,c,o),v=Wo(),e!==null&&!Ft?(ec(e,t,o),Ga(e,t,o)):(it&&v&&Do(t),t.flags|=1,mn(e,t,a,o),t.child)}function qh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!ko(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Gh(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,!xc(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(h,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 Gh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(Ql(c,a)&&e.ref===t.ref)if(Ft=!1,t.pendingProps=a=c,xc(e,o))(e.flags&131072)!==0&&(Ft=!0);else return t.lanes=e.lanes,Ga(e,t,o)}return yc(e,t,n,a,o)}function $h(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 Yh(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?Kd(t,c):Zo(),Pd(t);else return a=t.lanes=536870912,Yh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(ar(t,c.cachePool),Kd(t,c),mi(),t.memoizedState=null):(e!==null&&ar(t,null),Zo(),mi());return mn(e,t,o,n),t.child}function fs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Yh(e,t,n,a,o){var c=Go();return c=c===null?null:{parent:$t._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ar(t,null),Zo(),Pd(t),e!==null&&dl(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 Fh(e,t,n){return Fi(t,e.child,null,n),e=vr(t,t.pendingProps),e.flags|=2,Zn(t),t.memoizedState=null,e}function ev(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(it){if(a.mode==="hidden")return e=vr(t,a),t.lanes=536870912,fs(null,e);if(Qo(t),(e=xt)?(e=am(e,la),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ri!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=Rd(e),n.return=t,t.child=n,hn=t,xt=null)):e=null,e===null)throw ci(t);return t.lanes=536870912,null}return vr(t,a)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(Qo(t),o)if(t.flags&256)t.flags&=-257,t=Fh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(Ft||dl(e,t,n,!1),o=(n&e.childLanes)!==0,Ft||o){if(a=St,a!==null&&(h=He(a,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Bi(e,h),Gn(a,e,h),bc;kr(),t=Fh(e,t,n)}else e=c.treeContext,xt=ra(h.nextSibling),hn=t,it=!0,oi=null,la=!1,e!==null&&Md(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 yc(e,t,n,a,o){return qi(t),n=Jo(e,t,n,a,void 0,o),a=Wo(),e!==null&&!Ft?(ec(e,t,o),Ga(e,t,o)):(it&&a&&Do(t),t.flags|=1,mn(e,t,n,o),t.child)}function Kh(e,t,n,a,o,c){return qi(t),t.updateQueue=null,n=Xd(t,a,n,o),Zd(e),a=Wo(),e!==null&&!Ft?(ec(e,t,c),Ga(e,t,c)):(it&&a&&Do(t),t.flags|=1,mn(e,t,n,c),t.child)}function Ph(e,t,n,a,o){if(qi(t),t.stateNode===null){var c=ol,h=n.contextType;typeof h=="object"&&h!==null&&(c=pn(h)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=mc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},Yo(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?pn(h):ol,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(pc(t,n,h,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&mc.enqueueReplaceState(c,c.state,null),ss(t,a,c,o),ls(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,R=Pi(n,v);c.props=R;var Y=c.context,ee=n.contextType;h=ol,typeof ee=="object"&&ee!==null&&(h=pn(ee));var ae=n.getDerivedStateFromProps;ee=typeof ae=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,ee||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||Y!==h)&&Dh(t,c,a,h),fi=!1;var F=t.memoizedState;c.state=F,ss(t,a,c,o),ls(),Y=t.memoizedState,v||F!==Y||fi?(typeof ae=="function"&&(pc(t,n,ae,a),Y=t.memoizedState),(R=fi||Ch(t,n,R,a,F,Y,h))?(ee||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=Y),c.props=a,c.state=Y,c.context=h,a=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,Fo(e,t),h=t.memoizedProps,ee=Pi(n,h),c.props=ee,ae=t.pendingProps,F=c.context,Y=n.contextType,R=ol,typeof Y=="object"&&Y!==null&&(R=pn(Y)),v=n.getDerivedStateFromProps,(Y=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==ae||F!==R)&&Dh(t,c,a,R),fi=!1,F=t.memoizedState,c.state=F,ss(t,a,c,o),ls();var Z=t.memoizedState;h!==ae||F!==Z||fi||e!==null&&e.dependencies!==null&&tr(e.dependencies)?(typeof v=="function"&&(pc(t,n,v,a),Z=t.memoizedState),(ee=fi||Ch(t,n,ee,a,F,Z,R)||e!==null&&e.dependencies!==null&&tr(e.dependencies))?(Y||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,Z,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,Z,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=Z),c.props=a,c.state=Z,c.context=R,a=ee):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===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=Fi(t,e.child,null,o),t.child=Fi(t,null,n,o)):mn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ga(e,t,o),e}function Zh(e,t,n,a){return Ii(),t.flags|=256,mn(e,t,n,a),t.child}var vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ec(e){return{baseLanes:e,cachePool:Bd()}}function _c(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Qn),e}function Xh(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(Bt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(it){if(o?pi(t):mi(),(e=xt)?(e=am(e,la),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ri!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=Rd(e),n.return=t,t.child=n,hn=t,xt=null)):e=null,e===null)throw ci(t);return au(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,o?(mi(),o=t.mode,v=_r({mode:"hidden",children:v},o),a=ji(a,o,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=Ec(n),a.childLanes=_c(e,h,n),t.memoizedState=vc,fs(null,a)):(pi(t),Sc(t,v))}var R=e.memoizedState;if(R!==null&&(v=R.dehydrated,v!==null)){if(c)t.flags&256?(pi(t),t.flags&=-257,t=Tc(e,t,n)):t.memoizedState!==null?(mi(),t.child=e.child,t.flags|=128,t=null):(mi(),v=a.fallback,o=t.mode,a=_r({mode:"visible",children:a.children},o),v=ji(v,o,n,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,Fi(t,e.child,null,n),a=t.child,a.memoizedState=Ec(n),a.childLanes=_c(e,h,n),t.memoizedState=vc,t=fs(null,a));else if(pi(t),au(v)){if(h=v.nextSibling&&v.nextSibling.dataset,h)var Y=h.dgst;h=Y,a=Error(l(419)),a.stack="",a.digest=h,Wl({value:a,source:null,stack:null}),t=Tc(e,t,n)}else if(Ft||dl(e,t,n,!1),h=(n&e.childLanes)!==0,Ft||h){if(h=St,h!==null&&(a=He(h,n),a!==0&&a!==R.retryLane))throw R.retryLane=a,Bi(e,a),Gn(h,e,a),bc;nu(v)||kr(),t=Tc(e,t,n)}else nu(v)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,xt=ra(v.nextSibling),hn=t,it=!0,oi=null,la=!1,e!==null&&Md(t,e),t=Sc(t,a.children),t.flags|=4096);return t}return o?(mi(),v=a.fallback,o=t.mode,R=e.child,Y=R.sibling,a=Ua(R,{mode:"hidden",children:a.children}),a.subtreeFlags=R.subtreeFlags&65011712,Y!==null?v=Ua(Y,v):(v=ji(v,o,n,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,fs(null,a),a=t.child,v=e.child.memoizedState,v===null?v=Ec(n):(o=v.cachePool,o!==null?(R=$t._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=Bd(),v={baseLanes:v.baseLanes|n,cachePool:o}),a.memoizedState=v,a.childLanes=_c(e,h,n),t.memoizedState=vc,fs(e.child,a)):(pi(t),n=e.child,e=n.sibling,n=Ua(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function Sc(e,t){return t=_r({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _r(e,t){return e=Kn(22,e,null,t),e.lanes=0,e}function Tc(e,t,n){return Fi(t,e.child,null,n),e=Sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),jo(e.return,t,n)}function Nc(e,t,n,a,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function Vh(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var h=Bt.current,v=(h&2)!==0;if(v?(h=h&1|2,t.flags|=128):h&=1,H(Bt,h),mn(e,t,a,n),a=it?Jl:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qh(e,n,t);else if(e.tag===19)Qh(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),Nc(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}Nc(t,!0,n,null,c,a);break;case"together":Nc(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),yi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(dl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=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 xc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&tr(e)))}function tv(e,t,n){switch(t.tag){case 3:De(t,t.stateNode.containerInfo),ui(t,$t,e.memoizedState.cache),Ii();break;case 27:case 5:Ue(t);break;case 4:De(t,t.stateNode.containerInfo);break;case 10:ui(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(pi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Xh(e,t,n):(pi(t),e=Ga(e,t,n),e!==null?e.sibling:null);pi(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(dl(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return Vh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),H(Bt,Bt.current),a)break;return null;case 22:return t.lanes=0,$h(e,t,n,t.pendingProps);case 24:ui(t,$t,e.memoizedState.cache)}return Ga(e,t,n)}function Jh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ft=!0;else{if(!xc(e,n)&&(t.flags&128)===0)return Ft=!1,tv(e,t,n);Ft=(e.flags&131072)!==0}else Ft=!1,it&&(t.flags&1048576)!==0&&kd(t,Jl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=$i(t.elementType),t.type=e,typeof e=="function")ko(e)?(a=Pi(e,a),t.tag=1,t=Ph(null,t,e,a,n)):(t.tag=0,t=yc(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===re){t.tag=11,t=Hh(null,t,e,a,n);break e}else if(o===ie){t.tag=14,t=qh(null,t,e,a,n);break e}}throw t=Ne(e)||e,Error(l(306,t,""))}}return t;case 0:return yc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Pi(a,t.pendingProps),Ph(e,t,a,o,n);case 3:e:{if(De(t,t.stateNode.containerInfo),e===null)throw Error(l(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,Fo(e,t),ss(t,a,null,n);var h=t.memoizedState;if(a=h.cache,ui(t,$t,a),a!==c.cache&&Io(t,[$t],n,!0),ls(),a=h.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Zh(e,t,a,n);break e}else if(a!==o){o=na(Error(l(424)),t),Wl(o),t=Zh(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(xt=ra(e.firstChild),hn=t,it=!0,oi=null,la=!0,n=$d(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}mn(e,t,a,n)}t=t.child}return t;case 26:return Er(e,t),e===null?(n=cm(t.type,null,t.pendingProps,null))?t.memoizedState=n:it||(n=t.type,e=t.pendingProps,a=Br(we.current).createElement(n),a[Mt]=t,a[an]=e,gn(a,n,e),pt(a),t.stateNode=a):t.memoizedState=cm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ue(t),e===null&&it&&(a=t.stateNode=sm(t.type,t.pendingProps,we.current),hn=t,la=!0,o=xt,Ti(t.type)?(iu=o,xt=ra(a.firstChild)):xt=o),mn(e,t,t.pendingProps.children,n),Er(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&it&&((o=a=xt)&&(a=Mv(a,t.type,t.pendingProps,la),a!==null?(t.stateNode=a,hn=t,xt=ra(a.firstChild),la=!1,o=!0):o=!1),o||ci(t)),Ue(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,a=c.children,Wc(o,c)?a=null:h!==null&&Wc(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=Jo(e,t,Ky,null,null,n),ws._currentValue=o),Er(e,t),mn(e,t,a,n),t.child;case 6:return e===null&&it&&((e=n=xt)&&(n=Cv(n,t.pendingProps,la),n!==null?(t.stateNode=n,hn=t,xt=null,e=!0):e=!1),e||ci(t)),null;case 13:return Xh(e,t,n);case 4:return De(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Fi(t,null,a,n):mn(e,t,a,n),t.child;case 11:return Hh(e,t,t.type,t.pendingProps,n);case 7:return mn(e,t,t.pendingProps,n),t.child;case 8:return mn(e,t,t.pendingProps.children,n),t.child;case 12:return mn(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,ui(t,t.type,a.value),mn(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,qi(t),o=pn(o),a=a(o),t.flags|=1,mn(e,t,a,n),t.child;case 14:return qh(e,t,t.type,t.pendingProps,n);case 15:return Gh(e,t,t.type,t.pendingProps,n);case 19:return Vh(e,t,n);case 31:return ev(e,t,n);case 22:return $h(e,t,n,t.pendingProps);case 24:return qi(t),a=pn($t),e===null?(o=Go(),o===null&&(o=St,c=Ho(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},Yo(t),ui(t,$t,o)):((e.lanes&n)!==0&&(Fo(e,t),ss(t,null,null,n),ls()),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),ui(t,$t,a)):(a=c.cache,ui(t,$t,a),a!==o.cache&&Io(t,[$t],n,!0))),mn(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 wc(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(xp())e.flags|=8192;else throw Yi=lr,$o}else e.flags&=-16777217}function Wh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!pm(t))if(xp())e.flags|=8192;else throw Yi=lr,$o}function Sr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Me():536870912,e.lanes|=t,Nl|=t)}function ds(e,t){if(!it)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 wt(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 nv(e,t,n){var a=t.pendingProps;switch(Lo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(t),null;case 1:return wt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ia($t),Ae(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fl(t)?$a(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Uo())),wt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?($a(t),c!==null?(wt(t),Wh(t,c)):(wt(t),wc(t,o,null,a,n))):c?c!==e.memoizedState?($a(t),wt(t),Wh(t,c)):(wt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&$a(t),wt(t),wc(t,o,e,a,n)),null;case 27:if(Le(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 wt(t),null}e=ue.current,fl(t)?Cd(t):(e=sm(o,a,n),t.stateNode=e,$a(t))}return wt(t),null;case 5:if(Le(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 wt(t),null}if(c=ue.current,fl(t))Cd(t);else{var h=Br(we.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(o,{is:a.is}):h.createElement(o)}}c[Mt]=t,c[an]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(gn(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 wt(t),wc(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,fl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=hn,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[Mt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Xp(e.nodeValue,n)),e||ci(t,!0)}else e=Br(e).createTextNode(a),e[Mt]=t,t.stateNode=e}return wt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=fl(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;wt(t),e=!1}else n=Uo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Zn(t),t):(Zn(t),null);if((t.flags&128)!==0)throw Error(l(558))}return wt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fl(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;wt(t),o=!1}else o=Uo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Zn(t),t):(Zn(t),null)}return Zn(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),wt(t),null);case 4:return Ae(),e===null&&Zc(t.stateNode.containerInfo),wt(t),null;case 10:return Ia(t.type),wt(t),null;case 19:if(C(Bt),a=t.memoizedState,a===null)return wt(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)ds(a,!1);else{if(Dt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=cr(e),c!==null){for(t.flags|=128,ds(a,!1),e=c.updateQueue,t.updateQueue=e,Sr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ad(n,e),n=n.sibling;return H(Bt,Bt.current&1|2),it&&Ba(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&lt()>Ar&&(t.flags|=128,o=!0,ds(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),ds(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!it)return wt(t),null}else 2*lt()-a.renderingStartTime>Ar&&n!==536870912&&(t.flags|=128,o=!0,ds(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=lt(),e.sibling=null,n=Bt.current,H(Bt,o?n&1|2:n&1),it&&Ba(t,a.treeForkCount),e):(wt(t),null);case 22:case 23:return Zn(t),Xo(),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&&(wt(t),t.subtreeFlags&6&&(t.flags|=8192)):wt(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&&C(Gi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ia($t),wt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function av(e,t){switch(Lo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ia($t),Ae(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Le(t),null;case 31:if(t.memoizedState!==null){if(Zn(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(Zn(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 C(Bt),null;case 4:return Ae(),null;case 10:return Ia(t.type),null;case 22:case 23:return Zn(t),Xo(),e!==null&&C(Gi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ia($t),null;case 25:return null;default:return null}}function ep(e,t){switch(Lo(t),t.tag){case 3:Ia($t),Ae();break;case 26:case 27:case 5:Le(t);break;case 4:Ae();break;case 31:t.memoizedState!==null&&Zn(t);break;case 13:Zn(t);break;case 19:C(Bt);break;case 10:Ia(t.type);break;case 22:case 23:Zn(t),Xo(),e!==null&&C(Gi);break;case 24:Ia($t)}}function hs(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,h=n.inst;a=c(),h.destroy=a}n=n.next}while(n!==o)}}catch(v){gt(t,t.return,v)}}function gi(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 h=a.inst,v=h.destroy;if(v!==void 0){h.destroy=void 0,o=t;var R=n,Y=v;try{Y()}catch(ee){gt(o,R,ee)}}}a=a.next}while(a!==c)}}catch(ee){gt(t,t.return,ee)}}function tp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Fd(t,n)}catch(a){gt(e,e.return,a)}}}function np(e,t,n){n.props=Pi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){gt(e,t,a)}}function ps(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){gt(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){gt(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){gt(e,t,o)}else n.current=null}function ap(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){gt(e,e.return,o)}}function Ac(e,t,n){try{var a=e.stateNode;xv(a,e.type,n,t),a[an]=t}catch(o){gt(e,e.return,o)}}function ip(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ti(e.type)||e.tag===4}function Rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ip(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ti(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Oc(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=se));else if(a!==4&&(a===27&&Ti(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Oc(e,t,n),e=e.sibling;e!==null;)Oc(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&&Ti(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 lp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);gn(t,a,n),t[Mt]=e,t[an]=n}catch(c){gt(e,e.return,c)}}var Ya=!1,Kt=!1,kc=!1,sp=typeof WeakSet=="function"?WeakSet:Set,sn=null;function iv(e,t){if(e=e.containerInfo,Vc=Yr,e=yd(e),To(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 h=0,v=-1,R=-1,Y=0,ee=0,ae=e,F=null;t:for(;;){for(var Z;ae!==n||o!==0&&ae.nodeType!==3||(v=h+o),ae!==c||a!==0&&ae.nodeType!==3||(R=h+a),ae.nodeType===3&&(h+=ae.nodeValue.length),(Z=ae.firstChild)!==null;)F=ae,ae=Z;for(;;){if(ae===e)break t;if(F===n&&++Y===o&&(v=h),F===c&&++ee===a&&(R=h),(Z=ae.nextSibling)!==null)break;ae=F,F=ae.parentNode}ae=Z}n=v===-1||R===-1?null:{start:v,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jc={focusedElem:e,selectionRange:n},Yr=!1,sn=t;sn!==null;)if(t=sn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,sn=e;else for(;sn!==null;){switch(t=sn,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 _e=Pi(n.type,o);e=a.getSnapshotBeforeUpdate(_e,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(ze){gt(n,n.return,ze)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":tu(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,sn=e;break}sn=t.return}}function rp(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Ka(e,n),a&4&&hs(5,n);break;case 1:if(Ka(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){gt(n,n.return,h)}else{var o=Pi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){gt(n,n.return,h)}}a&64&&tp(n),a&512&&ps(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{Fd(e,t)}catch(h){gt(n,n.return,h)}}break;case 27:t===null&&a&4&&lp(n);case 26:case 5:Ka(e,n),t===null&&a&4&&ap(n),a&512&&ps(n,n.return);break;case 12:Ka(e,n);break;case 31:Ka(e,n),a&4&&up(e,n);break;case 13:Ka(e,n),a&4&&fp(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=hv.bind(null,n),Dv(e,n))));break;case 22:if(a=n.memoizedState!==null||Ya,!a){t=t!==null&&t.memoizedState!==null||Kt,o=Ya;var c=Kt;Ya=a,(Kt=t)&&!c?Pa(e,n,(n.subtreeFlags&8772)!==0):Ka(e,n),Ya=o,Kt=c}break;case 30:break;default:Ka(e,n)}}function op(e){var t=e.alternate;t!==null&&(e.alternate=null,op(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ti(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 Rt=null,jn=!1;function Fa(e,t,n){for(n=n.child;n!==null;)cp(e,t,n),n=n.sibling}function cp(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(En,n)}catch{}switch(n.tag){case 26:Kt||xa(n,t),Fa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||xa(n,t);var a=Rt,o=jn;Ti(n.type)&&(Rt=n.stateNode,jn=!1),Fa(e,t,n),Ts(n.stateNode),Rt=a,jn=o;break;case 5:Kt||xa(n,t);case 6:if(a=Rt,o=jn,Rt=null,Fa(e,t,n),Rt=a,jn=o,Rt!==null)if(jn)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(n.stateNode)}catch(c){gt(n,t,c)}else try{Rt.removeChild(n.stateNode)}catch(c){gt(n,t,c)}break;case 18:Rt!==null&&(jn?(e=Rt,tm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Cl(e)):tm(Rt,n.stateNode));break;case 4:a=Rt,o=jn,Rt=n.stateNode.containerInfo,jn=!0,Fa(e,t,n),Rt=a,jn=o;break;case 0:case 11:case 14:case 15:gi(2,n,t),Kt||gi(4,n,t),Fa(e,t,n);break;case 1:Kt||(xa(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&np(n,t,a)),Fa(e,t,n);break;case 21:Fa(e,t,n);break;case 22:Kt=(a=Kt)||n.memoizedState!==null,Fa(e,t,n),Kt=a;break;default:Fa(e,t,n)}}function up(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Cl(e)}catch(n){gt(t,t.return,n)}}}function fp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Cl(e)}catch(n){gt(t,t.return,n)}}function lv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sp),t;default:throw Error(l(435,e.tag))}}function Nr(e,t){var n=lv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=pv.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,h=t,v=h;e:for(;v!==null;){switch(v.tag){case 27:if(Ti(v.type)){Rt=v.stateNode,jn=!1;break e}break;case 5:Rt=v.stateNode,jn=!1;break e;case 3:case 4:Rt=v.stateNode.containerInfo,jn=!0;break e}v=v.return}if(Rt===null)throw Error(l(160));cp(c,h,o),Rt=null,jn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dp(t,e),t=t.sibling}var da=null;function dp(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:In(t,e),Hn(e),a&4&&(gi(3,e,e.return),hs(3,e),gi(5,e,e.return));break;case 1:In(t,e),Hn(e),a&512&&(Kt||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=da;if(In(t,e),Hn(e),a&512&&(Kt||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"))),gn(c,a,n),c[Mt]=e,pt(c),a=c;break e;case"link":var h=dm("link","href",o).get(a+(n.href||""));if(h){for(var v=0;v<h.length;v++)if(c=h[v],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(v,1);break t}}c=o.createElement(a),gn(c,a,n),o.head.appendChild(c);break;case"meta":if(h=dm("meta","content",o).get(a+(n.content||""))){for(v=0;v<h.length;v++)if(c=h[v],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(v,1);break t}}c=o.createElement(a),gn(c,a,n),o.head.appendChild(c);break;default:throw Error(l(468,a))}c[Mt]=e,pt(c),a=c}e.stateNode=a}else hm(o,e.type,e.stateNode);else e.stateNode=fm(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?hm(o,e.type,e.stateNode):fm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Ac(e,e.memoizedProps,n.memoizedProps)}break;case 27:In(t,e),Hn(e),a&512&&(Kt||n===null||xa(n,n.return)),n!==null&&a&4&&Ac(e,e.memoizedProps,n.memoizedProps);break;case 5:if(In(t,e),Hn(e),a&512&&(Kt||n===null||xa(n,n.return)),e.flags&32){o=e.stateNode;try{X(o,"")}catch(_e){gt(e,e.return,_e)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Ac(e,o,n!==null?n.memoizedProps:o)),a&1024&&(kc=!0);break;case 6:if(In(t,e),Hn(e),a&4){if(e.stateNode===null)throw Error(l(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(_e){gt(e,e.return,_e)}}break;case 3:if(Hr=null,o=da,da=jr(t.containerInfo),In(t,e),da=o,Hn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Cl(t.containerInfo)}catch(_e){gt(e,e.return,_e)}kc&&(kc=!1,hp(e));break;case 4:a=da,da=jr(e.stateNode.containerInfo),In(t,e),Hn(e),da=a;break;case 12:In(t,e),Hn(e);break;case 31:In(t,e),Hn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 13:In(t,e),Hn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(wr=lt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 22:o=e.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,Y=Ya,ee=Kt;if(Ya=Y||o,Kt=ee||R,In(t,e),Kt=ee,Ya=Y,Hn(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||R||Ya||Kt||Zi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){R=n=t;try{if(c=R.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{v=R.stateNode;var ae=R.memoizedProps.style,F=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;v.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(_e){gt(R,R.return,_e)}}}else if(t.tag===6){if(n===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(_e){gt(R,R.return,_e)}}}else if(t.tag===18){if(n===null){R=t;try{var Z=R.stateNode;o?nm(Z,!0):nm(R.stateNode,!1)}catch(_e){gt(R,R.return,_e)}}}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),Hn(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),Hn(e)}}function Hn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(ip(a)){n=a;break}a=a.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,c=Rc(e);Tr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(X(h,""),n.flags&=-33);var v=Rc(e);Tr(e,v,h);break;case 3:case 4:var R=n.stateNode.containerInfo,Y=Rc(e);Oc(e,Y,R);break;default:throw Error(l(161))}}catch(ee){gt(e,e.return,ee)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hp(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;)rp(e,t.alternate,t),t=t.sibling}function Zi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:gi(4,t,t.return),Zi(t);break;case 1:xa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&np(t,t.return,n),Zi(t);break;case 27:Ts(t.stateNode);case 26:case 5:xa(t,t.return),Zi(t);break;case 22:t.memoizedState===null&&Zi(t);break;case 30:Zi(t);break;default:Zi(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,h=c.flags;switch(c.tag){case 0:case 11:case 15:Pa(o,c,n),hs(4,c);break;case 1:if(Pa(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(Y){gt(a,a.return,Y)}if(a=c,o=a.updateQueue,o!==null){var v=a.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)Yd(R[o],v)}catch(Y){gt(a,a.return,Y)}}n&&h&64&&tp(c),ps(c,c.return);break;case 27:lp(c);case 26:case 5:Pa(o,c,n),n&&a===null&&h&4&&ap(c),ps(c,c.return);break;case 12:Pa(o,c,n);break;case 31:Pa(o,c,n),n&&h&4&&up(o,c);break;case 13:Pa(o,c,n),n&&h&4&&fp(o,c);break;case 22:c.memoizedState===null&&Pa(o,c,n),ps(c,c.return);break;case 30:break;default:Pa(o,c,n)}t=t.sibling}}function Mc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&es(n))}function Cc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e))}function ha(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pp(e,t,n,a),t=t.sibling}function pp(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:ha(e,t,n,a),o&2048&&hs(9,t);break;case 1:ha(e,t,n,a);break;case 3:ha(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&&es(e)));break;case 12:if(o&2048){ha(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,v=c.onPostCommit;typeof v=="function"&&v(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){gt(t,t.return,R)}}else ha(e,t,n,a);break;case 31:ha(e,t,n,a);break;case 13:ha(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?ha(e,t,n,a):ms(e,t):c._visibility&2?ha(e,t,n,a):(c._visibility|=2,_l(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Mc(h,t);break;case 24:ha(e,t,n,a),o&2048&&Cc(t.alternate,t);break;default:ha(e,t,n,a)}}function _l(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,v=n,R=a,Y=h.flags;switch(h.tag){case 0:case 11:case 15:_l(c,h,v,R,o),hs(8,h);break;case 23:break;case 22:var ee=h.stateNode;h.memoizedState!==null?ee._visibility&2?_l(c,h,v,R,o):ms(c,h):(ee._visibility|=2,_l(c,h,v,R,o)),o&&Y&2048&&Mc(h.alternate,h);break;case 24:_l(c,h,v,R,o),o&&Y&2048&&Cc(h.alternate,h);break;default:_l(c,h,v,R,o)}t=t.sibling}}function ms(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:ms(n,a),o&2048&&Mc(a.alternate,a);break;case 24:ms(n,a),o&2048&&Cc(a.alternate,a);break;default:ms(n,a)}t=t.sibling}}var gs=8192;function Sl(e,t,n){if(e.subtreeFlags&gs)for(e=e.child;e!==null;)mp(e,t,n),e=e.sibling}function mp(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&gs&&e.memoizedState!==null&&Fv(n,da,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var a=da;da=jr(e.stateNode.containerInfo),Sl(e,t,n),da=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gs,gs=16777216,Sl(e,t,n),gs=a):Sl(e,t,n));break;default:Sl(e,t,n)}}function gp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];sn=a,yp(a,e)}gp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bp(e),e=e.sibling}function bp(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&gi(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,xr(e)):bs(e);break;default:bs(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];sn=a,yp(a,e)}gp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:gi(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 yp(e,t){for(;sn!==null;){var n=sn;switch(n.tag){case 0:case 11:case 15:gi(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:es(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,sn=a;else e:for(n=e;sn!==null;){a=sn;var o=a.sibling,c=a.return;if(op(a),a===n){sn=null;break e}if(o!==null){o.return=c,sn=o;break e}sn=c}}}var sv={getCacheForType:function(e){var t=pn($t),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return pn($t).controller.signal}},rv=typeof WeakMap=="function"?WeakMap:Map,dt=0,St=null,Ve=null,nt=0,mt=0,Xn=null,bi=!1,Tl=!1,Dc=!1,Za=0,Dt=0,yi=0,Xi=0,Lc=0,Qn=0,Nl=0,ys=null,qn=null,zc=!1,wr=0,vp=0,Ar=1/0,Rr=null,vi=null,Vt=0,Ei=null,xl=null,Xa=0,Uc=0,Bc=null,Ep=null,vs=0,jc=null;function Vn(){return(dt&2)!==0&&nt!==0?nt&-nt:I.T!==null?Yc():ya()}function _p(){if(Qn===0)if((nt&536870912)===0||it){var e=fn;fn<<=1,(fn&3932160)===0&&(fn=262144),Qn=e}else Qn=536870912;return e=Pn.current,e!==null&&(e.flags|=32),Qn}function Gn(e,t,n){(e===St&&(mt===2||mt===9)||e.cancelPendingCommit!==null)&&(wl(e,0),_i(e,nt,Qn,!1)),Xe(e,n),((dt&2)===0||e!==St)&&(e===St&&((dt&2)===0&&(Xi|=n),Dt===4&&_i(e,nt,Qn,!1)),wa(e))}function Sp(e,t,n){if((dt&6)!==0)throw Error(l(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||W(e,t),o=a?uv(e,t):Hc(e,t,!0),c=a;do{if(o===0){Tl&&!a&&_i(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!ov(n)){o=Hc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var v=e;o=ys;var R=v.current.memoizedState.isDehydrated;if(R&&(wl(v,h).flags|=256),h=Hc(v,h,!1),h!==2){if(Dc&&!R){v.errorRecoveryDisabledLanes|=c,Xi|=c,o=4;break e}c=qn,qn=o,c!==null&&(qn===null?qn=c:qn.push.apply(qn,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){wl(e,0),_i(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:_i(a,t,Qn,!bi);break e;case 2:qn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=wr+300-lt(),10<o)){if(_i(a,t,Qn,!bi),O(a,0,!0)!==0)break e;Xa=t,a.timeoutHandle=Wp(Tp.bind(null,a,n,qn,Rr,zc,t,Qn,Xi,Nl,bi,c,"Throttled",-0,0),o);break e}Tp(a,n,qn,Rr,zc,t,Qn,Xi,Nl,bi,c,null,-0,0)}}break}while(!0);wa(e)}function Tp(e,t,n,a,o,c,h,v,R,Y,ee,ae,F,Z){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:se},mp(t,c,ae);var _e=(c&62914560)===c?wr-lt():(c&4194048)===c?vp-lt():0;if(_e=Kv(ae,_e),_e!==null){Xa=c,e.cancelPendingCommit=_e(Mp.bind(null,e,t,c,n,a,o,h,v,R,ee,ae,null,F,Z)),_i(e,c,h,!Y);return}}Mp(e,t,c,n,a,o,h,v,R)}function ov(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(!Fn(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 _i(e,t,n,a){t&=~Lc,t&=~Xi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-kt(o),h=1<<c;a[c]=-1,o&=~h}n!==0&&P(e,n,t)}function Or(){return(dt&6)===0?(Es(0),!1):!0}function Ic(){if(Ve!==null){if(mt===0)var e=Ve.return;else e=Ve,ja=Hi=null,tc(e),gl=null,ns=0,e=Ve;for(;e!==null;)ep(e.alternate,e),e=e.return;Ve=null}}function wl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Rv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Xa=0,Ic(),St=e,Ve=n=Ua(e.current,null),nt=t,mt=0,Xn=null,bi=!1,Tl=W(e,t),Dc=!1,Nl=Qn=Lc=Xi=yi=Dt=0,qn=ys=null,zc=!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-kt(a),c=1<<o;t|=e[o],a&=~c}return Za=t,Qs(),n}function Np(e,t){Ge=null,I.H=us,t===ml||t===ir?(t=Hd(),mt=3):t===$o?(t=Hd(),mt=4):mt=t===bc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Xn=t,Ve===null&&(Dt=1,yr(e,na(t,e.current)))}function xp(){var e=Pn.current;return e===null?!0:(nt&4194048)===nt?sa===null:(nt&62914560)===nt||(nt&536870912)!==0?e===sa:!1}function wp(){var e=I.H;return I.H=us,e===null?us:e}function Ap(){var e=I.A;return I.A=sv,e}function kr(){Dt=4,bi||(nt&4194048)!==nt&&Pn.current!==null||(Tl=!0),(yi&134217727)===0&&(Xi&134217727)===0||St===null||_i(St,nt,Qn,!1)}function Hc(e,t,n){var a=dt;dt|=2;var o=wp(),c=Ap();(St!==e||nt!==t)&&(Rr=null,wl(e,t)),t=!1;var h=Dt;e:do try{if(mt!==0&&Ve!==null){var v=Ve,R=Xn;switch(mt){case 8:Ic(),h=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(t=!0);var Y=mt;if(mt=0,Xn=null,Al(e,v,R,Y),n&&Tl){h=0;break e}break;default:Y=mt,mt=0,Xn=null,Al(e,v,R,Y)}}cv(),h=Dt;break}catch(ee){Np(e,ee)}while(!0);return t&&e.shellSuspendCounter++,ja=Hi=null,dt=a,I.H=o,I.A=c,Ve===null&&(St=null,nt=0,Qs()),h}function cv(){for(;Ve!==null;)Rp(Ve)}function uv(e,t){var n=dt;dt|=2;var a=wp(),o=Ap();St!==e||nt!==t?(Rr=null,Ar=lt()+500,wl(e,t)):Tl=W(e,t);e:do try{if(mt!==0&&Ve!==null){t=Ve;var c=Xn;t:switch(mt){case 1:mt=0,Xn=null,Al(e,t,c,1);break;case 2:case 9:if(jd(c)){mt=0,Xn=null,Op(t);break}t=function(){mt!==2&&mt!==9||St!==e||(mt=7),wa(e)},c.then(t,t);break e;case 3:mt=7;break e;case 4:mt=5;break e;case 7:jd(c)?(mt=0,Xn=null,Op(t)):(mt=0,Xn=null,Al(e,t,c,7));break;case 5:var h=null;switch(Ve.tag){case 26:h=Ve.memoizedState;case 5:case 27:var v=Ve;if(h?pm(h):v.stateNode.complete){mt=0,Xn=null;var R=v.sibling;if(R!==null)Ve=R;else{var Y=v.return;Y!==null?(Ve=Y,Mr(Y)):Ve=null}break t}}mt=0,Xn=null,Al(e,t,c,5);break;case 6:mt=0,Xn=null,Al(e,t,c,6);break;case 8:Ic(),Dt=6;break e;default:throw Error(l(462))}}fv();break}catch(ee){Np(e,ee)}while(!0);return ja=Hi=null,I.H=a,I.A=o,dt=n,Ve!==null?0:(St=null,nt=0,Qs(),Dt)}function fv(){for(;Ve!==null&&!ba();)Rp(Ve)}function Rp(e){var t=Jh(e.alternate,e,Za);e.memoizedProps=e.pendingProps,t===null?Mr(e):Ve=t}function Op(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Kh(n,t,t.pendingProps,t.type,void 0,nt);break;case 11:t=Kh(n,t,t.pendingProps,t.type.render,t.ref,nt);break;case 5:tc(t);default:ep(n,t),t=Ve=Ad(t,Za),t=Jh(n,t,Za)}e.memoizedProps=e.pendingProps,t===null?Mr(e):Ve=t}function Al(e,t,n,a){ja=Hi=null,tc(t),gl=null,ns=0;var o=t.return;try{if(Wy(e,o,t,n,nt)){Dt=1,yr(e,na(n,e.current)),Ve=null;return}}catch(c){if(o!==null)throw Ve=o,c;Dt=1,yr(e,na(n,e.current)),Ve=null;return}t.flags&32768?(it||a===1?e=!0:Tl||(nt&536870912)!==0?e=!1:(bi=e=!0,(a===2||a===9||a===3||a===6)&&(a=Pn.current,a!==null&&a.tag===13&&(a.flags|=16384))),kp(t,e)):Mr(t)}function Mr(e){var t=e;do{if((t.flags&32768)!==0){kp(t,bi);return}e=t.return;var n=nv(t.alternate,t,Za);if(n!==null){Ve=n;return}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);Dt===0&&(Dt=5)}function kp(e,t){do{var n=av(e.alternate,e);if(n!==null){n.flags&=32767,Ve=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ve=e;return}Ve=e=n}while(e!==null);Dt=6,Ve=null}function Mp(e,t,n,a,o,c,h,v,R){e.cancelPendingCommit=null;do Cr();while(Vt!==0);if((dt&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=Ro,U(e,n,c,h,v,R),e===St&&(Ve=St=null,nt=0),xl=t,Ei=e,Xa=n,Uc=c,Bc=o,Ep=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,mv(un,function(){return Up(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=I.T,I.T=null,o=ne.p,ne.p=2,h=dt,dt|=4;try{iv(e,t,n)}finally{dt=h,ne.p=o,I.T=a}}Vt=1,Cp(),Dp(),Lp()}}function Cp(){if(Vt===1){Vt=0;var e=Ei,t=xl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=I.T,I.T=null;var a=ne.p;ne.p=2;var o=dt;dt|=4;try{dp(t,e);var c=Jc,h=yd(e.containerInfo),v=c.focusedElem,R=c.selectionRange;if(h!==v&&v&&v.ownerDocument&&bd(v.ownerDocument.documentElement,v)){if(R!==null&&To(v)){var Y=R.start,ee=R.end;if(ee===void 0&&(ee=Y),"selectionStart"in v)v.selectionStart=Y,v.selectionEnd=Math.min(ee,v.value.length);else{var ae=v.ownerDocument||document,F=ae&&ae.defaultView||window;if(F.getSelection){var Z=F.getSelection(),_e=v.textContent.length,ze=Math.min(R.start,_e),Et=R.end===void 0?ze:Math.min(R.end,_e);!Z.extend&&ze>Et&&(h=Et,Et=ze,ze=h);var j=gd(v,ze),M=gd(v,Et);if(j&&M&&(Z.rangeCount!==1||Z.anchorNode!==j.node||Z.anchorOffset!==j.offset||Z.focusNode!==M.node||Z.focusOffset!==M.offset)){var G=ae.createRange();G.setStart(j.node,j.offset),Z.removeAllRanges(),ze>Et?(Z.addRange(G),Z.extend(M.node,M.offset)):(G.setEnd(M.node,M.offset),Z.addRange(G))}}}}for(ae=[],Z=v;Z=Z.parentNode;)Z.nodeType===1&&ae.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<ae.length;v++){var te=ae[v];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Yr=!!Vc,Jc=Vc=null}finally{dt=o,ne.p=a,I.T=n}}e.current=t,Vt=2}}function Dp(){if(Vt===2){Vt=0;var e=Ei,t=xl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=I.T,I.T=null;var a=ne.p;ne.p=2;var o=dt;dt|=4;try{rp(e,t.alternate,t)}finally{dt=o,ne.p=a,I.T=n}}Vt=3}}function Lp(){if(Vt===4||Vt===3){Vt=0,Mn();var e=Ei,t=xl,n=Xa,a=Ep;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Vt=5:(Vt=0,xl=Ei=null,zp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(vi=null),Un(n),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(En,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=I.T,o=ne.p,ne.p=2,I.T=null;try{for(var c=e.onRecoverableError,h=0;h<a.length;h++){var v=a[h];c(v.value,{componentStack:v.stack})}}finally{I.T=t,ne.p=o}}(Xa&3)!==0&&Cr(),wa(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===jc?vs++:(vs=0,jc=e):vs=0,Es(0)}}function zp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,es(t)))}function Cr(){return Cp(),Dp(),Lp(),Up()}function Up(){if(Vt!==5)return!1;var e=Ei,t=Uc;Uc=0;var n=Un(Xa),a=I.T,o=ne.p;try{ne.p=32>n?32:n,I.T=null,n=Bc,Bc=null;var c=Ei,h=Xa;if(Vt=0,xl=Ei=null,Xa=0,(dt&6)!==0)throw Error(l(331));var v=dt;if(dt|=4,bp(c.current),pp(c,c.current,h,n),dt=v,Es(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(En,c)}catch{}return!0}finally{ne.p=o,I.T=a,zp(e,t)}}function Bp(e,t,n){t=na(n,t),t=gc(e.stateNode,t,2),e=hi(e,t,2),e!==null&&(Xe(e,2),wa(e))}function gt(e,t,n){if(e.tag===3)Bp(e,e,n);else for(;t!==null;){if(t.tag===3){Bp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(vi===null||!vi.has(a))){e=na(n,e),n=jh(2),a=hi(t,n,2),a!==null&&(Ih(n,a,t,e),Xe(a,2),wa(a));break}}t=t.return}}function qc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new rv;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)||(Dc=!0,o.add(n),e=dv.bind(null,e,t,n),t.then(e,e))}function dv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,St===e&&(nt&n)===n&&(Dt===4||Dt===3&&(nt&62914560)===nt&&300>lt()-wr?(dt&2)===0&&wl(e,0):Lc|=n,Nl===nt&&(Nl=0)),wa(e)}function jp(e,t){t===0&&(t=Me()),e=Bi(e,t),e!==null&&(Xe(e,t),wa(e))}function hv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jp(e,n)}function pv(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),jp(e,n)}function mv(e,t){return Jt(e,t)}var Dr=null,Rl=null,Gc=!1,Lr=!1,$c=!1,Si=0;function wa(e){e!==Rl&&e.next===null&&(Rl===null?Dr=Rl=e:Rl=Rl.next=e),Lr=!0,Gc||(Gc=!0,bv())}function Es(e,t){if(!$c&&Lr){$c=!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 h=a.suspendedLanes,v=a.pingedLanes;c=(1<<31-kt(42|e)+1)-1,c&=o&~(h&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Gp(a,c))}else c=nt,c=O(a,a===St?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||W(a,c)||(n=!0,Gp(a,c));a=a.next}while(n);$c=!1}}function gv(){Ip()}function Ip(){Lr=Gc=!1;var e=0;Si!==0&&Av()&&(e=Si);for(var t=lt(),n=null,a=Dr;a!==null;){var o=a.next,c=Hp(a,t);c===0?(a.next=null,n===null?Dr=o:n.next=o,o===null&&(Rl=n)):(n=a,(e!==0||(c&3)!==0)&&(Lr=!0)),a=o}Vt!==0&&Vt!==5||Es(e),Si!==0&&(Si=0)}function Hp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-kt(c),v=1<<h,R=o[h];R===-1?((v&n)===0||(v&a)!==0)&&(o[h]=he(v,t)):R<=t&&(e.expiredLanes|=v),c&=~v}if(t=St,n=nt,n=O(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(mt===2||mt===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Wt(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||W(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Wt(a),Un(n)){case 2:case 8:n=Ht;break;case 32:n=un;break;case 268435456:n=wn;break;default:n=un}return a=qp.bind(null,e),n=Jt(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Wt(a),e.callbackPriority=2,e.callbackNode=null,2}function qp(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=nt;return a=O(e,e===St?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Sp(e,a,t),Hp(e,lt()),e.callbackNode!=null&&e.callbackNode===n?qp.bind(null,e):null)}function Gp(e,t){if(Cr())return null;Sp(e,t,!0)}function bv(){Ov(function(){(dt&6)!==0?Jt(bt,gv):Ip()})}function Yc(){if(Si===0){var e=hl;e===0&&(e=Be,Be<<=1,(Be&261888)===0&&(Be=256)),Si=e}return Si}function $p(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Qe(""+e)}function Yp(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 yv(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=$p((o[an]||null).action),h=a.submitter;h&&(t=(t=h[an]||null)?$p(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var v=new Ks("action","action",null,a,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Si!==0){var R=h?Yp(o,h):new FormData(o);uc(n,{pending:!0,data:R,method:o.method,action:c},null,R)}}else typeof c=="function"&&(v.preventDefault(),R=h?Yp(o,h):new FormData(o),uc(n,{pending:!0,data:R,method:o.method,action:c},c,R))},currentTarget:o}]})}}for(var Fc=0;Fc<Ao.length;Fc++){var Kc=Ao[Fc],vv=Kc.toLowerCase(),Ev=Kc[0].toUpperCase()+Kc.slice(1);fa(vv,"on"+Ev)}fa(_d,"onAnimationEnd"),fa(Sd,"onAnimationIteration"),fa(Td,"onAnimationStart"),fa("dblclick","onDoubleClick"),fa("focusin","onFocus"),fa("focusout","onBlur"),fa(Uy,"onTransitionRun"),fa(By,"onTransitionStart"),fa(jy,"onTransitionCancel"),fa(Nd,"onTransitionEnd"),ce("onMouseEnter",["mouseout","mouseover"]),ce("onMouseLeave",["mouseout","mouseover"]),ce("onPointerEnter",["pointerout","pointerover"]),ce("onPointerLeave",["pointerout","pointerover"]),ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ua("onBeforeInput",["compositionend","keypress","textInput","paste"]),ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _s="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_v=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_s));function Fp(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 h=a.length-1;0<=h;h--){var v=a[h],R=v.instance,Y=v.currentTarget;if(v=v.listener,R!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=Y;try{c(o)}catch(ee){Xs(ee)}o.currentTarget=null,c=R}else for(h=0;h<a.length;h++){if(v=a[h],R=v.instance,Y=v.currentTarget,v=v.listener,R!==c&&o.isPropagationStopped())break e;c=v,o.currentTarget=Y;try{c(o)}catch(ee){Xs(ee)}o.currentTarget=null,c=R}}}}function Je(e,t){var n=t[Wn];n===void 0&&(n=t[Wn]=new Set);var a=e+"__bubble";n.has(a)||(Kp(t,e,2,!1),n.add(a))}function Pc(e,t,n){var a=0;t&&(a|=4),Kp(n,e,a,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Zc(e){if(!e[zr]){e[zr]=!0,Ma.forEach(function(n){n!=="selectionchange"&&(_v.has(n)||Pc(n,!1,e),Pc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zr]||(t[zr]=!0,Pc("selectionchange",!1,t))}}function Kp(e,t,n,a){switch(_m(t)){case 2:var o=Xv;break;case 8:o=Qv;break;default:o=cu}n=o.bind(null,t,n,e),o=void 0,!po||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 Xc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var v=a.stateNode.containerInfo;if(v===o)break;if(h===4)for(h=a.return;h!==null;){var R=h.tag;if((R===3||R===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;v!==null;){if(h=dn(v),h===null)return;if(R=h.tag,R===5||R===6||R===26||R===27){a=c=h;continue e}v=v.parentNode}}a=a.return}Gs(function(){var Y=c,ee=Oe(n),ae=[];e:{var F=xd.get(e);if(F!==void 0){var Z=Ks,_e=e;switch(e){case"keypress":if(Ys(n)===0)break e;case"keydown":case"keyup":Z=py;break;case"focusin":_e="focus",Z=yo;break;case"focusout":_e="blur",Z=yo;break;case"beforeblur":case"afterblur":Z=yo;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":Z=ed;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=ny;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=by;break;case _d:case Sd:case Td:Z=ly;break;case Nd:Z=vy;break;case"scroll":case"scrollend":Z=ey;break;case"wheel":Z=_y;break;case"copy":case"cut":case"paste":Z=ry;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=nd;break;case"toggle":case"beforetoggle":Z=Ty}var ze=(t&4)!==0,Et=!ze&&(e==="scroll"||e==="scrollend"),j=ze?F!==null?F+"Capture":null:F;ze=[];for(var M=Y,G;M!==null;){var te=M;if(G=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||G===null||j===null||(te=$l(M,j),te!=null&&ze.push(Ss(M,te,G))),Et)break;M=M.return}0<ze.length&&(F=new Z(F,_e,null,n,ee),ae.push({event:F,listeners:ze}))}}if((t&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",F&&n!==ge&&(_e=n.relatedTarget||n.fromElement)&&(dn(_e)||_e[rt]))break e;if((Z||F)&&(F=ee.window===ee?ee:(F=ee.ownerDocument)?F.defaultView||F.parentWindow:window,Z?(_e=n.relatedTarget||n.toElement,Z=Y,_e=_e?dn(_e):null,_e!==null&&(Et=d(_e),ze=_e.tag,_e!==Et||ze!==5&&ze!==27&&ze!==6)&&(_e=null)):(Z=null,_e=Y),Z!==_e)){if(ze=ed,te="onMouseLeave",j="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(ze=nd,te="onPointerLeave",j="onPointerEnter",M="pointer"),Et=Z==null?F:Ea(Z),G=_e==null?F:Ea(_e),F=new ze(te,M+"leave",Z,n,ee),F.target=Et,F.relatedTarget=G,te=null,dn(ee)===Y&&(ze=new ze(j,M+"enter",_e,n,ee),ze.target=G,ze.relatedTarget=Et,te=ze),Et=te,Z&&_e)t:{for(ze=Sv,j=Z,M=_e,G=0,te=j;te;te=ze(te))G++;te=0;for(var Ce=M;Ce;Ce=ze(Ce))te++;for(;0<G-te;)j=ze(j),G--;for(;0<te-G;)M=ze(M),te--;for(;G--;){if(j===M||M!==null&&j===M.alternate){ze=j;break t}j=ze(j),M=ze(M)}ze=null}else ze=null;Z!==null&&Pp(ae,F,Z,ze,!1),_e!==null&&Et!==null&&Pp(ae,Et,_e,ze,!0)}}e:{if(F=Y?Ea(Y):window,Z=F.nodeName&&F.nodeName.toLowerCase(),Z==="select"||Z==="input"&&F.type==="file")var ut=ud;else if(od(F))if(fd)ut=Dy;else{ut=My;var xe=ky}else Z=F.nodeName,!Z||Z.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?Y&&ve(Y.elementType)&&(ut=ud):ut=Cy;if(ut&&(ut=ut(e,Y))){cd(ae,ut,n,ee);break e}xe&&xe(e,F,Y),e==="focusout"&&Y&&F.type==="number"&&Y.memoizedProps.value!=null&&li(F,"number",F.value)}switch(xe=Y?Ea(Y):window,e){case"focusin":(od(xe)||xe.contentEditable==="true")&&(ll=xe,No=Y,Vl=null);break;case"focusout":Vl=No=ll=null;break;case"mousedown":xo=!0;break;case"contextmenu":case"mouseup":case"dragend":xo=!1,vd(ae,n,ee);break;case"selectionchange":if(zy)break;case"keydown":case"keyup":vd(ae,n,ee)}var Ye;if(Eo)e:{switch(e){case"compositionstart":var at="onCompositionStart";break e;case"compositionend":at="onCompositionEnd";break e;case"compositionupdate":at="onCompositionUpdate";break e}at=void 0}else il?sd(e,n)&&(at="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(at="onCompositionStart");at&&(ad&&n.locale!=="ko"&&(il||at!=="onCompositionStart"?at==="onCompositionEnd"&&il&&(Ye=Jf()):(si=ee,mo="value"in si?si.value:si.textContent,il=!0)),xe=Ur(Y,at),0<xe.length&&(at=new td(at,e,null,n,ee),ae.push({event:at,listeners:xe}),Ye?at.data=Ye:(Ye=rd(n),Ye!==null&&(at.data=Ye)))),(Ye=xy?wy(e,n):Ay(e,n))&&(at=Ur(Y,"onBeforeInput"),0<at.length&&(xe=new td("onBeforeInput","beforeinput",null,n,ee),ae.push({event:xe,listeners:at}),xe.data=Ye)),yv(ae,e,Y,n,ee)}Fp(ae,t)})}function Ss(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=$l(e,n),o!=null&&a.unshift(Ss(e,o,c)),o=$l(e,t),o!=null&&a.push(Ss(e,o,c))),e.tag===3)return a;e=e.return}return[]}function Sv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Pp(e,t,n,a,o){for(var c=t._reactName,h=[];n!==null&&n!==a;){var v=n,R=v.alternate,Y=v.stateNode;if(v=v.tag,R!==null&&R===a)break;v!==5&&v!==26&&v!==27||Y===null||(R=Y,o?(Y=$l(n,c),Y!=null&&h.unshift(Ss(n,Y,R))):o||(Y=$l(n,c),Y!=null&&h.push(Ss(n,Y,R)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Tv=/\r\n?/g,Nv=/\u0000|\uFFFD/g;function Zp(e){return(typeof e=="string"?e:""+e).replace(Tv,`
49
+ `).replace(Nv,"")}function Xp(e,t){return t=Zp(t),Zp(e)===t}function vt(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||X(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&X(e,""+a);break;case"className":ln(e,"class",a);break;case"tabIndex":ln(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ln(e,n,a);break;case"style":J(e,a,c);break;case"data":if(t!=="object"){ln(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=Qe(""+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"&&vt(e,t,"name",o.name,o,null),vt(e,t,"formEncType",o.formEncType,o,null),vt(e,t,"formMethod",o.formMethod,o,null),vt(e,t,"formTarget",o.formTarget,o,null)):(vt(e,t,"encType",o.encType,o,null),vt(e,t,"method",o.method,o,null),vt(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Qe(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=se);break;case"onScroll":a!=null&&Je("scroll",e);break;case"onScrollEnd":a!=null&&Je("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=Qe(""+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":Je("beforetoggle",e),Je("toggle",e),qt(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":qt(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=Se.get(n)||n,qt(e,n,a))}}function Qc(e,t,n,a,o,c){switch(n){case"style":J(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"?X(e,a):(typeof a=="number"||typeof a=="bigint")&&X(e,""+a);break;case"onScroll":a!=null&&Je("scroll",e);break;case"onScrollEnd":a!=null&&Je("scrollend",e);break;case"onClick":a!=null&&(e.onclick=se);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Rn.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[an]||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,""):qt(e,n,a)}}}function gn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Je("error",e),Je("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:vt(e,t,c,h,n,null)}}o&&vt(e,t,"srcSet",n.srcSet,n,null),a&&vt(e,t,"src",n.src,n,null);return;case"input":Je("invalid",e);var v=c=h=o=null,R=null,Y=null;for(a in n)if(n.hasOwnProperty(a)){var ee=n[a];if(ee!=null)switch(a){case"name":o=ee;break;case"type":h=ee;break;case"checked":R=ee;break;case"defaultChecked":Y=ee;break;case"value":c=ee;break;case"defaultValue":v=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(l(137,t));break;default:vt(e,t,a,ee,n,null)}}Da(e,c,v,R,Y,h,o,!1);return;case"select":Je("invalid",e),a=h=c=null;for(o in n)if(n.hasOwnProperty(o)&&(v=n[o],v!=null))switch(o){case"value":c=v;break;case"defaultValue":h=v;break;case"multiple":a=v;default:vt(e,t,o,v,n,null)}t=c,n=h,e.multiple=!!a,t!=null?Gt(e,!!a,t,!1):n!=null&&Gt(e,!!a,n,!0);return;case"textarea":Je("invalid",e),c=o=a=null;for(h in n)if(n.hasOwnProperty(h)&&(v=n[h],v!=null))switch(h){case"value":a=v;break;case"defaultValue":o=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(l(91));break;default:vt(e,t,h,v,n,null)}Sa(e,a,o,c);return;case"option":for(R in n)if(n.hasOwnProperty(R)&&(a=n[R],a!=null))switch(R){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:vt(e,t,R,a,n,null)}return;case"dialog":Je("beforetoggle",e),Je("toggle",e),Je("cancel",e),Je("close",e);break;case"iframe":case"object":Je("load",e);break;case"video":case"audio":for(a=0;a<_s.length;a++)Je(_s[a],e);break;case"image":Je("error",e),Je("load",e);break;case"details":Je("toggle",e);break;case"embed":case"source":case"link":Je("error",e),Je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Y in n)if(n.hasOwnProperty(Y)&&(a=n[Y],a!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:vt(e,t,Y,a,n,null)}return;default:if(ve(t)){for(ee in n)n.hasOwnProperty(ee)&&(a=n[ee],a!==void 0&&Qc(e,t,ee,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&vt(e,t,v,a,n,null))}function xv(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,h=null,v=null,R=null,Y=null,ee=null;for(Z in n){var ae=n[Z];if(n.hasOwnProperty(Z)&&ae!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":R=ae;default:a.hasOwnProperty(Z)||vt(e,t,Z,null,a,ae)}}for(var F in a){var Z=a[F];if(ae=n[F],a.hasOwnProperty(F)&&(Z!=null||ae!=null))switch(F){case"type":c=Z;break;case"name":o=Z;break;case"checked":Y=Z;break;case"defaultChecked":ee=Z;break;case"value":h=Z;break;case"defaultValue":v=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(l(137,t));break;default:Z!==ae&&vt(e,t,F,Z,a,ae)}}ii(e,h,v,R,Y,ee,c,o);return;case"select":Z=h=v=F=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":Z=R;default:a.hasOwnProperty(c)||vt(e,t,c,null,a,R)}for(o in a)if(c=a[o],R=n[o],a.hasOwnProperty(o)&&(c!=null||R!=null))switch(o){case"value":F=c;break;case"defaultValue":v=c;break;case"multiple":h=c;default:c!==R&&vt(e,t,o,c,a,R)}t=v,n=h,a=Z,F!=null?Gt(e,!!n,F,!1):!!a!=!!n&&(t!=null?Gt(e,!!n,t,!0):Gt(e,!!n,n?[]:"",!1));return;case"textarea":Z=F=null;for(v in n)if(o=n[v],n.hasOwnProperty(v)&&o!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:vt(e,t,v,null,a,o)}for(h in a)if(o=a[h],c=n[h],a.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":F=o;break;case"defaultValue":Z=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&vt(e,t,h,o,a,c)}La(e,F,Z);return;case"option":for(var _e in n)if(F=n[_e],n.hasOwnProperty(_e)&&F!=null&&!a.hasOwnProperty(_e))switch(_e){case"selected":e.selected=!1;break;default:vt(e,t,_e,null,a,F)}for(R in a)if(F=a[R],Z=n[R],a.hasOwnProperty(R)&&F!==Z&&(F!=null||Z!=null))switch(R){case"selected":e.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:vt(e,t,R,F,a,Z)}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)&&vt(e,t,ze,null,a,F);for(Y in a)if(F=a[Y],Z=n[Y],a.hasOwnProperty(Y)&&F!==Z&&(F!=null||Z!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(l(137,t));break;default:vt(e,t,Y,F,a,Z)}return;default:if(ve(t)){for(var Et in n)F=n[Et],n.hasOwnProperty(Et)&&F!==void 0&&!a.hasOwnProperty(Et)&&Qc(e,t,Et,void 0,a,F);for(ee in a)F=a[ee],Z=n[ee],!a.hasOwnProperty(ee)||F===Z||F===void 0&&Z===void 0||Qc(e,t,ee,F,a,Z);return}}for(var j in n)F=n[j],n.hasOwnProperty(j)&&F!=null&&!a.hasOwnProperty(j)&&vt(e,t,j,null,a,F);for(ae in a)F=a[ae],Z=n[ae],!a.hasOwnProperty(ae)||F===Z||F==null&&Z==null||vt(e,t,ae,F,a,Z)}function Qp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wv(){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,h=o.initiatorType,v=o.duration;if(c&&v&&Qp(h)){for(h=0,v=o.responseEnd,a+=1;a<n.length;a++){var R=n[a],Y=R.startTime;if(Y>v)break;var ee=R.transferSize,ae=R.initiatorType;ee&&Qp(ae)&&(R=R.responseEnd,h+=ee*(R<v?1:(v-Y)/(R-Y)))}if(--a,t+=8*(c+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Vc=null,Jc=null;function Br(e){return e.nodeType===9?e:e.ownerDocument}function Vp(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 Jp(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 Wc(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 eu=null;function Av(){var e=window.event;return e&&e.type==="popstate"?e===eu?!1:(eu=e,!0):(eu=null,!1)}var Wp=typeof setTimeout=="function"?setTimeout:void 0,Rv=typeof clearTimeout=="function"?clearTimeout:void 0,em=typeof Promise=="function"?Promise:void 0,Ov=typeof queueMicrotask=="function"?queueMicrotask:typeof em<"u"?function(e){return em.resolve(null).then(e).catch(kv)}:Wp;function kv(e){setTimeout(function(){throw e})}function Ti(e){return e==="head"}function tm(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),Cl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ts(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ts(n);for(var c=n.firstChild;c;){var h=c.nextSibling,v=c.nodeName;c[va]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&Ts(e.ownerDocument.body);n=o}while(n);Cl(t)}function nm(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 tu(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":tu(n),ti(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Mv(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 Cv(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 am(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 nu(e){return e.data==="$?"||e.data==="$~"}function au(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Dv(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 iu=null;function im(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 lm(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 sm(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 Ts(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ti(e)}var oa=new Map,rm=new Set;function jr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qa=ne.d;ne.d={f:Lv,r:zv,D:Uv,C:Bv,L:jv,m:Iv,X:qv,S:Hv,M:Gv};function Lv(){var e=Qa.f(),t=Or();return e||t}function zv(e){var t=ca(e);t!==null&&t.tag===5&&t.type==="form"?Nh(t):Qa.r(e)}var Ol=typeof document>"u"?null:document;function om(e,t,n){var a=Ol;if(a&&typeof t=="string"&&t){var o=Sn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),rm.has(o)||(rm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),gn(t,"link",e),pt(t),a.head.appendChild(t)))}}function Uv(e){Qa.D(e),om("dns-prefetch",e,null)}function Bv(e,t){Qa.C(e,t),om("preconnect",e,t)}function jv(e,t,n){Qa.L(e,t,n);var a=Ol;if(a&&e&&t){var o='link[rel="preload"][as="'+Sn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Sn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Sn(n.imageSizes)+'"]')):o+='[href="'+Sn(e)+'"]';var c=o;switch(t){case"style":c=kl(e);break;case"script":c=Ml(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(Ns(c))||t==="script"&&a.querySelector(xs(c))||(t=a.createElement("link"),gn(t,"link",e),pt(t),a.head.appendChild(t)))}}function Iv(e,t){Qa.m(e,t);var n=Ol;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Sn(a)+'"][href="'+Sn(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ml(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(xs(c)))return}a=n.createElement("link"),gn(a,"link",e),pt(a),n.head.appendChild(a)}}}function Hv(e,t,n){Qa.S(e,t,n);var a=Ol;if(a&&e){var o=_a(a).hoistableStyles,c=kl(e);t=t||"default";var h=o.get(c);if(!h){var v={loading:0,preload:null};if(h=a.querySelector(Ns(c)))v.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},n),(n=oa.get(c))&&lu(e,n);var R=h=a.createElement("link");pt(R),gn(R,"link",e),R._p=new Promise(function(Y,ee){R.onload=Y,R.onerror=ee}),R.addEventListener("load",function(){v.loading|=1}),R.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Ir(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:v},o.set(c,h)}}}function qv(e,t){Qa.X(e,t);var n=Ol;if(n&&e){var a=_a(n).hoistableScripts,o=Ml(e),c=a.get(o);c||(c=n.querySelector(xs(o)),c||(e=E({src:e,async:!0},t),(t=oa.get(o))&&su(e,t),c=n.createElement("script"),pt(c),gn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function Gv(e,t){Qa.M(e,t);var n=Ol;if(n&&e){var a=_a(n).hoistableScripts,o=Ml(e),c=a.get(o);c||(c=n.querySelector(xs(o)),c||(e=E({src:e,async:!0,type:"module"},t),(t=oa.get(o))&&su(e,t),c=n.createElement("script"),pt(c),gn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function cm(e,t,n,a){var o=(o=we.current)?jr(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=kl(n.href),n=_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=kl(n.href);var c=_a(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(Ns(e)))&&!c._p&&(h.instance=c,h.state.loading=5),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||$v(o,e,n,h.state))),t&&a===null)throw Error(l(528,""));return h}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=Ml(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 kl(e){return'href="'+Sn(e)+'"'}function Ns(e){return'link[rel="stylesheet"]['+e+"]"}function um(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function $v(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}),gn(t,"link",n),pt(t),e.head.appendChild(t))}function Ml(e){return'[src="'+Sn(e)+'"]'}function xs(e){return"script[async]"+e}function fm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Sn(n.href)+'"]');if(a)return t.instance=a,pt(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"),pt(a),gn(a,"style",o),Ir(a,n.precedence,e),t.instance=a;case"stylesheet":o=kl(n.href);var c=e.querySelector(Ns(o));if(c)return t.state.loading|=4,t.instance=c,pt(c),c;a=um(n),(o=oa.get(o))&&lu(a,o),c=(e.ownerDocument||e).createElement("link"),pt(c);var h=c;return h._p=new Promise(function(v,R){h.onload=v,h.onerror=R}),gn(c,"link",a),t.state.loading|=4,Ir(c,n.precedence,e),t.instance=c;case"script":return c=Ml(n.src),(o=e.querySelector(xs(c)))?(t.instance=o,pt(o),o):(a=n,(o=oa.get(c))&&(a=E({},n),su(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),pt(o),gn(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,Ir(a,n.precedence,e));return t.instance}function Ir(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,h=0;h<a.length;h++){var v=a[h];if(v.dataset.precedence===t)c=v;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 lu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function su(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 dm(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 h=c.getAttribute(t)||"";h=e+h;var v=a.get(h);v?v.push(c):a.set(h,[c])}}return a}function hm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Yv(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 pm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Fv(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=kl(a.href),c=t.querySelector(Ns(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,pt(c);return}c=t.ownerDocument||t,a=um(a),(o=oa.get(o))&&lu(a,o),c=c.createElement("link"),pt(c);var h=c;h._p=new Promise(function(v,R){h.onload=v,h.onerror=R}),gn(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 ru=0;function Kv(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&&ru===0&&(ru=62500*wv());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>ru?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(Pv,e),Gr=null,qr.call(e))}function Pv(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 h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),a=h)}a&&n.set(null,a)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||a,c===a&&n.set(null,o),n.set(h,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 ws={$$typeof:D,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Zv(e,t,n,a,o,c,h,v,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ke(0),this.hiddenUpdates=Ke(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function mm(e,t,n,a,o,c,h,v,R,Y,ee,ae){return e=new Zv(e,t,n,h,R,Y,ee,ae,v),t=1,c===!0&&(t|=24),c=Kn(3,null,null,t),e.current=c,c.stateNode=e,t=Ho(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},Yo(c),e}function gm(e){return e?(e=ol,e):ol}function bm(e,t,n,a,o,c){o=gm(o),a.context===null?a.context=o:a.pendingContext=o,a=di(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=hi(e,a,t),n!==null&&(Gn(n,e,t),is(n,e,t))}function ym(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ou(e,t){ym(e,t),(e=e.alternate)&&ym(e,t)}function vm(e){if(e.tag===13||e.tag===31){var t=Bi(e,67108864);t!==null&&Gn(t,e,67108864),ou(e,67108864)}}function Em(e){if(e.tag===13||e.tag===31){var t=Vn();t=tt(t);var n=Bi(e,t);n!==null&&Gn(n,e,t),ou(e,t)}}var Yr=!0;function Xv(e,t,n,a){var o=I.T;I.T=null;var c=ne.p;try{ne.p=2,cu(e,t,n,a)}finally{ne.p=c,I.T=o}}function Qv(e,t,n,a){var o=I.T;I.T=null;var c=ne.p;try{ne.p=8,cu(e,t,n,a)}finally{ne.p=c,I.T=o}}function cu(e,t,n,a){if(Yr){var o=uu(a);if(o===null)Xc(e,t,a,Fr,n),Sm(e,a);else if(Jv(o,e,t,n,a))a.stopPropagation();else if(Sm(e,a),t&4&&-1<Vv.indexOf(e)){for(;o!==null;){var c=ca(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=zt(c.pendingLanes);if(h!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var R=1<<31-kt(h);v.entanglements[1]|=R,h&=~R}wa(c),(dt&6)===0&&(Ar=lt()+500,Es(0))}}break;case 31:case 13:v=Bi(c,2),v!==null&&Gn(v,c,2),Or(),ou(c,2)}if(c=uu(a),c===null&&Xc(e,t,a,Fr,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else Xc(e,t,a,null,n)}}function uu(e){return e=Oe(e),fu(e)}var Fr=null;function fu(e){if(Fr=null,e=dn(e),e!==null){var t=d(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=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Fr=e,null}function _m(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Lt()){case bt:return 2;case Ht:return 8;case un:case Cn:return 32;case wn:return 268435456;default:return 32}default:return 32}}var du=!1,Ni=null,xi=null,wi=null,As=new Map,Rs=new Map,Ai=[],Vv="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 Sm(e,t){switch(e){case"focusin":case"focusout":Ni=null;break;case"dragenter":case"dragleave":xi=null;break;case"mouseover":case"mouseout":wi=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rs.delete(t.pointerId)}}function Os(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=ca(t),t!==null&&vm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Jv(e,t,n,a,o){switch(t){case"focusin":return Ni=Os(Ni,e,t,n,a,o),!0;case"dragenter":return xi=Os(xi,e,t,n,a,o),!0;case"mouseover":return wi=Os(wi,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return As.set(c,Os(As.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,Rs.set(c,Os(Rs.get(c)||null,e,t,n,a,o)),!0}return!1}function Tm(e){var t=dn(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=g(n),t!==null){e.blockedOn=t,Wa(e.priority,function(){Em(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,Wa(e.priority,function(){Em(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=uu(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=ca(n),t!==null&&vm(t),e.blockedOn=n,!1;t.shift()}return!0}function Nm(e,t,n){Kr(e)&&n.delete(t)}function Wv(){du=!1,Ni!==null&&Kr(Ni)&&(Ni=null),xi!==null&&Kr(xi)&&(xi=null),wi!==null&&Kr(wi)&&(wi=null),As.forEach(Nm),Rs.forEach(Nm)}function Pr(e,t){e.blockedOn===t&&(e.blockedOn=null,du||(du=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Wv)))}var Zr=null;function xm(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(fu(a||n)===null)continue;break}var c=ca(n);c!==null&&(e.splice(t,3),t-=3,uc(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Cl(e){function t(R){return Pr(R,e)}Ni!==null&&Pr(Ni,e),xi!==null&&Pr(xi,e),wi!==null&&Pr(wi,e),As.forEach(t),Rs.forEach(t);for(var n=0;n<Ai.length;n++){var a=Ai[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ai.length&&(n=Ai[0],n.blockedOn===null);)Tm(n),n.blockedOn===null&&Ai.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],h=o[an]||null;if(typeof c=="function")h||xm(n);else if(h){var v=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[an]||null)v=h.formAction;else if(fu(o)!==null)continue}else v=h.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),xm(n)}}}function wm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),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 hu(e){this._internalRoot=e}Xr.prototype.render=hu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,a=Vn();bm(n,a,e,t,null,null)},Xr.prototype.unmount=hu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bm(e.current,2,null,e,null,null),Or(),t[rt]=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<Ai.length&&t!==0&&t<Ai[n].priority;n++);Ai.splice(n,0,e),n===0&&Tm(e)}};var Am=i.version;if(Am!=="19.2.8")throw Error(l(527,Am,"19.2.8"));ne.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 eE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qr.isDisabled&&Qr.supportsFiber)try{En=Qr.inject(eE),Ot=Qr}catch{}}return Ms.createRoot=function(e,t){if(!u(e))throw Error(l(299));var n=!1,a="",o=Lh,c=zh,h=Uh;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&&(h=t.onRecoverableError)),t=mm(e,1,!1,null,null,n,a,null,o,c,h,wm),e[rt]=t.current,Zc(e),new hu(t)},Ms.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var a=!1,o="",c=Lh,h=zh,v=Uh,R=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&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),t=mm(e,1,!0,t,n??null,a,o,R,c,h,v,wm),t.context=gm(null),n=t.current,a=Vn(),a=tt(a),o=di(a),o.callback=null,hi(n,o,a),n=a,t.current.lanes=n,Xe(t,n),wa(t),e[rt]=t.current,Zc(e),new Xr(t)},Ms.version="19.2.8",Ms}var Bm;function dE(){if(Bm)return gu.exports;Bm=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(),gu.exports=fE(),gu.exports}var hE=dE(),Pt;(function(s){s.INSERT="insert",s.DELETE="delete",s.CONTEXT="context"})(Pt||(Pt={}));const pE={LINE_BY_LINE:"line-by-line"},mE={NONE:"none"},gE={WORD:"word"};var jl;(function(s){s.AUTO="auto",s.DARK="dark",s.LIGHT="light"})(jl||(jl={}));const bE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],yE=RegExp("["+bE.join("\\")+"]","g");function vE(s){return s.replace(yE,"\\$&")}function jm(s){return s&&s.replace(/\\/g,"/")}function EE(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 Eb(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 Im(s,i){const r=s.split(".");return r.length>1?r[r.length-1]:i}function Hm(s,i){return i.reduce((r,l)=>r||s.startsWith(l),!1)}const qm=["a/","b/","i/","w/","c/","o/"];function Mi(s,i,r){const l=r!==void 0?[...qm,r]:qm,u=i?new RegExp(`^${vE(i)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,d=""]=u.exec(s)||[],g=l.find(m=>d.indexOf(m)===0);return(g?d.slice(g.length):d).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function _E(s,i){return Mi(s,"---",i)}function SE(s,i){return Mi(s,"+++",i)}function TE(s,i={}){const r=[];let l=null,u=null,d=null,g=null,y=null,m=null,p=null;const b="--- ",E="+++ ",_="@@",x=/^old mode (\d{6})/,N=/^new mode (\d{6})/,A=/^deleted file mode (\d{6})/,w=/^new file mode (\d{6})/,B=/^copy from "?(.+)"?/,q=/^copy to "?(.+)"?/,D=/^rename from "?(.+)"?/,re=/^rename to "?(.+)"?/,$=/^similarity index (\d+)%/,Q=/^dissimilarity index (\d+)%/,ie=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,k=/^Binary files (.*) and (.*) differ/,L=/^GIT binary patch/,V=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,K=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,de=/^new file mode (\d{6})/,Te=/^deleted file mode (\d{6}),(\d{6})/,Ne=s.replace(/\/g,"").replace(/\r\n?/g,`
50
+ `).split(`
51
+ `);function me(){u!==null&&l!==null&&(l.blocks.push(u),u=null)}function I(){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 ne(){me(),I(),l={blocks:[],deletedLines:0,addedLines:0}}function oe(S){me();let C;l!==null&&((C=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(S))?(l.isCombined=!1,d=parseInt(C[1],10),y=parseInt(C[2],10)):(C=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(S))?(l.isCombined=!0,d=parseInt(C[1],10),g=parseInt(C[2],10),y=parseInt(C[3],10)):(S.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),d=0,y=0,l.isCombined=!1)),u={lines:[],oldStartLine:d,oldStartLine2:g,newStartLine:y,header:S}}function be(S){if(l===null||u===null||d===null||y===null)return;const C={content:S},H=l.isCombined?["+ "," +","++"]:["+"],ue=l.isCombined?["- "," -","--"]:["-"];Hm(S,H)?(l.addedLines++,C.type=Pt.INSERT,C.oldNumber=void 0,C.newNumber=y++):Hm(S,ue)?(l.deletedLines++,C.type=Pt.DELETE,C.oldNumber=d++,C.newNumber=void 0):(C.type=Pt.CONTEXT,C.oldNumber=d++,C.newNumber=y++),u.lines.push(C)}function Ee(S,C){let H=C;for(;H<Ne.length-3;){if(S.startsWith("diff"))return!1;if(Ne[H].startsWith(b)&&Ne[H+1].startsWith(E)&&Ne[H+2].startsWith(_))return!0;H++}return!1}return Ne.forEach((S,C)=>{if(!S||S.startsWith("*"))return;let H;const ue=Ne[C-1],ye=Ne[C+1],we=Ne[C+2];if(S.startsWith("diff --git")||S.startsWith("diff --combined")){if(ne(),(H=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(S))&&(m=Mi(H[1],void 0,i.dstPrefix),p=Mi(H[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isGitDiff=!0;return}if(S.startsWith("Binary files")&&!(l!=null&&l.isGitDiff)){if(ne(),(H=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(S))&&(m=Mi(H[1],void 0,i.dstPrefix),p=Mi(H[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isBinary=!0;return}if((!l||!l.isGitDiff&&l&&S.startsWith(b)&&ye.startsWith(E)&&we.startsWith(_))&&ne(),l!=null&&l.isTooBig)return;if(l&&(typeof i.diffMaxChanges=="number"&&l.addedLines+l.deletedLines>i.diffMaxChanges||typeof i.diffMaxLineLength=="number"&&S.length>i.diffMaxLineLength)){l.isTooBig=!0,l.addedLines=0,l.deletedLines=0,l.blocks=[],u=null;const De=typeof i.diffTooBigMessage=="function"?i.diffTooBigMessage(r.length):"Diff too big to be displayed";oe(De);return}if(S.startsWith(b)&&ye.startsWith(E)||S.startsWith(E)&&ue.startsWith(b)){if(l&&!l.oldName&&S.startsWith("--- ")&&(H=_E(S,i.srcPrefix))){l.oldName=H,l.language=Im(l.oldName,l.language);return}if(l&&!l.newName&&S.startsWith("+++ ")&&(H=SE(S,i.dstPrefix))){l.newName=H,l.language=Im(l.newName,l.language);return}}if(l&&(S.startsWith(_)||l.isGitDiff&&l.oldName&&l.newName&&!u)){oe(S);return}if(u&&(S.startsWith("+")||S.startsWith("-")||S.startsWith(" "))){be(S);return}const pe=!Ee(S,C);if(l===null)throw new Error("Where is my file !!!");(H=x.exec(S))?l.oldMode=H[1]:(H=N.exec(S))?l.newMode=H[1]:(H=A.exec(S))?(l.deletedFileMode=H[1],l.isDeleted=!0):(H=w.exec(S))?(l.newFileMode=H[1],l.isNew=!0):(H=B.exec(S))?(pe&&(l.oldName=H[1]),l.isCopy=!0):(H=q.exec(S))?(pe&&(l.newName=H[1]),l.isCopy=!0):(H=D.exec(S))?(pe&&(l.oldName=H[1]),l.isRename=!0):(H=re.exec(S))?(pe&&(l.newName=H[1]),l.isRename=!0):(H=k.exec(S))?(l.isBinary=!0,l.oldName=Mi(H[1],void 0,i.srcPrefix),l.newName=Mi(H[2],void 0,i.dstPrefix),oe("Binary file")):L.test(S)?(l.isBinary=!0,oe(S)):(H=$.exec(S))?l.unchangedPercentage=parseInt(H[1],10):(H=Q.exec(S))?l.changedPercentage=parseInt(H[1],10):(H=ie.exec(S))?(l.checksumBefore=H[1],l.checksumAfter=H[2],H[3]&&(l.mode=H[3])):(H=V.exec(S))?(l.checksumBefore=[H[2],H[3]],l.checksumAfter=H[1]):(H=K.exec(S))?(l.oldMode=[H[2],H[3]],l.newMode=H[1]):(H=de.exec(S))?(l.newFileMode=H[1],l.isNew=!0):(H=Te.exec(S))&&(l.deletedFileMode=H[1],l.isDeleted=!0)}),me(),I(),r}class _b{diff(i,r,l={}){let u;typeof l=="function"?(u=l,l={}):"callback"in l&&(u=l.callback);const d=this.castInput(i,l),g=this.castInput(r,l),y=this.removeEmpty(this.tokenize(d,l)),m=this.removeEmpty(this.tokenize(g,l));return this.diffWithOptionsObj(y,m,l,u)}diffWithOptionsObj(i,r,l,u){var d;const g=q=>{if(q=this.postProcess(q,l),u){setTimeout(function(){u(q)},0);return}else return q},y=r.length,m=i.length;let p=1,b=y+m;l.maxEditLength!=null&&(b=Math.min(b,l.maxEditLength));const E=(d=l.timeout)!==null&&d!==void 0?d: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>=y)return g(this.buildValues(x[0].lastComponent,r,i));let A=-1/0,w=1/0;const B=()=>{for(let q=Math.max(A,-p);q<=Math.min(w,p);q+=2){let D;const re=x[q-1],$=x[q+1];re&&(x[q-1]=void 0);let Q=!1;if($){const k=$.oldPos-q;Q=$&&0<=k&&k<y}const ie=re&&re.oldPos+1<m;if(!Q&&!ie){x[q]=void 0;continue}if(!ie||Q&&re.oldPos<$.oldPos?D=this.addToPath($,!0,!1,0,l):D=this.addToPath(re,!1,!0,1,l),N=this.extractCommon(D,r,i,q,l),D.oldPos+1>=m&&N+1>=y)return g(this.buildValues(D.lastComponent,r,i))||!0;x[q]=D,D.oldPos+1>=m&&(w=Math.min(w,q-1)),N+1>=y&&(A=Math.max(A,q+1))}p++};if(u)(function q(){setTimeout(function(){if(p>b||Date.now()>_)return u(void 0);B()||q()},0)})();else for(;p<=b&&Date.now()<=_;){const q=B();if(q)return q}}addToPath(i,r,l,u,d){const g=i.lastComponent;return g&&!d.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,d){const g=r.length,y=l.length;let m=i.oldPos,p=m-u,b=0;for(;p+1<g&&m+1<y&&this.equals(l[m+1],r[p+1],d);)p++,m++,b++,d.oneChangePerToken&&(i.lastComponent={count:1,previousComponent:i.lastComponent,added:!1,removed:!1});return b&&!d.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 d;for(;i;)u.push(i),d=i.previousComponent,delete i.previousComponent,i=d;u.reverse();const g=u.length;let y=0,m=0,p=0;for(;y<g;y++){const b=u[y];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 NE extends _b{}const xE=new NE;function wE(s,i,r){return xE.diff(s,i,r)}const Gm="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 AE extends _b{tokenize(i){const r=new RegExp(`(\\r?\\n)|[${Gm}]+|[^\\S\\n\\r]+|[^${Gm}]`,"ug");return i.match(r)||[]}}const RE=new AE;function OE(s,i,r){return RE.diff(s,i,r)}function kE(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 Lf(s){return(i,r)=>{const l=s(i).trim(),u=s(r).trim();return kE(l,u)/(l.length+u.length)}}function zf(s){function i(l,u,d=new Map){let g=1/0,y;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;d.has(b)&&(E=d.get(b))||(E=s(l[m],u[p]),d.set(b,E)),E<g&&(g=E,y={indexA:m,indexB:p,score:g})}return y}function r(l,u,d=0,g=new Map){const y=i(l,u,g);if(!y||l.length+u.length<3)return[[l,u]];const m=l.slice(0,y.indexA),p=u.slice(0,y.indexB),b=[l[y.indexA]],E=[u[y.indexB]],_=y.indexA+1,x=y.indexB+1,N=l.slice(_),A=u.slice(x),w=r(m,p,d+1,g),B=r(b,E,d+1,g),q=r(N,A,d+1,g);let D=B;return(y.indexA>0||y.indexB>0)&&(D=w.concat(D)),(l.length>_||u.length>x)&&(D=D.concat(q)),D}return r}const kn={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},oo={matching:mE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:gE.WORD,colorScheme:jl.LIGHT},Aa="/",Sb=Lf(s=>s.value),ME=zf(Sb);function Eu(s){return s.indexOf("dev/null")!==-1}function CE(s){return s.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function DE(s){return s.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function ao(s){switch(s){case Pt.CONTEXT:return kn.CONTEXT;case Pt.INSERT:return kn.INSERTS;case Pt.DELETE:return kn.DELETES}}function Uf(s){switch(s){case jl.DARK:return"d2h-dark-color-scheme";case jl.AUTO:return"d2h-auto-color-scheme";case jl.LIGHT:default:return"d2h-light-color-scheme"}}function LE(s){return s?2:1}function Il(s){return s.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function Oa(s,i,r=!0){const l=LE(i);return{prefix:s.substring(0,l),content:r?Il(s.substring(l)):s.substring(l)}}function co(s){const i=jm(s.oldName),r=jm(s.newName);if(i!==r&&!Eu(i)&&!Eu(r)){const l=[],u=[],d=i.split(Aa),g=r.split(Aa),y=d.length,m=g.length;let p=0,b=y-1,E=m-1;for(;p<b&&p<E&&d[p]===g[p];)l.push(g[p]),p+=1;for(;b>p&&E>p&&d[b]===g[E];)u.unshift(g[E]),b-=1,E-=1;const _=l.join(Aa),x=u.join(Aa),N=d.slice(p,b+1).join(Aa),A=g.slice(p,E+1).join(Aa);return _.length&&x.length?_+Aa+"{"+N+" → "+A+"}"+Aa+x:_.length?_+Aa+"{"+N+" → "+A+"}":x.length?"{"+N+" → "+A+"}"+Aa+x:i+" → "+r}else return Eu(r)?i:r}function Bf(s){return`d2h-${EE(co(s)).toString().slice(-6)}`}function jf(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 Tb(s,i,r,l={}){const{matching:u,maxLineLengthHighlight:d,matchWordsThreshold:g,diffStyle:y}=Object.assign(Object.assign({},oo),l),m=Oa(s,r,!1),p=Oa(i,r,!1);if(m.content.length>d||p.content.length>d)return{oldLine:{prefix:m.prefix,content:Il(m.content)},newLine:{prefix:p.prefix,content:Il(p.content)}};const b=y==="char"?wE(m.content,p.content):OE(m.content,p.content),E=[];if(y==="word"&&u==="words"){const x=b.filter(w=>w.removed),N=b.filter(w=>w.added);ME(N,x).forEach(w=>{w[0].length===1&&w[1].length===1&&Sb(w[0][0],w[1][0])<g&&(E.push(w[0][0]),E.push(w[1][0]))})}const _=b.reduce((x,N)=>{const A=N.added?"ins":N.removed?"del":null,w=E.indexOf(N)>-1?' class="d2h-change"':"",B=Il(N.value);return A!==null?`${x}<${A}${w}>${B}</${A}>`:`${x}${B}`},"");return{oldLine:{prefix:m.prefix,content:CE(_)},newLine:{prefix:p.prefix,content:DE(_)}}}const $m="file-summary",zE="icon",UE={colorScheme:oo.colorScheme};class BE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},UE),r)}render(i){const r=i.map(l=>this.hoganUtils.render($m,"line",{fileHtmlId:Bf(l),oldName:l.oldName,newName:l.newName,fileName:co(l),deletedLines:"-"+l.deletedLines,addedLines:"+"+l.addedLines},{fileIcon:this.hoganUtils.template(zE,jf(l))})).join(`
52
+ `);return this.hoganUtils.render($m,"wrapper",{colorScheme:Uf(this.config.colorScheme),filesNumber:i.length,files:r})}}const Nb=Object.assign(Object.assign({},oo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Cs="generic",Ym="line-by-line",jE="icon",IE="tag";class HE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},Nb),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(Cs,"wrapper",{colorScheme:Uf(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(Ym,"file-diff"),u=this.hoganUtils.template(Cs,"file-path"),d=this.hoganUtils.template(jE,"file"),g=this.hoganUtils.template(IE,jf(i));return l.render({file:i,fileHtmlId:Bf(i),diffs:r,filePath:u.render({fileDiffName:co(i)},{fileIcon:d,fileTag:g})})}generateEmptyDiff(){return this.hoganUtils.render(Cs,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:kn})}generateFileHtml(i){const r=zf(Lf(l=>Oa(l.content,i.isCombined).content));return i.blocks.map(l=>{let u=this.hoganUtils.render(Cs,"block-header",{CSSLineClass:kn,blockHeader:i.isTooBig?l.header:Il(l.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(l).forEach(([d,g,y])=>{if(g.length&&y.length&&!d.length)this.applyRematchMatching(g,y,r).map(([m,p])=>{const{left:b,right:E}=this.processChangedLines(i,i.isCombined,m,p);u+=b,u+=E});else if(d.length)d.forEach(m=>{const{prefix:p,content:b}=Oa(m.content,i.isCombined);u+=this.generateSingleLineHtml(i,{type:kn.CONTEXT,prefix:p,content:b,oldNumber:m.oldNumber,newNumber:m.newNumber})});else if(g.length||y.length){const{left:m,right:p}=this.processChangedLines(i,i.isCombined,g,y);u+=m,u+=p}else console.error("Unknown state reached while processing groups of lines",d,g,y)}),u}).join(`
54
+ `)}applyLineGroupping(i){const r=[];let l=[],u=[];for(let d=0;d<i.lines.length;d++){const g=i.lines[d];(g.type!==Pt.INSERT&&u.length||g.type===Pt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),g.type===Pt.CONTEXT?r.push([[g],[],[]]):g.type===Pt.INSERT&&l.length===0?r.push([[],[],[g]]):g.type===Pt.INSERT&&l.length>0?u.push(g):g.type===Pt.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,d=Eb(i.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(i,r):[[i,r]]}processChangedLines(i,r,l,u){const d={right:"",left:""},g=Math.max(l.length,u.length);for(let y=0;y<g;y++){const m=l[y],p=u[y],b=m!==void 0&&p!==void 0?Tb(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:kn.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(m.content,r)),{type:ao(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:kn.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(p.content,r)),{type:ao(p.type)})),{oldNumber:p.oldNumber,newNumber:p.newNumber}):void 0,{left:x,right:N}=this.generateLineHtml(i,E,_);d.left+=x,d.right+=N}return d}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(Ym,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Cs,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?"&nbsp;":r.prefix,content:r.content,lineNumber:l,line:r,file:i})}}const xb=Object.assign(Object.assign({},oo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ds="generic",qE="side-by-side",GE="icon",$E="tag";class YE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},xb),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(Ds,"wrapper",{colorScheme:Uf(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(qE,"file-diff"),u=this.hoganUtils.template(Ds,"file-path"),d=this.hoganUtils.template(GE,"file"),g=this.hoganUtils.template($E,jf(i));return l.render({file:i,fileHtmlId:Bf(i),diffs:r,filePath:u.render({fileDiffName:co(i)},{fileIcon:d,fileTag:g})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Ds,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:kn})}}generateFileHtml(i){const r=zf(Lf(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(([d,g,y])=>{if(g.length&&y.length&&!d.length)this.applyRematchMatching(g,y,r).map(([m,p])=>{const{left:b,right:E}=this.processChangedLines(i.isCombined,m,p);u.left+=b,u.right+=E});else if(d.length)d.forEach(m=>{const{prefix:p,content:b}=Oa(m.content,i.isCombined),{left:E,right:_}=this.generateLineHtml({type:kn.CONTEXT,prefix:p,content:b,number:m.oldNumber},{type:kn.CONTEXT,prefix:p,content:b,number:m.newNumber});u.left+=E,u.right+=_});else if(g.length||y.length){const{left:m,right:p}=this.processChangedLines(i.isCombined,g,y);u.left+=m,u.right+=p}else console.error("Unknown state reached while processing groups of lines",d,g,y)}),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 d=0;d<i.lines.length;d++){const g=i.lines[d];(g.type!==Pt.INSERT&&u.length||g.type===Pt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),g.type===Pt.CONTEXT?r.push([[g],[],[]]):g.type===Pt.INSERT&&l.length===0?r.push([[],[],[g]]):g.type===Pt.INSERT&&l.length>0?u.push(g):g.type===Pt.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,d=Eb(i.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(i,r):[[i,r]]}makeHeaderHtml(i,r){return this.hoganUtils.render(Ds,"block-header",{CSSLineClass:kn,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:""},d=Math.max(r.length,l.length);for(let g=0;g<d;g++){const y=r[g],m=l[g],p=y!==void 0&&m!==void 0?Tb(y.content,m.content,i,this.config):void 0,b=y!==void 0&&y.oldNumber!==void 0?Object.assign(Object.assign({},p!==void 0?{prefix:p.oldLine.prefix,content:p.oldLine.content,type:kn.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(y.content,i)),{type:ao(y.type)})),{number:y.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:kn.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(m.content,i)),{type:ao(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(Ds,"line",{type:(i==null?void 0:i.type)||`${kn.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)===" "?"&nbsp;":i==null?void 0:i.prefix,content:i==null?void 0:i.content,lineNumber:i==null?void 0:i.number})}}var _u={},Fm;function FE(){return Fm||(Fm=1,(function(s){(function(i){var r=/\S/,l=/\"/g,u=/\n/g,d=/\r/g,g=/\\/g,y=/\u2028/,m=/\u2029/;i.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},i.scan=function(L,V){var K=L.length,de=0,Te=1,Ne=2,me=de,I=null,ne=null,oe="",be=[],Ee=!1,S=0,C=0,H="{{",ue="}}";function ye(){oe.length>0&&(be.push({tag:"_t",text:new String(oe)}),oe="")}function we(){for(var Ae=!0,Ue=C;Ue<be.length;Ue++)if(Ae=i.tags[be[Ue].tag]<i.tags._v||be[Ue].tag=="_t"&&be[Ue].text.match(r)===null,!Ae)return!1;return Ae}function pe(Ae,Ue){if(ye(),Ae&&we())for(var Le=C,ke;Le<be.length;Le++)be[Le].text&&((ke=be[Le+1])&&ke.tag==">"&&(ke.indent=be[Le].text.toString()),be.splice(Le,1));else Ue||be.push({tag:`
56
+ `});Ee=!1,C=be.length}function De(Ae,Ue){var Le="="+ue,ke=Ae.indexOf(Le,Ue),Nt=b(Ae.substring(Ae.indexOf("=",Ue)+1,ke)).split(" ");return H=Nt[0],ue=Nt[Nt.length-1],ke+Le.length-1}for(V&&(V=V.split(" "),H=V[0],ue=V[1]),S=0;S<K;S++)me==de?E(H,L,S)?(--S,ye(),me=Te):L.charAt(S)==`
57
+ `?pe(Ee):oe+=L.charAt(S):me==Te?(S+=H.length-1,ne=i.tags[L.charAt(S+1)],I=ne?L.charAt(S+1):"_v",I=="="?(S=De(L,S),me=de):(ne&&S++,me=Ne),Ee=S):E(ue,L,S)?(be.push({tag:I,n:b(oe),otag:H,ctag:ue,i:I=="/"?Ee-H.length:S+ue.length}),oe="",S+=ue.length-1,me=de,I=="{"&&(ue=="}}"?S++:p(be[be.length-1]))):oe+=L.charAt(S);return pe(Ee,!0),be};function p(k){k.n.substr(k.n.length-1)==="}"&&(k.n=k.n.substring(0,k.n.length-1))}function b(k){return k.trim?k.trim():k.replace(/^\s*|\s*$/g,"")}function E(k,L,V){if(L.charAt(V)!=k.charAt(0))return!1;for(var K=1,de=k.length;K<de;K++)if(L.charAt(V+K)!=k.charAt(K))return!1;return!0}var _={_t:!0,"\n":!0,$:!0,"/":!0};function x(k,L,V,K){var de=[],Te=null,Ne=null,me=null;for(Ne=V[V.length-1];k.length>0;){if(me=k.shift(),Ne&&Ne.tag=="<"&&!(me.tag in _))throw new Error("Illegal content in < super tag.");if(i.tags[me.tag]<=i.tags.$||N(me,K))V.push(me),me.nodes=x(k,me.tag,V,K);else if(me.tag=="/"){if(V.length===0)throw new Error("Closing tag without opener: /"+me.n);if(Te=V.pop(),me.n!=Te.n&&!A(me.n,Te.n,K))throw new Error("Nesting error: "+Te.n+" vs. "+me.n);return Te.end=me.i,de}else me.tag==`
58
+ `&&(me.last=k.length==0||k[0].tag==`
59
+ `);de.push(me)}if(V.length>0)throw new Error("missing closing tag: "+V.pop().n);return de}function N(k,L){for(var V=0,K=L.length;V<K;V++)if(L[V].o==k.n)return k.tag="#",!0}function A(k,L,V){for(var K=0,de=V.length;K<de;K++)if(V[K].c==k&&V[K].o==L)return!0}function w(k){var L=[];for(var V in k)L.push('"'+D(V)+'": function(c,p,t,i) {'+k[V]+"}");return"{ "+L.join(",")+" }"}function B(k){var L=[];for(var V in k.partials)L.push('"'+D(V)+'":{name:"'+D(k.partials[V].name)+'", '+B(k.partials[V])+"}");return"partials: {"+L.join(",")+"}, subs: "+w(k.subs)}i.stringify=function(k,L,V){return"{code: function (c,p,i) { "+i.wrapMain(k.code)+" },"+B(k)+"}"};var q=0;i.generate=function(k,L,V){q=0;var K={code:"",subs:{},partials:{}};return i.walk(k,K),V.asString?this.stringify(K,L,V):this.makeTemplate(K,L,V)},i.wrapMain=function(k){return'var t=this;t.b(i=i||"");'+k+"return t.fl();"},i.template=i.Template,i.makeTemplate=function(k,L,V){var K=this.makePartials(k);return K.code=new Function("c","p","i",this.wrapMain(k.code)),new this.template(K,L,this,V)},i.makePartials=function(k){var L,V={subs:{},partials:k.partials,name:k.name};for(L in V.partials)V.partials[L]=this.makePartials(V.partials[L]);for(L in k.subs)V.subs[L]=new Function("c","p","t","i",k.subs[L]);return V};function D(k){return k.replace(g,"\\\\").replace(l,'\\"').replace(u,"\\n").replace(d,"\\r").replace(y,"\\u2028").replace(m,"\\u2029")}function re(k){return~k.indexOf(".")?"d":"f"}function $(k,L){var V="<"+(L.prefix||""),K=V+k.n+q++;return L.partials[K]={name:k.n,partials:{}},L.code+='t.b(t.rp("'+D(K)+'",c,p,"'+(k.indent||"")+'"));',K}i.codegen={"#":function(k,L){L.code+="if(t.s(t."+re(k.n)+'("'+D(k.n)+'",c,p,1),c,p,0,'+k.i+","+k.end+',"'+k.otag+" "+k.ctag+'")){t.rs(c,p,function(c,p,t){',i.walk(k.nodes,L),L.code+="});c.pop();}"},"^":function(k,L){L.code+="if(!t.s(t."+re(k.n)+'("'+D(k.n)+'",c,p,1),c,p,1,0,0,"")){',i.walk(k.nodes,L),L.code+="};"},">":$,"<":function(k,L){var V={partials:{},code:"",subs:{},inPartial:!0};i.walk(k.nodes,V);var K=L.partials[$(k,L)];K.subs=V.subs,K.partials=V.partials},$:function(k,L){var V={subs:{},code:"",partials:L.partials,prefix:k.n};i.walk(k.nodes,V),L.subs[k.n]=V.code,L.inPartial||(L.code+='t.sub("'+D(k.n)+'",c,p,i);')},"\n":function(k,L){L.code+=ie('"\\n"'+(k.last?"":" + i"))},_v:function(k,L){L.code+="t.b(t.v(t."+re(k.n)+'("'+D(k.n)+'",c,p,0)));'},_t:function(k,L){L.code+=ie('"'+D(k.text)+'"')},"{":Q,"&":Q};function Q(k,L){L.code+="t.b(t.t(t."+re(k.n)+'("'+D(k.n)+'",c,p,0)));'}function ie(k){return"t.b("+k+");"}i.walk=function(k,L){for(var V,K=0,de=k.length;K<de;K++)V=i.codegen[k[K].tag],V&&V(k[K],L);return L},i.parse=function(k,L,V){return V=V||{},x(k,"",[],V.sectionTags||[])},i.cache={},i.cacheKey=function(k,L){return[k,!!L.asString,!!L.disableLambda,L.delimiters,!!L.modelGet].join("||")},i.compile=function(k,L){L=L||{};var V=i.cacheKey(k,L),K=this.cache[V];if(K){var de=K.partials;for(var Te in de)delete de[Te].instance;return K}return K=this.generate(this.parse(this.scan(k,L.delimiters),k,L),k,L),this.cache[V]=K}})(s)})(_u)),_u}var Su={},Km;function KE(){return Km||(Km=1,(function(s){(function(i){i.Template=function(x,N,A,w){x=x||{},this.r=x.code||this.r,this.c=A,this.options=w||{},this.text=N||"",this.partials=x.partials||{},this.subs=x.subs||{},this.buf=""},i.Template.prototype={r:function(x,N,A){return""},v:E,t:b,render:function(N,A,w){return this.ri([N],A||{},w)},ri:function(x,N,A){return this.r(x,N,A)},ep:function(x,N){var A=this.partials[x],w=N[A.name];if(A.instance&&A.base==w)return A.instance;if(typeof w=="string"){if(!this.c)throw new Error("No compiler available.");w=this.c.compile(w,this.options)}if(!w)return null;if(this.partials[x].base=w,A.subs){N.stackText||(N.stackText={});for(key in A.subs)N.stackText[key]||(N.stackText[key]=this.activeSub!==void 0&&N.stackText[this.activeSub]?N.stackText[this.activeSub]:this.text);w=l(w,A.subs,A.partials,this.stackSubs,this.stackPartials,N.stackText)}return this.partials[x].instance=w,w},rp:function(x,N,A,w){var B=this.ep(x,A);return B?B.ri(N,A,w):""},rs:function(x,N,A){var w=x[x.length-1];if(!_(w)){A(x,N,this);return}for(var B=0;B<w.length;B++)x.push(w[B]),A(x,N,this),x.pop()},s:function(x,N,A,w,B,q,D){var re;return _(x)&&x.length===0?!1:(typeof x=="function"&&(x=this.ms(x,N,A,w,B,q,D)),re=!!x,!w&&re&&N&&N.push(typeof x=="object"?x:N[N.length-1]),re)},d:function(x,N,A,w){var B,q=x.split("."),D=this.f(q[0],N,A,w),re=this.options.modelGet,$=null;if(x==="."&&_(N[N.length-2]))D=N[N.length-1];else for(var Q=1;Q<q.length;Q++)B=r(q[Q],D,re),B!==void 0?($=D,D=B):D="";return w&&!D?!1:(!w&&typeof D=="function"&&(N.push($),D=this.mv(D,N,A),N.pop()),D)},f:function(x,N,A,w){for(var B=!1,q=null,D=!1,re=this.options.modelGet,$=N.length-1;$>=0;$--)if(q=N[$],B=r(x,q,re),B!==void 0){D=!0;break}return D?(!w&&typeof B=="function"&&(B=this.mv(B,N,A)),B):w?!1:""},ls:function(x,N,A,w,B,q){var D=this.options.delimiters;return this.options.delimiters=q,this.b(this.ct(b(x.call(N,B,A)),N,w)),this.options.delimiters=D,!1},ct:function(x,N,A){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(x,this.options).render(N,A)},b:function(x){this.buf+=x},fl:function(){var x=this.buf;return this.buf="",x},ms:function(x,N,A,w,B,q,D){var re,$=N[N.length-1],Q=x.call($);return typeof Q=="function"?w?!0:(re=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(Q,$,N,A,re.substring(B,q),D)):Q},mv:function(x,N,A){var w=N[N.length-1],B=x.call(w);return typeof B=="function"?this.ct(b(B.call(w)),w,A):B},sub:function(x,N,A,w){var B=this.subs[x];B&&(this.activeSub=x,B(N,A,this,w),this.activeSub=!1)}};function r(x,N,A){var w;return N&&typeof N=="object"&&(N[x]!==void 0?w=N[x]:A&&N.get&&typeof N.get=="function"&&(w=N.get(x))),w}function l(x,N,A,w,B,q){function D(){}D.prototype=x;function re(){}re.prototype=x.subs;var $,Q=new D;Q.subs=new re,Q.subsText={},Q.buf="",w=w||{},Q.stackSubs=w,Q.subsText=q;for($ in N)w[$]||(w[$]=N[$]);for($ in w)Q.subs[$]=w[$];B=B||{},Q.stackPartials=B;for($ in A)B[$]||(B[$]=A[$]);for($ in B)Q.partials[$]=B[$];return Q}var u=/&/g,d=/</g,g=/>/g,y=/\'/g,m=/\"/g,p=/[&<>\"\']/;function b(x){return String(x??"")}function E(x){return x=b(x),p.test(x)?x.replace(u,"&amp;").replace(d,"&lt;").replace(g,"&gt;").replace(y,"&#39;").replace(m,"&quot;"):x}var _=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}})(s)})(Su)),Su}var Tu,Pm;function PE(){if(Pm)return Tu;Pm=1;var s=FE();return s.Template=KE().Template,s.template=s.Template,Tu=s,Tu}var It=PE();const Xt={};Xt["file-summary-line"]=new It.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:{}});Xt["file-summary-wrapper"]=new It.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:{}});Xt["generic-block-header"]=new It.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,d,g){g.b(g.t(g.f("blockHeader",u,d,0)))}),s.pop()),l.s(l.f("blockHeader",s,i,1),s,i,1,0,0,"")||l.b("&nbsp;"),l.b("</div>"),l.b(`
80
+ `+r),l.b(" </td>"),l.b(`
81
+ `+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Xt["generic-empty-diff"]=new It.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:{}});Xt["generic-file-path"]=new It.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:{}});Xt["generic-line"]=new It.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,d,g){g.b(' <span class="d2h-code-line-prefix">'),g.b(g.t(g.f("prefix",u,d,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">&nbsp;</span>'),l.b(`
101
+ `+r)),l.s(l.f("content",s,i,1),s,i,0,371,445,"{{ }}")&&(l.rs(s,i,function(u,d,g){g.b(' <span class="d2h-code-line-ctn">'),g.b(g.t(g.f("content",u,d,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:{}});Xt["generic-wrapper"]=new It.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:{}});Xt["icon-file-added"]=new It.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:{}});Xt["icon-file-changed"]=new It.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:{}});Xt["icon-file-deleted"]=new It.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:{}});Xt["icon-file-renamed"]=new It.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:{}});Xt["icon-file"]=new It.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:{}});Xt["line-by-line-file-diff"]=new It.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:{}});Xt["line-by-line-numbers"]=new It.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:{}});Xt["side-by-side-file-diff"]=new It.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:{}});Xt["tag-file-added"]=new It.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:{}});Xt["tag-file-changed"]=new It.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:{}});Xt["tag-file-deleted"]=new It.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:{}});Xt["tag-file-renamed"]=new It.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 ZE{constructor({compiledTemplates:i={},rawTemplates:r={}}){const l=Object.entries(r).reduce((u,[d,g])=>{const y=It.compile(g,{asString:!1});return Object.assign(Object.assign({},u),{[d]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Xt),i),l)}static compile(i){return It.compile(i,{asString:!1})}render(i,r,l,u,d){const g=this.templateKey(i,r);try{return this.preCompiledTemplates[g].render(l,u,d)}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 XE=Object.assign(Object.assign(Object.assign({},Nb),xb),{outputFormat:pE.LINE_BY_LINE,drawFileList:!0});function QE(s,i={}){const r=Object.assign(Object.assign({},XE),i),l=typeof s=="string"?TE(s,r):s,u=new ZE(r),{colorScheme:d}=r,g={colorScheme:d},y=r.drawFileList?new BE(u,g).render(l):"",m=r.outputFormat==="side-by-side"?new YE(u,r).render(l):new HE(u,r).render(l);return y+m}var Nu=vb();function Va(s){const i=[],r=s.split(`
160
+ `);let l=null,u=null;const d=()=>{l&&u&&i.push({path:u,patch:l.join(`
161
+ `)}),l=null,u=null};for(const g of r)if(g.startsWith("diff --git ")){d(),l=[g];const y=g.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:g.slice(11)}else if(l&&(l.push(g),g.startsWith("--- a/")&&u==="/dev/null"&&(u=g.slice(6)),g==="+++ /dev/null")){const y=l.find(m=>m.startsWith("--- a/"));y&&(u=y.slice(6))}return d(),i}function VE(s,i){const r=new Set(i);return Va(s).filter(l=>r.has(l.path)).map(l=>l.patch).join(`
162
+ `)}function JE(s){return WE(s)}function WE(s,i){const l=new Map;for(const{path:u,patch:d}of Va(s)){const g=new Map;let y=0,m=!1;const p=d.split(`
163
+ `);for(let b=0;b<p.length;b++){const E=p[b],_=E.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){y=Number(_[2]),m=!0;continue}m&&(E===""&&b===p.length-1||E.startsWith("\\")||(E.startsWith("+")||E.startsWith(" ")||E==="")&&(g.set(y,E===""?"":E.slice(1)),y++))}l.set(u,g)}return l}function e_(s){const i=new Map;for(const[r,l]of JE(s))i.set(r,new Set(l.keys()));return i}function t_(s,i){const r=new Set(i.flatMap(l=>l.files));return Va(s).map(l=>l.path).filter(l=>!r.has(l))}function n_(s){return new Map(Va(s).map(i=>[i.path,i.patch.split(`
164
+ `).length]))}const wb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function Zm(s,i){return i?`${wb[i]} **${i}** — ${s}`:s}const a_=["inbox","awaiting","drafted"],_f=["requests","settled","sent","archived"],xu={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 Xm(s){return s.status==="awaiting"||s.status==="running"?"awaiting":s.status==="sent"?"sent":"drafted"}const Is=s=>!!s.pr.state&&s.pr.state!=="OPEN",Qm=["ready","awaiting","running","failed","reviewed","skipped","sent"];function Bl(s){return[...s].sort((i,r)=>Qm.indexOf(i.status)-Qm.indexOf(r.status)||r.updatedAt.localeCompare(i.updatedAt))}const Ab=["sent","reviewed","skipped"];function uo(s){return Bl(s.filter(i=>!Is(i)&&!Ab.includes(i.status)))}function i_(s,i,r){return uo(s).filter(l=>l.key===i||!r.has(l.key))}function l_(s,i){if(!(i!=null&&i.enabled)||i.awaiting.length===0)return[];const r=new Set(uo(s).map(u=>u.id)),l=new Set(i.awaiting.map(u=>u.id));return Bl(s.filter(u=>l.has(u.id)&&!r.has(u.id)))}const s_=(s,i)=>i.some(r=>r.id===s.id);function r_(s,i){const r=s.filter(u=>!Is(u)),l=Bl(r.filter(u=>!Ab.includes(u.status)));return{inbox:l,awaiting:l.filter(u=>Xm(u)==="awaiting"),drafted:l.filter(u=>Xm(u)==="drafted"),requests:l_(s,i),settled:Bl(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Bl(r.filter(u=>u.status==="sent")),archived:Bl(s.filter(Is))}}function o_(s,i){return _f.includes(s)&&i[s].length===0?"inbox":s}function Rb(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 io={"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 c_(s){var i;return Is(s)?((i=s.pr.state)==null?void 0:i.toLowerCase())??null:s.filed?io[s.filed.reason].tag:s.status==="reviewed"||s.status==="skipped"?s.status:null}function u_(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 f_={none:{label:"you haven't replied",title:"GitHub still lists you as a requested reviewer and you have said nothing on the PR — no review, no comment. Whoever opened it is waiting on you."},you:{label:"waiting on them",title:"You had the last word in the conversation but never submitted a review, so GitHub still lists you as a requested reviewer. Nothing is blocked on you until they answer."},them:{label:"they replied last",title:"You commented and someone has answered since, so the conversation is back with you — and GitHub still lists you as a requested reviewer, because a comment is not a review."},unknown:{label:"unanswered on GitHub",title:"You have never submitted a review on GitHub for this PR, so it still lists you as a requested reviewer. Cerber could not read the conversation, so it can't say whether you replied there."}},d_=s=>f_[s];function h_(s){const i=If[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 p_(s){const i=io[s.reason],r=new Date(Rb(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 m_=(s,i)=>s.sent?h_(s.sent):s.filed?p_(s.filed):d_(i);function g_(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 Ob(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 b_={approve:"approve",comment:"comment",request_changes:"changes"},If={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function y_(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 · ${If[s.sent.event]??s.sent.event}`,tone:"sent"}:s.verdict?{label:`${s.verdict.recommendation.replace("_"," ")} ${s.verdict.confidence}%`,tone:b_[s.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function wu(s){return s.trusted?"ran the code":s.withSource?"read the full source":"read the diff only"}function v_(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 E_(s,i,r=Date.now()){var u,d;if(s.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Ob(s.updatedAt,r)} ago`,wu(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 ${If[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",wu(s)]};const l=[wu(s)];return s.filed?l.unshift(io[s.filed.reason].meta(new Date(Rb(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(v_(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:io[s.filed.reason].reasoning,meta:l}:{reasoning:((d=s.verdict)==null?void 0:d.reasoning)??"This review has a draft but no verdict.",meta:l}}const __="/favicon.svg",S_="/favicon-dot.svg",T_=s=>uo(s).length>0,N_=s=>s?S_:__;function x_(s){const i=N_(T_(s)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===i||r.setAttribute("href",i)}async function cn(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 Hf=async()=>{const s=await cn("/api/reviews");return x_(s),s},kb=()=>cn("/api/daemon"),Vm=s=>cn(`/api/reviews/${encodeURIComponent(s)}`),Sf=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}`,{method:"PATCH",body:JSON.stringify(i)}),w_=(s,i,r)=>cn(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"PATCH",body:JSON.stringify(r)}),A_=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}/comments`,{method:"POST",body:JSON.stringify(i)}),R_=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"DELETE"}),O_=s=>cn("/api/reviews",{method:"POST",body:JSON.stringify({input:s})}),k_=s=>cn(`/api/reviews/${encodeURIComponent(s)}/refresh`,{method:"POST"}),Mb=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}/rerun`+(i===void 0?"":`?source=${i?"1":"0"}`),{method:"POST"}),Tf=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}/chat`,{method:"POST",body:JSON.stringify(i)}),M_=s=>cn(`/api/reviews/${encodeURIComponent(s)}/chat/pending`,{method:"DELETE"}),C_=s=>cn(`/api/reviews/${encodeURIComponent(s)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),D_=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}/send-preview?event=${i}`),L_=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}/send`,{method:"POST",body:JSON.stringify({event:i,confirm:!0})}),z_=s=>`/api/reviews/${encodeURIComponent(s)}/export`,U_=()=>cn("/api/config"),Au=(s,i=!1)=>cn("/api/config/trust",{method:"POST",body:JSON.stringify({rule:s,remove:i})}),Ru=s=>cn("/api/config/daemon",{method:"POST",body:JSON.stringify(s)});function Ou(s){return s.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function Nf(s){return s.nodeName.toLowerCase()}function Jm(s){const i=[],r=(l,u)=>{for(let d=l.firstChild;d;d=d.nextSibling)d.nodeType===3&&d.nodeValue!==null?u+=d.nodeValue.length:d.nodeType===1&&(i.push({event:"start",offset:u,node:d}),u=r(d,u),Nf(d).match(/br|hr|img|input/)||i.push({event:"stop",offset:u,node:d}));return u};return r(s,0),i}function B_(s,i,r){let l=0,u="";const d=[];function g(E){return E!==null&&(E==null?void 0:E.attributes)!==void 0}function y(){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+=`<${Nf(E)} ${Array().map.call(E.attributes,_=>`${_.nodeName}="${Ou(_.value).replace(/"/g,"&quot;")}"`).join(" ")}>`}function p(E){u+="</"+Nf(E)+">"}function b(E){(E.event==="start"?m:p)(E.node)}for(;s.length||i.length;){let E=y();if(u+=Ou(r.substring(l,E[0].offset)),l=E[0].offset,E===s){d.reverse().forEach(p);do b(E.splice(0,1)[0]),E=y();while(E===s&&E.length&&E[0].offset===l);d.reverse().forEach(m)}else E[0].event==="start"?d.push(E[0].node):d.pop(),b(E.splice(0,1)[0])}return u+Ou(r.substr(l))}const j_={"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 I_(s){var i;return(i=j_[s])!==null&&i!==void 0?i:"plaintext"}var ku,Wm;function H_(){if(Wm)return ku;Wm=1;function s(O){return O instanceof Map?O.clear=O.delete=O.set=function(){throw new Error("map is read-only")}:O instanceof Set&&(O.add=O.clear=O.delete=function(){throw new Error("set is read-only")}),Object.freeze(O),Object.getOwnPropertyNames(O).forEach(W=>{const he=O[W],Me=typeof he;(Me==="object"||Me==="function")&&!Object.isFrozen(he)&&s(he)}),O}class i{constructor(W){W.data===void 0&&(W.data={}),this.data=W.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(O){return O.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function l(O,...W){const he=Object.create(null);for(const Me in O)he[Me]=O[Me];return W.forEach(function(Me){for(const Ke in Me)he[Ke]=Me[Ke]}),he}const u="</span>",d=O=>!!O.scope,g=(O,{prefix:W})=>{if(O.startsWith("language:"))return O.replace("language:","language-");if(O.includes(".")){const he=O.split(".");return[`${W}${he.shift()}`,...he.map((Me,Ke)=>`${Me}${"_".repeat(Ke+1)}`)].join(" ")}return`${W}${O}`};class y{constructor(W,he){this.buffer="",this.classPrefix=he.classPrefix,W.walk(this)}addText(W){this.buffer+=r(W)}openNode(W){if(!d(W))return;const he=g(W.scope,{prefix:this.classPrefix});this.span(he)}closeNode(W){d(W)&&(this.buffer+=u)}value(){return this.buffer}span(W){this.buffer+=`<span class="${W}">`}}const m=(O={})=>{const W={children:[]};return Object.assign(W,O),W};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(W){this.top.children.push(W)}openNode(W){const he=m({scope:W});this.add(he),this.stack.push(he)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(W){return this.constructor._walk(W,this.rootNode)}static _walk(W,he){return typeof he=="string"?W.addText(he):he.children&&(W.openNode(he),he.children.forEach(Me=>this._walk(W,Me)),W.closeNode(he)),W}static _collapse(W){typeof W!="string"&&W.children&&(W.children.every(he=>typeof he=="string")?W.children=[W.children.join("")]:W.children.forEach(he=>{p._collapse(he)}))}}class b extends p{constructor(W){super(),this.options=W}addText(W){W!==""&&this.add(W)}startScope(W){this.openNode(W)}endScope(){this.closeNode()}__addSublanguage(W,he){const Me=W.root;he&&(Me.scope=`language:${he}`),this.add(Me)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function E(O){return O?typeof O=="string"?O:O.source:null}function _(O){return A("(?=",O,")")}function x(O){return A("(?:",O,")*")}function N(O){return A("(?:",O,")?")}function A(...O){return O.map(he=>E(he)).join("")}function w(O){const W=O[O.length-1];return typeof W=="object"&&W.constructor===Object?(O.splice(O.length-1,1),W):{}}function B(...O){return"("+(w(O).capture?"":"?:")+O.map(Me=>E(Me)).join("|")+")"}function q(O){return new RegExp(O.toString()+"|").exec("").length-1}function D(O,W){const he=O&&O.exec(W);return he&&he.index===0}const re=new RegExp(B(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function $(O,{joinWith:W}){let he=0;return O.map(Me=>{he+=1;const Ke=he;let Xe=E(Me),U="";for(;Xe.length>0;){const P=re.exec(Xe);if(!P){U+=Xe;break}U+=Xe.substring(0,P.index),Xe=Xe.substring(P.index+P[0].length),P[0][0]==="\\"&&P[1]?U+="\\"+String(Number(P[1])+Ke):(U+=P[0],(P[0]==="("||/^\(\?[<']/.test(P[0]))&&he++)}return U}).map(Me=>`(${Me})`).join(W)}const Q=/\b\B/,ie="[a-zA-Z]\\w*",k="[a-zA-Z_]\\w*",L="\\b\\d+(\\.\\d+)?",V="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",de="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Te=(O={})=>{const W=/^#![ ]*\//;return O.binary&&(O.begin=A(W,/.*\b/,O.binary,/\b.*/)),l({scope:"meta",begin:W,end:/$/,relevance:0,"on:begin":(he,Me)=>{he.index!==0&&Me.ignoreMatch()}},O)},Ne={begin:"\\\\[\\s\\S]",relevance:0},me={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ne]},I={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ne]},ne={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/},oe=function(O,W,he={}){const Me=l({scope:"comment",begin:O,end:W,contains:[]},he);Me.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 Ke=B("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 Me.contains.push({begin:A(/[ ]+/,"(",Ke,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Me},be=oe("//","$"),Ee=oe("/\\*","\\*/"),S=oe("#","$"),C={scope:"number",begin:L,relevance:0},H={scope:"number",begin:V,relevance:0},ue={scope:"number",begin:K,relevance:0},ye={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ne,{begin:/\[/,end:/\]/,relevance:0,contains:[Ne]}]},we={scope:"title",begin:ie,relevance:0},pe={scope:"title",begin:k,relevance:0},De={begin:"\\.\\s*"+k,relevance:0};var Ue=Object.freeze({__proto__:null,APOS_STRING_MODE:me,BACKSLASH_ESCAPE:Ne,BINARY_NUMBER_MODE:ue,BINARY_NUMBER_RE:K,COMMENT:oe,C_BLOCK_COMMENT_MODE:Ee,C_LINE_COMMENT_MODE:be,C_NUMBER_MODE:H,C_NUMBER_RE:V,END_SAME_AS_BEGIN:function(O){return Object.assign(O,{"on:begin":(W,he)=>{he.data._beginMatch=W[1]},"on:end":(W,he)=>{he.data._beginMatch!==W[1]&&he.ignoreMatch()}})},HASH_COMMENT_MODE:S,IDENT_RE:ie,MATCH_NOTHING_RE:Q,METHOD_GUARD:De,NUMBER_MODE:C,NUMBER_RE:L,PHRASAL_WORDS_MODE:ne,QUOTE_STRING_MODE:I,REGEXP_MODE:ye,RE_STARTERS_RE:de,SHEBANG:Te,TITLE_MODE:we,UNDERSCORE_IDENT_RE:k,UNDERSCORE_TITLE_MODE:pe});function Le(O,W){O.input[O.index-1]==="."&&W.ignoreMatch()}function ke(O,W){O.className!==void 0&&(O.scope=O.className,delete O.className)}function Nt(O,W){W&&O.beginKeywords&&(O.begin="\\b("+O.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",O.__beforeBegin=Le,O.keywords=O.keywords||O.beginKeywords,delete O.beginKeywords,O.relevance===void 0&&(O.relevance=0))}function je(O,W){Array.isArray(O.illegal)&&(O.illegal=B(...O.illegal))}function $n(O,W){if(O.match){if(O.begin||O.end)throw new Error("begin & end are not supported with match");O.begin=O.match,delete O.match}}function et(O,W){O.relevance===void 0&&(O.relevance=1)}const vn=(O,W)=>{if(!O.beforeMatch)return;if(O.starts)throw new Error("beforeMatch cannot be used with starts");const he=Object.assign({},O);Object.keys(O).forEach(Me=>{delete O[Me]}),O.keywords=he.keywords,O.begin=A(he.beforeMatch,_(he.begin)),O.starts={relevance:0,contains:[Object.assign(he,{endsParent:!0})]},O.relevance=0,delete he.beforeMatch},Yn=["of","and","for","in","not","or","if","then","parent","list","value"],Qt="keyword";function Jt(O,W,he=Qt){const Me=Object.create(null);return typeof O=="string"?Ke(he,O.split(" ")):Array.isArray(O)?Ke(he,O):Object.keys(O).forEach(function(Xe){Object.assign(Me,Jt(O[Xe],W,Xe))}),Me;function Ke(Xe,U){W&&(U=U.map(P=>P.toLowerCase())),U.forEach(function(P){const fe=P.split("|");Me[fe[0]]=[Xe,Wt(fe[0],fe[1])]})}}function Wt(O,W){return W?Number(W):ba(O)?0:1}function ba(O){return Yn.includes(O.toLowerCase())}const Mn={},lt=O=>{console.error(O)},Lt=(O,...W)=>{console.log(`WARN: ${O}`,...W)},bt=(O,W)=>{Mn[`${O}/${W}`]||(console.log(`Deprecated as of ${O}. ${W}`),Mn[`${O}/${W}`]=!0)},Ht=new Error;function un(O,W,{key:he}){let Me=0;const Ke=O[he],Xe={},U={};for(let P=1;P<=W.length;P++)U[P+Me]=Ke[P],Xe[P+Me]=!0,Me+=q(W[P-1]);O[he]=U,O[he]._emit=Xe,O[he]._multi=!0}function Cn(O){if(Array.isArray(O.begin)){if(O.skip||O.excludeBegin||O.returnBegin)throw lt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ht;if(typeof O.beginScope!="object"||O.beginScope===null)throw lt("beginScope must be object"),Ht;un(O,O.begin,{key:"beginScope"}),O.begin=$(O.begin,{joinWith:""})}}function wn(O){if(Array.isArray(O.end)){if(O.skip||O.excludeEnd||O.returnEnd)throw lt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ht;if(typeof O.endScope!="object"||O.endScope===null)throw lt("endScope must be object"),Ht;un(O,O.end,{key:"endScope"}),O.end=$(O.end,{joinWith:""})}}function Dn(O){O.scope&&typeof O.scope=="object"&&O.scope!==null&&(O.beginScope=O.scope,delete O.scope)}function Ln(O){Dn(O),typeof O.beginScope=="string"&&(O.beginScope={_wrap:O.beginScope}),typeof O.endScope=="string"&&(O.endScope={_wrap:O.endScope}),Cn(O),wn(O)}function En(O){function W(U,P){return new RegExp(E(U),"m"+(O.case_insensitive?"i":"")+(O.unicodeRegex?"u":"")+(P?"g":""))}class he{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(P,fe){fe.position=this.position++,this.matchIndexes[this.matchAt]=fe,this.regexes.push([fe,P]),this.matchAt+=q(P)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const P=this.regexes.map(fe=>fe[1]);this.matcherRe=W($(P,{joinWith:"|"}),!0),this.lastIndex=0}exec(P){this.matcherRe.lastIndex=this.lastIndex;const fe=this.matcherRe.exec(P);if(!fe)return null;const He=fe.findIndex((Un,ya)=>ya>0&&Un!==void 0),tt=this.matchIndexes[He];return fe.splice(0,He),Object.assign(fe,tt)}}class Me{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(P){if(this.multiRegexes[P])return this.multiRegexes[P];const fe=new he;return this.rules.slice(P).forEach(([He,tt])=>fe.addRule(He,tt)),fe.compile(),this.multiRegexes[P]=fe,fe}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(P,fe){this.rules.push([P,fe]),fe.type==="begin"&&this.count++}exec(P){const fe=this.getMatcher(this.regexIndex);fe.lastIndex=this.lastIndex;let He=fe.exec(P);if(this.resumingScanAtSamePosition()&&!(He&&He.index===this.lastIndex)){const tt=this.getMatcher(0);tt.lastIndex=this.lastIndex+1,He=tt.exec(P)}return He&&(this.regexIndex+=He.position+1,this.regexIndex===this.count&&this.considerAll()),He}}function Ke(U){const P=new Me;return U.contains.forEach(fe=>P.addRule(fe.begin,{rule:fe,type:"begin"})),U.terminatorEnd&&P.addRule(U.terminatorEnd,{type:"end"}),U.illegal&&P.addRule(U.illegal,{type:"illegal"}),P}function Xe(U,P){const fe=U;if(U.isCompiled)return fe;[ke,$n,Ln,vn].forEach(tt=>tt(U,P)),O.compilerExtensions.forEach(tt=>tt(U,P)),U.__beforeBegin=null,[Nt,je,et].forEach(tt=>tt(U,P)),U.isCompiled=!0;let He=null;return typeof U.keywords=="object"&&U.keywords.$pattern&&(U.keywords=Object.assign({},U.keywords),He=U.keywords.$pattern,delete U.keywords.$pattern),He=He||/\w+/,U.keywords&&(U.keywords=Jt(U.keywords,O.case_insensitive)),fe.keywordPatternRe=W(He,!0),P&&(U.begin||(U.begin=/\B|\b/),fe.beginRe=W(fe.begin),!U.end&&!U.endsWithParent&&(U.end=/\B|\b/),U.end&&(fe.endRe=W(fe.end)),fe.terminatorEnd=E(fe.end)||"",U.endsWithParent&&P.terminatorEnd&&(fe.terminatorEnd+=(U.end?"|":"")+P.terminatorEnd)),U.illegal&&(fe.illegalRe=W(U.illegal)),U.contains||(U.contains=[]),U.contains=[].concat(...U.contains.map(function(tt){return en(tt==="self"?U:tt)})),U.contains.forEach(function(tt){Xe(tt,fe)}),U.starts&&Xe(U.starts,P),fe.matcher=Ke(fe),fe}if(O.compilerExtensions||(O.compilerExtensions=[]),O.contains&&O.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return O.classNameAliases=l(O.classNameAliases||{}),Xe(O)}function Ot(O){return O?O.endsWithParent||Ot(O.starts):!1}function en(O){return O.variants&&!O.cachedVariants&&(O.cachedVariants=O.variants.map(function(W){return l(O,{variants:null},W)})),O.cachedVariants?O.cachedVariants:Ot(O)?l(O,{starts:O.starts?l(O.starts):null}):Object.isFrozen(O)?l(O):O}var kt="11.12.0";class zn extends Error{constructor(W,he){super(W),this.name="HTMLInjectionError",this.html=he}}const An=r,tn=l,Be=Symbol("nomatch"),fn=7,nn=function(O){const W=Object.create(null),he=Object.create(null),Me=[];let Ke=!0;const Xe="Could not find the language '{}', did you forget to load/include a language module?",U={disableAutodetect:!0,name:"Plain text",contains:[]};let P={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function fe(ce){return P.noHighlightRe.test(ce)}function He(ce){let Re=ce.className+" ";Re+=ce.parentNode?ce.parentNode.className:"";const $e=P.languageDetectRe.exec(Re);if($e){const ot=dn($e[1]);return ot||(Lt(Xe.replace("{}",$e[1])),Lt("Falling back to no-highlight mode for this block.",ce)),ot?$e[1]:"no-highlight"}return Re.split(/\s+/).find(ot=>fe(ot)||dn(ot))}function tt(ce,Re,$e){let ot="",Tt="";typeof Re=="object"?(ot=ce,$e=Re.ignoreIllegals,Tt=Re.language):(bt("10.7.0","highlight(lang, code, ...args) has been deprecated."),bt("10.7.0",`Please use highlight(code, options) instead.
165
+ https://github.com/highlightjs/highlight.js/issues/2277`),Tt=ce,ot=Re),$e===void 0&&($e=!0);const qt={code:ot,language:Tt};Rn("before:highlight",qt);const ln=qt.result?qt.result:Un(qt.language,qt.code,$e);return ln.code=qt.code,Rn("after:highlight",ln),ln}function Un(ce,Re,$e,ot){const Tt=Object.create(null);function qt(se,ge){return se.keywords[ge]}function ln(){if(!X.keywords){z.addText(J);return}let se=0;X.keywordPatternRe.lastIndex=0;let ge=X.keywordPatternRe.exec(J),Oe="";for(;ge;){Oe+=J.substring(se,ge.index);const Fe=Gt.case_insensitive?ge[0].toLowerCase():ge[0],Pe=qt(X,Fe);if(Pe){const[ea,Gl]=Pe;if(z.addText(Oe),Oe="",Tt[Fe]=(Tt[Fe]||0)+1,Tt[Fe]<=fn&&(ve+=Gl),ea.startsWith("_"))Oe+=ge[0];else{const Gs=Gt.classNameAliases[ea]||ea;At(ge[0],Gs)}}else Oe+=ge[0];se=X.keywordPatternRe.lastIndex,ge=X.keywordPatternRe.exec(J)}Oe+=J.substring(se),z.addText(Oe)}function Ut(){if(J==="")return;let se=null;if(typeof X.subLanguage=="string"){if(!W[X.subLanguage]){z.addText(J);return}se=Un(X.subLanguage,J,!0,T[X.subLanguage]),T[X.subLanguage]=se._top}else se=Wa(J,X.subLanguage.length?X.subLanguage:null);X.relevance>0&&(ve+=se.relevance),z.__addSublanguage(se._emitter,se.language)}function ct(){X.subLanguage!=null?Ut():ln(),J=""}function At(se,ge){se!==""&&(z.startScope(ge),z.addText(se),z.endScope())}function nl(se,ge){let Oe=1;const Fe=ge.length-1;for(;Oe<=Fe;){if(!se._emit[Oe]){Oe++;continue}const Pe=Gt.classNameAliases[se[Oe]]||se[Oe],ea=ge[Oe];Pe?At(ea,Pe):(J=ea,ln(),J=""),Oe++}}function ni(se,ge){return se.scope&&typeof se.scope=="string"&&z.openNode(Gt.classNameAliases[se.scope]||se.scope),se.beginScope&&(se.beginScope._wrap?(At(J,Gt.classNameAliases[se.beginScope._wrap]||se.beginScope._wrap),J=""):se.beginScope._multi&&(nl(se.beginScope,ge),J="")),X=Object.create(se,{parent:{value:X}}),X}function ai(se,ge,Oe){let Fe=D(se.endRe,Oe);if(Fe){if(se["on:end"]){const Pe=new i(se);se["on:end"](ge,Pe),Pe.isMatchIgnored&&(Fe=!1)}if(Fe){for(;se.endsParent&&se.parent;)se=se.parent;return se}}if(se.endsWithParent)return ai(se.parent,ge,Oe)}function Ca(se){return X.matcher.regexIndex===0?(J+=se[0],1):(Qe=!0,0)}function al(se){const ge=se[0],Oe=se.rule,Fe=new i(Oe),Pe=[Oe.__beforeBegin,Oe["on:begin"]];for(const ea of Pe)if(ea&&(ea(se,Fe),Fe.isMatchIgnored))return Ca(ge);return Oe.skip?J+=ge:(Oe.excludeBegin&&(J+=ge),ct(),!Oe.returnBegin&&!Oe.excludeBegin&&(J=ge)),ni(Oe,se),Oe.returnBegin?0:ge.length}function Sn(se){const ge=se[0],Oe=Re.substring(se.index),Fe=ai(X,se,Oe);if(!Fe)return Be;const Pe=X;X.endScope&&X.endScope._wrap?(ct(),At(ge,X.endScope._wrap)):X.endScope&&X.endScope._multi?(ct(),nl(X.endScope,se)):Pe.skip?J+=ge:(Pe.returnEnd||Pe.excludeEnd||(J+=ge),ct(),Pe.excludeEnd&&(J=ge));do X.scope&&z.closeNode(),!X.skip&&!X.subLanguage&&(ve+=X.relevance),X=X.parent;while(X!==Fe.parent);return Fe.starts&&ni(Fe.starts,se),Pe.returnEnd?0:ge.length}function ii(){const se=[];for(let ge=X;ge!==Gt;ge=ge.parent)ge.scope&&se.unshift(ge.scope);se.forEach(ge=>z.openNode(ge))}let Da={};function li(se,ge){const Oe=ge&&ge[0];if(J+=se,Oe==null)return ct(),0;if(Da.type==="begin"&&ge.type==="end"&&Da.index===ge.index&&Oe===""){if(J+=Re.slice(ge.index,ge.index+1),!Ke){const Fe=new Error(`0 width match regex (${ce})`);throw Fe.languageName=ce,Fe.badRule=Da.rule,Fe}return 1}if(Da=ge,ge.type==="begin")return al(ge);if(ge.type==="illegal"&&!$e){const Fe=new Error('Illegal lexeme "'+Oe+'" for mode "'+(X.scope||"<unnamed>")+'"');throw Fe.mode=X,Fe}else if(ge.type==="end"){const Fe=Sn(ge);if(Fe!==Be)return Fe}if(ge.type==="illegal"&&Oe==="")return ge.index===Re.length||(J+=`
166
+ `),1;if(Ie>1e5&&Ie>ge.index*3)throw new Error("potential infinite loop, way more iterations than matches");return J+=Oe,Oe.length}const Gt=dn(ce);if(!Gt)throw lt(Xe.replace("{}",ce)),new Error('Unknown language: "'+ce+'"');const La=En(Gt);let Sa="",X=ot||La;const T={},z=new P.__emitter(P);ii();let J="",ve=0,Se=0,Ie=0,Qe=!1;try{if(Gt.__emitTokens)Gt.__emitTokens(Re,z);else{for(X.matcher.considerAll();;){Ie++,Qe?Qe=!1:X.matcher.considerAll(),X.matcher.lastIndex=Se;const se=X.matcher.exec(Re);if(!se)break;const ge=Re.substring(Se,se.index),Oe=li(ge,se);Se=se.index+Oe}li(Re.substring(Se))}return z.finalize(),Sa=z.toHTML(),{language:ce,value:Sa,relevance:ve,illegal:!1,_emitter:z,_top:X}}catch(se){if(se.message&&se.message.includes("Illegal"))return{language:ce,value:An(Re),illegal:!0,relevance:0,_illegalBy:{message:se.message,index:Se,context:Re.slice(Se-100,Se+100),mode:se.mode,resultSoFar:Sa},_emitter:z};if(Ke)return{language:ce,value:An(Re),illegal:!1,relevance:0,errorRaised:se,_emitter:z,_top:X};throw se}}function ya(ce){const Re={value:An(ce),illegal:!1,relevance:0,_top:U,_emitter:new P.__emitter(P)};return Re._emitter.addText(ce),Re}function Wa(ce,Re){Re=Re||P.languages||Object.keys(W);const $e=ya(ce),ot=Re.filter(dn).filter(Ea).map(ct=>Un(ct,ce,!1));ot.unshift($e);const Tt=ot.sort((ct,At)=>{if(ct.relevance!==At.relevance)return At.relevance-ct.relevance;if(ct.language&&At.language){if(dn(ct.language).supersetOf===At.language)return 1;if(dn(At.language).supersetOf===ct.language)return-1}return 0}),[qt,ln]=Tt,Ut=qt;return Ut.secondBest=ln,Ut}function _n(ce,Re,$e){const ot=Re&&he[Re]||$e;ce.classList.add("hljs"),ce.classList.add(`language-${ot}`)}function Mt(ce){let Re=null;const $e=He(ce);if(fe($e))return;if(Rn("before:highlightElement",{el:ce,language:$e}),ce.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ce);return}if(ce.children.length>0&&(P.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(ce)),P.throwUnescapedHTML))throw new zn("One of your code blocks includes unescaped HTML.",ce.innerHTML);Re=ce;const ot=Re.textContent,Tt=$e?tt(ot,{language:$e,ignoreIllegals:!0}):Wa(ot);ce.innerHTML=Tt.value,ce.dataset.highlighted="yes",_n(ce,$e,Tt.language),ce.result={language:Tt.language,re:Tt.relevance,relevance:Tt.relevance},Tt.secondBest&&(ce.secondBest={language:Tt.secondBest.language,relevance:Tt.secondBest.relevance}),Rn("after:highlightElement",{el:ce,result:Tt,text:ot})}function an(ce){P=tn(P,ce)}const rt=()=>{ka(),bt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Wn(){ka(),bt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let tl=!1;function ka(){function ce(){ka()}if(document.readyState==="loading"){tl||window.addEventListener("DOMContentLoaded",ce,!1),tl=!0;return}document.querySelectorAll(P.cssSelector).forEach(Mt)}function ei(ce,Re){let $e=null;try{$e=Re(O)}catch(ot){if(lt("Language definition for '{}' could not be registered.".replace("{}",ce)),Ke)lt(ot);else throw ot;$e=U}$e.name||($e.name=ce),W[ce]=$e,$e.rawDefinition=Re.bind(null,O),$e.aliases&&ca($e.aliases,{languageName:ce})}function va(ce){delete W[ce];for(const Re of Object.keys(he))he[Re]===ce&&delete he[Re]}function ti(){return Object.keys(W)}function dn(ce){return ce=(ce||"").toLowerCase(),W[ce]||W[he[ce]]}function ca(ce,{languageName:Re}){typeof ce=="string"&&(ce=[ce]),ce.forEach($e=>{he[$e.toLowerCase()]=Re})}function Ea(ce){const Re=dn(ce);return Re&&!Re.disableAutodetect}function _a(ce){ce["before:highlightBlock"]&&!ce["before:highlightElement"]&&(ce["before:highlightElement"]=Re=>{ce["before:highlightBlock"](Object.assign({block:Re.el},Re))}),ce["after:highlightBlock"]&&!ce["after:highlightElement"]&&(ce["after:highlightElement"]=Re=>{ce["after:highlightBlock"](Object.assign({block:Re.el},Re))})}function pt(ce){_a(ce),Me.push(ce)}function Ma(ce){const Re=Me.indexOf(ce);Re!==-1&&Me.splice(Re,1)}function Rn(ce,Re){const $e=ce;Me.forEach(function(ot){ot[$e]&&ot[$e](Re)})}function ua(ce){return bt("10.7.0","highlightBlock will be removed entirely in v12.0"),bt("10.7.0","Please use highlightElement now."),Mt(ce)}Object.assign(O,{highlight:tt,highlightAuto:Wa,highlightAll:ka,highlightElement:Mt,highlightBlock:ua,configure:an,initHighlighting:rt,initHighlightingOnLoad:Wn,registerLanguage:ei,unregisterLanguage:va,listLanguages:ti,getLanguage:dn,registerAliases:ca,autoDetection:Ea,inherit:tn,addPlugin:pt,removePlugin:Ma}),O.debugMode=function(){Ke=!1},O.safeMode=function(){Ke=!0},O.versionString=kt,O.regex={concat:A,lookahead:_,either:B,optional:N,anyNumberOfTimes:x};for(const ce in Ue)typeof Ue[ce]=="object"&&s(Ue[ce]);return Object.assign(O,Ue),O},zt=nn({});return zt.newInstance=()=>nn({}),ku=zt,zt.HighlightJS=zt,zt.default=zt,ku}var Mu,eg;function q_(){if(eg)return Mu;eg=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,d={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/}]},y=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:[d]},{begin:/'/,end:/'/,contains:[d]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[g,p,m,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[g,y,p,m]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},d,{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 Mu=s,Mu}var Cu,tg;function G_(){if(tg)return Cu;tg=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 d={className:"subst",begin:/\$\(/,end:/\)/,contains:[i.BACKSLASH_ESCAPE]},g=i.inherit(i.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),y={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,d]};d.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}),A={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[i.inherit(i.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},w=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],B=["true","false"],q={match:/(\/[a-z._-]+)+/},D=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],re=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],$=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],Q=["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:w,literal:B,built_in:[...D,...re,"set","shopt",...$,...Q]},contains:[N,i.SHEBANG(),A,_,g,y,q,m,p,b,E,l]}}return Cu=s,Cu}var Du,ng;function $_(){if(ng)return Du;ng=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(d)+"[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]},A=[x,N],w={className:"title",begin:r.optional(d)+i.IDENT_RE,relevance:0},B=r.optional(d)+i.IDENT_RE+"\\s*\\(",q=12,$={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},Q=[...A,p,l,i.C_BLOCK_COMMENT_MODE,_,E],ie={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:$,contains:Q.concat([{begin:/\(/,end:/\)/,keywords:$,contains:Q.concat(["self"]),relevance:0}]),relevance:0},k={begin:"("+y+"[\\*&\\s]+){1,"+q+"}"+B,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:$,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:$,relevance:0},{begin:B,returnBegin:!0,contains:[i.inherit(w,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,E,_,p,{begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,E,_,p]}]},p,l,i.C_BLOCK_COMMENT_MODE,...A]};return{name:"C",aliases:["h"],keywords:$,disableAutodetect:!0,illegal:"</",contains:[].concat(ie,k,Q,[...A,{begin:i.IDENT_RE+"::",keywords:$},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},i.TITLE_MODE]}]),exports:{preprocessor:N,strings:E,keywords:$}}}return Du=s,Du}var Lu,ag;function Y_(){if(ag)return Lu;ag=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(d)+"[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],A={className:"title",begin:r.optional(d)+i.IDENT_RE,relevance:0},w=r.optional(d)+i.IDENT_RE+"\\s*\\(",B=12,q=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],D=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],re=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],$=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],k={type:D,keyword:q,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:re},L={className:"function.dispatch",relevance:0,keywords:{_hint:$},begin:r.concat(/\b/,`(?!${q.join("|")})`,i.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},V=[L,...N,m,l,i.C_BLOCK_COMMENT_MODE,E,b],K={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:V.concat([{begin:/\(/,end:/\)/,keywords:k,contains:V.concat(["self"]),relevance:0}]),relevance:0},de={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+B+"}"+w,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:k,relevance:0},{begin:w,returnBegin:!0,contains:[A],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,E]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,b,E,m,{begin:/\(/,end:/\)/,keywords:k,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:k,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(K,de,L,V,[...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:k,contains:["self",m]},{begin:i.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Lu=s,Lu}var zu,ig;function F_(){if(ig)return zu;ig=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"],d=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],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"],y={keyword:d.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:'""'}]},A=i.inherit(N,{illegal:/\n/}),w={className:"subst",begin:/\{/,end:/\}/,keywords:y},B=i.inherit(w,{illegal:/\n/}),q={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},i.BACKSLASH_ESCAPE,B]},D={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},w]},re=i.inherit(D,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},B]});w.contains=[D,q,N,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.C_BLOCK_COMMENT_MODE],B.contains=[re,q,A,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.inherit(i.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const $={variants:[x,D,q,N,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},Q={begin:"<",end:">",contains:[{beginKeywords:"in out"},m]},ie=i.IDENT_RE+"(<"+i.IDENT_RE+"(\\s*,\\s*"+i.IDENT_RE+")*>)?(\\[\\])?",k={begin:"@"+i.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:y,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"}},$,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},m,Q,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,Q,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:"("+ie+"\\s+)+"+i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:l.join(" "),relevance:0},{begin:i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[i.TITLE_MODE,Q],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[$,_,i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},k]}}return zu=s,zu}var Uu,lg;function K_(){if(lg)return Uu;lg=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(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function 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+)*/,A="[a-zA-Z-][a-zA-Z0-9_-]*",w=[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:"\\."+A,relevance:0},E.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+d.join("|")+")"},{begin:":(:)?("+g.join("|")+")"}]},E.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[E.BLOCK_COMMENT,E.HEXCOLOR,E.IMPORTANT,E.CSS_NUMBER_MODE,E.UNICODE_RANGE,...w,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...w,{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"},...w,E.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b"}]}}return Uu=m,Uu}var Bu,sg;function P_(){if(sg)return Bu;sg=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,}$/},d={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},g={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},y={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},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(q=>{q.contains=q.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:"$"},d,p,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Bu=s,Bu}var ju,rg;function Z_(){if(rg)return ju;rg=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 ju=s,ju}var Iu,og;function X_(){if(og)return Iu;og=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]+/),d=r.concat(u,/(::\w+)*/),y={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},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:y},_={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])*",A={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"}]},w={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},ie=[_,{variants:[{match:[/class\s+/,d,/\s+<\s+/,d]},{match:[/\b(class|module)\s+/,d]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,d],scope:{2:"title.class"},keywords:y},{relevance:0,match:[d,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:u,scope:"title.class"},{match:[/def/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[w]},{begin:"::"},{className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:l}],relevance:0},A,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:y},{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=ie,w.contains=ie;const K=[{begin:/^\s*=>/,starts:{end:"$",contains:ie}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:ie}}];return b.unshift(p),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[i.SHEBANG({binary:"ruby"})].concat(K).concat(b).concat(ie)}}return Iu=s,Iu}var Hu,cg;function Q_(){if(cg)return Hu;cg=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 Hu=s,Hu}var qu,ug;function V_(){if(ug)return qu;ug=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 qu=s,qu}var Gu,fg;function J_(){if(fg)return Gu;fg=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 d={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},g={className:"literal",begin:/\bon|off|true|false|yes|no\b/},y={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,d,y,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,d,y,l]}}]}}return Gu=s,Gu}var $u,dg;function W_(){if(dg)return $u;dg=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,y,m){return m===-1?"":g.replace(y,p=>u(g,y,m-1))}function d(g){const y=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),q={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},D={className:"meta",begin:"@"+m,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},re={className:"params",begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:[g.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:q,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,y.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:[re,g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE]},{begin:[m,y.concat(x,p,/\s+/),m,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:q,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:[D,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,D]}}return $u=d,$u}var Yu,hg;function e0(){if(hg)return Yu;hg=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"],d=["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"],y=[].concat(d,l,u);function m(p){const b=p.regex,E=(pe,{after:De})=>{const Ae="</"+pe[0].slice(1);return pe.input.indexOf(Ae,De)!==-1},_=s,x={begin:"<>",end:"</>"},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(pe,De)=>{const Ae=pe[0].length+pe.index,Ue=pe.input[Ae];if(Ue==="<"||Ue===","){De.ignoreMatch();return}Ue===">"&&(E(pe,{after:Ae})||De.ignoreMatch());let Le;const ke=pe.input.substring(Ae);if(Le=ke.match(/^\s*=/)){De.ignoreMatch();return}if((Le=ke.match(/^\s+extends\s+/))&&Le.index===0){De.ignoreMatch();return}}},w={$pattern:s,keyword:i,literal:r,built_in:y,"variable.language":g},B="[0-9](_?[0-9])*",q=`\\.(${B})`,D="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",re={className:"number",variants:[{begin:`(\\b(${D})((${q})|\\.)?|(${q}))[eE][+-]?(${B})\\b`},{begin:`\\b(${D})\\b((${q})\\b|\\.)?|(${q})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},$={className:"subst",begin:"\\$\\{",end:"\\}",keywords:w,contains:[]},Q={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,$],subLanguage:"xml"}},ie={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,$],subLanguage:"css"}},k={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,$],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,$]},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]},de=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,Q,ie,k,L,{match:/\$\d+/},re];$.contains=de.concat({begin:/\{/,end:/\}/,keywords:w,contains:["self"].concat(de)});const Te=[].concat(K,$.contains),Ne=Te.concat([{begin:/(\s*)\(/,end:/\)/,keywords:w,contains:["self"].concat(Te)}]),me={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:Ne},I={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"}}]},ne={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]}},oe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},be={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[me],illegal:/%/},Ee={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function S(pe){return b.concat("(?!",pe.join("|"),")")}const C={match:b.concat(/\b/,S([...d,"super","import","await"].map(pe=>`${pe}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},H={begin:b.concat(/\./,b.lookahead(b.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ue={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},me]},ye="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",we={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(ye)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[me]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:w,exports:{PARAMS_CONTAINS:Ne,CLASS_REFERENCE:ne},illegal:/#(?![$_A-Za-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),oe,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,Q,ie,k,L,K,{match:/\$\d+/},re,ne,{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:ye,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:w,contains:Ne}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:N},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.end,skip:!0,contains:["self"]}]}]},be,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[me,p.inherit(p.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},H,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[me]},C,Ee,I,ue,{match:/\$[(.]/}]}}return Yu=m,Yu}var Fu,pg;function t0(){if(pg)return Fu;pg=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},d={match:/[{}[\],:]/,className:"punctuation",relevance:0},g=["true","false","null"],y={scope:"literal",beginKeywords:g.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:g},contains:[u,d,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,i,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Fu=r,Fu}var Ku,mg;function n0(){if(mg)return Ku;mg=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(d){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"},y={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},m={className:"symbol",begin:d.UNDERSCORE_IDENT_RE+"@"},p={className:"subst",begin:/\$\{/,end:/\}/,contains:[d.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+d.UNDERSCORE_IDENT_RE},E={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,p]},{begin:"'",end:"'",illegal:/\n/,contains:[d.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[d.BACKSLASH_ESCAPE,b,p]}]};p.contains.push(E);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+d.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+d.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[d.inherit(E,{className:"string"}),"self"]}]},N=l,A=d.COMMENT("/\\*","\\*/",{contains:[d.C_BLOCK_COMMENT_MODE]}),w={variants:[{className:"type",begin:d.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},B=w;return B.variants[1].contains=[w],w.variants[1].contains=[B],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:g,contains:[d.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),d.C_LINE_COMMENT_MODE,A,y,m,_,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:g,relevance:5,contains:[{begin:d.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[d.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:g,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[w,d.C_LINE_COMMENT_MODE,A],relevance:0},d.C_LINE_COMMENT_MODE,A,_,x,E,d.C_NUMBER_MODE]},A]},{begin:[/class|interface|trait/,/\s+/,d.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},d.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,x]},E,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
167
+ `},N]}}return Ku=u,Ku}var Pu,gg;function a0(){if(gg)return Pu;gg=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(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),m=d.concat(g).sort().reverse();function p(b){const E=s(b),_=m,x="and or not only",N="[\\w-]+",A="("+N+"|@\\{"+N+"\\})",w=[],B=[],q=function(Te){return{className:"string",begin:"~?"+Te+".*?"+Te}},D=function(Te,Ne,me){return{className:Te,begin:Ne,relevance:me}},re={$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},$={begin:"\\(",end:"\\)",contains:B,keywords:re,relevance:0};B.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,q("'"),q('"'),E.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},E.UNICODE_RANGE,E.HEXCOLOR,$,D("variable","@@?"+N,10),D("variable","@\\{"+N+"\\}"),D("built_in","~?`[^`]*?`"),{className:"attribute",begin:N+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},E.IMPORTANT,{beginKeywords:"and not"},E.FUNCTION_DISPATCH);const Q=B.concat({begin:/\{/,end:/\}/,contains:w}),ie={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(B)},k={begin:A+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},E.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:B}}]},L={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:re,returnEnd:!0,contains:B,relevance:0}},V={className:"variable",variants:[{begin:"@"+N+"\\s*:",relevance:15},{begin:"@"+N}],starts:{end:"[;}]",returnEnd:!0,contains:Q}},K={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:A,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,ie,D("keyword","all\\b"),D("variable","@\\{"+N+"\\}"),{begin:"\\b("+l.join("|")+")\\b",className:"selector-tag"},E.CSS_NUMBER_MODE,D("selector-tag",A,0),D("selector-id","#"+A),D("selector-class","\\."+A,0),D("selector-tag","&",0),E.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+d.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+g.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:Q},{begin:"!important"},E.FUNCTION_DISPATCH]},de={begin:N+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[K]};return w.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,L,V,de,k,K,ie,E.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:w}}return Pu=p,Pu}var Zu,bg;function i0(){if(bg)return Zu;bg=1;function s(i){const r="\\[=*\\[",l="\\]=*\\]",u={begin:r,end:l,contains:["self"]},d=[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:d.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:d}].concat(d)},i.C_NUMBER_MODE,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{className:"string",begin:r,end:l,contains:[u],relevance:5}])}}return Zu=s,Zu}var Xu,yg;function l0(){if(yg)return Xu;yg=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]},d={begin:"^"+i.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},g={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},y={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[i.HASH_COMMENT_MODE,r,l,u,d,g,y]}}return Xu=s,Xu}var Qu,vg;function s0(){if(vg)return Qu;vg=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}/,d={$pattern:/[\w.]+/,keyword:l.join(" ")},g={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:d},y={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=(w,B,q="\\1")=>{const D=q==="\\1"?q:r.concat(q,B);return r.concat(r.concat("(?:",w,")"),B,/(?:\\.|[^\\\/])*?/,D,/(?:\\.|[^\\\/])*?/,q,u)},N=(w,B,q)=>r.concat(r.concat("(?:",w,")"),B,/(?:\\.|[^\\\/])*?/,q,u),A=[p,i.HASH_COMMENT_MODE,i.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),y,{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=A,y.contains=A,{name:"Perl",aliases:["pl","pm"],keywords:d,contains:A}}return Qu=s,Qu}var Vu,Eg;function r0(){if(Eg)return Vu;Eg=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 Vu=s,Vu}var Ju,_g;function o0(){if(_g)return Ju;_g=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),d=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),y={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":(me,I)=>{I.data._beginMatch=me[1]||me[2]},"on:end":(me,I)=>{I.data._beginMatch!==me[1]&&I.ignoreMatch()}},x=i.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),N=`[
168
+ ]`,A={scope:"string",variants:[E,b,_,x]},w={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},B=["false","null","true"],q=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],D=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],$={keyword:q,literal:(me=>{const I=[];return me.forEach(ne=>{I.push(ne),ne.toLowerCase()===ne?I.push(ne.toUpperCase()):I.push(ne.toLowerCase())}),I})(B),built_in:D},Q=me=>me.map(I=>I.replace(/\|\d+$/,"")),ie={variants:[{match:[/new/,r.concat(N,"+"),r.concat("(?!",Q(D).join("\\b|"),"\\b)"),d],scope:{1:"keyword",4:"title.class"}}]},k=r.concat(u,"\\b(?!\\()"),L={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),k],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[d,r.concat(/::/,r.lookahead(/(?!class\b)/)),k],scope:{1:"title.class",3:"variable.constant"}},{match:[d,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[d,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},V={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},K={relevance:0,begin:/\(/,end:/\)/,keywords:$,contains:[V,y,L,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,A,w,ie]},de={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",Q(q).join("\\b|"),"|",Q(D).join("\\b|"),"\\b)"),u,r.concat(N,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[K]};K.contains.push(de);const Te=[V,L,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,A,w,ie],Ne={begin:r.concat(/#\[\s*\\?/,r.either(d,g)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:B,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:B,keyword:["new","array"]},contains:["self",...Te]},...Te,{scope:"meta",variants:[{match:d},{match:g}]}]};return{case_insensitive:!1,keywords:$,contains:[Ne,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/},y,de,L,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},ie,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},i.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:$,contains:["self",Ne,y,L,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,A,w]}]},{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]},A,w]}}return Ju=s,Ju}var Wu,Sg;function c0(){if(Sg)return Wu;Sg=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 Wu=s,Wu}var ef,Tg;function u0(){if(Tg)return ef;Tg=1;function s(i){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return ef=s,ef}var tf,Ng;function f0(){if(Ng)return tf;Ng=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})\\.`,A=`\\b|${u.join("|")}`,w={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${N}))[eE][+-]?(${x})[jJ]?(?=${A})`},{begin:`(${N})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${A})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${A})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${A})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${A})`},{begin:`\\b(${x})[jJ](?=${A})`}]},B={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:m,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},q={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:["self",p,w,_,i.HASH_COMMENT_MODE]}]};return b.contains=[_,w,p],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:m,illegal:/(<\/|\?)|=>/,contains:[p,w,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,B,i.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[q]},{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:[w,q,_]}]}}return tf=s,tf}var nf,xg;function d0(){if(xg)return nf;xg=1;function s(i){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return nf=s,nf}var af,wg;function h0(){if(wg)return af;wg=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]?/),d=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,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:[d,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:d},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:g},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return af=s,af}var lf,Ag;function p0(){if(Ag)return lf;Ag=1;function s(i){const r=i.regex,l=/(r#)?/,u=r.concat(l,i.UNDERSCORE_IDENT_RE),d=r.concat(l,i.IDENT_RE),g={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,d,r.lookahead(/\s*\(/))},y="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",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_]+)"+y},{begin:"\\b0o([0-7_]+)"+y},{begin:"\\b0x([A-Fa-f0-9_]+)"+y},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+y}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[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 lf=s,lf}var sf,Rg;function m0(){if(Rg)return sf;Rg=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(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function m(p){const b=s(p),E=g,_=d,x="@[a-z-]+",N="and or not only",w={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("|")+")"},w,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,w,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"},w,p.QUOTE_STRING_MODE,p.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return sf=m,sf}var rf,Og;function g0(){if(Og)return rf;Og=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 rf=s,rf}var of,kg;function b0(){if(kg)return of;kg=1;function s(i){const r=i.regex,l=i.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},d={begin:/"/,end:/"/,contains:[{match:/""/}]},g=["true","false","unknown"],y=["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,A=[...b,...p].filter(Q=>!E.includes(Q)),w={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},B={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},q={match:r.concat(/\b/,r.either(...N),/\s*\(/),relevance:0,keywords:{built_in:N}};function D(Q){return r.concat(/\b/,r.either(...Q.map(ie=>ie.replace(/\s+/,"\\s+"))),/\b/)}const re={scope:"keyword",match:D(x),relevance:0};function $(Q,{exceptions:ie,when:k}={}){const L=k;return ie=ie||[],Q.map(V=>V.match(/\|\d+$/)||ie.includes(V)?V:L(V)?`${V}|0`:V)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:$(A,{when:Q=>Q.length<3}),literal:g,type:m,built_in:_},contains:[{scope:"type",match:D(y)},re,q,w,u,d,i.C_NUMBER_MODE,i.C_BLOCK_COMMENT_MODE,l,B]}}return of=s,of}var cf,Mg;function y0(){if(Mg)return cf;Mg=1;function s(k){return k?typeof k=="string"?k:k.source:null}function i(k){return r("(?=",k,")")}function r(...k){return k.map(V=>s(V)).join("")}function l(k){const L=k[k.length-1];return typeof L=="object"&&L.constructor===Object?(k.splice(k.length-1,1),L):{}}function u(...k){return"("+(l(k).capture?"":"?:")+k.map(K=>s(K)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const d=k=>r(/\b/,k,/\w$/.test(k)?/\b/:/\B/),g=["Protocol","Type"].map(d),y=["init","self"].map(d),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]/),A=u(N,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),w=r(N,A,"*"),B=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]/),q=u(B,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),D=r(B,q,"*"),re=r(/[A-Z]/,q,"*"),$=["attached","autoclosure",r(/convention\(/,u("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,D,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Q=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ie(k){const L={match:/\s+/,relevance:0},V=k.COMMENT("/\\*","\\*/",{contains:["self"]}),K=[k.C_LINE_COMMENT_MODE,V],de={match:[/\./,u(...g,...y)],className:{2:"keyword"}},Te={match:r(/\./,u(...p)),relevance:0},Ne=p.filter(Be=>typeof Be=="string").concat(["_|0"]),me=p.filter(Be=>typeof Be!="string").concat(m).map(d),I={variants:[{className:"keyword",match:u(...me,...y)}]},ne={$pattern:u(/\b\w+/,/#\w+/),keyword:Ne.concat(_),literal:b},oe=[de,Te,I],be={match:r(/\./,u(...x)),relevance:0},Ee={className:"built_in",match:r(/\b/,u(...x),/(?=\()/)},S=[be,Ee],C={match:/->/,relevance:0},H={className:"operator",relevance:0,variants:[{match:w},{match:`\\.(\\.|${A})+`}]},ue=[C,H],ye="([0-9]_*)+",we="([0-9a-fA-F]_*)+",pe={className:"number",relevance:0,variants:[{match:`\\b(${ye})(\\.(${ye}))?([eE][+-]?(${ye}))?\\b`},{match:`\\b0x(${we})(\\.(${we}))?([pP][+-]?(${ye}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},De=(Be="")=>({className:"subst",variants:[{match:r(/\\/,Be,/[0\\tnr"']/)},{match:r(/\\/,Be,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ae=(Be="")=>({className:"subst",match:r(/\\/,Be,/[\t ]*(?:[\r\n]|\r\n)/)}),Ue=(Be="")=>({className:"subst",label:"interpol",begin:r(/\\/,Be,/\(/),end:/\)/}),Le=(Be="")=>({begin:r(Be,/"""/),end:r(/"""/,Be),contains:[De(Be),Ae(Be),Ue(Be)]}),ke=(Be="")=>({begin:r(Be,/"/),end:r(/"/,Be),contains:[De(Be),Ue(Be)]}),Nt={className:"string",variants:[Le(),Le("#"),Le("##"),Le("###"),ke(),ke("#"),ke("##"),ke("###")]},je=[k.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[k.BACKSLASH_ESCAPE]}],$n={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:je},et=Be=>{const fn=r(Be,/\//),nn=r(/\//,Be);return{begin:fn,end:nn,contains:[...je,{scope:"comment",begin:`#(?!.*${nn})`,end:/$/}]}},vn={scope:"regexp",variants:[et("###"),et("##"),et("#"),$n]},Yn={match:r(/`/,D,/`/)},Qt={className:"variable",match:/\$\d+/},Jt={className:"variable",match:`\\$${q}+`},Wt=[Yn,Qt,Jt],ba={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Q,contains:[...ue,pe,Nt]}]}},Mn={scope:"keyword",match:r(/@/,u(...$),i(u(/\(/,/\s+/)))},lt={scope:"meta",match:r(/@/,D)},Lt=[ba,Mn,lt],bt={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)/,q,"+")},{className:"type",match:re,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,i(re)),relevance:0}]},Ht={begin:/</,end:/>/,keywords:ne,contains:[...K,...oe,...Lt,C,bt]};bt.contains.push(Ht);const un={match:r(D,/\s*:/),keywords:"_|0",relevance:0},Cn={begin:/\(/,end:/\)/,relevance:0,keywords:ne,contains:["self",un,...K,vn,...oe,...S,...ue,pe,Nt,...Wt,...Lt,bt]},wn={begin:/</,end:/>/,keywords:"repeat each",contains:[...K,bt]},Dn={begin:u(i(r(D,/\s*:/)),i(r(D,/\s+/,D,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:D}]},Ln={begin:/\(/,end:/\)/,keywords:ne,contains:[Dn,...K,...oe,...ue,pe,Nt,...Lt,bt,Cn],endsParent:!0,illegal:/["']/},En={match:[/(func|macro)/,/\s+/,u(Yn.match,D,w)],className:{1:"keyword",3:"title.function"},contains:[wn,Ln,L],illegal:[/\[/,/%/]},Ot={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[wn,Ln,L],illegal:/\[|%/},en={match:[/operator/,/\s+/,w],className:{1:"keyword",3:"title"}},kt={begin:[/precedencegroup/,/\s+/,re],className:{1:"keyword",3:"title"},contains:[bt],keywords:[...E,...b],end:/}/},zn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},An={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},tn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,D,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:ne,contains:[wn,...oe,{begin:/:/,end:/\{/,keywords:ne,contains:[{scope:"title.class.inherited",match:re},...oe],relevance:0}]};for(const Be of Nt.variants){const fn=Be.contains.find(zt=>zt.label==="interpol");fn.keywords=ne;const nn=[...oe,...S,...ue,pe,Nt,...Wt];fn.contains=[...nn,{begin:/\(/,end:/\)/,contains:["self",...nn]}]}return{name:"Swift",keywords:ne,contains:[...K,En,Ot,zn,An,tn,en,kt,{beginKeywords:"import",end:/$/,contains:[...K],relevance:0},vn,...oe,...S,...ue,pe,Nt,...Wt,...Lt,bt,Cn]}}return cf=ie,cf}var uf,Cg;function v0(){if(Cg)return uf;Cg=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]|$)/}]},d={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},g={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},y={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[i.BACKSLASH_ESCAPE,d]},m=i.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},N={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},A={begin:/\{/,end:/\}/,contains:[N],illegal:"\\n",relevance:0},w={begin:"\\[",end:"\\]",contains:[N],illegal:"\\n",relevance:0},B=[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},A,w,g,y],q=[...B];return q.pop(),q.push(m),N.contains=q,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:B}}return uf=s,uf}var ff,Dg;function E0(){if(Dg)return ff;Dg=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"],d=["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"],y=[].concat(d,l,u);function m(b){const E=b.regex,_=(De,{after:Ae})=>{const Ue="</"+De[0].slice(1);return De.input.indexOf(Ue,Ae)!==-1},x=s,N={begin:"<>",end:"</>"},A=/<[A-Za-z0-9\\._:-]+\s*\/>/,w={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(De,Ae)=>{const Ue=De[0].length+De.index,Le=De.input[Ue];if(Le==="<"||Le===","){Ae.ignoreMatch();return}Le===">"&&(_(De,{after:Ue})||Ae.ignoreMatch());let ke;const Nt=De.input.substring(Ue);if(ke=Nt.match(/^\s*=/)){Ae.ignoreMatch();return}if((ke=Nt.match(/^\s+extends\s+/))&&ke.index===0){Ae.ignoreMatch();return}}},B={$pattern:s,keyword:i,literal:r,built_in:y,"variable.language":g},q="[0-9](_?[0-9])*",D=`\\.(${q})`,re="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",$={className:"number",variants:[{begin:`(\\b(${re})((${D})|\\.)?|(${D}))[eE][+-]?(${q})\\b`},{begin:`\\b(${re})\\b((${D})\\b|\\.)?|(${D})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},Q={className:"subst",begin:"\\$\\{",end:"\\}",keywords:B,contains:[]},ie={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,Q],subLanguage:"xml"}},k={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,Q],subLanguage:"css"}},L={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,Q],subLanguage:"graphql"}},V={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,Q]},de={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]},Te=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ie,k,L,V,{match:/\$\d+/},$];Q.contains=Te.concat({begin:/\{/,end:/\}/,keywords:B,contains:["self"].concat(Te)});const Ne=[].concat(de,Q.contains),me=Ne.concat([{begin:/(\s*)\(/,end:/\)/,keywords:B,contains:["self"].concat(Ne)}]),I={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:B,contains:me},ne={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"}}]},oe={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]}},be={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Ee={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[I],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function C(De){return E.concat("(?!",De.join("|"),")")}const H={match:E.concat(/\b/,C([...d,"super","import","await"].map(De=>`${De}\\s*\\(`)),x,E.lookahead(/\s*\(/)),className:"title.function",relevance:0},ue={begin:E.concat(/\./,E.lookahead(E.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ye={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},I]},we="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",pe={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,E.lookahead(we)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[I]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:B,exports:{PARAMS_CONTAINS:me,CLASS_REFERENCE:oe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),be,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ie,k,L,V,de,{match:/\$\d+/},$,oe,{scope:"attr",match:x+E.lookahead(":"),relevance:0},pe,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[de,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:B,contains:me}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:N.begin,end:N.end},{match:A},{begin:w.begin,"on:begin":w.isTrulyOpeningTag,end:w.end}],subLanguage:"xml",contains:[{begin:w.begin,end:w.end,skip:!0,contains:["self"]}]}]},Ee,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[I,b.inherit(b.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},ue,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[I]},H,S,ne,ye,{match:/\$[(.]/}]}}function p(b){const E=b.regex,_=m(b),x=s,N=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],A={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},w={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:N},contains:[_.exports.CLASS_REFERENCE]},B={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},q=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],D={$pattern:s,keyword:i.concat(q),literal:r,built_in:y.concat(N),"variable.language":g},re={className:"meta",begin:"@"+x},$=(L,V,K)=>{const de=L.contains.findIndex(Te=>Te.label===V);if(de===-1)throw new Error("can not find mode to replace");L.contains.splice(de,1,K)};Object.assign(_.keywords,D),_.exports.PARAMS_CONTAINS.push(re);const Q=_.contains.find(L=>L.scope==="attr"),ie=Object.assign({},Q,{match:E.concat(x,E.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,Q,ie]),_.contains=_.contains.concat([re,A,w,ie]),$(_,"shebang",b.SHEBANG()),$(_,"use_strict",B);const k=_.contains.find(L=>L.label==="func.def");return k.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return ff=p,ff}var df,Lg;function _0(){if(Lg)return df;Lg=1;function s(i){const r=i.regex,l={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},d=/\d{1,2}\/\d{1,2}\/\d{4}/,g=/\d{4}-\d{1,2}-\d{1,2}/,y=/(\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,d),/ *#/)},{begin:r.concat(/# */,m,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(g,d),/ +/,r.either(y,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 df=s,df}var hf,zg;function S0(){if(zg)return hf;zg=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"],d={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},g={className:"variable",begin:/\$[\w_]+/},y={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,y,d,i.QUOTE_STRING_MODE,p,b,m]}}return hf=s,hf}var pf,Ug;function T0(){if(Ug)return pf;Ug=1;var s=H_();return s.registerLanguage("xml",q_()),s.registerLanguage("bash",G_()),s.registerLanguage("c",$_()),s.registerLanguage("cpp",Y_()),s.registerLanguage("csharp",F_()),s.registerLanguage("css",K_()),s.registerLanguage("markdown",P_()),s.registerLanguage("diff",Z_()),s.registerLanguage("ruby",X_()),s.registerLanguage("go",Q_()),s.registerLanguage("graphql",V_()),s.registerLanguage("ini",J_()),s.registerLanguage("java",W_()),s.registerLanguage("javascript",e0()),s.registerLanguage("json",t0()),s.registerLanguage("kotlin",n0()),s.registerLanguage("less",a0()),s.registerLanguage("lua",i0()),s.registerLanguage("makefile",l0()),s.registerLanguage("perl",s0()),s.registerLanguage("objectivec",r0()),s.registerLanguage("php",o0()),s.registerLanguage("php-template",c0()),s.registerLanguage("plaintext",u0()),s.registerLanguage("python",f0()),s.registerLanguage("python-repl",d0()),s.registerLanguage("r",h0()),s.registerLanguage("rust",p0()),s.registerLanguage("scss",m0()),s.registerLanguage("shell",g0()),s.registerLanguage("sql",b0()),s.registerLanguage("swift",y0()),s.registerLanguage("yaml",v0()),s.registerLanguage("typescript",E0()),s.registerLanguage("vbnet",_0()),s.registerLanguage("wasm",S0()),s.HighlightJS=s,s.default=s,pf=s,pf}var N0=T0();const Cb=yb(N0),x0={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},w0=2e5,Db="http://www.w3.org/1999/xhtml";function A0(s){for(const i of s.querySelectorAll(".d2h-file-wrapper")){const r=R0(i.dataset.lang??"");if(r)for(const l of O0(i))Bg(l.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Bg(l.filter(u=>u.kind!=="del"),()=>!0,r)}}function R0(s){const i=x0[s]??I_(s);return i==="plaintext"||!Cb.getLanguage(i)?null:i}function O0(s){const i=[];let r=[];for(const l of s.querySelectorAll(".d2h-diff-tbody > tr")){const u=l.querySelector("td:last-child"),d=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!d){r.length&&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:d})}return r.length&&i.push(r),i}function Bg(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>w0)return;const d=M0(Cb.highlight(u,{language:r,ignoreIllegals:!0}).value);s.forEach((g,y)=>{const m=d[y];m===void 0||!i(g)||k0(g.ctn,m)})}function k0(s,i){const r=Jm(s);let l=i;if(r.length){const u=document.createElementNS(Db,"div");u.innerHTML=i,l=B_(r,Jm(u),s.textContent??"")}s.classList.add("hljs"),s.innerHTML=l}function M0(s){const i=document.createElementNS(Db,"div");i.innerHTML=s;const r=[],l=[];let u="";const d=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+=C0(p)});return}const y=`<span class="${g.className}">`;u+=y,l.push(y),g.childNodes.forEach(d),l.pop(),u+="</span>"};return i.childNodes.forEach(d),r.push(u),r}function C0(s){return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const D0={arrowRight:["M5 12h14","m12 5 7 7-7 7"],chevronLeft:["m15 6-6 6 6 6"],chevronRight:["m9 6 6 6-6 6"],skip:["m5 4 10 8-10 8V4Z","M19 5v14"],rerun:["M21 12a9 9 0 1 1-3-6.7","M21 4v5h-5"],zap:["M13 2 4 14h7l-1 8 9-12h-7Z"],comment:["M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"],check:["M20 6 9 17l-5-5"],edit:["M12 20h9","M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"],drop:["M3 6h18","M8 6V4h8v2","M6 6l1 14h10l1-14"],plus:["M12 5v14","M5 12h14"],file:["M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8Z","M14 3v5h5"],send:["M22 2 11 13","M22 2 15 22l-4-9-9-4Z"],eye:["M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"],download:["M12 3v12","m7 12 5 5 5-5","M5 21h14"],external:["M14 4h6v6","M20 4 10 14","M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"],settings:["M20 7h-9","M14 17H5"],down:["M12 5v13","m6 12 6 6 6-6"],up:["M12 19V6","m6 12 6-6 6 6"],bell:["M18 9a6 6 0 1 0-12 0c0 5-2 6-2 6h16s-2-1-2-6","M13.7 20a2 2 0 0 1-3.4 0"],bellOff:["M8.5 3.6A6 6 0 0 1 18 9c0 1.7.2 2.9.6 3.9","M16.5 17H4s2-1 2-6a6 6 0 0 1 .7-2.8","M13.7 20a2 2 0 0 1-3.4 0","m3 3 18 18"]},L0={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}]},z0={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Ze({name:s,size:i=13}){const r=[...D0[s]??[],...z0[s]??[]];return f.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:[(L0[s]??[]).map((l,u)=>f.jsx("circle",{cx:l.cx,cy:l.cy,r:l.r},u)),r.map((l,u)=>f.jsx("path",{d:l},u))]})}function U0({size:s=17}){return f.jsxs("svg",{className:"logo",width:s,height:s,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[f.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),f.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),f.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),f.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function Di({children:s}){return f.jsx("span",{className:"key",children:s})}/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function jg(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 B0(s){if(Array.isArray(s))return s}function j0(s,i){var r=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(r!=null){var l,u,d,g,y=[],m=!0,p=!1;try{if(d=(r=r.call(s)).next,i!==0)for(;!(m=(l=d.call(r)).done)&&(y.push(l.value),y.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 y}}function I0(){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 H0(s,i){return B0(s)||j0(s,i)||q0(s,i)||I0()}function q0(s,i){if(s){if(typeof s=="string")return jg(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)?jg(s,i):void 0}}const Lb=Object.entries,Ig=Object.setPrototypeOf,G0=Object.isFrozen,$0=Object.getPrototypeOf,Y0=Object.getOwnPropertyDescriptor;let bn=Object.freeze,yn=Object.seal,Ul=Object.create,zb=typeof Reflect<"u"&&Reflect,xf=zb.apply,wf=zb.construct;bn||(bn=function(i){return i});yn||(yn=function(i){return i});xf||(xf=function(i,r){for(var l=arguments.length,u=new Array(l>2?l-2:0),d=2;d<l;d++)u[d-2]=arguments[d];return i.apply(r,u)});wf||(wf=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 Dl=Zt(Array.prototype.forEach),F0=Zt(Array.prototype.lastIndexOf),Hg=Zt(Array.prototype.pop),Ll=Zt(Array.prototype.push),K0=Zt(Array.prototype.splice),Ci=Array.isArray,Bs=Zt(String.prototype.toLowerCase),mf=Zt(String.prototype.toString),qg=Zt(String.prototype.match),Ls=Zt(String.prototype.replace),Gg=Zt(String.prototype.indexOf),P0=Zt(String.prototype.trim),Z0=Zt(Number.prototype.toString),X0=Zt(Boolean.prototype.toString),$g=typeof BigInt>"u"?null:Zt(BigInt.prototype.toString),Yg=typeof Symbol>"u"?null:Zt(Symbol.prototype.toString),on=Zt(Object.prototype.hasOwnProperty),zs=Zt(Object.prototype.toString),rn=Zt(RegExp.prototype.test),Qi=Q0(TypeError);function Zt(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 xf(s,i,l)}}function Q0(s){return function(){for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return wf(s,r)}}function st(s,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bs;if(Ig&&Ig(s,null),!Ci(i))return s;let l=i.length;for(;l--;){let u=i[l];if(typeof u=="string"){const d=r(u);d!==u&&(G0(i)||(i[l]=d),u=d)}s[u]=!0}return s}function V0(s){for(let i=0;i<s.length;i++)on(s,i)||(s[i]=null);return s}function Nn(s){const i=Ul(null);for(const l of Lb(s)){var r=H0(l,2);const u=r[0],d=r[1];on(s,u)&&(Ci(d)?i[u]=V0(d):d&&typeof d=="object"&&d.constructor===Object?i[u]=Nn(d):i[u]=d)}return i}function J0(s){switch(typeof s){case"string":return s;case"number":return Z0(s);case"boolean":return X0(s);case"bigint":return $g?$g(s):"0";case"symbol":return Yg?Yg(s):"Symbol()";case"undefined":return zs(s);case"function":case"object":{if(s===null)return zs(s);const i=s,r=pa(i,"toString");if(typeof r=="function"){const l=r(i);return typeof l=="string"?l:zs(l)}return zs(s)}default:return zs(s)}}function pa(s,i){for(;s!==null;){const l=Y0(s,i);if(l){if(l.get)return Zt(l.get);if(typeof l.value=="function")return Zt(l.value)}s=$0(s)}function r(){return null}return r}function W0(s){try{return rn(s,""),!0}catch{return!1}}const Fg=bn(["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"]),gf=bn(["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"]),bf=bn(["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"]),eS=bn(["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"]),yf=bn(["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"]),tS=bn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Kg=bn(["#text"]),Pg=bn(["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"]),vf=bn(["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"]),Zg=bn(["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=bn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nS=yn(/{{[\w\W]*|^[\w\W]*}}/g),aS=yn(/<%[\w\W]*|^[\w\W]*%>/g),iS=yn(/\${[\w\W]*/g),lS=yn(/^data-[\-\w.\u00B7-\uFFFF]+$/),sS=yn(/^aria-[\-\w]+$/),Xg=yn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rS=yn(/^(?:\w+script|data):/i),oS=yn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cS=yn(/^html$/i),uS=yn(/^[a-z][.\w]*(-[.\w]+)+$/i),Qg=yn(/<[/\w!]/g),Vg=yn(/<[/\w]/g),fS=yn(/<\/no(script|embed|frames)/i),dS=yn(/\/>/i),Jn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},hS=function(){return typeof window>"u"?null:window},pS=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 d="dompurify"+(l?"#"+l:"");try{return i.createPolicy(d,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},Jg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Oi=function(i,r,l,u){return on(i,r)&&Ci(i[r])?st(u.base?Nn(u.base):{},i[r],u.transform):l};function Ub(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hS();const i=X=>Ub(X);if(i.version="3.4.13",i.removed=[],!s||!s.document||s.document.nodeType!==Jn.document||!s.Element)return i.isSupported=!1,i;let r=s.document;const l=r,u=l.currentScript;s.DocumentFragment;const d=s.HTMLTemplateElement,g=s.Node,y=s.Element,m=s.NodeFilter,p=s.NamedNodeMap;p===void 0&&(s.NamedNodeMap||s.MozNamedAttrMap),s.HTMLFormElement;const b=s.DOMParser,E=s.trustedTypes,_=y.prototype,x=pa(_,"cloneNode"),N=pa(_,"remove"),A=pa(_,"nextSibling"),w=pa(_,"childNodes"),B=pa(_,"parentNode"),q=pa(_,"shadowRoot"),D=pa(_,"attributes"),re=g&&g.prototype?pa(g.prototype,"nodeType"):null,$=g&&g.prototype?pa(g.prototype,"nodeName"):null,Q=g&&g.prototype?pa(g.prototype,"ownerDocument"):null;if(typeof d=="function"){const X=r.createElement("template");X.content&&X.content.ownerDocument&&(r=X.content.ownerDocument)}let ie,k="",L,V=!1,K=0;const de=function(){if(K>0)throw Qi('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.')},Te=function(T){de(),K++;try{return ie.createHTML(T)}finally{K--}},Ne=function(T){de(),K++;try{return ie.createScriptURL(T)}finally{K--}},me=function(){return V||(L=pS(E,u),V=!0),L},I=r,ne=I.implementation,oe=I.createNodeIterator,be=I.createDocumentFragment,Ee=I.getElementsByTagName,S=l.importNode;let C=Jg();i.isSupported=typeof Lb=="function"&&typeof B=="function"&&ne&&ne.createHTMLDocument!==void 0;const H=nS,ue=aS,ye=iS,we=lS,pe=sS,De=rS,Ae=oS,Ue=uS;let Le=Xg,ke=null;const Nt=st({},[...Fg,...gf,...bf,...yf,...Kg]);let je=null;const $n=st({},[...Pg,...vf,...Zg,...Vr]);let et=Object.seal(Ul(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),vn=null,Yn=null;const Qt=Object.seal(Ul(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Jt=!0,Wt=!0,ba=!1,Mn=!0,lt=!1,Lt=!0,bt=!1,Ht=!1,un=null,Cn=null,wn=!1,Dn=!1,Ln=!1,En=!1,Ot=!0,en=!1;const kt="user-content-";let zn=!0,An=!1,tn={},Be=null;const fn=st({},["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 nn=null;const zt=st({},["audio","video","img","source","image","track"]);let O=null;const W=st({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",Me="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let Xe=Ke,U=!1,P=null;const fe=st({},[he,Me,Ke],mf),He=bn(["mi","mo","mn","ms","mtext"]);let tt=st({},He);const Un=bn(["annotation-xml"]);let ya=st({},Un);const Wa=st({},["title","style","font","a","script"]);let _n=null;const Mt=["application/xhtml+xml","text/html"],an="text/html";let rt=null,Wn=null;const tl=r.createElement("form"),ka=function(T){return T instanceof RegExp||T instanceof Function},ei=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Wn&&Wn===T)return;(!T||typeof T!="object")&&(T={}),T=Nn(T),_n=Mt.indexOf(T.PARSER_MEDIA_TYPE)===-1?an:T.PARSER_MEDIA_TYPE,rt=_n==="application/xhtml+xml"?mf:Bs,ke=Oi(T,"ALLOWED_TAGS",Nt,{transform:rt}),je=Oi(T,"ALLOWED_ATTR",$n,{transform:rt}),P=Oi(T,"ALLOWED_NAMESPACES",fe,{transform:mf}),O=Oi(T,"ADD_URI_SAFE_ATTR",W,{transform:rt,base:W}),nn=Oi(T,"ADD_DATA_URI_TAGS",zt,{transform:rt,base:zt}),Be=Oi(T,"FORBID_CONTENTS",fn,{transform:rt}),vn=Oi(T,"FORBID_TAGS",Nn({}),{transform:rt}),Yn=Oi(T,"FORBID_ATTR",Nn({}),{transform:rt}),tn=on(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?Nn(T.USE_PROFILES):T.USE_PROFILES:!1,Jt=T.ALLOW_ARIA_ATTR!==!1,Wt=T.ALLOW_DATA_ATTR!==!1,ba=T.ALLOW_UNKNOWN_PROTOCOLS||!1,Mn=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=T.SAFE_FOR_TEMPLATES||!1,Lt=T.SAFE_FOR_XML!==!1,bt=T.WHOLE_DOCUMENT||!1,Dn=T.RETURN_DOM||!1,Ln=T.RETURN_DOM_FRAGMENT||!1,En=T.RETURN_TRUSTED_TYPE||!1,wn=T.FORCE_BODY||!1,Ot=T.SANITIZE_DOM!==!1,en=T.SANITIZE_NAMED_PROPS||!1,zn=T.KEEP_CONTENT!==!1,An=T.IN_PLACE||!1,Le=W0(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:Xg,Xe=typeof T.NAMESPACE=="string"?T.NAMESPACE:Ke,tt=on(T,"MATHML_TEXT_INTEGRATION_POINTS")&&T.MATHML_TEXT_INTEGRATION_POINTS&&typeof T.MATHML_TEXT_INTEGRATION_POINTS=="object"?Nn(T.MATHML_TEXT_INTEGRATION_POINTS):st({},He),ya=on(T,"HTML_INTEGRATION_POINTS")&&T.HTML_INTEGRATION_POINTS&&typeof T.HTML_INTEGRATION_POINTS=="object"?Nn(T.HTML_INTEGRATION_POINTS):st({},Un);const z=on(T,"CUSTOM_ELEMENT_HANDLING")&&T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING=="object"?Nn(T.CUSTOM_ELEMENT_HANDLING):Ul(null);if(et=Ul(null),on(z,"tagNameCheck")&&ka(z.tagNameCheck)&&(et.tagNameCheck=z.tagNameCheck),on(z,"attributeNameCheck")&&ka(z.attributeNameCheck)&&(et.attributeNameCheck=z.attributeNameCheck),on(z,"allowCustomizedBuiltInElements")&&typeof z.allowCustomizedBuiltInElements=="boolean"&&(et.allowCustomizedBuiltInElements=z.allowCustomizedBuiltInElements),yn(et),lt&&(Wt=!1),Ln&&(Dn=!0),tn&&(ke=st({},Kg),je=Ul(null),tn.html===!0&&(st(ke,Fg),st(je,Pg)),tn.svg===!0&&(st(ke,gf),st(je,vf),st(je,Vr)),tn.svgFilters===!0&&(st(ke,bf),st(je,vf),st(je,Vr)),tn.mathMl===!0&&(st(ke,yf),st(je,Zg),st(je,Vr))),Qt.tagCheck=null,Qt.attributeCheck=null,on(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?Qt.tagCheck=T.ADD_TAGS:Ci(T.ADD_TAGS)&&(ke===Nt&&(ke=Nn(ke)),st(ke,T.ADD_TAGS,rt))),on(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?Qt.attributeCheck=T.ADD_ATTR:Ci(T.ADD_ATTR)&&(je===$n&&(je=Nn(je)),st(je,T.ADD_ATTR,rt))),on(T,"ADD_URI_SAFE_ATTR")&&Ci(T.ADD_URI_SAFE_ATTR)&&st(O,T.ADD_URI_SAFE_ATTR,rt),on(T,"FORBID_CONTENTS")&&Ci(T.FORBID_CONTENTS)&&(Be===fn&&(Be=Nn(Be)),st(Be,T.FORBID_CONTENTS,rt)),on(T,"ADD_FORBID_CONTENTS")&&Ci(T.ADD_FORBID_CONTENTS)&&(Be===fn&&(Be=Nn(Be)),st(Be,T.ADD_FORBID_CONTENTS,rt)),zn&&(ke["#text"]=!0),bt&&st(ke,["html","head","body"]),ke.table&&(st(ke,["tbody"]),delete vn.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const J=ie;ie=T.TRUSTED_TYPES_POLICY;try{k=Te("")}catch(ve){throw ie=J,ve}}else T.TRUSTED_TYPES_POLICY===null?(ie=void 0,k=""):(ie===void 0&&(ie=me()),ie&&typeof k=="string"&&(k=Te("")));bn&&bn(T),Wn=T},va=st({},[...gf,...bf,...eS]),ti=st({},[...yf,...tS]),dn=function(T,z,J){return z.namespaceURI===Ke?T==="svg":z.namespaceURI===he?T==="svg"&&(J==="annotation-xml"||tt[J]):!!va[T]},ca=function(T,z,J){return z.namespaceURI===Ke?T==="math":z.namespaceURI===Me?T==="math"&&ya[J]:!!ti[T]},Ea=function(T,z,J){return z.namespaceURI===Me&&!ya[J]||z.namespaceURI===he&&!tt[J]?!1:!ti[T]&&(Wa[T]||!va[T])},_a=function(T){let z=B(T);(!z||!z.tagName)&&(z={namespaceURI:Xe,tagName:"template"});const J=Bs(T.tagName),ve=Bs(z.tagName);return P[T.namespaceURI]?T.namespaceURI===Me?dn(J,z,ve):T.namespaceURI===he?ca(J,z,ve):T.namespaceURI===Ke?Ea(J,z,ve):!!(_n==="application/xhtml+xml"&&P[T.namespaceURI]):!1},pt=function(T){Ll(i.removed,{element:T});try{B(T).removeChild(T)}catch{if(N(T),!B(T))throw Qi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ma=function(T){ce(T);const z=w(T);if(z){const ve=[];Dl(z,Se=>{Ll(ve,Se)}),Dl(ve,Se=>{try{N(Se)}catch{}})}const J=D(T);if(J)for(let ve=J.length-1;ve>=0;--ve){const Se=J[ve],Ie=Se&&Se.name;if(typeof Ie=="string")try{T.removeAttribute(Ie)}catch{}}},Rn=function(T,z){try{Ll(i.removed,{attribute:z.getAttributeNode(T),from:z})}catch{Ll(i.removed,{attribute:null,from:z})}if(z.removeAttribute(T),T==="is")if(Dn||Ln)try{pt(z)}catch{}else try{z.setAttribute(T,"")}catch{}},ua=function(T){const z=D(T);if(z)for(let J=z.length-1;J>=0;--J){const ve=z[J],Se=ve&&ve.name;if(!(typeof Se!="string"||je[rt(Se)]))try{T.removeAttribute(Se)}catch{}}},ce=function(T){const z=[T];for(;z.length>0;){const J=z.pop();(re?re(J):J.nodeType)===Jn.element&&ua(J);const Se=w(J);if(Se)for(let Ie=Se.length-1;Ie>=0;--Ie)z.push(Se[Ie])}},Re=function(T){if(!Lt)return;const z=[T];for(;z.length>0;){const J=z.pop(),ve=re?re(J):J.nodeType;if(ve===Jn.processingInstruction||ve===Jn.comment&&rn(Vg,J.data)){try{N(J)}catch{}continue}if(ve===Jn.element){const Ie=J,Qe=rt($?$(J):J.nodeName);try{Ie.hasAttribute&&Ie.hasAttribute("patchsrc")&&Ie.removeAttribute("patchsrc"),Ie.hasAttribute&&Ie.hasAttribute("for")&&Qe!=="label"&&Qe!=="output"&&Ie.removeAttribute("for")}catch{}}const Se=w(J);if(Se)for(let Ie=Se.length-1;Ie>=0;--Ie)z.push(Se[Ie])}},$e=function(T){let z=null,J=null;if(wn)T="<remove></remove>"+T;else{const Ie=qg(T,/^[\r\n\t ]+/);J=Ie&&Ie[0]}_n==="application/xhtml+xml"&&Xe===Ke&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const ve=ie?Te(T):T;if(Xe===Ke)try{z=new b().parseFromString(ve,_n)}catch{}if(!z||!z.documentElement){z=ne.createDocument(Xe,"template",null);try{z.documentElement.innerHTML=U?k:ve}catch{}}const Se=z.body||z.documentElement;return T&&J&&Se.insertBefore(r.createTextNode(J),Se.childNodes[0]||null),Xe===Ke?Ee.call(z,bt?"html":"body")[0]:bt?z.documentElement:Se},ot=function(T){const z=Q?Q(T):T.ownerDocument;return oe.call(z||T,T,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Tt=function(T){return T=Ls(T,H," "),T=Ls(T,ue," "),T=Ls(T,ye," "),T},qt=function(T){var z;T.normalize();const J=Q?Q(T):T.ownerDocument,ve=oe.call(J||T,T,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let Se=ve.nextNode();for(;Se;)Se.data=Tt(Se.data),Se=ve.nextNode();const Ie=(z=T.querySelectorAll)===null||z===void 0?void 0:z.call(T,"template");Ie&&Dl(Ie,Qe=>{Ut(Qe.content)&&qt(Qe.content)})},ln=function(T){const z=$?$(T):null;return typeof z!="string"||rt(z)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==D(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==re(T)||T.childNodes!==w(T)},Ut=function(T){if(!re||typeof T!="object"||T===null)return!1;try{return re(T)===Jn.documentFragment}catch{return!1}},ct=function(T){if(!re||typeof T!="object"||T===null)return!1;try{return typeof re(T)=="number"}catch{return!1}};function At(X,T,z){X.length!==0&&Dl(X,J=>{J.call(i,T,z,Wn)})}const nl=function(T,z){return!!(Lt&&T.hasChildNodes()&&!ct(T.firstElementChild)&&rn(Qg,T.textContent)&&rn(Qg,T.innerHTML)||Lt&&T.namespaceURI===Ke&&z==="style"&&ct(T.firstElementChild)||T.nodeType===Jn.processingInstruction||Lt&&T.nodeType===Jn.comment&&rn(Vg,T.data))},ni=function(T,z,J){if(!vn[z]&&ii(z)&&(et.tagNameCheck instanceof RegExp&&rn(et.tagNameCheck,z)||et.tagNameCheck instanceof Function&&et.tagNameCheck(z)))return!1;if(zn&&!Be[z]){const ve=B(T),Se=w(T);if(Se&&ve){const Ie=Se.length;for(let Qe=Ie-1;Qe>=0;--Qe){const se=T===J?x(Se[Qe],!0):Se[Qe];ve.insertBefore(se,A(T))}}}return pt(T),!0},ai=function(T,z,J,ve){return T.length===0?z:z===J||z===ve?Nn(z):z},Ca=function(T,z){if(At(C.beforeSanitizeElements,T,null),T!==z&&B(T)===null)return An&&ce(T),!0;if(ln(T))return pt(T),!0;const J=rt($?$(T):T.nodeName);if(ke=ai(C.uponSanitizeElement,ke,Nt,un),At(C.uponSanitizeElement,T,{tagName:J,allowedTags:ke}),T!==z&&B(T)===null)return An&&ce(T),!0;if(nl(T,J))return pt(T),!0;if(vn[J]||!(Qt.tagCheck instanceof Function&&Qt.tagCheck(J))&&!ke[J]){const Se=ni(T,J,z);return Se===!1&&At(C.afterSanitizeElements,T,null),Se}if((re?re(T):T.nodeType)===Jn.element&&!_a(T)||(J==="noscript"||J==="noembed"||J==="noframes")&&rn(fS,T.innerHTML))return pt(T),!0;if(lt&&T.nodeType===Jn.text){const Se=Tt(T.textContent);T.textContent!==Se&&(Ll(i.removed,{element:T.cloneNode()}),T.textContent=Se)}return At(C.afterSanitizeElements,T,null),!1},al=function(T,z,J){if(Yn[z]||Lt&&z==="patchsrc"||Lt&&z==="for"&&T!=="label"&&T!=="output"||Ot&&(z==="id"||z==="name")&&(J in r||J in tl))return!1;const ve=je[z]||Qt.attributeCheck instanceof Function&&Qt.attributeCheck(z,T);if(!(Wt&&rn(we,z))){if(!(Jt&&rn(pe,z))){if(ve){if(!O[z]){if(!rn(Le,Ls(J,Ae,""))){if(!((z==="src"||z==="xlink:href"||z==="href")&&T!=="script"&&Gg(J,"data:")===0&&nn[T])){if(!(ba&&!rn(De,Ls(J,Ae,"")))){if(J)return!1}}}}}else if(!(ii(T)&&(et.tagNameCheck instanceof RegExp&&rn(et.tagNameCheck,T)||et.tagNameCheck instanceof Function&&et.tagNameCheck(T))&&(et.attributeNameCheck instanceof RegExp&&rn(et.attributeNameCheck,z)||et.attributeNameCheck instanceof Function&&et.attributeNameCheck(z,T))||z==="is"&&et.allowCustomizedBuiltInElements&&(et.tagNameCheck instanceof RegExp&&rn(et.tagNameCheck,J)||et.tagNameCheck instanceof Function&&et.tagNameCheck(J))))return!1}}return!0},Sn=st({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ii=function(T){return!Sn[Bs(T)]&&rn(Ue,T)},Da=function(T,z,J,ve){if(ie&&typeof E=="object"&&typeof E.getAttributeType=="function"&&!J)switch(E.getAttributeType(T,z)){case"TrustedHTML":return Te(ve);case"TrustedScriptURL":return Ne(ve)}return ve},li=function(T,z,J,ve){try{J?T.setAttributeNS(J,z,ve):T.setAttribute(z,ve),ln(T)?pt(T):Hg(i.removed)}catch{Rn(z,T)}},Gt=function(T){At(C.beforeSanitizeAttributes,T,null);const z=T.attributes;if(!z||ln(T))return;je=ai(C.uponSanitizeAttribute,je,$n,Cn);const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je,forceKeepAttr:void 0};let ve=z.length;const Se=rt(T.nodeName);for(;ve--;){const Ie=z[ve],Qe=Ie.name,se=Ie.namespaceURI,ge=Ie.value,Oe=rt(Qe),Fe=ge;let Pe=Qe==="value"?Fe:P0(Fe);if(J.attrName=Oe,J.attrValue=Pe,J.keepAttr=!0,J.forceKeepAttr=void 0,At(C.uponSanitizeAttribute,T,J),Pe=J.attrValue,en&&(Oe==="id"||Oe==="name")&&Gg(Pe,kt)!==0&&(Rn(Qe,T),Pe=kt+Pe),Lt&&rn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Pe)){Rn(Qe,T);continue}if(Oe==="attributename"&&qg(Pe,"href")){Rn(Qe,T);continue}if(!J.forceKeepAttr){if(!J.keepAttr){Rn(Qe,T);continue}if(!Mn&&rn(dS,Pe)){Rn(Qe,T);continue}if(lt&&(Pe=Tt(Pe)),!al(Se,Oe,Pe)){Rn(Qe,T);continue}Pe=Da(Se,Oe,se,Pe),Pe!==Fe&&li(T,Qe,se,Pe)}}At(C.afterSanitizeAttributes,T,null)},La=function(T){let z=null;const J=ot(T);for(At(C.beforeSanitizeShadowDOM,T,null);z=J.nextNode();)if(At(C.uponSanitizeShadowNode,z,null),Ca(z,T),Gt(z),Ut(z.content)&&La(z.content),(re?re(z):z.nodeType)===Jn.element){const Se=q(z);Ut(Se)&&(Sa(Se),La(Se))}At(C.afterSanitizeShadowDOM,T,null)},Sa=function(T){const z=[{node:T,shadow:null}];for(;z.length>0;){const J=z.pop();if(J.shadow){La(J.shadow);continue}const ve=J.node,Ie=(re?re(ve):ve.nodeType)===Jn.element,Qe=w(ve);if(Qe)for(let se=Qe.length-1;se>=0;--se)z.push({node:Qe[se],shadow:null});if(Ie){const se=$?$(ve):null;if(typeof se=="string"&&rt(se)==="template"){const ge=ve.content;Ut(ge)&&z.push({node:ge,shadow:null})}}if(Ie){const se=q(ve);Ut(se)&&z.push({node:null,shadow:se},{node:se,shadow:null})}}};return i.sanitize=function(X){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=null,J=null,ve=null,Se=null;if(U=!X,U&&(X="<!-->"),typeof X!="string"&&!ct(X)&&(X=J0(X),typeof X!="string"))throw Qi("dirty is not a string, aborting");if(!i.isSupported)return X;Ht?(ke=un,je=Cn):ei(T),(C.uponSanitizeElement.length>0||C.uponSanitizeAttribute.length>0)&&(ke=Nn(ke)),C.uponSanitizeAttribute.length>0&&(je=Nn(je)),i.removed=[];const Ie=An&&typeof X!="string"&&ct(X);if(Ie){Re(X);const ge=$?$(X):X.nodeName;if(typeof ge=="string"){const Oe=rt(ge);if(!ke[Oe]||vn[Oe])throw Ma(X),Qi("root node is forbidden and cannot be sanitized in-place")}if(ln(X))throw Ma(X),Qi("root node is clobbered and cannot be sanitized in-place");try{Sa(X)}catch(Oe){throw Ma(X),Oe}}else if(ct(X))z=$e("<!---->"),J=z.ownerDocument.importNode(X,!0),J.nodeType===Jn.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?z=J:z.appendChild(J),Sa(J);else{if(!Dn&&!lt&&!bt&&X.indexOf("<")===-1)return ie&&En?Te(X):X;if(z=$e(X),!z)return Dn?null:En?k:""}z&&wn&&pt(z.firstChild);const Qe=Ie?X:z;try{const ge=ot(Qe);for(;ve=ge.nextNode();)Ca(ve,Qe),Gt(ve),Ut(ve.content)&&La(ve.content)}catch(ge){throw Ie&&(Ma(X),Dl(i.removed,Oe=>{Oe.element&&ce(Oe.element)})),ge}if(Ie)return Dl(i.removed,ge=>{ge.element&&ce(ge.element)}),lt&&qt(X),X;if(Dn){if(lt&&qt(z),Ln)for(Se=be.call(z.ownerDocument);z.firstChild;)Se.appendChild(z.firstChild);else Se=z;return(je.shadowroot||je.shadowrootmode)&&(Se=S.call(l,Se,!0)),Se}let se=bt?z.outerHTML:z.innerHTML;return bt&&ke["!doctype"]&&z.ownerDocument&&z.ownerDocument.doctype&&z.ownerDocument.doctype.name&&rn(cS,z.ownerDocument.doctype.name)&&(se="<!DOCTYPE "+z.ownerDocument.doctype.name+`>
172
+ `+se),lt&&(se=Tt(se)),ie&&En?Te(se):se},i.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ei(X),Ht=!0,un=ke,Cn=je},i.clearConfig=function(){Wn=null,Ht=!1,un=null,Cn=null,ie=L,k=""},i.isValidAttribute=function(X,T,z){Wn||ei({});const J=rt(X),ve=rt(T);return al(J,ve,z)},i.addHook=function(X,T){typeof T=="function"&&on(C,X)&&Ll(C[X],T)},i.removeHook=function(X,T){if(on(C,X)){if(T!==void 0){const z=F0(C[X],T);return z===-1?void 0:K0(C[X],z,1)[0]}return Hg(C[X])}},i.removeHooks=function(X){on(C,X)&&(C[X]=[])},i.removeAllHooks=function(){C=Jg()},i}var mS=Ub();function qf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var el=qf();function Bb(s){el=s}var Vi={exec:()=>null};function zl(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 We(s,i=""){let r=typeof s=="string"?s:s.source,l={replace:(u,d)=>{let g=typeof d=="string"?d:d.source;return g=g.replace(xn.caret,"$1"),r=r.replace(u,g),l},getRegex:()=>new RegExp(r,i)};return l}var gS=((s="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+s)}catch{return!1}})(),xn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:s=>new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:zl(s=>new RegExp(`^ {0,${s}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:zl(s=>new RegExp(`^ {0,${s}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:zl(s=>new RegExp(`^ {0,${s}}(?:\`\`\`|~~~)`)),headingBeginRegex:zl(s=>new RegExp(`^ {0,${s}}#`)),htmlBeginRegex:zl(s=>new RegExp(`^ {0,${s}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:zl(s=>new RegExp(`^ {0,${s}}>`))},bS=/^(?:[ \t]*(?:\n|$))+/,yS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,vS=/^ {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+|$)/,ES=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Gf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,jb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ib=We(jb).replace(/bull/g,Gf).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(),_S=We(jb).replace(/bull/g,Gf).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(),$f=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,SS=/^[^\n]+/,Yf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,TS=We(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Yf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),NS=We(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Gf).getRegex(),fo="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",Ff=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,xS=We("^ {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",Ff).replace("tag",fo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hb=s=>We($f).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",fo).getRegex(),wS=Hb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),AS=Hb(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),RS=We(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",AS).getRegex(),Kf={blockquote:RS,code:yS,def:TS,fences:vS,heading:ES,hr:Hs,html:xS,lheading:Ib,list:NS,newline:bS,paragraph:wS,table:Vi,text:SS},Wg=We("^ *([^\\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",fo).getRegex(),OS={...Kf,lheading:_S,table:Wg,paragraph:We($f).replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wg).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",fo).getRegex()},kS={...Kf,html:We(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ff).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:Vi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:We($f).replace("hr",Hs).replace("heading",` *#{1,6} *[^
173
+ ]`).replace("lheading",Ib).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},MS=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,CS=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,qb=/^( {2,}|\\)\n(?!\s*$)/,DS=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ja=/[\p{P}\p{S}]/u,ql=/[\s\p{P}\p{S}]/u,qs=/[^\s\p{P}\p{S}]/u,LS=We(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ql).getRegex(),zS=/[\p{Pi}\p{Ps}"']/u,Gb=/(?!~)[\p{P}\p{S}]/u,US=/(?!~)[\s\p{P}\p{S}]/u,BS=/(?:[^\s\p{P}\p{S}]|~)/u,jS=We(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",gS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),$b=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,IS=We($b,"u").replace(/punct/g,Ja).getRegex(),HS=We($b,"u").replace(/punct/g,Gb).getRegex(),qS=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,GS=We(qS,"u").replace(/openQuote/g,zS).replace(/punct/g,Ja).getRegex(),Yb="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$S=We(Yb,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,ql).replace(/punct/g,Ja).getRegex(),YS=We(Yb,"gu").replace(/notPunctSpace/g,BS).replace(/punctSpace/g,US).replace(/punct/g,Gb).getRegex(),FS="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",KS=We(FS,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,ql).replace(/punct/g,Ja).getRegex(),PS=We("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,ql).replace(/punct/g,Ja).getRegex(),ZS="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",XS=We(ZS,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,ql).replace(/punct/g,Ja).getRegex(),QS=We(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ja).getRegex(),VS="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",JS=We(VS,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,ql).replace(/punct/g,Ja).getRegex(),WS=We(/\\(punct)/,"gu").replace(/punct/g,Ja).getRegex(),eT=We(/^<(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(),tT=We(Ff).replace("(?:-->|$)","-->").getRegex(),nT=We("^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",tT).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),lo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,aT=We(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",lo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Fb=We(/^!?\[(label)\]\[(ref)\]/).replace("label",lo).replace("ref",Yf).getRegex(),Kb=We(/^!?\[(ref)\](?:\[\])?/).replace("ref",Yf).getRegex(),iT=We("reflink|nolink(?!\\()","g").replace("reflink",Fb).replace("nolink",Kb).getRegex(),eb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Pf={_backpedal:Vi,anyPunctuation:WS,autolink:eT,blockSkip:jS,br:qb,code:CS,del:Vi,delLDelim:Vi,delRDelim:Vi,emStrongLDelim:IS,emStrongRDelimAst:$S,emStrongRDelimUnd:PS,escape:MS,link:aT,nolink:Kb,punctuation:LS,reflink:Fb,reflinkSearch:iT,tag:nT,text:DS,url:Vi},lT={...Pf,emStrongLDelim:GS,emStrongRDelimAst:KS,emStrongRDelimUnd:XS,link:We(/^!?\[(label)\]\((.*?)\)/).replace("label",lo).getRegex(),reflink:We(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",lo).getRegex()},Af={...Pf,emStrongRDelimAst:YS,emStrongLDelim:HS,delLDelim:QS,delRDelim:JS,url:We(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",eb).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:We(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",eb).getRegex()},sT={...Af,br:We(qb).replace("{2,}","*").getRegex(),text:We(Af.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Jr={normal:Kf,gfm:OS,pedantic:kS},Us={normal:Pf,gfm:Af,breaks:sT,pedantic:lT},rT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tb=s=>rT[s];function Ra(s,i){if(i){if(xn.escapeTest.test(s))return s.replace(xn.escapeReplace,tb)}else if(xn.escapeTestNoEncode.test(s))return s.replace(xn.escapeReplaceNoEncode,tb);return s}function nb(s){try{s=encodeURI(s).replace(xn.percentDecode,"%")}catch{return null}return s}function ab(s,i){var d;let r=s.replace(xn.findPipe,(g,y,m)=>{let p=!1,b=y;for(;--b>=0&&m[b]==="\\";)p=!p;return p?"|":" |"}),l=r.split(xn.splitPipe),u=0;if(l[0].trim()||l.shift(),l.length>0&&!((d=l.at(-1))!=null&&d.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(xn.slashPipe,"|");return l}function ki(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 ib(s){let i=s.split(`
174
+ `),r=i.length-1;for(;r>=0&&xn.blankLine.test(i[r]);)r--;return i.length-r<=2?s:i.slice(0,r+1).join(`
175
+ `)}function oT(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 cT(s,i=0){let r=i,l="";for(let u of s)if(u===" "){let d=4-r%4;l+=" ".repeat(d),r+=d}else l+=u,r++;return l}function lb(s,i,r,l,u){let d=i.href,g=i.title||null,y=s[1].replace(u.other.outputLinkReplace,"$1");l.state.inLink=!0;let m={type:s[0].charAt(0)==="!"?"image":"link",raw:r,href:d,title:g,text:y,tokens:l.inlineTokens(y)};return l.state.inLink=!1,m}function uT(s,i,r){let l=s.match(r.other.indentCodeCompensation);if(l===null)return i;let u=l[1];return i.split(`
176
+ `).map(d=>{let g=d.match(r.other.beginningSpace);if(g===null)return d;let[y]=g;return y.length>=u.length?d.slice(u.length):d}).join(`
177
+ `)}var so=class{constructor(s){_t(this,"options");_t(this,"rules");_t(this,"lexer");this.options=s||el}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]:ib(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=uT(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=ki(r,"#");(this.options.pedantic||!l||this.rules.other.endingSpaceChar.test(l))&&(r=l.trim())}return{type:"heading",raw:ki(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:ki(i[0],`
179
+ `)}}blockquote(s){let i=this.rules.block.blockquote.exec(s);if(i){let r=ki(i[0],`
180
+ `).split(`
181
+ `),l="",u="",d=[];for(;r.length>0;){let g=!1,y=[],m;for(m=0;m<r.length;m++)if(this.rules.other.blockquoteStart.test(r[m]))y.push(r[m]),g=!0;else if(!g)y.push(r[m]);else break;r=r.slice(m);let p=y.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,d,!0),this.lexer.state.top=E,r.length===0)break;let _=d.at(-1);if((_==null?void 0:_.type)==="code")break;if((_==null?void 0:_.type)==="blockquote"){let x=_,N=r.join(`
186
+ `),A=x.raw+`
187
+ `+N.replace(this.rules.other.blockquoteSetextReplace2,""),w=this.blockquote(A);d[d.length-1]=w,l=`${l}
188
+ ${N}`,u=u.substring(0,u.length-x.text.length)+w.text;break}else if((_==null?void 0:_.type)==="list"){let x=_,N=x.raw+`
189
+ `+r.join(`
190
+ `),A=this.list(N);d[d.length-1]=A,l=l.substring(0,l.length-_.raw.length)+A.raw,u=u.substring(0,u.length-x.raw.length)+A.raw,r=N.substring(d.at(-1).raw.length).split(`
191
+ `);continue}}return{type:"blockquote",raw:l,tokens:d,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 d=this.rules.other.listItemRegex(r),g=!1;for(;s;){let m=!1,p="",b="";if(!(i=d.exec(s))||this.rules.block.hr.test(s))break;p=i[0],s=s.substring(p.length);let E=cT(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 A=this.rules.other.nextBulletRegex(N),w=this.rules.other.hrRegex(N),B=this.rules.other.fencesBeginRegex(N),q=this.rules.other.headingBeginRegex(N),D=this.rules.other.htmlBeginRegex(N),re=this.rules.other.blockquoteBeginRegex(N);for(;s;){let $=s.split(`
195
+ `,1)[0],Q;if(_=$,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),Q=_):Q=_.replace(this.rules.other.tabCharGlobal," "),B.test(_)||q.test(_)||D.test(_)||re.test(_)||A.test(_)||w.test(_))break;if(Q.search(this.rules.other.nonSpaceChar)>=N||!_.trim())b+=`
196
+ `+Q.slice(N);else{if(x||E.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||B.test(E)||q.test(E)||w.test(E))break;b+=`
197
+ `+_}x=!_.trim(),p+=$+`
198
+ `,s=s.substring($.length+1),E=Q.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 y=u.items.at(-1);if(y)y.raw=y.raw.trimEnd(),y.text=y.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let 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=ib(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:ki(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=ab(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
+ `):[],d={type:"table",raw:ki(i[0],`
201
+ `),header:[],align:[],rows:[]};if(r.length===l.length){for(let y of l)this.rules.other.tableAlignRight.test(y)?d.align.push("right"):this.rules.other.tableAlignCenter.test(y)?d.align.push("center"):this.rules.other.tableAlignLeft.test(y)?d.align.push("left"):d.align.push(null);for(let y=0;y<r.length;y++)d.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:d.align[y]});for(let y of u)d.rows.push(ab(y,d.header.length).map((m,p)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:d.align[p]})));return d}}lheading(s){let i=this.rules.block.lheading.exec(s);if(i){let r=i[1].trim();return{type:"heading",raw:ki(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 d=ki(r.slice(0,-1),"\\");if((r.length-d.length)%2===0)return}else{let d=oT(i[2],"()");if(d===-2)return;if(d>-1){let g=(i[0].indexOf("!")===0?5:4)+i[1].length+d;i[2]=i[2].substring(0,d),i[0]=i[0].substring(0,g).trim(),i[3]=""}}let l=i[2],u="";if(this.options.pedantic){let d=this.rules.other.pedanticHrefTitle.exec(l);d&&(l=d[1],u=d[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)),lb(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 d=r[0].charAt(0);return{type:"text",raw:d,text:d}}return lb(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,d,g,y=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(d=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!d)continue;if(g=[...d].length,l[3]||l[4]){y+=g;continue}else if(l[5]||l[6]){if(u%3&&!((u+g)%3)){m+=g;continue}if(b)break}if(y-=g,y>0)continue;g=Math.min(g,g+y+m);let _=[...l[0]][0].length,x=s.slice(0,u+l.index+_+g);if(Math.min(u,g)%2){let A=x.slice(1,-1);return{type:"em",raw:x,text:A,tokens:this.lexer.inlineTokens(A)}}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,d,g,y=u,m=this.rules.inline.delRDelim;for(m.lastIndex=0,i=i.slice(-1*s.length+u);(l=m.exec(i))!==null;){if(d=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!d||(g=[...d].length,g!==u))continue;if(l[3]||l[4]){y+=g;continue}if(y-=g,y>0)continue;g=Math.min(g,g+y);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 d;do d=i[0],i[0]=((r=this.rules.inline._backpedal.exec(i[0]))==null?void 0:r[0])??"";while(d!==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}}}},ma=class Rf{constructor(i){_t(this,"tokens");_t(this,"options");_t(this,"state");_t(this,"inlineQueue");_t(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=i||el,this.options.tokenizer=this.options.tokenizer||new so,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:xn,block:Jr.normal,inline:Us.normal};this.options.pedantic?(r.block=Jr.pedantic,r.inline=Us.pedantic):this.options.gfm&&(r.block=Jr.gfm,this.options.breaks?r.inline=Us.breaks:r.inline=Us.gfm),this.tokenizer.rules=r}static get rules(){return{block:Jr,inline:Us}}static lex(i,r){return new Rf(r).lex(i)}static lexInline(i,r){return new Rf(r).inlineTokens(i)}lex(i){i=i.replace(xn.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 d,g,y;this.tokenizer.lexer=this,this.options.pedantic&&(i=i.replace(xn.tabCharGlobal," ").replace(xn.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=(d=this.options.extensions)==null?void 0:d.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((y=this.options.extensions)!=null&&y.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 y,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 A=N?N.length:0;return _.slice(0,A)+"["+"a".repeat(_.length-A-2)+"]"}),l=((m=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:m.call({lexer:this},l))??l;let u=!1,d="",g=1/0;for(;i;){if(i.length<g)g=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}u||(d=""),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,d)){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,d)){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,A=i.slice(1),w;this.options.extensions.startInline.forEach(B=>{w=B.call({lexer:this},A),typeof w=="number"&&w>=0&&(N=Math.min(N,w))}),N<1/0&&N>=0&&(x=i.substring(0,N+1))}if(_=this.tokenizer.inlineText(x)){i=i.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(d=_.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)}},ro=class{constructor(s){_t(this,"options");_t(this,"parser");this.options=s||el}space(s){return""}code({text:s,lang:i,escaped:r}){var d;let l=(d=(i||"").match(xn.notSpaceStart))==null?void 0:d[0],u=s.replace(xn.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 y=s.items[g];l+=this.listitem(y)}let u=i?"ol":"ul",d=i&&r!==1?' start="'+r+'"':"";return"<"+u+d+`>
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 d=s.rows[u];r="";for(let g=0;g<d.length;g++)r+=this.tablecell(d[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=nb(s);if(u===null)return l;s=u;let d='<a href="'+s+'"';return i&&(d+=' title="'+Ra(i)+'"'),d+=">"+l+"</a>",d}image({href:s,title:i,text:r,tokens:l}){l&&(r=this.parser.parseInline(l,this.parser.textRenderer));let u=nb(s);if(u===null)return Ra(r);s=u;let d=`<img src="${s}" alt="${Ra(r)}"`;return i&&(d+=` title="${Ra(i)}"`),d+=">",d}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:Ra(s.text)}},Zf=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}},ga=class Of{constructor(i){_t(this,"options");_t(this,"renderer");_t(this,"textRenderer");this.options=i||el,this.options.renderer=this.options.renderer||new ro,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zf}static parse(i,r){return new Of(r).parse(i)}static parseInline(i,r){return new Of(r).parseInline(i)}parse(i){var l,u;this.renderer.parser=this;let r="";for(let d=0;d<i.length;d++){let g=i[d];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 y=g;switch(y.type){case"space":{r+=this.renderer.space(y);break}case"hr":{r+=this.renderer.hr(y);break}case"heading":{r+=this.renderer.heading(y);break}case"code":{r+=this.renderer.code(y);break}case"table":{r+=this.renderer.table(y);break}case"blockquote":{r+=this.renderer.blockquote(y);break}case"list":{r+=this.renderer.list(y);break}case"checkbox":{r+=this.renderer.checkbox(y);break}case"html":{r+=this.renderer.html(y);break}case"def":{r+=this.renderer.def(y);break}case"paragraph":{r+=this.renderer.paragraph(y);break}case"text":{r+=this.renderer.text(y);break}default:{let m='Token with "'+y.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,d;this.renderer.parser=this;let l="";for(let g=0;g<i.length;g++){let y=i[g];if((d=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&d[y.type]){let p=this.options.extensions.renderers[y.type].call({parser:this},y);if(p!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(y.type)){l+=p||"";continue}}let m=y;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}},to,js=(to=class{constructor(s){_t(this,"options");_t(this,"block");this.options=s||el}preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}emStrongMask(s){return s}provideLexer(s=this.block){return s?ma.lex:ma.lexInline}provideParser(s=this.block){return s?ga.parse:ga.parseInline}},_t(to,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),_t(to,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),to),fT=class{constructor(...s){_t(this,"defaults",qf());_t(this,"options",this.setOptions);_t(this,"parse",this.parseMarkdown(!0));_t(this,"parseInline",this.parseMarkdown(!1));_t(this,"Parser",ga);_t(this,"Renderer",ro);_t(this,"TextRenderer",Zf);_t(this,"Lexer",ma);_t(this,"Tokenizer",so);_t(this,"Hooks",js);this.use(...s)}walkTokens(s,i){var l,u;let r=[];for(let d of s)switch(r=r.concat(i.call(this,d)),d.type){case"table":{let g=d;for(let y of g.header)r=r.concat(this.walkTokens(y.tokens,i));for(let y of g.rows)for(let m of y)r=r.concat(this.walkTokens(m.tokens,i));break}case"list":{let g=d;r=r.concat(this.walkTokens(g.items,i));break}default:{let g=d;(u=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&u[g.type]?this.defaults.extensions.childTokens[g.type].forEach(y=>{let m=g[y].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 d=i.renderers[u.name];d?i.renderers[u.name]=function(...g){let y=u.renderer.apply(this,g);return y===!1&&(y=d.apply(this,g)),y}: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 d=i[u.level];d?d.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 ro(this.defaults);for(let d in r.renderer){if(!(d in u))throw new Error(`renderer '${d}' does not exist`);if(["options","parser"].includes(d))continue;let g=d,y=r.renderer[g],m=u[g];u[g]=(...p)=>{let b=y.apply(u,p);return b===!1&&(b=m.apply(u,p)),b||""}}l.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new so(this.defaults);for(let d in r.tokenizer){if(!(d in u))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;let g=d,y=r.tokenizer[g],m=u[g];u[g]=(...p)=>{let b=y.apply(u,p);return b===!1&&(b=m.apply(u,p)),b}}l.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new js;for(let d in r.hooks){if(!(d in u))throw new Error(`hook '${d}' does not exist`);if(["options","block"].includes(d))continue;let g=d,y=r.hooks[g],m=u[g];js.passThroughHooks.has(d)?u[g]=p=>{if(this.defaults.async&&js.passThroughHooksRespectAsync.has(d))return(async()=>{let E=await y.call(u,p);return m.call(u,E)})();let b=y.call(u,p);return m.call(u,b)}:u[g]=(...p)=>{if(this.defaults.async)return(async()=>{let E=await y.apply(u,p);return E===!1&&(E=await m.apply(u,p)),E})();let b=y.apply(u,p);return b===!1&&(b=m.apply(u,p)),b}}l.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,d=r.walkTokens;l.walkTokens=function(g){let y=[];return y.push(d.call(this,g)),u&&(y=y.concat(u.call(this,g))),y}}this.defaults={...this.defaults,...l}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,i){return ma.lex(s,i??this.defaults)}parser(s,i){return ga.parse(s,i??this.defaults)}parseMarkdown(s){return(i,r)=>{let l={...r},u={...this.defaults,...l},d=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&l.async===!1)return d(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return d(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,y=await(u.hooks?await u.hooks.provideLexer(s):s?ma.lex:ma.lexInline)(g,u),m=u.hooks?await u.hooks.processAllTokens(y):y;u.walkTokens&&await Promise.all(this.walkTokens(m,u.walkTokens));let p=await(u.hooks?await u.hooks.provideParser(s):s?ga.parse:ga.parseInline)(m,u);return u.hooks?await u.hooks.postprocess(p):p})().catch(d);try{u.hooks&&(i=u.hooks.preprocess(i));let g=(u.hooks?u.hooks.provideLexer(s):s?ma.lex:ma.lexInline)(i,u);u.hooks&&(g=u.hooks.processAllTokens(g)),u.walkTokens&&this.walkTokens(g,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(s):s?ga.parse:ga.parseInline)(g,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(g){return d(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}}},Ji=new fT;function ht(s,i){return Ji.parse(s,i)}ht.options=ht.setOptions=function(s){return Ji.setOptions(s),ht.defaults=Ji.defaults,Bb(ht.defaults),ht};ht.getDefaults=qf;ht.defaults=el;function dT(...s){return Ji.use(...s),ht.defaults=Ji.defaults,Bb(ht.defaults),ht}ht.use=dT;ht.walkTokens=function(s,i){return Ji.walkTokens(s,i)};ht.parseInline=Ji.parseInline;ht.Parser=ga;ht.parser=ga.parse;ht.Renderer=ro;ht.TextRenderer=Zf;ht.Lexer=ma;ht.lexer=ma.lex;ht.Tokenizer=so;ht.Hooks=js;ht.parse=ht;ht.options;ht.setOptions;ht.walkTokens;ht.parseInline;ga.parse;ma.lex;ht.setOptions({gfm:!0,breaks:!1});function Xf(s){const i=ht.parse(s??"",{async:!1});return mS.sanitize(i)}function Wi({text:s,className:i}){const r=le.useMemo(()=>Xf(s),[s]);return s!=null&&s.trim()?f.jsx("div",{className:`md ${i??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const hT={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function pT(s){return s.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(i,r)=>hT[r.toLowerCase()]??i).replace(/\s+/g," ").trim()}function mT(s,i){return pT(i)!==s.replace(/\s+/g," ").trim()}function ho({text:s,className:i}){const r=le.useMemo(()=>s!=null&&s.trim()?Xf(s):"",[s]);return!r||!mT(s,r)?null:f.jsxs("div",{className:"md-preview",children:[f.jsx("div",{className:"lab",children:"preview"}),f.jsx("div",{className:`md prose ${i??""}`,dangerouslySetInnerHTML:{__html:r}})]})}const gT=/\.(md|markdown)$/i;function Qf(s){return gT.test(s)}function bT(s){return/^new file mode /m.test(s)||/^--- \/dev\/null$/m.test(s)}function yT(s){const i=[];let r=0,l=!1;const u=s.split(`
237
+ `);for(let d=0;d<u.length;d++){const g=u[d],y=g.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),l=!0;continue}l&&(g===""&&d===u.length-1||g.startsWith("\\")||g.startsWith("-")||(g.startsWith("+")||g.startsWith(" ")||g==="")&&(i.push({n:r,text:g===""?"":g.slice(1),added:g.startsWith("+")}),r++))}return i}const Wr=s=>(s.match(/\n/g)??[]).length;function Vf(s){const i=yT(s),r=bT(s),l=[];let u=[];const d=()=>{if(u.length===0)return;const g=u[0].n,y=new Set(u.filter(b=>b.added).map(b=>b.n)),m=u.map(b=>b.text).join(`
238
+ `)+`
239
+ `;let p=g;for(const b of ht.lexer(m)){const E=b.raw,_=E.trimEnd();if(_===""){p+=Wr(E);continue}const x=E.length-E.trimStart().length,N=p+Wr(E.slice(0,x)),A=N+Wr(_.slice(x));let w=!1;for(let B=N;B<=A&&!w;B++)w=y.has(B);l.push({kind:"block",raw:_.slice(x),from:N,to:A,changed:w}),p+=Wr(E)}u=[]};for(const g of i){const y=u[u.length-1];if(y&&g.n!==y.n+1){const m=g.n-y.n-1;d(),l.push({kind:"gap",lines:m})}u.push(g)}return d(),{items:l,isNew:r,lines:i.length}}const eo={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},sb={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function vT(s){return(s==null?void 0:s.recommendation)==="approve"?"APPROVE":(s==null?void 0:s.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function Pb(s,i){const r=e_(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 rb(s,i){const r=d=>{const g=Number((d??"").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 Zb(s){const i=s.comments.filter(u=>u.status==="dropped"),r=s.comments.filter(u=>u.status!=="dropped"),l=Pb(s.diff,r);return{inline:l,folded:r.filter(u=>!l.includes(u)),dropped:i}}function Ef(s){const i=s.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:i.filter(d=>d.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:d})=>`${wb[u]} ${d} ${u}${d===1?"":"s"}`).join(" · ")}function ET(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 _T(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 ob(s){const{inline:i,folded:r}=Zb(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 cb={approve:"approve",comment:"comment",request_changes:"changes"},ST={approve:"approve",comment:"comment",request_changes:"changes"};function TT(s,i){return s.status==="dropped"?"none":s.drifted?"comment":s.origin==="user"?"awaiting":i}function Xb(s,i=20){const r=document.getElementById(`c-${s}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}i>0&&requestAnimationFrame(()=>Xb(s,i-1))}function NT(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 ub(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 Qb({pick:s,chatBusy:i,onAdd:r,onAsk:l,onClose:u}){const[d,g]=le.useState(""),y=le.useRef(null);le.useEffect(()=>{var p;return(p=y.current)==null?void 0:p.focus()},[]);const m=d.trim();return f.jsxs("div",{className:"line-composer",children:[f.jsxs("div",{className:"line-composer-head",children:[f.jsxs("span",{className:"comment-loc",children:[s.path,":",s.line]}),s.side==="old"&&f.jsx("span",{className:"faint",title:"GitHub only takes inline comments on the new side of a diff.",children:"this line is gone from the new file — a comment on it posts on the file, not the line"})]}),f.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:d,onChange:p=>g(p.target.value),onKeyDown:p=>{p.key==="Escape"&&u(),p.key==="Enter"&&(p.metaKey||p.ctrlKey)&&m&&(p.preventDefault(),r(m))}}),f.jsx(ho,{className:"comment-body",text:d}),f.jsxs("div",{className:"line-composer-actions",children:[f.jsxs("button",{className:"btn",disabled:!m,onClick:()=>r(m),children:[f.jsx(Ze,{name:"plus"}),"add comment",f.jsx(Di,{children:"⌘↵"})]}),f.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:[f.jsx(Ze,{name:"comment"}),"ask the reviewer"]}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function xT({patch:s,comments:i,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:g,onRead:y}){const m=le.useMemo(()=>s.trim()?QE(s,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[s]),p=le.useMemo(()=>Va(s).map(L=>L.path),[s]),b=le.useMemo(()=>new Set(Va(s).filter(L=>Qf(L.path)&&Vf(L.patch).lines>0).map(L=>L.path)),[s]),E=le.useMemo(()=>i.map(L=>`${L.id}@${L.path}:${L.line}`).join("|"),[i]),_=le.useRef(null),x=le.useRef(y);x.current=y;const[N,A]=le.useState([]),[w,B]=le.useState([]),[q,D]=le.useState(null),[re,$]=le.useState(null);le.useEffect(()=>{var I,ne;const L=_.current;if(!L)return;L.innerHTML=m,A0(L);const V=new Map,K=[];L.querySelectorAll(".d2h-file-wrapper").forEach((oe,be)=>{var C,H,ue,ye;const Ee=(H=(C=oe.querySelector(".d2h-file-name"))==null?void 0:C.textContent)==null?void 0:H.trim(),S=Ee&&p.includes(Ee)?Ee:p[be];if(Ee&&V.set(Ee,oe),S){V.set(S,oe),oe.dataset.path=S;const we=document.createElement("div");if(we.className="file-comments",(ue=oe.querySelector(".d2h-file-header"))==null||ue.after(we),K.push({path:S,el:we}),b.has(S)){const pe=document.createElement("button");pe.type="button",pe.className="btn btn-sm md-read-toggle",pe.dataset.readPath=S,pe.textContent="read as a document",pe.title="Render this markdown instead of showing it line by line",(ye=oe.querySelector(".d2h-file-header"))==null||ye.appendChild(pe)}}});const de=[],Te=new Map;for(const oe of i){if(oe.line==null)continue;const be=V.get(oe.path);if(!be)continue;const Ee=Array.from(be.querySelectorAll(".d2h-diff-tbody > tr")).find(C=>{var H,ue;return((ue=(H=C.querySelector(".line-num2"))==null?void 0:H.textContent)==null?void 0:ue.trim())===String(oe.line)});if(!Ee)continue;const S=ub(Te.get(Ee)??Ee,"inline-comment-row");Te.set(Ee,S.tr),de.push({id:oe.id,el:S.holder})}A(de),B(K);const Ne=oe=>{const be=oe.target.closest(".md-read-toggle");if(be!=null&&be.dataset.readPath){x.current(be.dataset.readPath);return}const Ee=oe.target.closest(".line-add");if(!Ee)return;const{path:S,line:C,side:H}=Ee.dataset;!S||!C||D({path:S,line:Number(C),side:H==="old"?"old":"new"})};L.addEventListener("click",Ne);const me=()=>L.removeEventListener("click",Ne);if(l)return D(null),$(null),me;for(const oe of L.querySelectorAll(".d2h-file-wrapper")){const be=oe.dataset.path;if(be)for(const Ee of oe.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const S=rb((I=Ee.querySelector(".line-num1"))==null?void 0:I.textContent,(ne=Ee.querySelector(".line-num2"))==null?void 0:ne.textContent);if(!S)continue;const C=document.createElement("button");C.type="button",C.className="line-add";const H=`Say something about ${be}:${S.line}`;C.title=H,C.setAttribute("aria-label",H),C.tabIndex=-1,C.dataset.path=be,C.dataset.line=String(S.line),C.dataset.side=S.side,Ee.appendChild(C)}}return $(null),me},[m,E,p,b,l]),le.useEffect(()=>{const L=_.current;if(!L||!q||l){$(null);return}const V=Array.from(L.querySelectorAll(".d2h-file-wrapper")).find(Te=>Te.dataset.path===q.path),K=Array.from((V==null?void 0:V.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(Te=>{var I,ne;const Ne=Te.querySelector(".d2h-code-linenumber"),me=rb((I=Ne==null?void 0:Ne.querySelector(".line-num1"))==null?void 0:I.textContent,(ne=Ne==null?void 0:Ne.querySelector(".line-num2"))==null?void 0:ne.textContent);return(me==null?void 0:me.line)===q.line&&me.side===q.side});if(!K){D(null);return}const de=ub(K,"line-composer-row");return $(de.holder),()=>de.tr.remove()},[q,N,l]);const Q=i.filter(L=>!N.some(V=>V.id===L.id)),ie=w.map(L=>({...L,comments:Q.filter(V=>V.path===L.path)})).filter(L=>L.comments.length>0),k=Q.filter(L=>!w.some(V=>V.path===L.path));return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"diff",ref:_}),N.map(({id:L,el:V})=>{const K=i.find(de=>de.id===L);return K?Nu.createPortal(r(K),V,L):null}),ie.map(({path:L,el:V,comments:K})=>Nu.createPortal(f.jsx(f.Fragment,{children:K.map(r)}),V,`file:${L}`)),q&&re&&Nu.createPortal(f.jsx(Qb,{pick:q,chatBusy:u,onAdd:L=>{d(q,L),D(null)},onAsk:L=>{g(q,L),D(null)},onClose:()=>D(null)}),re,`pick-${q.path}-${q.side}-${q.line}`),k.map(L=>r(L))]})}function wT({block:s,path:i,changed:r,readOnly:l,onPick:u}){const d=le.useMemo(()=>Xf(s.raw),[s.raw]),g=`Say something about ${i}:${s.from}`;return f.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!l&&f.jsx("button",{type:"button",className:"md-block-add",title:g,"aria-label":g,tabIndex:-1,onClick:u,children:f.jsx(Ze,{name:"plus"})}),f.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:d}})]})}function AT({path:s,doc:i,comments:r,renderComment:l,readOnly:u,chatBusy:d,onAddLineComment:g,onAskAboutLine:y,onShowDiff:m}){const[p,b]=le.useState(null),E=le.useMemo(()=>{const _=new Map,x=i.items.flatMap((A,w)=>A.kind==="block"?[{item:A,i:w}]:[]),N=[];for(const A of r){const w=A.line==null?void 0:x.filter(B=>B.item.from<=A.line).pop()??x[0];if(!w){N.push(A);continue}_.set(w.i,[..._.get(w.i)??[],A])}return{at:_,rest:N}},[i,r]);return f.jsxs("div",{className:"md-file",children:[f.jsxs("div",{className:"md-file-head",children:[f.jsx(Ze,{name:"file"}),f.jsx("span",{className:"md-file-name",children:s}),i.isNew?f.jsx("span",{className:"tag tag-added",children:"new file"}):f.jsx("span",{className:"faint",title:"A diff carries the lines around a change, not the file.",children:"the diff's lines only — what the PR removed isn't here"}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:m,title:"Back to the line-by-line diff",children:"show the diff"})]}),E.rest.length>0&&f.jsx("div",{className:"file-comments",children:E.rest.map(l)}),i.items.map((_,x)=>f.jsxs(le.Fragment,{children:[_.kind==="gap"?f.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",_.lines.toLocaleString()," line",_.lines===1?"":"s"," the diff skips"]}):f.jsx(wT,{block:_,path:s,changed:_.changed&&!i.isNew,readOnly:u,onPick:()=>b({path:s,line:_.from,side:"new"})}),(E.at.get(x)??[]).map(l),_.kind==="block"&&(p==null?void 0:p.line)===_.from&&f.jsx(Qb,{pick:p,chatBusy:d,onAdd:N=>{g(p,N),b(null)},onAsk:N=>{y(p,N),b(null)},onClose:()=>b(null)})]},x))]})}function RT({patch:s,comments:i,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:g}){const y=le.useMemo(()=>s.trim()?Va(s):[],[s]),m=le.useMemo(()=>new Map(y.filter(A=>Qf(A.path)).map(A=>[A.path,Vf(A.patch)]).filter(([,A])=>A.lines>0)),[y]),[p,b]=le.useState({}),E=A=>{var w;return p[A]??((w=m.get(A))==null?void 0:w.isNew)??!1},_=[];for(const A of y){const w=_[_.length-1];if(m.has(A.path)&&E(A.path)){_.push({kind:"read",paths:[A.path],patch:A.patch});continue}(w==null?void 0:w.kind)==="diff"?(w.paths.push(A.path),w.patch+=`
240
+ ${A.patch}`):_.push({kind:"diff",paths:[A.path],patch:A.patch})}if(y.length===0)return f.jsx("p",{className:"muted",children:"No diff for this chapter."});const x=new Set(y.map(A=>A.path)),N=A=>i.filter(w=>A(w.path));return f.jsxs(f.Fragment,{children:[_.map(A=>{const w=new Set(A.paths);if(A.kind==="read"){const B=A.paths[0];return f.jsx(AT,{path:B,doc:m.get(B),comments:N(q=>q===B),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:g,onShowDiff:()=>b(q=>({...q,[B]:!1}))},`read:${B}`)}return f.jsx(xT,{patch:A.patch,comments:N(B=>w.has(B)),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:g,onRead:B=>b(q=>({...q,[B]:!0}))},`diff:${A.paths[0]}`)}),N(A=>!x.has(A)).map(r)]})}function Vb({comment:s,onUpdate:i,onDelete:r,onDiscuss:l,readOnly:u,flash:d}){const[g,y]=le.useState(!1),[m,p]=le.useState(s.body),b=s.status==="approved",E=s.status==="dropped",_=s.origin==="user"?"yours":E?"dropped":b?"kept":"drafted";return f.jsxs("div",{id:`c-${s.id}`,className:`comment comment-${s.status}${d?" comment-flash":""}`,children:[f.jsxs("div",{className:"comment-head",children:[f.jsxs("span",{className:"comment-loc",children:[s.path,s.line!=null?`:${s.line}`:""]}),f.jsx("span",{className:`tag tag-${s.origin==="user"?"yours":_}`,children:_}),s.drifted?f.jsx("span",{className:"tag tag-drift",title:"The code this comment pointed at is gone from the diff, so it can't post inline.",children:"drifted — posts in the body"}):s.line==null&&f.jsx("span",{className:"tag tag-drift",title:"A comment with no line — either about the file as a whole, or on a line the PR removed, which GitHub can't take inline.",children:"on the file — posts in the body"}),!s.drifted&&s.originalLine!=null&&s.originalLine!==s.line&&f.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",s.originalLine]}),f.jsx("span",{className:"grow"}),!u&&(g?f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"btn btn-sm",onClick:()=>{i({body:m}),y(!1)},children:"save"}),f.jsx("button",{className:"btn btn-sm",onClick:()=>{p(s.body),y(!1)},children:"cancel"})]}):f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:`btn btn-sm${b?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>i({status:b?"draft":"approved"}),children:[f.jsx(Ze,{name:"check"}),"keep"]}),f.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[f.jsx(Ze,{name:"edit"}),"edit"]}),f.jsxs("button",{className:`btn btn-sm${E?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>i({status:E?"draft":"dropped"}),children:[f.jsx(Ze,{name:"drop"}),E?"dropped":"drop"]}),l&&f.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:l,children:[f.jsx(Ze,{name:"comment"}),"discuss"]}),s.origin==="user"&&f.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),g?f.jsxs(f.Fragment,{children:[f.jsx("textarea",{className:"comment-edit",value:m,onChange:x=>p(x.target.value),rows:Math.max(3,m.split(`
241
+ `).length)}),f.jsx(ho,{className:"comment-body",text:Zm(m,s.severity??null)})]}):f.jsx(Wi,{className:"comment-body prose",text:Zm(s.body,s.severity??null)})]})}function OT({files:s,chapterId:i,onAdd:r}){const[l,u]=le.useState(!1),[d,g]=le.useState(s[0]??""),[y,m]=le.useState(""),[p,b]=le.useState("");return l?f.jsxs("div",{className:"add-comment",children:[f.jsxs("div",{className:"add-comment-row",children:[f.jsx("select",{value:d,onChange:E=>g(E.target.value),children:s.map(E=>f.jsx("option",{value:E,children:E},E))}),f.jsx("input",{placeholder:"line (optional)",value:y,onChange:E=>m(E.target.value.replace(/\D/g,"")),size:12})]}),f.jsx("textarea",{placeholder:"Your comment…",value:p,onChange:E=>b(E.target.value),rows:3}),f.jsx(ho,{className:"comment-body",text:p}),f.jsxs("div",{className:"add-comment-row",children:[f.jsx("button",{className:"btn",disabled:!p.trim()||!d,onClick:()=>{r({path:d,line:y?Number(y):null,body:p.trim(),chapterId:i}),b(""),m(""),u(!1)},children:"add"}),f.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):f.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[f.jsx(Ze,{name:"plus"}),"add a comment of your own"]})}const kT=2e3;function MT({chapter:s,n:i,diff:r,comments:l,open:u,heavy:d,onToggle:g,onUpdateComment:y,onDeleteComment:m,onAddComment:p,onDiscuss:b,onAskAboutLine:E,chatBusy:_,readOnly:x,anchorRef:N,flash:A}){const w=le.useMemo(()=>VE(r,s.files),[r,s.files]),B=le.useMemo(()=>Pb(w,l),[w,l]),q=le.useMemo(()=>new Set(Va(w).map(Q=>Q.path)),[w]),D=l.filter(Q=>!B.includes(Q)&&!q.has(Q.path)),re=l.filter(Q=>B.includes(Q)||q.has(Q.path)),$=Q=>f.jsx(Vb,{comment:Q,onUpdate:ie=>y(Q.id,ie),onDelete:()=>m(Q.id),onDiscuss:b&&(()=>b({target:"comment",id:Q.id})),readOnly:x,flash:A===Q.id},Q.id);return f.jsxs("section",{className:"chapter",ref:N,children:[f.jsxs("header",{className:"chapter-head",onClick:g,children:[f.jsx("span",{className:"faint",children:u?"▾":"▸"}),f.jsxs("h3",{children:[i," · ",s.title]}),f.jsxs("span",{className:"faint chapter-meta",children:[s.files.length," file",s.files.length===1?"":"s",l.length>0?` · ${l.length} comment${l.length===1?"":"s"}`:" · no comments",d!=null&&!u&&f.jsx("span",{title:"Drawing this many lines at once would leave the page too slow to scroll. Open it if you want it — nothing else on the page is affected.",children:` · ${d.toLocaleString()} lines to draw, folded to keep the page quick`})]}),f.jsx("span",{className:"grow"}),b&&f.jsxs("button",{className:"btn btn-sm",onClick:Q=>{Q.stopPropagation(),b({target:"chapter",id:s.id})},children:[f.jsx(Ze,{name:"comment"}),"discuss"]})]}),u&&f.jsxs("div",{className:"chapter-body",children:[f.jsx(Wi,{className:"prose chapter-explanation",text:s.explanation}),D.map($),f.jsx(RT,{patch:w,comments:re,renderComment:$,readOnly:x,chatBusy:_,onAddLineComment:(Q,ie)=>p({path:Q.path,line:Q.side==="new"?Q.line:null,body:ie,chapterId:s.id}),onAskAboutLine:E}),!x&&s.files.length>0&&f.jsx(OT,{files:s.files,chapterId:s.id,onAdd:p})]})]})}function CT(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 kf(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 DT({turn:s,artifact:i}){return f.jsxs("div",{className:`chat-turn chat-turn-${s.role}`,children:[f.jsx("div",{className:"chat-turn-who",children:s.role==="user"?"You":"Reviewer"}),s.refs.length>0&&f.jsx("div",{className:"chat-refs",children:s.refs.map((r,l)=>f.jsx("span",{className:"chat-ref",children:kf(r,i)},l))}),f.jsx(Wi,{className:"chat-turn-body prose",text:s.body}),s.revisions.map((r,l)=>f.jsxs("div",{className:"chat-revision",children:["↳ ",CT(r,i)]},l)),s.refused.map((r,l)=>f.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},l))]})}function LT({artifact:s,reviewKey:i,refs:r,onClearRefs:l,onDropRef:u,onArtifact:d,readOnly:g,inputRef:y,anchorRef:m}){const[p,b]=le.useState(""),[E,_]=le.useState(!1),[x,N]=le.useState(null),A=s.chat??[],w=s.pendingChat??null,B=w!=null&&w.error==null,q=E||B,D=($,Q,ie)=>{!$||q||(_(!0),N(null),Tf(i,{message:$,refs:Q}).then(k=>{d(k),ie==null||ie()}).catch(k=>N(String(k.message??k))).finally(()=>_(!1)))},re=()=>D(p.trim(),r,()=>{b(""),l()});return f.jsxs("section",{className:"card chat-panel",ref:m,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"talk to the reviewer"}),f.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),f.jsxs("div",{className:"card-body",children:[(A.length>0||w)&&f.jsxs("div",{className:"chat-log",children:[A.map($=>f.jsx(DT,{turn:$,artifact:s},$.id)),w&&f.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[f.jsx("div",{className:"chat-turn-who",children:"You"}),w.refs.length>0&&f.jsx("div",{className:"chat-refs",children:w.refs.map(($,Q)=>f.jsx("span",{className:"chat-ref",children:kf($,s)},Q))}),f.jsx(Wi,{className:"chat-turn-body prose",text:w.message}),w.error?f.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",w.error,!g&&f.jsxs(f.Fragment,{children:[" ",f.jsx("button",{className:"btn btn-sm",onClick:()=>D(w.message,w.refs),children:"ask again"})," ",f.jsx("button",{className:"btn btn-sm",onClick:()=>M_(i).then(d).catch($=>N(String($.message??$))),children:"dismiss"})]})]}):f.jsx("div",{className:"chat-waiting",children:w.progress.length>0?f.jsx("ol",{className:"chat-progress",children:w.progress.map(($,Q)=>f.jsx("li",{className:Q===w.progress.length-1?"now":void 0,children:$},Q))}):"Thinking… it re-reads the code before answering."})]})]}),g?f.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):f.jsxs(f.Fragment,{children:[r.length>0&&f.jsxs("div",{className:"chat-refs chat-refs-pending",children:[f.jsx("span",{className:"faint",children:"about:"}),r.map(($,Q)=>f.jsxs("button",{className:"chat-ref",onClick:()=>u(Q),title:"Remove",children:[kf($,s)," ✕"]},Q))]}),f.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:p,disabled:E,placeholder:A.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:$=>b($.target.value),onKeyDown:$=>{$.key==="Enter"&&($.metaKey||$.ctrlKey)&&re()}}),f.jsx(ho,{className:"chat-turn-body",text:p}),f.jsxs("div",{className:"chat-actions",children:[f.jsxs("button",{className:"btn btn-dark",onClick:re,disabled:q||p.trim()==="",children:[f.jsx(Ze,{name:"send"}),B?"waiting for the answer…":E?"sending…":"send message",f.jsx(Di,{children:"⌘↵"})]}),f.jsx("span",{className:"grow"}),s.preChat&&f.jsx("button",{className:"btn btn-sm",disabled:q,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),C_(i).then(d).catch($=>N(String($.message??$))).finally(()=>_(!1))},children:"reset the review"})]})]}),x&&f.jsx("div",{className:"error",children:x})]})]})}function zT({artifact:s,reviewKey:i,event:r,overridden:l,onPickEvent:u,sending:d,onSend:g,error:y,footer:m,next:p,onAdvance:b,anchorRef:E}){var re;const[_,x]=le.useState(null),[N,A]=le.useState(null),[w,B]=le.useState(!1),[q,D]=le.useState(!1);return le.useEffect(()=>{w&&D_(i,r).then($=>{x($),A(null)}).catch($=>A(String($)))},[i,r,s,w]),s.sent?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"sent-strip",ref:E,children:[f.jsxs("strong",{children:["✔ sent as ",eo[s.sent.event]]}),f.jsxs("span",{className:"faint",children:[new Date(s.sent.at).toLocaleString()," · ",ob(s),s.sent.auto?" · auto-sent by the daemon":""]}),f.jsx("span",{className:"grow"}),s.sent.url&&f.jsxs("a",{href:s.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",f.jsx(Ze,{name:"external"})]}),f.jsxs("button",{className:"btn",onClick:b,children:[p?`next review: ${p.pr.repo}#${p.pr.number}`:"back to the queue",f.jsx(Ze,{name:"arrowRight"})]})]}),f.jsx("div",{className:"post-actions",children:m})]}):f.jsxs("div",{className:"send-panel",ref:E,children:[f.jsxs("div",{className:"send-top",children:[f.jsx("span",{className:"lab",children:"send to github"}),f.jsx("span",{className:"grow"}),f.jsx("span",{className:"faint",children:ob(s)}),f.jsxs("button",{className:"link",onClick:()=>B(!w),children:[f.jsx(Ze,{name:"eye"}),w?"hide what gets posted":"see what gets posted"]})]}),f.jsxs("div",{className:"send-action",children:[f.jsxs("button",{className:`send-btn tone-bg-${sb[r]}`,disabled:d,onClick:g,children:[f.jsx(Ze,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),d?"sending…":`${eo[r]} on ${s.id}`," ",f.jsx(Di,{children:"s"})]}),f.jsxs("div",{className:"send-as",children:[f.jsxs("button",{className:"send-as-toggle",onClick:()=>D(!q),children:["as ",f.jsx("b",{children:eo[r]})," ",q?"▴":"▾"]}),f.jsx("div",{className:"send-as-why",children:l?`you chose this — the verdict says ${((re=s.verdict)==null?void 0:re.recommendation.replace("_"," "))??"nothing"}`:"follows the verdict"}),q&&f.jsx("div",{className:"menu",children:["REQUEST_CHANGES","COMMENT","APPROVE"].map($=>f.jsxs("button",{className:`menu-item${r===$?" menu-item-on":""}`,onClick:()=>{u($),D(!1)},children:[f.jsx("span",{className:`tone-${sb[$]}`,children:f.jsx(Ze,{name:$==="APPROVE"?"approve":$==="COMMENT"?"comment":"changes"})}),f.jsx("span",{className:"grow",children:eo[$]}),f.jsx("span",{className:"menu-check",children:r===$?"✓":""})]},$))})]})]}),y&&f.jsx("p",{className:"error",children:y}),w&&(N?f.jsx("p",{className:"error",children:N}):_?f.jsx("pre",{className:"body-preview",children:_.body}):f.jsx("p",{className:"faint",children:"building the body…"})),f.jsx("div",{className:"send-footer",children:m})]})}function UT({filed:s}){var l,u,d;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?f.jsxs("div",{children:[f.jsxs("strong",{children:["You answered on this PR on ",r(s.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",i?f.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"?f.jsxs("div",{children:[f.jsx("strong",{children:"Nobody is asking for this review any more."})," The request that put this PR in the inbox was taken back on or before ",r(s.at),", and you had said nothing on the PR, so cerber filed the draft under settled rather than leaving it out for you. Nothing here was changed or sent — the draft is still yours to send."]}):f.jsxs("div",{children:[f.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((d=s.review)==null?void 0:d.at)??s.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",i?f.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 BT({entries:s,open:i,onToggle:r,anchorRef:l}){const u=d=>{const g=new Date(d);return Number.isNaN(g.getTime())?d:`${g.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${g.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return f.jsxs("section",{className:"card",ref:l,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"history"}),f.jsx("span",{className:"faint",children:s.length>0?`${s.length} entr${s.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),f.jsx("span",{className:"grow"}),f.jsxs("button",{className:"btn btn-sm","aria-expanded":i,onClick:r,children:[f.jsx(Ze,{name:i?"up":"down",size:12}),i?"hide":"show"]})]}),i&&f.jsx("div",{className:"card-body",children:s.length===0?f.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):f.jsx("ol",{className:"history",children:s.map((d,g)=>({e:d,i:g})).reverse().map(({e:d,i:g})=>f.jsxs("li",{className:"history-row",title:d.at,children:[f.jsx("span",{className:"history-at",children:u(d.at)}),f.jsx("span",{className:"history-by",children:d.by}),f.jsx("span",{className:"history-what",children:d.what}),d.cause&&f.jsx("span",{className:"history-cause",children:d.cause})]},`${g}-${d.at}`))})})]})}function jT({artifact:s,freshness:i,rerunning:r,onRerun:l}){const u=s.status==="running",d=(i==null?void 0:i.prState)??s.pr.state,g=d==="CLOSED"||d==="MERGED",y=s.refresh,m=i!=null&&i.changed?y:null;if(u)return f.jsxs("div",{className:"freshness freshness-running",children:[f.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]});const p=s.filed;return!g&&!m&&!p?null:f.jsxs("div",{className:"freshness",children:[p&&f.jsx(UT,{filed:p}),g&&f.jsxs("div",{children:[f.jsxs("strong",{children:["This PR is ",d==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),m&&f.jsxs("div",{children:[f.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",f.jsx("code",{children:m.toSha.slice(0,7)}),", reviewed at"," ",f.jsx("code",{children:m.fromSha.slice(0,7)}),"."," ",m.moved>0&&f.jsxs(f.Fragment,{children:[m.moved," comment(s) followed the code. "]}),m.drifted>0&&f.jsxs(f.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&&f.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>l(),children:r?"starting…":"re-review at the new head"})]})]})}function IT({reviewKey:s}){var W,he,Me,Ke,Xe;const[i,r]=le.useState(null),[l,u]=le.useState(null),[d,g]=le.useState(null),[y,m]=le.useState(null),[p,b]=le.useState(!1),[E,_]=le.useState([]),[x,N]=le.useState(new Set),A=U=>N(P=>new Set(P).add(U)),[w,B]=le.useState([]),q=le.useRef(null),[D,re]=le.useState(new Set),[$,Q]=le.useState(0),ie=le.useRef(new Map),k=le.useRef(null),L=le.useRef(null),V=le.useRef(null),K=le.useRef(null),de=le.useRef(null),Te=le.useRef(null),[Ne,me]=le.useState(!1),I=le.useRef(null),[ne,oe]=le.useState(null),[be,Ee]=le.useState(!1),[S,C]=le.useState(null),[H,ue]=le.useState(null);le.useEffect(()=>{if(!H)return;const U=setTimeout(()=>ue(null),1800);return()=>clearTimeout(U)},[H]);const ye=U=>{var P,fe;B(He=>He.some(tt=>tt.target===U.target&&tt.id===U.id)?He:[...He,U]),(P=q.current)==null||P.scrollIntoView({behavior:"smooth",block:"center"}),(fe=q.current)==null||fe.focus()};le.useEffect(()=>{let U=!1;return window.scrollTo({top:0}),r(null),u(null),g(null),m(null),oe(null),C(null),Vm(s).then(P=>{if(!U)return r(P),k_(s).then(fe=>{U||(g(fe),fe.changed&&r(fe.artifact))}).catch(fe=>!U&&m(String(fe.message??fe)))}).catch(P=>!U&&u(String(P))),()=>{U=!0}},[s]),le.useEffect(()=>{Hf().then(_).catch(()=>{})},[]),le.useEffect(()=>{const U=I.current;if(!U)return;const P=()=>document.documentElement.style.setProperty("--top-h",`${U.offsetHeight}px`);P();const fe=new ResizeObserver(P);return fe.observe(U),()=>{fe.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[i==null?void 0:i.id]);const we=(i==null?void 0:i.pendingChat)!=null&&i.pendingChat.error==null;le.useEffect(()=>{if((i==null?void 0:i.status)!=="running"&&!we)return;const U=setInterval(()=>{Vm(s).then(P=>{r(P),P.status!=="running"&&b(!1)}).catch(()=>{})},3e3);return()=>clearInterval(U)},[i==null?void 0:i.status,we,s]);const pe=(i==null?void 0:i.sent)!=null,De=le.useMemo(()=>i_(E,s,x),[E,s,x]),Ae=De.findIndex(U=>U.key===s),Ue=(Ae>0?De[Ae-1]:null)??null,Le=(Ae>=0&&Ae<De.length-1?De[Ae+1]:null)??null,ke=U=>{window.location.hash=`#/r/${encodeURIComponent(U)}`},Nt=()=>{Le?ke(Le.key):window.location.hash="#/"},je=le.useMemo(()=>{if(!i)return[];const U=t_(i.diff,i.chapters);return U.length>0?[...i.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:U}]:i.chapters},[i]),$n=le.useMemo(()=>{const U=n_((i==null?void 0:i.diff)??""),P=new Set(Va((i==null?void 0:i.diff)??"").filter(He=>Qf(He.path)&&Vf(He.patch).isNew).map(He=>He.path)),fe=He=>{const tt=U.get(He)??0;return P.has(He)?Math.round(tt/4):tt};return new Map(je.map(He=>[He.id,He.files.reduce((tt,Un)=>tt+fe(Un),0)]))},[i==null?void 0:i.diff,je]),et=U=>{const P=$n.get(U)??0;return P>kT?P:null},vn=U=>D.has(U)?et(U)!=null:et(U)==null,Yn=U=>re(P=>{const fe=new Set(P);return fe.has(U)?fe.delete(U):fe.add(U),fe});le.useEffect(()=>re(new Set),[s]);const Qt=U=>{const P=je[U];return P?(Q(U),vn(P.id)||Yn(P.id),P):null},Jt=(...U)=>{for(const P of U)if(P.current)return P.current.scrollIntoView({behavior:"smooth",block:"start"})},Wt=U=>{var fe;const P=Qt(U);P&&((fe=ie.current.get(P.id))==null||fe.scrollIntoView({behavior:"smooth",block:"start"}))},ba=(U,P)=>{Qt(U),ue(P),Xb(P)},Mn=ne??vT(i==null?void 0:i.verdict),lt=(W=i==null?void 0:i.verdict)==null?void 0:W.recommendation;le.useEffect(()=>oe(null),[lt]),le.useEffect(()=>C(null),[Mn]);const Lt=()=>{!i||i.sent||be||(Ee(!0),C(null),L_(s,Mn).then(U=>{r(U),A(s)}).catch(U=>C(String(U.message??U))).finally(()=>Ee(!1)))};if(le.useEffect(()=>{const U=P=>{NT(P.target)||P.metaKey||P.ctrlKey||P.altKey||(P.key==="["&&Ue?ke(Ue.key):P.key==="]"&&Le?ke(Le.key):P.key==="n"?Wt(Math.min(je.length-1,$+1)):P.key==="N"?Wt(Math.max(0,$-1)):P.key==="s"&&!pe&&Lt())};return window.addEventListener("keydown",U),()=>window.removeEventListener("keydown",U)},[Ue==null?void 0:Ue.key,Le==null?void 0:Le.key,je,$,pe,Mn,i==null?void 0:i.sent,be]),l&&!i)return f.jsx("p",{className:"error pad",children:l});if(!i)return f.jsx("p",{className:"muted pad",children:"Loading…"});const bt=U=>{b(!0),u(null),Mb(s,U).then(r).catch(P=>{u(String(P)),b(!1)})},Ht=U=>U.then(r).catch(P=>u(String(P))),un=U=>Sf(s,{status:U}).then(()=>{A(s),Nt()}).catch(P=>u(String(P))),Cn=(U,P)=>Ht(w_(s,U,P)),wn=U=>Ht(R_(s,U)),Dn=U=>Ht(A_(s,U)),Ln=i.comments.filter(U=>!U.chapterId||!je.some(P=>P.id===U.chapterId)),{inline:En,folded:Ot,dropped:en}=Zb(i),kt=i.comments.filter(U=>U.status!=="dropped"&&U.drifted).length,zn=i.verdict?cb[i.verdict.recommendation]:"none",An=_T(i),tn=ET(i),Be=i.pendingChat!=null&&i.pendingChat.error==null,fn=()=>Ht(Tf(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}]})),nn=(U,P)=>{Ht(Tf(s,{message:P,refs:[{target:"line",id:null,path:U.path,line:U.line,side:U.side}]}).then(fe=>{var He;return(He=K.current)==null||He.scrollIntoView({behavior:"smooth",block:"start"}),fe}))},zt=(he=i.run)!=null&&he.trusted?"ran the code":(Me=i.run)!=null&&Me.withSource?"read the full source":i.run?"read the diff only":"no run yet",O=U=>{var P;return f.jsxs("button",{className:`verdict-pick${((P=i.verdict)==null?void 0:P.recommendation)===U?` verdict-pick-on tone-${cb[U]}`:""}`,title:U==="approve"?"Approve":U==="comment"?"Comment without blocking":"Request changes",onClick:()=>Ht(Sf(s,{verdictRecommendation:U})),children:[f.jsx(Ze,{name:ST[U]}),U.replace("_"," ")]},U)};return f.jsxs("div",{className:"review",children:[f.jsxs("div",{className:"review-top",ref:I,children:[f.jsx("div",{className:"crumb",children:f.jsxs("div",{className:"bar-inner",children:[f.jsx("a",{href:"#/",children:"← queue"}),f.jsx("span",{className:"crumb-sep",children:"/"}),f.jsx("span",{className:"crumb-slug",children:i.id}),f.jsxs("span",{className:"walk",children:[f.jsx("button",{className:"walk-btn",disabled:!Ue,title:Ue?`[ — ${Ue.id}: ${Ue.pr.title}`:"no more reviews this way",onClick:()=>Ue&&ke(Ue.key),children:f.jsx(Ze,{name:"chevronLeft"})}),f.jsx("button",{className:"walk-btn",disabled:!Le,title:Le?`] — ${Le.id}: ${Le.pr.title}`:"no more reviews this way",onClick:()=>Le&&ke(Le.key),children:f.jsx(Ze,{name:"chevronRight"})})]}),Ae>=0&&f.jsxs("span",{className:"faint",children:[Ae+1," of ",De.length," awaiting"]}),f.jsx("span",{className:"faint crumb-next",children:Le?`next: ${Le.pr.title}`:Ae>=0?"last in the queue":""}),f.jsx("span",{className:"grow"}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Ze,{name:"settings",size:15})})]})}),f.jsx("div",{className:"review-head",children:f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"review-head-top",children:[f.jsx("a",{className:"review-title",href:i.pr.url,target:"_blank",rel:"noreferrer",children:i.pr.title}),f.jsx("span",{className:"grow"}),i.verdict&&(pe?f.jsxs("span",{className:`chip tone-${zn}`,children:[i.verdict.recommendation.replace("_"," "),tn&&` · ${tn}`," · ",i.verdict.confidence,"%"]}):f.jsxs("button",{className:`chip chip-btn tone-${zn}`,title:"change it, or send — both are at the foot of the page",onClick:()=>Jt(k,de),children:[i.verdict.recommendation.replace("_"," "),tn&&` · ${tn}`," · ",i.verdict.confidence,"%",f.jsx(Ze,{name:"down",size:12})]})),!pe&&i.status!=="running"&&f.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:()=>bt(!0),children:[f.jsx(Ze,{name:"rerun"}),p?"starting…":i.run?"re-review at head":"review now"]})]}),f.jsxs("div",{className:"review-head-meta",children:[f.jsx("span",{children:i.pr.author}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[i.pr.headRefName," → ",i.pr.baseRefName,i.pr.headSha?` · ${i.pr.headSha.slice(0,7)}`:""]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[i.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",i.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",i.pr.deletions]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:zt}),((Ke=i.run)==null?void 0:Ke.costUsd)!=null&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{title:"What this review would cost at API token rates. Riding a Claude subscription, it draws on your usage limits instead.",children:["≈$",i.run.costUsd.toFixed(2)," at API rates"]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:i.status})]})]})})]}),f.jsxs("div",{className:"wrap review-body",children:[f.jsxs("aside",{className:"rail",children:[f.jsxs("div",{className:"rail-jumps",children:[f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Jt(L),children:"summary"}),i.verdict&&f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Jt(V),children:"why"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var U;Jt(K),(U=q.current)==null||U.focus()},children:"chat"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{me(!0),Jt(Te)},children:"history"})]}),je.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>Wt(0),children:"changes"}),je.map((U,P)=>f.jsxs("div",{className:"rail-group",children:[f.jsxs("button",{className:`rail-item${vn(U.id)?" rail-item-on":""}`,onClick:()=>Wt(P),children:[f.jsxs("span",{className:"grow",children:[P+1," · ",U.title]}),f.jsxs("span",{className:"rail-count",children:[U.files.length,"f"]})]}),i.comments.filter(fe=>fe.chapterId===U.id).map(fe=>f.jsxs("button",{className:`rail-comment${fe.status==="dropped"?" rail-comment-dropped":""}`,title:`${fe.path}${fe.line!=null?`:${fe.line}`:""} — ${fe.body}`,onClick:()=>ba(P,fe.id),children:[f.jsx("span",{className:`rail-dot tone-${TT(fe,zn)}`,children:"●"}),f.jsxs("span",{className:"rail-comment-loc",children:[fe.path.split("/").pop(),fe.line!=null?`:${fe.drifted?"~":""}${fe.line}`:""]})]},fe.id))]},U.id))]}),f.jsx("button",{className:`lab rail-lab-btn${je.length>0?" rail-lab":""}`,onClick:()=>Jt(k,de),children:"verdict"}),f.jsxs("div",{className:"rail-facts",children:[f.jsxs("div",{children:[i.comments.length-en.length," keeping · ",en.length," dropped"]}),f.jsxs("div",{children:[En.length," inline · ",Ot.length," folded into body"]}),kt>0&&f.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[kt," drifted"]})]})]}),f.jsxs("div",{className:"main",children:[f.jsx(jT,{artifact:i,freshness:d,rerunning:p,onRerun:bt}),y&&f.jsxs("div",{className:"freshness",title:y,children:[f.jsx("strong",{children:"Couldn't check GitHub for newer commits."})," This is the review as it was drafted — if the PR has moved on since, nothing here knows it yet."]}),l&&f.jsx("div",{className:"error",children:l}),((Xe=i.run)==null?void 0:Xe.error)&&f.jsxs("div",{className:"error",children:["Run failed: ",i.run.error]}),f.jsx("div",{className:"card card-summary",ref:L,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"summary"}),f.jsx(Wi,{className:"prose lead",text:i.summary||"(no summary)"}),!pe&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>ye({target:"summary",id:null}),children:[f.jsx(Ze,{name:"comment"}),"discuss the summary"]})]})}),i.verdict&&f.jsx("div",{className:`card card-why tone-border-${zn}`,ref:V,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"why"}),f.jsxs("div",{className:"sev-counts",children:[Ef(i)&&f.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Ef(i)}),Ef(i)&&f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{title:"How sure the review is that its own findings and grades are right — not how good an idea merging is. That is the verdict, and it follows from the blockers.",children:[i.verdict.confidence,"% sure of the findings"]})]}),f.jsx(Wi,{className:"prose lead",text:i.verdict.reasoning}),!pe&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>ye({target:"verdict",id:null}),children:[f.jsx(Ze,{name:"comment"}),"discuss the verdict"]})]})}),je.map((U,P)=>f.jsx(MT,{chapter:U,n:P+1,diff:i.diff,comments:i.comments.filter(fe=>fe.chapterId===U.id),open:vn(U.id),heavy:et(U.id),onToggle:()=>Yn(U.id),onUpdateComment:Cn,onDeleteComment:wn,onAddComment:Dn,onDiscuss:pe?void 0:ye,onAskAboutLine:nn,chatBusy:Be,readOnly:pe,flash:H,anchorRef:fe=>{fe?ie.current.set(U.id,fe):ie.current.delete(U.id)}},U.id)),Ln.length>0&&f.jsxs("section",{className:"card",children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"unattached comments"}),f.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),f.jsx("div",{className:"card-body",children:Ln.map(U=>f.jsx(Vb,{comment:U,onUpdate:P=>Cn(U.id,P),onDelete:()=>wn(U.id),onDiscuss:pe?void 0:()=>ye({target:"comment",id:U.id}),readOnly:pe},U.id))})]}),f.jsx(BT,{entries:i.history??[],open:Ne,onToggle:()=>me(U=>!U),anchorRef:Te})]}),f.jsxs("aside",{className:"cockpit",children:[f.jsx(LT,{artifact:i,reviewKey:s,refs:w,onClearRefs:()=>B([]),onDropRef:U=>B(P=>P.filter((fe,He)=>He!==U)),onArtifact:r,readOnly:pe,inputRef:q,anchorRef:K}),f.jsxs("div",{className:"cockpit-decide",children:[!pe&&An&&f.jsxs("div",{className:"verdict-hint",children:[f.jsxs("span",{children:[f.jsx("strong",{children:An})," — the verdict was written before those edits."]}),f.jsxs("button",{className:"btn btn-sm",onClick:fn,disabled:Be,children:[f.jsx(Ze,{name:"comment"}),Be?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),i.verdict&&!pe&&f.jsxs("div",{className:"verdict-bar",ref:k,children:[f.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(O),f.jsx("span",{className:"grow"}),f.jsx("span",{className:"faint",children:"what you send follows this unless you say otherwise"})]}),f.jsx(zT,{artifact:i,reviewKey:s,event:Mn,overridden:ne!=null,onPickEvent:oe,sending:be,onSend:Lt,error:S,next:Le,onAdvance:Nt,anchorRef:de,footer:f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"faint",children:"not sending?"}),!pe&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"btn btn-sm",title:Le?`Settle it locally and go to ${Le.id}`:"Settle it locally and go back to the queue",onClick:()=>un("reviewed"),children:[f.jsx(Ze,{name:"check"}),"mark reviewed"]}),f.jsxs("button",{className:"btn btn-sm",title:Le?`Leave it and go to ${Le.id}`:"Leave it and go back to the queue",onClick:()=>un("skipped"),children:[f.jsx(Ze,{name:"skip"}),"skip"]})]}),f.jsxs("a",{className:"btn btn-sm",href:z_(s),children:[f.jsx(Ze,{name:"download"}),"export .md"]})]})})]})]})]})]})}const fb="cerber.notify.seen",Mf="cerber.notify",HT=1e4,Jb=s=>{try{return localStorage.getItem(s)}catch{return null}},Cf=(s,i)=>{try{localStorage.setItem(s,i)}catch{}};function qT(s,i){const r=new Set(i);return uo(s).filter(l=>!r.has(l.key))}function GT(s){return s.map(i=>i.key)}const db=s=>`${s.pr.repo}#${s.pr.number}`;function $T(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:`${db(u)} awaits your review`,body:`${u.pr.title} — ${u.pr.author}`,tag:i,key:u.key}}const r=s.slice(0,3).map(db),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 YT=new Set(["127.0.0.1","localhost","::1","[::1]"]);function FT(s,i=window.location.hostname){return!(s!=null&&s.enabled)||!s.notify?!1:YT.has(i)}function Hl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Jb(Mf)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function KT(){const s=Hl();if(s==="unsupported"||s==="blocked")return s;if(s==="on")return Cf(Mf,"off"),Hl();if(Cf(Mf,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Hl()}function PT(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 ZT(){const s=le.useRef(null),[i,r]=le.useState(!1);return le.useEffect(()=>{let l=!0;const u=Jb(fb);if(u)try{const y=JSON.parse(u);Array.isArray(y)&&(s.current=y.filter(m=>typeof m=="string"))}catch{}const d=()=>Promise.all([Hf(),kb().catch(()=>null)]).then(([y,m])=>{if(!l)return;const p=FT(m);r(p);const b=s.current;if(s.current=GT(y),Cf(fb,JSON.stringify(s.current)),!b||Hl()!=="on"||p||document.visibilityState==="visible"&&document.hasFocus())return;const E=$T(qT(y,b));E&&PT(E)}).catch(()=>{});d();const g=setInterval(d,HT);return()=>{l=!1,clearInterval(g)}},[]),i}function Wb(){const[s,i]=le.useState(Hl);return le.useEffect(()=>{const r=()=>i(Hl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[s,()=>void KT().then(i)]}const no=s=>{window.location.hash=`#/r/${encodeURIComponent(s)}`};function XT(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 QT({daemon:s}){return s!=null&&s.enabled?f.jsx("div",{className:"daemon-bar",children:f.jsxs("div",{className:"bar-inner",children:[s.pollEnabled?f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot"}),s.repos.length>0?s.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(s.intervalMs/6e4),"m"]}):f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),f.jsxs("span",{children:["auto-review ",f.jsx("b",{children:s.autoReview?"on":"off"})]}),f.jsxs("span",{children:["auto-send ",f.jsx("b",{children:s.autoSend==="on"?"on":"shadow"})," ≥",s.autoSendThreshold,"%",s.autoSend==="on"?` · ${s.autoSent} sent`:` · ${s.autoSendCandidates} candidate${s.autoSendCandidates===1?"":"s"}`]}),s.trustedRuns&&f.jsxs("span",{className:"warn",title:"Trust rules are set and auto-review is on: reviews of matching PRs run their code unattended. Settings → Trusted PRs, or serve --no-trust.",children:[f.jsx(Ze,{name:"zap",size:12})," trusted PRs run with Bash"]}),f.jsx("span",{className:"grow"}),s.lastPollError?f.jsx("span",{className:"danger",title:s.lastPollError,children:"discovery offline — showing local reviews only"}):f.jsx("span",{className:"faint",children:s.polling?"polling now…":[s.lastSummary?`last: ${s.lastSummary}`:null,s.nextPollAt?`next ${new Date(s.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function VT({r:s,selected:i,onSelect:r,onOpen:l,awaiting:u}){const d=y_(s),g=c_(s),y=u?m_(s,u):null;return f.jsxs("div",{className:`row${i?" row-on":""}`,onClick:l,onMouseEnter:r,role:"button",tabIndex:-1,children:[f.jsx("span",{className:"col-caret",children:"›"}),f.jsxs("span",{className:"col-slug",title:`${s.pr.owner}/${s.pr.repo}#${s.pr.number}`,children:[s.pr.repo,"#",s.pr.number]}),f.jsx("span",{className:"col-author",title:s.pr.author,children:s.pr.author}),f.jsx("span",{className:"col-title",title:s.pr.title,children:s.pr.title}),s.pr.isDraft&&f.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&f.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),g&&f.jsx("span",{className:"tag tag-done",children:g}),f.jsx("span",{className:"col-comments",children:s.commentCount||""}),f.jsx("span",{className:"col-size",children:s.pr.changedFiles>0?f.jsxs(f.Fragment,{children:[s.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",s.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",s.pr.deletions]})]}):"—"}),f.jsx("span",{className:`col-verdict tone-${d.tone}`,children:d.label}),f.jsx("span",{className:"col-age",children:Ob(s.updatedAt)})]})}function hb({autoFocus:s}){const[i,r]=le.useState(""),[l,u]=le.useState(!1),[d,g]=le.useState(null),y=m=>{m.preventDefault();const p=i.trim();!p||l||(u(!0),g(null),O_(p).then(b=>no(b.key)).catch(b=>{g(String(b instanceof Error?b.message:b)),u(!1)}))};return f.jsxs("form",{className:"pull",onSubmit:y,children:[f.jsx(Ze,{name:"plus"}),f.jsx("input",{className:"pull-input",value:i,autoFocus:s,disabled:l,onChange:m=>{r(m.target.value),d&&g(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),i.trim()&&f.jsx("button",{className:"btn btn-small",type:"submit",disabled:l,children:l?"starting…":"review"}),d&&f.jsx("span",{className:"pull-error",children:d})]})}function JT({text:s}){const i=le.useRef(null),[r,l]=le.useState(!1);return le.useLayoutEffect(()=>{const u=i.current;if(!u)return;const d=()=>l(u.scrollHeight-u.clientHeight>4);d();const g=new ResizeObserver(d);return g.observe(u),()=>g.disconnect()},[s]),f.jsx("div",{ref:i,className:`strip-prose${r?" strip-prose-clipped":""}`,children:f.jsx(Wi,{className:"prose",text:s})})}function WT(){var V;const[s,i]=le.useState(null),[r,l]=le.useState(null),[u,d]=le.useState(null),[g,y]=le.useState(new Set),[m,p]=le.useState("inbox"),[b,E]=le.useState(null),_=le.useRef(!0);le.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const x=()=>{Hf().then(K=>_.current&&i(K)).catch(K=>_.current&&d(String(K))),kb().then(K=>_.current&&l(K)).catch(()=>{})};le.useEffect(()=>{x();const K=setInterval(x,1e4);return()=>clearInterval(K)},[]);const N=s??[],A=le.useMemo(()=>r_(N,r),[N,r]),w=A.requests,B=o_(m,A),q=A[B];le.useEffect(()=>{B!==m&&p(B)},[B,m]);const D=q.find(K=>K.key===b)??q[0]??null,re=K=>{y(de=>new Set(de).add(K)),Mb(K).then(()=>x()).catch(de=>_.current&&d(String(de))).finally(()=>{_.current&&y(de=>{const Te=new Set(de);return Te.delete(K),Te})})};if(le.useEffect(()=>{const K=de=>{if(XT(de.target)||de.metaKey||de.ctrlKey||de.altKey)return;const Te=q.findIndex(me=>me.key===(D==null?void 0:D.key)),Ne=me=>{const I=q[Math.min(q.length-1,Math.max(0,Te+me))];I&&E(I.key)};de.key==="j"||de.key==="ArrowDown"?(de.preventDefault(),Ne(1)):de.key==="k"||de.key==="ArrowUp"?(de.preventDefault(),Ne(-1)):de.key==="Enter"&&D?no(D.key):de.key==="r"&&D&&D.status!=="sent"&&D.status!=="running"&&re(D.key)};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[q,D==null?void 0:D.key]),u&&!s)return f.jsx("p",{className:"error",children:u});if(!s)return f.jsx("p",{className:"muted pad",children:"Loading…"});const $=q.reduce((K,de)=>K+(de.costUsd??0),0),Q=D?E_(D,r):null,ie=D?g.has(D.key):!1,k=_f.filter(K=>A[K].length>0),L=K=>f.jsxs("button",{className:`tab${B===K?" tab-on":""}${_f.includes(K)?" tab-filed":""}${K==="requests"?" tab-requests":""}`,title:xu[K].title,onClick:()=>p(K),children:[xu[K].label," ",f.jsx("span",{className:"tab-count",children:A[K].length})]},K);return f.jsxs(f.Fragment,{children:[f.jsx(QT,{daemon:r}),u&&f.jsx("div",{className:"wrap",children:f.jsx("p",{className:"error",children:u})}),N.length===0?f.jsx("div",{className:"wrap",children:f.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?f.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):f.jsx("p",{children:"No reviews yet."}),f.jsx(hb,{autoFocus:!0})]})}):f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"tabs",children:[a_.map(L),k.length>0&&f.jsx("span",{className:"tab-split","aria-hidden":"true"}),k.map(L),f.jsx("span",{className:"grow"}),f.jsx(hb,{}),$>0&&f.jsxs("span",{className:"faint",title:"What these reviews would cost at API token rates. Riding a Claude subscription, they draw on your usage limits instead.",children:["≈$",$.toFixed(2)," at API rates"]})]}),f.jsxs("div",{className:"table-head",children:[f.jsx("span",{className:"col-caret"}),f.jsx("span",{className:"col-slug",children:"repo#pr"}),f.jsx("span",{className:"col-author",children:"author"}),f.jsx("span",{className:"col-title",children:"title"}),f.jsx("span",{className:"col-comments",children:"c"}),f.jsx("span",{className:"col-size",children:"size"}),f.jsx("span",{className:"col-verdict",children:"verdict"}),f.jsx("span",{className:"col-age",children:"upd"})]}),q.length===0?f.jsx("div",{className:"empty-tab",children:B==="inbox"&&w.length>0?f.jsxs(f.Fragment,{children:[f.jsx("p",{children:g_(w)}),f.jsxs("button",{className:"btn",onClick:()=>p("requests"),children:[f.jsx(Ze,{name:"arrowRight"}),"show ",w.length===1?"it":`all ${w.length}`]})]}):f.jsx("p",{className:"muted",children:B==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${xu[B].label} right now.`})}):q.map(K=>f.jsx(VT,{r:K,selected:K.key===(D==null?void 0:D.key),onSelect:()=>E(K.key),onOpen:()=>no(K.key),awaiting:s_(K,w)?u_(K,r):null},K.key)),D&&Q&&f.jsxs("div",{className:"cursor-strip",children:[f.jsxs("div",{className:"cursor-strip-body",children:[f.jsxs("div",{className:"lab",children:[D.pr.owner,"/",D.pr.repo,"#",D.pr.number,D.pr.headRefName&&D.pr.baseRefName?` · ${D.pr.headRefName} → ${D.pr.baseRefName}`:""]}),f.jsx(JT,{text:Q.reasoning}),f.jsxs("div",{className:"cursor-strip-meta",children:[Q.meta.join(" · "),((V=D.sent)==null?void 0:V.url)&&f.jsxs(f.Fragment,{children:[" · ",f.jsx("a",{href:D.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),f.jsxs("div",{className:"cursor-strip-actions",children:[f.jsxs("button",{className:"btn-primary",onClick:()=>no(D.key),children:[f.jsx(Ze,{name:"arrowRight"}),"open review ",f.jsx(Di,{children:"↵"})]}),f.jsxs("div",{className:"cursor-strip-row",children:[f.jsxs("button",{className:"btn",disabled:D.status==="sent"||D.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>Sf(D.key,{status:"skipped"}).then(x).catch(K=>d(String(K))),children:[f.jsx(Ze,{name:"skip"}),"skip"]}),f.jsxs("button",{className:"btn",disabled:ie||D.status==="running"||D.status==="sent",title:D.status==="sent"?"This review was sent — it is a record now.":"Draft a review of the PR's current head.",onClick:()=>re(D.key),children:[f.jsx(Ze,{name:"rerun"}),ie?"starting…":D.status==="awaiting"||D.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const eN=[{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"}],pb=s=>s instanceof Error?s.message:String(s),tN={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 nN({daemonAnnounces:s}){const[i,r]=Wb(),[l,u]=le.useState(null),[d,g]=le.useState(""),[y,m]=le.useState(null),[p,b]=le.useState(!1);le.useEffect(()=>{U_().then(u).catch(_=>m(pb(_)))},[]);const E=_=>{b(!0),m(null),_.then(u).catch(x=>m(pb(x))).finally(()=>b(!1))};return y&&!l?f.jsx("p",{className:"error",children:y}):l?f.jsxs("div",{className:"settings",children:[f.jsx("a",{href:"#/",className:"back",children:"← queue"}),f.jsx("h1",{children:"Inbox"}),f.jsx("p",{children:"By default cerber keeps the queue itself: it polls GitHub for PRs awaiting your review and drafts a review for each, so they're ready when you open the cockpit. Nothing is ever sent without you. Changes apply on the next poll — no restart."}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:l.daemon.poll,disabled:p,onChange:_=>E(Ru({poll:_.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",l.daemon.intervalMinutes,"m)"]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:l.daemon.autoReview,disabled:p||!l.daemon.poll,onChange:_=>E(Ru({autoReview:_.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),f.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",f.jsx("code",{children:l.path})," under"," ",f.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),f.jsx("h1",{children:"Notifications"}),f.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."}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:l.daemon.notify,disabled:p||!l.daemon.poll,onChange:_=>E(Ru({notify:_.target.checked}))})," ","tell this machine when a PR lands (no cockpit tab required)"]}),f.jsxs("p",{className:"muted",children:["This is the one that works while you're somewhere else: it rides the poll that finds the PR, so it needs nothing open but ",f.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",f.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. It cannot open a review on click; the browser's can."]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:i==="on",disabled:i==="unsupported"||i==="blocked"||s,onChange:r})," ",s?"let this browser announce them instead":tN[i]]}),f.jsx("p",{className:"muted",children:s?f.jsxs(f.Fragment,{children:["Standing down while the machine's own notification is on — two popups for one PR is one too many. Untick the machine one above and this browser takes over: it names the PR and ",f.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."]}):f.jsxs(f.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",f.jsx("code",{children: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."]})}),f.jsx("h1",{children:"Trusted PRs"}),f.jsxs("p",{children:["Every review reads the PR's code. A ",f.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",f.jsx("code",{children:"git log"})," — so it can report what happened instead of guessing. That means executing code from the PR on this machine, the same as checking the branch out and running the tests yourself."]}),f.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",f.jsx("code",{children:l.path}),"."]}),f.jsx("p",{className:"muted",children:'Only people can be trusted — there is no way to trust a repository. Anyone can open a PR against a repo you own, so trusting the repo would trust them too. Membership is checked against GitHub when the review runs, and a check that fails counts as "not a member".'}),f.jsxs("div",{className:"trust-add",children:[f.jsx("input",{value:d,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:p,onChange:_=>g(_.target.value),onKeyDown:_=>{_.key==="Enter"&&!p&&d.trim()&&(E(Au(d.trim())),g(""))}}),f.jsx("button",{className:"btn",disabled:p||!d.trim(),onClick:()=>{E(Au(d.trim())),g("")},children:"trust"})]}),y&&f.jsx("p",{className:"error",children:y}),l.trust.length===0?f.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:l.trust.map(_=>f.jsxs("tr",{className:_.denies?"trust-deny":void 0,children:[f.jsx("td",{children:f.jsx("code",{children:_.rule})}),f.jsx("td",{className:"muted",children:_.explanation}),f.jsx("td",{className:"trust-actions",children:f.jsx("button",{className:"btn",disabled:p,onClick:()=>E(Au(_.rule,!0)),children:"remove"})})]},_.rule))})}),f.jsx("h2",{children:"Rule syntax"}),f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:eN.map(_=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx("code",{children:_.rule})}),f.jsx("td",{className:"muted",children:_.meaning})]},_.rule))})}),f.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",f.jsx("code",{children:"gh"})," login, no git or ssh identity — so a push fails to authenticate rather than being merely discouraged. It is not a sandbox though: it has ",f.jsx("code",{children:"Bash"})," and this machine, so trust people you would let run their branch here anyway. The daemon reviews unattended, so with rules set it runs matching PRs' code with nobody watching — start it with ",f.jsx("code",{children:"--no-trust"})," to prevent that."]})]}):f.jsx("p",{className:"muted",children:"Loading…"})}function mb(){const s=window.location.hash,i=s.match(/^#\/r\/(.+)$/);return i?{view:"detail",key:decodeURIComponent(i[1])}:s==="#/settings"?{view:"settings"}:{view:"queue"}}const gb={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."},bb="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 aN({daemonAnnounces:s}){const[i,r]=Wb();return s?f.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:bb,"aria-label":bb,children:f.jsx(Ze,{name:"bell",size:15})}):i==="unsupported"?null:f.jsx("button",{className:`topbar-link bell bell-${i}`,title:gb[i],"aria-label":gb[i],"aria-pressed":i==="on",onClick:r,children:f.jsx(Ze,{name:i==="on"?"bell":"bellOff",size:15})})}function iN(){const[s,i]=le.useState(mb()),r=ZT();return le.useEffect(()=>{const l=()=>i(mb());return window.addEventListener("hashchange",l),()=>window.removeEventListener("hashchange",l)},[]),s.view==="detail"?f.jsx("div",{className:"app",children:f.jsx(IT,{reviewKey:s.key})}):f.jsxs("div",{className:"app",children:[f.jsx("header",{className:"topbar",children:f.jsxs("div",{className:"bar-inner",children:[f.jsxs("a",{href:"#/",className:"brand",children:[f.jsx(U0,{}),"cerber"]}),f.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),f.jsx("span",{className:"grow"}),s.view==="queue"&&f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:"hint",children:[f.jsx(Di,{children:"j"}),f.jsx(Di,{children:"k"}),"move"]}),f.jsxs("span",{className:"hint",children:[f.jsx(Di,{children:"↵"}),"open"]}),f.jsxs("span",{className:"hint",children:[f.jsx(Di,{children:"r"}),"review now"]})]}),f.jsx(aN,{daemonAnnounces:r}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Ze,{name:"settings",size:15})})]})}),s.view==="queue"?f.jsx(WT,{}):f.jsx(nN,{daemonAnnounces:r})]})}hE.createRoot(document.getElementById("root")).render(f.jsx(rE.StrictMode,{children:f.jsx(iN,{})}));