@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.
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
var Xv=Object.defineProperty;var Qv=(s,i,r)=>i in s?Xv(s,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[i]=r;var _t=(s,i,r)=>Qv(s,typeof i!="symbol"?i+"":i,r);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const h of u)if(h.type==="childList")for(const g of h.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&l(g)}).observe(document,{childList:!0,subtree:!0});function r(u){const h={};return u.integrity&&(h.integrity=u.integrity),u.referrerPolicy&&(h.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?h.credentials="include":u.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function l(u){if(u.ep)return;u.ep=!0;const h=r(u);fetch(u.href,h)}})();function db(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var du={exports:{}},Os={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Sm;function Vv(){if(Sm)return Os;Sm=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(l,u,h){var g=null;if(h!==void 0&&(g=""+h),u.key!==void 0&&(g=""+u.key),"key"in u){h={};for(var v in u)v!=="key"&&(h[v]=u[v])}else h=u;return u=h.ref,{$$typeof:s,type:l,key:g,ref:u!==void 0?u:null,props:h}}return Os.Fragment=i,Os.jsx=r,Os.jsxs=r,Os}var Tm;function Jv(){return Tm||(Tm=1,du.exports=Vv()),du.exports}var d=Jv(),hu={exports:{}},He={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Nm;function Wv(){if(Nm)return He;Nm=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),g=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),_=Symbol.iterator;function N(T){return T===null||typeof T!="object"?null:(T=_&&T[_]||T["@@iterator"],typeof T=="function"?T:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,R={};function j(T,z,Y){this.props=T,this.context=z,this.refs=R,this.updater=Y||x}j.prototype.isReactComponent={},j.prototype.setState=function(T,z){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,z,"setState")},j.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function B(){}B.prototype=j.prototype;function M(T,z,Y){this.props=T,this.context=z,this.refs=R,this.updater=Y||x}var ee=M.prototype=new B;ee.constructor=M,C(ee,j.prototype),ee.isPureReactComponent=!0;var H=Array.isArray;function te(){}var ae={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function q(T,z,Y){var fe=Y.ref;return{$$typeof:s,type:T,key:z,ref:fe!==void 0?fe:null,props:Y}}function V(T,z){return q(T.type,z,T.props)}function F(T){return typeof T=="object"&&T!==null&&T.$$typeof===s}function oe(T){var z={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Y){return z[Y]})}var be=/\/+/g;function Ne(T,z){return typeof T=="object"&&T!==null&&T.key!=null?oe(""+T.key):z.toString(36)}function ge(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(te,te):(T.status="pending",T.then(function(z){T.status==="pending"&&(T.status="fulfilled",T.value=z)},function(z){T.status==="pending"&&(T.status="rejected",T.reason=z)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function I(T,z,Y,fe,ve){var Re=typeof T;(Re==="undefined"||Re==="boolean")&&(T=null);var pe=!1;if(T===null)pe=!0;else switch(Re){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(T.$$typeof){case s:case i:pe=!0;break;case b:return pe=T._init,I(pe(T._payload),z,Y,fe,ve)}}if(pe)return ve=ve(T),pe=fe===""?"."+Ne(T,0):fe,H(ve)?(Y="",pe!=null&&(Y=pe.replace(be,"$&/")+"/"),I(ve,z,Y,"",function(ze){return ze})):ve!=null&&(F(ve)&&(ve=V(ve,Y+(ve.key==null||T&&T.key===ve.key?"":(""+ve.key).replace(be,"$&/")+"/")+pe)),z.push(ve)),1;pe=0;var Ce=fe===""?".":fe+":";if(H(T))for(var xe=0;xe<T.length;xe++)fe=T[xe],Re=Ce+Ne(fe,xe),pe+=I(fe,z,Y,Re,ve);else if(xe=N(T),typeof xe=="function")for(T=xe.call(T),xe=0;!(fe=T.next()).done;)fe=fe.value,Re=Ce+Ne(fe,xe++),pe+=I(fe,z,Y,Re,ve);else if(Re==="object"){if(typeof T.then=="function")return I(ge(T),z,Y,fe,ve);throw z=String(T),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return pe}function le(T,z,Y){if(T==null)return T;var fe=[],ve=0;return I(T,fe,"","",function(Re){return z.call(Y,Re,ve++)}),fe}function de(T){if(T._status===-1){var z=T._result;z=z(),z.then(function(Y){(T._status===0||T._status===-1)&&(T._status=1,T._result=Y)},function(Y){(T._status===0||T._status===-1)&&(T._status=2,T._result=Y)}),T._status===-1&&(T._status=0,T._result=z)}if(T._status===1)return T._result.default;throw T._result}var Se=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Be={map:le,forEach:function(T,z,Y){le(T,function(){z.apply(this,arguments)},Y)},count:function(T){var z=0;return le(T,function(){z++}),z},toArray:function(T){return le(T,function(z){return z})||[]},only:function(T){if(!F(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return He.Activity=E,He.Children=Be,He.Component=j,He.Fragment=r,He.Profiler=u,He.PureComponent=M,He.StrictMode=l,He.Suspense=m,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae,He.__COMPILER_RUNTIME={__proto__:null,c:function(T){return ae.H.useMemoCache(T)}},He.cache=function(T){return function(){return T.apply(null,arguments)}},He.cacheSignal=function(){return null},He.cloneElement=function(T,z,Y){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var fe=C({},T.props),ve=T.key;if(z!=null)for(Re in z.key!==void 0&&(ve=""+z.key),z)!O.call(z,Re)||Re==="key"||Re==="__self"||Re==="__source"||Re==="ref"&&z.ref===void 0||(fe[Re]=z[Re]);var Re=arguments.length-2;if(Re===1)fe.children=Y;else if(1<Re){for(var pe=Array(Re),Ce=0;Ce<Re;Ce++)pe[Ce]=arguments[Ce+2];fe.children=pe}return q(T.type,ve,fe)},He.createContext=function(T){return T={$$typeof:g,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:h,_context:T},T},He.createElement=function(T,z,Y){var fe,ve={},Re=null;if(z!=null)for(fe in z.key!==void 0&&(Re=""+z.key),z)O.call(z,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(ve[fe]=z[fe]);var pe=arguments.length-2;if(pe===1)ve.children=Y;else if(1<pe){for(var Ce=Array(pe),xe=0;xe<pe;xe++)Ce[xe]=arguments[xe+2];ve.children=Ce}if(T&&T.defaultProps)for(fe in pe=T.defaultProps,pe)ve[fe]===void 0&&(ve[fe]=pe[fe]);return q(T,Re,ve)},He.createRef=function(){return{current:null}},He.forwardRef=function(T){return{$$typeof:v,render:T}},He.isValidElement=F,He.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:de}},He.memo=function(T,z){return{$$typeof:p,type:T,compare:z===void 0?null:z}},He.startTransition=function(T){var z=ae.T,Y={};ae.T=Y;try{var fe=T(),ve=ae.S;ve!==null&&ve(Y,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(te,Se)}catch(Re){Se(Re)}finally{z!==null&&Y.types!==null&&(z.types=Y.types),ae.T=z}},He.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()},He.use=function(T){return ae.H.use(T)},He.useActionState=function(T,z,Y){return ae.H.useActionState(T,z,Y)},He.useCallback=function(T,z){return ae.H.useCallback(T,z)},He.useContext=function(T){return ae.H.useContext(T)},He.useDebugValue=function(){},He.useDeferredValue=function(T,z){return ae.H.useDeferredValue(T,z)},He.useEffect=function(T,z){return ae.H.useEffect(T,z)},He.useEffectEvent=function(T){return ae.H.useEffectEvent(T)},He.useId=function(){return ae.H.useId()},He.useImperativeHandle=function(T,z,Y){return ae.H.useImperativeHandle(T,z,Y)},He.useInsertionEffect=function(T,z){return ae.H.useInsertionEffect(T,z)},He.useLayoutEffect=function(T,z){return ae.H.useLayoutEffect(T,z)},He.useMemo=function(T,z){return ae.H.useMemo(T,z)},He.useOptimistic=function(T,z){return ae.H.useOptimistic(T,z)},He.useReducer=function(T,z,Y){return ae.H.useReducer(T,z,Y)},He.useRef=function(T){return ae.H.useRef(T)},He.useState=function(T){return ae.H.useState(T)},He.useSyncExternalStore=function(T,z,Y){return ae.H.useSyncExternalStore(T,z,Y)},He.useTransition=function(){return ae.H.useTransition()},He.version="19.2.8",He}var xm;function kf(){return xm||(xm=1,hu.exports=Wv()),hu.exports}var ue=kf();const eE=db(ue);var pu={exports:{}},ks={},mu={exports:{}},gu={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var wm;function tE(){return wm||(wm=1,(function(s){function i(I,le){var de=I.length;I.push(le);e:for(;0<de;){var Se=de-1>>>1,Be=I[Se];if(0<u(Be,le))I[Se]=le,I[de]=Be,de=Se;else break e}}function r(I){return I.length===0?null:I[0]}function l(I){if(I.length===0)return null;var le=I[0],de=I.pop();if(de!==le){I[0]=de;e:for(var Se=0,Be=I.length,T=Be>>>1;Se<T;){var z=2*(Se+1)-1,Y=I[z],fe=z+1,ve=I[fe];if(0>u(Y,de))fe<Be&&0>u(ve,Y)?(I[Se]=ve,I[fe]=de,Se=fe):(I[Se]=Y,I[z]=de,Se=z);else if(fe<Be&&0>u(ve,de))I[Se]=ve,I[fe]=de,Se=fe;else break e}}return le}function u(I,le){var de=I.sortIndex-le.sortIndex;return de!==0?de:I.id-le.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;s.unstable_now=function(){return h.now()}}else{var g=Date,v=g.now();s.unstable_now=function(){return g.now()-v}}var m=[],p=[],b=1,E=null,_=3,N=!1,x=!1,C=!1,R=!1,j=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function ee(I){for(var le=r(p);le!==null;){if(le.callback===null)l(p);else if(le.startTime<=I)l(p),le.sortIndex=le.expirationTime,i(m,le);else break;le=r(p)}}function H(I){if(C=!1,ee(I),!x)if(r(m)!==null)x=!0,te||(te=!0,oe());else{var le=r(p);le!==null&&ge(H,le.startTime-I)}}var te=!1,ae=-1,O=5,q=-1;function V(){return R?!0:!(s.unstable_now()-q<O)}function F(){if(R=!1,te){var I=s.unstable_now();q=I;var le=!0;try{e:{x=!1,C&&(C=!1,B(ae),ae=-1),N=!0;var de=_;try{t:{for(ee(I),E=r(m);E!==null&&!(E.expirationTime>I&&V());){var Se=E.callback;if(typeof Se=="function"){E.callback=null,_=E.priorityLevel;var Be=Se(E.expirationTime<=I);if(I=s.unstable_now(),typeof Be=="function"){E.callback=Be,ee(I),le=!0;break t}E===r(m)&&l(m),ee(I)}else l(m);E=r(m)}if(E!==null)le=!0;else{var T=r(p);T!==null&&ge(H,T.startTime-I),le=!1}}break e}finally{E=null,_=de,N=!1}le=void 0}}finally{le?oe():te=!1}}}var oe;if(typeof M=="function")oe=function(){M(F)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,Ne=be.port2;be.port1.onmessage=F,oe=function(){Ne.postMessage(null)}}else oe=function(){j(F,0)};function ge(I,le){ae=j(function(){I(s.unstable_now())},le)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(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"):O=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 le=3;break;default:le=_}var de=_;_=le;try{return I()}finally{_=de}},s.unstable_requestPaint=function(){R=!0},s.unstable_runWithPriority=function(I,le){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var de=_;_=I;try{return le()}finally{_=de}},s.unstable_scheduleCallback=function(I,le,de){var Se=s.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0<de?Se+de:Se):de=Se,I){case 1:var Be=-1;break;case 2:Be=250;break;case 5:Be=1073741823;break;case 4:Be=1e4;break;default:Be=5e3}return Be=de+Be,I={id:b++,callback:le,priorityLevel:I,startTime:de,expirationTime:Be,sortIndex:-1},de>Se?(I.sortIndex=de,i(p,I),r(m)===null&&I===r(p)&&(C?(B(ae),ae=-1):C=!0,ge(H,de-Se))):(I.sortIndex=Be,i(m,I),x||N||(x=!0,te||(te=!0,oe()))),I},s.unstable_shouldYield=V,s.unstable_wrapCallback=function(I){var le=_;return function(){var de=_;_=le;try{return I.apply(this,arguments)}finally{_=de}}}})(gu)),gu}var Am;function nE(){return Am||(Am=1,mu.exports=tE()),mu.exports}var bu={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 Rm;function aE(){if(Rm)return Tn;Rm=1;var s=kf();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function h(m,p,b){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:m,containerInfo:p,implementation:b}}var g=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return 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 h(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=v(b,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,N=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:N}):b==="script"&&l.d.X(m,{crossOrigin:E,integrity:_,fetchPriority:N,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=v(p.as,p.crossOrigin);l.d.M(m,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(m)},Tn.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,E=v(b,p.crossOrigin);l.d.L(m,b,{crossOrigin:E,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Tn.preloadModule=function(m,p){if(typeof m=="string")if(p){var b=v(p.as,p.crossOrigin);l.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(m)},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 Om;function hb(){if(Om)return bu.exports;Om=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),bu.exports=aE(),bu.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var km;function iE(){if(km)return ks;km=1;var s=nE(),i=kf(),r=hb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function g(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(h(e)!==e)throw Error(l(188))}function p(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return m(o),e;if(c===a)return m(o),t;c=c.sibling}throw Error(l(188))}if(n.return!==a.return)n=o,a=c;else{for(var f=!1,y=o.child;y;){if(y===n){f=!0,n=o,a=c;break}if(y===a){f=!0,a=o,n=c;break}y=y.sibling}if(!f){for(y=c.child;y;){if(y===n){f=!0,n=c,a=o;break}if(y===a){f=!0,a=c,n=o;break}y=y.sibling}if(!f)throw Error(l(189))}}if(n.alternate!==a)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,_=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),M=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var be=Symbol.for("react.client.reference");function Ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case j:return"Profiler";case R:return"StrictMode";case H:return"Suspense";case te:return"SuspenseList";case q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case M:return e.displayName||"Context";case B:return(e._context.displayName||"Context")+".Consumer";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return t=e.displayName||null,t!==null?t:Ne(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return Ne(e(t))}catch{}}return null}var ge=Array.isArray,I=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},Se=[],Be=-1;function T(e){return{current:e}}function z(e){0>Be||(e.current=Se[Be],Se[Be]=null,Be--)}function Y(e,t){Be++,Se[Be]=e.current,e.current=t}var fe=T(null),ve=T(null),Re=T(null),pe=T(null);function Ce(e,t){switch(Y(Re,t),Y(ve,e),Y(fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fp(t),e=Kp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(fe),Y(fe,e)}function xe(){z(fe),z(ve),z(Re)}function ze(e){e.memoizedState!==null&&Y(pe,e);var t=fe.current,n=Kp(t,e.type);t!==n&&(Y(ve,e),Y(fe,n))}function De(e){ve.current===e&&(z(fe),z(ve)),pe.current===e&&(z(pe),xs._currentValue=de)}var Oe,Nt;function Ie(e){if(Oe===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||"",Nt=-1<n.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Oe+e+Nt}var Gn=!1;function Je(e,t){if(!e||Gn)return"";Gn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(Z){var K=Z}Reflect.construct(e,[],ie)}else{try{ie.call()}catch(Z){K=Z}e.call(ie.prototype)}}else{try{throw Error()}catch(Z){K=Z}(ie=e())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(Z){if(Z&&K&&typeof Z.stack=="string")return[Z.stack,K.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],y=c[1];if(f&&y){var w=f.split(`
|
|
44
|
-
`),$=y.split(`
|
|
45
|
-
`);for(o=a=0;a<w.length&&!w[a].includes("DetermineComponentFrameRoot");)a++;for(;o<$.length&&!$[o].includes("DetermineComponentFrameRoot");)o++;if(a===w.length||o===$.length)for(a=w.length-1,o=$.length-1;1<=a&&0<=o&&w[a]!==$[o];)o--;for(;1<=a&&0<=o;a--,o--)if(w[a]!==$[o]){if(a!==1||o!==1)do if(a--,o--,0>o||w[a]!==$[o]){var W=`
|
|
46
|
-
`+w[a].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),W}while(1<=a&&0<=o);break}}}finally{Gn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ie(n):""}function vn(e,t){switch(e.tag){case 26:case 27:case 5:return Ie(e.type);case 16:return Ie("Lazy");case 13:return e.child!==t&&t!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return Je(e.type,!1);case 11:return Je(e.type.render,!1);case 1:return Je(e.type,!0);case 31:return Ie("Activity");default:return""}}function $n(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,it=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 Ue=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 A(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~c,a!==0?o=zt(a):(f&=y,f!==0?o=zt(f):n||(n=y&~e,n!==0&&(o=zt(n))))):(y=a&~c,y!==0?o=zt(y):f!==0?o=zt(f):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 J(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 ke(){var e=nn;return nn<<=1,(nn&62914560)===0&&(nn=4194304),e}function Fe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function L(e,t,n,a,o,c){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,w=e.expirationTimes,$=e.hiddenUpdates;for(n=f&~n;0<n;){var W=31-kt(n),ie=1<<W;y[W]=0,w[W]=-1;var K=$[W];if(K!==null)for($[W]=null,W=0;W<K.length;W++){var Z=K[W];Z!==null&&(Z.lane&=-536870913)}n&=~ie}a!==0&&P(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(f&~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 ce(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 nt(e,t){var n=t&-t;return n=(n&42)!==0?1:ft(n),(n&(e.suspendedLanes|t))!==0?0:n}function ft(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Jn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ya(){var e=le.p;return e!==0?e:(e=window.event,e===void 0?32:mm(e.type))}function Ja(e,t){var n=le.p;try{return le.p=e,t()}finally{le.p=n}}var _n=Math.random().toString(36).slice(2),Mt="__reactFiber$"+_n,an="__reactProps$"+_n,st="__reactContainer$"+_n,Wn="__reactEvents$"+_n,el="__reactListeners$"+_n,ka="__reactHandles$"+_n,Wa="__reactResources$"+_n,va="__reactMarker$"+_n;function ei(e){delete e[Mt],delete e[an],delete e[Wn],delete e[el],delete e[ka]}function dn(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[st]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wp(e);e!==null;){if(n=e[Mt])return n;e=Wp(e)}return t}e=n,n=e.parentNode}return null}function ca(e){if(e=e[Mt]||e[st]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ea(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function _a(e){var t=e[Wa];return t||(t=e[Wa]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[va]=!0}var Ma=new Set,Rn={};function ua(e,t){re(e,t),re(e+"Capture",t)}function re(e,t){for(Rn[e]=t,e=0;e<t.length;e++)Ma.add(t[e])}var we=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]*$"),Ge={},rt={};function Tt(e){return Qt.call(rt,e)?!0:Qt.call(Ge,e)?!1:we.test(e)?rt[e]=!0:(Ge[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 ot(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 tl(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ti(e){if(!e._valueTracker){var t=At(e)?"checked":"value";e._valueTracker=tl(e,t,""+e[t])}}function ni(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=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 nl=/[\n"\\]/g;function Sn(e){return e.replace(nl,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ai(e,t,n,a,o,c,f,y){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ot(t)):e.value!==""+ot(t)&&(e.value=""+ot(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?ii(e,f,ot(t)):n!=null?ii(e,f,ot(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+ot(y):e.removeAttribute("name")}function Da(e,t,n,a,o,c,f,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ti(e);return}n=n!=null?""+ot(n):"",t=t!=null?""+ot(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),ti(e)}function ii(e,t,n){t==="number"&&Ca(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function 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=""+ot(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=""+ot(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ot(n):""}function Sa(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(l(92));if(ge(a)){if(1<a.length)throw Error(l(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=ot(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),ti(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 S=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function D(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||S.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Q(e,t,n){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&D(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&D(e,c,t[c])}function ye(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 _e=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"]]),je=/^[\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 Ze(e){return je.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function se(){}var me=null;function Ae(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ye=null,Ke=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(ai(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+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));ai(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&ni(a)}break e;case"textarea":La(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Gt(e,!!n.multiple,t,!1)}}}var ql=!1;function Gs(e,t,n){if(ql)return e(t,n);ql=!0;try{var a=e(t);return a}finally{if(ql=!1,(Ye!==null||Ke!==null)&&(Or(),Ye&&(t=Ye,e=Ke,Ke=Ye=null,ea(t),e)))for(t=0;t<e.length;t++)ea(e[t])}}function Gl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[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"),fo=!1;if(za)try{var $l={};Object.defineProperty($l,"passive",{get:function(){fo=!0}}),window.addEventListener("test",$l,$l),window.removeEventListener("test",$l,$l)}catch{fo=!1}var li=null,ho=null,$s=null;function Kf(){if($s)return $s;var e,t=ho,n=t.length,a,o="value"in li?li.value:li.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var f=n-e;for(a=1;a<=f&&t[n-a]===o[c-a];a++);return $s=o.slice(e,1<a?1-a:void 0)}function Ys(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fs(){return!0}function Pf(){return!1}function Un(e){function t(n,a,o,c,f){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Fs:Pf,this.isPropagationStopped=Pf,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fs)},persist:function(){},isPersistent:Fs}),t}var Di={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ks=Un(Di),Yl=E({},Di,{view:0,detail:0}),Pb=Un(Yl),po,mo,Fl,Ps=E({},Yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Fl&&(Fl&&e.type==="mousemove"?(po=e.screenX-Fl.screenX,mo=e.screenY-Fl.screenY):mo=po=0,Fl=e),po)},movementY:function(e){return"movementY"in e?e.movementY:mo}}),Zf=Un(Ps),Zb=E({},Ps,{dataTransfer:0}),Xb=Un(Zb),Qb=E({},Yl,{relatedTarget:0}),go=Un(Qb),Vb=E({},Di,{animationName:0,elapsedTime:0,pseudoElement:0}),Jb=Un(Vb),Wb=E({},Di,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ey=Un(Wb),ty=E({},Di,{data:0}),Xf=Un(ty),ny={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ay={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},iy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ly(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=iy[e])?!!t[e]:!1}function bo(){return ly}var sy=E({},Yl,{key:function(e){if(e.key){var t=ny[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ys(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ay[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bo,charCode:function(e){return e.type==="keypress"?Ys(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ys(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ry=Un(sy),oy=E({},Ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qf=Un(oy),cy=E({},Yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bo}),uy=Un(cy),fy=E({},Di,{propertyName:0,elapsedTime:0,pseudoElement:0}),dy=Un(fy),hy=E({},Ps,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),py=Un(hy),my=E({},Di,{newState:0,oldState:0}),gy=Un(my),by=[9,13,27,32],yo=za&&"CompositionEvent"in window,Kl=null;za&&"documentMode"in document&&(Kl=document.documentMode);var yy=za&&"TextEvent"in window&&!Kl,Vf=za&&(!yo||Kl&&8<Kl&&11>=Kl),Jf=" ",Wf=!1;function ed(e,t){switch(e){case"keyup":return by.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var al=!1;function vy(e,t){switch(e){case"compositionend":return td(t);case"keypress":return t.which!==32?null:(Wf=!0,Jf);case"textInput":return e=t.data,e===Jf&&Wf?null:e;default:return null}}function Ey(e,t){if(al)return e==="compositionend"||!yo&&ed(e,t)?(e=Kf(),$s=ho=li=null,al=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vf&&t.locale!=="ko"?null:t.data;default:return null}}var _y={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_y[e.type]:t==="textarea"}function ad(e,t,n,a){Ye?Ke?Ke.push(a):Ke=[a]:Ye=a,t=Ur(t,"onChange"),0<t.length&&(n=new Ks("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Pl=null,Zl=null;function Sy(e){jp(e,0)}function Zs(e){var t=Ea(e);if(ni(t))return e}function id(e,t){if(e==="change")return t}var ld=!1;if(za){var vo;if(za){var Eo="oninput"in document;if(!Eo){var sd=document.createElement("div");sd.setAttribute("oninput","return;"),Eo=typeof sd.oninput=="function"}vo=Eo}else vo=!1;ld=vo&&(!document.documentMode||9<document.documentMode)}function rd(){Pl&&(Pl.detachEvent("onpropertychange",od),Zl=Pl=null)}function od(e){if(e.propertyName==="value"&&Zs(Zl)){var t=[];ad(t,Zl,e,Ae(e)),Gs(Sy,t)}}function Ty(e,t,n){e==="focusin"?(rd(),Pl=t,Zl=n,Pl.attachEvent("onpropertychange",od)):e==="focusout"&&rd()}function Ny(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zs(Zl)}function xy(e,t){if(e==="click")return Zs(t)}function wy(e,t){if(e==="input"||e==="change")return Zs(t)}function Ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yn=typeof Object.is=="function"?Object.is:Ay;function Xl(e,t){if(Yn(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)||!Yn(e[o],t[o]))return!1}return!0}function cd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ud(e,t){var n=cd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cd(n)}}function fd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ca(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ca(e.document)}return t}function _o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Ry=za&&"documentMode"in document&&11>=document.documentMode,il=null,So=null,Ql=null,To=!1;function hd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;To||il==null||il!==Ca(a)||(a=il,"selectionStart"in a&&_o(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ql&&Xl(Ql,a)||(Ql=a,a=Ur(So,"onSelect"),0<a.length&&(t=new Ks("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=il)))}function Li(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ll={animationend:Li("Animation","AnimationEnd"),animationiteration:Li("Animation","AnimationIteration"),animationstart:Li("Animation","AnimationStart"),transitionrun:Li("Transition","TransitionRun"),transitionstart:Li("Transition","TransitionStart"),transitioncancel:Li("Transition","TransitionCancel"),transitionend:Li("Transition","TransitionEnd")},No={},pd={};za&&(pd=document.createElement("div").style,"AnimationEvent"in window||(delete ll.animationend.animation,delete ll.animationiteration.animation,delete ll.animationstart.animation),"TransitionEvent"in window||delete ll.transitionend.transition);function zi(e){if(No[e])return No[e];if(!ll[e])return e;var t=ll[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in pd)return No[e]=t[n];return e}var md=zi("animationend"),gd=zi("animationiteration"),bd=zi("animationstart"),Oy=zi("transitionrun"),ky=zi("transitionstart"),My=zi("transitioncancel"),yd=zi("transitionend"),vd=new Map,xo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");xo.push("scrollEnd");function fa(e,t){vd.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=[],sl=0,wo=0;function Qs(){for(var e=sl,t=wo=sl=0;t<e;){var n=ta[t];ta[t++]=null;var a=ta[t];ta[t++]=null;var o=ta[t];ta[t++]=null;var c=ta[t];if(ta[t++]=null,a!==null&&o!==null){var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}c!==0&&Ed(n,o,c)}}function Vs(e,t,n,a){ta[sl++]=e,ta[sl++]=t,ta[sl++]=n,ta[sl++]=a,wo|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ao(e,t,n,a){return Vs(e,t,n,a),Js(e)}function Ui(e,t){return Vs(e,null,null,t),Js(e)}function Ed(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-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<ys)throw ys=0,Uc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var rl={};function Cy(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fn(e,t,n,a){return new Cy(e,t,n,a)}function Ro(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ua(e,t){var n=e.alternate;return n===null?(n=Fn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function _d(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ws(e,t,n,a,o,c){var f=0;if(a=e,typeof e=="function")Ro(e)&&(f=1);else if(typeof e=="string")f=Bv(e,n,fe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case q:return e=Fn(31,n,t,o),e.elementType=q,e.lanes=c,e;case C:return Bi(n.children,o,c,t);case R:f=8,o|=24;break;case j:return e=Fn(12,n,t,o|2),e.elementType=j,e.lanes=c,e;case H:return e=Fn(13,n,t,o),e.elementType=H,e.lanes=c,e;case te:return e=Fn(19,n,t,o),e.elementType=te,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:f=10;break e;case B:f=9;break e;case ee:f=11;break e;case ae:f=14;break e;case O:f=16,a=null;break e}f=29,n=Error(l(130,e===null?"null":typeof e,"")),a=null}return t=Fn(f,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function Bi(e,t,n,a){return e=Fn(7,e,a,t),e.lanes=n,e}function Oo(e,t,n){return e=Fn(6,e,null,t),e.lanes=n,e}function Sd(e){var t=Fn(18,null,null,0);return t.stateNode=e,t}function ko(e,t,n){return t=Fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Td=new WeakMap;function na(e,t){if(typeof e=="object"&&e!==null){var n=Td.get(e);return n!==void 0?n:(t={value:e,source:t,stack:$n(t)},Td.set(e,t),t)}return{value:e,source:t,stack:$n(t)}}var ol=[],cl=0,er=null,Vl=0,aa=[],ia=0,si=null,Ta=1,Na="";function Ba(e,t){ol[cl++]=Vl,ol[cl++]=er,er=e,Vl=t}function Nd(e,t,n){aa[ia++]=Ta,aa[ia++]=Na,aa[ia++]=si,si=e;var a=Ta;e=Na;var o=32-kt(a)-1;a&=~(1<<o),n+=1;var c=32-kt(t)+o;if(30<c){var f=o-o%5;c=(a&(1<<f)-1).toString(32),a>>=f,o-=f,Ta=1<<32-kt(t)+o|n<<o|a,Na=c+e}else Ta=1<<c|n<<o|a,Na=e}function Mo(e){e.return!==null&&(Ba(e,1),Nd(e,1,0))}function Co(e){for(;e===er;)er=ol[--cl],ol[cl]=null,Vl=ol[--cl],ol[cl]=null;for(;e===si;)si=aa[--ia],aa[ia]=null,Na=aa[--ia],aa[ia]=null,Ta=aa[--ia],aa[ia]=null}function xd(e,t){aa[ia++]=Ta,aa[ia++]=Na,aa[ia++]=si,Ta=t.id,Na=t.overflow,si=e}var hn=null,xt=null,at=!1,ri=null,la=!1,Do=Error(l(519));function oi(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jl(na(t,e)),Do}function wd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Mt]=e,t[an]=a,n){case"dialog":Qe("cancel",t),Qe("close",t);break;case"iframe":case"object":case"embed":Qe("load",t);break;case"video":case"audio":for(n=0;n<Es.length;n++)Qe(Es[n],t);break;case"source":Qe("error",t);break;case"img":case"image":case"link":Qe("error",t),Qe("load",t);break;case"details":Qe("toggle",t);break;case"input":Qe("invalid",t),Da(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Qe("invalid",t);break;case"textarea":Qe("invalid",t),Sa(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||$p(t.textContent,n)?(a.popover!=null&&(Qe("beforetoggle",t),Qe("toggle",t)),a.onScroll!=null&&Qe("scroll",t),a.onScrollEnd!=null&&Qe("scrollend",t),a.onClick!=null&&(t.onclick=se),t=!0):t=!1,t||oi(e,!0)}function Ad(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 ul(e){if(e!==hn)return!1;if(!at)return Ad(e),at=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Vc(e.type,e.memoizedProps)),n=!n),n&&xt&&oi(e),Ad(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));xt=Jp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));xt=Jp(e)}else t===27?(t=xt,Si(e.type)?(e=nu,nu=null,xt=e):xt=t):xt=hn?ra(e.stateNode.nextSibling):null;return!0}function Ii(){xt=hn=null,at=!1}function Lo(){var e=ri;return e!==null&&(Hn===null?Hn=e:Hn.push.apply(Hn,e),ri=null),e}function Jl(e){ri===null?ri=[e]:ri.push(e)}var zo=T(null),ji=null,Ia=null;function ci(e,t,n){Y(zo,t._currentValue),t._currentValue=n}function ja(e){e._currentValue=zo.current,z(zo)}function Uo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Bo(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var f=o.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=o;for(var w=0;w<t.length;w++)if(y.context===t[w]){c.lanes|=n,y=c.alternate,y!==null&&(y.lanes|=n),Uo(c.return,n,e),a||(f=null);break e}c=y.next}}else if(o.tag===18){if(f=o.return,f===null)throw Error(l(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),Uo(f,n,e),f=null}else f=o.child;if(f!==null)f.return=o;else for(f=o;f!==null;){if(f===e){f=null;break}if(o=f.sibling,o!==null){o.return=f.return,f=o;break}f=f.return}o=f}}function fl(e,t,n,a){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var f=o.alternate;if(f===null)throw Error(l(387));if(f=f.memoizedProps,f!==null){var y=o.type;Yn(o.pendingProps.value,f.value)||(e!==null?e.push(y):e=[y])}}else if(o===pe.current){if(f=o.alternate,f===null)throw Error(l(387));f.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(xs):e=[xs])}o=o.return}e!==null&&Bo(t,e,n,a),t.flags|=262144}function tr(e){for(e=e.firstContext;e!==null;){if(!Yn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hi(e){ji=e,Ia=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pn(e){return Rd(ji,e)}function nr(e,t){return ji===null&&Hi(e),Rd(e,t)}function Rd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ia===null){if(e===null)throw Error(l(308));Ia=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ia=Ia.next=t;return n}var Dy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Ly=s.unstable_scheduleCallback,zy=s.unstable_NormalPriority,$t={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Io(){return{controller:new Dy,data:new Map,refCount:0}}function Wl(e){e.refCount--,e.refCount===0&&Ly(zy,function(){e.controller.abort()})}var es=null,jo=0,dl=0,hl=null;function Uy(e,t){if(es===null){var n=es=[];jo=0,dl=Gc(),hl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return jo++,t.then(Od,Od),t}function Od(){if(--jo===0&&es!==null){hl!==null&&(hl.status="fulfilled");var e=es;es=null,dl=0,hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function By(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var kd=I.S;I.S=function(e,t){hp=it(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Uy(e,t),kd!==null&&kd(e,t)};var qi=T(null);function Ho(){var e=qi.current;return e!==null?e:St.pooledCache}function ar(e,t){t===null?Y(qi,qi.current):Y(qi,t.pool)}function Md(){var e=Ho();return e===null?null:{parent:$t._currentValue,pool:e}}var pl=Error(l(460)),qo=Error(l(474)),ir=Error(l(542)),lr={then:function(){}};function Cd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Dd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(se,se),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zd(e),e;default:if(typeof t.status=="string")t.then(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,zd(e),e}throw $i=t,pl}}function Gi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?($i=n,pl):n}}var $i=null;function Ld(){if($i===null)throw Error(l(459));var e=$i;return $i=null,e}function zd(e){if(e===pl||e===ir)throw Error(l(483))}var ml=null,ts=0;function sr(e){var t=ts;return ts+=1,ml===null&&(ml=[]),Dd(ml,e,t)}function ns(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function rr(e,t){throw t.$$typeof===_?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ud(e){function t(U,k){if(e){var G=U.deletions;G===null?(U.deletions=[k],U.flags|=16):G.push(k)}}function n(U,k){if(!e)return null;for(;k!==null;)t(U,k),k=k.sibling;return null}function a(U){for(var k=new Map;U!==null;)U.key!==null?k.set(U.key,U):k.set(U.index,U),U=U.sibling;return k}function o(U,k){return U=Ua(U,k),U.index=0,U.sibling=null,U}function c(U,k,G){return U.index=G,e?(G=U.alternate,G!==null?(G=G.index,G<k?(U.flags|=67108866,k):G):(U.flags|=67108866,k)):(U.flags|=1048576,k)}function f(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function y(U,k,G,ne){return k===null||k.tag!==6?(k=Oo(G,U.mode,ne),k.return=U,k):(k=o(k,G),k.return=U,k)}function w(U,k,G,ne){var Me=G.type;return Me===C?W(U,k,G.props.children,ne,G.key):k!==null&&(k.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===O&&Gi(Me)===k.type)?(k=o(k,G.props),ns(k,G),k.return=U,k):(k=Ws(G.type,G.key,G.props,null,U.mode,ne),ns(k,G),k.return=U,k)}function $(U,k,G,ne){return k===null||k.tag!==4||k.stateNode.containerInfo!==G.containerInfo||k.stateNode.implementation!==G.implementation?(k=ko(G,U.mode,ne),k.return=U,k):(k=o(k,G.children||[]),k.return=U,k)}function W(U,k,G,ne,Me){return k===null||k.tag!==7?(k=Bi(G,U.mode,ne,Me),k.return=U,k):(k=o(k,G),k.return=U,k)}function ie(U,k,G){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=Oo(""+k,U.mode,G),k.return=U,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case N:return G=Ws(k.type,k.key,k.props,null,U.mode,G),ns(G,k),G.return=U,G;case x:return k=ko(k,U.mode,G),k.return=U,k;case O:return k=Gi(k),ie(U,k,G)}if(ge(k)||oe(k))return k=Bi(k,U.mode,G,null),k.return=U,k;if(typeof k.then=="function")return ie(U,sr(k),G);if(k.$$typeof===M)return ie(U,nr(U,k),G);rr(U,k)}return null}function K(U,k,G,ne){var Me=k!==null?k.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Me!==null?null:y(U,k,""+G,ne);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case N:return G.key===Me?w(U,k,G,ne):null;case x:return G.key===Me?$(U,k,G,ne):null;case O:return G=Gi(G),K(U,k,G,ne)}if(ge(G)||oe(G))return Me!==null?null:W(U,k,G,ne,null);if(typeof G.then=="function")return K(U,k,sr(G),ne);if(G.$$typeof===M)return K(U,k,nr(U,G),ne);rr(U,G)}return null}function Z(U,k,G,ne,Me){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return U=U.get(G)||null,y(k,U,""+ne,Me);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case N:return U=U.get(ne.key===null?G:ne.key)||null,w(k,U,ne,Me);case x:return U=U.get(ne.key===null?G:ne.key)||null,$(k,U,ne,Me);case O:return ne=Gi(ne),Z(U,k,G,ne,Me)}if(ge(ne)||oe(ne))return U=U.get(G)||null,W(k,U,ne,Me,null);if(typeof ne.then=="function")return Z(U,k,G,sr(ne),Me);if(ne.$$typeof===M)return Z(U,k,G,nr(k,ne),Me);rr(k,ne)}return null}function Ee(U,k,G,ne){for(var Me=null,ct=null,Te=k,$e=k=0,et=null;Te!==null&&$e<G.length;$e++){Te.index>$e?(et=Te,Te=null):et=Te.sibling;var ut=K(U,Te,G[$e],ne);if(ut===null){Te===null&&(Te=et);break}e&&Te&&ut.alternate===null&&t(U,Te),k=c(ut,k,$e),ct===null?Me=ut:ct.sibling=ut,ct=ut,Te=et}if($e===G.length)return n(U,Te),at&&Ba(U,$e),Me;if(Te===null){for(;$e<G.length;$e++)Te=ie(U,G[$e],ne),Te!==null&&(k=c(Te,k,$e),ct===null?Me=Te:ct.sibling=Te,ct=Te);return at&&Ba(U,$e),Me}for(Te=a(Te);$e<G.length;$e++)et=Z(Te,U,$e,G[$e],ne),et!==null&&(e&&et.alternate!==null&&Te.delete(et.key===null?$e:et.key),k=c(et,k,$e),ct===null?Me=et:ct.sibling=et,ct=et);return e&&Te.forEach(function(Ai){return t(U,Ai)}),at&&Ba(U,$e),Me}function Le(U,k,G,ne){if(G==null)throw Error(l(151));for(var Me=null,ct=null,Te=k,$e=k=0,et=null,ut=G.next();Te!==null&&!ut.done;$e++,ut=G.next()){Te.index>$e?(et=Te,Te=null):et=Te.sibling;var Ai=K(U,Te,ut.value,ne);if(Ai===null){Te===null&&(Te=et);break}e&&Te&&Ai.alternate===null&&t(U,Te),k=c(Ai,k,$e),ct===null?Me=Ai:ct.sibling=Ai,ct=Ai,Te=et}if(ut.done)return n(U,Te),at&&Ba(U,$e),Me;if(Te===null){for(;!ut.done;$e++,ut=G.next())ut=ie(U,ut.value,ne),ut!==null&&(k=c(ut,k,$e),ct===null?Me=ut:ct.sibling=ut,ct=ut);return at&&Ba(U,$e),Me}for(Te=a(Te);!ut.done;$e++,ut=G.next())ut=Z(Te,U,$e,ut.value,ne),ut!==null&&(e&&ut.alternate!==null&&Te.delete(ut.key===null?$e:ut.key),k=c(ut,k,$e),ct===null?Me=ut:ct.sibling=ut,ct=ut);return e&&Te.forEach(function(Zv){return t(U,Zv)}),at&&Ba(U,$e),Me}function Et(U,k,G,ne){if(typeof G=="object"&&G!==null&&G.type===C&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case N:e:{for(var Me=G.key;k!==null;){if(k.key===Me){if(Me=G.type,Me===C){if(k.tag===7){n(U,k.sibling),ne=o(k,G.props.children),ne.return=U,U=ne;break e}}else if(k.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===O&&Gi(Me)===k.type){n(U,k.sibling),ne=o(k,G.props),ns(ne,G),ne.return=U,U=ne;break e}n(U,k);break}else t(U,k);k=k.sibling}G.type===C?(ne=Bi(G.props.children,U.mode,ne,G.key),ne.return=U,U=ne):(ne=Ws(G.type,G.key,G.props,null,U.mode,ne),ns(ne,G),ne.return=U,U=ne)}return f(U);case x:e:{for(Me=G.key;k!==null;){if(k.key===Me)if(k.tag===4&&k.stateNode.containerInfo===G.containerInfo&&k.stateNode.implementation===G.implementation){n(U,k.sibling),ne=o(k,G.children||[]),ne.return=U,U=ne;break e}else{n(U,k);break}else t(U,k);k=k.sibling}ne=ko(G,U.mode,ne),ne.return=U,U=ne}return f(U);case O:return G=Gi(G),Et(U,k,G,ne)}if(ge(G))return Ee(U,k,G,ne);if(oe(G)){if(Me=oe(G),typeof Me!="function")throw Error(l(150));return G=Me.call(G),Le(U,k,G,ne)}if(typeof G.then=="function")return Et(U,k,sr(G),ne);if(G.$$typeof===M)return Et(U,k,nr(U,G),ne);rr(U,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,k!==null&&k.tag===6?(n(U,k.sibling),ne=o(k,G),ne.return=U,U=ne):(n(U,k),ne=Oo(G,U.mode,ne),ne.return=U,U=ne),f(U)):n(U,k)}return function(U,k,G,ne){try{ts=0;var Me=Et(U,k,G,ne);return ml=null,Me}catch(Te){if(Te===pl||Te===ir)throw Te;var ct=Fn(29,Te,null,U.mode);return ct.lanes=ne,ct.return=U,ct}finally{}}}var Yi=Ud(!0),Bd=Ud(!1),ui=!1;function Go(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $o(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function di(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(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),Ed(e,null,n),t}return Vs(e,a,t,n),Js(e)}function as(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ce(e,n)}}function Yo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Fo=!1;function is(){if(Fo){var e=hl;if(e!==null)throw e}}function ls(e,t,n,a){Fo=!1;var o=e.updateQueue;ui=!1;var c=o.firstBaseUpdate,f=o.lastBaseUpdate,y=o.shared.pending;if(y!==null){o.shared.pending=null;var w=y,$=w.next;w.next=null,f===null?c=$:f.next=$,f=w;var W=e.alternate;W!==null&&(W=W.updateQueue,y=W.lastBaseUpdate,y!==f&&(y===null?W.firstBaseUpdate=$:y.next=$,W.lastBaseUpdate=w))}if(c!==null){var ie=o.baseState;f=0,W=$=w=null,y=c;do{var K=y.lane&-536870913,Z=K!==y.lane;if(Z?(We&K)===K:(a&K)===K){K!==0&&K===dl&&(Fo=!0),W!==null&&(W=W.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var Ee=e,Le=y;K=t;var Et=n;switch(Le.tag){case 1:if(Ee=Le.payload,typeof Ee=="function"){ie=Ee.call(Et,ie,K);break e}ie=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=Le.payload,K=typeof Ee=="function"?Ee.call(Et,ie,K):Ee,K==null)break e;ie=E({},ie,K);break e;case 2:ui=!0}}K=y.callback,K!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=o.callbacks,Z===null?o.callbacks=[K]:Z.push(K))}else Z={lane:K,tag:y.tag,payload:y.payload,callback:y.callback,next:null},W===null?($=W=Z,w=ie):W=W.next=Z,f|=K;if(y=y.next,y===null){if(y=o.shared.pending,y===null)break;Z=y,y=Z.next,Z.next=null,o.lastBaseUpdate=Z,o.shared.pending=null}}while(!0);W===null&&(w=ie),o.baseState=w,o.firstBaseUpdate=$,o.lastBaseUpdate=W,c===null&&(o.shared.lanes=0),bi|=f,e.lanes=f,e.memoizedState=ie}}function Id(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function jd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Id(n[e],t)}var gl=T(null),or=T(0);function Hd(e,t){e=Za,Y(or,e),Y(gl,t),Za=e|t.baseLanes}function Ko(){Y(or,Za),Y(gl,gl.current)}function Po(){Za=or.current,z(gl),z(or)}var Kn=T(null),sa=null;function hi(e){var t=e.alternate;Y(Bt,Bt.current&1),Y(Kn,e),sa===null&&(t===null||gl.current!==null||t.memoizedState!==null)&&(sa=e)}function Zo(e){Y(Bt,Bt.current),Y(Kn,e),sa===null&&(sa=e)}function qd(e){e.tag===22?(Y(Bt,Bt.current),Y(Kn,e),sa===null&&(sa=e)):pi()}function pi(){Y(Bt,Bt.current),Y(Kn,Kn.current)}function Pn(e){z(Kn),sa===e&&(sa=null),z(Bt)}var Bt=T(0);function cr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||eu(n)||tu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ha=0,qe=null,yt=null,Yt=null,ur=!1,bl=!1,Fi=!1,fr=0,ss=0,yl=null,Iy=0;function Ct(){throw Error(l(321))}function Xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Yn(e[n],t[n]))return!1;return!0}function Qo(e,t,n,a,o,c){return Ha=c,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Nh:fc,Fi=!1,c=n(a,o),Fi=!1,bl&&(c=$d(t,n,a,o)),Gd(e),c}function Gd(e){I.H=cs;var t=yt!==null&&yt.next!==null;if(Ha=0,Yt=yt=qe=null,ur=!1,ss=0,yl=null,t)throw Error(l(300));e===null||Ft||(e=e.dependencies,e!==null&&tr(e)&&(Ft=!0))}function $d(e,t,n,a){qe=e;var o=0;do{if(bl&&(yl=null),ss=0,bl=!1,25<=o)throw Error(l(301));if(o+=1,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=xh,c=t(n,a)}while(bl);return c}function jy(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?rs(t):t,e=e.useState()[0],(yt!==null?yt.memoizedState:null)!==e&&(qe.flags|=1024),t}function Vo(){var e=fr!==0;return fr=0,e}function Jo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Wo(e){if(ur){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ur=!1}Ha=0,Yt=yt=qe=null,bl=!1,ss=fr=0,yl=null}function On(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?qe.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function It(){if(yt===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var t=Yt===null?qe.memoizedState:Yt.next;if(t!==null)Yt=t,yt=e;else{if(e===null)throw qe.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?qe.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function dr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rs(e){var t=ss;return ss+=1,yl===null&&(yl=[]),e=Dd(yl,e,t),t=qe,(Yt===null?t.memoizedState:Yt.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Nh:fc),e}function hr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return rs(e);if(e.$$typeof===M)return pn(e)}throw Error(l(438,String(e)))}function ec(e){var t=null,n=qe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=qe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=dr(),qe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=V;return t.index++,n}function qa(e,t){return typeof t=="function"?t(e):t}function pr(e){var t=It();return tc(t,yt,e)}function tc(e,t,n){var a=e.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var f=o.next;o.next=c.next,c.next=f}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var y=f=null,w=null,$=t,W=!1;do{var ie=$.lane&-536870913;if(ie!==$.lane?(We&ie)===ie:(Ha&ie)===ie){var K=$.revertLane;if(K===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),ie===dl&&(W=!0);else if((Ha&K)===K){$=$.next,K===dl&&(W=!0);continue}else ie={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},w===null?(y=w=ie,f=c):w=w.next=ie,qe.lanes|=K,bi|=K;ie=$.action,Fi&&n(c,ie),c=$.hasEagerState?$.eagerState:n(c,ie)}else K={lane:ie,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},w===null?(y=w=K,f=c):w=w.next=K,qe.lanes|=ie,bi|=ie;$=$.next}while($!==null&&$!==t);if(w===null?f=c:w.next=y,!Yn(c,e.memoizedState)&&(Ft=!0,W&&(n=hl,n!==null)))throw n;e.memoizedState=c,e.baseState=f,e.baseQueue=w,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function nc(e){var t=It(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var f=o=o.next;do c=e(c,f.action),f=f.next;while(f!==o);Yn(c,t.memoizedState)||(Ft=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Yd(e,t,n){var a=qe,o=It(),c=at;if(c){if(n===void 0)throw Error(l(407));n=n()}else n=t();var f=!Yn((yt||o).memoizedState,n);if(f&&(o.memoizedState=n,Ft=!0),o=o.queue,lc(Pd.bind(null,a,o,e),[e]),o.getSnapshot!==t||f||Yt!==null&&Yt.memoizedState.tag&1){if(a.flags|=2048,vl(9,{destroy:void 0},Kd.bind(null,a,o,n,t),null),St===null)throw Error(l(349));c||(Ha&127)!==0||Fd(a,t,n)}return n}function Fd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=qe.updateQueue,t===null?(t=dr(),qe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Kd(e,t,n,a){t.value=n,t.getSnapshot=a,Zd(t)&&Xd(e)}function Pd(e,t,n){return n(function(){Zd(t)&&Xd(e)})}function Zd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yn(e,n)}catch{return!0}}function Xd(e){var t=Ui(e,2);t!==null&&qn(t,e,2)}function ac(e){var t=On();if(typeof e=="function"){var n=e;if(e=n(),Fi){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 Qd(e,t,n,a){return e.baseState=n,tc(e,yt,typeof a=="function"?a:qa)}function Hy(e,t,n,a,o){if(br(e))throw Error(l(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};I.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Vd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Vd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=I.T,f={};I.T=f;try{var y=n(o,a),w=I.S;w!==null&&w(f,y),Jd(e,t,y)}catch($){ic(e,t,$)}finally{c!==null&&f.types!==null&&(c.types=f.types),I.T=c}}else try{c=n(o,a),Jd(e,t,c)}catch($){ic(e,t,$)}}function Jd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Wd(e,t,a)},function(a){return ic(e,t,a)}):Wd(e,t,n)}function Wd(e,t,n){t.status="fulfilled",t.value=n,eh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Vd(e,n)))}function ic(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,eh(t),t=t.next;while(t!==a)}e.action=null}function eh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function th(e,t){return t}function nh(e,t){if(at){var n=St.formState;if(n!==null){e:{var a=qe;if(at){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}}oi(a)}a=!1}a&&(t=n[0])}}return n=On(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:th,lastRenderedState:t},n.queue=a,n=_h.bind(null,qe,a),a.dispatch=n,a=ac(!1),c=uc.bind(null,qe,!1,a.queue),a=On(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=Hy.bind(null,qe,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function ah(e){var t=It();return ih(t,yt,e)}function ih(e,t,n){if(t=tc(e,t,th)[0],e=pr(qa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=rs(t)}catch(f){throw f===pl?ir:f}else a=t;t=It();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(qe.flags|=2048,vl(9,{destroy:void 0},qy.bind(null,o,n),null)),[a,c,e]}function qy(e,t){e.action=t}function lh(e){var t=It(),n=yt;if(n!==null)return ih(t,n,e);It(),t=t.memoizedState,n=It();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function vl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=qe.updateQueue,t===null&&(t=dr(),qe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function sh(){return It().memoizedState}function mr(e,t,n,a){var o=On();qe.flags|=e,o.memoizedState=vl(1|t,{destroy:void 0},n,a===void 0?null:a)}function gr(e,t,n,a){var o=It();a=a===void 0?null:a;var c=o.memoizedState.inst;yt!==null&&a!==null&&Xo(a,yt.memoizedState.deps)?o.memoizedState=vl(t,c,n,a):(qe.flags|=e,o.memoizedState=vl(1|t,c,n,a))}function rh(e,t){mr(8390656,8,e,t)}function lc(e,t){gr(2048,8,e,t)}function Gy(e){qe.flags|=4;var t=qe.updateQueue;if(t===null)t=dr(),qe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function oh(e){var t=It().memoizedState;return Gy({ref:t,nextImpl:e}),function(){if((dt&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function ch(e,t){return gr(4,2,e,t)}function uh(e,t){return gr(4,4,e,t)}function fh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dh(e,t,n){n=n!=null?n.concat([e]):null,gr(4,4,fh.bind(null,t,e),n)}function sc(){}function hh(e,t){var n=It();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Xo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function ph(e,t){var n=It();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Xo(t,a[1]))return a[0];if(a=e(),Fi){en(!0);try{e()}finally{en(!1)}}return n.memoizedState=[a,t],a}function rc(e,t,n){return n===void 0||(Ha&1073741824)!==0&&(We&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=mp(),qe.lanes|=e,bi|=e,n)}function mh(e,t,n,a){return Yn(n,t)?n:gl.current!==null?(e=rc(e,n,a),Yn(e,t)||(Ft=!0),e):(Ha&42)===0||(Ha&1073741824)!==0&&(We&261930)===0?(Ft=!0,e.memoizedState=n):(e=mp(),qe.lanes|=e,bi|=e,t)}function gh(e,t,n,a,o){var c=le.p;le.p=c!==0&&8>c?c:8;var f=I.T,y={};I.T=y,uc(e,!1,t,n);try{var w=o(),$=I.S;if($!==null&&$(y,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var W=By(w,a);os(e,t,W,Qn(e))}else os(e,t,a,Qn(e))}catch(ie){os(e,t,{then:function(){},status:"rejected",reason:ie},Qn())}finally{le.p=c,f!==null&&y.types!==null&&(f.types=y.types),I.T=f}}function $y(){}function oc(e,t,n,a){if(e.tag!==5)throw Error(l(476));var o=bh(e).queue;gh(e,o,t,de,n===null?$y:function(){return yh(e),n(a)})}function bh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yh(e){var t=bh(e);t.next===null&&(t=e.alternate.memoizedState),os(e,t.next.queue,{},Qn())}function cc(){return pn(xs)}function vh(){return It().memoizedState}function Eh(){return It().memoizedState}function Yy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Qn();e=fi(n);var a=di(t,e,n);a!==null&&(qn(a,t,n),as(a,t,n)),t={cache:Io()},e.payload=t;return}t=t.return}}function Fy(e,t,n){var a=Qn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},br(e)?Sh(t,n):(n=Ao(e,t,n,a),n!==null&&(qn(n,e,a),Th(n,t,a)))}function _h(e,t,n){var a=Qn();os(e,t,n,a)}function os(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(br(e))Sh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var f=t.lastRenderedState,y=c(f,n);if(o.hasEagerState=!0,o.eagerState=y,Yn(y,f))return Vs(e,t,o,0),St===null&&Qs(),!1}catch{}finally{}if(n=Ao(e,t,o,a),n!==null)return qn(n,e,a),Th(n,t,a),!0}return!1}function uc(e,t,n,a){if(a={lane:2,revertLane:Gc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},br(e)){if(t)throw Error(l(479))}else t=Ao(e,n,a,2),t!==null&&qn(t,e,2)}function br(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function Sh(e,t){bl=ur=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Th(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ce(e,n)}}var cs={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};cs.useEffectEvent=Ct;var Nh={readContext:pn,use:hr,useCallback:function(e,t){return On().memoizedState=[e,t===void 0?null:t],e},useContext:pn,useEffect:rh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,mr(4194308,4,fh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mr(4194308,4,e,t)},useInsertionEffect:function(e,t){mr(4,2,e,t)},useMemo:function(e,t){var n=On();t=t===void 0?null:t;var a=e();if(Fi){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(Fi){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=Fy.bind(null,qe,e),[a.memoizedState,e]},useRef:function(e){var t=On();return e={current:e},t.memoizedState=e},useState:function(e){e=ac(e);var t=e.queue,n=_h.bind(null,qe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:sc,useDeferredValue:function(e,t){var n=On();return rc(n,e,t)},useTransition:function(){var e=ac(!1);return e=gh.bind(null,qe,e.queue,!0,!1),On().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=qe,o=On();if(at){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),St===null)throw Error(l(349));(We&127)!==0||Fd(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,rh(Pd.bind(null,a,c,e),[e]),a.flags|=2048,vl(9,{destroy:void 0},Kd.bind(null,a,c,n,t),null),n},useId:function(){var e=On(),t=St.identifierPrefix;if(at){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=Iy++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:cc,useFormState:nh,useActionState:nh,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=uc.bind(null,qe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ec,useCacheRefresh:function(){return On().memoizedState=Yy.bind(null,qe)},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)}}},fc={readContext:pn,use:hr,useCallback:hh,useContext:pn,useEffect:lc,useImperativeHandle:dh,useInsertionEffect:ch,useLayoutEffect:uh,useMemo:ph,useReducer:pr,useRef:sh,useState:function(){return pr(qa)},useDebugValue:sc,useDeferredValue:function(e,t){var n=It();return mh(n,yt.memoizedState,e,t)},useTransition:function(){var e=pr(qa)[0],t=It().memoizedState;return[typeof e=="boolean"?e:rs(e),t]},useSyncExternalStore:Yd,useId:vh,useHostTransitionStatus:cc,useFormState:ah,useActionState:ah,useOptimistic:function(e,t){var n=It();return Qd(n,yt,e,t)},useMemoCache:ec,useCacheRefresh:Eh};fc.useEffectEvent=oh;var xh={readContext:pn,use:hr,useCallback:hh,useContext:pn,useEffect:lc,useImperativeHandle:dh,useInsertionEffect:ch,useLayoutEffect:uh,useMemo:ph,useReducer:nc,useRef:sh,useState:function(){return nc(qa)},useDebugValue:sc,useDeferredValue:function(e,t){var n=It();return yt===null?rc(n,e,t):mh(n,yt.memoizedState,e,t)},useTransition:function(){var e=nc(qa)[0],t=It().memoizedState;return[typeof e=="boolean"?e:rs(e),t]},useSyncExternalStore:Yd,useId:vh,useHostTransitionStatus:cc,useFormState:lh,useActionState:lh,useOptimistic:function(e,t){var n=It();return yt!==null?Qd(n,yt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ec,useCacheRefresh:Eh};xh.useEffectEvent=oh;function dc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:E({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Qn(),o=fi(a);o.payload=t,n!=null&&(o.callback=n),t=di(e,o,a),t!==null&&(qn(t,e,a),as(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Qn(),o=fi(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=di(e,o,a),t!==null&&(qn(t,e,a),as(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Qn(),a=fi(n);a.tag=2,t!=null&&(a.callback=t),t=di(e,a,n),t!==null&&(qn(t,e,n),as(t,e,n))}};function wh(e,t,n,a,o,c,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,f):t.prototype&&t.prototype.isPureReactComponent?!Xl(n,a)||!Xl(o,c):!0}function Ah(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&hc.enqueueReplaceState(t,t.state,null)}function Ki(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=E({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Rh(e){Xs(e)}function Oh(e){console.error(e)}function kh(e){Xs(e)}function yr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Mh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function pc(e,t,n){return n=fi(n),n.tag=3,n.payload={element:null},n.callback=function(){yr(e,t)},n}function Ch(e){return e=fi(e),e.tag=3,e}function Dh(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=a.value;e.payload=function(){return o(c)},e.callback=function(){Mh(t,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Mh(t,n,a),typeof o!="function"&&(yi===null?yi=new Set([this]):yi.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Ky(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&fl(t,n,o,!0),n=Kn.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),jc(e,a,o)),!1;case 22:return n.flags|=65536,a===lr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),jc(e,a,o)),!1}throw Error(l(435,n.tag))}return jc(e,a,o),kr(),!1}if(at)return t=Kn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Do&&(e=Error(l(422),{cause:a}),Jl(na(e,n)))):(a!==Do&&(t=Error(l(423),{cause:a}),Jl(na(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=na(a,n),o=pc(e.stateNode,a,o),Yo(e,o),Dt!==4&&(Dt=2)),!1;var c=Error(l(520),{cause:a});if(c=na(c,n),bs===null?bs=[c]:bs.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=pc(n.stateNode,a,e),Yo(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(yi===null||!yi.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Ch(o),Dh(o,e,n,a),Yo(n,o),!1}n=n.return}while(n!==null);return!1}var mc=Error(l(461)),Ft=!1;function mn(e,t,n,a){t.child=e===null?Bd(t,null,n,a):Yi(t,e.child,n,a)}function Lh(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var f={};for(var y in a)y!=="ref"&&(f[y]=a[y])}else f=a;return Hi(t),a=Qo(e,t,n,f,c,o),y=Vo(),e!==null&&!Ft?(Jo(e,t,o),Ga(e,t,o)):(at&&y&&Mo(t),t.flags|=1,mn(e,t,a,o),t.child)}function zh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!Ro(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Uh(e,t,c,a,o)):(e=Ws(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Tc(e,o)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Xl,n(f,a)&&e.ref===t.ref)return Ga(e,t,o)}return t.flags|=1,e=Ua(c,a),e.ref=t.ref,e.return=t,t.child=e}function Uh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(Xl(c,a)&&e.ref===t.ref)if(Ft=!1,t.pendingProps=a=c,Tc(e,o))(e.flags&131072)!==0&&(Ft=!0);else return t.lanes=e.lanes,Ga(e,t,o)}return gc(e,t,n,a,o)}function Bh(e,t,n,a){var o=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~c}else a=0,t.child=null;return Ih(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ar(t,c!==null?c.cachePool:null),c!==null?Hd(t,c):Ko(),qd(t);else return a=t.lanes=536870912,Ih(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(ar(t,c.cachePool),Hd(t,c),pi(),t.memoizedState=null):(e!==null&&ar(t,null),Ko(),pi());return mn(e,t,o,n),t.child}function us(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ih(e,t,n,a,o){var c=Ho();return c=c===null?null:{parent:$t._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ar(t,null),Ko(),qd(t),e!==null&&fl(e,t,a,!0),t.childLanes=o,null}function vr(e,t){return t=_r({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function jh(e,t,n){return Yi(t,e.child,null,n),e=vr(t,t.pendingProps),e.flags|=2,Pn(t),t.memoizedState=null,e}function Py(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(at){if(a.mode==="hidden")return e=vr(t,a),t.lanes=536870912,us(null,e);if(Zo(t),(e=xt)?(e=Vp(e,la),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:si!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=Sd(e),n.return=t,t.child=n,hn=t,xt=null)):e=null,e===null)throw oi(t);return t.lanes=536870912,null}return vr(t,a)}var c=e.memoizedState;if(c!==null){var f=c.dehydrated;if(Zo(t),o)if(t.flags&256)t.flags&=-257,t=jh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(Ft||fl(e,t,n,!1),o=(n&e.childLanes)!==0,Ft||o){if(a=St,a!==null&&(f=nt(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,Ui(e,f),qn(a,e,f),mc;kr(),t=jh(e,t,n)}else e=c.treeContext,xt=ra(f.nextSibling),hn=t,at=!0,ri=null,la=!1,e!==null&&xd(t,e),t=vr(t,a),t.flags|=4096;return t}return e=Ua(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Er(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(l(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gc(e,t,n,a,o){return Hi(t),n=Qo(e,t,n,a,void 0,o),a=Vo(),e!==null&&!Ft?(Jo(e,t,o),Ga(e,t,o)):(at&&a&&Mo(t),t.flags|=1,mn(e,t,n,o),t.child)}function Hh(e,t,n,a,o,c){return Hi(t),t.updateQueue=null,n=$d(t,a,n,o),Gd(e),a=Vo(),e!==null&&!Ft?(Jo(e,t,c),Ga(e,t,c)):(at&&a&&Mo(t),t.flags|=1,mn(e,t,n,c),t.child)}function qh(e,t,n,a,o){if(Hi(t),t.stateNode===null){var c=rl,f=n.contextType;typeof f=="object"&&f!==null&&(c=pn(f)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=hc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},Go(t),f=n.contextType,c.context=typeof f=="object"&&f!==null?pn(f):rl,c.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(dc(t,n,f,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&hc.enqueueReplaceState(c,c.state,null),ls(t,a,c,o),is(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,w=Ki(n,y);c.props=w;var $=c.context,W=n.contextType;f=rl,typeof W=="object"&&W!==null&&(f=pn(W));var ie=n.getDerivedStateFromProps;W=typeof ie=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,W||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||$!==f)&&Ah(t,c,a,f),ui=!1;var K=t.memoizedState;c.state=K,ls(t,a,c,o),is(),$=t.memoizedState,y||K!==$||ui?(typeof ie=="function"&&(dc(t,n,ie,a),$=t.memoizedState),(w=ui||wh(t,n,w,a,K,$,f))?(W||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=$),c.props=a,c.state=$,c.context=f,a=w):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,$o(e,t),f=t.memoizedProps,W=Ki(n,f),c.props=W,ie=t.pendingProps,K=c.context,$=n.contextType,w=rl,typeof $=="object"&&$!==null&&(w=pn($)),y=n.getDerivedStateFromProps,($=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==ie||K!==w)&&Ah(t,c,a,w),ui=!1,K=t.memoizedState,c.state=K,ls(t,a,c,o),is();var Z=t.memoizedState;f!==ie||K!==Z||ui||e!==null&&e.dependencies!==null&&tr(e.dependencies)?(typeof y=="function"&&(dc(t,n,y,a),Z=t.memoizedState),(W=ui||wh(t,n,W,a,K,Z,w)||e!==null&&e.dependencies!==null&&tr(e.dependencies))?($||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,Z,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,Z,w)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&K===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&K===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=Z),c.props=a,c.state=Z,c.context=w,a=W):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&K===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&K===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Er(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=Yi(t,e.child,null,o),t.child=Yi(t,null,n,o)):mn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ga(e,t,o),e}function Gh(e,t,n,a){return Ii(),t.flags|=256,mn(e,t,n,a),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yc(e){return{baseLanes:e,cachePool:Md()}}function vc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Xn),e}function $h(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(Bt.current&2)!==0),f&&(o=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(at){if(o?hi(t):pi(),(e=xt)?(e=Vp(e,la),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:si!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=Sd(e),n.return=t,t.child=n,hn=t,xt=null)):e=null,e===null)throw oi(t);return tu(e)?t.lanes=32:t.lanes=536870912,null}var y=a.children;return a=a.fallback,o?(pi(),o=t.mode,y=_r({mode:"hidden",children:y},o),a=Bi(a,o,n,null),y.return=t,a.return=t,y.sibling=a,t.child=y,a=t.child,a.memoizedState=yc(n),a.childLanes=vc(e,f,n),t.memoizedState=bc,us(null,a)):(hi(t),Ec(t,y))}var w=e.memoizedState;if(w!==null&&(y=w.dehydrated,y!==null)){if(c)t.flags&256?(hi(t),t.flags&=-257,t=_c(e,t,n)):t.memoizedState!==null?(pi(),t.child=e.child,t.flags|=128,t=null):(pi(),y=a.fallback,o=t.mode,a=_r({mode:"visible",children:a.children},o),y=Bi(y,o,n,null),y.flags|=2,a.return=t,y.return=t,a.sibling=y,t.child=a,Yi(t,e.child,null,n),a=t.child,a.memoizedState=yc(n),a.childLanes=vc(e,f,n),t.memoizedState=bc,t=us(null,a));else if(hi(t),tu(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var $=f.dgst;f=$,a=Error(l(419)),a.stack="",a.digest=f,Jl({value:a,source:null,stack:null}),t=_c(e,t,n)}else if(Ft||fl(e,t,n,!1),f=(n&e.childLanes)!==0,Ft||f){if(f=St,f!==null&&(a=nt(f,n),a!==0&&a!==w.retryLane))throw w.retryLane=a,Ui(e,a),qn(f,e,a),mc;eu(y)||kr(),t=_c(e,t,n)}else eu(y)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,xt=ra(y.nextSibling),hn=t,at=!0,ri=null,la=!1,e!==null&&xd(t,e),t=Ec(t,a.children),t.flags|=4096);return t}return o?(pi(),y=a.fallback,o=t.mode,w=e.child,$=w.sibling,a=Ua(w,{mode:"hidden",children:a.children}),a.subtreeFlags=w.subtreeFlags&65011712,$!==null?y=Ua($,y):(y=Bi(y,o,n,null),y.flags|=2),y.return=t,a.return=t,a.sibling=y,t.child=a,us(null,a),a=t.child,y=e.child.memoizedState,y===null?y=yc(n):(o=y.cachePool,o!==null?(w=$t._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Md(),y={baseLanes:y.baseLanes|n,cachePool:o}),a.memoizedState=y,a.childLanes=vc(e,f,n),t.memoizedState=bc,us(e.child,a)):(hi(t),n=e.child,e=n.sibling,n=Ua(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=n,t.memoizedState=null,n)}function Ec(e,t){return t=_r({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _r(e,t){return e=Fn(22,e,null,t),e.lanes=0,e}function _c(e,t,n){return Yi(t,e.child,null,n),e=Ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Uo(e.return,t,n)}function Sc(e,t,n,a,o,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=o,f.treeForkCount=c)}function Fh(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var f=Bt.current,y=(f&2)!==0;if(y?(f=f&1|2,t.flags|=128):f&=1,Y(Bt,f),mn(e,t,a,n),a=at?Vl:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yh(e,n,t);else if(e.tag===19)Yh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&cr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Sc(t,!1,o,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&cr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Sc(t,!0,n,null,c,a);break;case"together":Sc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Ga(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(fl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=Ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&tr(e)))}function Zy(e,t,n){switch(t.tag){case 3:Ce(t,t.stateNode.containerInfo),ci(t,$t,e.memoizedState.cache),Ii();break;case 27:case 5:ze(t);break;case 4:Ce(t,t.stateNode.containerInfo);break;case 10:ci(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Zo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(hi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?$h(e,t,n):(hi(t),e=Ga(e,t,n),e!==null?e.sibling:null);hi(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(fl(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return Fh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(Bt,Bt.current),a)break;return null;case 22:return t.lanes=0,Bh(e,t,n,t.pendingProps);case 24:ci(t,$t,e.memoizedState.cache)}return Ga(e,t,n)}function Kh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ft=!0;else{if(!Tc(e,n)&&(t.flags&128)===0)return Ft=!1,Zy(e,t,n);Ft=(e.flags&131072)!==0}else Ft=!1,at&&(t.flags&1048576)!==0&&Nd(t,Vl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Gi(t.elementType),t.type=e,typeof e=="function")Ro(e)?(a=Ki(e,a),t.tag=1,t=qh(null,t,e,a,n)):(t.tag=0,t=gc(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===ee){t.tag=11,t=Lh(null,t,e,a,n);break e}else if(o===ae){t.tag=14,t=zh(null,t,e,a,n);break e}}throw t=Ne(e)||e,Error(l(306,t,""))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Ki(a,t.pendingProps),qh(e,t,a,o,n);case 3:e:{if(Ce(t,t.stateNode.containerInfo),e===null)throw Error(l(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,$o(e,t),ls(t,a,null,n);var f=t.memoizedState;if(a=f.cache,ci(t,$t,a),a!==c.cache&&Bo(t,[$t],n,!0),is(),a=f.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Gh(e,t,a,n);break e}else if(a!==o){o=na(Error(l(424)),t),Jl(o),t=Gh(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(xt=ra(e.firstChild),hn=t,at=!0,ri=null,la=!0,n=Bd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ii(),a===o){t=Ga(e,t,n);break e}mn(e,t,a,n)}t=t.child}return t;case 26:return Er(e,t),e===null?(n=am(t.type,null,t.pendingProps,null))?t.memoizedState=n:at||(n=t.type,e=t.pendingProps,a=Br(Re.current).createElement(n),a[Mt]=t,a[an]=e,gn(a,n,e),ht(a),t.stateNode=a):t.memoizedState=am(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ze(t),e===null&&at&&(a=t.stateNode=em(t.type,t.pendingProps,Re.current),hn=t,la=!0,o=xt,Si(t.type)?(nu=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&&at&&((o=a=xt)&&(a=Nv(a,t.type,t.pendingProps,la),a!==null?(t.stateNode=a,hn=t,xt=ra(a.firstChild),la=!1,o=!0):o=!1),o||oi(t)),ze(t),o=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,a=c.children,Vc(o,c)?a=null:f!==null&&Vc(o,f)&&(t.flags|=32),t.memoizedState!==null&&(o=Qo(e,t,jy,null,null,n),xs._currentValue=o),Er(e,t),mn(e,t,a,n),t.child;case 6:return e===null&&at&&((e=n=xt)&&(n=xv(n,t.pendingProps,la),n!==null?(t.stateNode=n,hn=t,xt=null,e=!0):e=!1),e||oi(t)),null;case 13:return $h(e,t,n);case 4:return Ce(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Yi(t,null,a,n):mn(e,t,a,n),t.child;case 11:return Lh(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,ci(t,t.type,a.value),mn(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Hi(t),o=pn(o),a=a(o),t.flags|=1,mn(e,t,a,n),t.child;case 14:return zh(e,t,t.type,t.pendingProps,n);case 15:return Uh(e,t,t.type,t.pendingProps,n);case 19:return Fh(e,t,n);case 31:return Py(e,t,n);case 22:return Bh(e,t,n,t.pendingProps);case 24:return Hi(t),a=pn($t),e===null?(o=Ho(),o===null&&(o=St,c=Io(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},Go(t),ci(t,$t,o)):((e.lanes&n)!==0&&($o(e,t),ls(t,null,null,n),is()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),ci(t,$t,a)):(a=c.cache,ci(t,$t,a),a!==o.cache&&Bo(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 Nc(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(vp())e.flags|=8192;else throw $i=lr,qo}else e.flags&=-16777217}function Ph(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!om(t))if(vp())e.flags|=8192;else throw $i=lr,qo}function Sr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ke():536870912,e.lanes|=t,Tl|=t)}function fs(e,t){if(!at)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function 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 Xy(e,t,n){var a=t.pendingProps;switch(Co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return 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),ja($t),xe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ul(t)?$a(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Lo())),wt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?($a(t),c!==null?(wt(t),Ph(t,c)):(wt(t),Nc(t,o,null,a,n))):c?c!==e.memoizedState?($a(t),wt(t),Ph(t,c)):(wt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&$a(t),wt(t),Nc(t,o,e,a,n)),null;case 27:if(De(t),n=Re.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=fe.current,ul(t)?wd(t):(e=em(o,a,n),t.stateNode=e,$a(t))}return wt(t),null;case 5:if(De(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=fe.current,ul(t))wd(t);else{var f=Br(Re.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(o,{is:a.is}):f.createElement(o)}}c[Mt]=t,c[an]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=c;e:switch(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),Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(l(166));if(e=Re.current,ul(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||$p(e.nodeValue,n)),e||oi(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=ul(t),n!==null){if(e===null){if(!a)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Mt]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),e=!1}else n=Lo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Pn(t),t):(Pn(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=ul(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[Mt]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),o=!1}else o=Lo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Pn(t),t):(Pn(t),null)}return Pn(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 xe(),e===null&&Kc(t.stateNode.containerInfo),wt(t),null;case 10:return ja(t.type),wt(t),null;case 19:if(z(Bt),a=t.memoizedState,a===null)return wt(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)fs(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,fs(a,!1),e=c.updateQueue,t.updateQueue=e,Sr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)_d(n,e),n=n.sibling;return Y(Bt,Bt.current&1|2),at&&Ba(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&it()>Ar&&(t.flags|=128,o=!0,fs(a,!1),t.lanes=4194304)}else{if(!o)if(e=cr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Sr(t,e),fs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!at)return wt(t),null}else 2*it()-a.renderingStartTime>Ar&&n!==536870912&&(t.flags|=128,o=!0,fs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=it(),e.sibling=null,n=Bt.current,Y(Bt,o?n&1|2:n&1),at&&Ba(t,a.treeForkCount),e):(wt(t),null);case 22:case 23:return Pn(t),Po(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(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&&z(qi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ja($t),wt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function Qy(e,t){switch(Co(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ja($t),xe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return De(t),null;case 31:if(t.memoizedState!==null){if(Pn(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(Pn(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 z(Bt),null;case 4:return xe(),null;case 10:return ja(t.type),null;case 22:case 23:return Pn(t),Po(),e!==null&&z(qi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ja($t),null;case 25:return null;default:return null}}function Zh(e,t){switch(Co(t),t.tag){case 3:ja($t),xe();break;case 26:case 27:case 5:De(t);break;case 4:xe();break;case 31:t.memoizedState!==null&&Pn(t);break;case 13:Pn(t);break;case 19:z(Bt);break;case 10:ja(t.type);break;case 22:case 23:Pn(t),Po(),e!==null&&z(qi);break;case 24:ja($t)}}function ds(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,f=n.inst;a=c(),f.destroy=a}n=n.next}while(n!==o)}}catch(y){mt(t,t.return,y)}}function mi(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var f=a.inst,y=f.destroy;if(y!==void 0){f.destroy=void 0,o=t;var w=n,$=y;try{$()}catch(W){mt(o,w,W)}}}a=a.next}while(a!==c)}}catch(W){mt(t,t.return,W)}}function Xh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{jd(t,n)}catch(a){mt(e,e.return,a)}}}function Qh(e,t,n){n.props=Ki(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){mt(e,t,a)}}function hs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){mt(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){mt(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){mt(e,t,o)}else n.current=null}function Vh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){mt(e,e.return,o)}}function xc(e,t,n){try{var a=e.stateNode;yv(a,e.type,n,t),a[an]=t}catch(o){mt(e,e.return,o)}}function Jh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Si(e.type)||e.tag===4}function wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Si(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ac(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=se));else if(a!==4&&(a===27&&Si(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ac(e,t,n),e=e.sibling;e!==null;)Ac(e,t,n),e=e.sibling}function Tr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Si(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Tr(e,t,n),e=e.sibling;e!==null;)Tr(e,t,n),e=e.sibling}function Wh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);gn(t,a,n),t[Mt]=e,t[an]=n}catch(c){mt(e,e.return,c)}}var Ya=!1,Kt=!1,Rc=!1,ep=typeof WeakSet=="function"?WeakSet:Set,sn=null;function Vy(e,t){if(e=e.containerInfo,Xc=Yr,e=dd(e),_o(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var f=0,y=-1,w=-1,$=0,W=0,ie=e,K=null;t:for(;;){for(var Z;ie!==n||o!==0&&ie.nodeType!==3||(y=f+o),ie!==c||a!==0&&ie.nodeType!==3||(w=f+a),ie.nodeType===3&&(f+=ie.nodeValue.length),(Z=ie.firstChild)!==null;)K=ie,ie=Z;for(;;){if(ie===e)break t;if(K===n&&++$===o&&(y=f),K===c&&++W===a&&(w=f),(Z=ie.nextSibling)!==null)break;ie=K,K=ie.parentNode}ie=Z}n=y===-1||w===-1?null:{start:y,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qc={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 Ee=Ki(n.type,o);e=a.getSnapshotBeforeUpdate(Ee,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(Le){mt(n,n.return,Le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Wc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Wc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,sn=e;break}sn=t.return}}function tp(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Ka(e,n),a&4&&ds(5,n);break;case 1:if(Ka(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(f){mt(n,n.return,f)}else{var o=Ki(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){mt(n,n.return,f)}}a&64&&Xh(n),a&512&&hs(n,n.return);break;case 3:if(Ka(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{jd(e,t)}catch(f){mt(n,n.return,f)}}break;case 27:t===null&&a&4&&Wh(n);case 26:case 5:Ka(e,n),t===null&&a&4&&Vh(n),a&512&&hs(n,n.return);break;case 12:Ka(e,n);break;case 31:Ka(e,n),a&4&&ip(e,n);break;case 13:Ka(e,n),a&4&&lp(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sv.bind(null,n),wv(e,n))));break;case 22:if(a=n.memoizedState!==null||Ya,!a){t=t!==null&&t.memoizedState!==null||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 np(e){var t=e.alternate;t!==null&&(e.alternate=null,np(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ei(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Rt=null,Bn=!1;function Fa(e,t,n){for(n=n.child;n!==null;)ap(e,t,n),n=n.sibling}function ap(e,t,n){if(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=Bn;Si(n.type)&&(Rt=n.stateNode,Bn=!1),Fa(e,t,n),Ss(n.stateNode),Rt=a,Bn=o;break;case 5:Kt||xa(n,t);case 6:if(a=Rt,o=Bn,Rt=null,Fa(e,t,n),Rt=a,Bn=o,Rt!==null)if(Bn)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(n.stateNode)}catch(c){mt(n,t,c)}else try{Rt.removeChild(n.stateNode)}catch(c){mt(n,t,c)}break;case 18:Rt!==null&&(Bn?(e=Rt,Xp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ml(e)):Xp(Rt,n.stateNode));break;case 4:a=Rt,o=Bn,Rt=n.stateNode.containerInfo,Bn=!0,Fa(e,t,n),Rt=a,Bn=o;break;case 0:case 11:case 14:case 15:mi(2,n,t),Kt||mi(4,n,t),Fa(e,t,n);break;case 1:Kt||(xa(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Qh(n,t,a)),Fa(e,t,n);break;case 21:Fa(e,t,n);break;case 22:Kt=(a=Kt)||n.memoizedState!==null,Fa(e,t,n),Kt=a;break;default:Fa(e,t,n)}}function ip(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ml(e)}catch(n){mt(t,t.return,n)}}}function lp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ml(e)}catch(n){mt(t,t.return,n)}}function Jy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ep),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ep),t;default:throw Error(l(435,e.tag))}}function Nr(e,t){var n=Jy(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=rv.bind(null,e,a);a.then(o,o)}})}function In(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,f=t,y=f;e:for(;y!==null;){switch(y.tag){case 27:if(Si(y.type)){Rt=y.stateNode,Bn=!1;break e}break;case 5:Rt=y.stateNode,Bn=!1;break e;case 3:case 4:Rt=y.stateNode.containerInfo,Bn=!0;break e}y=y.return}if(Rt===null)throw Error(l(160));ap(c,f,o),Rt=null,Bn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)sp(t,e),t=t.sibling}var da=null;function sp(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:In(t,e),jn(e),a&4&&(mi(3,e,e.return),ds(3,e),mi(5,e,e.return));break;case 1:In(t,e),jn(e),a&512&&(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),jn(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,ht(c),a=c;break e;case"link":var f=sm("link","href",o).get(a+(n.href||""));if(f){for(var y=0;y<f.length;y++)if(c=f[y],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(y,1);break t}}c=o.createElement(a),gn(c,a,n),o.head.appendChild(c);break;case"meta":if(f=sm("meta","content",o).get(a+(n.content||""))){for(y=0;y<f.length;y++)if(c=f[y],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(y,1);break t}}c=o.createElement(a),gn(c,a,n),o.head.appendChild(c);break;default:throw Error(l(468,a))}c[Mt]=e,ht(c),a=c}e.stateNode=a}else rm(o,e.type,e.stateNode);else e.stateNode=lm(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?rm(o,e.type,e.stateNode):lm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&xc(e,e.memoizedProps,n.memoizedProps)}break;case 27:In(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),n!==null&&a&4&&xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(In(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),e.flags&32){o=e.stateNode;try{X(o,"")}catch(Ee){mt(e,e.return,Ee)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,xc(e,o,n!==null?n.memoizedProps:o)),a&1024&&(Rc=!0);break;case 6:if(In(t,e),jn(e),a&4){if(e.stateNode===null)throw Error(l(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(Ee){mt(e,e.return,Ee)}}break;case 3:if(Hr=null,o=da,da=Ir(t.containerInfo),In(t,e),da=o,jn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Ml(t.containerInfo)}catch(Ee){mt(e,e.return,Ee)}Rc&&(Rc=!1,rp(e));break;case 4:a=da,da=Ir(e.stateNode.containerInfo),In(t,e),jn(e),da=a;break;case 12:In(t,e),jn(e);break;case 31:In(t,e),jn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 13:In(t,e),jn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(wr=it()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 22:o=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,$=Ya,W=Kt;if(Ya=$||o,Kt=W||w,In(t,e),Kt=W,Ya=$,jn(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||w||Ya||Kt||Pi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){w=n=t;try{if(c=w.stateNode,o)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=w.stateNode;var ie=w.memoizedProps.style,K=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;y.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(Ee){mt(w,w.return,Ee)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(Ee){mt(w,w.return,Ee)}}}else if(t.tag===18){if(n===null){w=t;try{var Z=w.stateNode;o?Qp(Z,!0):Qp(w.stateNode,!1)}catch(Ee){mt(w,w.return,Ee)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Nr(e,n))));break;case 19:In(t,e),jn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Nr(e,a)));break;case 30:break;case 21:break;default:In(t,e),jn(e)}}function jn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Jh(a)){n=a;break}a=a.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,c=wc(e);Tr(e,c,o);break;case 5:var f=n.stateNode;n.flags&32&&(X(f,""),n.flags&=-33);var y=wc(e);Tr(e,y,f);break;case 3:case 4:var w=n.stateNode.containerInfo,$=wc(e);Ac(e,$,w);break;default:throw Error(l(161))}}catch(W){mt(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function rp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;rp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ka(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tp(e,t.alternate,t),t=t.sibling}function Pi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:mi(4,t,t.return),Pi(t);break;case 1:xa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Qh(t,t.return,n),Pi(t);break;case 27:Ss(t.stateNode);case 26:case 5:xa(t,t.return),Pi(t);break;case 22:t.memoizedState===null&&Pi(t);break;case 30:Pi(t);break;default:Pi(t)}e=e.sibling}}function Pa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,f=c.flags;switch(c.tag){case 0:case 11:case 15:Pa(o,c,n),ds(4,c);break;case 1:if(Pa(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch($){mt(a,a.return,$)}if(a=c,o=a.updateQueue,o!==null){var y=a.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Id(w[o],y)}catch($){mt(a,a.return,$)}}n&&f&64&&Xh(c),hs(c,c.return);break;case 27:Wh(c);case 26:case 5:Pa(o,c,n),n&&a===null&&f&4&&Vh(c),hs(c,c.return);break;case 12:Pa(o,c,n);break;case 31:Pa(o,c,n),n&&f&4&&ip(o,c);break;case 13:Pa(o,c,n),n&&f&4&&lp(o,c);break;case 22:c.memoizedState===null&&Pa(o,c,n),hs(c,c.return);break;case 30:break;default:Pa(o,c,n)}t=t.sibling}}function Oc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Wl(n))}function kc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wl(e))}function ha(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)op(e,t,n,a),t=t.sibling}function op(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:ha(e,t,n,a),o&2048&&ds(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&&Wl(e)));break;case 12:if(o&2048){ha(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,f=c.id,y=c.onPostCommit;typeof y=="function"&&y(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){mt(t,t.return,w)}}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,f=t.alternate,t.memoizedState!==null?c._visibility&2?ha(e,t,n,a):ps(e,t):c._visibility&2?ha(e,t,n,a):(c._visibility|=2,El(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Oc(f,t);break;case 24:ha(e,t,n,a),o&2048&&kc(t.alternate,t);break;default:ha(e,t,n,a)}}function El(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,f=t,y=n,w=a,$=f.flags;switch(f.tag){case 0:case 11:case 15:El(c,f,y,w,o),ds(8,f);break;case 23:break;case 22:var W=f.stateNode;f.memoizedState!==null?W._visibility&2?El(c,f,y,w,o):ps(c,f):(W._visibility|=2,El(c,f,y,w,o)),o&&$&2048&&Oc(f.alternate,f);break;case 24:El(c,f,y,w,o),o&&$&2048&&kc(f.alternate,f);break;default:El(c,f,y,w,o)}t=t.sibling}}function ps(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ps(n,a),o&2048&&Oc(a.alternate,a);break;case 24:ps(n,a),o&2048&&kc(a.alternate,a);break;default:ps(n,a)}t=t.sibling}}var ms=8192;function _l(e,t,n){if(e.subtreeFlags&ms)for(e=e.child;e!==null;)cp(e,t,n),e=e.sibling}function cp(e,t,n){switch(e.tag){case 26:_l(e,t,n),e.flags&ms&&e.memoizedState!==null&&Iv(n,da,e.memoizedState,e.memoizedProps);break;case 5:_l(e,t,n);break;case 3:case 4:var a=da;da=Ir(e.stateNode.containerInfo),_l(e,t,n),da=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ms,ms=16777216,_l(e,t,n),ms=a):_l(e,t,n));break;default:_l(e,t,n)}}function up(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function gs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];sn=a,dp(a,e)}up(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fp(e),e=e.sibling}function fp(e){switch(e.tag){case 0:case 11:case 15:gs(e),e.flags&2048&&mi(9,e,e.return);break;case 3:gs(e);break;case 12:gs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,xr(e)):gs(e);break;default:gs(e)}}function xr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];sn=a,dp(a,e)}up(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:mi(8,t,t.return),xr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,xr(t));break;default:xr(t)}e=e.sibling}}function dp(e,t){for(;sn!==null;){var n=sn;switch(n.tag){case 0:case 11:case 15:mi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Wl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,sn=a;else e:for(n=e;sn!==null;){a=sn;var o=a.sibling,c=a.return;if(np(a),a===n){sn=null;break e}if(o!==null){o.return=c,sn=o;break e}sn=c}}}var Wy={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}},ev=typeof WeakMap=="function"?WeakMap:Map,dt=0,St=null,Xe=null,We=0,pt=0,Zn=null,gi=!1,Sl=!1,Mc=!1,Za=0,Dt=0,bi=0,Zi=0,Cc=0,Xn=0,Tl=0,bs=null,Hn=null,Dc=!1,wr=0,hp=0,Ar=1/0,Rr=null,yi=null,Vt=0,vi=null,Nl=null,Xa=0,Lc=0,zc=null,pp=null,ys=0,Uc=null;function Qn(){return(dt&2)!==0&&We!==0?We&-We:I.T!==null?Gc():ya()}function mp(){if(Xn===0)if((We&536870912)===0||at){var e=fn;fn<<=1,(fn&3932160)===0&&(fn=262144),Xn=e}else Xn=536870912;return e=Kn.current,e!==null&&(e.flags|=32),Xn}function qn(e,t,n){(e===St&&(pt===2||pt===9)||e.cancelPendingCommit!==null)&&(xl(e,0),Ei(e,We,Xn,!1)),Pe(e,n),((dt&2)===0||e!==St)&&(e===St&&((dt&2)===0&&(Zi|=n),Dt===4&&Ei(e,We,Xn,!1)),wa(e))}function gp(e,t,n){if((dt&6)!==0)throw Error(l(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||J(e,t),o=a?av(e,t):Ic(e,t,!0),c=a;do{if(o===0){Sl&&!a&&Ei(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!tv(n)){o=Ic(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var y=e;o=bs;var w=y.current.memoizedState.isDehydrated;if(w&&(xl(y,f).flags|=256),f=Ic(y,f,!1),f!==2){if(Mc&&!w){y.errorRecoveryDisabledLanes|=c,Zi|=c,o=4;break e}c=Hn,Hn=o,c!==null&&(Hn===null?Hn=c:Hn.push.apply(Hn,c))}o=f}if(c=!1,o!==2)continue}}if(o===1){xl(e,0),Ei(e,t,0,!0);break}e:{switch(a=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Ei(a,t,Xn,!gi);break e;case 2:Hn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=wr+300-it(),10<o)){if(Ei(a,t,Xn,!gi),A(a,0,!0)!==0)break e;Xa=t,a.timeoutHandle=Pp(bp.bind(null,a,n,Hn,Rr,Dc,t,Xn,Zi,Tl,gi,c,"Throttled",-0,0),o);break e}bp(a,n,Hn,Rr,Dc,t,Xn,Zi,Tl,gi,c,null,-0,0)}}break}while(!0);wa(e)}function bp(e,t,n,a,o,c,f,y,w,$,W,ie,K,Z){if(e.timeoutHandle=-1,ie=t.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:se},cp(t,c,ie);var Ee=(c&62914560)===c?wr-it():(c&4194048)===c?hp-it():0;if(Ee=jv(ie,Ee),Ee!==null){Xa=c,e.cancelPendingCommit=Ee(xp.bind(null,e,t,c,n,a,o,f,y,w,W,ie,null,K,Z)),Ei(e,c,f,!$);return}}xp(e,t,c,n,a,o,f,y,w)}function tv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],c=o.getSnapshot;o=o.value;try{if(!Yn(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ei(e,t,n,a){t&=~Cc,t&=~Zi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-kt(o),f=1<<c;a[c]=-1,o&=~f}n!==0&&P(e,n,t)}function Or(){return(dt&6)===0?(vs(0),!1):!0}function Bc(){if(Xe!==null){if(pt===0)var e=Xe.return;else e=Xe,Ia=ji=null,Wo(e),ml=null,ts=0,e=Xe;for(;e!==null;)Zh(e.alternate,e),e=e.return;Xe=null}}function xl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,_v(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Xa=0,Bc(),St=e,Xe=n=Ua(e.current,null),We=t,pt=0,Zn=null,gi=!1,Sl=J(e,t),Mc=!1,Tl=Xn=Cc=Zi=bi=Dt=0,Hn=bs=null,Dc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-kt(a),c=1<<o;t|=e[o],a&=~c}return Za=t,Qs(),n}function yp(e,t){qe=null,I.H=cs,t===pl||t===ir?(t=Ld(),pt=3):t===qo?(t=Ld(),pt=4):pt=t===mc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Zn=t,Xe===null&&(Dt=1,yr(e,na(t,e.current)))}function vp(){var e=Kn.current;return e===null?!0:(We&4194048)===We?sa===null:(We&62914560)===We||(We&536870912)!==0?e===sa:!1}function Ep(){var e=I.H;return I.H=cs,e===null?cs:e}function _p(){var e=I.A;return I.A=Wy,e}function kr(){Dt=4,gi||(We&4194048)!==We&&Kn.current!==null||(Sl=!0),(bi&134217727)===0&&(Zi&134217727)===0||St===null||Ei(St,We,Xn,!1)}function Ic(e,t,n){var a=dt;dt|=2;var o=Ep(),c=_p();(St!==e||We!==t)&&(Rr=null,xl(e,t)),t=!1;var f=Dt;e:do try{if(pt!==0&&Xe!==null){var y=Xe,w=Zn;switch(pt){case 8:Bc(),f=6;break e;case 3:case 2:case 9:case 6:Kn.current===null&&(t=!0);var $=pt;if(pt=0,Zn=null,wl(e,y,w,$),n&&Sl){f=0;break e}break;default:$=pt,pt=0,Zn=null,wl(e,y,w,$)}}nv(),f=Dt;break}catch(W){yp(e,W)}while(!0);return t&&e.shellSuspendCounter++,Ia=ji=null,dt=a,I.H=o,I.A=c,Xe===null&&(St=null,We=0,Qs()),f}function nv(){for(;Xe!==null;)Sp(Xe)}function av(e,t){var n=dt;dt|=2;var a=Ep(),o=_p();St!==e||We!==t?(Rr=null,Ar=it()+500,xl(e,t)):Sl=J(e,t);e:do try{if(pt!==0&&Xe!==null){t=Xe;var c=Zn;t:switch(pt){case 1:pt=0,Zn=null,wl(e,t,c,1);break;case 2:case 9:if(Cd(c)){pt=0,Zn=null,Tp(t);break}t=function(){pt!==2&&pt!==9||St!==e||(pt=7),wa(e)},c.then(t,t);break e;case 3:pt=7;break e;case 4:pt=5;break e;case 7:Cd(c)?(pt=0,Zn=null,Tp(t)):(pt=0,Zn=null,wl(e,t,c,7));break;case 5:var f=null;switch(Xe.tag){case 26:f=Xe.memoizedState;case 5:case 27:var y=Xe;if(f?om(f):y.stateNode.complete){pt=0,Zn=null;var w=y.sibling;if(w!==null)Xe=w;else{var $=y.return;$!==null?(Xe=$,Mr($)):Xe=null}break t}}pt=0,Zn=null,wl(e,t,c,5);break;case 6:pt=0,Zn=null,wl(e,t,c,6);break;case 8:Bc(),Dt=6;break e;default:throw Error(l(462))}}iv();break}catch(W){yp(e,W)}while(!0);return Ia=ji=null,I.H=a,I.A=o,dt=n,Xe!==null?0:(St=null,We=0,Qs(),Dt)}function iv(){for(;Xe!==null&&!ba();)Sp(Xe)}function Sp(e){var t=Kh(e.alternate,e,Za);e.memoizedProps=e.pendingProps,t===null?Mr(e):Xe=t}function Tp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Hh(n,t,t.pendingProps,t.type,void 0,We);break;case 11:t=Hh(n,t,t.pendingProps,t.type.render,t.ref,We);break;case 5:Wo(t);default:Zh(n,t),t=Xe=_d(t,Za),t=Kh(n,t,Za)}e.memoizedProps=e.pendingProps,t===null?Mr(e):Xe=t}function wl(e,t,n,a){Ia=ji=null,Wo(t),ml=null,ts=0;var o=t.return;try{if(Ky(e,o,t,n,We)){Dt=1,yr(e,na(n,e.current)),Xe=null;return}}catch(c){if(o!==null)throw Xe=o,c;Dt=1,yr(e,na(n,e.current)),Xe=null;return}t.flags&32768?(at||a===1?e=!0:Sl||(We&536870912)!==0?e=!1:(gi=e=!0,(a===2||a===9||a===3||a===6)&&(a=Kn.current,a!==null&&a.tag===13&&(a.flags|=16384))),Np(t,e)):Mr(t)}function Mr(e){var t=e;do{if((t.flags&32768)!==0){Np(t,gi);return}e=t.return;var n=Xy(t.alternate,t,Za);if(n!==null){Xe=n;return}if(t=t.sibling,t!==null){Xe=t;return}Xe=t=e}while(t!==null);Dt===0&&(Dt=5)}function Np(e,t){do{var n=Qy(e.alternate,e);if(n!==null){n.flags&=32767,Xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Xe=e;return}Xe=e=n}while(e!==null);Dt=6,Xe=null}function xp(e,t,n,a,o,c,f,y,w){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|=wo,L(e,n,c,f,y,w),e===St&&(Xe=St=null,We=0),Nl=t,vi=e,Xa=n,Lc=c,zc=o,pp=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ov(un,function(){return kp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=I.T,I.T=null,o=le.p,le.p=2,f=dt,dt|=4;try{Vy(e,t,n)}finally{dt=f,le.p=o,I.T=a}}Vt=1,wp(),Ap(),Rp()}}function wp(){if(Vt===1){Vt=0;var e=vi,t=Nl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=I.T,I.T=null;var a=le.p;le.p=2;var o=dt;dt|=4;try{sp(t,e);var c=Qc,f=dd(e.containerInfo),y=c.focusedElem,w=c.selectionRange;if(f!==y&&y&&y.ownerDocument&&fd(y.ownerDocument.documentElement,y)){if(w!==null&&_o(y)){var $=w.start,W=w.end;if(W===void 0&&(W=$),"selectionStart"in y)y.selectionStart=$,y.selectionEnd=Math.min(W,y.value.length);else{var ie=y.ownerDocument||document,K=ie&&ie.defaultView||window;if(K.getSelection){var Z=K.getSelection(),Ee=y.textContent.length,Le=Math.min(w.start,Ee),Et=w.end===void 0?Le:Math.min(w.end,Ee);!Z.extend&&Le>Et&&(f=Et,Et=Le,Le=f);var U=ud(y,Le),k=ud(y,Et);if(U&&k&&(Z.rangeCount!==1||Z.anchorNode!==U.node||Z.anchorOffset!==U.offset||Z.focusNode!==k.node||Z.focusOffset!==k.offset)){var G=ie.createRange();G.setStart(U.node,U.offset),Z.removeAllRanges(),Le>Et?(Z.addRange(G),Z.extend(k.node,k.offset)):(G.setEnd(k.node,k.offset),Z.addRange(G))}}}}for(ie=[],Z=y;Z=Z.parentNode;)Z.nodeType===1&&ie.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<ie.length;y++){var ne=ie[y];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}Yr=!!Xc,Qc=Xc=null}finally{dt=o,le.p=a,I.T=n}}e.current=t,Vt=2}}function Ap(){if(Vt===2){Vt=0;var e=vi,t=Nl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=I.T,I.T=null;var a=le.p;le.p=2;var o=dt;dt|=4;try{tp(e,t.alternate,t)}finally{dt=o,le.p=a,I.T=n}}Vt=3}}function Rp(){if(Vt===4||Vt===3){Vt=0,Mn();var e=vi,t=Nl,n=Xa,a=pp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Vt=5:(Vt=0,Nl=vi=null,Op(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(yi=null),Jn(n),t=t.stateNode,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=le.p,le.p=2,I.T=null;try{for(var c=e.onRecoverableError,f=0;f<a.length;f++){var y=a[f];c(y.value,{componentStack:y.stack})}}finally{I.T=t,le.p=o}}(Xa&3)!==0&&Cr(),wa(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Uc?ys++:(ys=0,Uc=e):ys=0,vs(0)}}function Op(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wl(t)))}function Cr(){return wp(),Ap(),Rp(),kp()}function kp(){if(Vt!==5)return!1;var e=vi,t=Lc;Lc=0;var n=Jn(Xa),a=I.T,o=le.p;try{le.p=32>n?32:n,I.T=null,n=zc,zc=null;var c=vi,f=Xa;if(Vt=0,Nl=vi=null,Xa=0,(dt&6)!==0)throw Error(l(331));var y=dt;if(dt|=4,fp(c.current),op(c,c.current,f,n),dt=y,vs(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(En,c)}catch{}return!0}finally{le.p=o,I.T=a,Op(e,t)}}function Mp(e,t,n){t=na(n,t),t=pc(e.stateNode,t,2),e=di(e,t,2),e!==null&&(Pe(e,2),wa(e))}function mt(e,t,n){if(e.tag===3)Mp(e,e,n);else for(;t!==null;){if(t.tag===3){Mp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(yi===null||!yi.has(a))){e=na(n,e),n=Ch(2),a=di(t,n,2),a!==null&&(Dh(n,a,t,e),Pe(a,2),wa(a));break}}t=t.return}}function jc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new ev;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(Mc=!0,o.add(n),e=lv.bind(null,e,t,n),t.then(e,e))}function lv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,St===e&&(We&n)===n&&(Dt===4||Dt===3&&(We&62914560)===We&&300>it()-wr?(dt&2)===0&&xl(e,0):Cc|=n,Tl===We&&(Tl=0)),wa(e)}function Cp(e,t){t===0&&(t=ke()),e=Ui(e,t),e!==null&&(Pe(e,t),wa(e))}function sv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cp(e,n)}function rv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(l(314))}a!==null&&a.delete(t),Cp(e,n)}function ov(e,t){return Jt(e,t)}var Dr=null,Al=null,Hc=!1,Lr=!1,qc=!1,_i=0;function wa(e){e!==Al&&e.next===null&&(Al===null?Dr=Al=e:Al=Al.next=e),Lr=!0,Hc||(Hc=!0,uv())}function vs(e,t){if(!qc&&Lr){qc=!0;do for(var n=!1,a=Dr;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var f=a.suspendedLanes,y=a.pingedLanes;c=(1<<31-kt(42|e)+1)-1,c&=o&~(f&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Up(a,c))}else c=We,c=A(a,a===St?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||J(a,c)||(n=!0,Up(a,c));a=a.next}while(n);qc=!1}}function cv(){Dp()}function Dp(){Lr=Hc=!1;var e=0;_i!==0&&Ev()&&(e=_i);for(var t=it(),n=null,a=Dr;a!==null;){var o=a.next,c=Lp(a,t);c===0?(a.next=null,n===null?Dr=o:n.next=o,o===null&&(Al=n)):(n=a,(e!==0||(c&3)!==0)&&(Lr=!0)),a=o}Vt!==0&&Vt!==5||vs(e),_i!==0&&(_i=0)}function Lp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var f=31-kt(c),y=1<<f,w=o[f];w===-1?((y&n)===0||(y&a)!==0)&&(o[f]=he(y,t)):w<=t&&(e.expiredLanes|=y),c&=~y}if(t=St,n=We,n=A(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(pt===2||pt===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Wt(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||J(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Wt(a),Jn(n)){case 2:case 8:n=Ht;break;case 32:n=un;break;case 268435456:n=wn;break;default:n=un}return a=zp.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 zp(e,t){if(Vt!==0&&Vt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Cr()&&e.callbackNode!==n)return null;var a=We;return a=A(e,e===St?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(gp(e,a,t),Lp(e,it()),e.callbackNode!=null&&e.callbackNode===n?zp.bind(null,e):null)}function Up(e,t){if(Cr())return null;gp(e,t,!0)}function uv(){Sv(function(){(dt&6)!==0?Jt(bt,cv):Dp()})}function Gc(){if(_i===0){var e=dl;e===0&&(e=Ue,Ue<<=1,(Ue&261888)===0&&(Ue=256)),_i=e}return _i}function Bp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ze(""+e)}function Ip(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function fv(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Bp((o[an]||null).action),f=a.submitter;f&&(t=(t=f[an]||null)?Bp(t.formAction):f.getAttribute("formAction"),t!==null&&(c=t,f=null));var y=new Ks("action","action",null,a,o);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(_i!==0){var w=f?Ip(o,f):new FormData(o);oc(n,{pending:!0,data:w,method:o.method,action:c},null,w)}}else typeof c=="function"&&(y.preventDefault(),w=f?Ip(o,f):new FormData(o),oc(n,{pending:!0,data:w,method:o.method,action:c},c,w))},currentTarget:o}]})}}for(var $c=0;$c<xo.length;$c++){var Yc=xo[$c],dv=Yc.toLowerCase(),hv=Yc[0].toUpperCase()+Yc.slice(1);fa(dv,"on"+hv)}fa(md,"onAnimationEnd"),fa(gd,"onAnimationIteration"),fa(bd,"onAnimationStart"),fa("dblclick","onDoubleClick"),fa("focusin","onFocus"),fa("focusout","onBlur"),fa(Oy,"onTransitionRun"),fa(ky,"onTransitionStart"),fa(My,"onTransitionCancel"),fa(yd,"onTransitionEnd"),re("onMouseEnter",["mouseout","mouseover"]),re("onMouseLeave",["mouseout","mouseover"]),re("onPointerEnter",["pointerout","pointerover"]),re("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 Es="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),pv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Es));function jp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var f=a.length-1;0<=f;f--){var y=a[f],w=y.instance,$=y.currentTarget;if(y=y.listener,w!==c&&o.isPropagationStopped())break e;c=y,o.currentTarget=$;try{c(o)}catch(W){Xs(W)}o.currentTarget=null,c=w}else for(f=0;f<a.length;f++){if(y=a[f],w=y.instance,$=y.currentTarget,y=y.listener,w!==c&&o.isPropagationStopped())break e;c=y,o.currentTarget=$;try{c(o)}catch(W){Xs(W)}o.currentTarget=null,c=w}}}}function Qe(e,t){var n=t[Wn];n===void 0&&(n=t[Wn]=new Set);var a=e+"__bubble";n.has(a)||(Hp(t,e,2,!1),n.add(a))}function Fc(e,t,n){var a=0;t&&(a|=4),Hp(n,e,a,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Kc(e){if(!e[zr]){e[zr]=!0,Ma.forEach(function(n){n!=="selectionchange"&&(pv.has(n)||Fc(n,!1,e),Fc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zr]||(t[zr]=!0,Fc("selectionchange",!1,t))}}function Hp(e,t,n,a){switch(mm(t)){case 2:var o=Gv;break;case 8:o=$v;break;default:o=ru}n=o.bind(null,t,n,e),o=void 0,!fo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Pc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var y=a.stateNode.containerInfo;if(y===o)break;if(f===4)for(f=a.return;f!==null;){var w=f.tag;if((w===3||w===4)&&f.stateNode.containerInfo===o)return;f=f.return}for(;y!==null;){if(f=dn(y),f===null)return;if(w=f.tag,w===5||w===6||w===26||w===27){a=c=f;continue e}y=y.parentNode}}a=a.return}Gs(function(){var $=c,W=Ae(n),ie=[];e:{var K=vd.get(e);if(K!==void 0){var Z=Ks,Ee=e;switch(e){case"keypress":if(Ys(n)===0)break e;case"keydown":case"keyup":Z=ry;break;case"focusin":Ee="focus",Z=go;break;case"focusout":Ee="blur",Z=go;break;case"beforeblur":case"afterblur":Z=go;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Xb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=uy;break;case md:case gd:case bd:Z=Jb;break;case yd:Z=dy;break;case"scroll":case"scrollend":Z=Pb;break;case"wheel":Z=py;break;case"copy":case"cut":case"paste":Z=ey;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=Qf;break;case"toggle":case"beforetoggle":Z=gy}var Le=(t&4)!==0,Et=!Le&&(e==="scroll"||e==="scrollend"),U=Le?K!==null?K+"Capture":null:K;Le=[];for(var k=$,G;k!==null;){var ne=k;if(G=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||G===null||U===null||(ne=Gl(k,U),ne!=null&&Le.push(_s(k,ne,G))),Et)break;k=k.return}0<Le.length&&(K=new Z(K,Ee,null,n,W),ie.push({event:K,listeners:Le}))}}if((t&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",K&&n!==me&&(Ee=n.relatedTarget||n.fromElement)&&(dn(Ee)||Ee[st]))break e;if((Z||K)&&(K=W.window===W?W:(K=W.ownerDocument)?K.defaultView||K.parentWindow:window,Z?(Ee=n.relatedTarget||n.toElement,Z=$,Ee=Ee?dn(Ee):null,Ee!==null&&(Et=h(Ee),Le=Ee.tag,Ee!==Et||Le!==5&&Le!==27&&Le!==6)&&(Ee=null)):(Z=null,Ee=$),Z!==Ee)){if(Le=Zf,ne="onMouseLeave",U="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(Le=Qf,ne="onPointerLeave",U="onPointerEnter",k="pointer"),Et=Z==null?K:Ea(Z),G=Ee==null?K:Ea(Ee),K=new Le(ne,k+"leave",Z,n,W),K.target=Et,K.relatedTarget=G,ne=null,dn(W)===$&&(Le=new Le(U,k+"enter",Ee,n,W),Le.target=G,Le.relatedTarget=Et,ne=Le),Et=ne,Z&&Ee)t:{for(Le=mv,U=Z,k=Ee,G=0,ne=U;ne;ne=Le(ne))G++;ne=0;for(var Me=k;Me;Me=Le(Me))ne++;for(;0<G-ne;)U=Le(U),G--;for(;0<ne-G;)k=Le(k),ne--;for(;G--;){if(U===k||k!==null&&U===k.alternate){Le=U;break t}U=Le(U),k=Le(k)}Le=null}else Le=null;Z!==null&&qp(ie,K,Z,Le,!1),Ee!==null&&Et!==null&&qp(ie,Et,Ee,Le,!0)}}e:{if(K=$?Ea($):window,Z=K.nodeName&&K.nodeName.toLowerCase(),Z==="select"||Z==="input"&&K.type==="file")var ct=id;else if(nd(K))if(ld)ct=wy;else{ct=Ny;var Te=Ty}else Z=K.nodeName,!Z||Z.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?$&&ye($.elementType)&&(ct=id):ct=xy;if(ct&&(ct=ct(e,$))){ad(ie,ct,n,W);break e}Te&&Te(e,K,$),e==="focusout"&&$&&K.type==="number"&&$.memoizedProps.value!=null&&ii(K,"number",K.value)}switch(Te=$?Ea($):window,e){case"focusin":(nd(Te)||Te.contentEditable==="true")&&(il=Te,So=$,Ql=null);break;case"focusout":Ql=So=il=null;break;case"mousedown":To=!0;break;case"contextmenu":case"mouseup":case"dragend":To=!1,hd(ie,n,W);break;case"selectionchange":if(Ry)break;case"keydown":case"keyup":hd(ie,n,W)}var $e;if(yo)e:{switch(e){case"compositionstart":var et="onCompositionStart";break e;case"compositionend":et="onCompositionEnd";break e;case"compositionupdate":et="onCompositionUpdate";break e}et=void 0}else al?ed(e,n)&&(et="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(et="onCompositionStart");et&&(Vf&&n.locale!=="ko"&&(al||et!=="onCompositionStart"?et==="onCompositionEnd"&&al&&($e=Kf()):(li=W,ho="value"in li?li.value:li.textContent,al=!0)),Te=Ur($,et),0<Te.length&&(et=new Xf(et,e,null,n,W),ie.push({event:et,listeners:Te}),$e?et.data=$e:($e=td(n),$e!==null&&(et.data=$e)))),($e=yy?vy(e,n):Ey(e,n))&&(et=Ur($,"onBeforeInput"),0<et.length&&(Te=new Xf("onBeforeInput","beforeinput",null,n,W),ie.push({event:Te,listeners:et}),Te.data=$e)),fv(ie,e,$,n,W)}jp(ie,t)})}function _s(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Gl(e,n),o!=null&&a.unshift(_s(e,o,c)),o=Gl(e,t),o!=null&&a.push(_s(e,o,c))),e.tag===3)return a;e=e.return}return[]}function mv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qp(e,t,n,a,o){for(var c=t._reactName,f=[];n!==null&&n!==a;){var y=n,w=y.alternate,$=y.stateNode;if(y=y.tag,w!==null&&w===a)break;y!==5&&y!==26&&y!==27||$===null||(w=$,o?($=Gl(n,c),$!=null&&f.unshift(_s(n,$,w))):o||($=Gl(n,c),$!=null&&f.push(_s(n,$,w)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var gv=/\r\n?/g,bv=/\u0000|\uFFFD/g;function Gp(e){return(typeof e=="string"?e:""+e).replace(gv,`
|
|
49
|
-
`).replace(bv,"")}function $p(e,t){return t=Gp(t),Gp(e)===t}function 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":Q(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=Ze(""+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=Ze(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=se);break;case"onScroll":a!=null&&Qe("scroll",e);break;case"onScrollEnd":a!=null&&Qe("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=Ze(""+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":Qe("beforetoggle",e),Qe("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=_e.get(n)||n,qt(e,n,a))}}function Zc(e,t,n,a,o,c){switch(n){case"style":Q(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&&Qe("scroll",e);break;case"onScrollEnd":a!=null&&Qe("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":Qe("error",e),Qe("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:vt(e,t,c,f,n,null)}}o&&vt(e,t,"srcSet",n.srcSet,n,null),a&&vt(e,t,"src",n.src,n,null);return;case"input":Qe("invalid",e);var y=c=f=o=null,w=null,$=null;for(a in n)if(n.hasOwnProperty(a)){var W=n[a];if(W!=null)switch(a){case"name":o=W;break;case"type":f=W;break;case"checked":w=W;break;case"defaultChecked":$=W;break;case"value":c=W;break;case"defaultValue":y=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(l(137,t));break;default:vt(e,t,a,W,n,null)}}Da(e,c,y,w,$,f,o,!1);return;case"select":Qe("invalid",e),a=f=c=null;for(o in n)if(n.hasOwnProperty(o)&&(y=n[o],y!=null))switch(o){case"value":c=y;break;case"defaultValue":f=y;break;case"multiple":a=y;default:vt(e,t,o,y,n,null)}t=c,n=f,e.multiple=!!a,t!=null?Gt(e,!!a,t,!1):n!=null&&Gt(e,!!a,n,!0);return;case"textarea":Qe("invalid",e),c=o=a=null;for(f in n)if(n.hasOwnProperty(f)&&(y=n[f],y!=null))switch(f){case"value":a=y;break;case"defaultValue":o=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(l(91));break;default:vt(e,t,f,y,n,null)}Sa(e,a,o,c);return;case"option":for(w in n)if(n.hasOwnProperty(w)&&(a=n[w],a!=null))switch(w){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:vt(e,t,w,a,n,null)}return;case"dialog":Qe("beforetoggle",e),Qe("toggle",e),Qe("cancel",e),Qe("close",e);break;case"iframe":case"object":Qe("load",e);break;case"video":case"audio":for(a=0;a<Es.length;a++)Qe(Es[a],e);break;case"image":Qe("error",e),Qe("load",e);break;case"details":Qe("toggle",e);break;case"embed":case"source":case"link":Qe("error",e),Qe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in n)if(n.hasOwnProperty($)&&(a=n[$],a!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:vt(e,t,$,a,n,null)}return;default:if(ye(t)){for(W in n)n.hasOwnProperty(W)&&(a=n[W],a!==void 0&&Zc(e,t,W,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&vt(e,t,y,a,n,null))}function yv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,f=null,y=null,w=null,$=null,W=null;for(Z in n){var ie=n[Z];if(n.hasOwnProperty(Z)&&ie!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":w=ie;default:a.hasOwnProperty(Z)||vt(e,t,Z,null,a,ie)}}for(var K in a){var Z=a[K];if(ie=n[K],a.hasOwnProperty(K)&&(Z!=null||ie!=null))switch(K){case"type":c=Z;break;case"name":o=Z;break;case"checked":$=Z;break;case"defaultChecked":W=Z;break;case"value":f=Z;break;case"defaultValue":y=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(l(137,t));break;default:Z!==ie&&vt(e,t,K,Z,a,ie)}}ai(e,f,y,w,$,W,c,o);return;case"select":Z=f=y=K=null;for(c in n)if(w=n[c],n.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":Z=w;default:a.hasOwnProperty(c)||vt(e,t,c,null,a,w)}for(o in a)if(c=a[o],w=n[o],a.hasOwnProperty(o)&&(c!=null||w!=null))switch(o){case"value":K=c;break;case"defaultValue":y=c;break;case"multiple":f=c;default:c!==w&&vt(e,t,o,c,a,w)}t=y,n=f,a=Z,K!=null?Gt(e,!!n,K,!1):!!a!=!!n&&(t!=null?Gt(e,!!n,t,!0):Gt(e,!!n,n?[]:"",!1));return;case"textarea":Z=K=null;for(y in n)if(o=n[y],n.hasOwnProperty(y)&&o!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:vt(e,t,y,null,a,o)}for(f in a)if(o=a[f],c=n[f],a.hasOwnProperty(f)&&(o!=null||c!=null))switch(f){case"value":K=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,f,o,a,c)}La(e,K,Z);return;case"option":for(var Ee in n)if(K=n[Ee],n.hasOwnProperty(Ee)&&K!=null&&!a.hasOwnProperty(Ee))switch(Ee){case"selected":e.selected=!1;break;default:vt(e,t,Ee,null,a,K)}for(w in a)if(K=a[w],Z=n[w],a.hasOwnProperty(w)&&K!==Z&&(K!=null||Z!=null))switch(w){case"selected":e.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:vt(e,t,w,K,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 Le in n)K=n[Le],n.hasOwnProperty(Le)&&K!=null&&!a.hasOwnProperty(Le)&&vt(e,t,Le,null,a,K);for($ in a)if(K=a[$],Z=n[$],a.hasOwnProperty($)&&K!==Z&&(K!=null||Z!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(l(137,t));break;default:vt(e,t,$,K,a,Z)}return;default:if(ye(t)){for(var Et in n)K=n[Et],n.hasOwnProperty(Et)&&K!==void 0&&!a.hasOwnProperty(Et)&&Zc(e,t,Et,void 0,a,K);for(W in a)K=a[W],Z=n[W],!a.hasOwnProperty(W)||K===Z||K===void 0&&Z===void 0||Zc(e,t,W,K,a,Z);return}}for(var U in n)K=n[U],n.hasOwnProperty(U)&&K!=null&&!a.hasOwnProperty(U)&&vt(e,t,U,null,a,K);for(ie in a)K=a[ie],Z=n[ie],!a.hasOwnProperty(ie)||K===Z||K==null&&Z==null||vt(e,t,ie,K,a,Z)}function Yp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,f=o.initiatorType,y=o.duration;if(c&&y&&Yp(f)){for(f=0,y=o.responseEnd,a+=1;a<n.length;a++){var w=n[a],$=w.startTime;if($>y)break;var W=w.transferSize,ie=w.initiatorType;W&&Yp(ie)&&(w=w.responseEnd,f+=W*(w<y?1:(y-$)/(w-$)))}if(--a,t+=8*(c+f)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Xc=null,Qc=null;function Br(e){return e.nodeType===9?e:e.ownerDocument}function Fp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Vc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jc=null;function Ev(){var e=window.event;return e&&e.type==="popstate"?e===Jc?!1:(Jc=e,!0):(Jc=null,!1)}var Pp=typeof setTimeout=="function"?setTimeout:void 0,_v=typeof clearTimeout=="function"?clearTimeout:void 0,Zp=typeof Promise=="function"?Promise:void 0,Sv=typeof queueMicrotask=="function"?queueMicrotask:typeof Zp<"u"?function(e){return Zp.resolve(null).then(e).catch(Tv)}:Pp;function Tv(e){setTimeout(function(){throw e})}function Si(e){return e==="head"}function Xp(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Ml(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ss(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ss(n);for(var c=n.firstChild;c;){var f=c.nextSibling,y=c.nodeName;c[va]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&Ss(e.ownerDocument.body);n=o}while(n);Ml(t)}function Qp(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Wc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Wc(n),ei(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Nv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[va])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ra(e.nextSibling),e===null)break}return null}function xv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ra(e.nextSibling),e===null))return null;return e}function Vp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ra(e.nextSibling),e===null))return null;return e}function eu(e){return e.data==="$?"||e.data==="$~"}function tu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function ra(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var nu=null;function Jp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ra(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Wp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function em(e,t,n){switch(t=Br(n),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Ss(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ei(e)}var oa=new Map,tm=new Set;function Ir(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qa=le.d;le.d={f:Av,r:Rv,D:Ov,C:kv,L:Mv,m:Cv,X:Lv,S:Dv,M:zv};function Av(){var e=Qa.f(),t=Or();return e||t}function Rv(e){var t=ca(e);t!==null&&t.tag===5&&t.type==="form"?yh(t):Qa.r(e)}var Rl=typeof document>"u"?null:document;function nm(e,t,n){var a=Rl;if(a&&typeof t=="string"&&t){var o=Sn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),tm.has(o)||(tm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),gn(t,"link",e),ht(t),a.head.appendChild(t)))}}function Ov(e){Qa.D(e),nm("dns-prefetch",e,null)}function kv(e,t){Qa.C(e,t),nm("preconnect",e,t)}function Mv(e,t,n){Qa.L(e,t,n);var a=Rl;if(a&&e&&t){var o='link[rel="preload"][as="'+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=Ol(e);break;case"script":c=kl(e)}oa.has(c)||(e=E({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),oa.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(Ns(c))||(t=a.createElement("link"),gn(t,"link",e),ht(t),a.head.appendChild(t)))}}function Cv(e,t){Qa.m(e,t);var n=Rl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Sn(a)+'"][href="'+Sn(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=kl(e)}if(!oa.has(c)&&(e=E({rel:"modulepreload",href:e},t),oa.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ns(c)))return}a=n.createElement("link"),gn(a,"link",e),ht(a),n.head.appendChild(a)}}}function Dv(e,t,n){Qa.S(e,t,n);var a=Rl;if(a&&e){var o=_a(a).hoistableStyles,c=Ol(e);t=t||"default";var f=o.get(c);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(Ts(c)))y.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},n),(n=oa.get(c))&&au(e,n);var w=f=a.createElement("link");ht(w),gn(w,"link",e),w._p=new Promise(function($,W){w.onload=$,w.onerror=W}),w.addEventListener("load",function(){y.loading|=1}),w.addEventListener("error",function(){y.loading|=2}),y.loading|=4,jr(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:y},o.set(c,f)}}}function Lv(e,t){Qa.X(e,t);var n=Rl;if(n&&e){var a=_a(n).hoistableScripts,o=kl(e),c=a.get(o);c||(c=n.querySelector(Ns(o)),c||(e=E({src:e,async:!0},t),(t=oa.get(o))&&iu(e,t),c=n.createElement("script"),ht(c),gn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function zv(e,t){Qa.M(e,t);var n=Rl;if(n&&e){var a=_a(n).hoistableScripts,o=kl(e),c=a.get(o);c||(c=n.querySelector(Ns(o)),c||(e=E({src:e,async:!0,type:"module"},t),(t=oa.get(o))&&iu(e,t),c=n.createElement("script"),ht(c),gn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function am(e,t,n,a){var o=(o=Re.current)?Ir(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ol(n.href),n=_a(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ol(n.href);var c=_a(o).hoistableStyles,f=c.get(e);if(f||(o=o.ownerDocument||o,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=o.querySelector(Ts(e)))&&!c._p&&(f.instance=c,f.state.loading=5),oa.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},oa.set(e,n),c||Uv(o,e,n,f.state))),t&&a===null)throw Error(l(528,""));return f}if(t&&a!==null)throw Error(l(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=kl(n),n=_a(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Ol(e){return'href="'+Sn(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function im(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function Uv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),gn(t,"link",n),ht(t),e.head.appendChild(t))}function kl(e){return'[src="'+Sn(e)+'"]'}function Ns(e){return"script[async]"+e}function lm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Sn(n.href)+'"]');if(a)return t.instance=a,ht(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"),ht(a),gn(a,"style",o),jr(a,n.precedence,e),t.instance=a;case"stylesheet":o=Ol(n.href);var c=e.querySelector(Ts(o));if(c)return t.state.loading|=4,t.instance=c,ht(c),c;a=im(n),(o=oa.get(o))&&au(a,o),c=(e.ownerDocument||e).createElement("link"),ht(c);var f=c;return f._p=new Promise(function(y,w){f.onload=y,f.onerror=w}),gn(c,"link",a),t.state.loading|=4,jr(c,n.precedence,e),t.instance=c;case"script":return c=kl(n.src),(o=e.querySelector(Ns(c)))?(t.instance=o,ht(o),o):(a=n,(o=oa.get(c))&&(a=E({},n),iu(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),ht(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,jr(a,n.precedence,e));return t.instance}function jr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,f=0;f<a.length;f++){var y=a[f];if(y.dataset.precedence===t)c=y;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function au(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function iu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hr=null;function sm(e,t,n){if(Hr===null){var a=new Map,o=Hr=new Map;o.set(n,a)}else o=Hr,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[va]||c[Mt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(t)||"";f=e+f;var y=a.get(f);y?y.push(c):a.set(f,[c])}}return a}function rm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Bv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function om(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Iv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ol(a.href),c=t.querySelector(Ts(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ht(c);return}c=t.ownerDocument||t,a=im(a),(o=oa.get(o))&&au(a,o),c=c.createElement("link"),ht(c);var f=c;f._p=new Promise(function(y,w){f.onload=y,f.onerror=w}),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 lu=0;function jv(e,t){return e.stylesheets&&e.count===0&&$r(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&$r(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&lu===0&&(lu=62500*vv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$r(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>lu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function qr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$r(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gr=null;function $r(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gr=new Map,t.forEach(Hv,e),Gr=null,qr.call(e))}function Hv(e,t){if(!(t.state.loading&4)){var n=Gr.get(e);if(n)var a=n.get(null);else{n=new Map,Gr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var f=o[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}o=t.instance,f=o.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,o),n.set(f,o),this.count++,a=qr.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var xs={$$typeof:M,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function qv(e,t,n,a,o,c,f,y,w){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=Fe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fe(0),this.hiddenUpdates=Fe(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function cm(e,t,n,a,o,c,f,y,w,$,W,ie){return e=new qv(e,t,n,f,w,$,W,ie,y),t=1,c===!0&&(t|=24),c=Fn(3,null,null,t),e.current=c,c.stateNode=e,t=Io(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},Go(c),e}function um(e){return e?(e=rl,e):rl}function fm(e,t,n,a,o,c){o=um(o),a.context===null?a.context=o:a.pendingContext=o,a=fi(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=di(e,a,t),n!==null&&(qn(n,e,t),as(n,e,t))}function dm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function su(e,t){dm(e,t),(e=e.alternate)&&dm(e,t)}function hm(e){if(e.tag===13||e.tag===31){var t=Ui(e,67108864);t!==null&&qn(t,e,67108864),su(e,67108864)}}function pm(e){if(e.tag===13||e.tag===31){var t=Qn();t=ft(t);var n=Ui(e,t);n!==null&&qn(n,e,t),su(e,t)}}var Yr=!0;function Gv(e,t,n,a){var o=I.T;I.T=null;var c=le.p;try{le.p=2,ru(e,t,n,a)}finally{le.p=c,I.T=o}}function $v(e,t,n,a){var o=I.T;I.T=null;var c=le.p;try{le.p=8,ru(e,t,n,a)}finally{le.p=c,I.T=o}}function ru(e,t,n,a){if(Yr){var o=ou(a);if(o===null)Pc(e,t,a,Fr,n),gm(e,a);else if(Fv(o,e,t,n,a))a.stopPropagation();else if(gm(e,a),t&4&&-1<Yv.indexOf(e)){for(;o!==null;){var c=ca(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=zt(c.pendingLanes);if(f!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var w=1<<31-kt(f);y.entanglements[1]|=w,f&=~w}wa(c),(dt&6)===0&&(Ar=it()+500,vs(0))}}break;case 31:case 13:y=Ui(c,2),y!==null&&qn(y,c,2),Or(),su(c,2)}if(c=ou(a),c===null&&Pc(e,t,a,Fr,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else Pc(e,t,a,null,n)}}function ou(e){return e=Ae(e),cu(e)}var Fr=null;function cu(e){if(Fr=null,e=dn(e),e!==null){var t=h(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=g(t),e!==null)return e;e=null}else if(n===31){if(e=v(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Fr=e,null}function mm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(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 uu=!1,Ti=null,Ni=null,xi=null,ws=new Map,As=new Map,wi=[],Yv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function gm(e,t){switch(e){case"focusin":case"focusout":Ti=null;break;case"dragenter":case"dragleave":Ni=null;break;case"mouseover":case"mouseout":xi=null;break;case"pointerover":case"pointerout":ws.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":As.delete(t.pointerId)}}function Rs(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ca(t),t!==null&&hm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Fv(e,t,n,a,o){switch(t){case"focusin":return Ti=Rs(Ti,e,t,n,a,o),!0;case"dragenter":return Ni=Rs(Ni,e,t,n,a,o),!0;case"mouseover":return xi=Rs(xi,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return ws.set(c,Rs(ws.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,As.set(c,Rs(As.get(c)||null,e,t,n,a,o)),!0}return!1}function bm(e){var t=dn(e.target);if(t!==null){var n=h(t);if(n!==null){if(t=n.tag,t===13){if(t=g(n),t!==null){e.blockedOn=t,Ja(e.priority,function(){pm(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,Ja(e.priority,function(){pm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Kr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ou(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);me=a,n.target.dispatchEvent(a),me=null}else return t=ca(n),t!==null&&hm(t),e.blockedOn=n,!1;t.shift()}return!0}function ym(e,t,n){Kr(e)&&n.delete(t)}function Kv(){uu=!1,Ti!==null&&Kr(Ti)&&(Ti=null),Ni!==null&&Kr(Ni)&&(Ni=null),xi!==null&&Kr(xi)&&(xi=null),ws.forEach(ym),As.forEach(ym)}function Pr(e,t){e.blockedOn===t&&(e.blockedOn=null,uu||(uu=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Kv)))}var Zr=null;function vm(e){Zr!==e&&(Zr=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Zr===e&&(Zr=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(cu(a||n)===null)continue;break}var c=ca(n);c!==null&&(e.splice(t,3),t-=3,oc(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Ml(e){function t(w){return Pr(w,e)}Ti!==null&&Pr(Ti,e),Ni!==null&&Pr(Ni,e),xi!==null&&Pr(xi,e),ws.forEach(t),As.forEach(t);for(var n=0;n<wi.length;n++){var a=wi[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<wi.length&&(n=wi[0],n.blockedOn===null);)bm(n),n.blockedOn===null&&wi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],f=o[an]||null;if(typeof c=="function")f||vm(n);else if(f){var y=null;if(c&&c.hasAttribute("formAction")){if(o=c,f=c[an]||null)y=f.formAction;else if(cu(o)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),vm(n)}}}function Em(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return o=f})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function fu(e){this._internalRoot=e}Xr.prototype.render=fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,a=Qn();fm(n,a,e,t,null,null)},Xr.prototype.unmount=fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fm(e.current,2,null,e,null,null),Or(),t[st]=null}};function Xr(e){this._internalRoot=e}Xr.prototype.unstable_scheduleHydration=function(e){if(e){var t=ya();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wi.length&&t!==0&&t<wi[n].priority;n++);wi.splice(n,0,e),n===0&&bm(e)}};var _m=i.version;if(_m!=="19.2.8")throw Error(l(527,_m,"19.2.8"));le.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Pv={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef: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(Pv),Ot=Qr}catch{}}return ks.createRoot=function(e,t){if(!u(e))throw Error(l(299));var n=!1,a="",o=Rh,c=Oh,f=kh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=cm(e,1,!1,null,null,n,a,null,o,c,f,Em),e[st]=t.current,Kc(e),new fu(t)},ks.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var a=!1,o="",c=Rh,f=Oh,y=kh,w=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(w=n.formState)),t=cm(e,1,!0,t,n??null,a,o,w,c,f,y,Em),t.context=um(null),n=t.current,a=Qn(),a=ft(a),o=fi(a),o.callback=null,di(n,o,a),n=a,t.current.lanes=n,Pe(t,n),wa(t),e[st]=t.current,Kc(e),new Xr(t)},ks.version="19.2.8",ks}var Mm;function lE(){if(Mm)return pu.exports;Mm=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),pu.exports=iE(),pu.exports}var sE=lE(),Pt;(function(s){s.INSERT="insert",s.DELETE="delete",s.CONTEXT="context"})(Pt||(Pt={}));const rE={LINE_BY_LINE:"line-by-line"},oE={NONE:"none"},cE={WORD:"word"};var Bl;(function(s){s.AUTO="auto",s.DARK="dark",s.LIGHT="light"})(Bl||(Bl={}));const uE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],fE=RegExp("["+uE.join("\\")+"]","g");function dE(s){return s.replace(fE,"\\$&")}function Cm(s){return s&&s.replace(/\\/g,"/")}function hE(s){let i,r,l,u=0;for(i=0,l=s.length;i<l;i++)r=s.charCodeAt(i),u=(u<<5)-u+r,u|=0;return u}function pb(s){const i=s.length;let r=-1/0;for(let l=0;l<i;l++)r=Math.max(r,s[l]);return r}function Dm(s,i){const r=s.split(".");return r.length>1?r[r.length-1]:i}function Lm(s,i){return i.reduce((r,l)=>r||s.startsWith(l),!1)}const zm=["a/","b/","i/","w/","c/","o/"];function ki(s,i,r){const l=r!==void 0?[...zm,r]:zm,u=i?new RegExp(`^${dE(i)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,h=""]=u.exec(s)||[],g=l.find(m=>h.indexOf(m)===0);return(g?h.slice(g.length):h).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function pE(s,i){return ki(s,"---",i)}function mE(s,i){return ki(s,"+++",i)}function gE(s,i={}){const r=[];let l=null,u=null,h=null,g=null,v=null,m=null,p=null;const b="--- ",E="+++ ",_="@@",N=/^old mode (\d{6})/,x=/^new mode (\d{6})/,C=/^deleted file mode (\d{6})/,R=/^new file mode (\d{6})/,j=/^copy from "?(.+)"?/,B=/^copy to "?(.+)"?/,M=/^rename from "?(.+)"?/,ee=/^rename to "?(.+)"?/,H=/^similarity index (\d+)%/,te=/^dissimilarity index (\d+)%/,ae=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,O=/^Binary files (.*) and (.*) differ/,q=/^GIT binary patch/,V=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,F=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,oe=/^new file mode (\d{6})/,be=/^deleted file mode (\d{6}),(\d{6})/,Ne=s.replace(/\/g,"").replace(/\r\n?/g,`
|
|
50
|
-
`).split(`
|
|
51
|
-
`);function ge(){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 le(){ge(),I(),l={blocks:[],deletedLines:0,addedLines:0}}function de(T){ge();let z;l!==null&&((z=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(T))?(l.isCombined=!1,h=parseInt(z[1],10),v=parseInt(z[2],10)):(z=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(T))?(l.isCombined=!0,h=parseInt(z[1],10),g=parseInt(z[2],10),v=parseInt(z[3],10)):(T.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),h=0,v=0,l.isCombined=!1)),u={lines:[],oldStartLine:h,oldStartLine2:g,newStartLine:v,header:T}}function Se(T){if(l===null||u===null||h===null||v===null)return;const z={content:T},Y=l.isCombined?["+ "," +","++"]:["+"],fe=l.isCombined?["- "," -","--"]:["-"];Lm(T,Y)?(l.addedLines++,z.type=Pt.INSERT,z.oldNumber=void 0,z.newNumber=v++):Lm(T,fe)?(l.deletedLines++,z.type=Pt.DELETE,z.oldNumber=h++,z.newNumber=void 0):(z.type=Pt.CONTEXT,z.oldNumber=h++,z.newNumber=v++),u.lines.push(z)}function Be(T,z){let Y=z;for(;Y<Ne.length-3;){if(T.startsWith("diff"))return!1;if(Ne[Y].startsWith(b)&&Ne[Y+1].startsWith(E)&&Ne[Y+2].startsWith(_))return!0;Y++}return!1}return Ne.forEach((T,z)=>{if(!T||T.startsWith("*"))return;let Y;const fe=Ne[z-1],ve=Ne[z+1],Re=Ne[z+2];if(T.startsWith("diff --git")||T.startsWith("diff --combined")){if(le(),(Y=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(T))&&(m=ki(Y[1],void 0,i.dstPrefix),p=ki(Y[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isGitDiff=!0;return}if(T.startsWith("Binary files")&&!(l!=null&&l.isGitDiff)){if(le(),(Y=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(T))&&(m=ki(Y[1],void 0,i.dstPrefix),p=ki(Y[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isBinary=!0;return}if((!l||!l.isGitDiff&&l&&T.startsWith(b)&&ve.startsWith(E)&&Re.startsWith(_))&&le(),l!=null&&l.isTooBig)return;if(l&&(typeof i.diffMaxChanges=="number"&&l.addedLines+l.deletedLines>i.diffMaxChanges||typeof i.diffMaxLineLength=="number"&&T.length>i.diffMaxLineLength)){l.isTooBig=!0,l.addedLines=0,l.deletedLines=0,l.blocks=[],u=null;const Ce=typeof i.diffTooBigMessage=="function"?i.diffTooBigMessage(r.length):"Diff too big to be displayed";de(Ce);return}if(T.startsWith(b)&&ve.startsWith(E)||T.startsWith(E)&&fe.startsWith(b)){if(l&&!l.oldName&&T.startsWith("--- ")&&(Y=pE(T,i.srcPrefix))){l.oldName=Y,l.language=Dm(l.oldName,l.language);return}if(l&&!l.newName&&T.startsWith("+++ ")&&(Y=mE(T,i.dstPrefix))){l.newName=Y,l.language=Dm(l.newName,l.language);return}}if(l&&(T.startsWith(_)||l.isGitDiff&&l.oldName&&l.newName&&!u)){de(T);return}if(u&&(T.startsWith("+")||T.startsWith("-")||T.startsWith(" "))){Se(T);return}const pe=!Be(T,z);if(l===null)throw new Error("Where is my file !!!");(Y=N.exec(T))?l.oldMode=Y[1]:(Y=x.exec(T))?l.newMode=Y[1]:(Y=C.exec(T))?(l.deletedFileMode=Y[1],l.isDeleted=!0):(Y=R.exec(T))?(l.newFileMode=Y[1],l.isNew=!0):(Y=j.exec(T))?(pe&&(l.oldName=Y[1]),l.isCopy=!0):(Y=B.exec(T))?(pe&&(l.newName=Y[1]),l.isCopy=!0):(Y=M.exec(T))?(pe&&(l.oldName=Y[1]),l.isRename=!0):(Y=ee.exec(T))?(pe&&(l.newName=Y[1]),l.isRename=!0):(Y=O.exec(T))?(l.isBinary=!0,l.oldName=ki(Y[1],void 0,i.srcPrefix),l.newName=ki(Y[2],void 0,i.dstPrefix),de("Binary file")):q.test(T)?(l.isBinary=!0,de(T)):(Y=H.exec(T))?l.unchangedPercentage=parseInt(Y[1],10):(Y=te.exec(T))?l.changedPercentage=parseInt(Y[1],10):(Y=ae.exec(T))?(l.checksumBefore=Y[1],l.checksumAfter=Y[2],Y[3]&&(l.mode=Y[3])):(Y=V.exec(T))?(l.checksumBefore=[Y[2],Y[3]],l.checksumAfter=Y[1]):(Y=F.exec(T))?(l.oldMode=[Y[2],Y[3]],l.newMode=Y[1]):(Y=oe.exec(T))?(l.newFileMode=Y[1],l.isNew=!0):(Y=be.exec(T))&&(l.deletedFileMode=Y[1],l.isDeleted=!0)}),ge(),I(),r}class mb{diff(i,r,l={}){let u;typeof l=="function"?(u=l,l={}):"callback"in l&&(u=l.callback);const h=this.castInput(i,l),g=this.castInput(r,l),v=this.removeEmpty(this.tokenize(h,l)),m=this.removeEmpty(this.tokenize(g,l));return this.diffWithOptionsObj(v,m,l,u)}diffWithOptionsObj(i,r,l,u){var h;const g=B=>{if(B=this.postProcess(B,l),u){setTimeout(function(){u(B)},0);return}else return B},v=r.length,m=i.length;let p=1,b=v+m;l.maxEditLength!=null&&(b=Math.min(b,l.maxEditLength));const E=(h=l.timeout)!==null&&h!==void 0?h:1/0,_=Date.now()+E,N=[{oldPos:-1,lastComponent:void 0}];let x=this.extractCommon(N[0],r,i,0,l);if(N[0].oldPos+1>=m&&x+1>=v)return g(this.buildValues(N[0].lastComponent,r,i));let C=-1/0,R=1/0;const j=()=>{for(let B=Math.max(C,-p);B<=Math.min(R,p);B+=2){let M;const ee=N[B-1],H=N[B+1];ee&&(N[B-1]=void 0);let te=!1;if(H){const O=H.oldPos-B;te=H&&0<=O&&O<v}const ae=ee&&ee.oldPos+1<m;if(!te&&!ae){N[B]=void 0;continue}if(!ae||te&&ee.oldPos<H.oldPos?M=this.addToPath(H,!0,!1,0,l):M=this.addToPath(ee,!1,!0,1,l),x=this.extractCommon(M,r,i,B,l),M.oldPos+1>=m&&x+1>=v)return g(this.buildValues(M.lastComponent,r,i))||!0;N[B]=M,M.oldPos+1>=m&&(R=Math.min(R,B-1)),x+1>=v&&(C=Math.max(C,B+1))}p++};if(u)(function B(){setTimeout(function(){if(p>b||Date.now()>_)return u(void 0);j()||B()},0)})();else for(;p<=b&&Date.now()<=_;){const B=j();if(B)return B}}addToPath(i,r,l,u,h){const g=i.lastComponent;return g&&!h.oneChangePerToken&&g.added===r&&g.removed===l?{oldPos:i.oldPos+u,lastComponent:{count:g.count+1,added:r,removed:l,previousComponent:g.previousComponent}}:{oldPos:i.oldPos+u,lastComponent:{count:1,added:r,removed:l,previousComponent:g}}}extractCommon(i,r,l,u,h){const g=r.length,v=l.length;let m=i.oldPos,p=m-u,b=0;for(;p+1<g&&m+1<v&&this.equals(l[m+1],r[p+1],h);)p++,m++,b++,h.oneChangePerToken&&(i.lastComponent={count:1,previousComponent:i.lastComponent,added:!1,removed:!1});return b&&!h.oneChangePerToken&&(i.lastComponent={count:b,previousComponent:i.lastComponent,added:!1,removed:!1}),i.oldPos=m,p}equals(i,r,l){return l.comparator?l.comparator(i,r):i===r||!!l.ignoreCase&&i.toLowerCase()===r.toLowerCase()}removeEmpty(i){const r=[];for(let l=0;l<i.length;l++)i[l]&&r.push(i[l]);return r}castInput(i,r){return i}tokenize(i,r){return Array.from(i)}join(i){return i.join("")}postProcess(i,r){return i}get useLongestToken(){return!1}buildValues(i,r,l){const u=[];let h;for(;i;)u.push(i),h=i.previousComponent,delete i.previousComponent,i=h;u.reverse();const g=u.length;let v=0,m=0,p=0;for(;v<g;v++){const b=u[v];if(b.removed)b.value=this.join(l.slice(p,p+b.count)),p+=b.count;else{if(!b.added&&this.useLongestToken){let E=r.slice(m,m+b.count);E=E.map(function(_,N){const x=l[p+N];return x.length>_.length?x:_}),b.value=this.join(E)}else b.value=this.join(r.slice(m,m+b.count));m+=b.count,b.added||(p+=b.count)}}return u}}class bE extends mb{}const yE=new bE;function vE(s,i,r){return yE.diff(s,i,r)}const Um="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class EE extends mb{tokenize(i){const r=new RegExp(`(\\r?\\n)|[${Um}]+|[^\\S\\n\\r]+|[^${Um}]`,"ug");return i.match(r)||[]}}const _E=new EE;function SE(s,i,r){return _E.diff(s,i,r)}function TE(s,i){if(s.length===0)return i.length;if(i.length===0)return s.length;const r=[];let l;for(l=0;l<=i.length;l++)r[l]=[l];let u;for(u=0;u<=s.length;u++)r[0][u]=u;for(l=1;l<=i.length;l++)for(u=1;u<=s.length;u++)i.charAt(l-1)===s.charAt(u-1)?r[l][u]=r[l-1][u-1]:r[l][u]=Math.min(r[l-1][u-1]+1,Math.min(r[l][u-1]+1,r[l-1][u]+1));return r[i.length][s.length]}function Mf(s){return(i,r)=>{const l=s(i).trim(),u=s(r).trim();return TE(l,u)/(l.length+u.length)}}function Cf(s){function i(l,u,h=new Map){let g=1/0,v;for(let m=0;m<l.length;++m)for(let p=0;p<u.length;++p){const b=JSON.stringify([l[m],u[p]]);let E;h.has(b)&&(E=h.get(b))||(E=s(l[m],u[p]),h.set(b,E)),E<g&&(g=E,v={indexA:m,indexB:p,score:g})}return v}function r(l,u,h=0,g=new Map){const v=i(l,u,g);if(!v||l.length+u.length<3)return[[l,u]];const m=l.slice(0,v.indexA),p=u.slice(0,v.indexB),b=[l[v.indexA]],E=[u[v.indexB]],_=v.indexA+1,N=v.indexB+1,x=l.slice(_),C=u.slice(N),R=r(m,p,h+1,g),j=r(b,E,h+1,g),B=r(x,C,h+1,g);let M=j;return(v.indexA>0||v.indexB>0)&&(M=R.concat(M)),(l.length>_||u.length>N)&&(M=M.concat(B)),M}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"},ro={matching:oE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:cE.WORD,colorScheme:Bl.LIGHT},Aa="/",gb=Mf(s=>s.value),NE=Cf(gb);function yu(s){return s.indexOf("dev/null")!==-1}function xE(s){return s.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function wE(s){return s.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function no(s){switch(s){case Pt.CONTEXT:return kn.CONTEXT;case Pt.INSERT:return kn.INSERTS;case Pt.DELETE:return kn.DELETES}}function Df(s){switch(s){case Bl.DARK:return"d2h-dark-color-scheme";case Bl.AUTO:return"d2h-auto-color-scheme";case Bl.LIGHT:default:return"d2h-light-color-scheme"}}function AE(s){return s?2:1}function Il(s){return s.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function Oa(s,i,r=!0){const l=AE(i);return{prefix:s.substring(0,l),content:r?Il(s.substring(l)):s.substring(l)}}function oo(s){const i=Cm(s.oldName),r=Cm(s.newName);if(i!==r&&!yu(i)&&!yu(r)){const l=[],u=[],h=i.split(Aa),g=r.split(Aa),v=h.length,m=g.length;let p=0,b=v-1,E=m-1;for(;p<b&&p<E&&h[p]===g[p];)l.push(g[p]),p+=1;for(;b>p&&E>p&&h[b]===g[E];)u.unshift(g[E]),b-=1,E-=1;const _=l.join(Aa),N=u.join(Aa),x=h.slice(p,b+1).join(Aa),C=g.slice(p,E+1).join(Aa);return _.length&&N.length?_+Aa+"{"+x+" → "+C+"}"+Aa+N:_.length?_+Aa+"{"+x+" → "+C+"}":N.length?"{"+x+" → "+C+"}"+Aa+N:i+" → "+r}else return yu(r)?i:r}function Lf(s){return`d2h-${hE(oo(s)).toString().slice(-6)}`}function zf(s){let i="file-changed";return s.isRename||s.isCopy?i="file-renamed":s.isNew?i="file-added":s.isDeleted?i="file-deleted":s.newName!==s.oldName&&(i="file-renamed"),i}function bb(s,i,r,l={}){const{matching:u,maxLineLengthHighlight:h,matchWordsThreshold:g,diffStyle:v}=Object.assign(Object.assign({},ro),l),m=Oa(s,r,!1),p=Oa(i,r,!1);if(m.content.length>h||p.content.length>h)return{oldLine:{prefix:m.prefix,content:Il(m.content)},newLine:{prefix:p.prefix,content:Il(p.content)}};const b=v==="char"?vE(m.content,p.content):SE(m.content,p.content),E=[];if(v==="word"&&u==="words"){const N=b.filter(R=>R.removed),x=b.filter(R=>R.added);NE(x,N).forEach(R=>{R[0].length===1&&R[1].length===1&&gb(R[0][0],R[1][0])<g&&(E.push(R[0][0]),E.push(R[1][0]))})}const _=b.reduce((N,x)=>{const C=x.added?"ins":x.removed?"del":null,R=E.indexOf(x)>-1?' class="d2h-change"':"",j=Il(x.value);return C!==null?`${N}<${C}${R}>${j}</${C}>`:`${N}${j}`},"");return{oldLine:{prefix:m.prefix,content:xE(_)},newLine:{prefix:p.prefix,content:wE(_)}}}const Bm="file-summary",RE="icon",OE={colorScheme:ro.colorScheme};class kE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},OE),r)}render(i){const r=i.map(l=>this.hoganUtils.render(Bm,"line",{fileHtmlId:Lf(l),oldName:l.oldName,newName:l.newName,fileName:oo(l),deletedLines:"-"+l.deletedLines,addedLines:"+"+l.addedLines},{fileIcon:this.hoganUtils.template(RE,zf(l))})).join(`
|
|
52
|
-
`);return this.hoganUtils.render(Bm,"wrapper",{colorScheme:Df(this.config.colorScheme),filesNumber:i.length,files:r})}}const yb=Object.assign(Object.assign({},ro),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ms="generic",Im="line-by-line",ME="icon",CE="tag";class DE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},yb),r)}render(i){const r=i.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
|
|
53
|
-
`);return this.hoganUtils.render(Ms,"wrapper",{colorScheme:Df(this.config.colorScheme),content:r})}makeFileDiffHtml(i,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(i.blocks)&&i.blocks.length===0)return"";const l=this.hoganUtils.template(Im,"file-diff"),u=this.hoganUtils.template(Ms,"file-path"),h=this.hoganUtils.template(ME,"file"),g=this.hoganUtils.template(CE,zf(i));return l.render({file:i,fileHtmlId:Lf(i),diffs:r,filePath:u.render({fileDiffName:oo(i)},{fileIcon:h,fileTag:g})})}generateEmptyDiff(){return this.hoganUtils.render(Ms,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:kn})}generateFileHtml(i){const r=Cf(Mf(l=>Oa(l.content,i.isCombined).content));return i.blocks.map(l=>{let u=this.hoganUtils.render(Ms,"block-header",{CSSLineClass:kn,blockHeader:i.isTooBig?l.header:Il(l.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(l).forEach(([h,g,v])=>{if(g.length&&v.length&&!h.length)this.applyRematchMatching(g,v,r).map(([m,p])=>{const{left:b,right:E}=this.processChangedLines(i,i.isCombined,m,p);u+=b,u+=E});else if(h.length)h.forEach(m=>{const{prefix:p,content:b}=Oa(m.content,i.isCombined);u+=this.generateSingleLineHtml(i,{type:kn.CONTEXT,prefix:p,content:b,oldNumber:m.oldNumber,newNumber:m.newNumber})});else if(g.length||v.length){const{left:m,right:p}=this.processChangedLines(i,i.isCombined,g,v);u+=m,u+=p}else console.error("Unknown state reached while processing groups of lines",h,g,v)}),u}).join(`
|
|
54
|
-
`)}applyLineGroupping(i){const r=[];let l=[],u=[];for(let h=0;h<i.lines.length;h++){const g=i.lines[h];(g.type!==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,h=pb(i.concat(r).map(v=>v.content.length));return u<this.config.matchingMaxComparisons&&h<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(i,r):[[i,r]]}processChangedLines(i,r,l,u){const h={right:"",left:""},g=Math.max(l.length,u.length);for(let v=0;v<g;v++){const m=l[v],p=u[v],b=m!==void 0&&p!==void 0?bb(m.content,p.content,r,this.config):void 0,E=m!==void 0&&m.oldNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.oldLine.prefix,content:b.oldLine.content,type:kn.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(m.content,r)),{type:no(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,_=p!==void 0&&p.newNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.newLine.prefix,content:b.newLine.content,type:kn.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(p.content,r)),{type:no(p.type)})),{oldNumber:p.oldNumber,newNumber:p.newNumber}):void 0,{left:N,right:x}=this.generateLineHtml(i,E,_);h.left+=N,h.right+=x}return h}generateLineHtml(i,r,l){return{left:this.generateSingleLineHtml(i,r),right:this.generateSingleLineHtml(i,l)}}generateSingleLineHtml(i,r){if(r===void 0)return"";const l=this.hoganUtils.render(Im,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Ms,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?" ":r.prefix,content:r.content,lineNumber:l,line:r,file:i})}}const vb=Object.assign(Object.assign({},ro),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Cs="generic",LE="side-by-side",zE="icon",UE="tag";class BE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},vb),r)}render(i){const r=i.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
|
|
55
|
-
`);return this.hoganUtils.render(Cs,"wrapper",{colorScheme:Df(this.config.colorScheme),content:r})}makeFileDiffHtml(i,r){if(this.config.renderNothingWhenEmpty&&Array.isArray(i.blocks)&&i.blocks.length===0)return"";const l=this.hoganUtils.template(LE,"file-diff"),u=this.hoganUtils.template(Cs,"file-path"),h=this.hoganUtils.template(zE,"file"),g=this.hoganUtils.template(UE,zf(i));return l.render({file:i,fileHtmlId:Lf(i),diffs:r,filePath:u.render({fileDiffName:oo(i)},{fileIcon:h,fileTag:g})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Cs,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:kn})}}generateFileHtml(i){const r=Cf(Mf(l=>Oa(l.content,i.isCombined).content));return i.blocks.map(l=>{const u={left:this.makeHeaderHtml(l.header,i),right:this.makeHeaderHtml("")};return this.applyLineGroupping(l).forEach(([h,g,v])=>{if(g.length&&v.length&&!h.length)this.applyRematchMatching(g,v,r).map(([m,p])=>{const{left:b,right:E}=this.processChangedLines(i.isCombined,m,p);u.left+=b,u.right+=E});else if(h.length)h.forEach(m=>{const{prefix:p,content:b}=Oa(m.content,i.isCombined),{left:E,right:_}=this.generateLineHtml({type: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||v.length){const{left:m,right:p}=this.processChangedLines(i.isCombined,g,v);u.left+=m,u.right+=p}else console.error("Unknown state reached while processing groups of lines",h,g,v)}),u}).reduce((l,u)=>({left:l.left+u.left,right:l.right+u.right}),{left:"",right:""})}applyLineGroupping(i){const r=[];let l=[],u=[];for(let h=0;h<i.lines.length;h++){const g=i.lines[h];(g.type!==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,h=pb(i.concat(r).map(v=>v.content.length));return u<this.config.matchingMaxComparisons&&h<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(i,r):[[i,r]]}makeHeaderHtml(i,r){return this.hoganUtils.render(Cs,"block-header",{CSSLineClass: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:""},h=Math.max(r.length,l.length);for(let g=0;g<h;g++){const v=r[g],m=l[g],p=v!==void 0&&m!==void 0?bb(v.content,m.content,i,this.config):void 0,b=v!==void 0&&v.oldNumber!==void 0?Object.assign(Object.assign({},p!==void 0?{prefix:p.oldLine.prefix,content:p.oldLine.content,type:kn.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(v.content,i)),{type:no(v.type)})),{number:v.oldNumber}):void 0,E=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},p!==void 0?{prefix:p.newLine.prefix,content:p.newLine.content,type:kn.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(m.content,i)),{type:no(m.type)})),{number:m.newNumber}):void 0,{left:_,right:N}=this.generateLineHtml(b,E);u.left+=_,u.right+=N}return u}generateLineHtml(i,r){return{left:this.generateSingleHtml(i),right:this.generateSingleHtml(r)}}generateSingleHtml(i){const r="d2h-code-side-linenumber",l="d2h-code-side-line";return this.hoganUtils.render(Cs,"line",{type:(i==null?void 0:i.type)||`${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)===" "?" ":i==null?void 0:i.prefix,content:i==null?void 0:i.content,lineNumber:i==null?void 0:i.number})}}var vu={},jm;function IE(){return jm||(jm=1,(function(s){(function(i){var r=/\S/,l=/\"/g,u=/\n/g,h=/\r/g,g=/\\/g,v=/\u2028/,m=/\u2029/;i.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},i.scan=function(q,V){var F=q.length,oe=0,be=1,Ne=2,ge=oe,I=null,le=null,de="",Se=[],Be=!1,T=0,z=0,Y="{{",fe="}}";function ve(){de.length>0&&(Se.push({tag:"_t",text:new String(de)}),de="")}function Re(){for(var xe=!0,ze=z;ze<Se.length;ze++)if(xe=i.tags[Se[ze].tag]<i.tags._v||Se[ze].tag=="_t"&&Se[ze].text.match(r)===null,!xe)return!1;return xe}function pe(xe,ze){if(ve(),xe&&Re())for(var De=z,Oe;De<Se.length;De++)Se[De].text&&((Oe=Se[De+1])&&Oe.tag==">"&&(Oe.indent=Se[De].text.toString()),Se.splice(De,1));else ze||Se.push({tag:`
|
|
56
|
-
`});Be=!1,z=Se.length}function Ce(xe,ze){var De="="+fe,Oe=xe.indexOf(De,ze),Nt=b(xe.substring(xe.indexOf("=",ze)+1,Oe)).split(" ");return Y=Nt[0],fe=Nt[Nt.length-1],Oe+De.length-1}for(V&&(V=V.split(" "),Y=V[0],fe=V[1]),T=0;T<F;T++)ge==oe?E(Y,q,T)?(--T,ve(),ge=be):q.charAt(T)==`
|
|
57
|
-
`?pe(Be):de+=q.charAt(T):ge==be?(T+=Y.length-1,le=i.tags[q.charAt(T+1)],I=le?q.charAt(T+1):"_v",I=="="?(T=Ce(q,T),ge=oe):(le&&T++,ge=Ne),Be=T):E(fe,q,T)?(Se.push({tag:I,n:b(de),otag:Y,ctag:fe,i:I=="/"?Be-Y.length:T+fe.length}),de="",T+=fe.length-1,ge=oe,I=="{"&&(fe=="}}"?T++:p(Se[Se.length-1]))):de+=q.charAt(T);return pe(Be,!0),Se};function p(O){O.n.substr(O.n.length-1)==="}"&&(O.n=O.n.substring(0,O.n.length-1))}function b(O){return O.trim?O.trim():O.replace(/^\s*|\s*$/g,"")}function E(O,q,V){if(q.charAt(V)!=O.charAt(0))return!1;for(var F=1,oe=O.length;F<oe;F++)if(q.charAt(V+F)!=O.charAt(F))return!1;return!0}var _={_t:!0,"\n":!0,$:!0,"/":!0};function N(O,q,V,F){var oe=[],be=null,Ne=null,ge=null;for(Ne=V[V.length-1];O.length>0;){if(ge=O.shift(),Ne&&Ne.tag=="<"&&!(ge.tag in _))throw new Error("Illegal content in < super tag.");if(i.tags[ge.tag]<=i.tags.$||x(ge,F))V.push(ge),ge.nodes=N(O,ge.tag,V,F);else if(ge.tag=="/"){if(V.length===0)throw new Error("Closing tag without opener: /"+ge.n);if(be=V.pop(),ge.n!=be.n&&!C(ge.n,be.n,F))throw new Error("Nesting error: "+be.n+" vs. "+ge.n);return be.end=ge.i,oe}else ge.tag==`
|
|
58
|
-
`&&(ge.last=O.length==0||O[0].tag==`
|
|
59
|
-
`);oe.push(ge)}if(V.length>0)throw new Error("missing closing tag: "+V.pop().n);return oe}function x(O,q){for(var V=0,F=q.length;V<F;V++)if(q[V].o==O.n)return O.tag="#",!0}function C(O,q,V){for(var F=0,oe=V.length;F<oe;F++)if(V[F].c==O&&V[F].o==q)return!0}function R(O){var q=[];for(var V in O)q.push('"'+M(V)+'": function(c,p,t,i) {'+O[V]+"}");return"{ "+q.join(",")+" }"}function j(O){var q=[];for(var V in O.partials)q.push('"'+M(V)+'":{name:"'+M(O.partials[V].name)+'", '+j(O.partials[V])+"}");return"partials: {"+q.join(",")+"}, subs: "+R(O.subs)}i.stringify=function(O,q,V){return"{code: function (c,p,i) { "+i.wrapMain(O.code)+" },"+j(O)+"}"};var B=0;i.generate=function(O,q,V){B=0;var F={code:"",subs:{},partials:{}};return i.walk(O,F),V.asString?this.stringify(F,q,V):this.makeTemplate(F,q,V)},i.wrapMain=function(O){return'var t=this;t.b(i=i||"");'+O+"return t.fl();"},i.template=i.Template,i.makeTemplate=function(O,q,V){var F=this.makePartials(O);return F.code=new Function("c","p","i",this.wrapMain(O.code)),new this.template(F,q,this,V)},i.makePartials=function(O){var q,V={subs:{},partials:O.partials,name:O.name};for(q in V.partials)V.partials[q]=this.makePartials(V.partials[q]);for(q in O.subs)V.subs[q]=new Function("c","p","t","i",O.subs[q]);return V};function M(O){return O.replace(g,"\\\\").replace(l,'\\"').replace(u,"\\n").replace(h,"\\r").replace(v,"\\u2028").replace(m,"\\u2029")}function ee(O){return~O.indexOf(".")?"d":"f"}function H(O,q){var V="<"+(q.prefix||""),F=V+O.n+B++;return q.partials[F]={name:O.n,partials:{}},q.code+='t.b(t.rp("'+M(F)+'",c,p,"'+(O.indent||"")+'"));',F}i.codegen={"#":function(O,q){q.code+="if(t.s(t."+ee(O.n)+'("'+M(O.n)+'",c,p,1),c,p,0,'+O.i+","+O.end+',"'+O.otag+" "+O.ctag+'")){t.rs(c,p,function(c,p,t){',i.walk(O.nodes,q),q.code+="});c.pop();}"},"^":function(O,q){q.code+="if(!t.s(t."+ee(O.n)+'("'+M(O.n)+'",c,p,1),c,p,1,0,0,"")){',i.walk(O.nodes,q),q.code+="};"},">":H,"<":function(O,q){var V={partials:{},code:"",subs:{},inPartial:!0};i.walk(O.nodes,V);var F=q.partials[H(O,q)];F.subs=V.subs,F.partials=V.partials},$:function(O,q){var V={subs:{},code:"",partials:q.partials,prefix:O.n};i.walk(O.nodes,V),q.subs[O.n]=V.code,q.inPartial||(q.code+='t.sub("'+M(O.n)+'",c,p,i);')},"\n":function(O,q){q.code+=ae('"\\n"'+(O.last?"":" + i"))},_v:function(O,q){q.code+="t.b(t.v(t."+ee(O.n)+'("'+M(O.n)+'",c,p,0)));'},_t:function(O,q){q.code+=ae('"'+M(O.text)+'"')},"{":te,"&":te};function te(O,q){q.code+="t.b(t.t(t."+ee(O.n)+'("'+M(O.n)+'",c,p,0)));'}function ae(O){return"t.b("+O+");"}i.walk=function(O,q){for(var V,F=0,oe=O.length;F<oe;F++)V=i.codegen[O[F].tag],V&&V(O[F],q);return q},i.parse=function(O,q,V){return V=V||{},N(O,"",[],V.sectionTags||[])},i.cache={},i.cacheKey=function(O,q){return[O,!!q.asString,!!q.disableLambda,q.delimiters,!!q.modelGet].join("||")},i.compile=function(O,q){q=q||{};var V=i.cacheKey(O,q),F=this.cache[V];if(F){var oe=F.partials;for(var be in oe)delete oe[be].instance;return F}return F=this.generate(this.parse(this.scan(O,q.delimiters),O,q),O,q),this.cache[V]=F}})(s)})(vu)),vu}var Eu={},Hm;function jE(){return Hm||(Hm=1,(function(s){(function(i){i.Template=function(N,x,C,R){N=N||{},this.r=N.code||this.r,this.c=C,this.options=R||{},this.text=x||"",this.partials=N.partials||{},this.subs=N.subs||{},this.buf=""},i.Template.prototype={r:function(N,x,C){return""},v:E,t:b,render:function(x,C,R){return this.ri([x],C||{},R)},ri:function(N,x,C){return this.r(N,x,C)},ep:function(N,x){var C=this.partials[N],R=x[C.name];if(C.instance&&C.base==R)return C.instance;if(typeof R=="string"){if(!this.c)throw new Error("No compiler available.");R=this.c.compile(R,this.options)}if(!R)return null;if(this.partials[N].base=R,C.subs){x.stackText||(x.stackText={});for(key in C.subs)x.stackText[key]||(x.stackText[key]=this.activeSub!==void 0&&x.stackText[this.activeSub]?x.stackText[this.activeSub]:this.text);R=l(R,C.subs,C.partials,this.stackSubs,this.stackPartials,x.stackText)}return this.partials[N].instance=R,R},rp:function(N,x,C,R){var j=this.ep(N,C);return j?j.ri(x,C,R):""},rs:function(N,x,C){var R=N[N.length-1];if(!_(R)){C(N,x,this);return}for(var j=0;j<R.length;j++)N.push(R[j]),C(N,x,this),N.pop()},s:function(N,x,C,R,j,B,M){var ee;return _(N)&&N.length===0?!1:(typeof N=="function"&&(N=this.ms(N,x,C,R,j,B,M)),ee=!!N,!R&&ee&&x&&x.push(typeof N=="object"?N:x[x.length-1]),ee)},d:function(N,x,C,R){var j,B=N.split("."),M=this.f(B[0],x,C,R),ee=this.options.modelGet,H=null;if(N==="."&&_(x[x.length-2]))M=x[x.length-1];else for(var te=1;te<B.length;te++)j=r(B[te],M,ee),j!==void 0?(H=M,M=j):M="";return R&&!M?!1:(!R&&typeof M=="function"&&(x.push(H),M=this.mv(M,x,C),x.pop()),M)},f:function(N,x,C,R){for(var j=!1,B=null,M=!1,ee=this.options.modelGet,H=x.length-1;H>=0;H--)if(B=x[H],j=r(N,B,ee),j!==void 0){M=!0;break}return M?(!R&&typeof j=="function"&&(j=this.mv(j,x,C)),j):R?!1:""},ls:function(N,x,C,R,j,B){var M=this.options.delimiters;return this.options.delimiters=B,this.b(this.ct(b(N.call(x,j,C)),x,R)),this.options.delimiters=M,!1},ct:function(N,x,C){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(N,this.options).render(x,C)},b:function(N){this.buf+=N},fl:function(){var N=this.buf;return this.buf="",N},ms:function(N,x,C,R,j,B,M){var ee,H=x[x.length-1],te=N.call(H);return typeof te=="function"?R?!0:(ee=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(te,H,x,C,ee.substring(j,B),M)):te},mv:function(N,x,C){var R=x[x.length-1],j=N.call(R);return typeof j=="function"?this.ct(b(j.call(R)),R,C):j},sub:function(N,x,C,R){var j=this.subs[N];j&&(this.activeSub=N,j(x,C,this,R),this.activeSub=!1)}};function r(N,x,C){var R;return x&&typeof x=="object"&&(x[N]!==void 0?R=x[N]:C&&x.get&&typeof x.get=="function"&&(R=x.get(N))),R}function l(N,x,C,R,j,B){function M(){}M.prototype=N;function ee(){}ee.prototype=N.subs;var H,te=new M;te.subs=new ee,te.subsText={},te.buf="",R=R||{},te.stackSubs=R,te.subsText=B;for(H in x)R[H]||(R[H]=x[H]);for(H in R)te.subs[H]=R[H];j=j||{},te.stackPartials=j;for(H in C)j[H]||(j[H]=C[H]);for(H in j)te.partials[H]=j[H];return te}var u=/&/g,h=/</g,g=/>/g,v=/\'/g,m=/\"/g,p=/[&<>\"\']/;function b(N){return String(N??"")}function E(N){return N=b(N),p.test(N)?N.replace(u,"&").replace(h,"<").replace(g,">").replace(v,"'").replace(m,"""):N}var _=Array.isArray||function(N){return Object.prototype.toString.call(N)==="[object Array]"}})(s)})(Eu)),Eu}var _u,qm;function HE(){if(qm)return _u;qm=1;var s=IE();return s.Template=jE().Template,s.template=s.Template,_u=s,_u}var jt=HE();const Xt={};Xt["file-summary-line"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<li class="d2h-file-list-line">'),l.b(`
|
|
60
|
-
`+r),l.b(' <span class="d2h-file-name-wrapper">'),l.b(`
|
|
61
|
-
`+r),l.b(l.rp("<fileIcon0",s,i," ")),l.b(' <a href="#'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-name">'),l.b(l.v(l.f("fileName",s,i,0))),l.b("</a>"),l.b(`
|
|
62
|
-
`+r),l.b(' <span class="d2h-file-stats">'),l.b(`
|
|
63
|
-
`+r),l.b(' <span class="d2h-lines-added">'),l.b(l.v(l.f("addedLines",s,i,0))),l.b("</span>"),l.b(`
|
|
64
|
-
`+r),l.b(' <span class="d2h-lines-deleted">'),l.b(l.v(l.f("deletedLines",s,i,0))),l.b("</span>"),l.b(`
|
|
65
|
-
`+r),l.b(" </span>"),l.b(`
|
|
66
|
-
`+r),l.b(" </span>"),l.b(`
|
|
67
|
-
`+r),l.b("</li>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});Xt["file-summary-wrapper"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-file-list-wrapper '),l.b(l.v(l.f("colorScheme",s,i,0))),l.b('">'),l.b(`
|
|
68
|
-
`+r),l.b(' <div class="d2h-file-list-header">'),l.b(`
|
|
69
|
-
`+r),l.b(' <span class="d2h-file-list-title">Files changed ('),l.b(l.v(l.f("filesNumber",s,i,0))),l.b(")</span>"),l.b(`
|
|
70
|
-
`+r),l.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),l.b(`
|
|
71
|
-
`+r),l.b(' <a class="d2h-file-switch d2h-show">show</a>'),l.b(`
|
|
72
|
-
`+r),l.b(" </div>"),l.b(`
|
|
73
|
-
`+r),l.b(' <ol class="d2h-file-list">'),l.b(`
|
|
74
|
-
`+r),l.b(" "),l.b(l.t(l.f("files",s,i,0))),l.b(`
|
|
75
|
-
`+r),l.b(" </ol>"),l.b(`
|
|
76
|
-
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Xt["generic-block-header"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
|
|
77
|
-
`+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,i,0))),l.b(" "),l.b(l.v(l.d("CSSLineClass.INFO",s,i,0))),l.b('"></td>'),l.b(`
|
|
78
|
-
`+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,i,0))),l.b('">'),l.b(`
|
|
79
|
-
`+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,i,0))),l.b('">'),l.s(l.f("blockHeader",s,i,1),s,i,0,156,173,"{{ }}")&&(l.rs(s,i,function(u,h,g){g.b(g.t(g.f("blockHeader",u,h,0)))}),s.pop()),l.s(l.f("blockHeader",s,i,1),s,i,1,0,0,"")||l.b(" "),l.b("</div>"),l.b(`
|
|
80
|
-
`+r),l.b(" </td>"),l.b(`
|
|
81
|
-
`+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Xt["generic-empty-diff"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
|
|
82
|
-
`+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,i,0))),l.b('">'),l.b(`
|
|
83
|
-
`+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,i,0))),l.b('">'),l.b(`
|
|
84
|
-
`+r),l.b(" File without changes"),l.b(`
|
|
85
|
-
`+r),l.b(" </div>"),l.b(`
|
|
86
|
-
`+r),l.b(" </td>"),l.b(`
|
|
87
|
-
`+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Xt["generic-file-path"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-file-name-wrapper">'),l.b(`
|
|
88
|
-
`+r),l.b(l.rp("<fileIcon0",s,i," ")),l.b(' <span class="d2h-file-name">'),l.b(l.v(l.f("fileDiffName",s,i,0))),l.b("</span>"),l.b(`
|
|
89
|
-
`+r),l.b(l.rp("<fileTag1",s,i," ")),l.b("</span>"),l.b(`
|
|
90
|
-
`+r),l.b('<label class="d2h-file-collapse">'),l.b(`
|
|
91
|
-
`+r),l.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),l.b(`
|
|
92
|
-
`+r),l.b(" Viewed"),l.b(`
|
|
93
|
-
`+r),l.b("</label>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});Xt["generic-line"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
|
|
94
|
-
`+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,i,0))),l.b(" "),l.b(l.v(l.f("type",s,i,0))),l.b('">'),l.b(`
|
|
95
|
-
`+r),l.b(" "),l.b(l.t(l.f("lineNumber",s,i,0))),l.b(`
|
|
96
|
-
`+r),l.b(" </td>"),l.b(`
|
|
97
|
-
`+r),l.b(' <td class="'),l.b(l.v(l.f("type",s,i,0))),l.b('">'),l.b(`
|
|
98
|
-
`+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,i,0))),l.b('">'),l.b(`
|
|
99
|
-
`+r),l.s(l.f("prefix",s,i,1),s,i,0,162,238,"{{ }}")&&(l.rs(s,i,function(u,h,g){g.b(' <span class="d2h-code-line-prefix">'),g.b(g.t(g.f("prefix",u,h,0))),g.b("</span>"),g.b(`
|
|
100
|
-
`+r)}),s.pop()),l.s(l.f("prefix",s,i,1),s,i,1,0,0,"")||(l.b(' <span class="d2h-code-line-prefix"> </span>'),l.b(`
|
|
101
|
-
`+r)),l.s(l.f("content",s,i,1),s,i,0,371,445,"{{ }}")&&(l.rs(s,i,function(u,h,g){g.b(' <span class="d2h-code-line-ctn">'),g.b(g.t(g.f("content",u,h,0))),g.b("</span>"),g.b(`
|
|
102
|
-
`+r)}),s.pop()),l.s(l.f("content",s,i,1),s,i,1,0,0,"")||(l.b(' <span class="d2h-code-line-ctn"><br></span>'),l.b(`
|
|
103
|
-
`+r)),l.b(" </div>"),l.b(`
|
|
104
|
-
`+r),l.b(" </td>"),l.b(`
|
|
105
|
-
`+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Xt["generic-wrapper"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-wrapper '),l.b(l.v(l.f("colorScheme",s,i,0))),l.b('">'),l.b(`
|
|
106
|
-
`+r),l.b(" "),l.b(l.t(l.f("content",s,i,0))),l.b(`
|
|
107
|
-
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Xt["icon-file-added"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),l.b(`
|
|
108
|
-
`+r),l.b(' width="14">'),l.b(`
|
|
109
|
-
`+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),l.b(`
|
|
110
|
-
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Xt["icon-file-changed"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),l.b(`
|
|
111
|
-
`+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
|
|
112
|
-
`+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),l.b(`
|
|
113
|
-
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Xt["icon-file-deleted"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),l.b(`
|
|
114
|
-
`+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
|
|
115
|
-
`+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),l.b(`
|
|
116
|
-
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Xt["icon-file-renamed"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),l.b(`
|
|
117
|
-
`+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
|
|
118
|
-
`+r),l.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),l.b(`
|
|
119
|
-
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Xt["icon-file"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),l.b(`
|
|
120
|
-
`+r),l.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),l.b(`
|
|
121
|
-
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Xt["line-by-line-file-diff"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,i,0))),l.b('">'),l.b(`
|
|
122
|
-
`+r),l.b(' <div class="d2h-file-header">'),l.b(`
|
|
123
|
-
`+r),l.b(" "),l.b(l.t(l.f("filePath",s,i,0))),l.b(`
|
|
124
|
-
`+r),l.b(" </div>"),l.b(`
|
|
125
|
-
`+r),l.b(' <div class="d2h-file-diff">'),l.b(`
|
|
126
|
-
`+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
|
|
127
|
-
`+r),l.b(' <table class="d2h-diff-table">'),l.b(`
|
|
128
|
-
`+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
|
|
129
|
-
`+r),l.b(" "),l.b(l.t(l.f("diffs",s,i,0))),l.b(`
|
|
130
|
-
`+r),l.b(" </tbody>"),l.b(`
|
|
131
|
-
`+r),l.b(" </table>"),l.b(`
|
|
132
|
-
`+r),l.b(" </div>"),l.b(`
|
|
133
|
-
`+r),l.b(" </div>"),l.b(`
|
|
134
|
-
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Xt["line-by-line-numbers"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div class="line-num1">'),l.b(l.v(l.f("oldNumber",s,i,0))),l.b("</div>"),l.b(`
|
|
135
|
-
`+r),l.b('<div class="line-num2">'),l.b(l.v(l.f("newNumber",s,i,0))),l.b("</div>"),l.fl()},partials:{},subs:{}});Xt["side-by-side-file-diff"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,i,0))),l.b('">'),l.b(`
|
|
136
|
-
`+r),l.b(' <div class="d2h-file-header">'),l.b(`
|
|
137
|
-
`+r),l.b(" "),l.b(l.t(l.f("filePath",s,i,0))),l.b(`
|
|
138
|
-
`+r),l.b(" </div>"),l.b(`
|
|
139
|
-
`+r),l.b(' <div class="d2h-files-diff">'),l.b(`
|
|
140
|
-
`+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
|
|
141
|
-
`+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
|
|
142
|
-
`+r),l.b(' <table class="d2h-diff-table">'),l.b(`
|
|
143
|
-
`+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
|
|
144
|
-
`+r),l.b(" "),l.b(l.t(l.d("diffs.left",s,i,0))),l.b(`
|
|
145
|
-
`+r),l.b(" </tbody>"),l.b(`
|
|
146
|
-
`+r),l.b(" </table>"),l.b(`
|
|
147
|
-
`+r),l.b(" </div>"),l.b(`
|
|
148
|
-
`+r),l.b(" </div>"),l.b(`
|
|
149
|
-
`+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
|
|
150
|
-
`+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
|
|
151
|
-
`+r),l.b(' <table class="d2h-diff-table">'),l.b(`
|
|
152
|
-
`+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
|
|
153
|
-
`+r),l.b(" "),l.b(l.t(l.d("diffs.right",s,i,0))),l.b(`
|
|
154
|
-
`+r),l.b(" </tbody>"),l.b(`
|
|
155
|
-
`+r),l.b(" </table>"),l.b(`
|
|
156
|
-
`+r),l.b(" </div>"),l.b(`
|
|
157
|
-
`+r),l.b(" </div>"),l.b(`
|
|
158
|
-
`+r),l.b(" </div>"),l.b(`
|
|
159
|
-
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Xt["tag-file-added"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),l.fl()},partials:{},subs:{}});Xt["tag-file-changed"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),l.fl()},partials:{},subs:{}});Xt["tag-file-deleted"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),l.fl()},partials:{},subs:{}});Xt["tag-file-renamed"]=new jt.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),l.fl()},partials:{},subs:{}});class qE{constructor({compiledTemplates:i={},rawTemplates:r={}}){const l=Object.entries(r).reduce((u,[h,g])=>{const v=jt.compile(g,{asString:!1});return Object.assign(Object.assign({},u),{[h]:v})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Xt),i),l)}static compile(i){return jt.compile(i,{asString:!1})}render(i,r,l,u,h){const g=this.templateKey(i,r);try{return this.preCompiledTemplates[g].render(l,u,h)}catch{throw new Error(`Could not find template to render '${g}'`)}}template(i,r){return this.preCompiledTemplates[this.templateKey(i,r)]}templateKey(i,r){return`${i}-${r}`}}const GE=Object.assign(Object.assign(Object.assign({},yb),vb),{outputFormat:rE.LINE_BY_LINE,drawFileList:!0});function $E(s,i={}){const r=Object.assign(Object.assign({},GE),i),l=typeof s=="string"?gE(s,r):s,u=new qE(r),{colorScheme:h}=r,g={colorScheme:h},v=r.drawFileList?new kE(u,g).render(l):"",m=r.outputFormat==="side-by-side"?new BE(u,r).render(l):new DE(u,r).render(l);return v+m}var Gm=hb();function js(s){const i=[],r=s.split(`
|
|
160
|
-
`);let l=null,u=null;const h=()=>{l&&u&&i.push({path:u,patch:l.join(`
|
|
161
|
-
`)}),l=null,u=null};for(const g of r)if(g.startsWith("diff --git ")){h(),l=[g];const v=g.match(/^diff --git a\/(.+?) b\/(.+)$/);u=v?v[2]:g.slice(11)}else if(l&&(l.push(g),g.startsWith("--- a/")&&u==="/dev/null"&&(u=g.slice(6)),g==="+++ /dev/null")){const v=l.find(m=>m.startsWith("--- a/"));v&&(u=v.slice(6))}return h(),i}function YE(s,i){const r=new Set(i);return js(s).filter(l=>r.has(l.path)).map(l=>l.patch).join(`
|
|
162
|
-
`)}function FE(s){return KE(s)}function KE(s,i){const l=new Map;for(const{path:u,patch:h}of js(s)){const g=new Map;let v=0,m=!1;const p=h.split(`
|
|
163
|
-
`);for(let b=0;b<p.length;b++){const E=p[b],_=E.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){v=Number(_[2]),m=!0;continue}m&&(E===""&&b===p.length-1||E.startsWith("\\")||(E.startsWith("+")||E.startsWith(" ")||E==="")&&(g.set(v,E===""?"":E.slice(1)),v++))}l.set(u,g)}return l}function PE(s){const i=new Map;for(const[r,l]of FE(s))i.set(r,new Set(l.keys()));return i}function ZE(s,i){const r=new Set(i.flatMap(l=>l.files));return js(s).map(l=>l.path).filter(l=>!r.has(l))}function XE(s){return new Map(js(s).map(i=>[i.path,i.patch.split(`
|
|
164
|
-
`).length]))}const Eb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function QE(s,i){return i?`${Eb[i]} **${i}** — ${s}`:s}const VE=["inbox","awaiting","drafted"],yf=["requests","settled","sent","archived"],Su={inbox:{label:"inbox",title:"Everything still waiting on you — drafted reviews and PRs the poll found but nobody has read."},awaiting:{label:"awaiting",title:"Found by the inbox poll, not drafted yet — or a run is in flight right now."},drafted:{label:"drafted",title:"A draft is written and waiting for you to read it."},requests:{label:"open requests",title:"GitHub still lists you as a requested reviewer on these. You settled or archived them here without submitting a review, so they also appear under whichever tab you filed them in."},settled:{label:"settled",title:"You marked these reviewed or skipped. Nothing was sent to GitHub."},sent:{label:"sent",title:"Reviews that reached GitHub. Kept here as a record."},archived:{label:"archived",title:"PRs that have since been merged or closed."}};function $m(s){return s.status==="awaiting"||s.status==="running"?"awaiting":s.status==="sent"?"sent":"drafted"}const Is=s=>!!s.pr.state&&s.pr.state!=="OPEN",Ym=["ready","awaiting","running","failed","reviewed","skipped","sent"];function Ul(s){return[...s].sort((i,r)=>Ym.indexOf(i.status)-Ym.indexOf(r.status)||r.updatedAt.localeCompare(i.updatedAt))}const _b=["sent","reviewed","skipped"];function co(s){return Ul(s.filter(i=>!Is(i)&&!_b.includes(i.status)))}function JE(s,i,r){return co(s).filter(l=>l.key===i||!r.has(l.key))}function WE(s,i){if(!(i!=null&&i.enabled)||i.awaiting.length===0)return[];const r=new Set(co(s).map(u=>u.id)),l=new Set(i.awaiting.map(u=>u.id));return Ul(s.filter(u=>l.has(u.id)&&!r.has(u.id)))}const e_=(s,i)=>i.some(r=>r.id===s.id);function t_(s,i){const r=s.filter(u=>!Is(u)),l=Ul(r.filter(u=>!_b.includes(u.status)));return{inbox:l,awaiting:l.filter(u=>$m(u)==="awaiting"),drafted:l.filter(u=>$m(u)==="drafted"),requests:WE(s,i),settled:Ul(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Ul(r.filter(u=>u.status==="sent")),archived:Ul(s.filter(Is))}}function n_(s,i){return yf.includes(s)&&i[s].length===0?"inbox":s}function Sb(s){var i,r;return s.reason==="own-review"?((i=s.review)==null?void 0:i.at)??s.at:s.reason==="own-reply"?((r=s.reply)==null?void 0:r.at)??s.at:s.at}const ao={"own-review":{tag:"reviewed on GitHub",meta:s=>`you reviewed this on GitHub on ${s}`,reasoning:"GitHub stopped asking you for a review and already had one of yours, so this draft was filed rather than left in the inbox. It was never sent — open it to read or send it.",requested:"You submitted a review on GitHub, outside cerber, so this draft was filed."},"own-reply":{tag:"replied on GitHub",meta:s=>`you replied on GitHub on ${s}`,reasoning:"You answered in the PR conversation and nobody has answered back, so the draft was filed rather than left in the inbox. GitHub does not count a comment as a review, but whoever opened the PR is the one holding it. Nothing was sent — open it to read or send it.",requested:"You commented on the PR and nobody answered, so this draft was filed."},"request-withdrawn":{tag:"request withdrawn",meta:s=>`nobody was asking for this any more on ${s}`,reasoning:"Whoever asked for this review took the request back, and you had said nothing on the PR, so the draft was filed rather than left in the inbox. It is still a review — open it to read or send it.",requested:"The review request had gone away when this draft was filed."}};function a_(s){var i;return Is(s)?((i=s.pr.state)==null?void 0:i.toLowerCase())??null:s.filed?ao[s.filed.reason].tag:s.status==="reviewed"||s.status==="skipped"?s.status:null}function i_(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 l_={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."}},s_=s=>l_[s];function r_(s){const i=Uf[s.event]??s.event,r=new Date(s.at).toLocaleDateString();return{label:s.auto?"auto-sent a review":"you replied with a review",title:`${s.auto?"The daemon auto-sent this review":"You sent this review"} to GitHub on ${r} as ${i}. The last inbox poll still listed a review request for you — a request can lag a send, and GitHub holds some open even after one.`}}function o_(s){const i=ao[s.reason],r=new Date(Sb(s)).toLocaleDateString();return{label:i.tag,title:`${i.requested} That was ${r}. GitHub lists a review request for you now — most likely the author has asked for another look since. Re-review it to draft against the current head.`}}const c_=(s,i)=>s.sent?r_(s.sent):s.filed?o_(s.filed):s_(i);function u_(s){const i=s.length,r=i===1?"1 review request":`${i} review requests`,l=s.some(Is)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${l} ${i===1?"it":"them"} here without submitting a review, so ${i===1?"it is":"they are"} under open requests, tagged with whose move it is.`}function Tb(s,i=Date.now()){const r=Math.max(0,Math.round((i-new Date(s).getTime())/1e3));return r<45?"now":r<3600?`${Math.round(r/60)}m`:r<86400?`${Math.round(r/3600)}h`:`${Math.round(r/86400)}d`}const f_={approve:"approve",comment:"comment",request_changes:"changes"},Uf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function d_(s){return s.status==="running"?{label:"reviewing…",tone:"running"}:s.status==="awaiting"?{label:"review now",tone:"awaiting"}:s.status==="failed"?{label:"run failed",tone:"failed"}:s.sent?{label:`sent · ${Uf[s.sent.event]??s.sent.event}`,tone:"sent"}:s.verdict?{label:`${s.verdict.recommendation.replace("_"," ")} ${s.verdict.confidence}%`,tone:f_[s.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function Tu(s){return s.trusted?"ran the code":s.withSource?"read the full source":"read the diff only"}function h_(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 p_(s,i,r=Date.now()){var u,h;if(s.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Tb(s.updatedAt,r)} ago`,Tu(s)]};if(s.status==="awaiting")return{reasoning:"Found by the inbox poll, not drafted yet — auto-review was off when it arrived, or it is still queued behind another run.",meta:["no run yet","press r to review now"]};if(s.status==="failed")return{reasoning:s.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(s.sent)return{reasoning:`Sent to GitHub as ${Uf[s.sent.event]??s.sent.event} on ${new Date(s.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue.`,meta:[s.sent.auto?"auto-sent by the daemon":"sent by you",Tu(s)]};const l=[Tu(s)];return s.filed?l.unshift(ao[s.filed.reason].meta(new Date(Sb(s.filed)).toLocaleDateString())):s.status==="reviewed"&&l.unshift("you marked this reviewed"),s.status==="skipped"&&l.unshift("you skipped this"),s.costUsd!=null&&l.push(`≈$${s.costUsd.toFixed(2)} at API rates`),l.push(h_(s)),i!=null&&i.enabled&&s.status==="ready"&&((u=s.verdict)==null?void 0:u.recommendation)==="approve"&&l.push(s.verdict.confidence>=i.autoSendThreshold?`auto-send candidate at ${s.verdict.confidence}%`:`below the ${i.autoSendThreshold}% auto-send bar`),s.filed?{reasoning:ao[s.filed.reason].reasoning,meta:l}:{reasoning:((h=s.verdict)==null?void 0:h.reasoning)??"This review has a draft but no verdict.",meta:l}}const m_="/favicon.svg",g_="/favicon-dot.svg",b_=s=>co(s).length>0,y_=s=>s?g_:m_;function v_(s){const i=y_(b_(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 Bf=async()=>{const s=await cn("/api/reviews");return v_(s),s},Nb=()=>cn("/api/daemon"),Fm=s=>cn(`/api/reviews/${encodeURIComponent(s)}`),vf=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}`,{method:"PATCH",body:JSON.stringify(i)}),E_=(s,i,r)=>cn(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"PATCH",body:JSON.stringify(r)}),__=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}/comments`,{method:"POST",body:JSON.stringify(i)}),S_=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"DELETE"}),T_=s=>cn("/api/reviews",{method:"POST",body:JSON.stringify({input:s})}),N_=s=>cn(`/api/reviews/${encodeURIComponent(s)}/refresh`,{method:"POST"}),xb=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}/rerun`+(i===void 0?"":`?source=${i?"1":"0"}`),{method:"POST"}),Ef=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}/chat`,{method:"POST",body:JSON.stringify(i)}),x_=s=>cn(`/api/reviews/${encodeURIComponent(s)}/chat/pending`,{method:"DELETE"}),w_=s=>cn(`/api/reviews/${encodeURIComponent(s)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),A_=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}/send-preview?event=${i}`),R_=(s,i)=>cn(`/api/reviews/${encodeURIComponent(s)}/send`,{method:"POST",body:JSON.stringify({event:i,confirm:!0})}),O_=s=>`/api/reviews/${encodeURIComponent(s)}/export`,k_=()=>cn("/api/config"),Nu=(s,i=!1)=>cn("/api/config/trust",{method:"POST",body:JSON.stringify({rule:s,remove:i})}),xu=s=>cn("/api/config/daemon",{method:"POST",body:JSON.stringify(s)});function wu(s){return s.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function _f(s){return s.nodeName.toLowerCase()}function Km(s){const i=[],r=(l,u)=>{for(let h=l.firstChild;h;h=h.nextSibling)h.nodeType===3&&h.nodeValue!==null?u+=h.nodeValue.length:h.nodeType===1&&(i.push({event:"start",offset:u,node:h}),u=r(h,u),_f(h).match(/br|hr|img|input/)||i.push({event:"stop",offset:u,node:h}));return u};return r(s,0),i}function M_(s,i,r){let l=0,u="";const h=[];function g(E){return E!==null&&(E==null?void 0:E.attributes)!==void 0}function v(){return!s.length||!i.length?s.length?s:i:s[0].offset!==i[0].offset?s[0].offset<i[0].offset?s:i:i[0].event==="start"?s:i}function m(E){if(!g(E))throw new Error("Node is not an Element");u+=`<${_f(E)} ${Array().map.call(E.attributes,_=>`${_.nodeName}="${wu(_.value).replace(/"/g,""")}"`).join(" ")}>`}function p(E){u+="</"+_f(E)+">"}function b(E){(E.event==="start"?m:p)(E.node)}for(;s.length||i.length;){let E=v();if(u+=wu(r.substring(l,E[0].offset)),l=E[0].offset,E===s){h.reverse().forEach(p);do b(E.splice(0,1)[0]),E=v();while(E===s&&E.length&&E[0].offset===l);h.reverse().forEach(m)}else E[0].event==="start"?h.push(E[0].node):h.pop(),b(E.splice(0,1)[0])}return u+wu(r.substr(l))}const C_={"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 D_(s){var i;return(i=C_[s])!==null&&i!==void 0?i:"plaintext"}var Au,Pm;function L_(){if(Pm)return Au;Pm=1;function s(A){return A instanceof Map?A.clear=A.delete=A.set=function(){throw new Error("map is read-only")}:A instanceof Set&&(A.add=A.clear=A.delete=function(){throw new Error("set is read-only")}),Object.freeze(A),Object.getOwnPropertyNames(A).forEach(J=>{const he=A[J],ke=typeof he;(ke==="object"||ke==="function")&&!Object.isFrozen(he)&&s(he)}),A}class i{constructor(J){J.data===void 0&&(J.data={}),this.data=J.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(A,...J){const he=Object.create(null);for(const ke in A)he[ke]=A[ke];return J.forEach(function(ke){for(const Fe in ke)he[Fe]=ke[Fe]}),he}const u="</span>",h=A=>!!A.scope,g=(A,{prefix:J})=>{if(A.startsWith("language:"))return A.replace("language:","language-");if(A.includes(".")){const he=A.split(".");return[`${J}${he.shift()}`,...he.map((ke,Fe)=>`${ke}${"_".repeat(Fe+1)}`)].join(" ")}return`${J}${A}`};class v{constructor(J,he){this.buffer="",this.classPrefix=he.classPrefix,J.walk(this)}addText(J){this.buffer+=r(J)}openNode(J){if(!h(J))return;const he=g(J.scope,{prefix:this.classPrefix});this.span(he)}closeNode(J){h(J)&&(this.buffer+=u)}value(){return this.buffer}span(J){this.buffer+=`<span class="${J}">`}}const m=(A={})=>{const J={children:[]};return Object.assign(J,A),J};class p{constructor(){this.rootNode=m(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(J){this.top.children.push(J)}openNode(J){const he=m({scope:J});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(J){return this.constructor._walk(J,this.rootNode)}static _walk(J,he){return typeof he=="string"?J.addText(he):he.children&&(J.openNode(he),he.children.forEach(ke=>this._walk(J,ke)),J.closeNode(he)),J}static _collapse(J){typeof J!="string"&&J.children&&(J.children.every(he=>typeof he=="string")?J.children=[J.children.join("")]:J.children.forEach(he=>{p._collapse(he)}))}}class b extends p{constructor(J){super(),this.options=J}addText(J){J!==""&&this.add(J)}startScope(J){this.openNode(J)}endScope(){this.closeNode()}__addSublanguage(J,he){const ke=J.root;he&&(ke.scope=`language:${he}`),this.add(ke)}toHTML(){return new v(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function E(A){return A?typeof A=="string"?A:A.source:null}function _(A){return C("(?=",A,")")}function N(A){return C("(?:",A,")*")}function x(A){return C("(?:",A,")?")}function C(...A){return A.map(he=>E(he)).join("")}function R(A){const J=A[A.length-1];return typeof J=="object"&&J.constructor===Object?(A.splice(A.length-1,1),J):{}}function j(...A){return"("+(R(A).capture?"":"?:")+A.map(ke=>E(ke)).join("|")+")"}function B(A){return new RegExp(A.toString()+"|").exec("").length-1}function M(A,J){const he=A&&A.exec(J);return he&&he.index===0}const ee=new RegExp(j(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function H(A,{joinWith:J}){let he=0;return A.map(ke=>{he+=1;const Fe=he;let Pe=E(ke),L="";for(;Pe.length>0;){const P=ee.exec(Pe);if(!P){L+=Pe;break}L+=Pe.substring(0,P.index),Pe=Pe.substring(P.index+P[0].length),P[0][0]==="\\"&&P[1]?L+="\\"+String(Number(P[1])+Fe):(L+=P[0],(P[0]==="("||/^\(\?[<']/.test(P[0]))&&he++)}return L}).map(ke=>`(${ke})`).join(J)}const te=/\b\B/,ae="[a-zA-Z]\\w*",O="[a-zA-Z_]\\w*",q="\\b\\d+(\\.\\d+)?",V="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",F="\\b(0b[01]+)",oe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",be=(A={})=>{const J=/^#![ ]*\//;return A.binary&&(A.begin=C(J,/.*\b/,A.binary,/\b.*/)),l({scope:"meta",begin:J,end:/$/,relevance:0,"on:begin":(he,ke)=>{he.index!==0&&ke.ignoreMatch()}},A)},Ne={begin:"\\\\[\\s\\S]",relevance:0},ge={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ne]},I={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ne]},le={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},de=function(A,J,he={}){const ke=l({scope:"comment",begin:A,end:J,contains:[]},he);ke.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 Fe=j("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 ke.contains.push({begin:C(/[ ]+/,"(",Fe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ke},Se=de("//","$"),Be=de("/\\*","\\*/"),T=de("#","$"),z={scope:"number",begin:q,relevance:0},Y={scope:"number",begin:V,relevance:0},fe={scope:"number",begin:F,relevance:0},ve={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ne,{begin:/\[/,end:/\]/,relevance:0,contains:[Ne]}]},Re={scope:"title",begin:ae,relevance:0},pe={scope:"title",begin:O,relevance:0},Ce={begin:"\\.\\s*"+O,relevance:0};var ze=Object.freeze({__proto__:null,APOS_STRING_MODE:ge,BACKSLASH_ESCAPE:Ne,BINARY_NUMBER_MODE:fe,BINARY_NUMBER_RE:F,COMMENT:de,C_BLOCK_COMMENT_MODE:Be,C_LINE_COMMENT_MODE:Se,C_NUMBER_MODE:Y,C_NUMBER_RE:V,END_SAME_AS_BEGIN:function(A){return Object.assign(A,{"on:begin":(J,he)=>{he.data._beginMatch=J[1]},"on:end":(J,he)=>{he.data._beginMatch!==J[1]&&he.ignoreMatch()}})},HASH_COMMENT_MODE:T,IDENT_RE:ae,MATCH_NOTHING_RE:te,METHOD_GUARD:Ce,NUMBER_MODE:z,NUMBER_RE:q,PHRASAL_WORDS_MODE:le,QUOTE_STRING_MODE:I,REGEXP_MODE:ve,RE_STARTERS_RE:oe,SHEBANG:be,TITLE_MODE:Re,UNDERSCORE_IDENT_RE:O,UNDERSCORE_TITLE_MODE:pe});function De(A,J){A.input[A.index-1]==="."&&J.ignoreMatch()}function Oe(A,J){A.className!==void 0&&(A.scope=A.className,delete A.className)}function Nt(A,J){J&&A.beginKeywords&&(A.begin="\\b("+A.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",A.__beforeBegin=De,A.keywords=A.keywords||A.beginKeywords,delete A.beginKeywords,A.relevance===void 0&&(A.relevance=0))}function Ie(A,J){Array.isArray(A.illegal)&&(A.illegal=j(...A.illegal))}function Gn(A,J){if(A.match){if(A.begin||A.end)throw new Error("begin & end are not supported with match");A.begin=A.match,delete A.match}}function Je(A,J){A.relevance===void 0&&(A.relevance=1)}const vn=(A,J)=>{if(!A.beforeMatch)return;if(A.starts)throw new Error("beforeMatch cannot be used with starts");const he=Object.assign({},A);Object.keys(A).forEach(ke=>{delete A[ke]}),A.keywords=he.keywords,A.begin=C(he.beforeMatch,_(he.begin)),A.starts={relevance:0,contains:[Object.assign(he,{endsParent:!0})]},A.relevance=0,delete he.beforeMatch},$n=["of","and","for","in","not","or","if","then","parent","list","value"],Qt="keyword";function Jt(A,J,he=Qt){const ke=Object.create(null);return typeof A=="string"?Fe(he,A.split(" ")):Array.isArray(A)?Fe(he,A):Object.keys(A).forEach(function(Pe){Object.assign(ke,Jt(A[Pe],J,Pe))}),ke;function Fe(Pe,L){J&&(L=L.map(P=>P.toLowerCase())),L.forEach(function(P){const ce=P.split("|");ke[ce[0]]=[Pe,Wt(ce[0],ce[1])]})}}function Wt(A,J){return J?Number(J):ba(A)?0:1}function ba(A){return $n.includes(A.toLowerCase())}const Mn={},it=A=>{console.error(A)},Lt=(A,...J)=>{console.log(`WARN: ${A}`,...J)},bt=(A,J)=>{Mn[`${A}/${J}`]||(console.log(`Deprecated as of ${A}. ${J}`),Mn[`${A}/${J}`]=!0)},Ht=new Error;function un(A,J,{key:he}){let ke=0;const Fe=A[he],Pe={},L={};for(let P=1;P<=J.length;P++)L[P+ke]=Fe[P],Pe[P+ke]=!0,ke+=B(J[P-1]);A[he]=L,A[he]._emit=Pe,A[he]._multi=!0}function Cn(A){if(Array.isArray(A.begin)){if(A.skip||A.excludeBegin||A.returnBegin)throw it("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ht;if(typeof A.beginScope!="object"||A.beginScope===null)throw it("beginScope must be object"),Ht;un(A,A.begin,{key:"beginScope"}),A.begin=H(A.begin,{joinWith:""})}}function wn(A){if(Array.isArray(A.end)){if(A.skip||A.excludeEnd||A.returnEnd)throw it("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ht;if(typeof A.endScope!="object"||A.endScope===null)throw it("endScope must be object"),Ht;un(A,A.end,{key:"endScope"}),A.end=H(A.end,{joinWith:""})}}function Dn(A){A.scope&&typeof A.scope=="object"&&A.scope!==null&&(A.beginScope=A.scope,delete A.scope)}function Ln(A){Dn(A),typeof A.beginScope=="string"&&(A.beginScope={_wrap:A.beginScope}),typeof A.endScope=="string"&&(A.endScope={_wrap:A.endScope}),Cn(A),wn(A)}function En(A){function J(L,P){return new RegExp(E(L),"m"+(A.case_insensitive?"i":"")+(A.unicodeRegex?"u":"")+(P?"g":""))}class he{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(P,ce){ce.position=this.position++,this.matchIndexes[this.matchAt]=ce,this.regexes.push([ce,P]),this.matchAt+=B(P)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const P=this.regexes.map(ce=>ce[1]);this.matcherRe=J(H(P,{joinWith:"|"}),!0),this.lastIndex=0}exec(P){this.matcherRe.lastIndex=this.lastIndex;const ce=this.matcherRe.exec(P);if(!ce)return null;const nt=ce.findIndex((Jn,ya)=>ya>0&&Jn!==void 0),ft=this.matchIndexes[nt];return ce.splice(0,nt),Object.assign(ce,ft)}}class ke{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 ce=new he;return this.rules.slice(P).forEach(([nt,ft])=>ce.addRule(nt,ft)),ce.compile(),this.multiRegexes[P]=ce,ce}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(P,ce){this.rules.push([P,ce]),ce.type==="begin"&&this.count++}exec(P){const ce=this.getMatcher(this.regexIndex);ce.lastIndex=this.lastIndex;let nt=ce.exec(P);if(this.resumingScanAtSamePosition()&&!(nt&&nt.index===this.lastIndex)){const ft=this.getMatcher(0);ft.lastIndex=this.lastIndex+1,nt=ft.exec(P)}return nt&&(this.regexIndex+=nt.position+1,this.regexIndex===this.count&&this.considerAll()),nt}}function Fe(L){const P=new ke;return L.contains.forEach(ce=>P.addRule(ce.begin,{rule:ce,type:"begin"})),L.terminatorEnd&&P.addRule(L.terminatorEnd,{type:"end"}),L.illegal&&P.addRule(L.illegal,{type:"illegal"}),P}function Pe(L,P){const ce=L;if(L.isCompiled)return ce;[Oe,Gn,Ln,vn].forEach(ft=>ft(L,P)),A.compilerExtensions.forEach(ft=>ft(L,P)),L.__beforeBegin=null,[Nt,Ie,Je].forEach(ft=>ft(L,P)),L.isCompiled=!0;let nt=null;return typeof L.keywords=="object"&&L.keywords.$pattern&&(L.keywords=Object.assign({},L.keywords),nt=L.keywords.$pattern,delete L.keywords.$pattern),nt=nt||/\w+/,L.keywords&&(L.keywords=Jt(L.keywords,A.case_insensitive)),ce.keywordPatternRe=J(nt,!0),P&&(L.begin||(L.begin=/\B|\b/),ce.beginRe=J(ce.begin),!L.end&&!L.endsWithParent&&(L.end=/\B|\b/),L.end&&(ce.endRe=J(ce.end)),ce.terminatorEnd=E(ce.end)||"",L.endsWithParent&&P.terminatorEnd&&(ce.terminatorEnd+=(L.end?"|":"")+P.terminatorEnd)),L.illegal&&(ce.illegalRe=J(L.illegal)),L.contains||(L.contains=[]),L.contains=[].concat(...L.contains.map(function(ft){return en(ft==="self"?L:ft)})),L.contains.forEach(function(ft){Pe(ft,ce)}),L.starts&&Pe(L.starts,P),ce.matcher=Fe(ce),ce}if(A.compilerExtensions||(A.compilerExtensions=[]),A.contains&&A.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return A.classNameAliases=l(A.classNameAliases||{}),Pe(A)}function Ot(A){return A?A.endsWithParent||Ot(A.starts):!1}function en(A){return A.variants&&!A.cachedVariants&&(A.cachedVariants=A.variants.map(function(J){return l(A,{variants:null},J)})),A.cachedVariants?A.cachedVariants:Ot(A)?l(A,{starts:A.starts?l(A.starts):null}):Object.isFrozen(A)?l(A):A}var kt="11.12.0";class zn extends Error{constructor(J,he){super(J),this.name="HTMLInjectionError",this.html=he}}const An=r,tn=l,Ue=Symbol("nomatch"),fn=7,nn=function(A){const J=Object.create(null),he=Object.create(null),ke=[];let Fe=!0;const Pe="Could not find the language '{}', did you forget to load/include a language module?",L={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 ce(re){return P.noHighlightRe.test(re)}function nt(re){let we=re.className+" ";we+=re.parentNode?re.parentNode.className:"";const Ge=P.languageDetectRe.exec(we);if(Ge){const rt=dn(Ge[1]);return rt||(Lt(Pe.replace("{}",Ge[1])),Lt("Falling back to no-highlight mode for this block.",re)),rt?Ge[1]:"no-highlight"}return we.split(/\s+/).find(rt=>ce(rt)||dn(rt))}function ft(re,we,Ge){let rt="",Tt="";typeof we=="object"?(rt=re,Ge=we.ignoreIllegals,Tt=we.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=re,rt=we),Ge===void 0&&(Ge=!0);const qt={code:rt,language:Tt};Rn("before:highlight",qt);const ln=qt.result?qt.result:Jn(qt.language,qt.code,Ge);return ln.code=qt.code,Rn("after:highlight",ln),ln}function Jn(re,we,Ge,rt){const Tt=Object.create(null);function qt(se,me){return se.keywords[me]}function ln(){if(!X.keywords){D.addText(Q);return}let se=0;X.keywordPatternRe.lastIndex=0;let me=X.keywordPatternRe.exec(Q),Ae="";for(;me;){Ae+=Q.substring(se,me.index);const Ye=Gt.case_insensitive?me[0].toLowerCase():me[0],Ke=qt(X,Ye);if(Ke){const[ea,ql]=Ke;if(D.addText(Ae),Ae="",Tt[Ye]=(Tt[Ye]||0)+1,Tt[Ye]<=fn&&(ye+=ql),ea.startsWith("_"))Ae+=me[0];else{const Gs=Gt.classNameAliases[ea]||ea;At(me[0],Gs)}}else Ae+=me[0];se=X.keywordPatternRe.lastIndex,me=X.keywordPatternRe.exec(Q)}Ae+=Q.substring(se),D.addText(Ae)}function Ut(){if(Q==="")return;let se=null;if(typeof X.subLanguage=="string"){if(!J[X.subLanguage]){D.addText(Q);return}se=Jn(X.subLanguage,Q,!0,S[X.subLanguage]),S[X.subLanguage]=se._top}else se=Ja(Q,X.subLanguage.length?X.subLanguage:null);X.relevance>0&&(ye+=se.relevance),D.__addSublanguage(se._emitter,se.language)}function ot(){X.subLanguage!=null?Ut():ln(),Q=""}function At(se,me){se!==""&&(D.startScope(me),D.addText(se),D.endScope())}function tl(se,me){let Ae=1;const Ye=me.length-1;for(;Ae<=Ye;){if(!se._emit[Ae]){Ae++;continue}const Ke=Gt.classNameAliases[se[Ae]]||se[Ae],ea=me[Ae];Ke?At(ea,Ke):(Q=ea,ln(),Q=""),Ae++}}function ti(se,me){return se.scope&&typeof se.scope=="string"&&D.openNode(Gt.classNameAliases[se.scope]||se.scope),se.beginScope&&(se.beginScope._wrap?(At(Q,Gt.classNameAliases[se.beginScope._wrap]||se.beginScope._wrap),Q=""):se.beginScope._multi&&(tl(se.beginScope,me),Q="")),X=Object.create(se,{parent:{value:X}}),X}function ni(se,me,Ae){let Ye=M(se.endRe,Ae);if(Ye){if(se["on:end"]){const Ke=new i(se);se["on:end"](me,Ke),Ke.isMatchIgnored&&(Ye=!1)}if(Ye){for(;se.endsParent&&se.parent;)se=se.parent;return se}}if(se.endsWithParent)return ni(se.parent,me,Ae)}function Ca(se){return X.matcher.regexIndex===0?(Q+=se[0],1):(Ze=!0,0)}function nl(se){const me=se[0],Ae=se.rule,Ye=new i(Ae),Ke=[Ae.__beforeBegin,Ae["on:begin"]];for(const ea of Ke)if(ea&&(ea(se,Ye),Ye.isMatchIgnored))return Ca(me);return Ae.skip?Q+=me:(Ae.excludeBegin&&(Q+=me),ot(),!Ae.returnBegin&&!Ae.excludeBegin&&(Q=me)),ti(Ae,se),Ae.returnBegin?0:me.length}function Sn(se){const me=se[0],Ae=we.substring(se.index),Ye=ni(X,se,Ae);if(!Ye)return Ue;const Ke=X;X.endScope&&X.endScope._wrap?(ot(),At(me,X.endScope._wrap)):X.endScope&&X.endScope._multi?(ot(),tl(X.endScope,se)):Ke.skip?Q+=me:(Ke.returnEnd||Ke.excludeEnd||(Q+=me),ot(),Ke.excludeEnd&&(Q=me));do X.scope&&D.closeNode(),!X.skip&&!X.subLanguage&&(ye+=X.relevance),X=X.parent;while(X!==Ye.parent);return Ye.starts&&ti(Ye.starts,se),Ke.returnEnd?0:me.length}function ai(){const se=[];for(let me=X;me!==Gt;me=me.parent)me.scope&&se.unshift(me.scope);se.forEach(me=>D.openNode(me))}let Da={};function ii(se,me){const Ae=me&&me[0];if(Q+=se,Ae==null)return ot(),0;if(Da.type==="begin"&&me.type==="end"&&Da.index===me.index&&Ae===""){if(Q+=we.slice(me.index,me.index+1),!Fe){const Ye=new Error(`0 width match regex (${re})`);throw Ye.languageName=re,Ye.badRule=Da.rule,Ye}return 1}if(Da=me,me.type==="begin")return nl(me);if(me.type==="illegal"&&!Ge){const Ye=new Error('Illegal lexeme "'+Ae+'" for mode "'+(X.scope||"<unnamed>")+'"');throw Ye.mode=X,Ye}else if(me.type==="end"){const Ye=Sn(me);if(Ye!==Ue)return Ye}if(me.type==="illegal"&&Ae==="")return me.index===we.length||(Q+=`
|
|
166
|
-
`),1;if(je>1e5&&je>me.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Q+=Ae,Ae.length}const Gt=dn(re);if(!Gt)throw it(Pe.replace("{}",re)),new Error('Unknown language: "'+re+'"');const La=En(Gt);let Sa="",X=rt||La;const S={},D=new P.__emitter(P);ai();let Q="",ye=0,_e=0,je=0,Ze=!1;try{if(Gt.__emitTokens)Gt.__emitTokens(we,D);else{for(X.matcher.considerAll();;){je++,Ze?Ze=!1:X.matcher.considerAll(),X.matcher.lastIndex=_e;const se=X.matcher.exec(we);if(!se)break;const me=we.substring(_e,se.index),Ae=ii(me,se);_e=se.index+Ae}ii(we.substring(_e))}return D.finalize(),Sa=D.toHTML(),{language:re,value:Sa,relevance:ye,illegal:!1,_emitter:D,_top:X}}catch(se){if(se.message&&se.message.includes("Illegal"))return{language:re,value:An(we),illegal:!0,relevance:0,_illegalBy:{message:se.message,index:_e,context:we.slice(_e-100,_e+100),mode:se.mode,resultSoFar:Sa},_emitter:D};if(Fe)return{language:re,value:An(we),illegal:!1,relevance:0,errorRaised:se,_emitter:D,_top:X};throw se}}function ya(re){const we={value:An(re),illegal:!1,relevance:0,_top:L,_emitter:new P.__emitter(P)};return we._emitter.addText(re),we}function Ja(re,we){we=we||P.languages||Object.keys(J);const Ge=ya(re),rt=we.filter(dn).filter(Ea).map(ot=>Jn(ot,re,!1));rt.unshift(Ge);const Tt=rt.sort((ot,At)=>{if(ot.relevance!==At.relevance)return At.relevance-ot.relevance;if(ot.language&&At.language){if(dn(ot.language).supersetOf===At.language)return 1;if(dn(At.language).supersetOf===ot.language)return-1}return 0}),[qt,ln]=Tt,Ut=qt;return Ut.secondBest=ln,Ut}function _n(re,we,Ge){const rt=we&&he[we]||Ge;re.classList.add("hljs"),re.classList.add(`language-${rt}`)}function Mt(re){let we=null;const Ge=nt(re);if(ce(Ge))return;if(Rn("before:highlightElement",{el:re,language:Ge}),re.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",re);return}if(re.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(re)),P.throwUnescapedHTML))throw new zn("One of your code blocks includes unescaped HTML.",re.innerHTML);we=re;const rt=we.textContent,Tt=Ge?ft(rt,{language:Ge,ignoreIllegals:!0}):Ja(rt);re.innerHTML=Tt.value,re.dataset.highlighted="yes",_n(re,Ge,Tt.language),re.result={language:Tt.language,re:Tt.relevance,relevance:Tt.relevance},Tt.secondBest&&(re.secondBest={language:Tt.secondBest.language,relevance:Tt.secondBest.relevance}),Rn("after:highlightElement",{el:re,result:Tt,text:rt})}function an(re){P=tn(P,re)}const st=()=>{ka(),bt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Wn(){ka(),bt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let el=!1;function ka(){function re(){ka()}if(document.readyState==="loading"){el||window.addEventListener("DOMContentLoaded",re,!1),el=!0;return}document.querySelectorAll(P.cssSelector).forEach(Mt)}function Wa(re,we){let Ge=null;try{Ge=we(A)}catch(rt){if(it("Language definition for '{}' could not be registered.".replace("{}",re)),Fe)it(rt);else throw rt;Ge=L}Ge.name||(Ge.name=re),J[re]=Ge,Ge.rawDefinition=we.bind(null,A),Ge.aliases&&ca(Ge.aliases,{languageName:re})}function va(re){delete J[re];for(const we of Object.keys(he))he[we]===re&&delete he[we]}function ei(){return Object.keys(J)}function dn(re){return re=(re||"").toLowerCase(),J[re]||J[he[re]]}function ca(re,{languageName:we}){typeof re=="string"&&(re=[re]),re.forEach(Ge=>{he[Ge.toLowerCase()]=we})}function Ea(re){const we=dn(re);return we&&!we.disableAutodetect}function _a(re){re["before:highlightBlock"]&&!re["before:highlightElement"]&&(re["before:highlightElement"]=we=>{re["before:highlightBlock"](Object.assign({block:we.el},we))}),re["after:highlightBlock"]&&!re["after:highlightElement"]&&(re["after:highlightElement"]=we=>{re["after:highlightBlock"](Object.assign({block:we.el},we))})}function ht(re){_a(re),ke.push(re)}function Ma(re){const we=ke.indexOf(re);we!==-1&&ke.splice(we,1)}function Rn(re,we){const Ge=re;ke.forEach(function(rt){rt[Ge]&&rt[Ge](we)})}function ua(re){return bt("10.7.0","highlightBlock will be removed entirely in v12.0"),bt("10.7.0","Please use highlightElement now."),Mt(re)}Object.assign(A,{highlight:ft,highlightAuto:Ja,highlightAll:ka,highlightElement:Mt,highlightBlock:ua,configure:an,initHighlighting:st,initHighlightingOnLoad:Wn,registerLanguage:Wa,unregisterLanguage:va,listLanguages:ei,getLanguage:dn,registerAliases:ca,autoDetection:Ea,inherit:tn,addPlugin:ht,removePlugin:Ma}),A.debugMode=function(){Fe=!1},A.safeMode=function(){Fe=!0},A.versionString=kt,A.regex={concat:C,lookahead:_,either:j,optional:x,anyNumberOfTimes:N};for(const re in ze)typeof ze[re]=="object"&&s(ze[re]);return Object.assign(A,ze),A},zt=nn({});return zt.newInstance=()=>nn({}),Au=zt,zt.HighlightJS=zt,zt.default=zt,Au}var Ru,Zm;function z_(){if(Zm)return Ru;Zm=1;function s(i){const r=i.regex,l=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,h={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},g={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},v=i.inherit(g,{begin:/\(/,end:/\)/}),m=i.inherit(i.APOS_STRING_MODE,{className:"string"}),p=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[h]},{begin:/'/,end:/'/,contains:[h]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[g,p,m,v,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[g,v,p,m]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},h,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[p]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(l,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Ru=s,Ru}var Ou,Xm;function U_(){if(Xm)return Ou;Xm=1;function s(i){const r=i.regex,l={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[l]}]};Object.assign(l,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const h={className:"subst",begin:/\$\(/,end:/\)/,contains:[i.BACKSLASH_ESCAPE]},g=i.inherit(i.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),v={begin:/<<-?\s*(?=\w+)/,starts:{contains:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},m={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,l,h]};h.contains.push(m);const p={match:/\\"/},b={className:"string",begin:/'/,end:/'/},E={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},i.NUMBER_MODE,l]},N=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],x=i.SHEBANG({binary:`(${N.join("|")})`,relevance:10}),C={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[i.inherit(i.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},R=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],j=["true","false"],B={match:/(\/[a-z._-]+)+/},M=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],ee=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],H=["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"],te=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:R,literal:j,built_in:[...M,...ee,"set","shopt",...H,...te]},contains:[x,i.SHEBANG(),C,_,g,v,B,m,p,b,E,l]}}return Ou=s,Ou}var ku,Qm;function B_(){if(Qm)return ku;Qm=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",h="[a-zA-Z_]\\w*::",v="("+u+"|"+r.optional(h)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",m=r.concat(/\batomic_/,r.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),p={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:m}]},E={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},i.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},_={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},N={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},E,{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 elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},i.inherit(E,{className:"string"}),l,i.C_BLOCK_COMMENT_MODE]},C=[N,x],R={className:"title",begin:r.optional(h)+i.IDENT_RE,relevance:0},j=r.optional(h)+i.IDENT_RE+"\\s*\\(",B=12,H={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"},te=[...C,p,l,i.C_BLOCK_COMMENT_MODE,_,E],ae={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:H,contains:te.concat([{begin:/\(/,end:/\)/,keywords:H,contains:te.concat(["self"]),relevance:0}]),relevance:0},O={begin:"("+v+"[\\*&\\s]+){1,"+B+"}"+j,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:H,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:H,relevance:0},{begin:j,returnBegin:!0,contains:[i.inherit(R,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,E,_,p,{begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,E,_,p]}]},p,l,i.C_BLOCK_COMMENT_MODE,...C]};return{name:"C",aliases:["h"],keywords:H,disableAutodetect:!0,illegal:"</",contains:[].concat(ae,O,te,[...C,{begin:i.IDENT_RE+"::",keywords:H},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},i.TITLE_MODE]}]),exports:{preprocessor:x,strings:E,keywords:H}}}return ku=s,ku}var Mu,Vm;function I_(){if(Vm)return Mu;Vm=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",h="[a-zA-Z_]\\w*::",v="(?!struct)("+u+"|"+r.optional(h)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",m={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},i.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},E={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},_={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},b,{scope:"string",begin:/<.*?>/},l,i.C_BLOCK_COMMENT_MODE]},N={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]},x=[_,N],C={className:"title",begin:r.optional(h)+i.IDENT_RE,relevance:0},R=r.optional(h)+i.IDENT_RE+"\\s*\\(",j=12,B=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],M=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],ee=["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"],H=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],O={type:M,keyword:B,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:ee},q={className:"function.dispatch",relevance:0,keywords:{_hint:H},begin:r.concat(/\b/,`(?!${B.join("|")})`,i.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},V=[q,...x,m,l,i.C_BLOCK_COMMENT_MODE,E,b],F={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:O,contains:V.concat([{begin:/\(/,end:/\)/,keywords:O,contains:V.concat(["self"]),relevance:0}]),relevance:0},oe={className:"function",begin:"("+v+"[\\*&\\s]+){1,"+j+"}"+R,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:O,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:O,relevance:0},{begin:R,returnBegin:!0,contains:[C],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,E]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,b,E,m,{begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,b,E,m]}]},m,l,i.C_BLOCK_COMMENT_MODE,...x]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:O,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(F,oe,q,V,[...x,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:O,contains:["self",m]},{begin:i.IDENT_RE+"::",keywords:O},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Mu=s,Mu}var Cu,Jm;function j_(){if(Jm)return Cu;Jm=1;function s(i){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],l=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],h=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],g=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],v={keyword:h.concat(g),built_in:r,literal:u},m=i.inherit(i.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),p="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",_={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+b},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+b},{begin:"(-?)(\\b"+p+"(\\.("+p+")?)?|\\."+p+")([eE][-+]?"+p+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},N={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},x={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},C=i.inherit(x,{illegal:/\n/}),R={className:"subst",begin:/\{/,end:/\}/,keywords:v},j=i.inherit(R,{illegal:/\n/}),B={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},i.BACKSLASH_ESCAPE,j]},M={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},R]},ee=i.inherit(M,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},j]});R.contains=[M,B,x,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.C_BLOCK_COMMENT_MODE],j.contains=[ee,B,C,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.inherit(i.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const H={variants:[N,M,B,x,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},te={begin:"<",end:">",contains:[{beginKeywords:"in out"},m]},ae=i.IDENT_RE+"(<"+i.IDENT_RE+"(\\s*,\\s*"+i.IDENT_RE+")*>)?(\\[\\])?",O={begin:"@"+i.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:v,illegal:/::/,contains:[i.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},H,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},m,te,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,te,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:"("+ae+"\\s+)+"+i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:v,contains:[{beginKeywords:l.join(" "),relevance:0},{begin:i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[i.TITLE_MODE,te],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,relevance:0,contains:[H,_,i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},O]}}return Cu=s,Cu}var Du,Wm;function H_(){if(Wm)return Du;Wm=1;const s=p=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:p.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:p.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),h=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),v=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function m(p){const b=p.regex,E=s(p),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},N="and or not only",x=/@-?\w[\w]*(-\w+)*/,C="[a-zA-Z-][a-zA-Z0-9_-]*",R=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[E.BLOCK_COMMENT,_,E.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+C,relevance:0},E.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+h.join("|")+")"},{begin:":(:)?("+g.join("|")+")"}]},E.CSS_VARIABLE,{className:"attribute",begin:"\\b("+v.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[E.BLOCK_COMMENT,E.HEXCOLOR,E.IMPORTANT,E.CSS_NUMBER_MODE,E.UNICODE_RANGE,...R,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...R,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},E.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:x},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:N,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...R,E.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b"}]}}return Du=m,Du}var Lu,eg;function q_(){if(eg)return Lu;eg=1;function s(i){const r=i.regex,l={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},h={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},g={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},v={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},m=/[A-Za-z][A-Za-z0-9+.-]*/,p={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,m,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},E={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},_=i.inherit(b,{contains:[]}),N=i.inherit(E,{contains:[]});b.contains.push(N),E.contains.push(_);let x=[l,p];return[b,E,_,N].forEach(B=>{B.contains=B.contains.concat(x)}),x=x.concat(b,E),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:x},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:x}]}]},l,g,u,b,E,{className:"quote",begin:"^>\\s+",contains:x,end:"$"},h,p,v,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Lu=s,Lu}var zu,tg;function G_(){if(tg)return zu;tg=1;function s(i){const r=i.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return zu=s,zu}var Uu,ng;function $_(){if(ng)return Uu;ng=1;function s(i){const r=i.regex,l="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),h=r.concat(u,/(::\w+)*/),v={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},m={className:"doctag",begin:"@[A-Za-z]+"},p={begin:"#<",end:">"},b=[i.COMMENT("#","$",{contains:[m]}),i.COMMENT("^=begin","^=end",{contains:[m],relevance:10}),i.COMMENT("^__END__",i.MATCH_NOTHING_RE)],E={className:"subst",begin:/#\{/,end:/\}/,keywords:v},_={className:"string",contains:[i.BACKSLASH_ESCAPE,E],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[i.BACKSLASH_ESCAPE,E]})]}]},N="[1-9](_?[0-9])*|0",x="[0-9](_?[0-9])*",C={className:"number",relevance:0,variants:[{begin:`\\b(${N})(\\.(${x}))?([eE][+-]?(${x})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},R={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:v}]},ae=[_,{variants:[{match:[/class\s+/,h,/\s+<\s+/,h]},{match:[/\b(class|module)\s+/,h]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:v},{match:[/(include|extend)\s+/,h],scope:{2:"title.class"},keywords:v},{relevance:0,match:[h,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:u,scope:"title.class"},{match:[/def/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[R]},{begin:"::"},{className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:l}],relevance:0},C,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:v},{begin:"("+i.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[i.BACKSLASH_ESCAPE,E],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(p,b),relevance:0}].concat(p,b);E.contains=ae,R.contains=ae;const F=[{begin:/^\s*=>/,starts:{end:"$",contains:ae}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:v,contains:ae}}];return b.unshift(p),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:v,illegal:/\/\*/,contains:[i.SHEBANG({binary:"ruby"})].concat(F).concat(b).concat(ae)}}return Uu=s,Uu}var Bu,ag;function Y_(){if(ag)return Bu;ag=1;function s(i){const g={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:g,illegal:"</",contains:[i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{className:"string",variants:[i.QUOTE_STRING_MODE,i.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[i.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:g,illegal:/["']/}]}]}}return Bu=s,Bu}var Iu,ig;function F_(){if(ig)return Iu;ig=1;function s(i){const r=i.regex,l=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[i.HASH_COMMENT_MODE,i.QUOTE_STRING_MODE,i.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(l,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Iu=s,Iu}var ju,lg;function K_(){if(lg)return ju;lg=1;function s(i){const r=i.regex,l={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:i.NUMBER_RE}]},u=i.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const h={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},g={className:"literal",begin:/\bon|off|true|false|yes|no\b/},v={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},m={begin:/\[/,end:/\]/,contains:[u,g,h,v,l,"self"],relevance:0},p=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,E=/'[^']*'/,_=r.either(p,b,E),N=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:N,className:"attr",starts:{end:/$/,contains:[u,m,g,h,v,l]}}]}}return ju=s,ju}var Hu,sg;function P_(){if(sg)return Hu;sg=1;var s="[0-9](_*[0-9])*",i=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(g,v,m){return m===-1?"":g.replace(v,p=>u(g,v,m-1))}function h(g){const v=g.regex,m="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",p="(?:(?:\\s*\\[\\s*])+)?",b=m+"<@@@>"+p,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",N=u("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),B={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},M={className:"meta",begin:"@"+m,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},ee={className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[g.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:B,illegal:/<\/|#/,contains:[g.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[g.BACKSLASH_ESCAPE]},g.APOS_STRING_MODE,g.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,m],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[m,v.concat(N,p,/\s+/),m,p,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,m],className:{1:"keyword",3:"title.class"},contains:[ee,g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE]},{begin:[m,v.concat(N,p,/\s+/),m,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:B,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[M,g.APOS_STRING_MODE,g.QUOTE_STRING_MODE,l,g.C_BLOCK_COMMENT_MODE]},g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE]},l,M]}}return Hu=h,Hu}var qu,rg;function Z_(){if(rg)return qu;rg=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",i=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],l=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],h=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],g=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],v=[].concat(h,l,u);function m(p){const b=p.regex,E=(pe,{after:Ce})=>{const xe="</"+pe[0].slice(1);return pe.input.indexOf(xe,Ce)!==-1},_=s,N={begin:"<>",end:"</>"},x=/<[A-Za-z0-9\\._:-]+\s*\/>/,C={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(pe,Ce)=>{const xe=pe[0].length+pe.index,ze=pe.input[xe];if(ze==="<"||ze===","){Ce.ignoreMatch();return}ze===">"&&(E(pe,{after:xe})||Ce.ignoreMatch());let De;const Oe=pe.input.substring(xe);if(De=Oe.match(/^\s*=/)){Ce.ignoreMatch();return}if((De=Oe.match(/^\s+extends\s+/))&&De.index===0){Ce.ignoreMatch();return}}},R={$pattern:s,keyword:i,literal:r,built_in:v,"variable.language":g},j="[0-9](_?[0-9])*",B=`\\.(${j})`,M="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",ee={className:"number",variants:[{begin:`(\\b(${M})((${B})|\\.)?|(${B}))[eE][+-]?(${j})\\b`},{begin:`\\b(${M})\\b((${B})\\b|\\.)?|(${B})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},H={className:"subst",begin:"\\$\\{",end:"\\}",keywords:R,contains:[]},te={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,H],subLanguage:"xml"}},ae={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,H],subLanguage:"css"}},O={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,H],subLanguage:"graphql"}},q={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,H]},F={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]},oe=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,te,ae,O,q,{match:/\$\d+/},ee];H.contains=oe.concat({begin:/\{/,end:/\}/,keywords:R,contains:["self"].concat(oe)});const be=[].concat(F,H.contains),Ne=be.concat([{begin:/(\s*)\(/,end:/\)/,keywords:R,contains:["self"].concat(be)}]),ge={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,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"}}]},le={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},de={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Se={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[ge],illegal:/%/},Be={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function T(pe){return b.concat("(?!",pe.join("|"),")")}const z={match:b.concat(/\b/,T([...h,"super","import","await"].map(pe=>`${pe}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},Y={begin:b.concat(/\./,b.lookahead(b.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},fe={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},ge]},ve="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",Re={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(ve)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[ge]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:R,exports:{PARAMS_CONTAINS:Ne,CLASS_REFERENCE:le},illegal:/#(?![$_A-Za-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),de,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,te,ae,O,q,F,{match:/\$\d+/},ee,le,{scope:"attr",match:_+b.lookahead(":"),relevance:0},Re,{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,p.REGEXP_MODE,{className:"function",begin:ve,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,contains:Ne}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:N.begin,end:N.end},{match:x},{begin:C.begin,"on:begin":C.isTrulyOpeningTag,end:C.end}],subLanguage:"xml",contains:[{begin:C.begin,end:C.end,skip:!0,contains:["self"]}]}]},Se,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[ge,p.inherit(p.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},Y,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[ge]},z,Be,I,fe,{match:/\$[(.]/}]}}return qu=m,qu}var Gu,og;function X_(){if(og)return Gu;og=1;const i={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(l){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},h={match:/[{}[\],:]/,className:"punctuation",relevance:0},g=["true","false","null"],v={scope:"literal",beginKeywords:g.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:g},contains:[u,h,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,v,i,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Gu=r,Gu}var $u,cg;function Q_(){if(cg)return $u;cg=1;var s="[0-9](_*[0-9])*",i=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(h){const g={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},v={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},m={className:"symbol",begin:h.UNDERSCORE_IDENT_RE+"@"},p={className:"subst",begin:/\$\{/,end:/\}/,contains:[h.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+h.UNDERSCORE_IDENT_RE},E={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,p]},{begin:"'",end:"'",illegal:/\n/,contains:[h.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[h.BACKSLASH_ESCAPE,b,p]}]};p.contains.push(E);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+h.UNDERSCORE_IDENT_RE+")?"},N={className:"meta",begin:"@"+h.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[h.inherit(E,{className:"string"}),"self"]}]},x=l,C=h.COMMENT("/\\*","\\*/",{contains:[h.C_BLOCK_COMMENT_MODE]}),R={variants:[{className:"type",begin:h.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},j=R;return j.variants[1].contains=[R],R.variants[1].contains=[j],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:g,contains:[h.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),h.C_LINE_COMMENT_MODE,C,v,m,_,N,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:g,relevance:5,contains:[{begin:h.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[h.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:g,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[R,h.C_LINE_COMMENT_MODE,C],relevance:0},h.C_LINE_COMMENT_MODE,C,_,N,E,h.C_NUMBER_MODE]},C]},{begin:[/class|interface|trait/,/\s+/,h.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},h.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,N]},E,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
167
|
-
`},x]}}return $u=u,$u}var Yu,ug;function V_(){if(ug)return Yu;ug=1;const s=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),h=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),v=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),m=h.concat(g).sort().reverse();function p(b){const E=s(b),_=m,N="and or not only",x="[\\w-]+",C="("+x+"|@\\{"+x+"\\})",R=[],j=[],B=function(be){return{className:"string",begin:"~?"+be+".*?"+be}},M=function(be,Ne,ge){return{className:be,begin:Ne,relevance:ge}},ee={$pattern:/[a-z-]+/,keyword:N,attribute:u.join(" ")},H={begin:"\\(",end:"\\)",contains:j,keywords:ee,relevance:0};j.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,B("'"),B('"'),E.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},E.UNICODE_RANGE,E.HEXCOLOR,H,M("variable","@@?"+x,10),M("variable","@\\{"+x+"\\}"),M("built_in","~?`[^`]*?`"),{className:"attribute",begin:x+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},E.IMPORTANT,{beginKeywords:"and not"},E.FUNCTION_DISPATCH);const te=j.concat({begin:/\{/,end:/\}/,contains:R}),ae={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(j)},O={begin:C+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},E.CSS_VARIABLE,{className:"attribute",begin:"\\b("+v.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:j}}]},q={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:ee,returnEnd:!0,contains:j,relevance:0}},V={className:"variable",variants:[{begin:"@"+x+"\\s*:",relevance:15},{begin:"@"+x}],starts:{end:"[;}]",returnEnd:!0,contains:te}},F={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:C,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,ae,M("keyword","all\\b"),M("variable","@\\{"+x+"\\}"),{begin:"\\b("+l.join("|")+")\\b",className:"selector-tag"},E.CSS_NUMBER_MODE,M("selector-tag",C,0),M("selector-id","#"+C),M("selector-class","\\."+C,0),M("selector-tag","&",0),E.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+h.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+g.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:te},{begin:"!important"},E.FUNCTION_DISPATCH]},oe={begin:x+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[F]};return R.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,q,V,oe,O,F,ae,E.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:R}}return Yu=p,Yu}var Fu,fg;function J_(){if(fg)return Fu;fg=1;function s(i){const r="\\[=*\\[",l="\\]=*\\]",u={begin:r,end:l,contains:["self"]},h=[i.COMMENT("--(?!"+r+")","$"),i.COMMENT("--"+r,l,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:i.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:h.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[i.inherit(i.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:h}].concat(h)},i.C_NUMBER_MODE,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{className:"string",begin:r,end:l,contains:[u],relevance:5}])}}return Fu=s,Fu}var Ku,dg;function W_(){if(dg)return Ku;dg=1;function s(i){const r={className:"variable",variants:[{begin:"\\$\\("+i.UNDERSCORE_IDENT_RE+"\\)",contains:[i.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},l={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,r]},u={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,l]},h={begin:"^"+i.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},g={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},v={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[i.HASH_COMMENT_MODE,r,l,u,h,g,v]}}return Ku=s,Ku}var Pu,hg;function e0(){if(hg)return Pu;hg=1;function s(i){const r=i.regex,l=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,h={$pattern:/[\w.]+/,keyword:l.join(" ")},g={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:h},v={begin:/->\{/,end:/\}/},m={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},p={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[m]},b={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},E=[i.BACKSLASH_ESCAPE,g,p],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],N=(R,j,B="\\1")=>{const M=B==="\\1"?B:r.concat(B,j);return r.concat(r.concat("(?:",R,")"),j,/(?:\\.|[^\\\/])*?/,M,/(?:\\.|[^\\\/])*?/,B,u)},x=(R,j,B)=>r.concat(r.concat("(?:",R,")"),j,/(?:\\.|[^\\\/])*?/,B,u),C=[p,i.HASH_COMMENT_MODE,i.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),v,{className:"string",contains:E,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},b,{begin:"(\\/\\/|"+i.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[i.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:N("s|tr|y",r.either(..._,{capture:!0}))},{begin:N("s|tr|y","\\(","\\)")},{begin:N("s|tr|y","\\[","\\]")},{begin:N("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:x("(?:m|qr)?",/\//,/\//)},{begin:x("m|qr",r.either(..._,{capture:!0}),/\1/)},{begin:x("m|qr",/\(/,/\)/)},{begin:x("m|qr",/\[/,/\]/)},{begin:x("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[i.TITLE_MODE,m]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[i.TITLE_MODE,m,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return g.contains=C,v.contains=C,{name:"Perl",aliases:["pl","pm"],keywords:h,contains:C}}return Pu=s,Pu}var Zu,pg;function t0(){if(pg)return Zu;pg=1;function s(i){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},l=/[a-zA-Z@][a-zA-Z0-9_]*/,m={"variable.language":["this","super"],$pattern:l,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},p={$pattern:l,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:m,illegal:"</",contains:[r,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.C_NUMBER_MODE,i.QUOTE_STRING_MODE,i.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+p.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:p,contains:[i.UNDERSCORE_TITLE_MODE]},{begin:"\\."+i.UNDERSCORE_IDENT_RE,relevance:0}]}}return Zu=s,Zu}var Xu,mg;function n0(){if(mg)return Xu;mg=1;function s(i){const r=i.regex,l=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,l),h=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,l),g=r.concat(/[A-Z]+/,l),v={scope:"variable",match:"\\$+"+u},m={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},p={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=i.inherit(i.APOS_STRING_MODE,{illegal:null}),E=i.inherit(i.QUOTE_STRING_MODE,{illegal:null,contains:i.QUOTE_STRING_MODE.contains.concat(p)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:i.QUOTE_STRING_MODE.contains.concat(p),"on:begin":(ge,I)=>{I.data._beginMatch=ge[1]||ge[2]},"on:end":(ge,I)=>{I.data._beginMatch!==ge[1]&&I.ignoreMatch()}},N=i.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),x=`[
|
|
168
|
-
]`,C={scope:"string",variants:[E,b,_,N]},R={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},j=["false","null","true"],B=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],M=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],H={keyword:B,literal:(ge=>{const I=[];return ge.forEach(le=>{I.push(le),le.toLowerCase()===le?I.push(le.toUpperCase()):I.push(le.toLowerCase())}),I})(j),built_in:M},te=ge=>ge.map(I=>I.replace(/\|\d+$/,"")),ae={variants:[{match:[/new/,r.concat(x,"+"),r.concat("(?!",te(M).join("\\b|"),"\\b)"),h],scope:{1:"keyword",4:"title.class"}}]},O=r.concat(u,"\\b(?!\\()"),q={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),O],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[h,r.concat(/::/,r.lookahead(/(?!class\b)/)),O],scope:{1:"title.class",3:"variable.constant"}},{match:[h,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[h,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},V={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},F={relevance:0,begin:/\(/,end:/\)/,keywords:H,contains:[V,v,q,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,C,R,ae]},oe={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",te(B).join("\\b|"),"|",te(M).join("\\b|"),"\\b)"),u,r.concat(x,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[F]};F.contains.push(oe);const be=[V,q,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,C,R,ae],Ne={begin:r.concat(/#\[\s*\\?/,r.either(h,g)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:j,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:j,keyword:["new","array"]},contains:["self",...be]},...be,{scope:"meta",variants:[{match:h},{match:g}]}]};return{case_insensitive:!1,keywords:H,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/},v,oe,q,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},ae,{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:H,contains:["self",Ne,v,q,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,C,R]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},i.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[i.inherit(i.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},i.UNDERSCORE_TITLE_MODE]},C,R]}}return Xu=s,Xu}var Qu,gg;function a0(){if(gg)return Qu;gg=1;function s(i){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},i.inherit(i.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),i.inherit(i.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return Qu=s,Qu}var Vu,bg;function i0(){if(bg)return Vu;bg=1;function s(i){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Vu=s,Vu}var Ju,yg;function l0(){if(yg)return Ju;yg=1;function s(i){const r=i.regex,l=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],m={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},p={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:m,illegal:/#/},E={begin:/\{\{/,relevance:0},_={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,p],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,p],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,p,E,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,p,E,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[i.BACKSLASH_ESCAPE,E,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,E,b]},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},N="[0-9](_?[0-9])*",x=`(\\b(${N}))?\\.(${N})|\\b(${N})\\.`,C=`\\b|${u.join("|")}`,R={className:"number",relevance:0,variants:[{begin:`(\\b(${N})|(${x}))[eE][+-]?(${N})[jJ]?(?=${C})`},{begin:`(${x})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${C})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${C})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${C})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${C})`},{begin:`\\b(${N})[jJ](?=${C})`}]},j={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:m,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},B={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:["self",p,R,_,i.HASH_COMMENT_MODE]}]};return b.contains=[_,R,p],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:m,illegal:/(<\/|\?)|=>/,contains:[p,R,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,j,i.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[B]},{variants:[{match:[/\bclass/,/\s+/,l,/\s*/,/\(\s*/,l,/\s*\)/]},{match:[/\bclass/,/\s+/,l]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[R,B,_]}]}}return Ju=s,Ju}var Wu,vg;function s0(){if(vg)return Wu;vg=1;function s(i){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Wu=s,Wu}var ef,Eg;function r0(){if(Eg)return ef;Eg=1;function s(i){const r=i.regex,l=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),h=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,g=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:l,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[i.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:l},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),i.HASH_COMMENT_MODE,{scope:"string",contains:[i.BACKSLASH_ESCAPE],variants:[i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[h,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[g,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[l,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:h},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:g},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return ef=s,ef}var tf,_g;function o0(){if(_g)return tf;_g=1;function s(i){const r=i.regex,l=/(r#)?/,u=r.concat(l,i.UNDERSCORE_IDENT_RE),h=r.concat(l,i.IDENT_RE),g={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,h,r.lookahead(/\s*\(/))},v="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",m=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],p=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],E=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:i.IDENT_RE+"!?",type:E,keyword:m,literal:p,built_in:b},illegal:"</",contains:[i.C_LINE_COMMENT_MODE,i.COMMENT("/\\*","\\*/",{contains:["self"]}),i.inherit(i.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+v},{begin:"\\b0o([0-7_]+)"+v},{begin:"\\b0x([A-Fa-f0-9_]+)"+v},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+v}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,u],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,u,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:i.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:E}},{scope:"punctuation",begin:"->"},g]}}return tf=s,tf}var nf,Sg;function c0(){if(Sg)return nf;Sg=1;const s=p=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:p.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:p.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),h=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),v=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function m(p){const b=s(p),E=g,_=h,N="@[a-z-]+",x="and or not only",R={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+E.join("|")+")"},R,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+v.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,R,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,p.QUOTE_STRING_MODE,p.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:N,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},contains:[{begin:N,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},R,p.QUOTE_STRING_MODE,p.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return nf=m,nf}var af,Tg;function u0(){if(Tg)return af;Tg=1;function s(i){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return af=s,af}var lf,Ng;function f0(){if(Ng)return lf;Ng=1;function s(i){const r=i.regex,l=i.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},h={begin:/"/,end:/"/,contains:[{match:/""/}]},g=["true","false","unknown"],v=["double precision","large object","with timezone","without timezone"],m=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],p=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],E=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],_=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],N=["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"],x=E,C=[...b,...p].filter(te=>!E.includes(te)),R={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},j={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},B={match:r.concat(/\b/,r.either(...x),/\s*\(/),relevance:0,keywords:{built_in:x}};function M(te){return r.concat(/\b/,r.either(...te.map(ae=>ae.replace(/\s+/,"\\s+"))),/\b/)}const ee={scope:"keyword",match:M(N),relevance:0};function H(te,{exceptions:ae,when:O}={}){const q=O;return ae=ae||[],te.map(V=>V.match(/\|\d+$/)||ae.includes(V)?V:q(V)?`${V}|0`:V)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:H(C,{when:te=>te.length<3}),literal:g,type:m,built_in:_},contains:[{scope:"type",match:M(v)},ee,B,R,u,h,i.C_NUMBER_MODE,i.C_BLOCK_COMMENT_MODE,l,j]}}return lf=s,lf}var sf,xg;function d0(){if(xg)return sf;xg=1;function s(O){return O?typeof O=="string"?O:O.source:null}function i(O){return r("(?=",O,")")}function r(...O){return O.map(V=>s(V)).join("")}function l(O){const q=O[O.length-1];return typeof q=="object"&&q.constructor===Object?(O.splice(O.length-1,1),q):{}}function u(...O){return"("+(l(O).capture?"":"?:")+O.map(F=>s(F)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const h=O=>r(/\b/,O,/\w$/.test(O)?/\b/:/\B/),g=["Protocol","Type"].map(h),v=["init","self"].map(h),m=["Any","Self"],p=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],b=["false","nil","true"],E=["assignment","associativity","higherThan","left","lowerThan","none","right"],_=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],N=["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"],x=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),C=u(x,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),R=r(x,C,"*"),j=u(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),B=u(j,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),M=r(j,B,"*"),ee=r(/[A-Z]/,B,"*"),H=["attached","autoclosure",r(/convention\(/,u("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,M,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],te=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ae(O){const q={match:/\s+/,relevance:0},V=O.COMMENT("/\\*","\\*/",{contains:["self"]}),F=[O.C_LINE_COMMENT_MODE,V],oe={match:[/\./,u(...g,...v)],className:{2:"keyword"}},be={match:r(/\./,u(...p)),relevance:0},Ne=p.filter(Ue=>typeof Ue=="string").concat(["_|0"]),ge=p.filter(Ue=>typeof Ue!="string").concat(m).map(h),I={variants:[{className:"keyword",match:u(...ge,...v)}]},le={$pattern:u(/\b\w+/,/#\w+/),keyword:Ne.concat(_),literal:b},de=[oe,be,I],Se={match:r(/\./,u(...N)),relevance:0},Be={className:"built_in",match:r(/\b/,u(...N),/(?=\()/)},T=[Se,Be],z={match:/->/,relevance:0},Y={className:"operator",relevance:0,variants:[{match:R},{match:`\\.(\\.|${C})+`}]},fe=[z,Y],ve="([0-9]_*)+",Re="([0-9a-fA-F]_*)+",pe={className:"number",relevance:0,variants:[{match:`\\b(${ve})(\\.(${ve}))?([eE][+-]?(${ve}))?\\b`},{match:`\\b0x(${Re})(\\.(${Re}))?([pP][+-]?(${ve}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Ce=(Ue="")=>({className:"subst",variants:[{match:r(/\\/,Ue,/[0\\tnr"']/)},{match:r(/\\/,Ue,/u\{[0-9a-fA-F]{1,8}\}/)}]}),xe=(Ue="")=>({className:"subst",match:r(/\\/,Ue,/[\t ]*(?:[\r\n]|\r\n)/)}),ze=(Ue="")=>({className:"subst",label:"interpol",begin:r(/\\/,Ue,/\(/),end:/\)/}),De=(Ue="")=>({begin:r(Ue,/"""/),end:r(/"""/,Ue),contains:[Ce(Ue),xe(Ue),ze(Ue)]}),Oe=(Ue="")=>({begin:r(Ue,/"/),end:r(/"/,Ue),contains:[Ce(Ue),ze(Ue)]}),Nt={className:"string",variants:[De(),De("#"),De("##"),De("###"),Oe(),Oe("#"),Oe("##"),Oe("###")]},Ie=[O.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[O.BACKSLASH_ESCAPE]}],Gn={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ie},Je=Ue=>{const fn=r(Ue,/\//),nn=r(/\//,Ue);return{begin:fn,end:nn,contains:[...Ie,{scope:"comment",begin:`#(?!.*${nn})`,end:/$/}]}},vn={scope:"regexp",variants:[Je("###"),Je("##"),Je("#"),Gn]},$n={match:r(/`/,M,/`/)},Qt={className:"variable",match:/\$\d+/},Jt={className:"variable",match:`\\$${B}+`},Wt=[$n,Qt,Jt],ba={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:te,contains:[...fe,pe,Nt]}]}},Mn={scope:"keyword",match:r(/@/,u(...H),i(u(/\(/,/\s+/)))},it={scope:"meta",match:r(/@/,M)},Lt=[ba,Mn,it],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)/,B,"+")},{className:"type",match:ee,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,i(ee)),relevance:0}]},Ht={begin:/</,end:/>/,keywords:le,contains:[...F,...de,...Lt,z,bt]};bt.contains.push(Ht);const un={match:r(M,/\s*:/),keywords:"_|0",relevance:0},Cn={begin:/\(/,end:/\)/,relevance:0,keywords:le,contains:["self",un,...F,vn,...de,...T,...fe,pe,Nt,...Wt,...Lt,bt]},wn={begin:/</,end:/>/,keywords:"repeat each",contains:[...F,bt]},Dn={begin:u(i(r(M,/\s*:/)),i(r(M,/\s+/,M,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:M}]},Ln={begin:/\(/,end:/\)/,keywords:le,contains:[Dn,...F,...de,...fe,pe,Nt,...Lt,bt,Cn],endsParent:!0,illegal:/["']/},En={match:[/(func|macro)/,/\s+/,u($n.match,M,R)],className:{1:"keyword",3:"title.function"},contains:[wn,Ln,q],illegal:[/\[/,/%/]},Ot={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[wn,Ln,q],illegal:/\[|%/},en={match:[/operator/,/\s+/,R],className:{1:"keyword",3:"title"}},kt={begin:[/precedencegroup/,/\s+/,ee],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+/,M,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:le,contains:[wn,...de,{begin:/:/,end:/\{/,keywords:le,contains:[{scope:"title.class.inherited",match:ee},...de],relevance:0}]};for(const Ue of Nt.variants){const fn=Ue.contains.find(zt=>zt.label==="interpol");fn.keywords=le;const nn=[...de,...T,...fe,pe,Nt,...Wt];fn.contains=[...nn,{begin:/\(/,end:/\)/,contains:["self",...nn]}]}return{name:"Swift",keywords:le,contains:[...F,En,Ot,zn,An,tn,en,kt,{beginKeywords:"import",end:/$/,contains:[...F],relevance:0},vn,...de,...T,...fe,pe,Nt,...Wt,...Lt,bt,Cn]}}return sf=ae,sf}var rf,wg;function h0(){if(wg)return rf;wg=1;function s(i){const r="true false yes no null",l="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},h={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},g={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},v={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[i.BACKSLASH_ESCAPE,h]},m=i.inherit(v,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),N={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"},x={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},C={begin:/\{/,end:/\}/,contains:[x],illegal:"\\n",relevance:0},R={begin:"\\[",end:"\\]",contains:[x],illegal:"\\n",relevance:0},j=[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}},N,{className:"number",begin:i.C_NUMBER_RE+"\\b",relevance:0},C,R,g,v],B=[...j];return B.pop(),B.push(m),x.contains=B,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:j}}return rf=s,rf}var of,Ag;function p0(){if(Ag)return of;Ag=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",i=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],l=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],h=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],g=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],v=[].concat(h,l,u);function m(b){const E=b.regex,_=(Ce,{after:xe})=>{const ze="</"+Ce[0].slice(1);return Ce.input.indexOf(ze,xe)!==-1},N=s,x={begin:"<>",end:"</>"},C=/<[A-Za-z0-9\\._:-]+\s*\/>/,R={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Ce,xe)=>{const ze=Ce[0].length+Ce.index,De=Ce.input[ze];if(De==="<"||De===","){xe.ignoreMatch();return}De===">"&&(_(Ce,{after:ze})||xe.ignoreMatch());let Oe;const Nt=Ce.input.substring(ze);if(Oe=Nt.match(/^\s*=/)){xe.ignoreMatch();return}if((Oe=Nt.match(/^\s+extends\s+/))&&Oe.index===0){xe.ignoreMatch();return}}},j={$pattern:s,keyword:i,literal:r,built_in:v,"variable.language":g},B="[0-9](_?[0-9])*",M=`\\.(${B})`,ee="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",H={className:"number",variants:[{begin:`(\\b(${ee})((${M})|\\.)?|(${M}))[eE][+-]?(${B})\\b`},{begin:`\\b(${ee})\\b((${M})\\b|\\.)?|(${M})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},te={className:"subst",begin:"\\$\\{",end:"\\}",keywords:j,contains:[]},ae={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,te],subLanguage:"xml"}},O={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,te],subLanguage:"css"}},q={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,te],subLanguage:"graphql"}},V={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,te]},oe={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:N+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},be=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ae,O,q,V,{match:/\$\d+/},H];te.contains=be.concat({begin:/\{/,end:/\}/,keywords:j,contains:["self"].concat(be)});const Ne=[].concat(oe,te.contains),ge=Ne.concat([{begin:/(\s*)\(/,end:/\)/,keywords:j,contains:["self"].concat(Ne)}]),I={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:j,contains:ge},le={variants:[{match:[/class/,/\s+/,N,/\s+/,/extends/,/\s+/,E.concat(N,"(",E.concat(/\./,N),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,N],scope:{1:"keyword",3:"title.class"}}]},de={relevance:0,match:E.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},Se={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Be={variants:[{match:[/function/,/\s+/,N,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[I],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(Ce){return E.concat("(?!",Ce.join("|"),")")}const Y={match:E.concat(/\b/,z([...h,"super","import","await"].map(Ce=>`${Ce}\\s*\\(`)),N,E.lookahead(/\s*\(/)),className:"title.function",relevance:0},fe={begin:E.concat(/\./,E.lookahead(E.concat(N,/(?![0-9A-Za-z$_(])/))),end:N,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ve={match:[/get|set/,/\s+/,N,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},I]},Re="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",pe={match:[/const|var|let/,/\s+/,N,/\s*/,/=\s*/,/(async\s*)?/,E.lookahead(Re)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[I]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:j,exports:{PARAMS_CONTAINS:ge,CLASS_REFERENCE:de},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),Se,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ae,O,q,V,oe,{match:/\$\d+/},H,de,{scope:"attr",match:N+E.lookahead(":"),relevance:0},pe,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[oe,b.REGEXP_MODE,{className:"function",begin:Re,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:j,contains:ge}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:C},{begin:R.begin,"on:begin":R.isTrulyOpeningTag,end:R.end}],subLanguage:"xml",contains:[{begin:R.begin,end:R.end,skip:!0,contains:["self"]}]}]},Be,{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:N,className:"title.function"})]},{match:/\.\.\./,relevance:0},fe,{match:"\\$"+N,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[I]},Y,T,le,ve,{match:/\$[(.]/}]}}function p(b){const E=b.regex,_=m(b),N=s,x=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],C={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},R={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:x},contains:[_.exports.CLASS_REFERENCE]},j={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},B=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],M={$pattern:s,keyword:i.concat(B),literal:r,built_in:v.concat(x),"variable.language":g},ee={className:"meta",begin:"@"+N},H=(q,V,F)=>{const oe=q.contains.findIndex(be=>be.label===V);if(oe===-1)throw new Error("can not find mode to replace");q.contains.splice(oe,1,F)};Object.assign(_.keywords,M),_.exports.PARAMS_CONTAINS.push(ee);const te=_.contains.find(q=>q.scope==="attr"),ae=Object.assign({},te,{match:E.concat(N,E.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,te,ae]),_.contains=_.contains.concat([ee,C,R,ae]),H(_,"shebang",b.SHEBANG()),H(_,"use_strict",j);const O=_.contains.find(q=>q.label==="func.def");return O.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return of=p,of}var cf,Rg;function m0(){if(Rg)return cf;Rg=1;function s(i){const r=i.regex,l={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},h=/\d{1,2}\/\d{1,2}\/\d{4}/,g=/\d{4}-\d{1,2}-\d{1,2}/,v=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,m=/\d{1,2}(:\d{1,2}){1,2}/,p={className:"literal",variants:[{begin:r.concat(/# */,r.either(g,h),/ *#/)},{begin:r.concat(/# */,m,/ *#/)},{begin:r.concat(/# */,v,/ *#/)},{begin:r.concat(/# */,r.either(g,h),/ +/,r.either(v,m),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},E={className:"label",begin:/^\w+:/},_=i.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),N=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,_,N,{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:[N]}]}}return cf=s,cf}var uf,Og;function g0(){if(Og)return uf;Og=1;function s(i){i.regex;const r=i.COMMENT(/\(;/,/;\)/);r.contains.push("self");const l=i.COMMENT(/;;/,/$/),u=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],h={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},g={className:"variable",begin:/\$[\w_]+/},v={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},m={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},p={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[l,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},g,v,h,i.QUOTE_STRING_MODE,p,b,m]}}return uf=s,uf}var ff,kg;function b0(){if(kg)return ff;kg=1;var s=L_();return s.registerLanguage("xml",z_()),s.registerLanguage("bash",U_()),s.registerLanguage("c",B_()),s.registerLanguage("cpp",I_()),s.registerLanguage("csharp",j_()),s.registerLanguage("css",H_()),s.registerLanguage("markdown",q_()),s.registerLanguage("diff",G_()),s.registerLanguage("ruby",$_()),s.registerLanguage("go",Y_()),s.registerLanguage("graphql",F_()),s.registerLanguage("ini",K_()),s.registerLanguage("java",P_()),s.registerLanguage("javascript",Z_()),s.registerLanguage("json",X_()),s.registerLanguage("kotlin",Q_()),s.registerLanguage("less",V_()),s.registerLanguage("lua",J_()),s.registerLanguage("makefile",W_()),s.registerLanguage("perl",e0()),s.registerLanguage("objectivec",t0()),s.registerLanguage("php",n0()),s.registerLanguage("php-template",a0()),s.registerLanguage("plaintext",i0()),s.registerLanguage("python",l0()),s.registerLanguage("python-repl",s0()),s.registerLanguage("r",r0()),s.registerLanguage("rust",o0()),s.registerLanguage("scss",c0()),s.registerLanguage("shell",u0()),s.registerLanguage("sql",f0()),s.registerLanguage("swift",d0()),s.registerLanguage("yaml",h0()),s.registerLanguage("typescript",p0()),s.registerLanguage("vbnet",m0()),s.registerLanguage("wasm",g0()),s.HighlightJS=s,s.default=s,ff=s,ff}var y0=b0();const wb=db(y0),v0={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},E0=2e5,Ab="http://www.w3.org/1999/xhtml";function _0(s){for(const i of s.querySelectorAll(".d2h-file-wrapper")){const r=S0(i.dataset.lang??"");if(r)for(const l of T0(i))Mg(l.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Mg(l.filter(u=>u.kind!=="del"),()=>!0,r)}}function S0(s){const i=v0[s]??D_(s);return i==="plaintext"||!wb.getLanguage(i)?null:i}function T0(s){const i=[];let r=[];for(const l of s.querySelectorAll(".d2h-diff-tbody > tr")){const u=l.querySelector("td:last-child"),h=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!h){r.length&&i.push(r),r=[];continue}const g=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:g,ctn:h})}return r.length&&i.push(r),i}function Mg(s,i,r){if(s.filter(i).length===0)return;const u=s.map(g=>g.ctn.textContent??"").join(`
|
|
169
|
-
`);if(!u.trim()||u.length>E0)return;const h=x0(wb.highlight(u,{language:r,ignoreIllegals:!0}).value);s.forEach((g,v)=>{const m=h[v];m===void 0||!i(g)||N0(g.ctn,m)})}function N0(s,i){const r=Km(s);let l=i;if(r.length){const u=document.createElementNS(Ab,"div");u.innerHTML=i,l=M_(r,Km(u),s.textContent??"")}s.classList.add("hljs"),s.innerHTML=l}function x0(s){const i=document.createElementNS(Ab,"div");i.innerHTML=s;const r=[],l=[];let u="";const h=g=>{if(g.nodeType===Node.TEXT_NODE){(g.textContent??"").split(`
|
|
170
|
-
`).forEach((p,b)=>{b>0&&(u+="</span>".repeat(l.length),r.push(u),u=l.join("")),u+=w0(p)});return}const v=`<span class="${g.className}">`;u+=v,l.push(v),g.childNodes.forEach(h),l.pop(),u+="</span>"};return i.childNodes.forEach(h),r.push(u),r}function w0(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}const A0={arrowRight:["M5 12h14","m12 5 7 7-7 7"],chevronLeft:["m15 6-6 6 6 6"],chevronRight:["m9 6 6 6-6 6"],skip:["m5 4 10 8-10 8V4Z","M19 5v14"],rerun:["M21 12a9 9 0 1 1-3-6.7","M21 4v5h-5"],zap:["M13 2 4 14h7l-1 8 9-12h-7Z"],comment:["M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"],check:["M20 6 9 17l-5-5"],edit:["M12 20h9","M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"],drop:["M3 6h18","M8 6V4h8v2","M6 6l1 14h10l1-14"],plus:["M12 5v14","M5 12h14"],send:["M22 2 11 13","M22 2 15 22l-4-9-9-4Z"],eye:["M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"],download:["M12 3v12","m7 12 5 5 5-5","M5 21h14"],external:["M14 4h6v6","M20 4 10 14","M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"],settings:["M20 7h-9","M14 17H5"],down:["M12 5v13","m6 12 6 6 6-6"],up:["M12 19V6","m6 12 6-6 6 6"],bell:["M18 9a6 6 0 1 0-12 0c0 5-2 6-2 6h16s-2-1-2-6","M13.7 20a2 2 0 0 1-3.4 0"],bellOff:["M8.5 3.6A6 6 0 0 1 18 9c0 1.7.2 2.9.6 3.9","M16.5 17H4s2-1 2-6a6 6 0 0 1 .7-2.8","M13.7 20a2 2 0 0 1-3.4 0","m3 3 18 18"]},R0={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}]},O0={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function tt({name:s,size:i=13}){const r=[...A0[s]??[],...O0[s]??[]];return d.jsxs("svg",{className:"icon",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(R0[s]??[]).map((l,u)=>d.jsx("circle",{cx:l.cx,cy:l.cy,r:l.r},u)),r.map((l,u)=>d.jsx("path",{d:l},u))]})}function k0({size:s=17}){return d.jsxs("svg",{className:"logo",width:s,height:s,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[d.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),d.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),d.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),d.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function Ci({children:s}){return d.jsx("span",{className:"key",children:s})}/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function Cg(s,i){(i==null||i>s.length)&&(i=s.length);for(var r=0,l=Array(i);r<i;r++)l[r]=s[r];return l}function M0(s){if(Array.isArray(s))return s}function C0(s,i){var r=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(r!=null){var l,u,h,g,v=[],m=!0,p=!1;try{if(h=(r=r.call(s)).next,i!==0)for(;!(m=(l=h.call(r)).done)&&(v.push(l.value),v.length!==i);m=!0);}catch(b){p=!0,u=b}finally{try{if(!m&&r.return!=null&&(g=r.return(),Object(g)!==g))return}finally{if(p)throw u}}return v}}function D0(){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 L0(s,i){return M0(s)||C0(s,i)||z0(s,i)||D0()}function z0(s,i){if(s){if(typeof s=="string")return Cg(s,i);var r={}.toString.call(s).slice(8,-1);return r==="Object"&&s.constructor&&(r=s.constructor.name),r==="Map"||r==="Set"?Array.from(s):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cg(s,i):void 0}}const Rb=Object.entries,Dg=Object.setPrototypeOf,U0=Object.isFrozen,B0=Object.getPrototypeOf,I0=Object.getOwnPropertyDescriptor;let bn=Object.freeze,yn=Object.seal,zl=Object.create,Ob=typeof Reflect<"u"&&Reflect,Sf=Ob.apply,Tf=Ob.construct;bn||(bn=function(i){return i});yn||(yn=function(i){return i});Sf||(Sf=function(i,r){for(var l=arguments.length,u=new Array(l>2?l-2:0),h=2;h<l;h++)u[h-2]=arguments[h];return i.apply(r,u)});Tf||(Tf=function(i){for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return new i(...l)});const Cl=Zt(Array.prototype.forEach),j0=Zt(Array.prototype.lastIndexOf),Lg=Zt(Array.prototype.pop),Dl=Zt(Array.prototype.push),H0=Zt(Array.prototype.splice),Mi=Array.isArray,Us=Zt(String.prototype.toLowerCase),df=Zt(String.prototype.toString),zg=Zt(String.prototype.match),Ds=Zt(String.prototype.replace),Ug=Zt(String.prototype.indexOf),q0=Zt(String.prototype.trim),G0=Zt(Number.prototype.toString),$0=Zt(Boolean.prototype.toString),Bg=typeof BigInt>"u"?null:Zt(BigInt.prototype.toString),Ig=typeof Symbol>"u"?null:Zt(Symbol.prototype.toString),on=Zt(Object.prototype.hasOwnProperty),Ls=Zt(Object.prototype.toString),rn=Zt(RegExp.prototype.test),Xi=Y0(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 Sf(s,i,l)}}function Y0(s){return function(){for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return Tf(s,r)}}function lt(s,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Us;if(Dg&&Dg(s,null),!Mi(i))return s;let l=i.length;for(;l--;){let u=i[l];if(typeof u=="string"){const h=r(u);h!==u&&(U0(i)||(i[l]=h),u=h)}s[u]=!0}return s}function F0(s){for(let i=0;i<s.length;i++)on(s,i)||(s[i]=null);return s}function Nn(s){const i=zl(null);for(const l of Rb(s)){var r=L0(l,2);const u=r[0],h=r[1];on(s,u)&&(Mi(h)?i[u]=F0(h):h&&typeof h=="object"&&h.constructor===Object?i[u]=Nn(h):i[u]=h)}return i}function K0(s){switch(typeof s){case"string":return s;case"number":return G0(s);case"boolean":return $0(s);case"bigint":return Bg?Bg(s):"0";case"symbol":return Ig?Ig(s):"Symbol()";case"undefined":return Ls(s);case"function":case"object":{if(s===null)return Ls(s);const i=s,r=pa(i,"toString");if(typeof r=="function"){const l=r(i);return typeof l=="string"?l:Ls(l)}return Ls(s)}default:return Ls(s)}}function pa(s,i){for(;s!==null;){const l=I0(s,i);if(l){if(l.get)return Zt(l.get);if(typeof l.value=="function")return Zt(l.value)}s=B0(s)}function r(){return null}return r}function P0(s){try{return rn(s,""),!0}catch{return!1}}const jg=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"]),hf=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"]),pf=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"]),Z0=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"]),mf=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"]),X0=bn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Hg=bn(["#text"]),qg=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"]),gf=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"]),Gg=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"]),Q0=yn(/{{[\w\W]*|^[\w\W]*}}/g),V0=yn(/<%[\w\W]*|^[\w\W]*%>/g),J0=yn(/\${[\w\W]*/g),W0=yn(/^data-[\-\w.\u00B7-\uFFFF]+$/),eS=yn(/^aria-[\-\w]+$/),$g=yn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tS=yn(/^(?:\w+script|data):/i),nS=yn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),aS=yn(/^html$/i),iS=yn(/^[a-z][.\w]*(-[.\w]+)+$/i),Yg=yn(/<[/\w!]/g),Fg=yn(/<[/\w]/g),lS=yn(/<\/no(script|embed|frames)/i),sS=yn(/\/>/i),Vn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},rS=function(){return typeof window>"u"?null:window},oS=function(i,r){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let l=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(l=r.getAttribute(u));const h="dompurify"+(l?"#"+l:"");try{return i.createPolicy(h,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+h+" could not be created."),null}},Kg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ri=function(i,r,l,u){return on(i,r)&&Mi(i[r])?lt(u.base?Nn(u.base):{},i[r],u.transform):l};function kb(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rS();const i=X=>kb(X);if(i.version="3.4.13",i.removed=[],!s||!s.document||s.document.nodeType!==Vn.document||!s.Element)return i.isSupported=!1,i;let r=s.document;const l=r,u=l.currentScript;s.DocumentFragment;const h=s.HTMLTemplateElement,g=s.Node,v=s.Element,m=s.NodeFilter,p=s.NamedNodeMap;p===void 0&&(s.NamedNodeMap||s.MozNamedAttrMap),s.HTMLFormElement;const b=s.DOMParser,E=s.trustedTypes,_=v.prototype,N=pa(_,"cloneNode"),x=pa(_,"remove"),C=pa(_,"nextSibling"),R=pa(_,"childNodes"),j=pa(_,"parentNode"),B=pa(_,"shadowRoot"),M=pa(_,"attributes"),ee=g&&g.prototype?pa(g.prototype,"nodeType"):null,H=g&&g.prototype?pa(g.prototype,"nodeName"):null,te=g&&g.prototype?pa(g.prototype,"ownerDocument"):null;if(typeof h=="function"){const X=r.createElement("template");X.content&&X.content.ownerDocument&&(r=X.content.ownerDocument)}let ae,O="",q,V=!1,F=0;const oe=function(){if(F>0)throw Xi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},be=function(S){oe(),F++;try{return ae.createHTML(S)}finally{F--}},Ne=function(S){oe(),F++;try{return ae.createScriptURL(S)}finally{F--}},ge=function(){return V||(q=oS(E,u),V=!0),q},I=r,le=I.implementation,de=I.createNodeIterator,Se=I.createDocumentFragment,Be=I.getElementsByTagName,T=l.importNode;let z=Kg();i.isSupported=typeof Rb=="function"&&typeof j=="function"&&le&&le.createHTMLDocument!==void 0;const Y=Q0,fe=V0,ve=J0,Re=W0,pe=eS,Ce=tS,xe=nS,ze=iS;let De=$g,Oe=null;const Nt=lt({},[...jg,...hf,...pf,...mf,...Hg]);let Ie=null;const Gn=lt({},[...qg,...gf,...Gg,...Vr]);let Je=Object.seal(zl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),vn=null,$n=null;const Qt=Object.seal(zl(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,it=!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={},Ue=null;const fn=lt({},["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=lt({},["audio","video","img","source","image","track"]);let A=null;const J=lt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",ke="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let Pe=Fe,L=!1,P=null;const ce=lt({},[he,ke,Fe],df),nt=bn(["mi","mo","mn","ms","mtext"]);let ft=lt({},nt);const Jn=bn(["annotation-xml"]);let ya=lt({},Jn);const Ja=lt({},["title","style","font","a","script"]);let _n=null;const Mt=["application/xhtml+xml","text/html"],an="text/html";let st=null,Wn=null;const el=r.createElement("form"),ka=function(S){return S instanceof RegExp||S instanceof Function},Wa=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Wn&&Wn===S)return;(!S||typeof S!="object")&&(S={}),S=Nn(S),_n=Mt.indexOf(S.PARSER_MEDIA_TYPE)===-1?an:S.PARSER_MEDIA_TYPE,st=_n==="application/xhtml+xml"?df:Us,Oe=Ri(S,"ALLOWED_TAGS",Nt,{transform:st}),Ie=Ri(S,"ALLOWED_ATTR",Gn,{transform:st}),P=Ri(S,"ALLOWED_NAMESPACES",ce,{transform:df}),A=Ri(S,"ADD_URI_SAFE_ATTR",J,{transform:st,base:J}),nn=Ri(S,"ADD_DATA_URI_TAGS",zt,{transform:st,base:zt}),Ue=Ri(S,"FORBID_CONTENTS",fn,{transform:st}),vn=Ri(S,"FORBID_TAGS",Nn({}),{transform:st}),$n=Ri(S,"FORBID_ATTR",Nn({}),{transform:st}),tn=on(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?Nn(S.USE_PROFILES):S.USE_PROFILES:!1,Jt=S.ALLOW_ARIA_ATTR!==!1,Wt=S.ALLOW_DATA_ATTR!==!1,ba=S.ALLOW_UNKNOWN_PROTOCOLS||!1,Mn=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,it=S.SAFE_FOR_TEMPLATES||!1,Lt=S.SAFE_FOR_XML!==!1,bt=S.WHOLE_DOCUMENT||!1,Dn=S.RETURN_DOM||!1,Ln=S.RETURN_DOM_FRAGMENT||!1,En=S.RETURN_TRUSTED_TYPE||!1,wn=S.FORCE_BODY||!1,Ot=S.SANITIZE_DOM!==!1,en=S.SANITIZE_NAMED_PROPS||!1,zn=S.KEEP_CONTENT!==!1,An=S.IN_PLACE||!1,De=P0(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:$g,Pe=typeof S.NAMESPACE=="string"?S.NAMESPACE:Fe,ft=on(S,"MATHML_TEXT_INTEGRATION_POINTS")&&S.MATHML_TEXT_INTEGRATION_POINTS&&typeof S.MATHML_TEXT_INTEGRATION_POINTS=="object"?Nn(S.MATHML_TEXT_INTEGRATION_POINTS):lt({},nt),ya=on(S,"HTML_INTEGRATION_POINTS")&&S.HTML_INTEGRATION_POINTS&&typeof S.HTML_INTEGRATION_POINTS=="object"?Nn(S.HTML_INTEGRATION_POINTS):lt({},Jn);const D=on(S,"CUSTOM_ELEMENT_HANDLING")&&S.CUSTOM_ELEMENT_HANDLING&&typeof S.CUSTOM_ELEMENT_HANDLING=="object"?Nn(S.CUSTOM_ELEMENT_HANDLING):zl(null);if(Je=zl(null),on(D,"tagNameCheck")&&ka(D.tagNameCheck)&&(Je.tagNameCheck=D.tagNameCheck),on(D,"attributeNameCheck")&&ka(D.attributeNameCheck)&&(Je.attributeNameCheck=D.attributeNameCheck),on(D,"allowCustomizedBuiltInElements")&&typeof D.allowCustomizedBuiltInElements=="boolean"&&(Je.allowCustomizedBuiltInElements=D.allowCustomizedBuiltInElements),yn(Je),it&&(Wt=!1),Ln&&(Dn=!0),tn&&(Oe=lt({},Hg),Ie=zl(null),tn.html===!0&&(lt(Oe,jg),lt(Ie,qg)),tn.svg===!0&&(lt(Oe,hf),lt(Ie,gf),lt(Ie,Vr)),tn.svgFilters===!0&&(lt(Oe,pf),lt(Ie,gf),lt(Ie,Vr)),tn.mathMl===!0&&(lt(Oe,mf),lt(Ie,Gg),lt(Ie,Vr))),Qt.tagCheck=null,Qt.attributeCheck=null,on(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?Qt.tagCheck=S.ADD_TAGS:Mi(S.ADD_TAGS)&&(Oe===Nt&&(Oe=Nn(Oe)),lt(Oe,S.ADD_TAGS,st))),on(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?Qt.attributeCheck=S.ADD_ATTR:Mi(S.ADD_ATTR)&&(Ie===Gn&&(Ie=Nn(Ie)),lt(Ie,S.ADD_ATTR,st))),on(S,"ADD_URI_SAFE_ATTR")&&Mi(S.ADD_URI_SAFE_ATTR)&<(A,S.ADD_URI_SAFE_ATTR,st),on(S,"FORBID_CONTENTS")&&Mi(S.FORBID_CONTENTS)&&(Ue===fn&&(Ue=Nn(Ue)),lt(Ue,S.FORBID_CONTENTS,st)),on(S,"ADD_FORBID_CONTENTS")&&Mi(S.ADD_FORBID_CONTENTS)&&(Ue===fn&&(Ue=Nn(Ue)),lt(Ue,S.ADD_FORBID_CONTENTS,st)),zn&&(Oe["#text"]=!0),bt&<(Oe,["html","head","body"]),Oe.table&&(lt(Oe,["tbody"]),delete vn.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw Xi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Xi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Q=ae;ae=S.TRUSTED_TYPES_POLICY;try{O=be("")}catch(ye){throw ae=Q,ye}}else S.TRUSTED_TYPES_POLICY===null?(ae=void 0,O=""):(ae===void 0&&(ae=ge()),ae&&typeof O=="string"&&(O=be("")));bn&&bn(S),Wn=S},va=lt({},[...hf,...pf,...Z0]),ei=lt({},[...mf,...X0]),dn=function(S,D,Q){return D.namespaceURI===Fe?S==="svg":D.namespaceURI===he?S==="svg"&&(Q==="annotation-xml"||ft[Q]):!!va[S]},ca=function(S,D,Q){return D.namespaceURI===Fe?S==="math":D.namespaceURI===ke?S==="math"&&ya[Q]:!!ei[S]},Ea=function(S,D,Q){return D.namespaceURI===ke&&!ya[Q]||D.namespaceURI===he&&!ft[Q]?!1:!ei[S]&&(Ja[S]||!va[S])},_a=function(S){let D=j(S);(!D||!D.tagName)&&(D={namespaceURI:Pe,tagName:"template"});const Q=Us(S.tagName),ye=Us(D.tagName);return P[S.namespaceURI]?S.namespaceURI===ke?dn(Q,D,ye):S.namespaceURI===he?ca(Q,D,ye):S.namespaceURI===Fe?Ea(Q,D,ye):!!(_n==="application/xhtml+xml"&&P[S.namespaceURI]):!1},ht=function(S){Dl(i.removed,{element:S});try{j(S).removeChild(S)}catch{if(x(S),!j(S))throw Xi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ma=function(S){re(S);const D=R(S);if(D){const ye=[];Cl(D,_e=>{Dl(ye,_e)}),Cl(ye,_e=>{try{x(_e)}catch{}})}const Q=M(S);if(Q)for(let ye=Q.length-1;ye>=0;--ye){const _e=Q[ye],je=_e&&_e.name;if(typeof je=="string")try{S.removeAttribute(je)}catch{}}},Rn=function(S,D){try{Dl(i.removed,{attribute:D.getAttributeNode(S),from:D})}catch{Dl(i.removed,{attribute:null,from:D})}if(D.removeAttribute(S),S==="is")if(Dn||Ln)try{ht(D)}catch{}else try{D.setAttribute(S,"")}catch{}},ua=function(S){const D=M(S);if(D)for(let Q=D.length-1;Q>=0;--Q){const ye=D[Q],_e=ye&&ye.name;if(!(typeof _e!="string"||Ie[st(_e)]))try{S.removeAttribute(_e)}catch{}}},re=function(S){const D=[S];for(;D.length>0;){const Q=D.pop();(ee?ee(Q):Q.nodeType)===Vn.element&&ua(Q);const _e=R(Q);if(_e)for(let je=_e.length-1;je>=0;--je)D.push(_e[je])}},we=function(S){if(!Lt)return;const D=[S];for(;D.length>0;){const Q=D.pop(),ye=ee?ee(Q):Q.nodeType;if(ye===Vn.processingInstruction||ye===Vn.comment&&rn(Fg,Q.data)){try{x(Q)}catch{}continue}if(ye===Vn.element){const je=Q,Ze=st(H?H(Q):Q.nodeName);try{je.hasAttribute&&je.hasAttribute("patchsrc")&&je.removeAttribute("patchsrc"),je.hasAttribute&&je.hasAttribute("for")&&Ze!=="label"&&Ze!=="output"&&je.removeAttribute("for")}catch{}}const _e=R(Q);if(_e)for(let je=_e.length-1;je>=0;--je)D.push(_e[je])}},Ge=function(S){let D=null,Q=null;if(wn)S="<remove></remove>"+S;else{const je=zg(S,/^[\r\n\t ]+/);Q=je&&je[0]}_n==="application/xhtml+xml"&&Pe===Fe&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const ye=ae?be(S):S;if(Pe===Fe)try{D=new b().parseFromString(ye,_n)}catch{}if(!D||!D.documentElement){D=le.createDocument(Pe,"template",null);try{D.documentElement.innerHTML=L?O:ye}catch{}}const _e=D.body||D.documentElement;return S&&Q&&_e.insertBefore(r.createTextNode(Q),_e.childNodes[0]||null),Pe===Fe?Be.call(D,bt?"html":"body")[0]:bt?D.documentElement:_e},rt=function(S){const D=te?te(S):S.ownerDocument;return de.call(D||S,S,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Tt=function(S){return S=Ds(S,Y," "),S=Ds(S,fe," "),S=Ds(S,ve," "),S},qt=function(S){var D;S.normalize();const Q=te?te(S):S.ownerDocument,ye=de.call(Q||S,S,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let _e=ye.nextNode();for(;_e;)_e.data=Tt(_e.data),_e=ye.nextNode();const je=(D=S.querySelectorAll)===null||D===void 0?void 0:D.call(S,"template");je&&Cl(je,Ze=>{Ut(Ze.content)&&qt(Ze.content)})},ln=function(S){const D=H?H(S):null;return typeof D!="string"||st(D)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==M(S)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==ee(S)||S.childNodes!==R(S)},Ut=function(S){if(!ee||typeof S!="object"||S===null)return!1;try{return ee(S)===Vn.documentFragment}catch{return!1}},ot=function(S){if(!ee||typeof S!="object"||S===null)return!1;try{return typeof ee(S)=="number"}catch{return!1}};function At(X,S,D){X.length!==0&&Cl(X,Q=>{Q.call(i,S,D,Wn)})}const tl=function(S,D){return!!(Lt&&S.hasChildNodes()&&!ot(S.firstElementChild)&&rn(Yg,S.textContent)&&rn(Yg,S.innerHTML)||Lt&&S.namespaceURI===Fe&&D==="style"&&ot(S.firstElementChild)||S.nodeType===Vn.processingInstruction||Lt&&S.nodeType===Vn.comment&&rn(Fg,S.data))},ti=function(S,D,Q){if(!vn[D]&&ai(D)&&(Je.tagNameCheck instanceof RegExp&&rn(Je.tagNameCheck,D)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(D)))return!1;if(zn&&!Ue[D]){const ye=j(S),_e=R(S);if(_e&&ye){const je=_e.length;for(let Ze=je-1;Ze>=0;--Ze){const se=S===Q?N(_e[Ze],!0):_e[Ze];ye.insertBefore(se,C(S))}}}return ht(S),!0},ni=function(S,D,Q,ye){return S.length===0?D:D===Q||D===ye?Nn(D):D},Ca=function(S,D){if(At(z.beforeSanitizeElements,S,null),S!==D&&j(S)===null)return An&&re(S),!0;if(ln(S))return ht(S),!0;const Q=st(H?H(S):S.nodeName);if(Oe=ni(z.uponSanitizeElement,Oe,Nt,un),At(z.uponSanitizeElement,S,{tagName:Q,allowedTags:Oe}),S!==D&&j(S)===null)return An&&re(S),!0;if(tl(S,Q))return ht(S),!0;if(vn[Q]||!(Qt.tagCheck instanceof Function&&Qt.tagCheck(Q))&&!Oe[Q]){const _e=ti(S,Q,D);return _e===!1&&At(z.afterSanitizeElements,S,null),_e}if((ee?ee(S):S.nodeType)===Vn.element&&!_a(S)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&rn(lS,S.innerHTML))return ht(S),!0;if(it&&S.nodeType===Vn.text){const _e=Tt(S.textContent);S.textContent!==_e&&(Dl(i.removed,{element:S.cloneNode()}),S.textContent=_e)}return At(z.afterSanitizeElements,S,null),!1},nl=function(S,D,Q){if($n[D]||Lt&&D==="patchsrc"||Lt&&D==="for"&&S!=="label"&&S!=="output"||Ot&&(D==="id"||D==="name")&&(Q in r||Q in el))return!1;const ye=Ie[D]||Qt.attributeCheck instanceof Function&&Qt.attributeCheck(D,S);if(!(Wt&&rn(Re,D))){if(!(Jt&&rn(pe,D))){if(ye){if(!A[D]){if(!rn(De,Ds(Q,xe,""))){if(!((D==="src"||D==="xlink:href"||D==="href")&&S!=="script"&&Ug(Q,"data:")===0&&nn[S])){if(!(ba&&!rn(Ce,Ds(Q,xe,"")))){if(Q)return!1}}}}}else if(!(ai(S)&&(Je.tagNameCheck instanceof RegExp&&rn(Je.tagNameCheck,S)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(S))&&(Je.attributeNameCheck instanceof RegExp&&rn(Je.attributeNameCheck,D)||Je.attributeNameCheck instanceof Function&&Je.attributeNameCheck(D,S))||D==="is"&&Je.allowCustomizedBuiltInElements&&(Je.tagNameCheck instanceof RegExp&&rn(Je.tagNameCheck,Q)||Je.tagNameCheck instanceof Function&&Je.tagNameCheck(Q))))return!1}}return!0},Sn=lt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ai=function(S){return!Sn[Us(S)]&&rn(ze,S)},Da=function(S,D,Q,ye){if(ae&&typeof E=="object"&&typeof E.getAttributeType=="function"&&!Q)switch(E.getAttributeType(S,D)){case"TrustedHTML":return be(ye);case"TrustedScriptURL":return Ne(ye)}return ye},ii=function(S,D,Q,ye){try{Q?S.setAttributeNS(Q,D,ye):S.setAttribute(D,ye),ln(S)?ht(S):Lg(i.removed)}catch{Rn(D,S)}},Gt=function(S){At(z.beforeSanitizeAttributes,S,null);const D=S.attributes;if(!D||ln(S))return;Ie=ni(z.uponSanitizeAttribute,Ie,Gn,Cn);const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie,forceKeepAttr:void 0};let ye=D.length;const _e=st(S.nodeName);for(;ye--;){const je=D[ye],Ze=je.name,se=je.namespaceURI,me=je.value,Ae=st(Ze),Ye=me;let Ke=Ze==="value"?Ye:q0(Ye);if(Q.attrName=Ae,Q.attrValue=Ke,Q.keepAttr=!0,Q.forceKeepAttr=void 0,At(z.uponSanitizeAttribute,S,Q),Ke=Q.attrValue,en&&(Ae==="id"||Ae==="name")&&Ug(Ke,kt)!==0&&(Rn(Ze,S),Ke=kt+Ke),Lt&&rn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ke)){Rn(Ze,S);continue}if(Ae==="attributename"&&zg(Ke,"href")){Rn(Ze,S);continue}if(!Q.forceKeepAttr){if(!Q.keepAttr){Rn(Ze,S);continue}if(!Mn&&rn(sS,Ke)){Rn(Ze,S);continue}if(it&&(Ke=Tt(Ke)),!nl(_e,Ae,Ke)){Rn(Ze,S);continue}Ke=Da(_e,Ae,se,Ke),Ke!==Ye&&ii(S,Ze,se,Ke)}}At(z.afterSanitizeAttributes,S,null)},La=function(S){let D=null;const Q=rt(S);for(At(z.beforeSanitizeShadowDOM,S,null);D=Q.nextNode();)if(At(z.uponSanitizeShadowNode,D,null),Ca(D,S),Gt(D),Ut(D.content)&&La(D.content),(ee?ee(D):D.nodeType)===Vn.element){const _e=B(D);Ut(_e)&&(Sa(_e),La(_e))}At(z.afterSanitizeShadowDOM,S,null)},Sa=function(S){const D=[{node:S,shadow:null}];for(;D.length>0;){const Q=D.pop();if(Q.shadow){La(Q.shadow);continue}const ye=Q.node,je=(ee?ee(ye):ye.nodeType)===Vn.element,Ze=R(ye);if(Ze)for(let se=Ze.length-1;se>=0;--se)D.push({node:Ze[se],shadow:null});if(je){const se=H?H(ye):null;if(typeof se=="string"&&st(se)==="template"){const me=ye.content;Ut(me)&&D.push({node:me,shadow:null})}}if(je){const se=B(ye);Ut(se)&&D.push({node:null,shadow:se},{node:se,shadow:null})}}};return i.sanitize=function(X){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,Q=null,ye=null,_e=null;if(L=!X,L&&(X="<!-->"),typeof X!="string"&&!ot(X)&&(X=K0(X),typeof X!="string"))throw Xi("dirty is not a string, aborting");if(!i.isSupported)return X;Ht?(Oe=un,Ie=Cn):Wa(S),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(Oe=Nn(Oe)),z.uponSanitizeAttribute.length>0&&(Ie=Nn(Ie)),i.removed=[];const je=An&&typeof X!="string"&&ot(X);if(je){we(X);const me=H?H(X):X.nodeName;if(typeof me=="string"){const Ae=st(me);if(!Oe[Ae]||vn[Ae])throw Ma(X),Xi("root node is forbidden and cannot be sanitized in-place")}if(ln(X))throw Ma(X),Xi("root node is clobbered and cannot be sanitized in-place");try{Sa(X)}catch(Ae){throw Ma(X),Ae}}else if(ot(X))D=Ge("<!---->"),Q=D.ownerDocument.importNode(X,!0),Q.nodeType===Vn.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?D=Q:D.appendChild(Q),Sa(Q);else{if(!Dn&&!it&&!bt&&X.indexOf("<")===-1)return ae&&En?be(X):X;if(D=Ge(X),!D)return Dn?null:En?O:""}D&&wn&&ht(D.firstChild);const Ze=je?X:D;try{const me=rt(Ze);for(;ye=me.nextNode();)Ca(ye,Ze),Gt(ye),Ut(ye.content)&&La(ye.content)}catch(me){throw je&&(Ma(X),Cl(i.removed,Ae=>{Ae.element&&re(Ae.element)})),me}if(je)return Cl(i.removed,me=>{me.element&&re(me.element)}),it&&qt(X),X;if(Dn){if(it&&qt(D),Ln)for(_e=Se.call(D.ownerDocument);D.firstChild;)_e.appendChild(D.firstChild);else _e=D;return(Ie.shadowroot||Ie.shadowrootmode)&&(_e=T.call(l,_e,!0)),_e}let se=bt?D.outerHTML:D.innerHTML;return bt&&Oe["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&rn(aS,D.ownerDocument.doctype.name)&&(se="<!DOCTYPE "+D.ownerDocument.doctype.name+`>
|
|
172
|
-
`+se),it&&(se=Tt(se)),ae&&En?be(se):se},i.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Wa(X),Ht=!0,un=Oe,Cn=Ie},i.clearConfig=function(){Wn=null,Ht=!1,un=null,Cn=null,ae=q,O=""},i.isValidAttribute=function(X,S,D){Wn||Wa({});const Q=st(X),ye=st(S);return nl(Q,ye,D)},i.addHook=function(X,S){typeof S=="function"&&on(z,X)&&Dl(z[X],S)},i.removeHook=function(X,S){if(on(z,X)){if(S!==void 0){const D=j0(z[X],S);return D===-1?void 0:H0(z[X],D,1)[0]}return Lg(z[X])}},i.removeHooks=function(X){on(z,X)&&(z[X]=[])},i.removeAllHooks=function(){z=Kg()},i}var cS=kb();function If(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Wi=If();function Mb(s){Wi=s}var Qi={exec:()=>null};function Ll(s){let i=[];return r=>{let l=Math.max(0,Math.min(3,r-1)),u=i[l];return u||(u=s(l),i[l]=u),u}}function Ve(s,i=""){let r=typeof s=="string"?s:s.source,l={replace:(u,h)=>{let g=typeof h=="string"?h:h.source;return g=g.replace(xn.caret,"$1"),r=r.replace(u,g),l},getRegex:()=>new RegExp(r,i)};return l}var uS=((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:Ll(s=>new RegExp(`^ {0,${s}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ll(s=>new RegExp(`^ {0,${s}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ll(s=>new RegExp(`^ {0,${s}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ll(s=>new RegExp(`^ {0,${s}}#`)),htmlBeginRegex:Ll(s=>new RegExp(`^ {0,${s}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ll(s=>new RegExp(`^ {0,${s}}>`))},fS=/^(?:[ \t]*(?:\n|$))+/,dS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,hS=/^ {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+|$)/,pS=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Cb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Db=Ve(Cb).replace(/bull/g,jf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),mS=Ve(Cb).replace(/bull/g,jf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Hf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,gS=/^[^\n]+/,qf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,bS=Ve(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",qf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),yS=Ve(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,jf).getRegex(),uo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Gf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,vS=Ve("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Gf).replace("tag",uo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Lb=s=>Ve(Hf).replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",s).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex(),ES=Lb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),_S=Lb(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),SS=Ve(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_S).getRegex(),$f={blockquote:SS,code:dS,def:bS,fences:hS,heading:pS,hr:Hs,html:vS,lheading:Db,list:yS,newline:fS,paragraph:ES,table:Qi,text:gS},Pg=Ve("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex(),TS={...$f,lheading:mS,table:Pg,paragraph:Ve(Hf).replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Pg).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",uo).getRegex()},NS={...$f,html:Ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Gf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Qi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ve(Hf).replace("hr",Hs).replace("heading",` *#{1,6} *[^
|
|
173
|
-
]`).replace("lheading",Db).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},xS=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,wS=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,zb=/^( {2,}|\\)\n(?!\s*$)/,AS=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Va=/[\p{P}\p{S}]/u,Hl=/[\s\p{P}\p{S}]/u,qs=/[^\s\p{P}\p{S}]/u,RS=Ve(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Hl).getRegex(),OS=/[\p{Pi}\p{Ps}"']/u,Ub=/(?!~)[\p{P}\p{S}]/u,kS=/(?!~)[\s\p{P}\p{S}]/u,MS=/(?:[^\s\p{P}\p{S}]|~)/u,CS=Ve(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",uS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Bb=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,DS=Ve(Bb,"u").replace(/punct/g,Va).getRegex(),LS=Ve(Bb,"u").replace(/punct/g,Ub).getRegex(),zS=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,US=Ve(zS,"u").replace(/openQuote/g,OS).replace(/punct/g,Va).getRegex(),Ib="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",BS=Ve(Ib,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),IS=Ve(Ib,"gu").replace(/notPunctSpace/g,MS).replace(/punctSpace/g,kS).replace(/punct/g,Ub).getRegex(),jS="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",HS=Ve(jS,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),qS=Ve("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),GS="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",$S=Ve(GS,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),YS=Ve(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Va).getRegex(),FS="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",KS=Ve(FS,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),PS=Ve(/\\(punct)/,"gu").replace(/punct/g,Va).getRegex(),ZS=Ve(/^<(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(),XS=Ve(Gf).replace("(?:-->|$)","-->").getRegex(),QS=Ve("^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",XS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),io=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,VS=Ve(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",io).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),jb=Ve(/^!?\[(label)\]\[(ref)\]/).replace("label",io).replace("ref",qf).getRegex(),Hb=Ve(/^!?\[(ref)\](?:\[\])?/).replace("ref",qf).getRegex(),JS=Ve("reflink|nolink(?!\\()","g").replace("reflink",jb).replace("nolink",Hb).getRegex(),Zg=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Yf={_backpedal:Qi,anyPunctuation:PS,autolink:ZS,blockSkip:CS,br:zb,code:wS,del:Qi,delLDelim:Qi,delRDelim:Qi,emStrongLDelim:DS,emStrongRDelimAst:BS,emStrongRDelimUnd:qS,escape:xS,link:VS,nolink:Hb,punctuation:RS,reflink:jb,reflinkSearch:JS,tag:QS,text:AS,url:Qi},WS={...Yf,emStrongLDelim:US,emStrongRDelimAst:HS,emStrongRDelimUnd:$S,link:Ve(/^!?\[(label)\]\((.*?)\)/).replace("label",io).getRegex(),reflink:Ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",io).getRegex()},Nf={...Yf,emStrongRDelimAst:IS,emStrongLDelim:LS,delLDelim:YS,delRDelim:KS,url:Ve(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Zg).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ve(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Zg).getRegex()},eT={...Nf,br:Ve(zb).replace("{2,}","*").getRegex(),text:Ve(Nf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Jr={normal:$f,gfm:TS,pedantic:NS},zs={normal:Yf,gfm:Nf,breaks:eT,pedantic:WS},tT={"&":"&","<":"<",">":">",'"':""","'":"'"},Xg=s=>tT[s];function Ra(s,i){if(i){if(xn.escapeTest.test(s))return s.replace(xn.escapeReplace,Xg)}else if(xn.escapeTestNoEncode.test(s))return s.replace(xn.escapeReplaceNoEncode,Xg);return s}function Qg(s){try{s=encodeURI(s).replace(xn.percentDecode,"%")}catch{return null}return s}function Vg(s,i){var h;let r=s.replace(xn.findPipe,(g,v,m)=>{let p=!1,b=v;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&&!((h=l.at(-1))!=null&&h.trim())&&l.pop(),i)if(l.length>i)l.splice(i);else for(;l.length<i;)l.push("");for(;u<l.length;u++)l[u]=l[u].trim().replace(xn.slashPipe,"|");return l}function Oi(s,i,r){let l=s.length;if(l===0)return"";let u=0;for(;u<l&&s.charAt(l-u-1)===i;)u++;return s.slice(0,l-u)}function Jg(s){let i=s.split(`
|
|
174
|
-
`),r=i.length-1;for(;r>=0&&xn.blankLine.test(i[r]);)r--;return i.length-r<=2?s:i.slice(0,r+1).join(`
|
|
175
|
-
`)}function nT(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 aT(s,i=0){let r=i,l="";for(let u of s)if(u===" "){let h=4-r%4;l+=" ".repeat(h),r+=h}else l+=u,r++;return l}function Wg(s,i,r,l,u){let h=i.href,g=i.title||null,v=s[1].replace(u.other.outputLinkReplace,"$1");l.state.inLink=!0;let m={type:s[0].charAt(0)==="!"?"image":"link",raw:r,href:h,title:g,text:v,tokens:l.inlineTokens(v)};return l.state.inLink=!1,m}function iT(s,i,r){let l=s.match(r.other.indentCodeCompensation);if(l===null)return i;let u=l[1];return i.split(`
|
|
176
|
-
`).map(h=>{let g=h.match(r.other.beginningSpace);if(g===null)return h;let[v]=g;return v.length>=u.length?h.slice(u.length):h}).join(`
|
|
177
|
-
`)}var lo=class{constructor(s){_t(this,"options");_t(this,"rules");_t(this,"lexer");this.options=s||Wi}space(s){let i=this.rules.block.newline.exec(s);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(s){let i=this.rules.block.code.exec(s);if(i){let r=this.options.pedantic?i[0]:Jg(i[0]),l=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:l}}}fences(s){let i=this.rules.block.fences.exec(s);if(i){let r=i[0],l=iT(r,i[3]||"",this.rules);return{type:"code",raw:r,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:l}}}heading(s){let i=this.rules.block.heading.exec(s);if(i){let r=i[2].trim();if(this.rules.other.endingHash.test(r)){let l=Oi(r,"#");(this.options.pedantic||!l||this.rules.other.endingSpaceChar.test(l))&&(r=l.trim())}return{type:"heading",raw:Oi(i[0],`
|
|
178
|
-
`),depth:i[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(s){let i=this.rules.block.hr.exec(s);if(i)return{type:"hr",raw:Oi(i[0],`
|
|
179
|
-
`)}}blockquote(s){let i=this.rules.block.blockquote.exec(s);if(i){let r=Oi(i[0],`
|
|
180
|
-
`).split(`
|
|
181
|
-
`),l="",u="",h=[];for(;r.length>0;){let g=!1,v=[],m;for(m=0;m<r.length;m++)if(this.rules.other.blockquoteStart.test(r[m]))v.push(r[m]),g=!0;else if(!g)v.push(r[m]);else break;r=r.slice(m);let p=v.join(`
|
|
182
|
-
`),b=p.replace(this.rules.other.blockquoteSetextReplace,`
|
|
183
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");l=l?`${l}
|
|
184
|
-
${p}`:p,u=u?`${u}
|
|
185
|
-
${b}`:b;let E=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,h,!0),this.lexer.state.top=E,r.length===0)break;let _=h.at(-1);if((_==null?void 0:_.type)==="code")break;if((_==null?void 0:_.type)==="blockquote"){let N=_,x=r.join(`
|
|
186
|
-
`),C=N.raw+`
|
|
187
|
-
`+x.replace(this.rules.other.blockquoteSetextReplace2,""),R=this.blockquote(C);h[h.length-1]=R,l=`${l}
|
|
188
|
-
${x}`,u=u.substring(0,u.length-N.text.length)+R.text;break}else if((_==null?void 0:_.type)==="list"){let N=_,x=N.raw+`
|
|
189
|
-
`+r.join(`
|
|
190
|
-
`),C=this.list(x);h[h.length-1]=C,l=l.substring(0,l.length-_.raw.length)+C.raw,u=u.substring(0,u.length-N.raw.length)+C.raw,r=x.substring(h.at(-1).raw.length).split(`
|
|
191
|
-
`);continue}}return{type:"blockquote",raw:l,tokens:h,text:u}}}list(s){let i=this.rules.block.list.exec(s);if(i){let r=i[1].trim(),l=r.length>1,u={type:"list",raw:"",ordered:l,start:l?+r.slice(0,-1):"",loose:!1,items:[]};r=l?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=l?r:"[*+-]");let h=this.rules.other.listItemRegex(r),g=!1;for(;s;){let m=!1,p="",b="";if(!(i=h.exec(s))||this.rules.block.hr.test(s))break;p=i[0],s=s.substring(p.length);let E=aT(i[2].split(`
|
|
192
|
-
`,1)[0],i[1].length),_=s.split(`
|
|
193
|
-
`,1)[0],N=!E.trim(),x=0;if(this.options.pedantic?(x=2,b=E.trimStart()):N?x=i[1].length+1:(x=E.search(this.rules.other.nonSpaceChar),x=x>4?1:x,b=E.slice(x),x+=i[1].length),N&&this.rules.other.blankLine.test(_)&&(p+=_+`
|
|
194
|
-
`,s=s.substring(_.length+1),m=!0),!m){let C=this.rules.other.nextBulletRegex(x),R=this.rules.other.hrRegex(x),j=this.rules.other.fencesBeginRegex(x),B=this.rules.other.headingBeginRegex(x),M=this.rules.other.htmlBeginRegex(x),ee=this.rules.other.blockquoteBeginRegex(x);for(;s;){let H=s.split(`
|
|
195
|
-
`,1)[0],te;if(_=H,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),te=_):te=_.replace(this.rules.other.tabCharGlobal," "),j.test(_)||B.test(_)||M.test(_)||ee.test(_)||C.test(_)||R.test(_))break;if(te.search(this.rules.other.nonSpaceChar)>=x||!_.trim())b+=`
|
|
196
|
-
`+te.slice(x);else{if(N||E.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||j.test(E)||B.test(E)||R.test(E))break;b+=`
|
|
197
|
-
`+_}N=!_.trim(),p+=H+`
|
|
198
|
-
`,s=s.substring(H.length+1),E=te.slice(x)}}u.loose||(g?u.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(g=!0)),u.items.push({type:"list_item",raw:p,task:!!this.options.gfm&&this.rules.other.listIsTask.test(b),loose:!1,text:b,tokens:[]}),u.raw+=p}let v=u.items.at(-1);if(v)v.raw=v.raw.trimEnd(),v.text=v.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let m of u.items)if(this.lexer.state.top=!1,m.tokens=this.lexer.blockTokens(m.text,[]),!u.loose){let p=m.tokens.filter(E=>E.type==="space"),b=p.length>0&&p.some(E=>this.rules.other.anyLine.test(E.raw));u.loose=b}for(let m of u.items){let p=m.tokens[0];if(m.task&&((p==null?void 0:p.type)==="text"||(p==null?void 0:p.type)==="paragraph")){m.text=m.text.replace(this.rules.other.listReplaceTask,""),p.raw=p.raw.replace(this.rules.other.listReplaceTask,""),p.text=p.text.replace(this.rules.other.listReplaceTask,"");for(let E=this.lexer.inlineQueue.length-1;E>=0;E--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[E].src)){this.lexer.inlineQueue[E].src=this.lexer.inlineQueue[E].src.replace(this.rules.other.listReplaceTask,"");break}let b=this.rules.other.listTaskCheckbox.exec(m.raw);if(b){let E={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};m.checked=E.checked,u.loose?m.tokens[0]&&["paragraph","text"].includes(m.tokens[0].type)&&"tokens"in m.tokens[0]&&m.tokens[0].tokens?(m.tokens[0].raw=E.raw+m.tokens[0].raw,m.tokens[0].text=E.raw+m.tokens[0].text,m.tokens[0].tokens.unshift(E)):m.tokens.unshift({type:"paragraph",raw:E.raw,text:E.raw,tokens:[E]}):m.tokens.unshift(E)}}else m.task&&(m.task=!1)}if(u.loose)for(let m of u.items){m.loose=!0;for(let p of m.tokens)p.type==="text"&&(p.type="paragraph")}return u}}html(s){let i=this.rules.block.html.exec(s);if(i){let r=Jg(i[0]);return{type:"html",block:!0,raw:r,pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:r}}}def(s){let i=this.rules.block.def.exec(s);if(i){let r=i[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),l=i[2]?i[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:r,raw:Oi(i[0],`
|
|
199
|
-
`),href:l,title:u}}}table(s){var g;let i=this.rules.block.table.exec(s);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let r=Vg(i[1]),l=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(g=i[3])!=null&&g.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
200
|
-
`):[],h={type:"table",raw:Oi(i[0],`
|
|
201
|
-
`),header:[],align:[],rows:[]};if(r.length===l.length){for(let v of l)this.rules.other.tableAlignRight.test(v)?h.align.push("right"):this.rules.other.tableAlignCenter.test(v)?h.align.push("center"):this.rules.other.tableAlignLeft.test(v)?h.align.push("left"):h.align.push(null);for(let v=0;v<r.length;v++)h.header.push({text:r[v],tokens:this.lexer.inline(r[v]),header:!0,align:h.align[v]});for(let v of u)h.rows.push(Vg(v,h.header.length).map((m,p)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:h.align[p]})));return h}}lheading(s){let i=this.rules.block.lheading.exec(s);if(i){let r=i[1].trim();return{type:"heading",raw:Oi(i[0],`
|
|
202
|
-
`),depth:i[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(s){let i=this.rules.block.paragraph.exec(s);if(i){let r=i[1].charAt(i[1].length-1)===`
|
|
203
|
-
`?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:r,tokens:this.lexer.inline(r)}}}text(s){let i=this.rules.block.text.exec(s);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(s){let i=this.rules.inline.escape.exec(s);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(s){let i=this.rules.inline.tag.exec(s);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(s){let i=this.rules.inline.link.exec(s);if(i){let r=i[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let h=Oi(r.slice(0,-1),"\\");if((r.length-h.length)%2===0)return}else{let h=nT(i[2],"()");if(h===-2)return;if(h>-1){let g=(i[0].indexOf("!")===0?5:4)+i[1].length+h;i[2]=i[2].substring(0,h),i[0]=i[0].substring(0,g).trim(),i[3]=""}}let l=i[2],u="";if(this.options.pedantic){let h=this.rules.other.pedanticHrefTitle.exec(l);h&&(l=h[1],u=h[3])}else u=i[3]?i[3].slice(1,-1):"";return l=l.trim(),this.rules.other.startAngleBracket.test(l)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?l=l.slice(1):l=l.slice(1,-1)),Wg(i,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(s,i){let r;if((r=this.rules.inline.reflink.exec(s))||(r=this.rules.inline.nolink.exec(s))){let l=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=i[l.toLowerCase()];if(!u){let h=r[0].charAt(0);return{type:"text",raw:h,text:h}}return Wg(r,u,r[0],this.lexer,this.rules)}}emStrong(s,i,r=""){let l=this.rules.inline.emStrongLDelim.exec(s);if(!(!l||!l[1]&&!l[2]&&!l[3]&&!l[4]||l[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(l[1]||l[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,h,g,v=u,m=0,p=l[0][0],b=r===p,E=p==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(E.lastIndex=0,i=i.slice(-1*s.length+u);(l=E.exec(i))!==null;){if(h=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!h)continue;if(g=[...h].length,l[3]||l[4]){v+=g;continue}else if(l[5]||l[6]){if(u%3&&!((u+g)%3)){m+=g;continue}if(b)break}if(v-=g,v>0)continue;g=Math.min(g,g+v+m);let _=[...l[0]][0].length,N=s.slice(0,u+l.index+_+g);if(Math.min(u,g)%2){let C=N.slice(1,-1);return{type:"em",raw:N,text:C,tokens:this.lexer.inlineTokens(C)}}let x=N.slice(2,-2);return{type:"strong",raw:N,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(s){let i=this.rules.inline.code.exec(s);if(i){let r=i[2].replace(this.rules.other.newLineCharGlobal," "),l=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return l&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:i[0],text:r}}}br(s){let i=this.rules.inline.br.exec(s);if(i)return{type:"br",raw:i[0]}}del(s,i,r=""){let l=this.rules.inline.delLDelim.exec(s);if(l&&(!l[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,h,g,v=u,m=this.rules.inline.delRDelim;for(m.lastIndex=0,i=i.slice(-1*s.length+u);(l=m.exec(i))!==null;){if(h=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!h||(g=[...h].length,g!==u))continue;if(l[3]||l[4]){v+=g;continue}if(v-=g,v>0)continue;g=Math.min(g,g+v);let p=[...l[0]][0].length,b=s.slice(0,u+l.index+p+g),E=b.slice(u,-u);return{type:"del",raw:b,text:E,tokens:this.lexer.inlineTokens(E)}}}}autolink(s){let i=this.rules.inline.autolink.exec(s);if(i){let r,l;return i[2]==="@"?(r=i[1],l="mailto:"+r):(r=i[1],l=r),{type:"link",raw:i[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}url(s){var r;let i;if(i=this.rules.inline.url.exec(s)){let l,u;if(i[2]==="@")l=i[0],u="mailto:"+l;else{let h;do h=i[0],i[0]=((r=this.rules.inline._backpedal.exec(i[0]))==null?void 0:r[0])??"";while(h!==i[0]);l=i[0],i[1]==="www."?u="http://"+i[0]:u=i[0]}return{type:"link",raw:i[0],text:l,href:u,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(s){let i=this.rules.inline.text.exec(s);if(i){let r=this.lexer.state.inRawBlock;return{type:"text",raw:i[0],text:i[0],escaped:r}}}},ma=class xf{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||Wi,this.options.tokenizer=this.options.tokenizer||new lo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:xn,block:Jr.normal,inline:zs.normal};this.options.pedantic?(r.block=Jr.pedantic,r.inline=zs.pedantic):this.options.gfm&&(r.block=Jr.gfm,this.options.breaks?r.inline=zs.breaks:r.inline=zs.gfm),this.tokenizer.rules=r}static get rules(){return{block:Jr,inline:zs}}static lex(i,r){return new xf(r).lex(i)}static lexInline(i,r){return new xf(r).inlineTokens(i)}lex(i){i=i.replace(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 h,g,v;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=(h=this.options.extensions)==null?void 0:h.block)!=null&&g.some(b=>(m=b.call({lexer:this},i,r))?(i=i.substring(m.raw.length),r.push(m),!0):!1))continue;if(m=this.tokenizer.space(i)){i=i.substring(m.raw.length);let b=r.at(-1);m.raw.length===1&&b!==void 0?b.raw+=`
|
|
205
|
-
`:r.push(m);continue}if(m=this.tokenizer.code(i)){i=i.substring(m.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
206
|
-
`)?"":`
|
|
207
|
-
`)+m.raw,b.text+=`
|
|
208
|
-
`+m.text,this.inlineQueue.at(-1).src=b.text):r.push(m);continue}if(m=this.tokenizer.fences(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.heading(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.hr(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.blockquote(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.list(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.html(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.def(i)){i=i.substring(m.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
209
|
-
`)?"":`
|
|
210
|
-
`)+m.raw,b.text+=`
|
|
211
|
-
`+m.raw,this.inlineQueue.at(-1).src=b.text):this.tokens.links[m.tag]||(this.tokens.links[m.tag]={href:m.href,title:m.title},r.push(m));continue}if(m=this.tokenizer.table(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.lheading(i)){i=i.substring(m.raw.length),r.push(m);continue}let p=i;if((v=this.options.extensions)!=null&&v.startBlock){let b=1/0,E=i.slice(1),_;this.options.extensions.startBlock.forEach(N=>{_=N.call({lexer:this},E),typeof _=="number"&&_>=0&&(b=Math.min(b,_))}),b<1/0&&b>=0&&(p=i.substring(0,b+1))}if(this.state.top&&(m=this.tokenizer.paragraph(p))){let b=r.at(-1);l&&(b==null?void 0:b.type)==="paragraph"?(b.raw+=(b.raw.endsWith(`
|
|
212
|
-
`)?"":`
|
|
213
|
-
`)+m.raw,b.text+=`
|
|
214
|
-
`+m.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(m),l=p.length!==i.length,i=i.substring(m.raw.length);continue}if(m=this.tokenizer.text(i)){i=i.substring(m.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
215
|
-
`)?"":`
|
|
216
|
-
`)+m.raw,b.text+=`
|
|
217
|
-
`+m.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(m);continue}if(i){this.infiniteLoopError(i.charCodeAt(0));break}}return this.state.top=!0,r}inline(i,r=[]){return this.inlineQueue.push({src:i,tokens:r}),r}inlineTokens(i,r=[]){var v,m,p,b,E;this.tokenizer.lexer=this;let l=i;if(this.tokens.links){let _=Object.keys(this.tokens.links);_.length>0&&(l=l.replace(this.tokenizer.rules.inline.reflinkSearch,N=>_.includes(N.slice(N.lastIndexOf("[")+1,-1))?"["+"a".repeat(N.length-2)+"]":N))}l=l.replace(this.tokenizer.rules.inline.anyPunctuation,_=>"+".repeat(_.length)),l=l.replace(this.tokenizer.rules.inline.blockSkip,(_,N,x)=>{let C=x?x.length:0;return _.slice(0,C)+"["+"a".repeat(_.length-C-2)+"]"}),l=((m=(v=this.options.hooks)==null?void 0:v.emStrongMask)==null?void 0:m.call({lexer:this},l))??l;let u=!1,h="",g=1/0;for(;i;){if(i.length<g)g=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}u||(h=""),u=!1;let _;if((b=(p=this.options.extensions)==null?void 0:p.inline)!=null&&b.some(x=>(_=x.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 x=r.at(-1);_.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=_.raw,x.text+=_.text):r.push(_);continue}if(_=this.tokenizer.emStrong(i,l,h)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.codespan(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.br(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.del(i,l,h)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.autolink(i)){i=i.substring(_.raw.length),r.push(_);continue}if(!this.state.inLink&&(_=this.tokenizer.url(i))){i=i.substring(_.raw.length),r.push(_);continue}let N=i;if((E=this.options.extensions)!=null&&E.startInline){let x=1/0,C=i.slice(1),R;this.options.extensions.startInline.forEach(j=>{R=j.call({lexer:this},C),typeof R=="number"&&R>=0&&(x=Math.min(x,R))}),x<1/0&&x>=0&&(N=i.substring(0,x+1))}if(_=this.tokenizer.inlineText(N)){i=i.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(h=_.raw.slice(-1)),u=!0;let x=r.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=_.raw,x.text+=_.text):r.push(_);continue}if(i){this.infiniteLoopError(i.charCodeAt(0));break}}return r}infiniteLoopError(i){let r="Infinite loop on byte: "+i;if(this.options.silent)console.error(r);else throw new Error(r)}},so=class{constructor(s){_t(this,"options");_t(this,"parser");this.options=s||Wi}space(s){return""}code({text:s,lang:i,escaped:r}){var h;let l=(h=(i||"").match(xn.notSpaceStart))==null?void 0:h[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 v=s.items[g];l+=this.listitem(v)}let u=i?"ol":"ul",h=i&&r!==1?' start="'+r+'"':"";return"<"+u+h+`>
|
|
225
|
-
`+l+"</"+u+`>
|
|
226
|
-
`}listitem(s){return`<li>${this.parser.parse(s.tokens)}</li>
|
|
227
|
-
`}checkbox({checked:s}){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:s}){return`<p>${this.parser.parseInline(s)}</p>
|
|
228
|
-
`}table(s){let i="",r="";for(let u=0;u<s.header.length;u++)r+=this.tablecell(s.header[u]);i+=this.tablerow({text:r});let l="";for(let u=0;u<s.rows.length;u++){let h=s.rows[u];r="";for(let g=0;g<h.length;g++)r+=this.tablecell(h[g]);l+=this.tablerow({text:r})}return l&&(l=`<tbody>${l}</tbody>`),`<table>
|
|
229
|
-
<thead>
|
|
230
|
-
`+i+`</thead>
|
|
231
|
-
`+l+`</table>
|
|
232
|
-
`}tablerow({text:s}){return`<tr>
|
|
233
|
-
${s}</tr>
|
|
234
|
-
`}tablecell(s){let i=this.parser.parseInline(s.tokens),r=s.header?"th":"td";return(s.align?`<${r} align="${s.align}">`:`<${r}>`)+i+`</${r}>
|
|
235
|
-
`}strong({tokens:s}){return`<strong>${this.parser.parseInline(s)}</strong>`}em({tokens:s}){return`<em>${this.parser.parseInline(s)}</em>`}codespan({text:s}){return`<code>${Ra(s,!0)}</code>`}br(s){return"<br>"}del({tokens:s}){return`<del>${this.parser.parseInline(s)}</del>`}link({href:s,title:i,tokens:r}){let l=this.parser.parseInline(r),u=Qg(s);if(u===null)return l;s=u;let h='<a href="'+s+'"';return i&&(h+=' title="'+Ra(i)+'"'),h+=">"+l+"</a>",h}image({href:s,title:i,text:r,tokens:l}){l&&(r=this.parser.parseInline(l,this.parser.textRenderer));let u=Qg(s);if(u===null)return Ra(r);s=u;let h=`<img src="${s}" alt="${Ra(r)}"`;return i&&(h+=` title="${Ra(i)}"`),h+=">",h}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:Ra(s.text)}},Ff=class{strong({text:s}){return s}em({text:s}){return s}codespan({text:s}){return s}del({text:s}){return s}html({text:s}){return s}text({text:s}){return s}link({text:s}){return""+s}image({text:s}){return""+s}br(){return""}checkbox({raw:s}){return s}},ga=class wf{constructor(i){_t(this,"options");_t(this,"renderer");_t(this,"textRenderer");this.options=i||Wi,this.options.renderer=this.options.renderer||new so,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ff}static parse(i,r){return new wf(r).parse(i)}static parseInline(i,r){return new wf(r).parseInline(i)}parse(i){var l,u;this.renderer.parser=this;let r="";for(let h=0;h<i.length;h++){let g=i[h];if((u=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&u[g.type]){let m=g,p=this.options.extensions.renderers[m.type].call({parser:this},m);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(m.type)){r+=p||"";continue}}let v=g;switch(v.type){case"space":{r+=this.renderer.space(v);break}case"hr":{r+=this.renderer.hr(v);break}case"heading":{r+=this.renderer.heading(v);break}case"code":{r+=this.renderer.code(v);break}case"table":{r+=this.renderer.table(v);break}case"blockquote":{r+=this.renderer.blockquote(v);break}case"list":{r+=this.renderer.list(v);break}case"checkbox":{r+=this.renderer.checkbox(v);break}case"html":{r+=this.renderer.html(v);break}case"def":{r+=this.renderer.def(v);break}case"paragraph":{r+=this.renderer.paragraph(v);break}case"text":{r+=this.renderer.text(v);break}default:{let m='Token with "'+v.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}parseInline(i,r=this.renderer){var u,h;this.renderer.parser=this;let l="";for(let g=0;g<i.length;g++){let v=i[g];if((h=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&h[v.type]){let p=this.options.extensions.renderers[v.type].call({parser:this},v);if(p!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(v.type)){l+=p||"";continue}}let m=v;switch(m.type){case"escape":{l+=r.text(m);break}case"html":{l+=r.html(m);break}case"link":{l+=r.link(m);break}case"image":{l+=r.image(m);break}case"checkbox":{l+=r.checkbox(m);break}case"strong":{l+=r.strong(m);break}case"em":{l+=r.em(m);break}case"codespan":{l+=r.codespan(m);break}case"br":{l+=r.br(m);break}case"del":{l+=r.del(m);break}case"text":{l+=r.text(m);break}default:{let p='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return l}},eo,Bs=(eo=class{constructor(s){_t(this,"options");_t(this,"block");this.options=s||Wi}preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}emStrongMask(s){return s}provideLexer(s=this.block){return s?ma.lex:ma.lexInline}provideParser(s=this.block){return s?ga.parse:ga.parseInline}},_t(eo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),_t(eo,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),eo),lT=class{constructor(...s){_t(this,"defaults",If());_t(this,"options",this.setOptions);_t(this,"parse",this.parseMarkdown(!0));_t(this,"parseInline",this.parseMarkdown(!1));_t(this,"Parser",ga);_t(this,"Renderer",so);_t(this,"TextRenderer",Ff);_t(this,"Lexer",ma);_t(this,"Tokenizer",lo);_t(this,"Hooks",Bs);this.use(...s)}walkTokens(s,i){var l,u;let r=[];for(let h of s)switch(r=r.concat(i.call(this,h)),h.type){case"table":{let g=h;for(let v of g.header)r=r.concat(this.walkTokens(v.tokens,i));for(let v of g.rows)for(let m of v)r=r.concat(this.walkTokens(m.tokens,i));break}case"list":{let g=h;r=r.concat(this.walkTokens(g.items,i));break}default:{let g=h;(u=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&u[g.type]?this.defaults.extensions.childTokens[g.type].forEach(v=>{let m=g[v].flat(1/0);r=r.concat(this.walkTokens(m,i))}):g.tokens&&(r=r.concat(this.walkTokens(g.tokens,i)))}}return r}use(...s){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(r=>{let l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let h=i.renderers[u.name];h?i.renderers[u.name]=function(...g){let v=u.renderer.apply(this,g);return v===!1&&(v=h.apply(this,g)),v}:i.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let h=i[u.level];h?h.unshift(u.tokenizer):i[u.level]=[u.tokenizer],u.start&&(u.level==="block"?i.startBlock?i.startBlock.push(u.start):i.startBlock=[u.start]:u.level==="inline"&&(i.startInline?i.startInline.push(u.start):i.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(i.childTokens[u.name]=u.childTokens)}),l.extensions=i),r.renderer){let u=this.defaults.renderer||new so(this.defaults);for(let h in r.renderer){if(!(h in u))throw new Error(`renderer '${h}' does not exist`);if(["options","parser"].includes(h))continue;let g=h,v=r.renderer[g],m=u[g];u[g]=(...p)=>{let b=v.apply(u,p);return b===!1&&(b=m.apply(u,p)),b||""}}l.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new lo(this.defaults);for(let h in r.tokenizer){if(!(h in u))throw new Error(`tokenizer '${h}' does not exist`);if(["options","rules","lexer"].includes(h))continue;let g=h,v=r.tokenizer[g],m=u[g];u[g]=(...p)=>{let b=v.apply(u,p);return b===!1&&(b=m.apply(u,p)),b}}l.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new Bs;for(let h in r.hooks){if(!(h in u))throw new Error(`hook '${h}' does not exist`);if(["options","block"].includes(h))continue;let g=h,v=r.hooks[g],m=u[g];Bs.passThroughHooks.has(h)?u[g]=p=>{if(this.defaults.async&&Bs.passThroughHooksRespectAsync.has(h))return(async()=>{let E=await v.call(u,p);return m.call(u,E)})();let b=v.call(u,p);return m.call(u,b)}:u[g]=(...p)=>{if(this.defaults.async)return(async()=>{let E=await v.apply(u,p);return E===!1&&(E=await m.apply(u,p)),E})();let b=v.apply(u,p);return b===!1&&(b=m.apply(u,p)),b}}l.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,h=r.walkTokens;l.walkTokens=function(g){let v=[];return v.push(h.call(this,g)),u&&(v=v.concat(u.call(this,g))),v}}this.defaults={...this.defaults,...l}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,i){return 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},h=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&l.async===!1)return h(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return h(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return h(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(u.hooks&&(u.hooks.options=u,u.hooks.block=s),u.async)return(async()=>{let g=u.hooks?await u.hooks.preprocess(i):i,v=await(u.hooks?await u.hooks.provideLexer(s):s?ma.lex:ma.lexInline)(g,u),m=u.hooks?await u.hooks.processAllTokens(v):v;u.walkTokens&&await Promise.all(this.walkTokens(m,u.walkTokens));let p=await(u.hooks?await u.hooks.provideParser(s):s?ga.parse:ga.parseInline)(m,u);return u.hooks?await u.hooks.postprocess(p):p})().catch(h);try{u.hooks&&(i=u.hooks.preprocess(i));let g=(u.hooks?u.hooks.provideLexer(s):s?ma.lex:ma.lexInline)(i,u);u.hooks&&(g=u.hooks.processAllTokens(g)),u.walkTokens&&this.walkTokens(g,u.walkTokens);let v=(u.hooks?u.hooks.provideParser(s):s?ga.parse:ga.parseInline)(g,u);return u.hooks&&(v=u.hooks.postprocess(v)),v}catch(g){return h(g)}}}onError(s,i){return r=>{if(r.message+=`
|
|
236
|
-
Please report this to https://github.com/markedjs/marked.`,s){let l="<p>An error occurred:</p><pre>"+Ra(r.message+"",!0)+"</pre>";return i?Promise.resolve(l):l}if(i)return Promise.reject(r);throw r}}},Vi=new lT;function gt(s,i){return Vi.parse(s,i)}gt.options=gt.setOptions=function(s){return Vi.setOptions(s),gt.defaults=Vi.defaults,Mb(gt.defaults),gt};gt.getDefaults=If;gt.defaults=Wi;function sT(...s){return Vi.use(...s),gt.defaults=Vi.defaults,Mb(gt.defaults),gt}gt.use=sT;gt.walkTokens=function(s,i){return Vi.walkTokens(s,i)};gt.parseInline=Vi.parseInline;gt.Parser=ga;gt.parser=ga.parse;gt.Renderer=so;gt.TextRenderer=Ff;gt.Lexer=ma;gt.lexer=ma.lex;gt.Tokenizer=lo;gt.Hooks=Bs;gt.parse=gt;gt.options;gt.setOptions;gt.walkTokens;gt.parseInline;ga.parse;ma.lex;gt.setOptions({gfm:!0,breaks:!1});function Ji({text:s,className:i}){const r=ue.useMemo(()=>{const l=gt.parse(s??"",{async:!1});return cS.sanitize(l)},[s]);return s!=null&&s.trim()?d.jsx("div",{className:`md ${i??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const Wr={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},eb={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function rT(s){return(s==null?void 0:s.recommendation)==="approve"?"APPROVE":(s==null?void 0:s.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function qb(s,i){const r=PE(s);return i.filter(l=>{var u;return!l.drifted&&l.line!=null&&((u=r.get(l.path))==null?void 0:u.has(l.line))})}function tb(s,i){const r=h=>{const g=Number((h??"").trim());return Number.isInteger(g)&&g>0?g:null},l=r(i);if(l!=null)return{line:l,side:"new"};const u=r(s);return u!=null?{line:u,side:"old"}:null}function Gb(s){const i=s.comments.filter(u=>u.status==="dropped"),r=s.comments.filter(u=>u.status!=="dropped"),l=qb(s.diff,r);return{inline:l,folded:r.filter(u=>!l.includes(u)),dropped:i}}function bf(s){const i=s.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:i.filter(h=>h.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:h})=>`${Eb[u]} ${h} ${u}${h===1?"":"s"}`).join(" · ")}function oT(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 cT(s){if(!s.verdict||!s.comments.some(u=>u.severity!=null))return null;const r=s.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,l=s.verdict.recommendation;return l==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:l==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function nb(s){const{inline:i,folded:r}=Gb(s);if(i.length===0&&r.length===0)return"no inline comments · body only";const l=[`${i.length} inline`];return r.length>0&&l.push(`${r.length} folded into the body`),l.join(" · ")}const ab={approve:"approve",comment:"comment",request_changes:"changes"},uT={approve:"approve",comment:"comment",request_changes:"changes"};function fT(s,i){return s.status==="dropped"?"none":s.drifted?"comment":s.origin==="user"?"awaiting":i}function $b(s,i=20){const r=document.getElementById(`c-${s}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}i>0&&requestAnimationFrame(()=>$b(s,i-1))}function dT(s){const i=s,r=i==null?void 0:i.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(i==null?void 0:i.isContentEditable)===!0}function ib(s,i){const r=document.createElement("tr");r.className=i;const l=document.createElement("td");l.colSpan=2;const u=document.createElement("div");return l.appendChild(u),r.appendChild(l),s.after(r),{tr:r,holder:u}}function hT({pick:s,chatBusy:i,onAdd:r,onAsk:l,onClose:u}){const[h,g]=ue.useState(""),v=ue.useRef(null);ue.useEffect(()=>{var p;return(p=v.current)==null?void 0:p.focus()},[]);const m=h.trim();return d.jsxs("div",{className:"line-composer",children:[d.jsxs("div",{className:"line-composer-head",children:[d.jsxs("span",{className:"comment-loc",children:[s.path,":",s.line]}),s.side==="old"&&d.jsx("span",{className:"faint",title:"GitHub only takes inline comments on the new side of a diff.",children:"this line is gone from the new file — a comment on it posts on the file, not the line"})]}),d.jsx("textarea",{ref:v,className:"comment-edit",rows:3,placeholder:"what about this line?",value:h,onChange:p=>g(p.target.value),onKeyDown:p=>{p.key==="Escape"&&u(),p.key==="Enter"&&(p.metaKey||p.ctrlKey)&&m&&(p.preventDefault(),r(m))}}),d.jsxs("div",{className:"line-composer-actions",children:[d.jsxs("button",{className:"btn",disabled:!m,onClick:()=>r(m),children:[d.jsx(tt,{name:"plus"}),"add comment",d.jsx(Ci,{children:"⌘↵"})]}),d.jsxs("button",{className:"btn btn-accent",disabled:!m||i,title:i?"the reviewer is still answering the last question":"Ask the reviewer about this line — the answer lands in the chat below",onClick:()=>l(m),children:[d.jsx(tt,{name:"comment"}),"ask the reviewer"]}),d.jsx("span",{className:"grow"}),d.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function pT({patch:s,comments:i,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:h,onAskAboutLine:g}){const v=ue.useMemo(()=>s.trim()?$E(s,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[s]),m=ue.useMemo(()=>js(s).map(B=>B.path),[s]),p=ue.useMemo(()=>i.map(B=>`${B.id}@${B.path}:${B.line}`).join("|"),[i]),b=ue.useRef(null),[E,_]=ue.useState([]),[N,x]=ue.useState(null),[C,R]=ue.useState(null);if(ue.useEffect(()=>{var ae,O;const B=b.current;if(!B)return;B.innerHTML=v,_0(B);const M=new Map;B.querySelectorAll(".d2h-file-wrapper").forEach((q,V)=>{var be,Ne;const F=(Ne=(be=q.querySelector(".d2h-file-name"))==null?void 0:be.textContent)==null?void 0:Ne.trim(),oe=F&&m.includes(F)?F:m[V];F&&M.set(F,q),oe&&(M.set(oe,q),q.dataset.path=oe)});const ee=[],H=new Map;for(const q of i){if(q.line==null)continue;const V=M.get(q.path);if(!V)continue;const F=Array.from(V.querySelectorAll(".d2h-diff-tbody > tr")).find(be=>{var Ne,ge;return((ge=(Ne=be.querySelector(".line-num2"))==null?void 0:Ne.textContent)==null?void 0:ge.trim())===String(q.line)});if(!F)continue;const oe=ib(H.get(F)??F,"inline-comment-row");H.set(F,oe.tr),ee.push({id:q.id,el:oe.holder})}if(_(ee),l){x(null),R(null);return}for(const q of B.querySelectorAll(".d2h-file-wrapper")){const V=q.dataset.path;if(V)for(const F of q.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const oe=tb((ae=F.querySelector(".line-num1"))==null?void 0:ae.textContent,(O=F.querySelector(".line-num2"))==null?void 0:O.textContent);if(!oe)continue;const be=document.createElement("button");be.type="button",be.className="line-add";const Ne=`Say something about ${V}:${oe.line}`;be.title=Ne,be.setAttribute("aria-label",Ne),be.tabIndex=-1,be.dataset.path=V,be.dataset.line=String(oe.line),be.dataset.side=oe.side,F.appendChild(be)}}const te=q=>{const V=q.target.closest(".line-add");if(!V)return;const{path:F,line:oe,side:be}=V.dataset;!F||!oe||x({path:F,line:Number(oe),side:be==="old"?"old":"new"})};return B.addEventListener("click",te),R(null),()=>B.removeEventListener("click",te)},[v,p,m,l]),ue.useEffect(()=>{const B=b.current;if(!B||!N||l){R(null);return}const M=Array.from(B.querySelectorAll(".d2h-file-wrapper")).find(te=>te.dataset.path===N.path),ee=Array.from((M==null?void 0:M.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(te=>{var q,V;const ae=te.querySelector(".d2h-code-linenumber"),O=tb((q=ae==null?void 0:ae.querySelector(".line-num1"))==null?void 0:q.textContent,(V=ae==null?void 0:ae.querySelector(".line-num2"))==null?void 0:V.textContent);return(O==null?void 0:O.line)===N.line&&O.side===N.side});if(!ee){x(null);return}const H=ib(ee,"line-composer-row");return R(H.holder),()=>H.tr.remove()},[N,E,l]),!v)return d.jsx("p",{className:"muted",children:"No diff for this chapter."});const j=i.filter(B=>!E.some(M=>M.id===B.id));return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"diff",ref:b}),E.map(({id:B,el:M})=>{const ee=i.find(H=>H.id===B);return ee?Gm.createPortal(r(ee),M,B):null}),N&&C&&Gm.createPortal(d.jsx(hT,{pick:N,chatBusy:u,onAdd:B=>{h(N,B),x(null)},onAsk:B=>{g(N,B),x(null)},onClose:()=>x(null)}),C,`pick-${N.path}-${N.side}-${N.line}`),j.map(B=>r(B))]})}function Yb({comment:s,onUpdate:i,onDelete:r,onDiscuss:l,readOnly:u,flash:h}){const[g,v]=ue.useState(!1),[m,p]=ue.useState(s.body),b=s.status==="approved",E=s.status==="dropped",_=s.origin==="user"?"yours":E?"dropped":b?"kept":"drafted";return d.jsxs("div",{id:`c-${s.id}`,className:`comment comment-${s.status}${h?" comment-flash":""}`,children:[d.jsxs("div",{className:"comment-head",children:[d.jsxs("span",{className:"comment-loc",children:[s.path,s.line!=null?`:${s.line}`:""]}),d.jsx("span",{className:`tag tag-${s.origin==="user"?"yours":_}`,children:_}),s.drifted&&d.jsx("span",{className:"tag tag-drift",title:"The code this comment pointed at is gone from the diff, so it can't post inline.",children:"drifted — posts in the body"}),!s.drifted&&s.originalLine!=null&&s.originalLine!==s.line&&d.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",s.originalLine]}),d.jsx("span",{className:"grow"}),!u&&(g?d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"btn btn-sm",onClick:()=>{i({body:m}),v(!1)},children:"save"}),d.jsx("button",{className:"btn btn-sm",onClick:()=>{p(s.body),v(!1)},children:"cancel"})]}):d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:`btn btn-sm${b?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>i({status:b?"draft":"approved"}),children:[d.jsx(tt,{name:"check"}),"keep"]}),d.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>v(!0),children:[d.jsx(tt,{name:"edit"}),"edit"]}),d.jsxs("button",{className:`btn btn-sm${E?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>i({status:E?"draft":"dropped"}),children:[d.jsx(tt,{name:"drop"}),E?"dropped":"drop"]}),l&&d.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:l,children:[d.jsx(tt,{name:"comment"}),"discuss"]}),s.origin==="user"&&d.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),g?d.jsx("textarea",{className:"comment-edit",value:m,onChange:N=>p(N.target.value),rows:Math.max(3,m.split(`
|
|
237
|
-
`).length)}):d.jsx(Ji,{className:"comment-body prose",text:QE(s.body,s.severity??null)})]})}function mT({files:s,chapterId:i,onAdd:r}){const[l,u]=ue.useState(!1),[h,g]=ue.useState(s[0]??""),[v,m]=ue.useState(""),[p,b]=ue.useState("");return l?d.jsxs("div",{className:"add-comment",children:[d.jsxs("div",{className:"add-comment-row",children:[d.jsx("select",{value:h,onChange:E=>g(E.target.value),children:s.map(E=>d.jsx("option",{value:E,children:E},E))}),d.jsx("input",{placeholder:"line (optional)",value:v,onChange:E=>m(E.target.value.replace(/\D/g,"")),size:12})]}),d.jsx("textarea",{placeholder:"Your comment…",value:p,onChange:E=>b(E.target.value),rows:3}),d.jsxs("div",{className:"add-comment-row",children:[d.jsx("button",{className:"btn",disabled:!p.trim()||!h,onClick:()=>{r({path:h,line:v?Number(v):null,body:p.trim(),chapterId:i}),b(""),m(""),u(!1)},children:"add"}),d.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):d.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[d.jsx(tt,{name:"plus"}),"add a comment of your own"]})}const gT=2e3;function bT({chapter:s,n:i,diff:r,comments:l,open:u,heavy:h,onToggle:g,onUpdateComment:v,onDeleteComment:m,onAddComment:p,onDiscuss:b,onAskAboutLine:E,chatBusy:_,readOnly:N,anchorRef:x,flash:C}){const R=ue.useMemo(()=>YE(r,s.files),[r,s.files]),j=ue.useMemo(()=>qb(R,l),[R,l]),B=l.filter(ee=>!j.includes(ee)),M=ee=>d.jsx(Yb,{comment:ee,onUpdate:H=>v(ee.id,H),onDelete:()=>m(ee.id),onDiscuss:b&&(()=>b({target:"comment",id:ee.id})),readOnly:N,flash:C===ee.id},ee.id);return d.jsxs("section",{className:"chapter",ref:x,children:[d.jsxs("header",{className:"chapter-head",onClick:g,children:[d.jsx("span",{className:"faint",children:u?"▾":"▸"}),d.jsxs("h3",{children:[i," · ",s.title]}),d.jsxs("span",{className:"faint chapter-meta",children:[s.files.length," file",s.files.length===1?"":"s",l.length>0?` · ${l.length} comment${l.length===1?"":"s"}`:" · no comments",h!=null&&!u&&d.jsx("span",{title:"Drawing this many lines at once would leave the page too slow to scroll. Open it if you want it — nothing else on the page is affected.",children:` · ${h.toLocaleString()} diff lines, folded to keep the page quick`})]}),d.jsx("span",{className:"grow"}),b&&d.jsxs("button",{className:"btn btn-sm",onClick:ee=>{ee.stopPropagation(),b({target:"chapter",id:s.id})},children:[d.jsx(tt,{name:"comment"}),"discuss"]})]}),u&&d.jsxs("div",{className:"chapter-body",children:[d.jsx(Ji,{className:"prose chapter-explanation",text:s.explanation}),B.map(M),d.jsx(pT,{patch:R,comments:j,renderComment:M,readOnly:N,chatBusy:_,onAddLineComment:(ee,H)=>p({path:ee.path,line:ee.side==="new"?ee.line:null,body:H,chapterId:s.id}),onAskAboutLine:E}),!N&&s.files.length>0&&d.jsx(mT,{files:s.files,chapterId:s.id,onAdd:p})]})]})}function yT(s,i){switch(s.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${s.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=i.chapters.find(l=>l.id===s.chapterId);return`rewrote the "${(r==null?void 0:r.title)??s.chapterId}" chapter`}case"comment-edit":{const r=i.comments.find(l=>l.id===s.commentId);return r?`rewrote the comment on ${r.path}:${r.line??"file"}`:"rewrote a comment"}case"comment-drop":{const r=i.comments.find(l=>l.id===s.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${s.path}:${s.line??"file"}`}}function Af(s,i){var l;if(s.target==="summary")return"the summary";if(s.target==="verdict")return"the verdict";if(s.target==="chapter")return((l=i.chapters.find(u=>u.id===s.id))==null?void 0:l.title)??"a chapter";if(s.target==="line")return s.path==null||s.line==null?"a line of the diff":`${s.path}:${s.line}${s.side==="old"?" (removed)":""}`;const r=i.comments.find(u=>u.id===s.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function vT({turn:s,artifact:i}){return d.jsxs("div",{className:`chat-turn chat-turn-${s.role}`,children:[d.jsx("div",{className:"chat-turn-who",children:s.role==="user"?"You":"Reviewer"}),s.refs.length>0&&d.jsx("div",{className:"chat-refs",children:s.refs.map((r,l)=>d.jsx("span",{className:"chat-ref",children:Af(r,i)},l))}),d.jsx(Ji,{className:"chat-turn-body prose",text:s.body}),s.revisions.map((r,l)=>d.jsxs("div",{className:"chat-revision",children:["↳ ",yT(r,i)]},l)),s.refused.map((r,l)=>d.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},l))]})}function ET({artifact:s,reviewKey:i,refs:r,onClearRefs:l,onDropRef:u,onArtifact:h,readOnly:g,inputRef:v,anchorRef:m}){const[p,b]=ue.useState(""),[E,_]=ue.useState(!1),[N,x]=ue.useState(null),C=s.chat??[],R=s.pendingChat??null,j=R!=null&&R.error==null,B=E||j,M=(H,te,ae)=>{!H||B||(_(!0),x(null),Ef(i,{message:H,refs:te}).then(O=>{h(O),ae==null||ae()}).catch(O=>x(String(O.message??O))).finally(()=>_(!1)))},ee=()=>M(p.trim(),r,()=>{b(""),l()});return d.jsxs("section",{className:"card chat-panel",ref:m,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"talk to the reviewer"}),d.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),d.jsxs("div",{className:"card-body",children:[(C.length>0||R)&&d.jsxs("div",{className:"chat-log",children:[C.map(H=>d.jsx(vT,{turn:H,artifact:s},H.id)),R&&d.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[d.jsx("div",{className:"chat-turn-who",children:"You"}),R.refs.length>0&&d.jsx("div",{className:"chat-refs",children:R.refs.map((H,te)=>d.jsx("span",{className:"chat-ref",children:Af(H,s)},te))}),d.jsx(Ji,{className:"chat-turn-body prose",text:R.message}),R.error?d.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",R.error,!g&&d.jsxs(d.Fragment,{children:[" ",d.jsx("button",{className:"btn btn-sm",onClick:()=>M(R.message,R.refs),children:"ask again"})," ",d.jsx("button",{className:"btn btn-sm",onClick:()=>x_(i).then(h).catch(H=>x(String(H.message??H))),children:"dismiss"})]})]}):d.jsx("div",{className:"chat-waiting",children:R.progress.length>0?d.jsx("ol",{className:"chat-progress",children:R.progress.map((H,te)=>d.jsx("li",{className:te===R.progress.length-1?"now":void 0,children:H},te))}):"Thinking… it re-reads the code before answering."})]})]}),g?d.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):d.jsxs(d.Fragment,{children:[r.length>0&&d.jsxs("div",{className:"chat-refs chat-refs-pending",children:[d.jsx("span",{className:"faint",children:"about:"}),r.map((H,te)=>d.jsxs("button",{className:"chat-ref",onClick:()=>u(te),title:"Remove",children:[Af(H,s)," ✕"]},te))]}),d.jsx("textarea",{ref:v,className:"chat-input",rows:2,value:p,disabled:E,placeholder:C.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:H=>b(H.target.value),onKeyDown:H=>{H.key==="Enter"&&(H.metaKey||H.ctrlKey)&&ee()}}),d.jsxs("div",{className:"chat-actions",children:[d.jsxs("button",{className:"btn btn-dark",onClick:ee,disabled:B||p.trim()==="",children:[d.jsx(tt,{name:"send"}),j?"waiting for the answer…":E?"sending…":"send message",d.jsx(Ci,{children:"⌘↵"})]}),d.jsx("span",{className:"grow"}),s.preChat&&d.jsx("button",{className:"btn btn-sm",disabled:B,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),w_(i).then(h).catch(H=>x(String(H.message??H))).finally(()=>_(!1))},children:"reset the review"})]})]}),N&&d.jsx("div",{className:"error",children:N})]})]})}function _T({artifact:s,reviewKey:i,event:r,overridden:l,onPickEvent:u,sending:h,onSend:g,error:v,footer:m,next:p,onAdvance:b,anchorRef:E}){var ee;const[_,N]=ue.useState(null),[x,C]=ue.useState(null),[R,j]=ue.useState(!1),[B,M]=ue.useState(!1);return ue.useEffect(()=>{R&&A_(i,r).then(H=>{N(H),C(null)}).catch(H=>C(String(H)))},[i,r,s,R]),s.sent?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"sent-strip",ref:E,children:[d.jsxs("strong",{children:["✔ sent as ",Wr[s.sent.event]]}),d.jsxs("span",{className:"faint",children:[new Date(s.sent.at).toLocaleString()," · ",nb(s),s.sent.auto?" · auto-sent by the daemon":""]}),d.jsx("span",{className:"grow"}),s.sent.url&&d.jsxs("a",{href:s.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",d.jsx(tt,{name:"external"})]}),d.jsxs("button",{className:"btn",onClick:b,children:[p?`next review: ${p.pr.repo}#${p.pr.number}`:"back to the queue",d.jsx(tt,{name:"arrowRight"})]})]}),d.jsx("div",{className:"post-actions",children:m})]}):d.jsxs("div",{className:"send-panel",ref:E,children:[d.jsxs("div",{className:"send-top",children:[d.jsx("span",{className:"lab",children:"send to github"}),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:nb(s)}),d.jsxs("button",{className:"link",onClick:()=>j(!R),children:[d.jsx(tt,{name:"eye"}),R?"hide what gets posted":"see what gets posted"]})]}),d.jsxs("div",{className:"send-action",children:[d.jsxs("button",{className:`send-btn tone-bg-${eb[r]}`,disabled:h,onClick:g,children:[d.jsx(tt,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),h?"sending…":`${Wr[r]} on ${s.id}`," ",d.jsx(Ci,{children:"s"})]}),d.jsxs("div",{className:"send-as",children:[d.jsxs("button",{className:"send-as-toggle",onClick:()=>M(!B),children:["as ",d.jsx("b",{children:Wr[r]})," ",B?"▴":"▾"]}),d.jsx("div",{className:"send-as-why",children:l?`you chose this — the verdict says ${((ee=s.verdict)==null?void 0:ee.recommendation.replace("_"," "))??"nothing"}`:"follows the verdict"}),B&&d.jsx("div",{className:"menu",children:["REQUEST_CHANGES","COMMENT","APPROVE"].map(H=>d.jsxs("button",{className:`menu-item${r===H?" menu-item-on":""}`,onClick:()=>{u(H),M(!1)},children:[d.jsx("span",{className:`tone-${eb[H]}`,children:d.jsx(tt,{name:H==="APPROVE"?"approve":H==="COMMENT"?"comment":"changes"})}),d.jsx("span",{className:"grow",children:Wr[H]}),d.jsx("span",{className:"menu-check",children:r===H?"✓":""})]},H))})]})]}),v&&d.jsx("p",{className:"error",children:v}),R&&(x?d.jsx("p",{className:"error",children:x}):_?d.jsx("pre",{className:"body-preview",children:_.body}):d.jsx("p",{className:"faint",children:"building the body…"})),d.jsx("div",{className:"send-footer",children:m})]})}function ST({filed:s}){var l,u,h;const i=((l=s.review)==null?void 0:l.url)??((u=s.reply)==null?void 0:u.url)??null,r=g=>new Date(g).toLocaleDateString();return s.reason==="own-reply"&&s.reply?d.jsxs("div",{children:[d.jsxs("strong",{children:["You answered on this PR on ",r(s.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",i?d.jsx("a",{href:i,target:"_blank",rel:"noreferrer",children:"comment"}):"comment"," ","as a review, but the PR is with its author either way. Nothing here was changed or sent — the draft is still yours to send."]}):s.reason==="request-withdrawn"?d.jsxs("div",{children:[d.jsx("strong",{children:"Nobody is asking for this review any more."})," The request that put this PR in the inbox was taken back on or before ",r(s.at),", and you had said nothing on the PR, so cerber filed the draft under settled rather than leaving it out for you. Nothing here was changed or sent — the draft is still yours to send."]}):d.jsxs("div",{children:[d.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((h=s.review)==null?void 0:h.at)??s.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",i?d.jsx("a",{href:i,target:"_blank",rel:"noreferrer",children:"already on the PR"}):"already on the PR",". Nothing here was changed or sent — the draft is still yours to send."]})}function TT({entries:s,open:i,onToggle:r,anchorRef:l}){const u=h=>{const g=new Date(h);return Number.isNaN(g.getTime())?h:`${g.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${g.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return d.jsxs("section",{className:"card",ref:l,children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"history"}),d.jsx("span",{className:"faint",children:s.length>0?`${s.length} entr${s.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),d.jsx("span",{className:"grow"}),d.jsxs("button",{className:"btn btn-sm","aria-expanded":i,onClick:r,children:[d.jsx(tt,{name:i?"up":"down",size:12}),i?"hide":"show"]})]}),i&&d.jsx("div",{className:"card-body",children:s.length===0?d.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):d.jsx("ol",{className:"history",children:s.map((h,g)=>({e:h,i:g})).reverse().map(({e:h,i:g})=>d.jsxs("li",{className:"history-row",title:h.at,children:[d.jsx("span",{className:"history-at",children:u(h.at)}),d.jsx("span",{className:"history-by",children:h.by}),d.jsx("span",{className:"history-what",children:h.what}),h.cause&&d.jsx("span",{className:"history-cause",children:h.cause})]},`${g}-${h.at}`))})})]})}function NT({artifact:s,freshness:i,rerunning:r,onRerun:l}){const u=s.status==="running",h=(i==null?void 0:i.prState)??s.pr.state,g=h==="CLOSED"||h==="MERGED",v=s.refresh,m=i!=null&&i.changed?v:null;if(u)return d.jsxs("div",{className:"freshness freshness-running",children:[d.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]});const p=s.filed;return!g&&!m&&!p?null:d.jsxs("div",{className:"freshness",children:[p&&d.jsx(ST,{filed:p}),g&&d.jsxs("div",{children:[d.jsxs("strong",{children:["This PR is ",h==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),m&&d.jsxs("div",{children:[d.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",d.jsx("code",{children:m.toSha.slice(0,7)}),", reviewed at"," ",d.jsx("code",{children:m.fromSha.slice(0,7)}),"."," ",m.moved>0&&d.jsxs(d.Fragment,{children:[m.moved," comment(s) followed the code. "]}),m.drifted>0&&d.jsxs(d.Fragment,{children:[m.drifted," could not — the code they point at is gone, so they will post in the review body instead of inline."," "]}),"The summary and verdict still describe the commit that was reviewed.",!s.sent&&d.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>l(),children:r?"starting…":"re-review at the new head"})]})]})}function xT({reviewKey:s}){var J,he,ke,Fe,Pe;const[i,r]=ue.useState(null),[l,u]=ue.useState(null),[h,g]=ue.useState(null),[v,m]=ue.useState(null),[p,b]=ue.useState(!1),[E,_]=ue.useState([]),[N,x]=ue.useState(new Set),C=L=>x(P=>new Set(P).add(L)),[R,j]=ue.useState([]),B=ue.useRef(null),[M,ee]=ue.useState(new Set),[H,te]=ue.useState(0),ae=ue.useRef(new Map),O=ue.useRef(null),q=ue.useRef(null),V=ue.useRef(null),F=ue.useRef(null),oe=ue.useRef(null),be=ue.useRef(null),[Ne,ge]=ue.useState(!1),I=ue.useRef(null),[le,de]=ue.useState(null),[Se,Be]=ue.useState(!1),[T,z]=ue.useState(null),[Y,fe]=ue.useState(null);ue.useEffect(()=>{if(!Y)return;const L=setTimeout(()=>fe(null),1800);return()=>clearTimeout(L)},[Y]);const ve=L=>{var P,ce;j(nt=>nt.some(ft=>ft.target===L.target&&ft.id===L.id)?nt:[...nt,L]),(P=B.current)==null||P.scrollIntoView({behavior:"smooth",block:"center"}),(ce=B.current)==null||ce.focus()};ue.useEffect(()=>{let L=!1;return window.scrollTo({top:0}),r(null),u(null),g(null),m(null),de(null),z(null),Fm(s).then(P=>{if(!L)return r(P),N_(s).then(ce=>{L||(g(ce),ce.changed&&r(ce.artifact))}).catch(ce=>!L&&m(String(ce.message??ce)))}).catch(P=>!L&&u(String(P))),()=>{L=!0}},[s]),ue.useEffect(()=>{Bf().then(_).catch(()=>{})},[]),ue.useEffect(()=>{const L=I.current;if(!L)return;const P=()=>document.documentElement.style.setProperty("--top-h",`${L.offsetHeight}px`);P();const ce=new ResizeObserver(P);return ce.observe(L),()=>{ce.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[i==null?void 0:i.id]);const Re=(i==null?void 0:i.pendingChat)!=null&&i.pendingChat.error==null;ue.useEffect(()=>{if((i==null?void 0:i.status)!=="running"&&!Re)return;const L=setInterval(()=>{Fm(s).then(P=>{r(P),P.status!=="running"&&b(!1)}).catch(()=>{})},3e3);return()=>clearInterval(L)},[i==null?void 0:i.status,Re,s]);const pe=(i==null?void 0:i.sent)!=null,Ce=ue.useMemo(()=>JE(E,s,N),[E,s,N]),xe=Ce.findIndex(L=>L.key===s),ze=(xe>0?Ce[xe-1]:null)??null,De=(xe>=0&&xe<Ce.length-1?Ce[xe+1]:null)??null,Oe=L=>{window.location.hash=`#/r/${encodeURIComponent(L)}`},Nt=()=>{De?Oe(De.key):window.location.hash="#/"},Ie=ue.useMemo(()=>{if(!i)return[];const L=ZE(i.diff,i.chapters);return L.length>0?[...i.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:L}]:i.chapters},[i]),Gn=ue.useMemo(()=>{const L=XE((i==null?void 0:i.diff)??"");return new Map(Ie.map(P=>[P.id,P.files.reduce((ce,nt)=>ce+(L.get(nt)??0),0)]))},[i==null?void 0:i.diff,Ie]),Je=L=>{const P=Gn.get(L)??0;return P>gT?P:null},vn=L=>M.has(L)?Je(L)!=null:Je(L)==null,$n=L=>ee(P=>{const ce=new Set(P);return ce.has(L)?ce.delete(L):ce.add(L),ce});ue.useEffect(()=>ee(new Set),[s]);const Qt=L=>{const P=Ie[L];return P?(te(L),vn(P.id)||$n(P.id),P):null},Jt=(...L)=>{for(const P of L)if(P.current)return P.current.scrollIntoView({behavior:"smooth",block:"start"})},Wt=L=>{var ce;const P=Qt(L);P&&((ce=ae.current.get(P.id))==null||ce.scrollIntoView({behavior:"smooth",block:"start"}))},ba=(L,P)=>{Qt(L),fe(P),$b(P)},Mn=le??rT(i==null?void 0:i.verdict),it=(J=i==null?void 0:i.verdict)==null?void 0:J.recommendation;ue.useEffect(()=>de(null),[it]),ue.useEffect(()=>z(null),[Mn]);const Lt=()=>{!i||i.sent||Se||(Be(!0),z(null),R_(s,Mn).then(L=>{r(L),C(s)}).catch(L=>z(String(L.message??L))).finally(()=>Be(!1)))};if(ue.useEffect(()=>{const L=P=>{dT(P.target)||P.metaKey||P.ctrlKey||P.altKey||(P.key==="["&&ze?Oe(ze.key):P.key==="]"&&De?Oe(De.key):P.key==="n"?Wt(Math.min(Ie.length-1,H+1)):P.key==="N"?Wt(Math.max(0,H-1)):P.key==="s"&&!pe&&Lt())};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[ze==null?void 0:ze.key,De==null?void 0:De.key,Ie,H,pe,Mn,i==null?void 0:i.sent,Se]),l&&!i)return d.jsx("p",{className:"error pad",children:l});if(!i)return d.jsx("p",{className:"muted pad",children:"Loading…"});const bt=L=>{b(!0),u(null),xb(s,L).then(r).catch(P=>{u(String(P)),b(!1)})},Ht=L=>L.then(r).catch(P=>u(String(P))),un=L=>vf(s,{status:L}).then(()=>{C(s),Nt()}).catch(P=>u(String(P))),Cn=(L,P)=>Ht(E_(s,L,P)),wn=L=>Ht(S_(s,L)),Dn=L=>Ht(__(s,L)),Ln=i.comments.filter(L=>!L.chapterId||!Ie.some(P=>P.id===L.chapterId)),{inline:En,folded:Ot,dropped:en}=Gb(i),kt=i.comments.filter(L=>L.status!=="dropped"&&L.drifted).length,zn=i.verdict?ab[i.verdict.recommendation]:"none",An=cT(i),tn=oT(i),Ue=i.pendingChat!=null&&i.pendingChat.error==null,fn=()=>Ht(Ef(s,{message:"Some findings were dropped, edited or re-graded after this review was drafted. Update the summary and verdict to match what still stands — do not re-review the whole PR.",refs:[{target:"verdict",id:null}]})),nn=(L,P)=>{Ht(Ef(s,{message:P,refs:[{target:"line",id:null,path:L.path,line:L.line,side:L.side}]}).then(ce=>{var nt;return(nt=F.current)==null||nt.scrollIntoView({behavior:"smooth",block:"start"}),ce}))},zt=(he=i.run)!=null&&he.trusted?"ran the code":(ke=i.run)!=null&&ke.withSource?"read the full source":i.run?"read the diff only":"no run yet",A=L=>{var P;return d.jsxs("button",{className:`verdict-pick${((P=i.verdict)==null?void 0:P.recommendation)===L?` verdict-pick-on tone-${ab[L]}`:""}`,title:L==="approve"?"Approve":L==="comment"?"Comment without blocking":"Request changes",onClick:()=>Ht(vf(s,{verdictRecommendation:L})),children:[d.jsx(tt,{name:uT[L]}),L.replace("_"," ")]},L)};return d.jsxs("div",{className:"review",children:[d.jsxs("div",{className:"review-top",ref:I,children:[d.jsx("div",{className:"crumb",children:d.jsxs("div",{className:"bar-inner",children:[d.jsx("a",{href:"#/",children:"← queue"}),d.jsx("span",{className:"crumb-sep",children:"/"}),d.jsx("span",{className:"crumb-slug",children:i.id}),d.jsxs("span",{className:"walk",children:[d.jsx("button",{className:"walk-btn",disabled:!ze,title:ze?`[ — ${ze.id}: ${ze.pr.title}`:"no more reviews this way",onClick:()=>ze&&Oe(ze.key),children:d.jsx(tt,{name:"chevronLeft"})}),d.jsx("button",{className:"walk-btn",disabled:!De,title:De?`] — ${De.id}: ${De.pr.title}`:"no more reviews this way",onClick:()=>De&&Oe(De.key),children:d.jsx(tt,{name:"chevronRight"})})]}),xe>=0&&d.jsxs("span",{className:"faint",children:[xe+1," of ",Ce.length," awaiting"]}),d.jsx("span",{className:"faint crumb-next",children:De?`next: ${De.pr.title}`:xe>=0?"last in the queue":""}),d.jsx("span",{className:"grow"}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(tt,{name:"settings",size:15})})]})}),d.jsx("div",{className:"review-head",children:d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"review-head-top",children:[d.jsx("a",{className:"review-title",href:i.pr.url,target:"_blank",rel:"noreferrer",children:i.pr.title}),d.jsx("span",{className:"grow"}),i.verdict&&(pe?d.jsxs("span",{className:`chip tone-${zn}`,children:[i.verdict.recommendation.replace("_"," "),tn&&` · ${tn}`," · ",i.verdict.confidence,"%"]}):d.jsxs("button",{className:`chip chip-btn tone-${zn}`,title:"change it, or send — both are at the foot of the page",onClick:()=>Jt(O,oe),children:[i.verdict.recommendation.replace("_"," "),tn&&` · ${tn}`," · ",i.verdict.confidence,"%",d.jsx(tt,{name:"down",size:12})]})),!pe&&i.status!=="running"&&d.jsxs("button",{className:"btn btn-sm",disabled:p,title:i.run?"Review the current head again — this draft is replaced, your own comments are kept":"Draft a review of this PR",onClick:()=>bt(!0),children:[d.jsx(tt,{name:"rerun"}),p?"starting…":i.run?"re-review at head":"review now"]})]}),d.jsxs("div",{className:"review-head-meta",children:[d.jsx("span",{children:i.pr.author}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[i.pr.headRefName," → ",i.pr.baseRefName,i.pr.headSha?` · ${i.pr.headSha.slice(0,7)}`:""]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{children:[i.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",i.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",i.pr.deletions]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:zt}),((Fe=i.run)==null?void 0:Fe.costUsd)!=null&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{title:"What this review would cost at API token rates. Riding a Claude subscription, it draws on your usage limits instead.",children:["≈$",i.run.costUsd.toFixed(2)," at API rates"]})]}),d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:i.status})]})]})})]}),d.jsxs("div",{className:"wrap review-body",children:[d.jsxs("aside",{className:"rail",children:[d.jsxs("div",{className:"rail-jumps",children:[d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Jt(q),children:"summary"}),i.verdict&&d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Jt(V),children:"why"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var L;Jt(F),(L=B.current)==null||L.focus()},children:"chat"}),d.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{ge(!0),Jt(be)},children:"history"})]}),Ie.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>Wt(0),children:"changes"}),Ie.map((L,P)=>d.jsxs("div",{className:"rail-group",children:[d.jsxs("button",{className:`rail-item${vn(L.id)?" rail-item-on":""}`,onClick:()=>Wt(P),children:[d.jsxs("span",{className:"grow",children:[P+1," · ",L.title]}),d.jsxs("span",{className:"rail-count",children:[L.files.length,"f"]})]}),i.comments.filter(ce=>ce.chapterId===L.id).map(ce=>d.jsxs("button",{className:`rail-comment${ce.status==="dropped"?" rail-comment-dropped":""}`,title:`${ce.path}${ce.line!=null?`:${ce.line}`:""} — ${ce.body}`,onClick:()=>ba(P,ce.id),children:[d.jsx("span",{className:`rail-dot tone-${fT(ce,zn)}`,children:"●"}),d.jsxs("span",{className:"rail-comment-loc",children:[ce.path.split("/").pop(),ce.line!=null?`:${ce.drifted?"~":""}${ce.line}`:""]})]},ce.id))]},L.id))]}),d.jsx("button",{className:`lab rail-lab-btn${Ie.length>0?" rail-lab":""}`,onClick:()=>Jt(O,oe),children:"verdict"}),d.jsxs("div",{className:"rail-facts",children:[d.jsxs("div",{children:[i.comments.length-en.length," keeping · ",en.length," dropped"]}),d.jsxs("div",{children:[En.length," inline · ",Ot.length," folded into body"]}),kt>0&&d.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[kt," drifted"]})]})]}),d.jsxs("div",{className:"main",children:[d.jsx(NT,{artifact:i,freshness:h,rerunning:p,onRerun:bt}),v&&d.jsxs("div",{className:"freshness",title:v,children:[d.jsx("strong",{children:"Couldn't check GitHub for newer commits."})," This is the review as it was drafted — if the PR has moved on since, nothing here knows it yet."]}),l&&d.jsx("div",{className:"error",children:l}),((Pe=i.run)==null?void 0:Pe.error)&&d.jsxs("div",{className:"error",children:["Run failed: ",i.run.error]}),d.jsx("div",{className:"card card-summary",ref:q,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"summary"}),d.jsx(Ji,{className:"prose lead",text:i.summary||"(no summary)"}),!pe&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>ve({target:"summary",id:null}),children:[d.jsx(tt,{name:"comment"}),"discuss the summary"]})]})}),i.verdict&&d.jsx("div",{className:`card card-why tone-border-${zn}`,ref:V,children:d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"lab",children:"why"}),d.jsxs("div",{className:"sev-counts",children:[bf(i)&&d.jsx("span",{title:"Live findings by grade. Only blockers block.",children:bf(i)}),bf(i)&&d.jsx("span",{className:"crumb-sep",children:"·"}),d.jsxs("span",{title:"How sure the review is that its own findings and grades are right — not how good an idea merging is. That is the verdict, and it follows from the blockers.",children:[i.verdict.confidence,"% sure of the findings"]})]}),d.jsx(Ji,{className:"prose lead",text:i.verdict.reasoning}),!pe&&d.jsxs("button",{className:"btn btn-sm",onClick:()=>ve({target:"verdict",id:null}),children:[d.jsx(tt,{name:"comment"}),"discuss the verdict"]})]})}),Ie.map((L,P)=>d.jsx(bT,{chapter:L,n:P+1,diff:i.diff,comments:i.comments.filter(ce=>ce.chapterId===L.id),open:vn(L.id),heavy:Je(L.id),onToggle:()=>$n(L.id),onUpdateComment:Cn,onDeleteComment:wn,onAddComment:Dn,onDiscuss:pe?void 0:ve,onAskAboutLine:nn,chatBusy:Ue,readOnly:pe,flash:Y,anchorRef:ce=>{ce?ae.current.set(L.id,ce):ae.current.delete(L.id)}},L.id)),Ln.length>0&&d.jsxs("section",{className:"card",children:[d.jsxs("header",{className:"card-head",children:[d.jsx("h2",{children:"unattached comments"}),d.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),d.jsx("div",{className:"card-body",children:Ln.map(L=>d.jsx(Yb,{comment:L,onUpdate:P=>Cn(L.id,P),onDelete:()=>wn(L.id),onDiscuss:pe?void 0:()=>ve({target:"comment",id:L.id}),readOnly:pe},L.id))})]}),d.jsx(TT,{entries:i.history??[],open:Ne,onToggle:()=>ge(L=>!L),anchorRef:be})]}),d.jsxs("aside",{className:"cockpit",children:[d.jsx(ET,{artifact:i,reviewKey:s,refs:R,onClearRefs:()=>j([]),onDropRef:L=>j(P=>P.filter((ce,nt)=>nt!==L)),onArtifact:r,readOnly:pe,inputRef:B,anchorRef:F}),d.jsxs("div",{className:"cockpit-decide",children:[!pe&&An&&d.jsxs("div",{className:"verdict-hint",children:[d.jsxs("span",{children:[d.jsx("strong",{children:An})," — the verdict was written before those edits."]}),d.jsxs("button",{className:"btn btn-sm",onClick:fn,disabled:Ue,children:[d.jsx(tt,{name:"comment"}),Ue?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),i.verdict&&!pe&&d.jsxs("div",{className:"verdict-bar",ref:O,children:[d.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(A),d.jsx("span",{className:"grow"}),d.jsx("span",{className:"faint",children:"what you send follows this unless you say otherwise"})]}),d.jsx(_T,{artifact:i,reviewKey:s,event:Mn,overridden:le!=null,onPickEvent:de,sending:Se,onSend:Lt,error:T,next:De,onAdvance:Nt,anchorRef:oe,footer:d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"faint",children:"not sending?"}),!pe&&d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-sm",title:De?`Settle it locally and go to ${De.id}`:"Settle it locally and go back to the queue",onClick:()=>un("reviewed"),children:[d.jsx(tt,{name:"check"}),"mark reviewed"]}),d.jsxs("button",{className:"btn btn-sm",title:De?`Leave it and go to ${De.id}`:"Leave it and go back to the queue",onClick:()=>un("skipped"),children:[d.jsx(tt,{name:"skip"}),"skip"]})]}),d.jsxs("a",{className:"btn btn-sm",href:O_(s),children:[d.jsx(tt,{name:"download"}),"export .md"]})]})})]})]})]})]})}const lb="cerber.notify.seen",Rf="cerber.notify",wT=1e4,Fb=s=>{try{return localStorage.getItem(s)}catch{return null}},Of=(s,i)=>{try{localStorage.setItem(s,i)}catch{}};function AT(s,i){const r=new Set(i);return co(s).filter(l=>!r.has(l.key))}function RT(s){return s.map(i=>i.key)}const sb=s=>`${s.pr.repo}#${s.pr.number}`;function OT(s){if(s.length===0)return null;const i=`cerber:${s.map(u=>u.key).sort().join("|")}`;if(s.length===1){const u=s[0];return{title:`${sb(u)} awaits your review`,body:`${u.pr.title} — ${u.pr.author}`,tag:i,key:u.key}}const r=s.slice(0,3).map(sb),l=s.length-r.length;return{title:`${s.length} PRs await your review`,body:l>0?`${r.join(", ")} and ${l} more`:r.join(", "),tag:i,key:null}}const kT=new Set(["127.0.0.1","localhost","::1","[::1]"]);function MT(s,i=window.location.hostname){return!(s!=null&&s.enabled)||!s.notify?!1:kT.has(i)}function jl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Fb(Rf)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function CT(){const s=jl();if(s==="unsupported"||s==="blocked")return s;if(s==="on")return Of(Rf,"off"),jl();if(Of(Rf,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return jl()}function DT(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 LT(){const s=ue.useRef(null),[i,r]=ue.useState(!1);return ue.useEffect(()=>{let l=!0;const u=Fb(lb);if(u)try{const v=JSON.parse(u);Array.isArray(v)&&(s.current=v.filter(m=>typeof m=="string"))}catch{}const h=()=>Promise.all([Bf(),Nb().catch(()=>null)]).then(([v,m])=>{if(!l)return;const p=MT(m);r(p);const b=s.current;if(s.current=RT(v),Of(lb,JSON.stringify(s.current)),!b||jl()!=="on"||p||document.visibilityState==="visible"&&document.hasFocus())return;const E=OT(AT(v,b));E&&DT(E)}).catch(()=>{});h();const g=setInterval(h,wT);return()=>{l=!1,clearInterval(g)}},[]),i}function Kb(){const[s,i]=ue.useState(jl);return ue.useEffect(()=>{const r=()=>i(jl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[s,()=>void CT().then(i)]}const to=s=>{window.location.hash=`#/r/${encodeURIComponent(s)}`};function zT(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 UT({daemon:s}){return s!=null&&s.enabled?d.jsx("div",{className:"daemon-bar",children:d.jsxs("div",{className:"bar-inner",children:[s.pollEnabled?d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot"}),s.repos.length>0?s.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(s.intervalMs/6e4),"m"]}):d.jsxs("span",{className:"daemon-live",children:[d.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),d.jsxs("span",{children:["auto-review ",d.jsx("b",{children:s.autoReview?"on":"off"})]}),d.jsxs("span",{children:["auto-send ",d.jsx("b",{children:s.autoSend==="on"?"on":"shadow"})," ≥",s.autoSendThreshold,"%",s.autoSend==="on"?` · ${s.autoSent} sent`:` · ${s.autoSendCandidates} candidate${s.autoSendCandidates===1?"":"s"}`]}),s.trustedRuns&&d.jsxs("span",{className:"warn",title:"Trust rules are set and auto-review is on: reviews of matching PRs run their code unattended. Settings → Trusted PRs, or serve --no-trust.",children:[d.jsx(tt,{name:"zap",size:12})," trusted PRs run with Bash"]}),d.jsx("span",{className:"grow"}),s.lastPollError?d.jsx("span",{className:"danger",title:s.lastPollError,children:"discovery offline — showing local reviews only"}):d.jsx("span",{className:"faint",children:s.polling?"polling now…":[s.lastSummary?`last: ${s.lastSummary}`:null,s.nextPollAt?`next ${new Date(s.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function BT({r:s,selected:i,onSelect:r,onOpen:l,awaiting:u}){const h=d_(s),g=a_(s),v=u?c_(s,u):null;return d.jsxs("div",{className:`row${i?" row-on":""}`,onClick:l,onMouseEnter:r,role:"button",tabIndex:-1,children:[d.jsx("span",{className:"col-caret",children:"›"}),d.jsxs("span",{className:"col-slug",title:`${s.pr.owner}/${s.pr.repo}#${s.pr.number}`,children:[s.pr.repo,"#",s.pr.number]}),d.jsx("span",{className:"col-author",title:s.pr.author,children:s.pr.author}),d.jsx("span",{className:"col-title",title:s.pr.title,children:s.pr.title}),s.pr.isDraft&&d.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),v&&d.jsx("span",{className:"tag tag-awaiting",title:v.title,children:v.label}),g&&d.jsx("span",{className:"tag tag-done",children:g}),d.jsx("span",{className:"col-comments",children:s.commentCount||""}),d.jsx("span",{className:"col-size",children:s.pr.changedFiles>0?d.jsxs(d.Fragment,{children:[s.pr.changedFiles,"f ",d.jsxs("span",{className:"add",children:["+",s.pr.additions]})," ",d.jsxs("span",{className:"del",children:["−",s.pr.deletions]})]}):"—"}),d.jsx("span",{className:`col-verdict tone-${h.tone}`,children:h.label}),d.jsx("span",{className:"col-age",children:Tb(s.updatedAt)})]})}function rb({autoFocus:s}){const[i,r]=ue.useState(""),[l,u]=ue.useState(!1),[h,g]=ue.useState(null),v=m=>{m.preventDefault();const p=i.trim();!p||l||(u(!0),g(null),T_(p).then(b=>to(b.key)).catch(b=>{g(String(b instanceof Error?b.message:b)),u(!1)}))};return d.jsxs("form",{className:"pull",onSubmit:v,children:[d.jsx(tt,{name:"plus"}),d.jsx("input",{className:"pull-input",value:i,autoFocus:s,disabled:l,onChange:m=>{r(m.target.value),h&&g(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),i.trim()&&d.jsx("button",{className:"btn btn-small",type:"submit",disabled:l,children:l?"starting…":"review"}),h&&d.jsx("span",{className:"pull-error",children:h})]})}function IT({text:s}){const i=ue.useRef(null),[r,l]=ue.useState(!1);return ue.useLayoutEffect(()=>{const u=i.current;if(!u)return;const h=()=>l(u.scrollHeight-u.clientHeight>4);h();const g=new ResizeObserver(h);return g.observe(u),()=>g.disconnect()},[s]),d.jsx("div",{ref:i,className:`strip-prose${r?" strip-prose-clipped":""}`,children:d.jsx(Ji,{className:"prose",text:s})})}function jT(){var V;const[s,i]=ue.useState(null),[r,l]=ue.useState(null),[u,h]=ue.useState(null),[g,v]=ue.useState(new Set),[m,p]=ue.useState("inbox"),[b,E]=ue.useState(null),_=ue.useRef(!0);ue.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const N=()=>{Bf().then(F=>_.current&&i(F)).catch(F=>_.current&&h(String(F))),Nb().then(F=>_.current&&l(F)).catch(()=>{})};ue.useEffect(()=>{N();const F=setInterval(N,1e4);return()=>clearInterval(F)},[]);const x=s??[],C=ue.useMemo(()=>t_(x,r),[x,r]),R=C.requests,j=n_(m,C),B=C[j];ue.useEffect(()=>{j!==m&&p(j)},[j,m]);const M=B.find(F=>F.key===b)??B[0]??null,ee=F=>{v(oe=>new Set(oe).add(F)),xb(F).then(()=>N()).catch(oe=>_.current&&h(String(oe))).finally(()=>{_.current&&v(oe=>{const be=new Set(oe);return be.delete(F),be})})};if(ue.useEffect(()=>{const F=oe=>{if(zT(oe.target)||oe.metaKey||oe.ctrlKey||oe.altKey)return;const be=B.findIndex(ge=>ge.key===(M==null?void 0:M.key)),Ne=ge=>{const I=B[Math.min(B.length-1,Math.max(0,be+ge))];I&&E(I.key)};oe.key==="j"||oe.key==="ArrowDown"?(oe.preventDefault(),Ne(1)):oe.key==="k"||oe.key==="ArrowUp"?(oe.preventDefault(),Ne(-1)):oe.key==="Enter"&&M?to(M.key):oe.key==="r"&&M&&M.status!=="sent"&&M.status!=="running"&&ee(M.key)};return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[B,M==null?void 0:M.key]),u&&!s)return d.jsx("p",{className:"error",children:u});if(!s)return d.jsx("p",{className:"muted pad",children:"Loading…"});const H=B.reduce((F,oe)=>F+(oe.costUsd??0),0),te=M?p_(M,r):null,ae=M?g.has(M.key):!1,O=yf.filter(F=>C[F].length>0),q=F=>d.jsxs("button",{className:`tab${j===F?" tab-on":""}${yf.includes(F)?" tab-filed":""}${F==="requests"?" tab-requests":""}`,title:Su[F].title,onClick:()=>p(F),children:[Su[F].label," ",d.jsx("span",{className:"tab-count",children:C[F].length})]},F);return d.jsxs(d.Fragment,{children:[d.jsx(UT,{daemon:r}),u&&d.jsx("div",{className:"wrap",children:d.jsx("p",{className:"error",children:u})}),x.length===0?d.jsx("div",{className:"wrap",children:d.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?d.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):d.jsx("p",{children:"No reviews yet."}),d.jsx(rb,{autoFocus:!0})]})}):d.jsxs("div",{className:"wrap",children:[d.jsxs("div",{className:"tabs",children:[VE.map(q),O.length>0&&d.jsx("span",{className:"tab-split","aria-hidden":"true"}),O.map(q),d.jsx("span",{className:"grow"}),d.jsx(rb,{}),H>0&&d.jsxs("span",{className:"faint",title:"What these reviews would cost at API token rates. Riding a Claude subscription, they draw on your usage limits instead.",children:["≈$",H.toFixed(2)," at API rates"]})]}),d.jsxs("div",{className:"table-head",children:[d.jsx("span",{className:"col-caret"}),d.jsx("span",{className:"col-slug",children:"repo#pr"}),d.jsx("span",{className:"col-author",children:"author"}),d.jsx("span",{className:"col-title",children:"title"}),d.jsx("span",{className:"col-comments",children:"c"}),d.jsx("span",{className:"col-size",children:"size"}),d.jsx("span",{className:"col-verdict",children:"verdict"}),d.jsx("span",{className:"col-age",children:"upd"})]}),B.length===0?d.jsx("div",{className:"empty-tab",children:j==="inbox"&&R.length>0?d.jsxs(d.Fragment,{children:[d.jsx("p",{children:u_(R)}),d.jsxs("button",{className:"btn",onClick:()=>p("requests"),children:[d.jsx(tt,{name:"arrowRight"}),"show ",R.length===1?"it":`all ${R.length}`]})]}):d.jsx("p",{className:"muted",children:j==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Su[j].label} right now.`})}):B.map(F=>d.jsx(BT,{r:F,selected:F.key===(M==null?void 0:M.key),onSelect:()=>E(F.key),onOpen:()=>to(F.key),awaiting:e_(F,R)?i_(F,r):null},F.key)),M&&te&&d.jsxs("div",{className:"cursor-strip",children:[d.jsxs("div",{className:"cursor-strip-body",children:[d.jsxs("div",{className:"lab",children:[M.pr.owner,"/",M.pr.repo,"#",M.pr.number,M.pr.headRefName&&M.pr.baseRefName?` · ${M.pr.headRefName} → ${M.pr.baseRefName}`:""]}),d.jsx(IT,{text:te.reasoning}),d.jsxs("div",{className:"cursor-strip-meta",children:[te.meta.join(" · "),((V=M.sent)==null?void 0:V.url)&&d.jsxs(d.Fragment,{children:[" · ",d.jsx("a",{href:M.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),d.jsxs("div",{className:"cursor-strip-actions",children:[d.jsxs("button",{className:"btn-primary",onClick:()=>to(M.key),children:[d.jsx(tt,{name:"arrowRight"}),"open review ",d.jsx(Ci,{children:"↵"})]}),d.jsxs("div",{className:"cursor-strip-row",children:[d.jsxs("button",{className:"btn",disabled:M.status==="sent"||M.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>vf(M.key,{status:"skipped"}).then(N).catch(F=>h(String(F))),children:[d.jsx(tt,{name:"skip"}),"skip"]}),d.jsxs("button",{className:"btn",disabled:ae||M.status==="running"||M.status==="sent",title:M.status==="sent"?"This review was sent — it is a record now.":"Draft a review of the PR's current head.",onClick:()=>ee(M.key),children:[d.jsx(tt,{name:"rerun"}),ae?"starting…":M.status==="awaiting"||M.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const HT=[{rule:"@acme/*",meaning:"anyone in the acme org"},{rule:"@acme/devs",meaning:"anyone on that GitHub team"},{rule:"@teammate",meaning:"one person, by login"},{rule:"!@acme/contractors",meaning:"deny — beats every rule above"}],ob=s=>s instanceof Error?s.message:String(s),qT={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 GT({daemonAnnounces:s}){const[i,r]=Kb(),[l,u]=ue.useState(null),[h,g]=ue.useState(""),[v,m]=ue.useState(null),[p,b]=ue.useState(!1);ue.useEffect(()=>{k_().then(u).catch(_=>m(ob(_)))},[]);const E=_=>{b(!0),m(null),_.then(u).catch(N=>m(ob(N))).finally(()=>b(!1))};return v&&!l?d.jsx("p",{className:"error",children:v}):l?d.jsxs("div",{className:"settings",children:[d.jsx("a",{href:"#/",className:"back",children:"← queue"}),d.jsx("h1",{children:"Inbox"}),d.jsx("p",{children:"By default cerber keeps the queue itself: it polls GitHub for PRs awaiting your review and drafts a review for each, so they're ready when you open the cockpit. Nothing is ever sent without you. Changes apply on the next poll — no restart."}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:l.daemon.poll,disabled:p,onChange:_=>E(xu({poll:_.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",l.daemon.intervalMinutes,"m)"]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:l.daemon.autoReview,disabled:p||!l.daemon.poll,onChange:_=>E(xu({autoReview:_.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),d.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",d.jsx("code",{children:l.path})," under"," ",d.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),d.jsx("h1",{children:"Notifications"}),d.jsx("p",{children:"When a PR lands in the queue, cerber says so: one desktop notification per poll. A single arrival names the PR; several landing at once fold into one notification. A PR that has already been announced never arrives twice."}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:l.daemon.notify,disabled:p||!l.daemon.poll,onChange:_=>E(xu({notify:_.target.checked}))})," ","tell this machine when a PR lands (no cockpit tab required)"]}),d.jsxs("p",{className:"muted",children:["This is the one that works while you're somewhere else: it rides the poll that finds the PR, so it needs nothing open but ",d.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",d.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. It cannot open a review on click; the browser's can."]}),d.jsxs("label",{className:"inbox-toggle",children:[d.jsx("input",{type:"checkbox",checked:i==="on",disabled:i==="unsupported"||i==="blocked"||s,onChange:r})," ",s?"let this browser announce them instead":qT[i]]}),d.jsx("p",{className:"muted",children:s?d.jsxs(d.Fragment,{children:["Standing down while the machine's own notification is on — two popups for one PR is one too many. Untick the machine one above and this browser takes over: it names the PR and ",d.jsx("strong",{children:"opens that review when you click it"}),", but only while a cockpit tab is open and this browser has granted the permission."]}):d.jsxs(d.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",d.jsx("code",{children:l.path}),". Granting it is the browser's prompt, not cerber's — a browser that has blocked cerber has to be un-blocked from the padlock next to the address bar. Nothing is announced while you're looking straight at the cockpit."]})}),d.jsx("h1",{children:"Trusted PRs"}),d.jsxs("p",{children:["Every review reads the PR's code. A ",d.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",d.jsx("code",{children:"git log"})," — so it can report what happened instead of guessing. That means executing code from the PR on this machine, the same as checking the branch out and running the tests yourself."]}),d.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",d.jsx("code",{children:l.path}),"."]}),d.jsx("p",{className:"muted",children:'Only people can be trusted — there is no way to trust a repository. Anyone can open a PR against a repo you own, so trusting the repo would trust them too. Membership is checked against GitHub when the review runs, and a check that fails counts as "not a member".'}),d.jsxs("div",{className:"trust-add",children:[d.jsx("input",{value:h,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:p,onChange:_=>g(_.target.value),onKeyDown:_=>{_.key==="Enter"&&!p&&h.trim()&&(E(Nu(h.trim())),g(""))}}),d.jsx("button",{className:"btn",disabled:p||!h.trim(),onClick:()=>{E(Nu(h.trim())),g("")},children:"trust"})]}),v&&d.jsx("p",{className:"error",children:v}),l.trust.length===0?d.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:l.trust.map(_=>d.jsxs("tr",{className:_.denies?"trust-deny":void 0,children:[d.jsx("td",{children:d.jsx("code",{children:_.rule})}),d.jsx("td",{className:"muted",children:_.explanation}),d.jsx("td",{className:"trust-actions",children:d.jsx("button",{className:"btn",disabled:p,onClick:()=>E(Nu(_.rule,!0)),children:"remove"})})]},_.rule))})}),d.jsx("h2",{children:"Rule syntax"}),d.jsx("table",{className:"trust-table",children:d.jsx("tbody",{children:HT.map(_=>d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("code",{children:_.rule})}),d.jsx("td",{className:"muted",children:_.meaning})]},_.rule))})}),d.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",d.jsx("code",{children:"gh"})," login, no git or ssh identity — so a push fails to authenticate rather than being merely discouraged. It is not a sandbox though: it has ",d.jsx("code",{children:"Bash"})," and this machine, so trust people you would let run their branch here anyway. The daemon reviews unattended, so with rules set it runs matching PRs' code with nobody watching — start it with ",d.jsx("code",{children:"--no-trust"})," to prevent that."]})]}):d.jsx("p",{className:"muted",children:"Loading…"})}function cb(){const s=window.location.hash,i=s.match(/^#\/r\/(.+)$/);return i?{view:"detail",key:decodeURIComponent(i[1])}:s==="#/settings"?{view:"settings"}:{view:"queue"}}const ub={unsupported:"",blocked:"This browser blocked notifications for cerber. Turn them back on in its site settings — the padlock next to the address bar.",off:"Notifications off. Click to be told when a PR lands in the queue.",ask:"Click to be told when a PR lands in the queue — the browser will ask you first.",on:"Telling you when a PR lands in the queue. Click to stop."},fb="cerber taps this machine itself when a PR lands — no tab required. The browser's own bell would be a second popup about one PR, so it stands down. Turn the machine one off in Settings to have this browser announce arrivals instead.";function $T({daemonAnnounces:s}){const[i,r]=Kb();return s?d.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:fb,"aria-label":fb,children:d.jsx(tt,{name:"bell",size:15})}):i==="unsupported"?null:d.jsx("button",{className:`topbar-link bell bell-${i}`,title:ub[i],"aria-label":ub[i],"aria-pressed":i==="on",onClick:r,children:d.jsx(tt,{name:i==="on"?"bell":"bellOff",size:15})})}function YT(){const[s,i]=ue.useState(cb()),r=LT();return ue.useEffect(()=>{const l=()=>i(cb());return window.addEventListener("hashchange",l),()=>window.removeEventListener("hashchange",l)},[]),s.view==="detail"?d.jsx("div",{className:"app",children:d.jsx(xT,{reviewKey:s.key})}):d.jsxs("div",{className:"app",children:[d.jsx("header",{className:"topbar",children:d.jsxs("div",{className:"bar-inner",children:[d.jsxs("a",{href:"#/",className:"brand",children:[d.jsx(k0,{}),"cerber"]}),d.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),d.jsx("span",{className:"grow"}),s.view==="queue"&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"hint",children:[d.jsx(Ci,{children:"j"}),d.jsx(Ci,{children:"k"}),"move"]}),d.jsxs("span",{className:"hint",children:[d.jsx(Ci,{children:"↵"}),"open"]}),d.jsxs("span",{className:"hint",children:[d.jsx(Ci,{children:"r"}),"review now"]})]}),d.jsx($T,{daemonAnnounces:r}),d.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:d.jsx(tt,{name:"settings",size:15})})]})}),s.view==="queue"?d.jsx(jT,{}):d.jsx(GT,{daemonAnnounces:r})]})}sE.createRoot(document.getElementById("root")).render(d.jsx(eE.StrictMode,{children:d.jsx(YT,{})}));
|