@fullstackhouse/cerber 0.33.0 → 0.34.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.
- package/README.md +59 -5
- package/dist/core/artifact.js +32 -0
- package/dist/core/gh.js +101 -3
- package/dist/core/history.js +6 -0
- package/dist/core/refresh.js +5 -0
- package/dist/core/revise.js +4 -0
- package/dist/runner/review.js +1 -0
- package/dist/server/daemon.js +9 -2
- package/dist/server/index.js +217 -2
- package/package.json +1 -1
- package/web/dist/assets/index-D-kgeiDO.js +241 -0
- package/web/dist/assets/{index-BBIhRnAc.css → index-Deoiz__g.css} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-CMyZArsF.js +0 -241
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
var pE=Object.defineProperty;var mE=(s,i,r)=>i in s?pE(s,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[i]=r;var _t=(s,i,r)=>mE(s,typeof i!="symbol"?i+"":i,r);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const p of d.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function r(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(u){if(u.ep)return;u.ep=!0;const d=r(u);fetch(u.href,d)}})();function Sb(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var gu={exports:{}},ks={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Lm;function gE(){if(Lm)return ks;Lm=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(l,u,d){var p=null;if(d!==void 0&&(p=""+d),u.key!==void 0&&(p=""+u.key),"key"in u){d={};for(var y in u)y!=="key"&&(d[y]=u[y])}else d=u;return u=d.ref,{$$typeof:s,type:l,key:p,ref:u!==void 0?u:null,props:d}}return ks.Fragment=i,ks.jsx=r,ks.jsxs=r,ks}var zm;function bE(){return zm||(zm=1,gu.exports=gE()),gu.exports}var f=bE(),bu={exports:{}},qe={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Um;function yE(){if(Um)return qe;Um=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),p=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function w(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,A={};function U(S,C,q){this.props=S,this.context=C,this.refs=A,this.updater=q||N}U.prototype.isReactComponent={},U.prototype.setState=function(S,C){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,C,"setState")},U.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function G(){}G.prototype=U.prototype;function D(S,C,q){this.props=S,this.context=C,this.refs=A,this.updater=q||N}var re=D.prototype=new G;re.constructor=D,x(re,U.prototype),re.isPureReactComponent=!0;var H=Array.isArray;function Z(){}var le={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function L(S,C,q){var ue=q.ref;return{$$typeof:s,type:S,key:C,ref:ue!==void 0?ue:null,props:q}}function X(S,C){return L(S.type,C,S.props)}function F(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function he(S){var C={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(q){return C[q]})}var Ne=/\/+/g;function Se(S,C){return typeof S=="object"&&S!==null&&S.key!=null?he(""+S.key):C.toString(36)}function me(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(Z,Z):(S.status="pending",S.then(function(C){S.status==="pending"&&(S.status="fulfilled",S.value=C)},function(C){S.status==="pending"&&(S.status="rejected",S.reason=C)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function I(S,C,q,ue,W){var be=typeof S;(be==="undefined"||be==="boolean")&&(S=null);var pe=!1;if(S===null)pe=!0;else switch(be){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(S.$$typeof){case s:case i:pe=!0;break;case b:return pe=S._init,I(pe(S._payload),C,q,ue,W)}}if(pe)return W=W(S),pe=ue===""?"."+Se(S,0):ue,H(W)?(q="",pe!=null&&(q=pe.replace(Ne,"$&/")+"/"),I(W,C,q,"",function(je){return je})):W!=null&&(F(W)&&(W=X(W,q+(W.key==null||S&&S.key===W.key?"":(""+W.key).replace(Ne,"$&/")+"/")+pe)),C.push(W)),1;pe=0;var ke=ue===""?".":ue+":";if(H(S))for(var Ae=0;Ae<S.length;Ae++)ue=S[Ae],be=ke+Se(ue,Ae),pe+=I(ue,C,q,be,W);else if(Ae=w(S),typeof Ae=="function")for(S=Ae.call(S),Ae=0;!(ue=S.next()).done;)ue=ue.value,be=ke+Se(ue,Ae++),pe+=I(ue,C,q,be,W);else if(be==="object"){if(typeof S.then=="function")return I(me(S),C,q,ue,W);throw C=String(S),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return pe}function ie(S,C,q){if(S==null)return S;var ue=[],W=0;return I(S,ue,"","",function(be){return C.call(q,be,W++)}),ue}function ce(S){if(S._status===-1){var C=S._result;C=C(),C.then(function(q){(S._status===0||S._status===-1)&&(S._status=1,S._result=q)},function(q){(S._status===0||S._status===-1)&&(S._status=2,S._result=q)}),S._status===-1&&(S._status=0,S._result=C)}if(S._status===1)return S._result.default;throw S._result}var ye=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Ee={map:ie,forEach:function(S,C,q){ie(S,function(){C.apply(this,arguments)},q)},count:function(S){var C=0;return ie(S,function(){C++}),C},toArray:function(S){return ie(S,function(C){return C})||[]},only:function(S){if(!F(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return qe.Activity=v,qe.Children=Ee,qe.Component=U,qe.Fragment=r,qe.Profiler=u,qe.PureComponent=D,qe.StrictMode=l,qe.Suspense=g,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le,qe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return le.H.useMemoCache(S)}},qe.cache=function(S){return function(){return S.apply(null,arguments)}},qe.cacheSignal=function(){return null},qe.cloneElement=function(S,C,q){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ue=x({},S.props),W=S.key;if(C!=null)for(be in C.key!==void 0&&(W=""+C.key),C)!k.call(C,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&C.ref===void 0||(ue[be]=C[be]);var be=arguments.length-2;if(be===1)ue.children=q;else if(1<be){for(var pe=Array(be),ke=0;ke<be;ke++)pe[ke]=arguments[ke+2];ue.children=pe}return L(S.type,W,ue)},qe.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:d,_context:S},S},qe.createElement=function(S,C,q){var ue,W={},be=null;if(C!=null)for(ue in C.key!==void 0&&(be=""+C.key),C)k.call(C,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(W[ue]=C[ue]);var pe=arguments.length-2;if(pe===1)W.children=q;else if(1<pe){for(var ke=Array(pe),Ae=0;Ae<pe;Ae++)ke[Ae]=arguments[Ae+2];W.children=ke}if(S&&S.defaultProps)for(ue in pe=S.defaultProps,pe)W[ue]===void 0&&(W[ue]=pe[ue]);return L(S,be,W)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(S){return{$$typeof:y,render:S}},qe.isValidElement=F,qe.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:ce}},qe.memo=function(S,C){return{$$typeof:m,type:S,compare:C===void 0?null:C}},qe.startTransition=function(S){var C=le.T,q={};le.T=q;try{var ue=S(),W=le.S;W!==null&&W(q,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(Z,ye)}catch(be){ye(be)}finally{C!==null&&q.types!==null&&(C.types=q.types),le.T=C}},qe.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()},qe.use=function(S){return le.H.use(S)},qe.useActionState=function(S,C,q){return le.H.useActionState(S,C,q)},qe.useCallback=function(S,C){return le.H.useCallback(S,C)},qe.useContext=function(S){return le.H.useContext(S)},qe.useDebugValue=function(){},qe.useDeferredValue=function(S,C){return le.H.useDeferredValue(S,C)},qe.useEffect=function(S,C){return le.H.useEffect(S,C)},qe.useEffectEvent=function(S){return le.H.useEffectEvent(S)},qe.useId=function(){return le.H.useId()},qe.useImperativeHandle=function(S,C,q){return le.H.useImperativeHandle(S,C,q)},qe.useInsertionEffect=function(S,C){return le.H.useInsertionEffect(S,C)},qe.useLayoutEffect=function(S,C){return le.H.useLayoutEffect(S,C)},qe.useMemo=function(S,C){return le.H.useMemo(S,C)},qe.useOptimistic=function(S,C){return le.H.useOptimistic(S,C)},qe.useReducer=function(S,C,q){return le.H.useReducer(S,C,q)},qe.useRef=function(S){return le.H.useRef(S)},qe.useState=function(S){return le.H.useState(S)},qe.useSyncExternalStore=function(S,C,q){return le.H.useSyncExternalStore(S,C,q)},qe.useTransition=function(){return le.H.useTransition()},qe.version="19.2.8",qe}var jm;function If(){return jm||(jm=1,bu.exports=yE()),bu.exports}var J=If();const vE=Sb(J);var yu={exports:{}},Ms={},vu={exports:{}},Eu={};/**
|
|
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 Bm;function EE(){return Bm||(Bm=1,(function(s){function i(I,ie){var ce=I.length;I.push(ie);e:for(;0<ce;){var ye=ce-1>>>1,Ee=I[ye];if(0<u(Ee,ie))I[ye]=ie,I[ce]=Ee,ce=ye;else break e}}function r(I){return I.length===0?null:I[0]}function l(I){if(I.length===0)return null;var ie=I[0],ce=I.pop();if(ce!==ie){I[0]=ce;e:for(var ye=0,Ee=I.length,S=Ee>>>1;ye<S;){var C=2*(ye+1)-1,q=I[C],ue=C+1,W=I[ue];if(0>u(q,ce))ue<Ee&&0>u(W,q)?(I[ye]=W,I[ue]=ce,ye=ue):(I[ye]=q,I[C]=ce,ye=C);else if(ue<Ee&&0>u(W,ce))I[ye]=W,I[ue]=ce,ye=ue;else break e}}return ie}function u(I,ie){var ce=I.sortIndex-ie.sortIndex;return ce!==0?ce:I.id-ie.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var p=Date,y=p.now();s.unstable_now=function(){return p.now()-y}}var g=[],m=[],b=1,v=null,_=3,w=!1,N=!1,x=!1,A=!1,U=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function re(I){for(var ie=r(m);ie!==null;){if(ie.callback===null)l(m);else if(ie.startTime<=I)l(m),ie.sortIndex=ie.expirationTime,i(g,ie);else break;ie=r(m)}}function H(I){if(x=!1,re(I),!N)if(r(g)!==null)N=!0,Z||(Z=!0,he());else{var ie=r(m);ie!==null&&me(H,ie.startTime-I)}}var Z=!1,le=-1,k=5,L=-1;function X(){return A?!0:!(s.unstable_now()-L<k)}function F(){if(A=!1,Z){var I=s.unstable_now();L=I;var ie=!0;try{e:{N=!1,x&&(x=!1,G(le),le=-1),w=!0;var ce=_;try{t:{for(re(I),v=r(g);v!==null&&!(v.expirationTime>I&&X());){var ye=v.callback;if(typeof ye=="function"){v.callback=null,_=v.priorityLevel;var Ee=ye(v.expirationTime<=I);if(I=s.unstable_now(),typeof Ee=="function"){v.callback=Ee,re(I),ie=!0;break t}v===r(g)&&l(g),re(I)}else l(g);v=r(g)}if(v!==null)ie=!0;else{var S=r(m);S!==null&&me(H,S.startTime-I),ie=!1}}break e}finally{v=null,_=ce,w=!1}ie=void 0}}finally{ie?he():Z=!1}}}var he;if(typeof D=="function")he=function(){D(F)};else if(typeof MessageChannel<"u"){var Ne=new MessageChannel,Se=Ne.port2;Ne.port1.onmessage=F,he=function(){Se.postMessage(null)}}else he=function(){U(F,0)};function me(I,ie){le=U(function(){I(s.unstable_now())},ie)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(I){I.callback=null},s.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<I?Math.floor(1e3/I):5},s.unstable_getCurrentPriorityLevel=function(){return _},s.unstable_next=function(I){switch(_){case 1:case 2:case 3:var ie=3;break;default:ie=_}var ce=_;_=ie;try{return I()}finally{_=ce}},s.unstable_requestPaint=function(){A=!0},s.unstable_runWithPriority=function(I,ie){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var ce=_;_=I;try{return ie()}finally{_=ce}},s.unstable_scheduleCallback=function(I,ie,ce){var ye=s.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?ye+ce:ye):ce=ye,I){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=ce+Ee,I={id:b++,callback:ie,priorityLevel:I,startTime:ce,expirationTime:Ee,sortIndex:-1},ce>ye?(I.sortIndex=ce,i(m,I),r(g)===null&&I===r(m)&&(x?(G(le),le=-1):x=!0,me(H,ce-ye))):(I.sortIndex=Ee,i(g,I),N||w||(N=!0,Z||(Z=!0,he()))),I},s.unstable_shouldYield=X,s.unstable_wrapCallback=function(I){var ie=_;return function(){var ce=_;_=ie;try{return I.apply(this,arguments)}finally{_=ce}}}})(Eu)),Eu}var Im;function _E(){return Im||(Im=1,vu.exports=EE()),vu.exports}var _u={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 Hm;function SE(){if(Hm)return Tn;Hm=1;var s=If();function i(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(g,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:g,containerInfo:m,implementation:b}}var p=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Tn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Tn.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(g,m,null,b)},Tn.flushSync=function(g){var m=p.T,b=l.p;try{if(p.T=null,l.p=2,g)return g()}finally{p.T=m,l.p=b,l.d.f()}},Tn.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,l.d.C(g,m))},Tn.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},Tn.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin),_=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?l.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:w}):b==="script"&&l.d.X(g,{crossOrigin:v,integrity:_,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Tn.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=y(m.as,m.crossOrigin);l.d.M(g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&l.d.M(g)},Tn.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=y(b,m.crossOrigin);l.d.L(g,b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Tn.preloadModule=function(g,m){if(typeof g=="string")if(m){var b=y(m.as,m.crossOrigin);l.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else l.d.m(g)},Tn.requestFormReset=function(g){l.d.r(g)},Tn.unstable_batchedUpdates=function(g,m){return g(m)},Tn.useFormState=function(g,m,b){return p.H.useFormState(g,m,b)},Tn.useFormStatus=function(){return p.H.useHostTransitionStatus()},Tn.version="19.2.8",Tn}var qm;function Nb(){if(qm)return _u.exports;qm=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(),_u.exports=SE(),_u.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 Gm;function NE(){if(Gm)return Ms;Gm=1;var s=_E(),i=If(),r=Nb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(d(e)!==e)throw Error(l(188))}function m(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return g(o),e;if(c===a)return g(o),t;c=c.sibling}throw Error(l(188))}if(n.return!==a.return)n=o,a=c;else{for(var h=!1,E=o.child;E;){if(E===n){h=!0,n=o,a=c;break}if(E===a){h=!0,a=o,n=c;break}E=E.sibling}if(!h){for(E=c.child;E;){if(E===n){h=!0,n=c,a=o;break}if(E===a){h=!0,a=c,n=o;break}E=E.sibling}if(!h)throw Error(l(189))}}if(n.alternate!==a)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),D=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function he(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var Ne=Symbol.for("react.client.reference");function Se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case U:return"Profiler";case A:return"StrictMode";case H:return"Suspense";case Z:return"SuspenseList";case L:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case D:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:Se(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return Se(e(t))}catch{}}return null}var me=Array.isArray,I=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},ye=[],Ee=-1;function S(e){return{current:e}}function C(e){0>Ee||(e.current=ye[Ee],ye[Ee]=null,Ee--)}function q(e,t){Ee++,ye[Ee]=e.current,e.current=t}var ue=S(null),W=S(null),be=S(null),pe=S(null);function ke(e,t){switch(q(be,t),q(W,e),q(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?am(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=am(t),e=im(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}C(ue),q(ue,e)}function Ae(){C(ue),C(W),C(be)}function je(e){e.memoizedState!==null&&q(pe,e);var t=ue.current,n=im(t,e.type);t!==n&&(q(W,e),q(ue,n))}function Le(e){W.current===e&&(C(ue),C(W)),pe.current===e&&(C(pe),xs._currentValue=ce)}var Me,Nt;function Be(e){if(Me===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||"",Nt=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Me+e+Nt}var $n=!1;function tt(e,t){if(!e||$n)return"";$n=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(Q){var K=Q}Reflect.construct(e,[],se)}else{try{se.call()}catch(Q){K=Q}e.call(se.prototype)}}else{try{throw Error()}catch(Q){K=Q}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(Q){if(Q&&K&&typeof Q.stack=="string")return[Q.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(),h=c[0],E=c[1];if(h&&E){var R=h.split(`
|
|
44
|
+
`),Y=E.split(`
|
|
45
|
+
`);for(o=a=0;a<R.length&&!R[a].includes("DetermineComponentFrameRoot");)a++;for(;o<Y.length&&!Y[o].includes("DetermineComponentFrameRoot");)o++;if(a===R.length||o===Y.length)for(a=R.length-1,o=Y.length-1;1<=a&&0<=o&&R[a]!==Y[o];)o--;for(;1<=a&&0<=o;a--,o--)if(R[a]!==Y[o]){if(a!==1||o!==1)do if(a--,o--,0>o||R[a]!==Y[o]){var te=`
|
|
46
|
+
`+R[a].replace(" at new "," at ");return e.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",e.displayName)),te}while(1<=a&&0<=o);break}}}finally{$n=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Be(n):""}function yn(e,t){switch(e.tag){case 26:case 27:case 5:return Be(e.type);case 16:return Be("Lazy");case 13:return e.child!==t&&t!==null?Be("Suspense Fallback"):Be("Suspense");case 19:return Be("SuspenseList");case 0:case 15:return tt(e.type,!1);case 11:return tt(e.type.render,!1);case 1:return tt(e.type,!0);case 31:return Be("Activity");default:return""}}function Yn(e){try{var t="",n=null;do t+=yn(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,ya=s.unstable_shouldYield,Cn=s.unstable_requestPaint,it=s.unstable_now,Lt=s.unstable_getCurrentPriorityLevel,rt=s.unstable_ImmediatePriority,vn=s.unstable_UserBlockingPriority,En=s.unstable_NormalPriority,Dn=s.unstable_LowPriority,An=s.unstable_IdlePriority,Ln=s.log,zn=s.unstable_setDisableYieldValue,_n=null,Ot=null;function en(e){if(typeof Ln=="function"&&zn(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(_n,e)}catch{}}var kt=Math.clz32?Math.clz32:tn,Un=Math.log,Rn=Math.LN2;function tn(e){return e>>>=0,e===0?32:31-(Un(e)/Rn|0)|0}var Ue=256,nn=262144,an=4194304;function zt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function O(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var E=a&134217727;return E!==0?(a=E&~c,a!==0?o=zt(a):(h&=E,h!==0?o=zt(h):n||(n=E&~e,n!==0&&(o=zt(n))))):(E=a&~c,E!==0?o=zt(E):h!==0?o=zt(h):n||(n=a&~e,n!==0&&(o=zt(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function ne(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ge(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 Ce(){var e=an;return an<<=1,(an&62914560)===0&&(an=4194304),e}function Pe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function z(e,t,n,a,o,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,R=e.expirationTimes,Y=e.hiddenUpdates;for(n=h&~n;0<n;){var te=31-kt(n),se=1<<te;E[te]=0,R[te]=-1;var K=Y[te];if(K!==null)for(Y[te]=null,te=0;te<K.length;te++){var Q=K[te];Q!==null&&(Q.lane&=-536870913)}n&=~se}a!==0&&P(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function P(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-kt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function de(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-kt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function He(e,t){var n=t&-t;return n=(n&42)!==0?1:Ze(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ze(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function un(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Fn(){var e=ie.p;return e!==0?e:(e=window.event,e===void 0?32:Am(e.type))}function ei(e,t){var n=ie.p;try{return ie.p=e,t()}finally{ie.p=n}}var Sn=Math.random().toString(36).slice(2),Mt="__reactFiber$"+Sn,ln="__reactProps$"+Sn,ot="__reactContainer$"+Sn,ea="__reactEvents$"+Sn,tl="__reactListeners$"+Sn,Ma="__reactHandles$"+Sn,ti="__reactResources$"+Sn,va="__reactMarker$"+Sn;function ni(e){delete e[Mt],delete e[ln],delete e[ea],delete e[tl],delete e[Ma]}function fn(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ot]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[Mt])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function ua(e){if(e=e[Mt]||e[ot]){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[ti];return t||(t=e[ti]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function mt(e){e[va]=!0}var Ca=new Set,On={};function fa(e,t){fe(e,t),fe(e+"Capture",t)}function fe(e,t){for(On[e]=t,e=0;e<t.length;e++)Ca.add(t[e])}var Re=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$e={},ct={};function Tt(e){return Qt.call(ct,e)?!0:Qt.call($e,e)?!1:Re.test(e)?ct[e]=!0:($e[e]=!0,!1)}function Ht(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 sn(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 ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function At(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nl(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ai(e){if(!e._valueTracker){var t=At(e)?"checked":"value";e._valueTracker=nl(e,t,""+e[t])}}function ii(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 Da(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var al=/[\n"\\]/g;function Nn(e){return e.replace(al,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function li(e,t,n,a,o,c,h,E){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ut(t)):e.value!==""+ut(t)&&(e.value=""+ut(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?si(e,h,ut(t)):n!=null?si(e,h,ut(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+ut(E):e.removeAttribute("name")}function La(e,t,n,a,o,c,h,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ai(e);return}n=n!=null?""+ut(n):"",t=t!=null?""+ut(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=E?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),ai(e)}function si(e,t,n){t==="number"&&Da(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function qt(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+ut(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 za(e,t,n){if(t!=null&&(t=""+ut(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ut(n):""}function Sa(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(l(92));if(me(a)){if(1<a.length)throw Error(l(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=ut(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),ai(e)}function V(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var T=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function j(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||T.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function ee(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&&j(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&j(e,c,t[c])}function _e(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ie=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ve(e){return Ie.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oe(){}var ve=null;function Oe(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fe=null,Xe=null;function ta(e){var t=ua(e);if(t&&(e=t.stateNode)){var n=e[ln]||null;e:switch(e=t.stateNode,t.type){case"input":if(li(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="'+Nn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[ln]||null;if(!o)throw Error(l(90));li(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&&ii(a)}break e;case"textarea":za(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&qt(e,!!n.multiple,t,!1)}}}var Gl=!1;function Fs(e,t,n){if(Gl)return e(t,n);Gl=!0;try{var a=e(t);return a}finally{if(Gl=!1,(Fe!==null||Xe!==null)&&(Cr(),Fe&&(t=Fe,e=Xe,Xe=Fe=null,ta(t),e)))for(t=0;t<e.length;t++)ta(e[t])}}function $l(e,t){var n=e.stateNode;if(n===null)return null;var a=n[ln]||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 Ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),go=!1;if(Ua)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){go=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{go=!1}var ri=null,bo=null,Ks=null;function id(){if(Ks)return Ks;var e,t=bo,n=t.length,a,o="value"in ri?ri.value:ri.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var h=n-e;for(a=1;a<=h&&t[n-a]===o[c-a];a++);return Ks=o.slice(e,1<a?1-a:void 0)}function Ps(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Zs(){return!0}function ld(){return!1}function jn(e){function t(n,a,o,c,h){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(n=e[E],this[E]=n?n(c):c[E]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Zs:ld,this.isPropagationStopped=ld,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Zs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zs)},persist:function(){},isPersistent:Zs}),t}var Li={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=jn(Li),Fl=v({},Li,{view:0,detail:0}),dy=jn(Fl),yo,vo,Kl,Qs=v({},Fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_o,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kl&&(Kl&&e.type==="mousemove"?(yo=e.screenX-Kl.screenX,vo=e.screenY-Kl.screenY):vo=yo=0,Kl=e),yo)},movementY:function(e){return"movementY"in e?e.movementY:vo}}),sd=jn(Qs),hy=v({},Qs,{dataTransfer:0}),py=jn(hy),my=v({},Fl,{relatedTarget:0}),Eo=jn(my),gy=v({},Li,{animationName:0,elapsedTime:0,pseudoElement:0}),by=jn(gy),yy=v({},Li,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vy=jn(yy),Ey=v({},Li,{data:0}),rd=jn(Ey),_y={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sy={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"},Ny={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ty(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ny[e])?!!t[e]:!1}function _o(){return Ty}var wy=v({},Fl,{key:function(e){if(e.key){var t=_y[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ps(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Sy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_o,charCode:function(e){return e.type==="keypress"?Ps(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ps(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xy=jn(wy),Ay=v({},Qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),od=jn(Ay),Ry=v({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_o}),Oy=jn(Ry),ky=v({},Li,{propertyName:0,elapsedTime:0,pseudoElement:0}),My=jn(ky),Cy=v({},Qs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dy=jn(Cy),Ly=v({},Li,{newState:0,oldState:0}),zy=jn(Ly),Uy=[9,13,27,32],So=Ua&&"CompositionEvent"in window,Pl=null;Ua&&"documentMode"in document&&(Pl=document.documentMode);var jy=Ua&&"TextEvent"in window&&!Pl,cd=Ua&&(!So||Pl&&8<Pl&&11>=Pl),ud=" ",fd=!1;function dd(e,t){switch(e){case"keyup":return Uy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function By(e,t){switch(e){case"compositionend":return hd(t);case"keypress":return t.which!==32?null:(fd=!0,ud);case"textInput":return e=t.data,e===ud&&fd?null:e;default:return null}}function Iy(e,t){if(il)return e==="compositionend"||!So&&dd(e,t)?(e=id(),Ks=bo=ri=null,il=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return cd&&t.locale!=="ko"?null:t.data;default:return null}}var Hy={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 pd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hy[e.type]:t==="textarea"}function md(e,t,n,a){Fe?Xe?Xe.push(a):Xe=[a]:Fe=a,t=Ir(t,"onChange"),0<t.length&&(n=new Xs("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Zl=null,Xl=null;function qy(e){Vp(e,0)}function Vs(e){var t=Ea(e);if(ii(t))return e}function gd(e,t){if(e==="change")return t}var bd=!1;if(Ua){var No;if(Ua){var To="oninput"in document;if(!To){var yd=document.createElement("div");yd.setAttribute("oninput","return;"),To=typeof yd.oninput=="function"}No=To}else No=!1;bd=No&&(!document.documentMode||9<document.documentMode)}function vd(){Zl&&(Zl.detachEvent("onpropertychange",Ed),Xl=Zl=null)}function Ed(e){if(e.propertyName==="value"&&Vs(Xl)){var t=[];md(t,Xl,e,Oe(e)),Fs(qy,t)}}function Gy(e,t,n){e==="focusin"?(vd(),Zl=t,Xl=n,Zl.attachEvent("onpropertychange",Ed)):e==="focusout"&&vd()}function $y(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vs(Xl)}function Yy(e,t){if(e==="click")return Vs(t)}function Fy(e,t){if(e==="input"||e==="change")return Vs(t)}function Ky(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kn=typeof Object.is=="function"?Object.is:Ky;function Ql(e,t){if(Kn(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)||!Kn(e[o],t[o]))return!1}return!0}function _d(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sd(e,t){var n=_d(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=_d(n)}}function Nd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Td(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Da(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=Da(e.document)}return t}function wo(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 Py=Ua&&"documentMode"in document&&11>=document.documentMode,ll=null,xo=null,Vl=null,Ao=!1;function wd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ao||ll==null||ll!==Da(a)||(a=ll,"selectionStart"in a&&wo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Vl&&Ql(Vl,a)||(Vl=a,a=Ir(xo,"onSelect"),0<a.length&&(t=new Xs("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ll)))}function zi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sl={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionrun:zi("Transition","TransitionRun"),transitionstart:zi("Transition","TransitionStart"),transitioncancel:zi("Transition","TransitionCancel"),transitionend:zi("Transition","TransitionEnd")},Ro={},xd={};Ua&&(xd=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);function Ui(e){if(Ro[e])return Ro[e];if(!sl[e])return e;var t=sl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xd)return Ro[e]=t[n];return e}var Ad=Ui("animationend"),Rd=Ui("animationiteration"),Od=Ui("animationstart"),Zy=Ui("transitionrun"),Xy=Ui("transitionstart"),Qy=Ui("transitioncancel"),kd=Ui("transitionend"),Md=new Map,Oo="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(" ");Oo.push("scrollEnd");function da(e,t){Md.set(e,t),fa(t,[e])}var Js=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},na=[],rl=0,ko=0;function Ws(){for(var e=rl,t=ko=rl=0;t<e;){var n=na[t];na[t++]=null;var a=na[t];na[t++]=null;var o=na[t];na[t++]=null;var c=na[t];if(na[t++]=null,a!==null&&o!==null){var h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}c!==0&&Cd(n,o,c)}}function er(e,t,n,a){na[rl++]=e,na[rl++]=t,na[rl++]=n,na[rl++]=a,ko|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Mo(e,t,n,a){return er(e,t,n,a),tr(e)}function ji(e,t){return er(e,null,null,t),tr(e)}function Cd(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 tr(e){if(50<vs)throw vs=0,Hc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ol={};function Vy(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 Pn(e,t,n,a){return new Vy(e,t,n,a)}function Co(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ja(e,t){var n=e.alternate;return n===null?(n=Pn(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 Dd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nr(e,t,n,a,o,c){var h=0;if(a=e,typeof e=="function")Co(e)&&(h=1);else if(typeof e=="string")h=nE(e,n,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case L:return e=Pn(31,n,t,o),e.elementType=L,e.lanes=c,e;case x:return Bi(n.children,o,c,t);case A:h=8,o|=24;break;case U:return e=Pn(12,n,t,o|2),e.elementType=U,e.lanes=c,e;case H:return e=Pn(13,n,t,o),e.elementType=H,e.lanes=c,e;case Z:return e=Pn(19,n,t,o),e.elementType=Z,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:h=10;break e;case G:h=9;break e;case re:h=11;break e;case le:h=14;break e;case k:h=16,a=null;break e}h=29,n=Error(l(130,e===null?"null":typeof e,"")),a=null}return t=Pn(h,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function Bi(e,t,n,a){return e=Pn(7,e,a,t),e.lanes=n,e}function Do(e,t,n){return e=Pn(6,e,null,t),e.lanes=n,e}function Ld(e){var t=Pn(18,null,null,0);return t.stateNode=e,t}function Lo(e,t,n){return t=Pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zd=new WeakMap;function aa(e,t){if(typeof e=="object"&&e!==null){var n=zd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Yn(t)},zd.set(e,t),t)}return{value:e,source:t,stack:Yn(t)}}var cl=[],ul=0,ar=null,Jl=0,ia=[],la=0,oi=null,Na=1,Ta="";function Ba(e,t){cl[ul++]=Jl,cl[ul++]=ar,ar=e,Jl=t}function Ud(e,t,n){ia[la++]=Na,ia[la++]=Ta,ia[la++]=oi,oi=e;var a=Na;e=Ta;var o=32-kt(a)-1;a&=~(1<<o),n+=1;var c=32-kt(t)+o;if(30<c){var h=o-o%5;c=(a&(1<<h)-1).toString(32),a>>=h,o-=h,Na=1<<32-kt(t)+o|n<<o|a,Ta=c+e}else Na=1<<c|n<<o|a,Ta=e}function zo(e){e.return!==null&&(Ba(e,1),Ud(e,1,0))}function Uo(e){for(;e===ar;)ar=cl[--ul],cl[ul]=null,Jl=cl[--ul],cl[ul]=null;for(;e===oi;)oi=ia[--la],ia[la]=null,Ta=ia[--la],ia[la]=null,Na=ia[--la],ia[la]=null}function jd(e,t){ia[la++]=Na,ia[la++]=Ta,ia[la++]=oi,Na=t.id,Ta=t.overflow,oi=e}var dn=null,wt=null,lt=!1,ci=null,sa=!1,jo=Error(l(519));function ui(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wl(aa(t,e)),jo}function Bd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Mt]=e,t[ln]=a,n){case"dialog":We("cancel",t),We("close",t);break;case"iframe":case"object":case"embed":We("load",t);break;case"video":case"audio":for(n=0;n<_s.length;n++)We(_s[n],t);break;case"source":We("error",t);break;case"img":case"image":case"link":We("error",t),We("load",t);break;case"details":We("toggle",t);break;case"input":We("invalid",t),La(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":We("invalid",t);break;case"textarea":We("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||tm(t.textContent,n)?(a.popover!=null&&(We("beforetoggle",t),We("toggle",t)),a.onScroll!=null&&We("scroll",t),a.onScrollEnd!=null&&We("scrollend",t),a.onClick!=null&&(t.onclick=oe),t=!0):t=!1,t||ui(e,!0)}function Id(e){for(dn=e.return;dn;)switch(dn.tag){case 5:case 31:case 13:sa=!1;return;case 27:case 3:sa=!0;return;default:dn=dn.return}}function fl(e){if(e!==dn)return!1;if(!lt)return Id(e),lt=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||tu(e.type,e.memoizedProps)),n=!n),n&&wt&&ui(e),Id(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));wt=um(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));wt=um(e)}else t===27?(t=wt,Ti(e.type)?(e=su,su=null,wt=e):wt=t):wt=dn?oa(e.stateNode.nextSibling):null;return!0}function Ii(){wt=dn=null,lt=!1}function Bo(){var e=ci;return e!==null&&(qn===null?qn=e:qn.push.apply(qn,e),ci=null),e}function Wl(e){ci===null?ci=[e]:ci.push(e)}var Io=S(null),Hi=null,Ia=null;function fi(e,t,n){q(Io,t._currentValue),t._currentValue=n}function Ha(e){e._currentValue=Io.current,C(Io)}function Ho(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 qo(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=o;for(var R=0;R<t.length;R++)if(E.context===t[R]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),Ho(c.return,n,e),a||(h=null);break e}c=E.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(l(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),Ho(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function dl(e,t,n,a){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(l(387));if(h=h.memoizedProps,h!==null){var E=o.type;Kn(o.pendingProps.value,h.value)||(e!==null?e.push(E):e=[E])}}else if(o===pe.current){if(h=o.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(xs):e=[xs])}o=o.return}e!==null&&qo(t,e,n,a),t.flags|=262144}function ir(e){for(e=e.firstContext;e!==null;){if(!Kn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qi(e){Hi=e,Ia=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function hn(e){return Hd(Hi,e)}function lr(e,t){return Hi===null&&qi(e),Hd(e,t)}function Hd(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 Jy=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()})}},Wy=s.unstable_scheduleCallback,ev=s.unstable_NormalPriority,Gt={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Go(){return{controller:new Jy,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&Wy(ev,function(){e.controller.abort()})}var ts=null,$o=0,hl=0,pl=null;function tv(e,t){if(ts===null){var n=ts=[];$o=0,hl=Kc(),pl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return $o++,t.then(qd,qd),t}function qd(){if(--$o===0&&ts!==null){pl!==null&&(pl.status="fulfilled");var e=ts;ts=null,hl=0,pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function nv(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 Gd=I.S;I.S=function(e,t){wp=it(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&tv(e,t),Gd!==null&&Gd(e,t)};var Gi=S(null);function Yo(){var e=Gi.current;return e!==null?e:St.pooledCache}function sr(e,t){t===null?q(Gi,Gi.current):q(Gi,t.pool)}function $d(){var e=Yo();return e===null?null:{parent:Gt._currentValue,pool:e}}var ml=Error(l(460)),Fo=Error(l(474)),rr=Error(l(542)),or={then:function(){}};function Yd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(oe,oe),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pd(e),e;default:if(typeof t.status=="string")t.then(oe,oe);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,Pd(e),e}throw Yi=t,ml}}function $i(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Yi=n,ml):n}}var Yi=null;function Kd(){if(Yi===null)throw Error(l(459));var e=Yi;return Yi=null,e}function Pd(e){if(e===ml||e===rr)throw Error(l(483))}var gl=null,ns=0;function cr(e){var t=ns;return ns+=1,gl===null&&(gl=[]),Fd(gl,e,t)}function as(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ur(e,t){throw t.$$typeof===_?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Zd(e){function t(B,M){if(e){var $=B.deletions;$===null?(B.deletions=[M],B.flags|=16):$.push(M)}}function n(B,M){if(!e)return null;for(;M!==null;)t(B,M),M=M.sibling;return null}function a(B){for(var M=new Map;B!==null;)B.key!==null?M.set(B.key,B):M.set(B.index,B),B=B.sibling;return M}function o(B,M){return B=ja(B,M),B.index=0,B.sibling=null,B}function c(B,M,$){return B.index=$,e?($=B.alternate,$!==null?($=$.index,$<M?(B.flags|=67108866,M):$):(B.flags|=67108866,M)):(B.flags|=1048576,M)}function h(B){return e&&B.alternate===null&&(B.flags|=67108866),B}function E(B,M,$,ae){return M===null||M.tag!==6?(M=Do($,B.mode,ae),M.return=B,M):(M=o(M,$),M.return=B,M)}function R(B,M,$,ae){var De=$.type;return De===x?te(B,M,$.props.children,ae,$.key):M!==null&&(M.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===k&&$i(De)===M.type)?(M=o(M,$.props),as(M,$),M.return=B,M):(M=nr($.type,$.key,$.props,null,B.mode,ae),as(M,$),M.return=B,M)}function Y(B,M,$,ae){return M===null||M.tag!==4||M.stateNode.containerInfo!==$.containerInfo||M.stateNode.implementation!==$.implementation?(M=Lo($,B.mode,ae),M.return=B,M):(M=o(M,$.children||[]),M.return=B,M)}function te(B,M,$,ae,De){return M===null||M.tag!==7?(M=Bi($,B.mode,ae,De),M.return=B,M):(M=o(M,$),M.return=B,M)}function se(B,M,$){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Do(""+M,B.mode,$),M.return=B,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case w:return $=nr(M.type,M.key,M.props,null,B.mode,$),as($,M),$.return=B,$;case N:return M=Lo(M,B.mode,$),M.return=B,M;case k:return M=$i(M),se(B,M,$)}if(me(M)||he(M))return M=Bi(M,B.mode,$,null),M.return=B,M;if(typeof M.then=="function")return se(B,cr(M),$);if(M.$$typeof===D)return se(B,lr(B,M),$);ur(B,M)}return null}function K(B,M,$,ae){var De=M!==null?M.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return De!==null?null:E(B,M,""+$,ae);if(typeof $=="object"&&$!==null){switch($.$$typeof){case w:return $.key===De?R(B,M,$,ae):null;case N:return $.key===De?Y(B,M,$,ae):null;case k:return $=$i($),K(B,M,$,ae)}if(me($)||he($))return De!==null?null:te(B,M,$,ae,null);if(typeof $.then=="function")return K(B,M,cr($),ae);if($.$$typeof===D)return K(B,M,lr(B,$),ae);ur(B,$)}return null}function Q(B,M,$,ae,De){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return B=B.get($)||null,E(M,B,""+ae,De);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case w:return B=B.get(ae.key===null?$:ae.key)||null,R(M,B,ae,De);case N:return B=B.get(ae.key===null?$:ae.key)||null,Y(M,B,ae,De);case k:return ae=$i(ae),Q(B,M,$,ae,De)}if(me(ae)||he(ae))return B=B.get($)||null,te(M,B,ae,De,null);if(typeof ae.then=="function")return Q(B,M,$,cr(ae),De);if(ae.$$typeof===D)return Q(B,M,$,lr(M,ae),De);ur(M,ae)}return null}function Te(B,M,$,ae){for(var De=null,ft=null,xe=M,Ye=M=0,at=null;xe!==null&&Ye<$.length;Ye++){xe.index>Ye?(at=xe,xe=null):at=xe.sibling;var dt=K(B,xe,$[Ye],ae);if(dt===null){xe===null&&(xe=at);break}e&&xe&&dt.alternate===null&&t(B,xe),M=c(dt,M,Ye),ft===null?De=dt:ft.sibling=dt,ft=dt,xe=at}if(Ye===$.length)return n(B,xe),lt&&Ba(B,Ye),De;if(xe===null){for(;Ye<$.length;Ye++)xe=se(B,$[Ye],ae),xe!==null&&(M=c(xe,M,Ye),ft===null?De=xe:ft.sibling=xe,ft=xe);return lt&&Ba(B,Ye),De}for(xe=a(xe);Ye<$.length;Ye++)at=Q(xe,B,Ye,$[Ye],ae),at!==null&&(e&&at.alternate!==null&&xe.delete(at.key===null?Ye:at.key),M=c(at,M,Ye),ft===null?De=at:ft.sibling=at,ft=at);return e&&xe.forEach(function(Oi){return t(B,Oi)}),lt&&Ba(B,Ye),De}function ze(B,M,$,ae){if($==null)throw Error(l(151));for(var De=null,ft=null,xe=M,Ye=M=0,at=null,dt=$.next();xe!==null&&!dt.done;Ye++,dt=$.next()){xe.index>Ye?(at=xe,xe=null):at=xe.sibling;var Oi=K(B,xe,dt.value,ae);if(Oi===null){xe===null&&(xe=at);break}e&&xe&&Oi.alternate===null&&t(B,xe),M=c(Oi,M,Ye),ft===null?De=Oi:ft.sibling=Oi,ft=Oi,xe=at}if(dt.done)return n(B,xe),lt&&Ba(B,Ye),De;if(xe===null){for(;!dt.done;Ye++,dt=$.next())dt=se(B,dt.value,ae),dt!==null&&(M=c(dt,M,Ye),ft===null?De=dt:ft.sibling=dt,ft=dt);return lt&&Ba(B,Ye),De}for(xe=a(xe);!dt.done;Ye++,dt=$.next())dt=Q(xe,B,Ye,dt.value,ae),dt!==null&&(e&&dt.alternate!==null&&xe.delete(dt.key===null?Ye:dt.key),M=c(dt,M,Ye),ft===null?De=dt:ft.sibling=dt,ft=dt);return e&&xe.forEach(function(hE){return t(B,hE)}),lt&&Ba(B,Ye),De}function Et(B,M,$,ae){if(typeof $=="object"&&$!==null&&$.type===x&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case w:e:{for(var De=$.key;M!==null;){if(M.key===De){if(De=$.type,De===x){if(M.tag===7){n(B,M.sibling),ae=o(M,$.props.children),ae.return=B,B=ae;break e}}else if(M.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===k&&$i(De)===M.type){n(B,M.sibling),ae=o(M,$.props),as(ae,$),ae.return=B,B=ae;break e}n(B,M);break}else t(B,M);M=M.sibling}$.type===x?(ae=Bi($.props.children,B.mode,ae,$.key),ae.return=B,B=ae):(ae=nr($.type,$.key,$.props,null,B.mode,ae),as(ae,$),ae.return=B,B=ae)}return h(B);case N:e:{for(De=$.key;M!==null;){if(M.key===De)if(M.tag===4&&M.stateNode.containerInfo===$.containerInfo&&M.stateNode.implementation===$.implementation){n(B,M.sibling),ae=o(M,$.children||[]),ae.return=B,B=ae;break e}else{n(B,M);break}else t(B,M);M=M.sibling}ae=Lo($,B.mode,ae),ae.return=B,B=ae}return h(B);case k:return $=$i($),Et(B,M,$,ae)}if(me($))return Te(B,M,$,ae);if(he($)){if(De=he($),typeof De!="function")throw Error(l(150));return $=De.call($),ze(B,M,$,ae)}if(typeof $.then=="function")return Et(B,M,cr($),ae);if($.$$typeof===D)return Et(B,M,lr(B,$),ae);ur(B,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,M!==null&&M.tag===6?(n(B,M.sibling),ae=o(M,$),ae.return=B,B=ae):(n(B,M),ae=Do($,B.mode,ae),ae.return=B,B=ae),h(B)):n(B,M)}return function(B,M,$,ae){try{ns=0;var De=Et(B,M,$,ae);return gl=null,De}catch(xe){if(xe===ml||xe===rr)throw xe;var ft=Pn(29,xe,null,B.mode);return ft.lanes=ae,ft.return=B,ft}finally{}}}var Fi=Zd(!0),Xd=Zd(!1),di=!1;function Ko(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Po(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 hi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pi(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ht&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=tr(e),Cd(e,null,n),t}return er(e,a,t,n),tr(e)}function is(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,de(e,n)}}function Zo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Xo=!1;function ls(){if(Xo){var e=pl;if(e!==null)throw e}}function ss(e,t,n,a){Xo=!1;var o=e.updateQueue;di=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var R=E,Y=R.next;R.next=null,h===null?c=Y:h.next=Y,h=R;var te=e.alternate;te!==null&&(te=te.updateQueue,E=te.lastBaseUpdate,E!==h&&(E===null?te.firstBaseUpdate=Y:E.next=Y,te.lastBaseUpdate=R))}if(c!==null){var se=o.baseState;h=0,te=Y=R=null,E=c;do{var K=E.lane&-536870913,Q=K!==E.lane;if(Q?(nt&K)===K:(a&K)===K){K!==0&&K===hl&&(Xo=!0),te!==null&&(te=te.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Te=e,ze=E;K=t;var Et=n;switch(ze.tag){case 1:if(Te=ze.payload,typeof Te=="function"){se=Te.call(Et,se,K);break e}se=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=ze.payload,K=typeof Te=="function"?Te.call(Et,se,K):Te,K==null)break e;se=v({},se,K);break e;case 2:di=!0}}K=E.callback,K!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=o.callbacks,Q===null?o.callbacks=[K]:Q.push(K))}else Q={lane:K,tag:E.tag,payload:E.payload,callback:E.callback,next:null},te===null?(Y=te=Q,R=se):te=te.next=Q,h|=K;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;Q=E,E=Q.next,Q.next=null,o.lastBaseUpdate=Q,o.shared.pending=null}}while(!0);te===null&&(R=se),o.baseState=R,o.firstBaseUpdate=Y,o.lastBaseUpdate=te,c===null&&(o.shared.lanes=0),vi|=h,e.lanes=h,e.memoizedState=se}}function Qd(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function Vd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Qd(n[e],t)}var bl=S(null),fr=S(0);function Jd(e,t){e=Xa,q(fr,e),q(bl,t),Xa=e|t.baseLanes}function Qo(){q(fr,Xa),q(bl,bl.current)}function Vo(){Xa=fr.current,C(bl),C(fr)}var Zn=S(null),ra=null;function mi(e){var t=e.alternate;q(jt,jt.current&1),q(Zn,e),ra===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(ra=e)}function Jo(e){q(jt,jt.current),q(Zn,e),ra===null&&(ra=e)}function Wd(e){e.tag===22?(q(jt,jt.current),q(Zn,e),ra===null&&(ra=e)):gi()}function gi(){q(jt,jt.current),q(Zn,Zn.current)}function Xn(e){C(Zn),ra===e&&(ra=null),C(jt)}var jt=S(0);function dr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||iu(n)||lu(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 qa=0,Ge=null,yt=null,$t=null,hr=!1,yl=!1,Ki=!1,pr=0,rs=0,vl=null,av=0;function Ct(){throw Error(l(321))}function Wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kn(e[n],t[n]))return!1;return!0}function ec(e,t,n,a,o,c){return qa=c,Ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Uh:mc,Ki=!1,c=n(a,o),Ki=!1,yl&&(c=th(t,n,a,o)),eh(e),c}function eh(e){I.H=us;var t=yt!==null&&yt.next!==null;if(qa=0,$t=yt=Ge=null,hr=!1,rs=0,vl=null,t)throw Error(l(300));e===null||Yt||(e=e.dependencies,e!==null&&ir(e)&&(Yt=!0))}function th(e,t,n,a){Ge=e;var o=0;do{if(yl&&(vl=null),rs=0,yl=!1,25<=o)throw Error(l(301));if(o+=1,$t=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=jh,c=t(n,a)}while(yl);return c}function iv(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(yt!==null?yt.memoizedState:null)!==e&&(Ge.flags|=1024),t}function tc(){var e=pr!==0;return pr=0,e}function nc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ac(e){if(hr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hr=!1}qa=0,$t=yt=Ge=null,yl=!1,rs=pr=0,vl=null}function kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?Ge.memoizedState=$t=e:$t=$t.next=e,$t}function Bt(){if(yt===null){var e=Ge.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var t=$t===null?Ge.memoizedState:$t.next;if(t!==null)$t=t,yt=e;else{if(e===null)throw Ge.alternate===null?Error(l(467)):Error(l(310));yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},$t===null?Ge.memoizedState=$t=e:$t=$t.next=e}return $t}function mr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=rs;return rs+=1,vl===null&&(vl=[]),e=Fd(vl,e,t),t=Ge,($t===null?t.memoizedState:$t.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Uh:mc),e}function gr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===D)return hn(e)}throw Error(l(438,String(e)))}function ic(e){var t=null,n=Ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Ge.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=mr(),Ge.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=X;return t.index++,n}function Ga(e,t){return typeof t=="function"?t(e):t}function br(e){var t=Bt();return lc(t,yt,e)}function lc(e,t,n){var a=e.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=h=null,R=null,Y=t,te=!1;do{var se=Y.lane&-536870913;if(se!==Y.lane?(nt&se)===se:(qa&se)===se){var K=Y.revertLane;if(K===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),se===hl&&(te=!0);else if((qa&K)===K){Y=Y.next,K===hl&&(te=!0);continue}else se={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},R===null?(E=R=se,h=c):R=R.next=se,Ge.lanes|=K,vi|=K;se=Y.action,Ki&&n(c,se),c=Y.hasEagerState?Y.eagerState:n(c,se)}else K={lane:se,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},R===null?(E=R=K,h=c):R=R.next=K,Ge.lanes|=se,vi|=se;Y=Y.next}while(Y!==null&&Y!==t);if(R===null?h=c:R.next=E,!Kn(c,e.memoizedState)&&(Yt=!0,te&&(n=pl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=R,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function sc(e){var t=Bt(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);Kn(c,t.memoizedState)||(Yt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function nh(e,t,n){var a=Ge,o=Bt(),c=lt;if(c){if(n===void 0)throw Error(l(407));n=n()}else n=t();var h=!Kn((yt||o).memoizedState,n);if(h&&(o.memoizedState=n,Yt=!0),o=o.queue,cc(lh.bind(null,a,o,e),[e]),o.getSnapshot!==t||h||$t!==null&&$t.memoizedState.tag&1){if(a.flags|=2048,El(9,{destroy:void 0},ih.bind(null,a,o,n,t),null),St===null)throw Error(l(349));c||(qa&127)!==0||ah(a,t,n)}return n}function ah(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ge.updateQueue,t===null?(t=mr(),Ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ih(e,t,n,a){t.value=n,t.getSnapshot=a,sh(t)&&rh(e)}function lh(e,t,n){return n(function(){sh(t)&&rh(e)})}function sh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kn(e,n)}catch{return!0}}function rh(e){var t=ji(e,2);t!==null&&Gn(t,e,2)}function rc(e){var t=kn();if(typeof e=="function"){var n=e;if(e=n(),Ki){en(!0);try{n()}finally{en(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ga,lastRenderedState:e},t}function oh(e,t,n,a){return e.baseState=n,lc(e,yt,typeof a=="function"?a:Ga)}function lv(e,t,n,a,o){if(Er(e))throw Error(l(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};I.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,ch(t,c)):(c.next=n.next,t.pending=n.next=c)}}function ch(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=I.T,h={};I.T=h;try{var E=n(o,a),R=I.S;R!==null&&R(h,E),uh(e,t,E)}catch(Y){oc(e,t,Y)}finally{c!==null&&h.types!==null&&(c.types=h.types),I.T=c}}else try{c=n(o,a),uh(e,t,c)}catch(Y){oc(e,t,Y)}}function uh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){fh(e,t,a)},function(a){return oc(e,t,a)}):fh(e,t,n)}function fh(e,t,n){t.status="fulfilled",t.value=n,dh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ch(e,n)))}function oc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,dh(t),t=t.next;while(t!==a)}e.action=null}function dh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function hh(e,t){return t}function ph(e,t){if(lt){var n=St.formState;if(n!==null){e:{var a=Ge;if(lt){if(wt){t:{for(var o=wt,c=sa;o.nodeType!==8;){if(!c){o=null;break t}if(o=oa(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){wt=oa(o.nextSibling),a=o.data==="F!";break e}}ui(a)}a=!1}a&&(t=n[0])}}return n=kn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hh,lastRenderedState:t},n.queue=a,n=Dh.bind(null,Ge,a),a.dispatch=n,a=rc(!1),c=pc.bind(null,Ge,!1,a.queue),a=kn(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=lv.bind(null,Ge,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function mh(e){var t=Bt();return gh(t,yt,e)}function gh(e,t,n){if(t=lc(e,t,hh)[0],e=br(Ga)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=os(t)}catch(h){throw h===ml?rr:h}else a=t;t=Bt();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(Ge.flags|=2048,El(9,{destroy:void 0},sv.bind(null,o,n),null)),[a,c,e]}function sv(e,t){e.action=t}function bh(e){var t=Bt(),n=yt;if(n!==null)return gh(t,n,e);Bt(),t=t.memoizedState,n=Bt();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function El(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Ge.updateQueue,t===null&&(t=mr(),Ge.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function yh(){return Bt().memoizedState}function yr(e,t,n,a){var o=kn();Ge.flags|=e,o.memoizedState=El(1|t,{destroy:void 0},n,a===void 0?null:a)}function vr(e,t,n,a){var o=Bt();a=a===void 0?null:a;var c=o.memoizedState.inst;yt!==null&&a!==null&&Wo(a,yt.memoizedState.deps)?o.memoizedState=El(t,c,n,a):(Ge.flags|=e,o.memoizedState=El(1|t,c,n,a))}function vh(e,t){yr(8390656,8,e,t)}function cc(e,t){vr(2048,8,e,t)}function rv(e){Ge.flags|=4;var t=Ge.updateQueue;if(t===null)t=mr(),Ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Eh(e){var t=Bt().memoizedState;return rv({ref:t,nextImpl:e}),function(){if((ht&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function _h(e,t){return vr(4,2,e,t)}function Sh(e,t){return vr(4,4,e,t)}function Nh(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 Th(e,t,n){n=n!=null?n.concat([e]):null,vr(4,4,Nh.bind(null,t,e),n)}function uc(){}function wh(e,t){var n=Bt();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Wo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function xh(e,t){var n=Bt();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Wo(t,a[1]))return a[0];if(a=e(),Ki){en(!0);try{e()}finally{en(!1)}}return n.memoizedState=[a,t],a}function fc(e,t,n){return n===void 0||(qa&1073741824)!==0&&(nt&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Ap(),Ge.lanes|=e,vi|=e,n)}function Ah(e,t,n,a){return Kn(n,t)?n:bl.current!==null?(e=fc(e,n,a),Kn(e,t)||(Yt=!0),e):(qa&42)===0||(qa&1073741824)!==0&&(nt&261930)===0?(Yt=!0,e.memoizedState=n):(e=Ap(),Ge.lanes|=e,vi|=e,t)}function Rh(e,t,n,a,o){var c=ie.p;ie.p=c!==0&&8>c?c:8;var h=I.T,E={};I.T=E,pc(e,!1,t,n);try{var R=o(),Y=I.S;if(Y!==null&&Y(E,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var te=nv(R,a);cs(e,t,te,Jn(e))}else cs(e,t,a,Jn(e))}catch(se){cs(e,t,{then:function(){},status:"rejected",reason:se},Jn())}finally{ie.p=c,h!==null&&E.types!==null&&(h.types=E.types),I.T=h}}function ov(){}function dc(e,t,n,a){if(e.tag!==5)throw Error(l(476));var o=Oh(e).queue;Rh(e,o,t,ce,n===null?ov:function(){return kh(e),n(a)})}function Oh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ga,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ga,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kh(e){var t=Oh(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},Jn())}function hc(){return hn(xs)}function Mh(){return Bt().memoizedState}function Ch(){return Bt().memoizedState}function cv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Jn();e=hi(n);var a=pi(t,e,n);a!==null&&(Gn(a,t,n),is(a,t,n)),t={cache:Go()},e.payload=t;return}t=t.return}}function uv(e,t,n){var a=Jn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Er(e)?Lh(t,n):(n=Mo(e,t,n,a),n!==null&&(Gn(n,e,a),zh(n,t,a)))}function Dh(e,t,n){var a=Jn();cs(e,t,n,a)}function cs(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Er(e))Lh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,E=c(h,n);if(o.hasEagerState=!0,o.eagerState=E,Kn(E,h))return er(e,t,o,0),St===null&&Ws(),!1}catch{}finally{}if(n=Mo(e,t,o,a),n!==null)return Gn(n,e,a),zh(n,t,a),!0}return!1}function pc(e,t,n,a){if(a={lane:2,revertLane:Kc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Er(e)){if(t)throw Error(l(479))}else t=Mo(e,n,a,2),t!==null&&Gn(t,e,2)}function Er(e){var t=e.alternate;return e===Ge||t!==null&&t===Ge}function Lh(e,t){yl=hr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,de(e,n)}}var us={readContext:hn,use:gr,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};us.useEffectEvent=Ct;var Uh={readContext:hn,use:gr,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:hn,useEffect:vh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yr(4194308,4,Nh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yr(4194308,4,e,t)},useInsertionEffect:function(e,t){yr(4,2,e,t)},useMemo:function(e,t){var n=kn();t=t===void 0?null:t;var a=e();if(Ki){en(!0);try{e()}finally{en(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=kn();if(n!==void 0){var o=n(t);if(Ki){en(!0);try{n(t)}finally{en(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=uv.bind(null,Ge,e),[a.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:function(e){e=rc(e);var t=e.queue,n=Dh.bind(null,Ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:uc,useDeferredValue:function(e,t){var n=kn();return fc(n,e,t)},useTransition:function(){var e=rc(!1);return e=Rh.bind(null,Ge,e.queue,!0,!1),kn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Ge,o=kn();if(lt){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),St===null)throw Error(l(349));(nt&127)!==0||ah(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,vh(lh.bind(null,a,c,e),[e]),a.flags|=2048,El(9,{destroy:void 0},ih.bind(null,a,c,n,t),null),n},useId:function(){var e=kn(),t=St.identifierPrefix;if(lt){var n=Ta,a=Na;n=(a&~(1<<32-kt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=pr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=av++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:hc,useFormState:ph,useActionState:ph,useOptimistic:function(e){var t=kn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=pc.bind(null,Ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:ic,useCacheRefresh:function(){return kn().memoizedState=cv.bind(null,Ge)},useEffectEvent:function(e){var t=kn(),n={impl:e};return t.memoizedState=n,function(){if((ht&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},mc={readContext:hn,use:gr,useCallback:wh,useContext:hn,useEffect:cc,useImperativeHandle:Th,useInsertionEffect:_h,useLayoutEffect:Sh,useMemo:xh,useReducer:br,useRef:yh,useState:function(){return br(Ga)},useDebugValue:uc,useDeferredValue:function(e,t){var n=Bt();return Ah(n,yt.memoizedState,e,t)},useTransition:function(){var e=br(Ga)[0],t=Bt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:nh,useId:Mh,useHostTransitionStatus:hc,useFormState:mh,useActionState:mh,useOptimistic:function(e,t){var n=Bt();return oh(n,yt,e,t)},useMemoCache:ic,useCacheRefresh:Ch};mc.useEffectEvent=Eh;var jh={readContext:hn,use:gr,useCallback:wh,useContext:hn,useEffect:cc,useImperativeHandle:Th,useInsertionEffect:_h,useLayoutEffect:Sh,useMemo:xh,useReducer:sc,useRef:yh,useState:function(){return sc(Ga)},useDebugValue:uc,useDeferredValue:function(e,t){var n=Bt();return yt===null?fc(n,e,t):Ah(n,yt.memoizedState,e,t)},useTransition:function(){var e=sc(Ga)[0],t=Bt().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:nh,useId:Mh,useHostTransitionStatus:hc,useFormState:bh,useActionState:bh,useOptimistic:function(e,t){var n=Bt();return yt!==null?oh(n,yt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ic,useCacheRefresh:Ch};jh.useEffectEvent=Eh;function gc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Jn(),o=hi(a);o.payload=t,n!=null&&(o.callback=n),t=pi(e,o,a),t!==null&&(Gn(t,e,a),is(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Jn(),o=hi(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=pi(e,o,a),t!==null&&(Gn(t,e,a),is(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jn(),a=hi(n);a.tag=2,t!=null&&(a.callback=t),t=pi(e,a,n),t!==null&&(Gn(t,e,n),is(t,e,n))}};function Bh(e,t,n,a,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,h):t.prototype&&t.prototype.isPureReactComponent?!Ql(n,a)||!Ql(o,c):!0}function Ih(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&&bc.enqueueReplaceState(t,t.state,null)}function Pi(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Hh(e){Js(e)}function qh(e){console.error(e)}function Gh(e){Js(e)}function _r(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function $h(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 yc(e,t,n){return n=hi(n),n.tag=3,n.payload={element:null},n.callback=function(){_r(e,t)},n}function Yh(e){return e=hi(e),e.tag=3,e}function Fh(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(){$h(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){$h(t,n,a),typeof o!="function"&&(Ei===null?Ei=new Set([this]):Ei.add(this));var E=a.stack;this.componentDidCatch(a.value,{componentStack:E!==null?E:""})})}function fv(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&dl(t,n,o,!0),n=Zn.current,n!==null){switch(n.tag){case 31:case 13:return ra===null?Dr():n.alternate===null&&Dt===0&&(Dt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===or?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),$c(e,a,o)),!1;case 22:return n.flags|=65536,a===or?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)),$c(e,a,o)),!1}throw Error(l(435,n.tag))}return $c(e,a,o),Dr(),!1}if(lt)return t=Zn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==jo&&(e=Error(l(422),{cause:a}),Wl(aa(e,n)))):(a!==jo&&(t=Error(l(423),{cause:a}),Wl(aa(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=aa(a,n),o=yc(e.stateNode,a,o),Zo(e,o),Dt!==4&&(Dt=2)),!1;var c=Error(l(520),{cause:a});if(c=aa(c,n),ys===null?ys=[c]:ys.push(c),Dt!==4&&(Dt=2),t===null)return!0;a=aa(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=yc(n.stateNode,a,e),Zo(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"&&(Ei===null||!Ei.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Yh(o),Fh(o,e,n,a),Zo(n,o),!1}n=n.return}while(n!==null);return!1}var vc=Error(l(461)),Yt=!1;function pn(e,t,n,a){t.child=e===null?Xd(t,null,n,a):Fi(t,e.child,n,a)}function Kh(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var h={};for(var E in a)E!=="ref"&&(h[E]=a[E])}else h=a;return qi(t),a=ec(e,t,n,h,c,o),E=tc(),e!==null&&!Yt?(nc(e,t,o),$a(e,t,o)):(lt&&E&&zo(t),t.flags|=1,pn(e,t,a,o),t.child)}function Ph(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!Co(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Zh(e,t,c,a,o)):(e=nr(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ac(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(h,a)&&e.ref===t.ref)return $a(e,t,o)}return t.flags|=1,e=ja(c,a),e.ref=t.ref,e.return=t,t.child=e}function Zh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(Ql(c,a)&&e.ref===t.ref)if(Yt=!1,t.pendingProps=a=c,Ac(e,o))(e.flags&131072)!==0&&(Yt=!0);else return t.lanes=e.lanes,$a(e,t,o)}return Ec(e,t,n,a,o)}function Xh(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 Qh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sr(t,c!==null?c.cachePool:null),c!==null?Jd(t,c):Qo(),Wd(t);else return a=t.lanes=536870912,Qh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(sr(t,c.cachePool),Jd(t,c),gi(),t.memoizedState=null):(e!==null&&sr(t,null),Qo(),gi());return pn(e,t,o,n),t.child}function fs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Qh(e,t,n,a,o){var c=Yo();return c=c===null?null:{parent:Gt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&sr(t,null),Qo(),Wd(t),e!==null&&dl(e,t,a,!0),t.childLanes=o,null}function Sr(e,t){return t=Tr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vh(e,t,n){return Fi(t,e.child,null,n),e=Sr(t,t.pendingProps),e.flags|=2,Xn(t),t.memoizedState=null,e}function dv(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(lt){if(a.mode==="hidden")return e=Sr(t,a),t.lanes=536870912,fs(null,e);if(Jo(t),(e=wt)?(e=cm(e,sa),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:oi!==null?{id:Na,overflow:Ta}:null,retryLane:536870912,hydrationErrors:null},n=Ld(e),n.return=t,t.child=n,dn=t,wt=null)):e=null,e===null)throw ui(t);return t.lanes=536870912,null}return Sr(t,a)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(Jo(t),o)if(t.flags&256)t.flags&=-257,t=Vh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(Yt||dl(e,t,n,!1),o=(n&e.childLanes)!==0,Yt||o){if(a=St,a!==null&&(h=He(a,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,ji(e,h),Gn(a,e,h),vc;Dr(),t=Vh(e,t,n)}else e=c.treeContext,wt=oa(h.nextSibling),dn=t,lt=!0,ci=null,sa=!1,e!==null&&jd(t,e),t=Sr(t,a),t.flags|=4096;return t}return e=ja(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Nr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(l(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ec(e,t,n,a,o){return qi(t),n=ec(e,t,n,a,void 0,o),a=tc(),e!==null&&!Yt?(nc(e,t,o),$a(e,t,o)):(lt&&a&&zo(t),t.flags|=1,pn(e,t,n,o),t.child)}function Jh(e,t,n,a,o,c){return qi(t),t.updateQueue=null,n=th(t,a,n,o),eh(e),a=tc(),e!==null&&!Yt?(nc(e,t,c),$a(e,t,c)):(lt&&a&&zo(t),t.flags|=1,pn(e,t,n,c),t.child)}function Wh(e,t,n,a,o){if(qi(t),t.stateNode===null){var c=ol,h=n.contextType;typeof h=="object"&&h!==null&&(c=hn(h)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=bc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},Ko(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?hn(h):ol,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(gc(t,n,h,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&bc.enqueueReplaceState(c,c.state,null),ss(t,a,c,o),ls(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,R=Pi(n,E);c.props=R;var Y=c.context,te=n.contextType;h=ol,typeof te=="object"&&te!==null&&(h=hn(te));var se=n.getDerivedStateFromProps;te=typeof se=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,te||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||Y!==h)&&Ih(t,c,a,h),di=!1;var K=t.memoizedState;c.state=K,ss(t,a,c,o),ls(),Y=t.memoizedState,E||K!==Y||di?(typeof se=="function"&&(gc(t,n,se,a),Y=t.memoizedState),(R=di||Bh(t,n,R,a,K,Y,h))?(te||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=Y),c.props=a,c.state=Y,c.context=h,a=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,Po(e,t),h=t.memoizedProps,te=Pi(n,h),c.props=te,se=t.pendingProps,K=c.context,Y=n.contextType,R=ol,typeof Y=="object"&&Y!==null&&(R=hn(Y)),E=n.getDerivedStateFromProps,(Y=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==se||K!==R)&&Ih(t,c,a,R),di=!1,K=t.memoizedState,c.state=K,ss(t,a,c,o),ls();var Q=t.memoizedState;h!==se||K!==Q||di||e!==null&&e.dependencies!==null&&ir(e.dependencies)?(typeof E=="function"&&(gc(t,n,E,a),Q=t.memoizedState),(te=di||Bh(t,n,te,a,K,Q,R)||e!==null&&e.dependencies!==null&&ir(e.dependencies))?(Y||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,Q,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,Q,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&K===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&K===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=Q),c.props=a,c.state=Q,c.context=R,a=te):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&K===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&K===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Nr(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=Fi(t,e.child,null,o),t.child=Fi(t,null,n,o)):pn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=$a(e,t,o),e}function ep(e,t,n,a){return Ii(),t.flags|=256,pn(e,t,n,a),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sc(e){return{baseLanes:e,cachePool:$d()}}function Nc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Vn),e}function tp(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(jt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(lt){if(o?mi(t):gi(),(e=wt)?(e=cm(e,sa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:oi!==null?{id:Na,overflow:Ta}:null,retryLane:536870912,hydrationErrors:null},n=Ld(e),n.return=t,t.child=n,dn=t,wt=null)):e=null,e===null)throw ui(t);return lu(e)?t.lanes=32:t.lanes=536870912,null}var E=a.children;return a=a.fallback,o?(gi(),o=t.mode,E=Tr({mode:"hidden",children:E},o),a=Bi(a,o,n,null),E.return=t,a.return=t,E.sibling=a,t.child=E,a=t.child,a.memoizedState=Sc(n),a.childLanes=Nc(e,h,n),t.memoizedState=_c,fs(null,a)):(mi(t),Tc(t,E))}var R=e.memoizedState;if(R!==null&&(E=R.dehydrated,E!==null)){if(c)t.flags&256?(mi(t),t.flags&=-257,t=wc(e,t,n)):t.memoizedState!==null?(gi(),t.child=e.child,t.flags|=128,t=null):(gi(),E=a.fallback,o=t.mode,a=Tr({mode:"visible",children:a.children},o),E=Bi(E,o,n,null),E.flags|=2,a.return=t,E.return=t,a.sibling=E,t.child=a,Fi(t,e.child,null,n),a=t.child,a.memoizedState=Sc(n),a.childLanes=Nc(e,h,n),t.memoizedState=_c,t=fs(null,a));else if(mi(t),lu(E)){if(h=E.nextSibling&&E.nextSibling.dataset,h)var Y=h.dgst;h=Y,a=Error(l(419)),a.stack="",a.digest=h,Wl({value:a,source:null,stack:null}),t=wc(e,t,n)}else if(Yt||dl(e,t,n,!1),h=(n&e.childLanes)!==0,Yt||h){if(h=St,h!==null&&(a=He(h,n),a!==0&&a!==R.retryLane))throw R.retryLane=a,ji(e,a),Gn(h,e,a),vc;iu(E)||Dr(),t=wc(e,t,n)}else iu(E)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,wt=oa(E.nextSibling),dn=t,lt=!0,ci=null,sa=!1,e!==null&&jd(t,e),t=Tc(t,a.children),t.flags|=4096);return t}return o?(gi(),E=a.fallback,o=t.mode,R=e.child,Y=R.sibling,a=ja(R,{mode:"hidden",children:a.children}),a.subtreeFlags=R.subtreeFlags&65011712,Y!==null?E=ja(Y,E):(E=Bi(E,o,n,null),E.flags|=2),E.return=t,a.return=t,a.sibling=E,t.child=a,fs(null,a),a=t.child,E=e.child.memoizedState,E===null?E=Sc(n):(o=E.cachePool,o!==null?(R=Gt._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=$d(),E={baseLanes:E.baseLanes|n,cachePool:o}),a.memoizedState=E,a.childLanes=Nc(e,h,n),t.memoizedState=_c,fs(e.child,a)):(mi(t),n=e.child,e=n.sibling,n=ja(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function Tc(e,t){return t=Tr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Tr(e,t){return e=Pn(22,e,null,t),e.lanes=0,e}function wc(e,t,n){return Fi(t,e.child,null,n),e=Tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function np(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ho(e.return,t,n)}function xc(e,t,n,a,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function ap(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var h=jt.current,E=(h&2)!==0;if(E?(h=h&1|2,t.flags|=128):h&=1,q(jt,h),pn(e,t,a,n),a=lt?Jl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&np(e,n,t);else if(e.tag===19)np(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&&dr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),xc(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&&dr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}xc(t,!0,n,null,c,a);break;case"together":xc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function $a(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(dl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=ja(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ja(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ac(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ir(e)))}function hv(e,t,n){switch(t.tag){case 3:ke(t,t.stateNode.containerInfo),fi(t,Gt,e.memoizedState.cache),Ii();break;case 27:case 5:je(t);break;case 4:ke(t,t.stateNode.containerInfo);break;case 10:fi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Jo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(mi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?tp(e,t,n):(mi(t),e=$a(e,t,n),e!==null?e.sibling:null);mi(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(dl(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return ap(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),q(jt,jt.current),a)break;return null;case 22:return t.lanes=0,Xh(e,t,n,t.pendingProps);case 24:fi(t,Gt,e.memoizedState.cache)}return $a(e,t,n)}function ip(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Yt=!0;else{if(!Ac(e,n)&&(t.flags&128)===0)return Yt=!1,hv(e,t,n);Yt=(e.flags&131072)!==0}else Yt=!1,lt&&(t.flags&1048576)!==0&&Ud(t,Jl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=$i(t.elementType),t.type=e,typeof e=="function")Co(e)?(a=Pi(e,a),t.tag=1,t=Wh(null,t,e,a,n)):(t.tag=0,t=Ec(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===re){t.tag=11,t=Kh(null,t,e,a,n);break e}else if(o===le){t.tag=14,t=Ph(null,t,e,a,n);break e}}throw t=Se(e)||e,Error(l(306,t,""))}}return t;case 0:return Ec(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Pi(a,t.pendingProps),Wh(e,t,a,o,n);case 3:e:{if(ke(t,t.stateNode.containerInfo),e===null)throw Error(l(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,Po(e,t),ss(t,a,null,n);var h=t.memoizedState;if(a=h.cache,fi(t,Gt,a),a!==c.cache&&qo(t,[Gt],n,!0),ls(),a=h.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=ep(e,t,a,n);break e}else if(a!==o){o=aa(Error(l(424)),t),Wl(o),t=ep(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(wt=oa(e.firstChild),dn=t,lt=!0,ci=null,sa=!0,n=Xd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ii(),a===o){t=$a(e,t,n);break e}pn(e,t,a,n)}t=t.child}return t;case 26:return Nr(e,t),e===null?(n=mm(t.type,null,t.pendingProps,null))?t.memoizedState=n:lt||(n=t.type,e=t.pendingProps,a=Hr(be.current).createElement(n),a[Mt]=t,a[ln]=e,mn(a,n,e),mt(a),t.stateNode=a):t.memoizedState=mm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&<&&(a=t.stateNode=dm(t.type,t.pendingProps,be.current),dn=t,sa=!0,o=wt,Ti(t.type)?(su=o,wt=oa(a.firstChild)):wt=o),pn(e,t,t.pendingProps.children,n),Nr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&<&&((o=a=wt)&&(a=$v(a,t.type,t.pendingProps,sa),a!==null?(t.stateNode=a,dn=t,wt=oa(a.firstChild),sa=!1,o=!0):o=!1),o||ui(t)),je(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,a=c.children,tu(o,c)?a=null:h!==null&&tu(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=ec(e,t,iv,null,null,n),xs._currentValue=o),Nr(e,t),pn(e,t,a,n),t.child;case 6:return e===null&<&&((e=n=wt)&&(n=Yv(n,t.pendingProps,sa),n!==null?(t.stateNode=n,dn=t,wt=null,e=!0):e=!1),e||ui(t)),null;case 13:return tp(e,t,n);case 4:return ke(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Fi(t,null,a,n):pn(e,t,a,n),t.child;case 11:return Kh(e,t,t.type,t.pendingProps,n);case 7:return pn(e,t,t.pendingProps,n),t.child;case 8:return pn(e,t,t.pendingProps.children,n),t.child;case 12:return pn(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,fi(t,t.type,a.value),pn(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,qi(t),o=hn(o),a=a(o),t.flags|=1,pn(e,t,a,n),t.child;case 14:return Ph(e,t,t.type,t.pendingProps,n);case 15:return Zh(e,t,t.type,t.pendingProps,n);case 19:return ap(e,t,n);case 31:return dv(e,t,n);case 22:return Xh(e,t,n,t.pendingProps);case 24:return qi(t),a=hn(Gt),e===null?(o=Yo(),o===null&&(o=St,c=Go(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},Ko(t),fi(t,Gt,o)):((e.lanes&n)!==0&&(Po(e,t),ss(t,null,null,n),ls()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),fi(t,Gt,a)):(a=c.cache,fi(t,Gt,a),a!==o.cache&&qo(t,[Gt],n,!0))),pn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Ya(e){e.flags|=4}function Rc(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(Mp())e.flags|=8192;else throw Yi=or,Fo}else e.flags&=-16777217}function lp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Em(t))if(Mp())e.flags|=8192;else throw Yi=or,Fo}function wr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ce():536870912,e.lanes|=t,Tl|=t)}function ds(e,t){if(!lt)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 xt(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 pv(e,t,n){var a=t.pendingProps;switch(Uo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(t),null;case 1:return xt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ha(Gt),Ae(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fl(t)?Ya(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Bo())),xt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Ya(t),c!==null?(xt(t),lp(t,c)):(xt(t),Rc(t,o,null,a,n))):c?c!==e.memoizedState?(Ya(t),xt(t),lp(t,c)):(xt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Ya(t),xt(t),Rc(t,o,e,a,n)),null;case 27:if(Le(t),n=be.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ya(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return xt(t),null}e=ue.current,fl(t)?Bd(t):(e=dm(o,a,n),t.stateNode=e,Ya(t))}return xt(t),null;case 5:if(Le(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ya(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return xt(t),null}if(c=ue.current,fl(t))Bd(t);else{var h=Hr(be.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(o,{is:a.is}):h.createElement(o)}}c[Mt]=t,c[ln]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(mn(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&&Ya(t)}}return xt(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Ya(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(l(166));if(e=be.current,fl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=dn,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[Mt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||tm(e.nodeValue,n)),e||ui(t,!0)}else e=Hr(e).createTextNode(a),e[Mt]=t,t.stateNode=e}return xt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=fl(t),n!==null){if(e===null){if(!a)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Mt]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;xt(t),e=!1}else n=Bo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Xn(t),t):(Xn(t),null);if((t.flags&128)!==0)throw Error(l(558))}return xt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[Mt]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;xt(t),o=!1}else o=Bo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Xn(t),t):(Xn(t),null)}return Xn(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),wr(t,t.updateQueue),xt(t),null);case 4:return Ae(),e===null&&Qc(t.stateNode.containerInfo),xt(t),null;case 10:return Ha(t.type),xt(t),null;case 19:if(C(jt),a=t.memoizedState,a===null)return xt(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)ds(a,!1);else{if(Dt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=dr(e),c!==null){for(t.flags|=128,ds(a,!1),e=c.updateQueue,t.updateQueue=e,wr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Dd(n,e),n=n.sibling;return q(jt,jt.current&1|2),lt&&Ba(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&it()>kr&&(t.flags|=128,o=!0,ds(a,!1),t.lanes=4194304)}else{if(!o)if(e=dr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,wr(t,e),ds(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!lt)return xt(t),null}else 2*it()-a.renderingStartTime>kr&&n!==536870912&&(t.flags|=128,o=!0,ds(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=it(),e.sibling=null,n=jt.current,q(jt,o?n&1|2:n&1),lt&&Ba(t,a.treeForkCount),e):(xt(t),null);case 22:case 23:return Xn(t),Vo(),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&&(xt(t),t.subtreeFlags&6&&(t.flags|=8192)):xt(t),n=t.updateQueue,n!==null&&wr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&C(Gi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ha(Gt),xt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function mv(e,t){switch(Uo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ha(Gt),Ae(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Le(t),null;case 31:if(t.memoizedState!==null){if(Xn(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(Xn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return C(jt),null;case 4:return Ae(),null;case 10:return Ha(t.type),null;case 22:case 23:return Xn(t),Vo(),e!==null&&C(Gi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ha(Gt),null;case 25:return null;default:return null}}function sp(e,t){switch(Uo(t),t.tag){case 3:Ha(Gt),Ae();break;case 26:case 27:case 5:Le(t);break;case 4:Ae();break;case 31:t.memoizedState!==null&&Xn(t);break;case 13:Xn(t);break;case 19:C(jt);break;case 10:Ha(t.type);break;case 22:case 23:Xn(t),Vo(),e!==null&&C(Gi);break;case 24:Ha(Gt)}}function hs(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,h=n.inst;a=c(),h.destroy=a}n=n.next}while(n!==o)}}catch(E){bt(t,t.return,E)}}function bi(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var h=a.inst,E=h.destroy;if(E!==void 0){h.destroy=void 0,o=t;var R=n,Y=E;try{Y()}catch(te){bt(o,R,te)}}}a=a.next}while(a!==c)}}catch(te){bt(t,t.return,te)}}function rp(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Vd(t,n)}catch(a){bt(e,e.return,a)}}}function op(e,t,n){n.props=Pi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){bt(e,t,a)}}function ps(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){bt(e,t,o)}}function wa(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){bt(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){bt(e,t,o)}else n.current=null}function cp(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){bt(e,e.return,o)}}function Oc(e,t,n){try{var a=e.stateNode;jv(a,e.type,n,t),a[ln]=t}catch(o){bt(e,e.return,o)}}function up(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ti(e.type)||e.tag===4}function kc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||up(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ti(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mc(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=oe));else if(a!==4&&(a===27&&Ti(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}function xr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Ti(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(xr(e,t,n),e=e.sibling;e!==null;)xr(e,t,n),e=e.sibling}function fp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);mn(t,a,n),t[Mt]=e,t[ln]=n}catch(c){bt(e,e.return,c)}}var Fa=!1,Ft=!1,Cc=!1,dp=typeof WeakSet=="function"?WeakSet:Set,rn=null;function gv(e,t){if(e=e.containerInfo,Wc=Pr,e=Td(e),wo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,E=-1,R=-1,Y=0,te=0,se=e,K=null;t:for(;;){for(var Q;se!==n||o!==0&&se.nodeType!==3||(E=h+o),se!==c||a!==0&&se.nodeType!==3||(R=h+a),se.nodeType===3&&(h+=se.nodeValue.length),(Q=se.firstChild)!==null;)K=se,se=Q;for(;;){if(se===e)break t;if(K===n&&++Y===o&&(E=h),K===c&&++te===a&&(R=h),(Q=se.nextSibling)!==null)break;se=K,K=se.parentNode}se=Q}n=E===-1||R===-1?null:{start:E,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(eu={focusedElem:e,selectionRange:n},Pr=!1,rn=t;rn!==null;)if(t=rn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rn=e;else for(;rn!==null;){switch(t=rn,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var Te=Pi(n.type,o);e=a.getSnapshotBeforeUpdate(Te,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(ze){bt(n,n.return,ze)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)au(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":au(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,rn=e;break}rn=t.return}}function hp(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Pa(e,n),a&4&&hs(5,n);break;case 1:if(Pa(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){bt(n,n.return,h)}else{var o=Pi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){bt(n,n.return,h)}}a&64&&rp(n),a&512&&ps(n,n.return);break;case 3:if(Pa(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{Vd(e,t)}catch(h){bt(n,n.return,h)}}break;case 27:t===null&&a&4&&fp(n);case 26:case 5:Pa(e,n),t===null&&a&4&&cp(n),a&512&&ps(n,n.return);break;case 12:Pa(e,n);break;case 31:Pa(e,n),a&4&&gp(e,n);break;case 13:Pa(e,n),a&4&&bp(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=wv.bind(null,n),Fv(e,n))));break;case 22:if(a=n.memoizedState!==null||Fa,!a){t=t!==null&&t.memoizedState!==null||Ft,o=Fa;var c=Ft;Fa=a,(Ft=t)&&!c?Za(e,n,(n.subtreeFlags&8772)!==0):Pa(e,n),Fa=o,Ft=c}break;case 30:break;default:Pa(e,n)}}function pp(e){var t=e.alternate;t!==null&&(e.alternate=null,pp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ni(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 Ka(e,t,n){for(n=n.child;n!==null;)mp(e,t,n),n=n.sibling}function mp(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(_n,n)}catch{}switch(n.tag){case 26:Ft||wa(n,t),Ka(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ft||wa(n,t);var a=Rt,o=Bn;Ti(n.type)&&(Rt=n.stateNode,Bn=!1),Ka(e,t,n),Ns(n.stateNode),Rt=a,Bn=o;break;case 5:Ft||wa(n,t);case 6:if(a=Rt,o=Bn,Rt=null,Ka(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){bt(n,t,c)}else try{Rt.removeChild(n.stateNode)}catch(c){bt(n,t,c)}break;case 18:Rt!==null&&(Bn?(e=Rt,rm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Cl(e)):rm(Rt,n.stateNode));break;case 4:a=Rt,o=Bn,Rt=n.stateNode.containerInfo,Bn=!0,Ka(e,t,n),Rt=a,Bn=o;break;case 0:case 11:case 14:case 15:bi(2,n,t),Ft||bi(4,n,t),Ka(e,t,n);break;case 1:Ft||(wa(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&op(n,t,a)),Ka(e,t,n);break;case 21:Ka(e,t,n);break;case 22:Ft=(a=Ft)||n.memoizedState!==null,Ka(e,t,n),Ft=a;break;default:Ka(e,t,n)}}function gp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Cl(e)}catch(n){bt(t,t.return,n)}}}function bp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Cl(e)}catch(n){bt(t,t.return,n)}}function bv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dp),t;default:throw Error(l(435,e.tag))}}function Ar(e,t){var n=bv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=xv.bind(null,e,a);a.then(o,o)}})}function In(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,h=t,E=h;e:for(;E!==null;){switch(E.tag){case 27:if(Ti(E.type)){Rt=E.stateNode,Bn=!1;break e}break;case 5:Rt=E.stateNode,Bn=!1;break e;case 3:case 4:Rt=E.stateNode.containerInfo,Bn=!0;break e}E=E.return}if(Rt===null)throw Error(l(160));mp(c,h,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;)yp(t,e),t=t.sibling}var ha=null;function yp(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:In(t,e),Hn(e),a&4&&(bi(3,e,e.return),hs(3,e),bi(5,e,e.return));break;case 1:In(t,e),Hn(e),a&512&&(Ft||n===null||wa(n,n.return)),a&64&&Fa&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=ha;if(In(t,e),Hn(e),a&512&&(Ft||n===null||wa(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"))),mn(c,a,n),c[Mt]=e,mt(c),a=c;break e;case"link":var h=ym("link","href",o).get(a+(n.href||""));if(h){for(var E=0;E<h.length;E++)if(c=h[E],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(E,1);break t}}c=o.createElement(a),mn(c,a,n),o.head.appendChild(c);break;case"meta":if(h=ym("meta","content",o).get(a+(n.content||""))){for(E=0;E<h.length;E++)if(c=h[E],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(E,1);break t}}c=o.createElement(a),mn(c,a,n),o.head.appendChild(c);break;default:throw Error(l(468,a))}c[Mt]=e,mt(c),a=c}e.stateNode=a}else vm(o,e.type,e.stateNode);else e.stateNode=bm(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?vm(o,e.type,e.stateNode):bm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Oc(e,e.memoizedProps,n.memoizedProps)}break;case 27:In(t,e),Hn(e),a&512&&(Ft||n===null||wa(n,n.return)),n!==null&&a&4&&Oc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(In(t,e),Hn(e),a&512&&(Ft||n===null||wa(n,n.return)),e.flags&32){o=e.stateNode;try{V(o,"")}catch(Te){bt(e,e.return,Te)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Oc(e,o,n!==null?n.memoizedProps:o)),a&1024&&(Cc=!0);break;case 6:if(In(t,e),Hn(e),a&4){if(e.stateNode===null)throw Error(l(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(Te){bt(e,e.return,Te)}}break;case 3:if($r=null,o=ha,ha=qr(t.containerInfo),In(t,e),ha=o,Hn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Cl(t.containerInfo)}catch(Te){bt(e,e.return,Te)}Cc&&(Cc=!1,vp(e));break;case 4:a=ha,ha=qr(e.stateNode.containerInfo),In(t,e),Hn(e),ha=a;break;case 12:In(t,e),Hn(e);break;case 31:In(t,e),Hn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ar(e,a)));break;case 13:In(t,e),Hn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Or=it()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ar(e,a)));break;case 22:o=e.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,Y=Fa,te=Ft;if(Fa=Y||o,Ft=te||R,In(t,e),Ft=te,Fa=Y,Hn(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||R||Fa||Ft||Zi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){R=n=t;try{if(c=R.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=R.stateNode;var se=R.memoizedProps.style,K=se!=null&&se.hasOwnProperty("display")?se.display:null;E.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(Te){bt(R,R.return,Te)}}}else if(t.tag===6){if(n===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(Te){bt(R,R.return,Te)}}}else if(t.tag===18){if(n===null){R=t;try{var Q=R.stateNode;o?om(Q,!0):om(R.stateNode,!1)}catch(Te){bt(R,R.return,Te)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Ar(e,n))));break;case 19:In(t,e),Hn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ar(e,a)));break;case 30:break;case 21:break;default:In(t,e),Hn(e)}}function Hn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(up(a)){n=a;break}a=a.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,c=kc(e);xr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(V(h,""),n.flags&=-33);var E=kc(e);xr(e,E,h);break;case 3:case 4:var R=n.stateNode.containerInfo,Y=kc(e);Mc(e,Y,R);break;default:throw Error(l(161))}}catch(te){bt(e,e.return,te)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hp(e,t.alternate,t),t=t.sibling}function Zi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bi(4,t,t.return),Zi(t);break;case 1:wa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&op(t,t.return,n),Zi(t);break;case 27:Ns(t.stateNode);case 26:case 5:wa(t,t.return),Zi(t);break;case 22:t.memoizedState===null&&Zi(t);break;case 30:Zi(t);break;default:Zi(t)}e=e.sibling}}function Za(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Za(o,c,n),hs(4,c);break;case 1:if(Za(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(Y){bt(a,a.return,Y)}if(a=c,o=a.updateQueue,o!==null){var E=a.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)Qd(R[o],E)}catch(Y){bt(a,a.return,Y)}}n&&h&64&&rp(c),ps(c,c.return);break;case 27:fp(c);case 26:case 5:Za(o,c,n),n&&a===null&&h&4&&cp(c),ps(c,c.return);break;case 12:Za(o,c,n);break;case 31:Za(o,c,n),n&&h&4&&gp(o,c);break;case 13:Za(o,c,n),n&&h&4&&bp(o,c);break;case 22:c.memoizedState===null&&Za(o,c,n),ps(c,c.return);break;case 30:break;default:Za(o,c,n)}t=t.sibling}}function Dc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&es(n))}function Lc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e))}function pa(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ep(e,t,n,a),t=t.sibling}function Ep(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:pa(e,t,n,a),o&2048&&hs(9,t);break;case 1:pa(e,t,n,a);break;case 3:pa(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e)));break;case 12:if(o&2048){pa(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,E=c.onPostCommit;typeof E=="function"&&E(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){bt(t,t.return,R)}}else pa(e,t,n,a);break;case 31:pa(e,t,n,a);break;case 13:pa(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?pa(e,t,n,a):ms(e,t):c._visibility&2?pa(e,t,n,a):(c._visibility|=2,_l(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Dc(h,t);break;case 24:pa(e,t,n,a),o&2048&&Lc(t.alternate,t);break;default:pa(e,t,n,a)}}function _l(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,E=n,R=a,Y=h.flags;switch(h.tag){case 0:case 11:case 15:_l(c,h,E,R,o),hs(8,h);break;case 23:break;case 22:var te=h.stateNode;h.memoizedState!==null?te._visibility&2?_l(c,h,E,R,o):ms(c,h):(te._visibility|=2,_l(c,h,E,R,o)),o&&Y&2048&&Dc(h.alternate,h);break;case 24:_l(c,h,E,R,o),o&&Y&2048&&Lc(h.alternate,h);break;default:_l(c,h,E,R,o)}t=t.sibling}}function ms(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ms(n,a),o&2048&&Dc(a.alternate,a);break;case 24:ms(n,a),o&2048&&Lc(a.alternate,a);break;default:ms(n,a)}t=t.sibling}}var gs=8192;function Sl(e,t,n){if(e.subtreeFlags&gs)for(e=e.child;e!==null;)_p(e,t,n),e=e.sibling}function _p(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&gs&&e.memoizedState!==null&&aE(n,ha,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var a=ha;ha=qr(e.stateNode.containerInfo),Sl(e,t,n),ha=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gs,gs=16777216,Sl(e,t,n),gs=a):Sl(e,t,n));break;default:Sl(e,t,n)}}function Sp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];rn=a,Tp(a,e)}Sp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Np(e),e=e.sibling}function Np(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&bi(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rr(e)):bs(e);break;default:bs(e)}}function Rr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];rn=a,Tp(a,e)}Sp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bi(8,t,t.return),Rr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rr(t));break;default:Rr(t)}e=e.sibling}}function Tp(e,t){for(;rn!==null;){var n=rn;switch(n.tag){case 0:case 11:case 15:bi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:es(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,rn=a;else e:for(n=e;rn!==null;){a=rn;var o=a.sibling,c=a.return;if(pp(a),a===n){rn=null;break e}if(o!==null){o.return=c,rn=o;break e}rn=c}}}var yv={getCacheForType:function(e){var t=hn(Gt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return hn(Gt).controller.signal}},vv=typeof WeakMap=="function"?WeakMap:Map,ht=0,St=null,Je=null,nt=0,gt=0,Qn=null,yi=!1,Nl=!1,zc=!1,Xa=0,Dt=0,vi=0,Xi=0,Uc=0,Vn=0,Tl=0,ys=null,qn=null,jc=!1,Or=0,wp=0,kr=1/0,Mr=null,Ei=null,Vt=0,_i=null,wl=null,Qa=0,Bc=0,Ic=null,xp=null,vs=0,Hc=null;function Jn(){return(ht&2)!==0&&nt!==0?nt&-nt:I.T!==null?Kc():Fn()}function Ap(){if(Vn===0)if((nt&536870912)===0||lt){var e=nn;nn<<=1,(nn&3932160)===0&&(nn=262144),Vn=e}else Vn=536870912;return e=Zn.current,e!==null&&(e.flags|=32),Vn}function Gn(e,t,n){(e===St&&(gt===2||gt===9)||e.cancelPendingCommit!==null)&&(xl(e,0),Si(e,nt,Vn,!1)),Qe(e,n),((ht&2)===0||e!==St)&&(e===St&&((ht&2)===0&&(Xi|=n),Dt===4&&Si(e,nt,Vn,!1)),xa(e))}function Rp(e,t,n){if((ht&6)!==0)throw Error(l(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ne(e,t),o=a?Sv(e,t):Gc(e,t,!0),c=a;do{if(o===0){Nl&&!a&&Si(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Ev(n)){o=Gc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var E=e;o=ys;var R=E.current.memoizedState.isDehydrated;if(R&&(xl(E,h).flags|=256),h=Gc(E,h,!1),h!==2){if(zc&&!R){E.errorRecoveryDisabledLanes|=c,Xi|=c,o=4;break e}c=qn,qn=o,c!==null&&(qn===null?qn=c:qn.push.apply(qn,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){xl(e,0),Si(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:Si(a,t,Vn,!yi);break e;case 2:qn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Or+300-it(),10<o)){if(Si(a,t,Vn,!yi),O(a,0,!0)!==0)break e;Qa=t,a.timeoutHandle=lm(Op.bind(null,a,n,qn,Mr,jc,t,Vn,Xi,Tl,yi,c,"Throttled",-0,0),o);break e}Op(a,n,qn,Mr,jc,t,Vn,Xi,Tl,yi,c,null,-0,0)}}break}while(!0);xa(e)}function Op(e,t,n,a,o,c,h,E,R,Y,te,se,K,Q){if(e.timeoutHandle=-1,se=t.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oe},_p(t,c,se);var Te=(c&62914560)===c?Or-it():(c&4194048)===c?wp-it():0;if(Te=iE(se,Te),Te!==null){Qa=c,e.cancelPendingCommit=Te(jp.bind(null,e,t,c,n,a,o,h,E,R,te,se,null,K,Q)),Si(e,c,h,!Y);return}}jp(e,t,c,n,a,o,h,E,R)}function Ev(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(!Kn(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 Si(e,t,n,a){t&=~Uc,t&=~Xi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-kt(o),h=1<<c;a[c]=-1,o&=~h}n!==0&&P(e,n,t)}function Cr(){return(ht&6)===0?(Es(0),!1):!0}function qc(){if(Je!==null){if(gt===0)var e=Je.return;else e=Je,Ia=Hi=null,ac(e),gl=null,ns=0,e=Je;for(;e!==null;)sp(e.alternate,e),e=e.return;Je=null}}function xl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Hv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Qa=0,qc(),St=e,Je=n=ja(e.current,null),nt=t,gt=0,Qn=null,yi=!1,Nl=ne(e,t),zc=!1,Tl=Vn=Uc=Xi=vi=Dt=0,qn=ys=null,jc=!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 Xa=t,Ws(),n}function kp(e,t){Ge=null,I.H=us,t===ml||t===rr?(t=Kd(),gt=3):t===Fo?(t=Kd(),gt=4):gt=t===vc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qn=t,Je===null&&(Dt=1,_r(e,aa(t,e.current)))}function Mp(){var e=Zn.current;return e===null?!0:(nt&4194048)===nt?ra===null:(nt&62914560)===nt||(nt&536870912)!==0?e===ra:!1}function Cp(){var e=I.H;return I.H=us,e===null?us:e}function Dp(){var e=I.A;return I.A=yv,e}function Dr(){Dt=4,yi||(nt&4194048)!==nt&&Zn.current!==null||(Nl=!0),(vi&134217727)===0&&(Xi&134217727)===0||St===null||Si(St,nt,Vn,!1)}function Gc(e,t,n){var a=ht;ht|=2;var o=Cp(),c=Dp();(St!==e||nt!==t)&&(Mr=null,xl(e,t)),t=!1;var h=Dt;e:do try{if(gt!==0&&Je!==null){var E=Je,R=Qn;switch(gt){case 8:qc(),h=6;break e;case 3:case 2:case 9:case 6:Zn.current===null&&(t=!0);var Y=gt;if(gt=0,Qn=null,Al(e,E,R,Y),n&&Nl){h=0;break e}break;default:Y=gt,gt=0,Qn=null,Al(e,E,R,Y)}}_v(),h=Dt;break}catch(te){kp(e,te)}while(!0);return t&&e.shellSuspendCounter++,Ia=Hi=null,ht=a,I.H=o,I.A=c,Je===null&&(St=null,nt=0,Ws()),h}function _v(){for(;Je!==null;)Lp(Je)}function Sv(e,t){var n=ht;ht|=2;var a=Cp(),o=Dp();St!==e||nt!==t?(Mr=null,kr=it()+500,xl(e,t)):Nl=ne(e,t);e:do try{if(gt!==0&&Je!==null){t=Je;var c=Qn;t:switch(gt){case 1:gt=0,Qn=null,Al(e,t,c,1);break;case 2:case 9:if(Yd(c)){gt=0,Qn=null,zp(t);break}t=function(){gt!==2&>!==9||St!==e||(gt=7),xa(e)},c.then(t,t);break e;case 3:gt=7;break e;case 4:gt=5;break e;case 7:Yd(c)?(gt=0,Qn=null,zp(t)):(gt=0,Qn=null,Al(e,t,c,7));break;case 5:var h=null;switch(Je.tag){case 26:h=Je.memoizedState;case 5:case 27:var E=Je;if(h?Em(h):E.stateNode.complete){gt=0,Qn=null;var R=E.sibling;if(R!==null)Je=R;else{var Y=E.return;Y!==null?(Je=Y,Lr(Y)):Je=null}break t}}gt=0,Qn=null,Al(e,t,c,5);break;case 6:gt=0,Qn=null,Al(e,t,c,6);break;case 8:qc(),Dt=6;break e;default:throw Error(l(462))}}Nv();break}catch(te){kp(e,te)}while(!0);return Ia=Hi=null,I.H=a,I.A=o,ht=n,Je!==null?0:(St=null,nt=0,Ws(),Dt)}function Nv(){for(;Je!==null&&!ya();)Lp(Je)}function Lp(e){var t=ip(e.alternate,e,Xa);e.memoizedProps=e.pendingProps,t===null?Lr(e):Je=t}function zp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Jh(n,t,t.pendingProps,t.type,void 0,nt);break;case 11:t=Jh(n,t,t.pendingProps,t.type.render,t.ref,nt);break;case 5:ac(t);default:sp(n,t),t=Je=Dd(t,Xa),t=ip(n,t,Xa)}e.memoizedProps=e.pendingProps,t===null?Lr(e):Je=t}function Al(e,t,n,a){Ia=Hi=null,ac(t),gl=null,ns=0;var o=t.return;try{if(fv(e,o,t,n,nt)){Dt=1,_r(e,aa(n,e.current)),Je=null;return}}catch(c){if(o!==null)throw Je=o,c;Dt=1,_r(e,aa(n,e.current)),Je=null;return}t.flags&32768?(lt||a===1?e=!0:Nl||(nt&536870912)!==0?e=!1:(yi=e=!0,(a===2||a===9||a===3||a===6)&&(a=Zn.current,a!==null&&a.tag===13&&(a.flags|=16384))),Up(t,e)):Lr(t)}function Lr(e){var t=e;do{if((t.flags&32768)!==0){Up(t,yi);return}e=t.return;var n=pv(t.alternate,t,Xa);if(n!==null){Je=n;return}if(t=t.sibling,t!==null){Je=t;return}Je=t=e}while(t!==null);Dt===0&&(Dt=5)}function Up(e,t){do{var n=mv(e.alternate,e);if(n!==null){n.flags&=32767,Je=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Je=e;return}Je=e=n}while(e!==null);Dt=6,Je=null}function jp(e,t,n,a,o,c,h,E,R){e.cancelPendingCommit=null;do zr();while(Vt!==0);if((ht&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=ko,z(e,n,c,h,E,R),e===St&&(Je=St=null,nt=0),wl=t,_i=e,Qa=n,Bc=c,Ic=o,xp=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Av(En,function(){return Gp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=I.T,I.T=null,o=ie.p,ie.p=2,h=ht,ht|=4;try{gv(e,t,n)}finally{ht=h,ie.p=o,I.T=a}}Vt=1,Bp(),Ip(),Hp()}}function Bp(){if(Vt===1){Vt=0;var e=_i,t=wl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=I.T,I.T=null;var a=ie.p;ie.p=2;var o=ht;ht|=4;try{yp(t,e);var c=eu,h=Td(e.containerInfo),E=c.focusedElem,R=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&Nd(E.ownerDocument.documentElement,E)){if(R!==null&&wo(E)){var Y=R.start,te=R.end;if(te===void 0&&(te=Y),"selectionStart"in E)E.selectionStart=Y,E.selectionEnd=Math.min(te,E.value.length);else{var se=E.ownerDocument||document,K=se&&se.defaultView||window;if(K.getSelection){var Q=K.getSelection(),Te=E.textContent.length,ze=Math.min(R.start,Te),Et=R.end===void 0?ze:Math.min(R.end,Te);!Q.extend&&ze>Et&&(h=Et,Et=ze,ze=h);var B=Sd(E,ze),M=Sd(E,Et);if(B&&M&&(Q.rangeCount!==1||Q.anchorNode!==B.node||Q.anchorOffset!==B.offset||Q.focusNode!==M.node||Q.focusOffset!==M.offset)){var $=se.createRange();$.setStart(B.node,B.offset),Q.removeAllRanges(),ze>Et?(Q.addRange($),Q.extend(M.node,M.offset)):($.setEnd(M.node,M.offset),Q.addRange($))}}}}for(se=[],Q=E;Q=Q.parentNode;)Q.nodeType===1&&se.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<se.length;E++){var ae=se[E];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}Pr=!!Wc,eu=Wc=null}finally{ht=o,ie.p=a,I.T=n}}e.current=t,Vt=2}}function Ip(){if(Vt===2){Vt=0;var e=_i,t=wl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=I.T,I.T=null;var a=ie.p;ie.p=2;var o=ht;ht|=4;try{hp(e,t.alternate,t)}finally{ht=o,ie.p=a,I.T=n}}Vt=3}}function Hp(){if(Vt===4||Vt===3){Vt=0,Cn();var e=_i,t=wl,n=Qa,a=xp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Vt=5:(Vt=0,wl=_i=null,qp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Ei=null),un(n),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(_n,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=I.T,o=ie.p,ie.p=2,I.T=null;try{for(var c=e.onRecoverableError,h=0;h<a.length;h++){var E=a[h];c(E.value,{componentStack:E.stack})}}finally{I.T=t,ie.p=o}}(Qa&3)!==0&&zr(),xa(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Hc?vs++:(vs=0,Hc=e):vs=0,Es(0)}}function qp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,es(t)))}function zr(){return Bp(),Ip(),Hp(),Gp()}function Gp(){if(Vt!==5)return!1;var e=_i,t=Bc;Bc=0;var n=un(Qa),a=I.T,o=ie.p;try{ie.p=32>n?32:n,I.T=null,n=Ic,Ic=null;var c=_i,h=Qa;if(Vt=0,wl=_i=null,Qa=0,(ht&6)!==0)throw Error(l(331));var E=ht;if(ht|=4,Np(c.current),Ep(c,c.current,h,n),ht=E,Es(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(_n,c)}catch{}return!0}finally{ie.p=o,I.T=a,qp(e,t)}}function $p(e,t,n){t=aa(n,t),t=yc(e.stateNode,t,2),e=pi(e,t,2),e!==null&&(Qe(e,2),xa(e))}function bt(e,t,n){if(e.tag===3)$p(e,e,n);else for(;t!==null;){if(t.tag===3){$p(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ei===null||!Ei.has(a))){e=aa(n,e),n=Yh(2),a=pi(t,n,2),a!==null&&(Fh(n,a,t,e),Qe(a,2),xa(a));break}}t=t.return}}function $c(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new vv;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)||(zc=!0,o.add(n),e=Tv.bind(null,e,t,n),t.then(e,e))}function Tv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,St===e&&(nt&n)===n&&(Dt===4||Dt===3&&(nt&62914560)===nt&&300>it()-Or?(ht&2)===0&&xl(e,0):Uc|=n,Tl===nt&&(Tl=0)),xa(e)}function Yp(e,t){t===0&&(t=Ce()),e=ji(e,t),e!==null&&(Qe(e,t),xa(e))}function wv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yp(e,n)}function xv(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),Yp(e,n)}function Av(e,t){return Jt(e,t)}var Ur=null,Rl=null,Yc=!1,jr=!1,Fc=!1,Ni=0;function xa(e){e!==Rl&&e.next===null&&(Rl===null?Ur=Rl=e:Rl=Rl.next=e),jr=!0,Yc||(Yc=!0,Ov())}function Es(e,t){if(!Fc&&jr){Fc=!0;do for(var n=!1,a=Ur;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var h=a.suspendedLanes,E=a.pingedLanes;c=(1<<31-kt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Zp(a,c))}else c=nt,c=O(a,a===St?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||ne(a,c)||(n=!0,Zp(a,c));a=a.next}while(n);Fc=!1}}function Rv(){Fp()}function Fp(){jr=Yc=!1;var e=0;Ni!==0&&Iv()&&(e=Ni);for(var t=it(),n=null,a=Ur;a!==null;){var o=a.next,c=Kp(a,t);c===0?(a.next=null,n===null?Ur=o:n.next=o,o===null&&(Rl=n)):(n=a,(e!==0||(c&3)!==0)&&(jr=!0)),a=o}Vt!==0&&Vt!==5||Es(e),Ni!==0&&(Ni=0)}function Kp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-kt(c),E=1<<h,R=o[h];R===-1?((E&n)===0||(E&a)!==0)&&(o[h]=ge(E,t)):R<=t&&(e.expiredLanes|=E),c&=~E}if(t=St,n=nt,n=O(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(gt===2||gt===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Wt(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ne(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Wt(a),un(n)){case 2:case 8:n=vn;break;case 32:n=En;break;case 268435456:n=An;break;default:n=En}return a=Pp.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 Pp(e,t){if(Vt!==0&&Vt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zr()&&e.callbackNode!==n)return null;var a=nt;return a=O(e,e===St?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Rp(e,a,t),Kp(e,it()),e.callbackNode!=null&&e.callbackNode===n?Pp.bind(null,e):null)}function Zp(e,t){if(zr())return null;Rp(e,t,!0)}function Ov(){qv(function(){(ht&6)!==0?Jt(rt,Rv):Fp()})}function Kc(){if(Ni===0){var e=hl;e===0&&(e=Ue,Ue<<=1,(Ue&261888)===0&&(Ue=256)),Ni=e}return Ni}function Xp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ve(""+e)}function Qp(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 kv(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Xp((o[ln]||null).action),h=a.submitter;h&&(t=(t=h[ln]||null)?Xp(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var E=new Xs("action","action",null,a,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ni!==0){var R=h?Qp(o,h):new FormData(o);dc(n,{pending:!0,data:R,method:o.method,action:c},null,R)}}else typeof c=="function"&&(E.preventDefault(),R=h?Qp(o,h):new FormData(o),dc(n,{pending:!0,data:R,method:o.method,action:c},c,R))},currentTarget:o}]})}}for(var Pc=0;Pc<Oo.length;Pc++){var Zc=Oo[Pc],Mv=Zc.toLowerCase(),Cv=Zc[0].toUpperCase()+Zc.slice(1);da(Mv,"on"+Cv)}da(Ad,"onAnimationEnd"),da(Rd,"onAnimationIteration"),da(Od,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(Zy,"onTransitionRun"),da(Xy,"onTransitionStart"),da(Qy,"onTransitionCancel"),da(kd,"onTransitionEnd"),fe("onMouseEnter",["mouseout","mouseover"]),fe("onMouseLeave",["mouseout","mouseover"]),fe("onPointerEnter",["pointerout","pointerover"]),fe("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _s="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_s));function Vp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var h=a.length-1;0<=h;h--){var E=a[h],R=E.instance,Y=E.currentTarget;if(E=E.listener,R!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(te){Js(te)}o.currentTarget=null,c=R}else for(h=0;h<a.length;h++){if(E=a[h],R=E.instance,Y=E.currentTarget,E=E.listener,R!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(te){Js(te)}o.currentTarget=null,c=R}}}}function We(e,t){var n=t[ea];n===void 0&&(n=t[ea]=new Set);var a=e+"__bubble";n.has(a)||(Jp(t,e,2,!1),n.add(a))}function Xc(e,t,n){var a=0;t&&(a|=4),Jp(n,e,a,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Qc(e){if(!e[Br]){e[Br]=!0,Ca.forEach(function(n){n!=="selectionchange"&&(Dv.has(n)||Xc(n,!1,e),Xc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Br]||(t[Br]=!0,Xc("selectionchange",!1,t))}}function Jp(e,t,n,a){switch(Am(t)){case 2:var o=rE;break;case 8:o=oE;break;default:o=fu}n=o.bind(null,t,n,e),o=void 0,!go||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 Vc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var E=a.stateNode.containerInfo;if(E===o)break;if(h===4)for(h=a.return;h!==null;){var R=h.tag;if((R===3||R===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=fn(E),h===null)return;if(R=h.tag,R===5||R===6||R===26||R===27){a=c=h;continue e}E=E.parentNode}}a=a.return}Fs(function(){var Y=c,te=Oe(n),se=[];e:{var K=Md.get(e);if(K!==void 0){var Q=Xs,Te=e;switch(e){case"keypress":if(Ps(n)===0)break e;case"keydown":case"keyup":Q=xy;break;case"focusin":Te="focus",Q=Eo;break;case"focusout":Te="blur",Q=Eo;break;case"beforeblur":case"afterblur":Q=Eo;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":Q=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=py;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=Oy;break;case Ad:case Rd:case Od:Q=by;break;case kd:Q=My;break;case"scroll":case"scrollend":Q=dy;break;case"wheel":Q=Dy;break;case"copy":case"cut":case"paste":Q=vy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=od;break;case"toggle":case"beforetoggle":Q=zy}var ze=(t&4)!==0,Et=!ze&&(e==="scroll"||e==="scrollend"),B=ze?K!==null?K+"Capture":null:K;ze=[];for(var M=Y,$;M!==null;){var ae=M;if($=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||$===null||B===null||(ae=$l(M,B),ae!=null&&ze.push(Ss(M,ae,$))),Et)break;M=M.return}0<ze.length&&(K=new Q(K,Te,null,n,te),se.push({event:K,listeners:ze}))}}if((t&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",Q=e==="mouseout"||e==="pointerout",K&&n!==ve&&(Te=n.relatedTarget||n.fromElement)&&(fn(Te)||Te[ot]))break e;if((Q||K)&&(K=te.window===te?te:(K=te.ownerDocument)?K.defaultView||K.parentWindow:window,Q?(Te=n.relatedTarget||n.toElement,Q=Y,Te=Te?fn(Te):null,Te!==null&&(Et=d(Te),ze=Te.tag,Te!==Et||ze!==5&&ze!==27&&ze!==6)&&(Te=null)):(Q=null,Te=Y),Q!==Te)){if(ze=sd,ae="onMouseLeave",B="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(ze=od,ae="onPointerLeave",B="onPointerEnter",M="pointer"),Et=Q==null?K:Ea(Q),$=Te==null?K:Ea(Te),K=new ze(ae,M+"leave",Q,n,te),K.target=Et,K.relatedTarget=$,ae=null,fn(te)===Y&&(ze=new ze(B,M+"enter",Te,n,te),ze.target=$,ze.relatedTarget=Et,ae=ze),Et=ae,Q&&Te)t:{for(ze=Lv,B=Q,M=Te,$=0,ae=B;ae;ae=ze(ae))$++;ae=0;for(var De=M;De;De=ze(De))ae++;for(;0<$-ae;)B=ze(B),$--;for(;0<ae-$;)M=ze(M),ae--;for(;$--;){if(B===M||M!==null&&B===M.alternate){ze=B;break t}B=ze(B),M=ze(M)}ze=null}else ze=null;Q!==null&&Wp(se,K,Q,ze,!1),Te!==null&&Et!==null&&Wp(se,Et,Te,ze,!0)}}e:{if(K=Y?Ea(Y):window,Q=K.nodeName&&K.nodeName.toLowerCase(),Q==="select"||Q==="input"&&K.type==="file")var ft=gd;else if(pd(K))if(bd)ft=Fy;else{ft=$y;var xe=Gy}else Q=K.nodeName,!Q||Q.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?Y&&_e(Y.elementType)&&(ft=gd):ft=Yy;if(ft&&(ft=ft(e,Y))){md(se,ft,n,te);break e}xe&&xe(e,K,Y),e==="focusout"&&Y&&K.type==="number"&&Y.memoizedProps.value!=null&&si(K,"number",K.value)}switch(xe=Y?Ea(Y):window,e){case"focusin":(pd(xe)||xe.contentEditable==="true")&&(ll=xe,xo=Y,Vl=null);break;case"focusout":Vl=xo=ll=null;break;case"mousedown":Ao=!0;break;case"contextmenu":case"mouseup":case"dragend":Ao=!1,wd(se,n,te);break;case"selectionchange":if(Py)break;case"keydown":case"keyup":wd(se,n,te)}var Ye;if(So)e:{switch(e){case"compositionstart":var at="onCompositionStart";break e;case"compositionend":at="onCompositionEnd";break e;case"compositionupdate":at="onCompositionUpdate";break e}at=void 0}else il?dd(e,n)&&(at="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(at="onCompositionStart");at&&(cd&&n.locale!=="ko"&&(il||at!=="onCompositionStart"?at==="onCompositionEnd"&&il&&(Ye=id()):(ri=te,bo="value"in ri?ri.value:ri.textContent,il=!0)),xe=Ir(Y,at),0<xe.length&&(at=new rd(at,e,null,n,te),se.push({event:at,listeners:xe}),Ye?at.data=Ye:(Ye=hd(n),Ye!==null&&(at.data=Ye)))),(Ye=jy?By(e,n):Iy(e,n))&&(at=Ir(Y,"onBeforeInput"),0<at.length&&(xe=new rd("onBeforeInput","beforeinput",null,n,te),se.push({event:xe,listeners:at}),xe.data=Ye)),kv(se,e,Y,n,te)}Vp(se,t)})}function Ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=$l(e,n),o!=null&&a.unshift(Ss(e,o,c)),o=$l(e,t),o!=null&&a.push(Ss(e,o,c))),e.tag===3)return a;e=e.return}return[]}function Lv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wp(e,t,n,a,o){for(var c=t._reactName,h=[];n!==null&&n!==a;){var E=n,R=E.alternate,Y=E.stateNode;if(E=E.tag,R!==null&&R===a)break;E!==5&&E!==26&&E!==27||Y===null||(R=Y,o?(Y=$l(n,c),Y!=null&&h.unshift(Ss(n,Y,R))):o||(Y=$l(n,c),Y!=null&&h.push(Ss(n,Y,R)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var zv=/\r\n?/g,Uv=/\u0000|\uFFFD/g;function em(e){return(typeof e=="string"?e:""+e).replace(zv,`
|
|
49
|
+
`).replace(Uv,"")}function tm(e,t){return t=em(t),em(e)===t}function vt(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||V(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&V(e,""+a);break;case"className":sn(e,"class",a);break;case"tabIndex":sn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":sn(e,n,a);break;case"style":ee(e,a,c);break;case"data":if(t!=="object"){sn(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=Ve(""+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=Ve(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=oe);break;case"onScroll":a!=null&&We("scroll",e);break;case"onScrollEnd":a!=null&&We("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=Ve(""+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":We("beforetoggle",e),We("toggle",e),Ht(e,"popover",a);break;case"xlinkActuate":Ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ut(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ut(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ut(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ut(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ht(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=we.get(n)||n,Ht(e,n,a))}}function Jc(e,t,n,a,o,c){switch(n){case"style":ee(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"?V(e,a):(typeof a=="number"||typeof a=="bigint")&&V(e,""+a);break;case"onScroll":a!=null&&We("scroll",e);break;case"onScrollEnd":a!=null&&We("scrollend",e);break;case"onClick":a!=null&&(e.onclick=oe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!On.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[ln]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Ht(e,n,a)}}}function mn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":We("error",e),We("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:vt(e,t,c,h,n,null)}}o&&vt(e,t,"srcSet",n.srcSet,n,null),a&&vt(e,t,"src",n.src,n,null);return;case"input":We("invalid",e);var E=c=h=o=null,R=null,Y=null;for(a in n)if(n.hasOwnProperty(a)){var te=n[a];if(te!=null)switch(a){case"name":o=te;break;case"type":h=te;break;case"checked":R=te;break;case"defaultChecked":Y=te;break;case"value":c=te;break;case"defaultValue":E=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(l(137,t));break;default:vt(e,t,a,te,n,null)}}La(e,c,E,R,Y,h,o,!1);return;case"select":We("invalid",e),a=h=c=null;for(o in n)if(n.hasOwnProperty(o)&&(E=n[o],E!=null))switch(o){case"value":c=E;break;case"defaultValue":h=E;break;case"multiple":a=E;default:vt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!a,t!=null?qt(e,!!a,t,!1):n!=null&&qt(e,!!a,n,!0);return;case"textarea":We("invalid",e),c=o=a=null;for(h in n)if(n.hasOwnProperty(h)&&(E=n[h],E!=null))switch(h){case"value":a=E;break;case"defaultValue":o=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(l(91));break;default:vt(e,t,h,E,n,null)}Sa(e,a,o,c);return;case"option":for(R in n)if(n.hasOwnProperty(R)&&(a=n[R],a!=null))switch(R){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:vt(e,t,R,a,n,null)}return;case"dialog":We("beforetoggle",e),We("toggle",e),We("cancel",e),We("close",e);break;case"iframe":case"object":We("load",e);break;case"video":case"audio":for(a=0;a<_s.length;a++)We(_s[a],e);break;case"image":We("error",e),We("load",e);break;case"details":We("toggle",e);break;case"embed":case"source":case"link":We("error",e),We("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Y in n)if(n.hasOwnProperty(Y)&&(a=n[Y],a!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:vt(e,t,Y,a,n,null)}return;default:if(_e(t)){for(te in n)n.hasOwnProperty(te)&&(a=n[te],a!==void 0&&Jc(e,t,te,a,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(a=n[E],a!=null&&vt(e,t,E,a,n,null))}function jv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,E=null,R=null,Y=null,te=null;for(Q in n){var se=n[Q];if(n.hasOwnProperty(Q)&&se!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":R=se;default:a.hasOwnProperty(Q)||vt(e,t,Q,null,a,se)}}for(var K in a){var Q=a[K];if(se=n[K],a.hasOwnProperty(K)&&(Q!=null||se!=null))switch(K){case"type":c=Q;break;case"name":o=Q;break;case"checked":Y=Q;break;case"defaultChecked":te=Q;break;case"value":h=Q;break;case"defaultValue":E=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(l(137,t));break;default:Q!==se&&vt(e,t,K,Q,a,se)}}li(e,h,E,R,Y,te,c,o);return;case"select":Q=h=E=K=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":Q=R;default:a.hasOwnProperty(c)||vt(e,t,c,null,a,R)}for(o in a)if(c=a[o],R=n[o],a.hasOwnProperty(o)&&(c!=null||R!=null))switch(o){case"value":K=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==R&&vt(e,t,o,c,a,R)}t=E,n=h,a=Q,K!=null?qt(e,!!n,K,!1):!!a!=!!n&&(t!=null?qt(e,!!n,t,!0):qt(e,!!n,n?[]:"",!1));return;case"textarea":Q=K=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!a.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:vt(e,t,E,null,a,o)}for(h in a)if(o=a[h],c=n[h],a.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":K=o;break;case"defaultValue":Q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&vt(e,t,h,o,a,c)}za(e,K,Q);return;case"option":for(var Te in n)if(K=n[Te],n.hasOwnProperty(Te)&&K!=null&&!a.hasOwnProperty(Te))switch(Te){case"selected":e.selected=!1;break;default:vt(e,t,Te,null,a,K)}for(R in a)if(K=a[R],Q=n[R],a.hasOwnProperty(R)&&K!==Q&&(K!=null||Q!=null))switch(R){case"selected":e.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:vt(e,t,R,K,a,Q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ze in n)K=n[ze],n.hasOwnProperty(ze)&&K!=null&&!a.hasOwnProperty(ze)&&vt(e,t,ze,null,a,K);for(Y in a)if(K=a[Y],Q=n[Y],a.hasOwnProperty(Y)&&K!==Q&&(K!=null||Q!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(l(137,t));break;default:vt(e,t,Y,K,a,Q)}return;default:if(_e(t)){for(var Et in n)K=n[Et],n.hasOwnProperty(Et)&&K!==void 0&&!a.hasOwnProperty(Et)&&Jc(e,t,Et,void 0,a,K);for(te in a)K=a[te],Q=n[te],!a.hasOwnProperty(te)||K===Q||K===void 0&&Q===void 0||Jc(e,t,te,K,a,Q);return}}for(var B in n)K=n[B],n.hasOwnProperty(B)&&K!=null&&!a.hasOwnProperty(B)&&vt(e,t,B,null,a,K);for(se in a)K=a[se],Q=n[se],!a.hasOwnProperty(se)||K===Q||K==null&&Q==null||vt(e,t,se,K,a,Q)}function nm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Bv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,h=o.initiatorType,E=o.duration;if(c&&E&&nm(h)){for(h=0,E=o.responseEnd,a+=1;a<n.length;a++){var R=n[a],Y=R.startTime;if(Y>E)break;var te=R.transferSize,se=R.initiatorType;te&&nm(se)&&(R=R.responseEnd,h+=te*(R<E?1:(E-Y)/(R-Y)))}if(--a,t+=8*(c+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Wc=null,eu=null;function Hr(e){return e.nodeType===9?e:e.ownerDocument}function am(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 im(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 tu(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 nu=null;function Iv(){var e=window.event;return e&&e.type==="popstate"?e===nu?!1:(nu=e,!0):(nu=null,!1)}var lm=typeof setTimeout=="function"?setTimeout:void 0,Hv=typeof clearTimeout=="function"?clearTimeout:void 0,sm=typeof Promise=="function"?Promise:void 0,qv=typeof queueMicrotask=="function"?queueMicrotask:typeof sm<"u"?function(e){return sm.resolve(null).then(e).catch(Gv)}:lm;function Gv(e){setTimeout(function(){throw e})}function Ti(e){return e==="head"}function rm(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Cl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ns(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ns(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[va]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&Ns(e.ownerDocument.body);n=o}while(n);Cl(t)}function om(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 au(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":au(n),ni(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function $v(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=oa(e.nextSibling),e===null)break}return null}function Yv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=oa(e.nextSibling),e===null))return null;return e}function cm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=oa(e.nextSibling),e===null))return null;return e}function iu(e){return e.data==="$?"||e.data==="$~"}function lu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Fv(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 oa(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 su=null;function um(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return oa(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function fm(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 dm(e,t,n){switch(t=Hr(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 Ns(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ni(e)}var ca=new Map,hm=new Set;function qr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Va=ie.d;ie.d={f:Kv,r:Pv,D:Zv,C:Xv,L:Qv,m:Vv,X:Wv,S:Jv,M:eE};function Kv(){var e=Va.f(),t=Cr();return e||t}function Pv(e){var t=ua(e);t!==null&&t.tag===5&&t.type==="form"?kh(t):Va.r(e)}var Ol=typeof document>"u"?null:document;function pm(e,t,n){var a=Ol;if(a&&typeof t=="string"&&t){var o=Nn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),hm.has(o)||(hm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),mn(t,"link",e),mt(t),a.head.appendChild(t)))}}function Zv(e){Va.D(e),pm("dns-prefetch",e,null)}function Xv(e,t){Va.C(e,t),pm("preconnect",e,t)}function Qv(e,t,n){Va.L(e,t,n);var a=Ol;if(a&&e&&t){var o='link[rel="preload"][as="'+Nn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Nn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Nn(n.imageSizes)+'"]')):o+='[href="'+Nn(e)+'"]';var c=o;switch(t){case"style":c=kl(e);break;case"script":c=Ml(e)}ca.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ca.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(ws(c))||(t=a.createElement("link"),mn(t,"link",e),mt(t),a.head.appendChild(t)))}}function Vv(e,t){Va.m(e,t);var n=Ol;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Nn(a)+'"][href="'+Nn(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ml(e)}if(!ca.has(c)&&(e=v({rel:"modulepreload",href:e},t),ca.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ws(c)))return}a=n.createElement("link"),mn(a,"link",e),mt(a),n.head.appendChild(a)}}}function Jv(e,t,n){Va.S(e,t,n);var a=Ol;if(a&&e){var o=_a(a).hoistableStyles,c=kl(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=a.querySelector(Ts(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ca.get(c))&&ru(e,n);var R=h=a.createElement("link");mt(R),mn(R,"link",e),R._p=new Promise(function(Y,te){R.onload=Y,R.onerror=te}),R.addEventListener("load",function(){E.loading|=1}),R.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Gr(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function Wv(e,t){Va.X(e,t);var n=Ol;if(n&&e){var a=_a(n).hoistableScripts,o=Ml(e),c=a.get(o);c||(c=n.querySelector(ws(o)),c||(e=v({src:e,async:!0},t),(t=ca.get(o))&&ou(e,t),c=n.createElement("script"),mt(c),mn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function eE(e,t){Va.M(e,t);var n=Ol;if(n&&e){var a=_a(n).hoistableScripts,o=Ml(e),c=a.get(o);c||(c=n.querySelector(ws(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ca.get(o))&&ou(e,t),c=n.createElement("script"),mt(c),mn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function mm(e,t,n,a){var o=(o=be.current)?qr(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=kl(n.href),n=_a(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=kl(n.href);var c=_a(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(Ts(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ca.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},ca.set(e,n),c||tE(o,e,n,h.state))),t&&a===null)throw Error(l(528,""));return h}if(t&&a!==null)throw Error(l(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ml(n),n=_a(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function kl(e){return'href="'+Nn(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function gm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function tE(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}),mn(t,"link",n),mt(t),e.head.appendChild(t))}function Ml(e){return'[src="'+Nn(e)+'"]'}function ws(e){return"script[async]"+e}function bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Nn(n.href)+'"]');if(a)return t.instance=a,mt(a),a;var o=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),mt(a),mn(a,"style",o),Gr(a,n.precedence,e),t.instance=a;case"stylesheet":o=kl(n.href);var c=e.querySelector(Ts(o));if(c)return t.state.loading|=4,t.instance=c,mt(c),c;a=gm(n),(o=ca.get(o))&&ru(a,o),c=(e.ownerDocument||e).createElement("link"),mt(c);var h=c;return h._p=new Promise(function(E,R){h.onload=E,h.onerror=R}),mn(c,"link",a),t.state.loading|=4,Gr(c,n.precedence,e),t.instance=c;case"script":return c=Ml(n.src),(o=e.querySelector(ws(c)))?(t.instance=o,mt(o),o):(a=n,(o=ca.get(c))&&(a=v({},n),ou(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),mt(o),mn(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,Gr(a,n.precedence,e));return t.instance}function Gr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,h=0;h<a.length;h++){var E=a[h];if(E.dataset.precedence===t)c=E;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function ru(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ou(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $r=null;function ym(e,t,n){if($r===null){var a=new Map,o=$r=new Map;o.set(n,a)}else o=$r,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[va]||c[Mt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var E=a.get(h);E?E.push(c):a.set(h,[c])}}return a}function vm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function nE(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Em(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function aE(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=kl(a.href),c=t.querySelector(Ts(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,mt(c);return}c=t.ownerDocument||t,a=gm(a),(o=ca.get(o))&&ru(a,o),c=c.createElement("link"),mt(c);var h=c;h._p=new Promise(function(E,R){h.onload=E,h.onerror=R}),mn(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=Yr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var cu=0;function iE(e,t){return e.stylesheets&&e.count===0&&Kr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&cu===0&&(cu=62500*Bv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Kr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>cu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Yr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fr=null;function Kr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fr=new Map,t.forEach(lE,e),Fr=null,Yr.call(e))}function lE(e,t){if(!(t.state.loading&4)){var n=Fr.get(e);if(n)var a=n.get(null);else{n=new Map,Fr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),a=h)}a&&n.set(null,a)}o=t.instance,h=o.getAttribute("data-precedence"),c=n.get(h)||a,c===a&&n.set(null,o),n.set(h,o),this.count++,a=Yr.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:D,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function sE(e,t,n,a,o,c,h,E,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pe(0),this.hiddenUpdates=Pe(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function _m(e,t,n,a,o,c,h,E,R,Y,te,se){return e=new sE(e,t,n,h,R,Y,te,se,E),t=1,c===!0&&(t|=24),c=Pn(3,null,null,t),e.current=c,c.stateNode=e,t=Go(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},Ko(c),e}function Sm(e){return e?(e=ol,e):ol}function Nm(e,t,n,a,o,c){o=Sm(o),a.context===null?a.context=o:a.pendingContext=o,a=hi(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=pi(e,a,t),n!==null&&(Gn(n,e,t),is(n,e,t))}function Tm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function uu(e,t){Tm(e,t),(e=e.alternate)&&Tm(e,t)}function wm(e){if(e.tag===13||e.tag===31){var t=ji(e,67108864);t!==null&&Gn(t,e,67108864),uu(e,67108864)}}function xm(e){if(e.tag===13||e.tag===31){var t=Jn();t=Ze(t);var n=ji(e,t);n!==null&&Gn(n,e,t),uu(e,t)}}var Pr=!0;function rE(e,t,n,a){var o=I.T;I.T=null;var c=ie.p;try{ie.p=2,fu(e,t,n,a)}finally{ie.p=c,I.T=o}}function oE(e,t,n,a){var o=I.T;I.T=null;var c=ie.p;try{ie.p=8,fu(e,t,n,a)}finally{ie.p=c,I.T=o}}function fu(e,t,n,a){if(Pr){var o=du(a);if(o===null)Vc(e,t,a,Zr,n),Rm(e,a);else if(uE(o,e,t,n,a))a.stopPropagation();else if(Rm(e,a),t&4&&-1<cE.indexOf(e)){for(;o!==null;){var c=ua(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=zt(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var R=1<<31-kt(h);E.entanglements[1]|=R,h&=~R}xa(c),(ht&6)===0&&(kr=it()+500,Es(0))}}break;case 31:case 13:E=ji(c,2),E!==null&&Gn(E,c,2),Cr(),uu(c,2)}if(c=du(a),c===null&&Vc(e,t,a,Zr,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else Vc(e,t,a,null,n)}}function du(e){return e=Oe(e),hu(e)}var Zr=null;function hu(e){if(Zr=null,e=fn(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Zr=e,null}function Am(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 rt:return 2;case vn:return 8;case En:case Dn:return 32;case An:return 268435456;default:return 32}default:return 32}}var pu=!1,wi=null,xi=null,Ai=null,As=new Map,Rs=new Map,Ri=[],cE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Rm(e,t){switch(e){case"focusin":case"focusout":wi=null;break;case"dragenter":case"dragleave":xi=null;break;case"mouseover":case"mouseout":Ai=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rs.delete(t.pointerId)}}function Os(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ua(t),t!==null&&wm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function uE(e,t,n,a,o){switch(t){case"focusin":return wi=Os(wi,e,t,n,a,o),!0;case"dragenter":return xi=Os(xi,e,t,n,a,o),!0;case"mouseover":return Ai=Os(Ai,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return As.set(c,Os(As.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,Rs.set(c,Os(Rs.get(c)||null,e,t,n,a,o)),!0}return!1}function Om(e){var t=fn(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,ei(e.priority,function(){xm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,ei(e.priority,function(){xm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=du(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);ve=a,n.target.dispatchEvent(a),ve=null}else return t=ua(n),t!==null&&wm(t),e.blockedOn=n,!1;t.shift()}return!0}function km(e,t,n){Xr(e)&&n.delete(t)}function fE(){pu=!1,wi!==null&&Xr(wi)&&(wi=null),xi!==null&&Xr(xi)&&(xi=null),Ai!==null&&Xr(Ai)&&(Ai=null),As.forEach(km),Rs.forEach(km)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,pu||(pu=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,fE)))}var Vr=null;function Mm(e){Vr!==e&&(Vr=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Vr===e&&(Vr=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(hu(a||n)===null)continue;break}var c=ua(n);c!==null&&(e.splice(t,3),t-=3,dc(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Cl(e){function t(R){return Qr(R,e)}wi!==null&&Qr(wi,e),xi!==null&&Qr(xi,e),Ai!==null&&Qr(Ai,e),As.forEach(t),Rs.forEach(t);for(var n=0;n<Ri.length;n++){var a=Ri[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ri.length&&(n=Ri[0],n.blockedOn===null);)Om(n),n.blockedOn===null&&Ri.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],h=o[ln]||null;if(typeof c=="function")h||Mm(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[ln]||null)E=h.formAction;else if(hu(o)!==null)continue}else E=h.action;typeof E=="function"?n[a+1]=E:(n.splice(a,3),a-=3),Mm(n)}}}function Cm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function mu(e){this._internalRoot=e}Jr.prototype.render=mu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,a=Jn();Nm(n,a,e,t,null,null)},Jr.prototype.unmount=mu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nm(e.current,2,null,e,null,null),Cr(),t[ot]=null}};function Jr(e){this._internalRoot=e}Jr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ri.length&&t!==0&&t<Ri[n].priority;n++);Ri.splice(n,0,e),n===0&&Om(e)}};var Dm=i.version;if(Dm!=="19.2.8")throw Error(l(527,Dm,"19.2.8"));ie.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var dE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wr.isDisabled&&Wr.supportsFiber)try{_n=Wr.inject(dE),Ot=Wr}catch{}}return Ms.createRoot=function(e,t){if(!u(e))throw Error(l(299));var n=!1,a="",o=Hh,c=qh,h=Gh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=_m(e,1,!1,null,null,n,a,null,o,c,h,Cm),e[ot]=t.current,Qc(e),new mu(t)},Ms.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var a=!1,o="",c=Hh,h=qh,E=Gh,R=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),t=_m(e,1,!0,t,n??null,a,o,R,c,h,E,Cm),t.context=Sm(null),n=t.current,a=Jn(),a=Ze(a),o=hi(a),o.callback=null,pi(n,o,a),n=a,t.current.lanes=n,Qe(t,n),xa(t),e[ot]=t.current,Qc(e),new Jr(t)},Ms.version="19.2.8",Ms}var $m;function TE(){if($m)return yu.exports;$m=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(),yu.exports=NE(),yu.exports}var wE=TE(),Kt;(function(s){s.INSERT="insert",s.DELETE="delete",s.CONTEXT="context"})(Kt||(Kt={}));const xE={LINE_BY_LINE:"line-by-line"},AE={NONE:"none"},RE={WORD:"word"};var Bl;(function(s){s.AUTO="auto",s.DARK="dark",s.LIGHT="light"})(Bl||(Bl={}));const OE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],kE=RegExp("["+OE.join("\\")+"]","g");function ME(s){return s.replace(kE,"\\$&")}function Ym(s){return s&&s.replace(/\\/g,"/")}function CE(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 Tb(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 Fm(s,i){const r=s.split(".");return r.length>1?r[r.length-1]:i}function Km(s,i){return i.reduce((r,l)=>r||s.startsWith(l),!1)}const Pm=["a/","b/","i/","w/","c/","o/"];function Ci(s,i,r){const l=r!==void 0?[...Pm,r]:Pm,u=i?new RegExp(`^${ME(i)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,d=""]=u.exec(s)||[],p=l.find(g=>d.indexOf(g)===0);return(p?d.slice(p.length):d).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function DE(s,i){return Ci(s,"---",i)}function LE(s,i){return Ci(s,"+++",i)}function zE(s,i={}){const r=[];let l=null,u=null,d=null,p=null,y=null,g=null,m=null;const b="--- ",v="+++ ",_="@@",w=/^old mode (\d{6})/,N=/^new mode (\d{6})/,x=/^deleted file mode (\d{6})/,A=/^new file mode (\d{6})/,U=/^copy from "?(.+)"?/,G=/^copy to "?(.+)"?/,D=/^rename from "?(.+)"?/,re=/^rename to "?(.+)"?/,H=/^similarity index (\d+)%/,Z=/^dissimilarity index (\d+)%/,le=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,k=/^Binary files (.*) and (.*) differ/,L=/^GIT binary patch/,X=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,F=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,he=/^new file mode (\d{6})/,Ne=/^deleted file mode (\d{6}),(\d{6})/,Se=s.replace(/\/g,"").replace(/\r\n?/g,`
|
|
50
|
+
`).split(`
|
|
51
|
+
`);function me(){u!==null&&l!==null&&(l.blocks.push(u),u=null)}function I(){l!==null&&(!l.oldName&&g!==null&&(l.oldName=g),!l.newName&&m!==null&&(l.newName=m),l.newName&&(r.push(l),l=null)),g=null,m=null}function ie(){me(),I(),l={blocks:[],deletedLines:0,addedLines:0}}function ce(S){me();let C;l!==null&&((C=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(S))?(l.isCombined=!1,d=parseInt(C[1],10),y=parseInt(C[2],10)):(C=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(S))?(l.isCombined=!0,d=parseInt(C[1],10),p=parseInt(C[2],10),y=parseInt(C[3],10)):(S.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),d=0,y=0,l.isCombined=!1)),u={lines:[],oldStartLine:d,oldStartLine2:p,newStartLine:y,header:S}}function ye(S){if(l===null||u===null||d===null||y===null)return;const C={content:S},q=l.isCombined?["+ "," +","++"]:["+"],ue=l.isCombined?["- "," -","--"]:["-"];Km(S,q)?(l.addedLines++,C.type=Kt.INSERT,C.oldNumber=void 0,C.newNumber=y++):Km(S,ue)?(l.deletedLines++,C.type=Kt.DELETE,C.oldNumber=d++,C.newNumber=void 0):(C.type=Kt.CONTEXT,C.oldNumber=d++,C.newNumber=y++),u.lines.push(C)}function Ee(S,C){let q=C;for(;q<Se.length-3;){if(S.startsWith("diff"))return!1;if(Se[q].startsWith(b)&&Se[q+1].startsWith(v)&&Se[q+2].startsWith(_))return!0;q++}return!1}return Se.forEach((S,C)=>{if(!S||S.startsWith("*"))return;let q;const ue=Se[C-1],W=Se[C+1],be=Se[C+2];if(S.startsWith("diff --git")||S.startsWith("diff --combined")){if(ie(),(q=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(S))&&(g=Ci(q[1],void 0,i.dstPrefix),m=Ci(q[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isGitDiff=!0;return}if(S.startsWith("Binary files")&&!(l!=null&&l.isGitDiff)){if(ie(),(q=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(S))&&(g=Ci(q[1],void 0,i.dstPrefix),m=Ci(q[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isBinary=!0;return}if((!l||!l.isGitDiff&&l&&S.startsWith(b)&&W.startsWith(v)&&be.startsWith(_))&&ie(),l!=null&&l.isTooBig)return;if(l&&(typeof i.diffMaxChanges=="number"&&l.addedLines+l.deletedLines>i.diffMaxChanges||typeof i.diffMaxLineLength=="number"&&S.length>i.diffMaxLineLength)){l.isTooBig=!0,l.addedLines=0,l.deletedLines=0,l.blocks=[],u=null;const ke=typeof i.diffTooBigMessage=="function"?i.diffTooBigMessage(r.length):"Diff too big to be displayed";ce(ke);return}if(S.startsWith(b)&&W.startsWith(v)||S.startsWith(v)&&ue.startsWith(b)){if(l&&!l.oldName&&S.startsWith("--- ")&&(q=DE(S,i.srcPrefix))){l.oldName=q,l.language=Fm(l.oldName,l.language);return}if(l&&!l.newName&&S.startsWith("+++ ")&&(q=LE(S,i.dstPrefix))){l.newName=q,l.language=Fm(l.newName,l.language);return}}if(l&&(S.startsWith(_)||l.isGitDiff&&l.oldName&&l.newName&&!u)){ce(S);return}if(u&&(S.startsWith("+")||S.startsWith("-")||S.startsWith(" "))){ye(S);return}const pe=!Ee(S,C);if(l===null)throw new Error("Where is my file !!!");(q=w.exec(S))?l.oldMode=q[1]:(q=N.exec(S))?l.newMode=q[1]:(q=x.exec(S))?(l.deletedFileMode=q[1],l.isDeleted=!0):(q=A.exec(S))?(l.newFileMode=q[1],l.isNew=!0):(q=U.exec(S))?(pe&&(l.oldName=q[1]),l.isCopy=!0):(q=G.exec(S))?(pe&&(l.newName=q[1]),l.isCopy=!0):(q=D.exec(S))?(pe&&(l.oldName=q[1]),l.isRename=!0):(q=re.exec(S))?(pe&&(l.newName=q[1]),l.isRename=!0):(q=k.exec(S))?(l.isBinary=!0,l.oldName=Ci(q[1],void 0,i.srcPrefix),l.newName=Ci(q[2],void 0,i.dstPrefix),ce("Binary file")):L.test(S)?(l.isBinary=!0,ce(S)):(q=H.exec(S))?l.unchangedPercentage=parseInt(q[1],10):(q=Z.exec(S))?l.changedPercentage=parseInt(q[1],10):(q=le.exec(S))?(l.checksumBefore=q[1],l.checksumAfter=q[2],q[3]&&(l.mode=q[3])):(q=X.exec(S))?(l.checksumBefore=[q[2],q[3]],l.checksumAfter=q[1]):(q=F.exec(S))?(l.oldMode=[q[2],q[3]],l.newMode=q[1]):(q=he.exec(S))?(l.newFileMode=q[1],l.isNew=!0):(q=Ne.exec(S))&&(l.deletedFileMode=q[1],l.isDeleted=!0)}),me(),I(),r}class wb{diff(i,r,l={}){let u;typeof l=="function"?(u=l,l={}):"callback"in l&&(u=l.callback);const d=this.castInput(i,l),p=this.castInput(r,l),y=this.removeEmpty(this.tokenize(d,l)),g=this.removeEmpty(this.tokenize(p,l));return this.diffWithOptionsObj(y,g,l,u)}diffWithOptionsObj(i,r,l,u){var d;const p=G=>{if(G=this.postProcess(G,l),u){setTimeout(function(){u(G)},0);return}else return G},y=r.length,g=i.length;let m=1,b=y+g;l.maxEditLength!=null&&(b=Math.min(b,l.maxEditLength));const v=(d=l.timeout)!==null&&d!==void 0?d:1/0,_=Date.now()+v,w=[{oldPos:-1,lastComponent:void 0}];let N=this.extractCommon(w[0],r,i,0,l);if(w[0].oldPos+1>=g&&N+1>=y)return p(this.buildValues(w[0].lastComponent,r,i));let x=-1/0,A=1/0;const U=()=>{for(let G=Math.max(x,-m);G<=Math.min(A,m);G+=2){let D;const re=w[G-1],H=w[G+1];re&&(w[G-1]=void 0);let Z=!1;if(H){const k=H.oldPos-G;Z=H&&0<=k&&k<y}const le=re&&re.oldPos+1<g;if(!Z&&!le){w[G]=void 0;continue}if(!le||Z&&re.oldPos<H.oldPos?D=this.addToPath(H,!0,!1,0,l):D=this.addToPath(re,!1,!0,1,l),N=this.extractCommon(D,r,i,G,l),D.oldPos+1>=g&&N+1>=y)return p(this.buildValues(D.lastComponent,r,i))||!0;w[G]=D,D.oldPos+1>=g&&(A=Math.min(A,G-1)),N+1>=y&&(x=Math.max(x,G+1))}m++};if(u)(function G(){setTimeout(function(){if(m>b||Date.now()>_)return u(void 0);U()||G()},0)})();else for(;m<=b&&Date.now()<=_;){const G=U();if(G)return G}}addToPath(i,r,l,u,d){const p=i.lastComponent;return p&&!d.oneChangePerToken&&p.added===r&&p.removed===l?{oldPos:i.oldPos+u,lastComponent:{count:p.count+1,added:r,removed:l,previousComponent:p.previousComponent}}:{oldPos:i.oldPos+u,lastComponent:{count:1,added:r,removed:l,previousComponent:p}}}extractCommon(i,r,l,u,d){const p=r.length,y=l.length;let g=i.oldPos,m=g-u,b=0;for(;m+1<p&&g+1<y&&this.equals(l[g+1],r[m+1],d);)m++,g++,b++,d.oneChangePerToken&&(i.lastComponent={count:1,previousComponent:i.lastComponent,added:!1,removed:!1});return b&&!d.oneChangePerToken&&(i.lastComponent={count:b,previousComponent:i.lastComponent,added:!1,removed:!1}),i.oldPos=g,m}equals(i,r,l){return l.comparator?l.comparator(i,r):i===r||!!l.ignoreCase&&i.toLowerCase()===r.toLowerCase()}removeEmpty(i){const r=[];for(let l=0;l<i.length;l++)i[l]&&r.push(i[l]);return r}castInput(i,r){return i}tokenize(i,r){return Array.from(i)}join(i){return i.join("")}postProcess(i,r){return i}get useLongestToken(){return!1}buildValues(i,r,l){const u=[];let d;for(;i;)u.push(i),d=i.previousComponent,delete i.previousComponent,i=d;u.reverse();const p=u.length;let y=0,g=0,m=0;for(;y<p;y++){const b=u[y];if(b.removed)b.value=this.join(l.slice(m,m+b.count)),m+=b.count;else{if(!b.added&&this.useLongestToken){let v=r.slice(g,g+b.count);v=v.map(function(_,w){const N=l[m+w];return N.length>_.length?N:_}),b.value=this.join(v)}else b.value=this.join(r.slice(g,g+b.count));g+=b.count,b.added||(m+=b.count)}}return u}}class UE extends wb{}const jE=new UE;function BE(s,i,r){return jE.diff(s,i,r)}const Zm="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 IE extends wb{tokenize(i){const r=new RegExp(`(\\r?\\n)|[${Zm}]+|[^\\S\\n\\r]+|[^${Zm}]`,"ug");return i.match(r)||[]}}const HE=new IE;function qE(s,i,r){return HE.diff(s,i,r)}function GE(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 Hf(s){return(i,r)=>{const l=s(i).trim(),u=s(r).trim();return GE(l,u)/(l.length+u.length)}}function qf(s){function i(l,u,d=new Map){let p=1/0,y;for(let g=0;g<l.length;++g)for(let m=0;m<u.length;++m){const b=JSON.stringify([l[g],u[m]]);let v;d.has(b)&&(v=d.get(b))||(v=s(l[g],u[m]),d.set(b,v)),v<p&&(p=v,y={indexA:g,indexB:m,score:p})}return y}function r(l,u,d=0,p=new Map){const y=i(l,u,p);if(!y||l.length+u.length<3)return[[l,u]];const g=l.slice(0,y.indexA),m=u.slice(0,y.indexB),b=[l[y.indexA]],v=[u[y.indexB]],_=y.indexA+1,w=y.indexB+1,N=l.slice(_),x=u.slice(w),A=r(g,m,d+1,p),U=r(b,v,d+1,p),G=r(N,x,d+1,p);let D=U;return(y.indexA>0||y.indexB>0)&&(D=A.concat(D)),(l.length>_||u.length>w)&&(D=D.concat(G)),D}return r}const Mn={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},ho={matching:AE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:RE.WORD,colorScheme:Bl.LIGHT},Aa="/",xb=Hf(s=>s.value),$E=qf(xb);function Su(s){return s.indexOf("dev/null")!==-1}function YE(s){return s.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function FE(s){return s.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function ro(s){switch(s){case Kt.CONTEXT:return Mn.CONTEXT;case Kt.INSERT:return Mn.INSERTS;case Kt.DELETE:return Mn.DELETES}}function Gf(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 KE(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=KE(i);return{prefix:s.substring(0,l),content:r?Il(s.substring(l)):s.substring(l)}}function po(s){const i=Ym(s.oldName),r=Ym(s.newName);if(i!==r&&!Su(i)&&!Su(r)){const l=[],u=[],d=i.split(Aa),p=r.split(Aa),y=d.length,g=p.length;let m=0,b=y-1,v=g-1;for(;m<b&&m<v&&d[m]===p[m];)l.push(p[m]),m+=1;for(;b>m&&v>m&&d[b]===p[v];)u.unshift(p[v]),b-=1,v-=1;const _=l.join(Aa),w=u.join(Aa),N=d.slice(m,b+1).join(Aa),x=p.slice(m,v+1).join(Aa);return _.length&&w.length?_+Aa+"{"+N+" → "+x+"}"+Aa+w:_.length?_+Aa+"{"+N+" → "+x+"}":w.length?"{"+N+" → "+x+"}"+Aa+w:i+" → "+r}else return Su(r)?i:r}function $f(s){return`d2h-${CE(po(s)).toString().slice(-6)}`}function Yf(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 Ab(s,i,r,l={}){const{matching:u,maxLineLengthHighlight:d,matchWordsThreshold:p,diffStyle:y}=Object.assign(Object.assign({},ho),l),g=Oa(s,r,!1),m=Oa(i,r,!1);if(g.content.length>d||m.content.length>d)return{oldLine:{prefix:g.prefix,content:Il(g.content)},newLine:{prefix:m.prefix,content:Il(m.content)}};const b=y==="char"?BE(g.content,m.content):qE(g.content,m.content),v=[];if(y==="word"&&u==="words"){const w=b.filter(A=>A.removed),N=b.filter(A=>A.added);$E(N,w).forEach(A=>{A[0].length===1&&A[1].length===1&&xb(A[0][0],A[1][0])<p&&(v.push(A[0][0]),v.push(A[1][0]))})}const _=b.reduce((w,N)=>{const x=N.added?"ins":N.removed?"del":null,A=v.indexOf(N)>-1?' class="d2h-change"':"",U=Il(N.value);return x!==null?`${w}<${x}${A}>${U}</${x}>`:`${w}${U}`},"");return{oldLine:{prefix:g.prefix,content:YE(_)},newLine:{prefix:m.prefix,content:FE(_)}}}const Xm="file-summary",PE="icon",ZE={colorScheme:ho.colorScheme};class XE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},ZE),r)}render(i){const r=i.map(l=>this.hoganUtils.render(Xm,"line",{fileHtmlId:$f(l),oldName:l.oldName,newName:l.newName,fileName:po(l),deletedLines:"-"+l.deletedLines,addedLines:"+"+l.addedLines},{fileIcon:this.hoganUtils.template(PE,Yf(l))})).join(`
|
|
52
|
+
`);return this.hoganUtils.render(Xm,"wrapper",{colorScheme:Gf(this.config.colorScheme),filesNumber:i.length,files:r})}}const Rb=Object.assign(Object.assign({},ho),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Cs="generic",Qm="line-by-line",QE="icon",VE="tag";class JE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},Rb),r)}render(i){const r=i.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
|
|
53
|
+
`);return this.hoganUtils.render(Cs,"wrapper",{colorScheme:Gf(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(Qm,"file-diff"),u=this.hoganUtils.template(Cs,"file-path"),d=this.hoganUtils.template(QE,"file"),p=this.hoganUtils.template(VE,Yf(i));return l.render({file:i,fileHtmlId:$f(i),diffs:r,filePath:u.render({fileDiffName:po(i)},{fileIcon:d,fileTag:p})})}generateEmptyDiff(){return this.hoganUtils.render(Cs,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Mn})}generateFileHtml(i){const r=qf(Hf(l=>Oa(l.content,i.isCombined).content));return i.blocks.map(l=>{let u=this.hoganUtils.render(Cs,"block-header",{CSSLineClass:Mn,blockHeader:i.isTooBig?l.header:Il(l.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(l).forEach(([d,p,y])=>{if(p.length&&y.length&&!d.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(i,i.isCombined,g,m);u+=b,u+=v});else if(d.length)d.forEach(g=>{const{prefix:m,content:b}=Oa(g.content,i.isCombined);u+=this.generateSingleLineHtml(i,{type:Mn.CONTEXT,prefix:m,content:b,oldNumber:g.oldNumber,newNumber:g.newNumber})});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(i,i.isCombined,p,y);u+=g,u+=m}else console.error("Unknown state reached while processing groups of lines",d,p,y)}),u}).join(`
|
|
54
|
+
`)}applyLineGroupping(i){const r=[];let l=[],u=[];for(let d=0;d<i.lines.length;d++){const p=i.lines[d];(p.type!==Kt.INSERT&&u.length||p.type===Kt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),p.type===Kt.CONTEXT?r.push([[p],[],[]]):p.type===Kt.INSERT&&l.length===0?r.push([[],[],[p]]):p.type===Kt.INSERT&&l.length>0?u.push(p):p.type===Kt.DELETE&&l.push(p)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(i,r,l){const u=i.length*r.length,d=Tb(i.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(i,r):[[i,r]]}processChangedLines(i,r,l,u){const d={right:"",left:""},p=Math.max(l.length,u.length);for(let y=0;y<p;y++){const g=l[y],m=u[y],b=g!==void 0&&m!==void 0?Ab(g.content,m.content,r,this.config):void 0,v=g!==void 0&&g.oldNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.oldLine.prefix,content:b.oldLine.content,type:Mn.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(g.content,r)),{type:ro(g.type)})),{oldNumber:g.oldNumber,newNumber:g.newNumber}):void 0,_=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.newLine.prefix,content:b.newLine.content,type:Mn.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(m.content,r)),{type:ro(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:w,right:N}=this.generateLineHtml(i,v,_);d.left+=w,d.right+=N}return d}generateLineHtml(i,r,l){return{left:this.generateSingleLineHtml(i,r),right:this.generateSingleLineHtml(i,l)}}generateSingleLineHtml(i,r){if(r===void 0)return"";const l=this.hoganUtils.render(Qm,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(Cs,"line",{type:r.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:r.prefix===" "?" ":r.prefix,content:r.content,lineNumber:l,line:r,file:i})}}const Ob=Object.assign(Object.assign({},ho),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ds="generic",WE="side-by-side",e_="icon",t_="tag";class n_{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},Ob),r)}render(i){const r=i.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
|
|
55
|
+
`);return this.hoganUtils.render(Ds,"wrapper",{colorScheme:Gf(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(WE,"file-diff"),u=this.hoganUtils.template(Ds,"file-path"),d=this.hoganUtils.template(e_,"file"),p=this.hoganUtils.template(t_,Yf(i));return l.render({file:i,fileHtmlId:$f(i),diffs:r,filePath:u.render({fileDiffName:po(i)},{fileIcon:d,fileTag:p})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Ds,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Mn})}}generateFileHtml(i){const r=qf(Hf(l=>Oa(l.content,i.isCombined).content));return i.blocks.map(l=>{const u={left:this.makeHeaderHtml(l.header,i),right:this.makeHeaderHtml("")};return this.applyLineGroupping(l).forEach(([d,p,y])=>{if(p.length&&y.length&&!d.length)this.applyRematchMatching(p,y,r).map(([g,m])=>{const{left:b,right:v}=this.processChangedLines(i.isCombined,g,m);u.left+=b,u.right+=v});else if(d.length)d.forEach(g=>{const{prefix:m,content:b}=Oa(g.content,i.isCombined),{left:v,right:_}=this.generateLineHtml({type:Mn.CONTEXT,prefix:m,content:b,number:g.oldNumber},{type:Mn.CONTEXT,prefix:m,content:b,number:g.newNumber});u.left+=v,u.right+=_});else if(p.length||y.length){const{left:g,right:m}=this.processChangedLines(i.isCombined,p,y);u.left+=g,u.right+=m}else console.error("Unknown state reached while processing groups of lines",d,p,y)}),u}).reduce((l,u)=>({left:l.left+u.left,right:l.right+u.right}),{left:"",right:""})}applyLineGroupping(i){const r=[];let l=[],u=[];for(let d=0;d<i.lines.length;d++){const p=i.lines[d];(p.type!==Kt.INSERT&&u.length||p.type===Kt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),p.type===Kt.CONTEXT?r.push([[p],[],[]]):p.type===Kt.INSERT&&l.length===0?r.push([[],[],[p]]):p.type===Kt.INSERT&&l.length>0?u.push(p):p.type===Kt.DELETE&&l.push(p)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(i,r,l){const u=i.length*r.length,d=Tb(i.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(i,r):[[i,r]]}makeHeaderHtml(i,r){return this.hoganUtils.render(Ds,"block-header",{CSSLineClass:Mn,blockHeader:r!=null&&r.isTooBig?i:Il(i),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(i,r,l){const u={right:"",left:""},d=Math.max(r.length,l.length);for(let p=0;p<d;p++){const y=r[p],g=l[p],m=y!==void 0&&g!==void 0?Ab(y.content,g.content,i,this.config):void 0,b=y!==void 0&&y.oldNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.oldLine.prefix,content:m.oldLine.content,type:Mn.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(y.content,i)),{type:ro(y.type)})),{number:y.oldNumber}):void 0,v=g!==void 0&&g.newNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.newLine.prefix,content:m.newLine.content,type:Mn.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(g.content,i)),{type:ro(g.type)})),{number:g.newNumber}):void 0,{left:_,right:w}=this.generateLineHtml(b,v);u.left+=_,u.right+=w}return u}generateLineHtml(i,r){return{left:this.generateSingleHtml(i),right:this.generateSingleHtml(r)}}generateSingleHtml(i){const r="d2h-code-side-linenumber",l="d2h-code-side-line";return this.hoganUtils.render(Ds,"line",{type:(i==null?void 0:i.type)||`${Mn.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 Nu={},Vm;function a_(){return Vm||(Vm=1,(function(s){(function(i){var r=/\S/,l=/\"/g,u=/\n/g,d=/\r/g,p=/\\/g,y=/\u2028/,g=/\u2029/;i.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},i.scan=function(L,X){var F=L.length,he=0,Ne=1,Se=2,me=he,I=null,ie=null,ce="",ye=[],Ee=!1,S=0,C=0,q="{{",ue="}}";function W(){ce.length>0&&(ye.push({tag:"_t",text:new String(ce)}),ce="")}function be(){for(var Ae=!0,je=C;je<ye.length;je++)if(Ae=i.tags[ye[je].tag]<i.tags._v||ye[je].tag=="_t"&&ye[je].text.match(r)===null,!Ae)return!1;return Ae}function pe(Ae,je){if(W(),Ae&&be())for(var Le=C,Me;Le<ye.length;Le++)ye[Le].text&&((Me=ye[Le+1])&&Me.tag==">"&&(Me.indent=ye[Le].text.toString()),ye.splice(Le,1));else je||ye.push({tag:`
|
|
56
|
+
`});Ee=!1,C=ye.length}function ke(Ae,je){var Le="="+ue,Me=Ae.indexOf(Le,je),Nt=b(Ae.substring(Ae.indexOf("=",je)+1,Me)).split(" ");return q=Nt[0],ue=Nt[Nt.length-1],Me+Le.length-1}for(X&&(X=X.split(" "),q=X[0],ue=X[1]),S=0;S<F;S++)me==he?v(q,L,S)?(--S,W(),me=Ne):L.charAt(S)==`
|
|
57
|
+
`?pe(Ee):ce+=L.charAt(S):me==Ne?(S+=q.length-1,ie=i.tags[L.charAt(S+1)],I=ie?L.charAt(S+1):"_v",I=="="?(S=ke(L,S),me=he):(ie&&S++,me=Se),Ee=S):v(ue,L,S)?(ye.push({tag:I,n:b(ce),otag:q,ctag:ue,i:I=="/"?Ee-q.length:S+ue.length}),ce="",S+=ue.length-1,me=he,I=="{"&&(ue=="}}"?S++:m(ye[ye.length-1]))):ce+=L.charAt(S);return pe(Ee,!0),ye};function m(k){k.n.substr(k.n.length-1)==="}"&&(k.n=k.n.substring(0,k.n.length-1))}function b(k){return k.trim?k.trim():k.replace(/^\s*|\s*$/g,"")}function v(k,L,X){if(L.charAt(X)!=k.charAt(0))return!1;for(var F=1,he=k.length;F<he;F++)if(L.charAt(X+F)!=k.charAt(F))return!1;return!0}var _={_t:!0,"\n":!0,$:!0,"/":!0};function w(k,L,X,F){var he=[],Ne=null,Se=null,me=null;for(Se=X[X.length-1];k.length>0;){if(me=k.shift(),Se&&Se.tag=="<"&&!(me.tag in _))throw new Error("Illegal content in < super tag.");if(i.tags[me.tag]<=i.tags.$||N(me,F))X.push(me),me.nodes=w(k,me.tag,X,F);else if(me.tag=="/"){if(X.length===0)throw new Error("Closing tag without opener: /"+me.n);if(Ne=X.pop(),me.n!=Ne.n&&!x(me.n,Ne.n,F))throw new Error("Nesting error: "+Ne.n+" vs. "+me.n);return Ne.end=me.i,he}else me.tag==`
|
|
58
|
+
`&&(me.last=k.length==0||k[0].tag==`
|
|
59
|
+
`);he.push(me)}if(X.length>0)throw new Error("missing closing tag: "+X.pop().n);return he}function N(k,L){for(var X=0,F=L.length;X<F;X++)if(L[X].o==k.n)return k.tag="#",!0}function x(k,L,X){for(var F=0,he=X.length;F<he;F++)if(X[F].c==k&&X[F].o==L)return!0}function A(k){var L=[];for(var X in k)L.push('"'+D(X)+'": function(c,p,t,i) {'+k[X]+"}");return"{ "+L.join(",")+" }"}function U(k){var L=[];for(var X in k.partials)L.push('"'+D(X)+'":{name:"'+D(k.partials[X].name)+'", '+U(k.partials[X])+"}");return"partials: {"+L.join(",")+"}, subs: "+A(k.subs)}i.stringify=function(k,L,X){return"{code: function (c,p,i) { "+i.wrapMain(k.code)+" },"+U(k)+"}"};var G=0;i.generate=function(k,L,X){G=0;var F={code:"",subs:{},partials:{}};return i.walk(k,F),X.asString?this.stringify(F,L,X):this.makeTemplate(F,L,X)},i.wrapMain=function(k){return'var t=this;t.b(i=i||"");'+k+"return t.fl();"},i.template=i.Template,i.makeTemplate=function(k,L,X){var F=this.makePartials(k);return F.code=new Function("c","p","i",this.wrapMain(k.code)),new this.template(F,L,this,X)},i.makePartials=function(k){var L,X={subs:{},partials:k.partials,name:k.name};for(L in X.partials)X.partials[L]=this.makePartials(X.partials[L]);for(L in k.subs)X.subs[L]=new Function("c","p","t","i",k.subs[L]);return X};function D(k){return k.replace(p,"\\\\").replace(l,'\\"').replace(u,"\\n").replace(d,"\\r").replace(y,"\\u2028").replace(g,"\\u2029")}function re(k){return~k.indexOf(".")?"d":"f"}function H(k,L){var X="<"+(L.prefix||""),F=X+k.n+G++;return L.partials[F]={name:k.n,partials:{}},L.code+='t.b(t.rp("'+D(F)+'",c,p,"'+(k.indent||"")+'"));',F}i.codegen={"#":function(k,L){L.code+="if(t.s(t."+re(k.n)+'("'+D(k.n)+'",c,p,1),c,p,0,'+k.i+","+k.end+',"'+k.otag+" "+k.ctag+'")){t.rs(c,p,function(c,p,t){',i.walk(k.nodes,L),L.code+="});c.pop();}"},"^":function(k,L){L.code+="if(!t.s(t."+re(k.n)+'("'+D(k.n)+'",c,p,1),c,p,1,0,0,"")){',i.walk(k.nodes,L),L.code+="};"},">":H,"<":function(k,L){var X={partials:{},code:"",subs:{},inPartial:!0};i.walk(k.nodes,X);var F=L.partials[H(k,L)];F.subs=X.subs,F.partials=X.partials},$:function(k,L){var X={subs:{},code:"",partials:L.partials,prefix:k.n};i.walk(k.nodes,X),L.subs[k.n]=X.code,L.inPartial||(L.code+='t.sub("'+D(k.n)+'",c,p,i);')},"\n":function(k,L){L.code+=le('"\\n"'+(k.last?"":" + i"))},_v:function(k,L){L.code+="t.b(t.v(t."+re(k.n)+'("'+D(k.n)+'",c,p,0)));'},_t:function(k,L){L.code+=le('"'+D(k.text)+'"')},"{":Z,"&":Z};function Z(k,L){L.code+="t.b(t.t(t."+re(k.n)+'("'+D(k.n)+'",c,p,0)));'}function le(k){return"t.b("+k+");"}i.walk=function(k,L){for(var X,F=0,he=k.length;F<he;F++)X=i.codegen[k[F].tag],X&&X(k[F],L);return L},i.parse=function(k,L,X){return X=X||{},w(k,"",[],X.sectionTags||[])},i.cache={},i.cacheKey=function(k,L){return[k,!!L.asString,!!L.disableLambda,L.delimiters,!!L.modelGet].join("||")},i.compile=function(k,L){L=L||{};var X=i.cacheKey(k,L),F=this.cache[X];if(F){var he=F.partials;for(var Ne in he)delete he[Ne].instance;return F}return F=this.generate(this.parse(this.scan(k,L.delimiters),k,L),k,L),this.cache[X]=F}})(s)})(Nu)),Nu}var Tu={},Jm;function i_(){return Jm||(Jm=1,(function(s){(function(i){i.Template=function(w,N,x,A){w=w||{},this.r=w.code||this.r,this.c=x,this.options=A||{},this.text=N||"",this.partials=w.partials||{},this.subs=w.subs||{},this.buf=""},i.Template.prototype={r:function(w,N,x){return""},v,t:b,render:function(N,x,A){return this.ri([N],x||{},A)},ri:function(w,N,x){return this.r(w,N,x)},ep:function(w,N){var x=this.partials[w],A=N[x.name];if(x.instance&&x.base==A)return x.instance;if(typeof A=="string"){if(!this.c)throw new Error("No compiler available.");A=this.c.compile(A,this.options)}if(!A)return null;if(this.partials[w].base=A,x.subs){N.stackText||(N.stackText={});for(key in x.subs)N.stackText[key]||(N.stackText[key]=this.activeSub!==void 0&&N.stackText[this.activeSub]?N.stackText[this.activeSub]:this.text);A=l(A,x.subs,x.partials,this.stackSubs,this.stackPartials,N.stackText)}return this.partials[w].instance=A,A},rp:function(w,N,x,A){var U=this.ep(w,x);return U?U.ri(N,x,A):""},rs:function(w,N,x){var A=w[w.length-1];if(!_(A)){x(w,N,this);return}for(var U=0;U<A.length;U++)w.push(A[U]),x(w,N,this),w.pop()},s:function(w,N,x,A,U,G,D){var re;return _(w)&&w.length===0?!1:(typeof w=="function"&&(w=this.ms(w,N,x,A,U,G,D)),re=!!w,!A&&re&&N&&N.push(typeof w=="object"?w:N[N.length-1]),re)},d:function(w,N,x,A){var U,G=w.split("."),D=this.f(G[0],N,x,A),re=this.options.modelGet,H=null;if(w==="."&&_(N[N.length-2]))D=N[N.length-1];else for(var Z=1;Z<G.length;Z++)U=r(G[Z],D,re),U!==void 0?(H=D,D=U):D="";return A&&!D?!1:(!A&&typeof D=="function"&&(N.push(H),D=this.mv(D,N,x),N.pop()),D)},f:function(w,N,x,A){for(var U=!1,G=null,D=!1,re=this.options.modelGet,H=N.length-1;H>=0;H--)if(G=N[H],U=r(w,G,re),U!==void 0){D=!0;break}return D?(!A&&typeof U=="function"&&(U=this.mv(U,N,x)),U):A?!1:""},ls:function(w,N,x,A,U,G){var D=this.options.delimiters;return this.options.delimiters=G,this.b(this.ct(b(w.call(N,U,x)),N,A)),this.options.delimiters=D,!1},ct:function(w,N,x){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(w,this.options).render(N,x)},b:function(w){this.buf+=w},fl:function(){var w=this.buf;return this.buf="",w},ms:function(w,N,x,A,U,G,D){var re,H=N[N.length-1],Z=w.call(H);return typeof Z=="function"?A?!0:(re=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(Z,H,N,x,re.substring(U,G),D)):Z},mv:function(w,N,x){var A=N[N.length-1],U=w.call(A);return typeof U=="function"?this.ct(b(U.call(A)),A,x):U},sub:function(w,N,x,A){var U=this.subs[w];U&&(this.activeSub=w,U(N,x,this,A),this.activeSub=!1)}};function r(w,N,x){var A;return N&&typeof N=="object"&&(N[w]!==void 0?A=N[w]:x&&N.get&&typeof N.get=="function"&&(A=N.get(w))),A}function l(w,N,x,A,U,G){function D(){}D.prototype=w;function re(){}re.prototype=w.subs;var H,Z=new D;Z.subs=new re,Z.subsText={},Z.buf="",A=A||{},Z.stackSubs=A,Z.subsText=G;for(H in N)A[H]||(A[H]=N[H]);for(H in A)Z.subs[H]=A[H];U=U||{},Z.stackPartials=U;for(H in x)U[H]||(U[H]=x[H]);for(H in U)Z.partials[H]=U[H];return Z}var u=/&/g,d=/</g,p=/>/g,y=/\'/g,g=/\"/g,m=/[&<>\"\']/;function b(w){return String(w??"")}function v(w){return w=b(w),m.test(w)?w.replace(u,"&").replace(d,"<").replace(p,">").replace(y,"'").replace(g,"""):w}var _=Array.isArray||function(w){return Object.prototype.toString.call(w)==="[object Array]"}})(s)})(Tu)),Tu}var wu,Wm;function l_(){if(Wm)return wu;Wm=1;var s=a_();return s.Template=i_().Template,s.template=s.Template,wu=s,wu}var It=l_();const Zt={};Zt["file-summary-line"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<li class="d2h-file-list-line">'),l.b(`
|
|
60
|
+
`+r),l.b(' <span class="d2h-file-name-wrapper">'),l.b(`
|
|
61
|
+
`+r),l.b(l.rp("<fileIcon0",s,i," ")),l.b(' <a href="#'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-name">'),l.b(l.v(l.f("fileName",s,i,0))),l.b("</a>"),l.b(`
|
|
62
|
+
`+r),l.b(' <span class="d2h-file-stats">'),l.b(`
|
|
63
|
+
`+r),l.b(' <span class="d2h-lines-added">'),l.b(l.v(l.f("addedLines",s,i,0))),l.b("</span>"),l.b(`
|
|
64
|
+
`+r),l.b(' <span class="d2h-lines-deleted">'),l.b(l.v(l.f("deletedLines",s,i,0))),l.b("</span>"),l.b(`
|
|
65
|
+
`+r),l.b(" </span>"),l.b(`
|
|
66
|
+
`+r),l.b(" </span>"),l.b(`
|
|
67
|
+
`+r),l.b("</li>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});Zt["file-summary-wrapper"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-file-list-wrapper '),l.b(l.v(l.f("colorScheme",s,i,0))),l.b('">'),l.b(`
|
|
68
|
+
`+r),l.b(' <div class="d2h-file-list-header">'),l.b(`
|
|
69
|
+
`+r),l.b(' <span class="d2h-file-list-title">Files changed ('),l.b(l.v(l.f("filesNumber",s,i,0))),l.b(")</span>"),l.b(`
|
|
70
|
+
`+r),l.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),l.b(`
|
|
71
|
+
`+r),l.b(' <a class="d2h-file-switch d2h-show">show</a>'),l.b(`
|
|
72
|
+
`+r),l.b(" </div>"),l.b(`
|
|
73
|
+
`+r),l.b(' <ol class="d2h-file-list">'),l.b(`
|
|
74
|
+
`+r),l.b(" "),l.b(l.t(l.f("files",s,i,0))),l.b(`
|
|
75
|
+
`+r),l.b(" </ol>"),l.b(`
|
|
76
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Zt["generic-block-header"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
|
|
77
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,i,0))),l.b(" "),l.b(l.v(l.d("CSSLineClass.INFO",s,i,0))),l.b('"></td>'),l.b(`
|
|
78
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,i,0))),l.b('">'),l.b(`
|
|
79
|
+
`+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,i,0))),l.b('">'),l.s(l.f("blockHeader",s,i,1),s,i,0,156,173,"{{ }}")&&(l.rs(s,i,function(u,d,p){p.b(p.t(p.f("blockHeader",u,d,0)))}),s.pop()),l.s(l.f("blockHeader",s,i,1),s,i,1,0,0,"")||l.b(" "),l.b("</div>"),l.b(`
|
|
80
|
+
`+r),l.b(" </td>"),l.b(`
|
|
81
|
+
`+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Zt["generic-empty-diff"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
|
|
82
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,i,0))),l.b('">'),l.b(`
|
|
83
|
+
`+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,i,0))),l.b('">'),l.b(`
|
|
84
|
+
`+r),l.b(" File without changes"),l.b(`
|
|
85
|
+
`+r),l.b(" </div>"),l.b(`
|
|
86
|
+
`+r),l.b(" </td>"),l.b(`
|
|
87
|
+
`+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Zt["generic-file-path"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-file-name-wrapper">'),l.b(`
|
|
88
|
+
`+r),l.b(l.rp("<fileIcon0",s,i," ")),l.b(' <span class="d2h-file-name">'),l.b(l.v(l.f("fileDiffName",s,i,0))),l.b("</span>"),l.b(`
|
|
89
|
+
`+r),l.b(l.rp("<fileTag1",s,i," ")),l.b("</span>"),l.b(`
|
|
90
|
+
`+r),l.b('<label class="d2h-file-collapse">'),l.b(`
|
|
91
|
+
`+r),l.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),l.b(`
|
|
92
|
+
`+r),l.b(" Viewed"),l.b(`
|
|
93
|
+
`+r),l.b("</label>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});Zt["generic-line"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
|
|
94
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,i,0))),l.b(" "),l.b(l.v(l.f("type",s,i,0))),l.b('">'),l.b(`
|
|
95
|
+
`+r),l.b(" "),l.b(l.t(l.f("lineNumber",s,i,0))),l.b(`
|
|
96
|
+
`+r),l.b(" </td>"),l.b(`
|
|
97
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.f("type",s,i,0))),l.b('">'),l.b(`
|
|
98
|
+
`+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,i,0))),l.b('">'),l.b(`
|
|
99
|
+
`+r),l.s(l.f("prefix",s,i,1),s,i,0,162,238,"{{ }}")&&(l.rs(s,i,function(u,d,p){p.b(' <span class="d2h-code-line-prefix">'),p.b(p.t(p.f("prefix",u,d,0))),p.b("</span>"),p.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,d,p){p.b(' <span class="d2h-code-line-ctn">'),p.b(p.t(p.f("content",u,d,0))),p.b("</span>"),p.b(`
|
|
102
|
+
`+r)}),s.pop()),l.s(l.f("content",s,i,1),s,i,1,0,0,"")||(l.b(' <span class="d2h-code-line-ctn"><br></span>'),l.b(`
|
|
103
|
+
`+r)),l.b(" </div>"),l.b(`
|
|
104
|
+
`+r),l.b(" </td>"),l.b(`
|
|
105
|
+
`+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Zt["generic-wrapper"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-wrapper '),l.b(l.v(l.f("colorScheme",s,i,0))),l.b('">'),l.b(`
|
|
106
|
+
`+r),l.b(" "),l.b(l.t(l.f("content",s,i,0))),l.b(`
|
|
107
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Zt["icon-file-added"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),l.b(`
|
|
108
|
+
`+r),l.b(' width="14">'),l.b(`
|
|
109
|
+
`+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),l.b(`
|
|
110
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Zt["icon-file-changed"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),l.b(`
|
|
111
|
+
`+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
|
|
112
|
+
`+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),l.b(`
|
|
113
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Zt["icon-file-deleted"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),l.b(`
|
|
114
|
+
`+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
|
|
115
|
+
`+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),l.b(`
|
|
116
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Zt["icon-file-renamed"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),l.b(`
|
|
117
|
+
`+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
|
|
118
|
+
`+r),l.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),l.b(`
|
|
119
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Zt["icon-file"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),l.b(`
|
|
120
|
+
`+r),l.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),l.b(`
|
|
121
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Zt["line-by-line-file-diff"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,i,0))),l.b('">'),l.b(`
|
|
122
|
+
`+r),l.b(' <div class="d2h-file-header">'),l.b(`
|
|
123
|
+
`+r),l.b(" "),l.b(l.t(l.f("filePath",s,i,0))),l.b(`
|
|
124
|
+
`+r),l.b(" </div>"),l.b(`
|
|
125
|
+
`+r),l.b(' <div class="d2h-file-diff">'),l.b(`
|
|
126
|
+
`+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
|
|
127
|
+
`+r),l.b(' <table class="d2h-diff-table">'),l.b(`
|
|
128
|
+
`+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
|
|
129
|
+
`+r),l.b(" "),l.b(l.t(l.f("diffs",s,i,0))),l.b(`
|
|
130
|
+
`+r),l.b(" </tbody>"),l.b(`
|
|
131
|
+
`+r),l.b(" </table>"),l.b(`
|
|
132
|
+
`+r),l.b(" </div>"),l.b(`
|
|
133
|
+
`+r),l.b(" </div>"),l.b(`
|
|
134
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Zt["line-by-line-numbers"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div class="line-num1">'),l.b(l.v(l.f("oldNumber",s,i,0))),l.b("</div>"),l.b(`
|
|
135
|
+
`+r),l.b('<div class="line-num2">'),l.b(l.v(l.f("newNumber",s,i,0))),l.b("</div>"),l.fl()},partials:{},subs:{}});Zt["side-by-side-file-diff"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,i,0))),l.b('">'),l.b(`
|
|
136
|
+
`+r),l.b(' <div class="d2h-file-header">'),l.b(`
|
|
137
|
+
`+r),l.b(" "),l.b(l.t(l.f("filePath",s,i,0))),l.b(`
|
|
138
|
+
`+r),l.b(" </div>"),l.b(`
|
|
139
|
+
`+r),l.b(' <div class="d2h-files-diff">'),l.b(`
|
|
140
|
+
`+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
|
|
141
|
+
`+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
|
|
142
|
+
`+r),l.b(' <table class="d2h-diff-table">'),l.b(`
|
|
143
|
+
`+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
|
|
144
|
+
`+r),l.b(" "),l.b(l.t(l.d("diffs.left",s,i,0))),l.b(`
|
|
145
|
+
`+r),l.b(" </tbody>"),l.b(`
|
|
146
|
+
`+r),l.b(" </table>"),l.b(`
|
|
147
|
+
`+r),l.b(" </div>"),l.b(`
|
|
148
|
+
`+r),l.b(" </div>"),l.b(`
|
|
149
|
+
`+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
|
|
150
|
+
`+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
|
|
151
|
+
`+r),l.b(' <table class="d2h-diff-table">'),l.b(`
|
|
152
|
+
`+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
|
|
153
|
+
`+r),l.b(" "),l.b(l.t(l.d("diffs.right",s,i,0))),l.b(`
|
|
154
|
+
`+r),l.b(" </tbody>"),l.b(`
|
|
155
|
+
`+r),l.b(" </table>"),l.b(`
|
|
156
|
+
`+r),l.b(" </div>"),l.b(`
|
|
157
|
+
`+r),l.b(" </div>"),l.b(`
|
|
158
|
+
`+r),l.b(" </div>"),l.b(`
|
|
159
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Zt["tag-file-added"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),l.fl()},partials:{},subs:{}});Zt["tag-file-changed"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),l.fl()},partials:{},subs:{}});Zt["tag-file-deleted"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),l.fl()},partials:{},subs:{}});Zt["tag-file-renamed"]=new It.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),l.fl()},partials:{},subs:{}});class s_{constructor({compiledTemplates:i={},rawTemplates:r={}}){const l=Object.entries(r).reduce((u,[d,p])=>{const y=It.compile(p,{asString:!1});return Object.assign(Object.assign({},u),{[d]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Zt),i),l)}static compile(i){return It.compile(i,{asString:!1})}render(i,r,l,u,d){const p=this.templateKey(i,r);try{return this.preCompiledTemplates[p].render(l,u,d)}catch{throw new Error(`Could not find template to render '${p}'`)}}template(i,r){return this.preCompiledTemplates[this.templateKey(i,r)]}templateKey(i,r){return`${i}-${r}`}}const r_=Object.assign(Object.assign(Object.assign({},Rb),Ob),{outputFormat:xE.LINE_BY_LINE,drawFileList:!0});function o_(s,i={}){const r=Object.assign(Object.assign({},r_),i),l=typeof s=="string"?zE(s,r):s,u=new s_(r),{colorScheme:d}=r,p={colorScheme:d},y=r.drawFileList?new XE(u,p).render(l):"",g=r.outputFormat==="side-by-side"?new n_(u,r).render(l):new JE(u,r).render(l);return y+g}var xu=Nb();function Ja(s){const i=[],r=s.split(`
|
|
160
|
+
`);let l=null,u=null;const d=()=>{l&&u&&i.push({path:u,patch:l.join(`
|
|
161
|
+
`)}),l=null,u=null};for(const p of r)if(p.startsWith("diff --git ")){d(),l=[p];const y=p.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:p.slice(11)}else if(l&&(l.push(p),p.startsWith("--- a/")&&u==="/dev/null"&&(u=p.slice(6)),p==="+++ /dev/null")){const y=l.find(g=>g.startsWith("--- a/"));y&&(u=y.slice(6))}return d(),i}function c_(s,i){const r=new Set(i);return Ja(s).filter(l=>r.has(l.path)).map(l=>l.patch).join(`
|
|
162
|
+
`)}function u_(s){return f_(s)}function f_(s,i){const l=new Map;for(const{path:u,patch:d}of Ja(s)){const p=new Map;let y=0,g=!1;const m=d.split(`
|
|
163
|
+
`);for(let b=0;b<m.length;b++){const v=m[b],_=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){y=Number(_[2]),g=!0;continue}g&&(v===""&&b===m.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(p.set(y,v===""?"":v.slice(1)),y++))}l.set(u,p)}return l}function d_(s){const i=new Map;for(const[r,l]of u_(s))i.set(r,new Set(l.keys()));return i}function h_(s,i){const r=new Set(i.flatMap(l=>l.files));return Ja(s).map(l=>l.path).filter(l=>!r.has(l))}function p_(s){return new Map(Ja(s).map(i=>[i.path,i.patch.split(`
|
|
164
|
+
`).length]))}const kb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function eg(s,i){return i?`${kb[i]} **${i}** — ${s}`:s}const m_=["inbox","awaiting","drafted"],Tf=["requests","settled","sent","archived"],Au={inbox:{label:"inbox",title:"Everything still waiting on you — drafted reviews and PRs the poll found but nobody has read."},awaiting:{label:"awaiting",title:"Found by the inbox poll, not drafted yet — or a run is in flight right now."},drafted:{label:"drafted",title:"A draft is written and waiting for you to read it."},requests:{label:"open requests",title:"GitHub still lists you as a requested reviewer on these. You settled or archived them here without submitting a review, so they also appear under whichever tab you filed them in."},settled:{label:"settled",title:"You marked these reviewed or skipped, or handed them to somebody else. No review of yours was sent to GitHub."},sent:{label:"sent",title:"Reviews that reached GitHub. Kept here as a record."},archived:{label:"archived",title:"PRs that have since been merged or closed."}};function tg(s){return s.status==="awaiting"||s.status==="running"?"awaiting":s.status==="sent"?"sent":"drafted"}const Hs=s=>!!s.pr.state&&s.pr.state!=="OPEN",ng=["ready","awaiting","running","failed","reviewed","skipped","sent"];function jl(s){return[...s].sort((i,r)=>ng.indexOf(i.status)-ng.indexOf(r.status)||r.updatedAt.localeCompare(i.updatedAt))}const Mb=["sent","reviewed","skipped"];function qs(s){return jl(s.filter(i=>!Hs(i)&&!Mb.includes(i.status)))}function g_(s,i,r){return qs(s).filter(l=>l.key===i||!r.has(l.key))}function b_(s,i){if(!(i!=null&&i.enabled)||i.awaiting.length===0)return[];const r=new Set(qs(s).map(u=>u.id)),l=new Set(i.awaiting.map(u=>u.id));return jl(s.filter(u=>l.has(u.id)&&!r.has(u.id)))}const y_=(s,i)=>i.some(r=>r.id===s.id);function v_(s,i){const r=s.filter(u=>!Hs(u)),l=jl(r.filter(u=>!Mb.includes(u.status)));return{inbox:l,awaiting:l.filter(u=>tg(u)==="awaiting"),drafted:l.filter(u=>tg(u)==="drafted"),requests:b_(s,i),settled:jl(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:jl(r.filter(u=>u.status==="sent")),archived:jl(s.filter(Hs))}}function E_(s,i){return Tf.includes(s)&&i[s].length===0?"inbox":s}function Cb(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 oo={"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 __(s){var i;return Hs(s)?((i=s.pr.state)==null?void 0:i.toLowerCase())??null:s.handoff?`handed to @${s.handoff.to}`:s.filed?oo[s.filed.reason].tag:s.status==="reviewed"||s.status==="skipped"?s.status:null}function S_(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 N_={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."}},T_=s=>N_[s];function w_(s){const i=Ff[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 x_(s){const i=oo[s.reason],r=new Date(Cb(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.`}}function A_(s){const i=new Date(s.at).toLocaleDateString();return{label:`handed to @${s.to}`,title:s.withdrewYours?`You handed this to @${s.to} on ${i} and cerber took your own review request off the PR. GitHub still lists one for you — most likely the last inbox poll ran before the swap, or somebody has asked you again since.`:`You handed this to @${s.to} on ${i}, but cerber could not take your own review request off the PR — so GitHub is asking both of you. Remove yourself on GitHub if that is not what you wanted.`}}const R_=(s,i)=>s.handoff?A_(s.handoff):s.sent?w_(s.sent):s.filed?x_(s.filed):T_(i);function O_(s){const i=s.length,r=i===1?"1 review request":`${i} review requests`,l=s.some(Hs)?"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 Db(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 k_={approve:"approve",comment:"comment",request_changes:"changes"},Ff={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function M_(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 · ${Ff[s.sent.event]??s.sent.event}`,tone:"sent"}:s.verdict?{label:`${s.verdict.recommendation.replace("_"," ")} ${s.verdict.confidence}%`,tone:k_[s.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function Ru(s){return s.trusted?"ran the code":s.withSource?"read the full source":"read the diff only"}function C_(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 D_(s,i,r=Date.now()){var u,d;if(s.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Db(s.updatedAt,r)} ago`,Ru(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 ${Ff[s.sent.event]??s.sent.event} on ${new Date(s.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue.`+(s.handoff?` GitHub asks @${s.handoff.to} for it now.`:""),meta:[...s.handoff?[`you handed this to @${s.handoff.to}`]:[],s.sent.auto?"auto-sent by the daemon":"sent by you",Ru(s)]};const l=[Ru(s)];if(s.handoff?l.unshift(`you handed this to @${s.handoff.to} on ${new Date(s.handoff.at).toLocaleDateString()}`):s.filed?l.unshift(oo[s.filed.reason].meta(new Date(Cb(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(C_(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.handoff){const p=s.commentCount>0||s.verdict!=null;return{reasoning:`GitHub asks @${s.handoff.to} for this review now${s.handoff.withdrewYours?" and no longer asks you":" — and still asks you, because your own request could not be taken off"}. `+(p?"The draft was never sent: it is still yours to read or send.":"Nothing was drafted here, and nothing was sent."),meta:l}}return s.filed?{reasoning:oo[s.filed.reason].reasoning,meta:l}:{reasoning:((d=s.verdict)==null?void 0:d.reasoning)??"This review has a draft but no verdict.",meta:l}}const L_="/favicon.svg",z_="/favicon-dot.svg",U_=s=>qs(s).length>0,j_=s=>s?z_:L_;function B_(s){const i=j_(U_(s)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===i||r.setAttribute("href",i)}async function Xt(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 Kf=async()=>{const s=await Xt("/api/reviews");return B_(s),s},Lb=()=>Xt("/api/daemon"),ag=s=>Xt(`/api/reviews/${encodeURIComponent(s)}`),io=(s,i)=>Xt(`/api/reviews/${encodeURIComponent(s)}`,{method:"PATCH",body:JSON.stringify(i)}),I_=(s,i,r)=>Xt(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"PATCH",body:JSON.stringify(r)}),H_=(s,i)=>Xt(`/api/reviews/${encodeURIComponent(s)}/comments`,{method:"POST",body:JSON.stringify(i)}),q_=(s,i)=>Xt(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"DELETE"}),G_=s=>Xt("/api/reviews",{method:"POST",body:JSON.stringify({input:s})}),$_=s=>Xt(`/api/reviews/${encodeURIComponent(s)}/refresh`,{method:"POST"}),zb=(s,i)=>Xt(`/api/reviews/${encodeURIComponent(s)}/rerun`+(i===void 0?"":`?source=${i?"1":"0"}`),{method:"POST"}),wf=(s,i)=>Xt(`/api/reviews/${encodeURIComponent(s)}/chat`,{method:"POST",body:JSON.stringify(i)}),Y_=s=>Xt(`/api/reviews/${encodeURIComponent(s)}/chat/pending`,{method:"DELETE"}),F_=s=>Xt(`/api/reviews/${encodeURIComponent(s)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),Ub=(s,i)=>Xt(`/api/reviews/${encodeURIComponent(s)}/send-preview?event=${i}`),K_=(s,i)=>Xt(`/api/reviews/${encodeURIComponent(s)}/send`,{method:"POST",body:JSON.stringify({event:i,confirm:!0})}),P_=s=>Xt(`/api/reviews/${encodeURIComponent(s)}/reviewers`),Z_=(s,i)=>Xt(`/api/reviews/${encodeURIComponent(s)}/handoff`,{method:"POST",body:JSON.stringify({...i,confirm:!0})}),X_=s=>`/api/reviews/${encodeURIComponent(s)}/export`,Q_=()=>Xt("/api/config"),Ou=(s,i=!1)=>Xt("/api/config/trust",{method:"POST",body:JSON.stringify({rule:s,remove:i})}),ku=s=>Xt("/api/config/daemon",{method:"POST",body:JSON.stringify(s)}),jb="cerber.handoff.recent",Bb=5,V_=/^[A-Za-z0-9](?:[A-Za-z0-9_-]{0,37}[A-Za-z0-9])?$/,Ib=s=>V_.test(s);function J_(s){try{const i=JSON.parse(s??"");return Array.isArray(i)?i.filter(r=>typeof r=="string"&&Ib(r)).slice(0,Bb):[]}catch{return[]}}function Hb(){try{return J_(localStorage.getItem(jb))}catch{return[]}}function W_(s,i){const r=s.filter(l=>l.toLowerCase()!==i.toLowerCase());return[i,...r].slice(0,Bb)}function e0(s){const i=W_(Hb(),s);try{localStorage.setItem(jb,JSON.stringify(i))}catch{}return i}const xf=s=>s.trim().replace(/^@/,"");function t0(s,i){const r=new Set,l=[];for(const u of[...i,...s]){const d=u.toLowerCase();r.has(d)||(r.add(d),l.push({login:u,recent:i.some(p=>p.toLowerCase()===d)}))}return l}function n0(s,i){const r=xf(i).toLowerCase();if(!r)return s;const l=s.filter(p=>p.login.toLowerCase().includes(r)),u=p=>p.login.toLowerCase()===r,d=p=>p.login.toLowerCase().startsWith(r);return[...l.filter(u),...l.filter(p=>!u(p)&&d(p)),...l.filter(p=>!d(p))]}function Mu(s){return s.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function Af(s){return s.nodeName.toLowerCase()}function ig(s){const i=[],r=(l,u)=>{for(let d=l.firstChild;d;d=d.nextSibling)d.nodeType===3&&d.nodeValue!==null?u+=d.nodeValue.length:d.nodeType===1&&(i.push({event:"start",offset:u,node:d}),u=r(d,u),Af(d).match(/br|hr|img|input/)||i.push({event:"stop",offset:u,node:d}));return u};return r(s,0),i}function a0(s,i,r){let l=0,u="";const d=[];function p(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function y(){return!s.length||!i.length?s.length?s:i:s[0].offset!==i[0].offset?s[0].offset<i[0].offset?s:i:i[0].event==="start"?s:i}function g(v){if(!p(v))throw new Error("Node is not an Element");u+=`<${Af(v)} ${Array().map.call(v.attributes,_=>`${_.nodeName}="${Mu(_.value).replace(/"/g,""")}"`).join(" ")}>`}function m(v){u+="</"+Af(v)+">"}function b(v){(v.event==="start"?g:m)(v.node)}for(;s.length||i.length;){let v=y();if(u+=Mu(r.substring(l,v[0].offset)),l=v[0].offset,v===s){d.reverse().forEach(m);do b(v.splice(0,1)[0]),v=y();while(v===s&&v.length&&v[0].offset===l);d.reverse().forEach(g)}else v[0].event==="start"?d.push(v[0].node):d.pop(),b(v.splice(0,1)[0])}return u+Mu(r.substr(l))}const i0={"1c":"1c",abnf:"abnf",accesslog:"accesslog",as:"actionscript",adb:"ada",ada:"ada",ads:"ada",angelscript:"angelscript",apache:"apache",applescript:"applescript",scpt:"applescript",arcade:"arcade",cpp:"cpp",hpp:"cpp",arduino:"arduino",ino:"arduino",armasm:"armasm",arm:"armasm",xml:"xml",html:"xml",xhtml:"xml",rss:"xml",atom:"xml",xjb:"xml",xsd:"xml",xsl:"xml",plist:"xml",svg:"xml",asciidoc:"asciidoc",adoc:"asciidoc",asc:"asciidoc",aspectj:"aspectj",ahk:"autohotkey",ahkl:"autohotkey",au3:"autoit",avrasm:"avrasm",awk:"awk",axapta:"axapta","x++":"axapta",bash:"bash",sh:"bash",zsh:"bash",b:"basic",bnf:"bnf",bf:"brainfuck",c:"c",h:"c",cats:"c",idc:"c",cal:"cal",capnproto:"capnproto",capnp:"capnproto",ceylon:"ceylon",clean:"clean",clj:"clojure",boot:"clojure",cl2:"clojure",cljc:"clojure",cljs:"clojure","cljs.hl":"clojure",cljscm:"clojure",cljx:"clojure",hic:"clojure","clojure-repl":"clojure-repl",cmake:"cmake","cmake.in":"cmake",coffee:"coffeescript",_coffee:"coffeescript",cake:"coffeescript",cjsx:"coffeescript",iced:"coffeescript",cson:"coffeescript",coq:"coq",cos:"cos",cls:"cos",crmsh:"crmsh",crm:"crmsh",pcmk:"crmsh",cr:"crystal",cs:"csharp",csx:"csharp",csp:"csp",css:"css",d:"d",di:"d",md:"markdown",markdown:"markdown",mdown:"markdown",mdwn:"markdown",mkd:"markdown",mkdn:"markdown",mkdown:"markdown",ronn:"markdown",workbook:"markdown",dart:"dart",dpr:"delphi",dfm:"delphi",pas:"delphi",pascal:"delphi",diff:"diff",patch:"diff",django:"django",jinja:"django",dns:"dns",zone:"dns",bind:"dns",dockerfile:"dockerfile",docker:"dockerfile",dos:"dos",bat:"dos",cmd:"dos",dsconfig:"dsconfig",dts:"dts",dust:"dust",dst:"dust",ebnf:"ebnf",ex:"elixir",exs:"elixir",elm:"elm",rb:"ruby",builder:"ruby",eye:"ruby",gemspec:"ruby",god:"ruby",jbuilder:"ruby",mspec:"ruby",pluginspec:"ruby",podspec:"ruby",rabl:"ruby",rake:"ruby",rbuild:"ruby",rbw:"ruby",rbx:"ruby",ru:"ruby",ruby:"ruby",spec:"ruby",thor:"ruby",watchr:"ruby",erb:"erb","erlang-repl":"erlang-repl",erl:"erlang","app.src":"erlang",escript:"erlang",hrl:"erlang",xrl:"erlang",yrl:"erlang",excel:"excel",xls:"excel",xlsx:"excel",fix:"fix",flix:"flix",f90:"fortran",f:"fortran",f03:"fortran",f08:"fortran",f77:"fortran",f95:"fortran",for:"fortran",fpp:"fortran",fs:"fsharp",fsx:"fsharp",gams:"gams",gms:"gams",gauss:"gauss",gss:"gauss",gcode:"gcode",nc:"gcode",gherkin:"gherkin",glsl:"glsl",fp:"glsl",frag:"glsl",frg:"glsl",fsh:"glsl",fshader:"glsl",geo:"glsl",geom:"glsl",glslv:"glsl",gshader:"glsl",shader:"glsl",tesc:"glsl",tese:"glsl",vert:"glsl",vrx:"glsl",vsh:"glsl",vshader:"glsl",gml:"gml",go:"go",bal:"go",golo:"golo",gololang:"golo",gradle:"gradle",groovy:"groovy",grt:"groovy",gtpl:"groovy",gvy:"groovy",haml:"haml","haml.deface":"haml",handlebars:"handlebars",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",hs:"haskell",hsc:"haskell",idr:"haskell",purs:"haskell",hx:"haxe",hxsl:"haxe",hsp:"hsp",htmlbars:"htmlbars",http:"http",https:"http",hy:"hy",inform7:"inform7",i7:"inform7",ini:"ini",toml:"ini",cfg:"ini",prefs:"ini",irpf90:"irpf90",isbl:"isbl",java:"java",jsp:"java",js:"javascript",jsx:"javascript",_js:"javascript",bones:"javascript",es:"javascript",es6:"javascript",gs:"javascript",jake:"javascript",jsb:"javascript",jscad:"javascript",jsfl:"javascript",jsm:"javascript",jss:"javascript",mjs:"javascript",njs:"javascript",pac:"javascript",sjs:"javascript",ssjs:"javascript",xsjs:"javascript",xsjslib:"javascript",cfc:"javascript","jboss-cli":"jboss-cli",json:"json",avsc:"json",geojson:"json",gltf:"json","JSON-tmLanguage":"json",jsonl:"json",tfstate:"json","tfstate.backup":"json",topojson:"json",webapp:"json",webmanifest:"json",jl:"julia","julia-repl":"julia-repl",kt:"kotlin",ktm:"kotlin",kts:"kotlin",lasso:"lasso",lassoscript:"lasso",tex:"latex",ldif:"ldif",leaf:"leaf",less:"less",lisp:"lisp",factor:"lisp",livecodeserver:"livecodeserver",ls:"livescript",_ls:"livescript",llvm:"llvm",lsl:"lsl",lua:"lua",nse:"lua",p8:"lua",pd_lua:"lua",rbxs:"lua",wlua:"lua",mak:"makefile",make:"makefile",mk:"makefile",mkfile:"makefile",mathematica:"mathematica",mma:"mathematica",wl:"mathematica",matlab:"matlab",maxima:"maxima",mel:"mel",mercury:"mercury",mipsasm:"mipsasm",miz:"mizar",voc:"mizar",al:"perl",cgi:"perl",fcgi:"perl",perl:"perl",ph:"perl",plx:"perl",pl:"perl",pm:"perl",psgi:"perl",t:"perl",mojolicious:"mojolicious",monkey:"monkey",monkey2:"monkey",moonscript:"moonscript",moon:"moonscript",n1ql:"n1ql",nginxconf:"nginx",nim:"nim",nimrod:"nim",nix:"nix",nsi:"nsis",nsh:"nsis",m:"objectivec",objc:"objectivec",mm:"objectivec","obj-c":"objectivec","obj-c++":"objectivec","objective-c++":"objectivec",fun:"ocaml",sig:"ocaml",ml:"ocaml",mli:"ocaml",eliom:"ocaml",eliomi:"ocaml",ml4:"ocaml",mll:"ocaml",mly:"ocaml",openscad:"openscad",oxygene:"oxygene",parser3:"parser3",pf:"pf","pf.conf":"pf",pgsql:"pgsql",postgres:"pgsql",postgresql:"pgsql",php:"php",aw:"php",ctp:"php",inc:"php",php3:"php",php4:"php",php5:"php",phps:"php",phpt:"php","php-template":"php-template",plaintext:"plaintext",txt:"plaintext",text:"plaintext",pony:"pony",ps:"powershell",ps1:"powershell",psd1:"powershell",psm1:"powershell",pde:"processing",profile:"profile",pro:"prolog",prolog:"prolog",yap:"prolog",properties:"properties",proto:"protobuf",puppet:"puppet",pp:"puppet",purebasic:"purebasic",py:"python",bzl:"python",gyp:"python",gypi:"python",lmi:"python",py3:"python",pyde:"python",pyi:"python",pyp:"python",pyt:"python",pyw:"python",rpy:"python",tac:"python",wsgi:"python",xpy:"python","python-repl":"python-repl",pycon:"python-repl",q:"q",k:"q",kdb:"q",qml:"qml",r:"r",rd:"r",rsx:"r",reasonml:"reasonml",re:"reasonml",rib:"rib",roboconf:"roboconf",graph:"roboconf",instances:"roboconf",routeros:"routeros",rsl:"rsl",ruleslanguage:"ruleslanguage",rs:"rust","rs.in":"rust",sas:"sas",scala:"scala",kojo:"scala",sbt:"scala",sc:"scala",scm:"scheme",sch:"scheme",sld:"scheme",sls:"scheme",sps:"scheme",ss:"scheme",rkt:"scheme",scilab:"scilab",scss:"scss",shell:"shell",smali:"smali",st:"smalltalk",sml:"sml",sqf:"sqf",sql:"sql",cql:"sql",ddl:"sql",mysql:"sql",prc:"sql",tab:"sql",udf:"sql",viw:"sql",stan:"stan",stanfuncs:"stan",stata:"stata",step21:"step21",step:"step21",stp:"step21",styl:"stylus",subunit:"subunit",swift:"swift",taggerscript:"taggerscript",yml:"yaml",mir:"yaml",reek:"yaml",rviz:"yaml","sublime-syntax":"yaml",syntax:"yaml",yaml:"yaml","yaml-tmlanguage":"yaml","yml.mysql":"yaml",tap:"tap",tcl:"tcl",adp:"tcl",tm:"tcl",thrift:"thrift",tp:"tp",twig:"twig",craftcms:"twig",ts:"typescript",tsx:"typescript",vala:"vala",vbnet:"vbnet",vb:"vbnet",vbscript:"vbscript",vbs:"vbscript","vbscript-html":"vbscript-html",v:"verilog",veo:"verilog",vhdl:"vhdl",vhd:"vhdl",vhf:"vhdl",vhi:"vhdl",vho:"vhdl",vhs:"vhdl",vht:"vhdl",vhw:"vhdl",vim:"vim",x86asm:"x86asm",xl:"xl",xquery:"xquery",xpath:"xquery",xq:"xquery",zephir:"zephir",zep:"zephir"};function l0(s){var i;return(i=i0[s])!==null&&i!==void 0?i:"plaintext"}var Cu,lg;function s0(){if(lg)return Cu;lg=1;function s(O){return O instanceof Map?O.clear=O.delete=O.set=function(){throw new Error("map is read-only")}:O instanceof Set&&(O.add=O.clear=O.delete=function(){throw new Error("set is read-only")}),Object.freeze(O),Object.getOwnPropertyNames(O).forEach(ne=>{const ge=O[ne],Ce=typeof ge;(Ce==="object"||Ce==="function")&&!Object.isFrozen(ge)&&s(ge)}),O}class i{constructor(ne){ne.data===void 0&&(ne.data={}),this.data=ne.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(O){return O.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(O,...ne){const ge=Object.create(null);for(const Ce in O)ge[Ce]=O[Ce];return ne.forEach(function(Ce){for(const Pe in Ce)ge[Pe]=Ce[Pe]}),ge}const u="</span>",d=O=>!!O.scope,p=(O,{prefix:ne})=>{if(O.startsWith("language:"))return O.replace("language:","language-");if(O.includes(".")){const ge=O.split(".");return[`${ne}${ge.shift()}`,...ge.map((Ce,Pe)=>`${Ce}${"_".repeat(Pe+1)}`)].join(" ")}return`${ne}${O}`};class y{constructor(ne,ge){this.buffer="",this.classPrefix=ge.classPrefix,ne.walk(this)}addText(ne){this.buffer+=r(ne)}openNode(ne){if(!d(ne))return;const ge=p(ne.scope,{prefix:this.classPrefix});this.span(ge)}closeNode(ne){d(ne)&&(this.buffer+=u)}value(){return this.buffer}span(ne){this.buffer+=`<span class="${ne}">`}}const g=(O={})=>{const ne={children:[]};return Object.assign(ne,O),ne};class m{constructor(){this.rootNode=g(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ne){this.top.children.push(ne)}openNode(ne){const ge=g({scope:ne});this.add(ge),this.stack.push(ge)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ne){return this.constructor._walk(ne,this.rootNode)}static _walk(ne,ge){return typeof ge=="string"?ne.addText(ge):ge.children&&(ne.openNode(ge),ge.children.forEach(Ce=>this._walk(ne,Ce)),ne.closeNode(ge)),ne}static _collapse(ne){typeof ne!="string"&&ne.children&&(ne.children.every(ge=>typeof ge=="string")?ne.children=[ne.children.join("")]:ne.children.forEach(ge=>{m._collapse(ge)}))}}class b extends m{constructor(ne){super(),this.options=ne}addText(ne){ne!==""&&this.add(ne)}startScope(ne){this.openNode(ne)}endScope(){this.closeNode()}__addSublanguage(ne,ge){const Ce=ne.root;ge&&(Ce.scope=`language:${ge}`),this.add(Ce)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(O){return O?typeof O=="string"?O:O.source:null}function _(O){return x("(?=",O,")")}function w(O){return x("(?:",O,")*")}function N(O){return x("(?:",O,")?")}function x(...O){return O.map(ge=>v(ge)).join("")}function A(O){const ne=O[O.length-1];return typeof ne=="object"&&ne.constructor===Object?(O.splice(O.length-1,1),ne):{}}function U(...O){return"("+(A(O).capture?"":"?:")+O.map(Ce=>v(Ce)).join("|")+")"}function G(O){return new RegExp(O.toString()+"|").exec("").length-1}function D(O,ne){const ge=O&&O.exec(ne);return ge&&ge.index===0}const re=new RegExp(U(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function H(O,{joinWith:ne}){let ge=0;return O.map(Ce=>{ge+=1;const Pe=ge;let Qe=v(Ce),z="";for(;Qe.length>0;){const P=re.exec(Qe);if(!P){z+=Qe;break}z+=Qe.substring(0,P.index),Qe=Qe.substring(P.index+P[0].length),P[0][0]==="\\"&&P[1]?z+="\\"+String(Number(P[1])+Pe):(z+=P[0],(P[0]==="("||/^\(\?[<']/.test(P[0]))&&ge++)}return z}).map(Ce=>`(${Ce})`).join(ne)}const Z=/\b\B/,le="[a-zA-Z]\\w*",k="[a-zA-Z_]\\w*",L="\\b\\d+(\\.\\d+)?",X="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",F="\\b(0b[01]+)",he="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ne=(O={})=>{const ne=/^#![ ]*\//;return O.binary&&(O.begin=x(ne,/.*\b/,O.binary,/\b.*/)),l({scope:"meta",begin:ne,end:/$/,relevance:0,"on:begin":(ge,Ce)=>{ge.index!==0&&Ce.ignoreMatch()}},O)},Se={begin:"\\\\[\\s\\S]",relevance:0},me={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Se]},I={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Se]},ie={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ce=function(O,ne,ge={}){const Ce=l({scope:"comment",begin:O,end:ne,contains:[]},ge);Ce.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 Pe=U("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 Ce.contains.push({begin:x(/[ ]+/,"(",Pe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ce},ye=ce("//","$"),Ee=ce("/\\*","\\*/"),S=ce("#","$"),C={scope:"number",begin:L,relevance:0},q={scope:"number",begin:X,relevance:0},ue={scope:"number",begin:F,relevance:0},W={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Se,{begin:/\[/,end:/\]/,relevance:0,contains:[Se]}]},be={scope:"title",begin:le,relevance:0},pe={scope:"title",begin:k,relevance:0},ke={begin:"\\.\\s*"+k,relevance:0};var je=Object.freeze({__proto__:null,APOS_STRING_MODE:me,BACKSLASH_ESCAPE:Se,BINARY_NUMBER_MODE:ue,BINARY_NUMBER_RE:F,COMMENT:ce,C_BLOCK_COMMENT_MODE:Ee,C_LINE_COMMENT_MODE:ye,C_NUMBER_MODE:q,C_NUMBER_RE:X,END_SAME_AS_BEGIN:function(O){return Object.assign(O,{"on:begin":(ne,ge)=>{ge.data._beginMatch=ne[1]},"on:end":(ne,ge)=>{ge.data._beginMatch!==ne[1]&&ge.ignoreMatch()}})},HASH_COMMENT_MODE:S,IDENT_RE:le,MATCH_NOTHING_RE:Z,METHOD_GUARD:ke,NUMBER_MODE:C,NUMBER_RE:L,PHRASAL_WORDS_MODE:ie,QUOTE_STRING_MODE:I,REGEXP_MODE:W,RE_STARTERS_RE:he,SHEBANG:Ne,TITLE_MODE:be,UNDERSCORE_IDENT_RE:k,UNDERSCORE_TITLE_MODE:pe});function Le(O,ne){O.input[O.index-1]==="."&&ne.ignoreMatch()}function Me(O,ne){O.className!==void 0&&(O.scope=O.className,delete O.className)}function Nt(O,ne){ne&&O.beginKeywords&&(O.begin="\\b("+O.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",O.__beforeBegin=Le,O.keywords=O.keywords||O.beginKeywords,delete O.beginKeywords,O.relevance===void 0&&(O.relevance=0))}function Be(O,ne){Array.isArray(O.illegal)&&(O.illegal=U(...O.illegal))}function $n(O,ne){if(O.match){if(O.begin||O.end)throw new Error("begin & end are not supported with match");O.begin=O.match,delete O.match}}function tt(O,ne){O.relevance===void 0&&(O.relevance=1)}const yn=(O,ne)=>{if(!O.beforeMatch)return;if(O.starts)throw new Error("beforeMatch cannot be used with starts");const ge=Object.assign({},O);Object.keys(O).forEach(Ce=>{delete O[Ce]}),O.keywords=ge.keywords,O.begin=x(ge.beforeMatch,_(ge.begin)),O.starts={relevance:0,contains:[Object.assign(ge,{endsParent:!0})]},O.relevance=0,delete ge.beforeMatch},Yn=["of","and","for","in","not","or","if","then","parent","list","value"],Qt="keyword";function Jt(O,ne,ge=Qt){const Ce=Object.create(null);return typeof O=="string"?Pe(ge,O.split(" ")):Array.isArray(O)?Pe(ge,O):Object.keys(O).forEach(function(Qe){Object.assign(Ce,Jt(O[Qe],ne,Qe))}),Ce;function Pe(Qe,z){ne&&(z=z.map(P=>P.toLowerCase())),z.forEach(function(P){const de=P.split("|");Ce[de[0]]=[Qe,Wt(de[0],de[1])]})}}function Wt(O,ne){return ne?Number(ne):ya(O)?0:1}function ya(O){return Yn.includes(O.toLowerCase())}const Cn={},it=O=>{console.error(O)},Lt=(O,...ne)=>{console.log(`WARN: ${O}`,...ne)},rt=(O,ne)=>{Cn[`${O}/${ne}`]||(console.log(`Deprecated as of ${O}. ${ne}`),Cn[`${O}/${ne}`]=!0)},vn=new Error;function En(O,ne,{key:ge}){let Ce=0;const Pe=O[ge],Qe={},z={};for(let P=1;P<=ne.length;P++)z[P+Ce]=Pe[P],Qe[P+Ce]=!0,Ce+=G(ne[P-1]);O[ge]=z,O[ge]._emit=Qe,O[ge]._multi=!0}function Dn(O){if(Array.isArray(O.begin)){if(O.skip||O.excludeBegin||O.returnBegin)throw it("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),vn;if(typeof O.beginScope!="object"||O.beginScope===null)throw it("beginScope must be object"),vn;En(O,O.begin,{key:"beginScope"}),O.begin=H(O.begin,{joinWith:""})}}function An(O){if(Array.isArray(O.end)){if(O.skip||O.excludeEnd||O.returnEnd)throw it("skip, excludeEnd, returnEnd not compatible with endScope: {}"),vn;if(typeof O.endScope!="object"||O.endScope===null)throw it("endScope must be object"),vn;En(O,O.end,{key:"endScope"}),O.end=H(O.end,{joinWith:""})}}function Ln(O){O.scope&&typeof O.scope=="object"&&O.scope!==null&&(O.beginScope=O.scope,delete O.scope)}function zn(O){Ln(O),typeof O.beginScope=="string"&&(O.beginScope={_wrap:O.beginScope}),typeof O.endScope=="string"&&(O.endScope={_wrap:O.endScope}),Dn(O),An(O)}function _n(O){function ne(z,P){return new RegExp(v(z),"m"+(O.case_insensitive?"i":"")+(O.unicodeRegex?"u":"")+(P?"g":""))}class ge{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(P,de){de.position=this.position++,this.matchIndexes[this.matchAt]=de,this.regexes.push([de,P]),this.matchAt+=G(P)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const P=this.regexes.map(de=>de[1]);this.matcherRe=ne(H(P,{joinWith:"|"}),!0),this.lastIndex=0}exec(P){this.matcherRe.lastIndex=this.lastIndex;const de=this.matcherRe.exec(P);if(!de)return null;const He=de.findIndex((un,Fn)=>Fn>0&&un!==void 0),Ze=this.matchIndexes[He];return de.splice(0,He),Object.assign(de,Ze)}}class Ce{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 de=new ge;return this.rules.slice(P).forEach(([He,Ze])=>de.addRule(He,Ze)),de.compile(),this.multiRegexes[P]=de,de}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(P,de){this.rules.push([P,de]),de.type==="begin"&&this.count++}exec(P){const de=this.getMatcher(this.regexIndex);de.lastIndex=this.lastIndex;let He=de.exec(P);if(this.resumingScanAtSamePosition()&&!(He&&He.index===this.lastIndex)){const Ze=this.getMatcher(0);Ze.lastIndex=this.lastIndex+1,He=Ze.exec(P)}return He&&(this.regexIndex+=He.position+1,this.regexIndex===this.count&&this.considerAll()),He}}function Pe(z){const P=new Ce;return z.contains.forEach(de=>P.addRule(de.begin,{rule:de,type:"begin"})),z.terminatorEnd&&P.addRule(z.terminatorEnd,{type:"end"}),z.illegal&&P.addRule(z.illegal,{type:"illegal"}),P}function Qe(z,P){const de=z;if(z.isCompiled)return de;[Me,$n,zn,yn].forEach(Ze=>Ze(z,P)),O.compilerExtensions.forEach(Ze=>Ze(z,P)),z.__beforeBegin=null,[Nt,Be,tt].forEach(Ze=>Ze(z,P)),z.isCompiled=!0;let He=null;return typeof z.keywords=="object"&&z.keywords.$pattern&&(z.keywords=Object.assign({},z.keywords),He=z.keywords.$pattern,delete z.keywords.$pattern),He=He||/\w+/,z.keywords&&(z.keywords=Jt(z.keywords,O.case_insensitive)),de.keywordPatternRe=ne(He,!0),P&&(z.begin||(z.begin=/\B|\b/),de.beginRe=ne(de.begin),!z.end&&!z.endsWithParent&&(z.end=/\B|\b/),z.end&&(de.endRe=ne(de.end)),de.terminatorEnd=v(de.end)||"",z.endsWithParent&&P.terminatorEnd&&(de.terminatorEnd+=(z.end?"|":"")+P.terminatorEnd)),z.illegal&&(de.illegalRe=ne(z.illegal)),z.contains||(z.contains=[]),z.contains=[].concat(...z.contains.map(function(Ze){return en(Ze==="self"?z:Ze)})),z.contains.forEach(function(Ze){Qe(Ze,de)}),z.starts&&Qe(z.starts,P),de.matcher=Pe(de),de}if(O.compilerExtensions||(O.compilerExtensions=[]),O.contains&&O.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return O.classNameAliases=l(O.classNameAliases||{}),Qe(O)}function Ot(O){return O?O.endsWithParent||Ot(O.starts):!1}function en(O){return O.variants&&!O.cachedVariants&&(O.cachedVariants=O.variants.map(function(ne){return l(O,{variants:null},ne)})),O.cachedVariants?O.cachedVariants:Ot(O)?l(O,{starts:O.starts?l(O.starts):null}):Object.isFrozen(O)?l(O):O}var kt="11.12.0";class Un extends Error{constructor(ne,ge){super(ne),this.name="HTMLInjectionError",this.html=ge}}const Rn=r,tn=l,Ue=Symbol("nomatch"),nn=7,an=function(O){const ne=Object.create(null),ge=Object.create(null),Ce=[];let Pe=!0;const Qe="Could not find the language '{}', did you forget to load/include a language module?",z={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 de(fe){return P.noHighlightRe.test(fe)}function He(fe){let Re=fe.className+" ";Re+=fe.parentNode?fe.parentNode.className:"";const $e=P.languageDetectRe.exec(Re);if($e){const ct=fn($e[1]);return ct||(Lt(Qe.replace("{}",$e[1])),Lt("Falling back to no-highlight mode for this block.",fe)),ct?$e[1]:"no-highlight"}return Re.split(/\s+/).find(ct=>de(ct)||fn(ct))}function Ze(fe,Re,$e){let ct="",Tt="";typeof Re=="object"?(ct=fe,$e=Re.ignoreIllegals,Tt=Re.language):(rt("10.7.0","highlight(lang, code, ...args) has been deprecated."),rt("10.7.0",`Please use highlight(code, options) instead.
|
|
165
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Tt=fe,ct=Re),$e===void 0&&($e=!0);const Ht={code:ct,language:Tt};On("before:highlight",Ht);const sn=Ht.result?Ht.result:un(Ht.language,Ht.code,$e);return sn.code=Ht.code,On("after:highlight",sn),sn}function un(fe,Re,$e,ct){const Tt=Object.create(null);function Ht(oe,ve){return oe.keywords[ve]}function sn(){if(!V.keywords){j.addText(ee);return}let oe=0;V.keywordPatternRe.lastIndex=0;let ve=V.keywordPatternRe.exec(ee),Oe="";for(;ve;){Oe+=ee.substring(oe,ve.index);const Fe=qt.case_insensitive?ve[0].toLowerCase():ve[0],Xe=Ht(V,Fe);if(Xe){const[ta,Gl]=Xe;if(j.addText(Oe),Oe="",Tt[Fe]=(Tt[Fe]||0)+1,Tt[Fe]<=nn&&(_e+=Gl),ta.startsWith("_"))Oe+=ve[0];else{const Fs=qt.classNameAliases[ta]||ta;At(ve[0],Fs)}}else Oe+=ve[0];oe=V.keywordPatternRe.lastIndex,ve=V.keywordPatternRe.exec(ee)}Oe+=ee.substring(oe),j.addText(Oe)}function Ut(){if(ee==="")return;let oe=null;if(typeof V.subLanguage=="string"){if(!ne[V.subLanguage]){j.addText(ee);return}oe=un(V.subLanguage,ee,!0,T[V.subLanguage]),T[V.subLanguage]=oe._top}else oe=ei(ee,V.subLanguage.length?V.subLanguage:null);V.relevance>0&&(_e+=oe.relevance),j.__addSublanguage(oe._emitter,oe.language)}function ut(){V.subLanguage!=null?Ut():sn(),ee=""}function At(oe,ve){oe!==""&&(j.startScope(ve),j.addText(oe),j.endScope())}function nl(oe,ve){let Oe=1;const Fe=ve.length-1;for(;Oe<=Fe;){if(!oe._emit[Oe]){Oe++;continue}const Xe=qt.classNameAliases[oe[Oe]]||oe[Oe],ta=ve[Oe];Xe?At(ta,Xe):(ee=ta,sn(),ee=""),Oe++}}function ai(oe,ve){return oe.scope&&typeof oe.scope=="string"&&j.openNode(qt.classNameAliases[oe.scope]||oe.scope),oe.beginScope&&(oe.beginScope._wrap?(At(ee,qt.classNameAliases[oe.beginScope._wrap]||oe.beginScope._wrap),ee=""):oe.beginScope._multi&&(nl(oe.beginScope,ve),ee="")),V=Object.create(oe,{parent:{value:V}}),V}function ii(oe,ve,Oe){let Fe=D(oe.endRe,Oe);if(Fe){if(oe["on:end"]){const Xe=new i(oe);oe["on:end"](ve,Xe),Xe.isMatchIgnored&&(Fe=!1)}if(Fe){for(;oe.endsParent&&oe.parent;)oe=oe.parent;return oe}}if(oe.endsWithParent)return ii(oe.parent,ve,Oe)}function Da(oe){return V.matcher.regexIndex===0?(ee+=oe[0],1):(Ve=!0,0)}function al(oe){const ve=oe[0],Oe=oe.rule,Fe=new i(Oe),Xe=[Oe.__beforeBegin,Oe["on:begin"]];for(const ta of Xe)if(ta&&(ta(oe,Fe),Fe.isMatchIgnored))return Da(ve);return Oe.skip?ee+=ve:(Oe.excludeBegin&&(ee+=ve),ut(),!Oe.returnBegin&&!Oe.excludeBegin&&(ee=ve)),ai(Oe,oe),Oe.returnBegin?0:ve.length}function Nn(oe){const ve=oe[0],Oe=Re.substring(oe.index),Fe=ii(V,oe,Oe);if(!Fe)return Ue;const Xe=V;V.endScope&&V.endScope._wrap?(ut(),At(ve,V.endScope._wrap)):V.endScope&&V.endScope._multi?(ut(),nl(V.endScope,oe)):Xe.skip?ee+=ve:(Xe.returnEnd||Xe.excludeEnd||(ee+=ve),ut(),Xe.excludeEnd&&(ee=ve));do V.scope&&j.closeNode(),!V.skip&&!V.subLanguage&&(_e+=V.relevance),V=V.parent;while(V!==Fe.parent);return Fe.starts&&ai(Fe.starts,oe),Xe.returnEnd?0:ve.length}function li(){const oe=[];for(let ve=V;ve!==qt;ve=ve.parent)ve.scope&&oe.unshift(ve.scope);oe.forEach(ve=>j.openNode(ve))}let La={};function si(oe,ve){const Oe=ve&&ve[0];if(ee+=oe,Oe==null)return ut(),0;if(La.type==="begin"&&ve.type==="end"&&La.index===ve.index&&Oe===""){if(ee+=Re.slice(ve.index,ve.index+1),!Pe){const Fe=new Error(`0 width match regex (${fe})`);throw Fe.languageName=fe,Fe.badRule=La.rule,Fe}return 1}if(La=ve,ve.type==="begin")return al(ve);if(ve.type==="illegal"&&!$e){const Fe=new Error('Illegal lexeme "'+Oe+'" for mode "'+(V.scope||"<unnamed>")+'"');throw Fe.mode=V,Fe}else if(ve.type==="end"){const Fe=Nn(ve);if(Fe!==Ue)return Fe}if(ve.type==="illegal"&&Oe==="")return ve.index===Re.length||(ee+=`
|
|
166
|
+
`),1;if(Ie>1e5&&Ie>ve.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ee+=Oe,Oe.length}const qt=fn(fe);if(!qt)throw it(Qe.replace("{}",fe)),new Error('Unknown language: "'+fe+'"');const za=_n(qt);let Sa="",V=ct||za;const T={},j=new P.__emitter(P);li();let ee="",_e=0,we=0,Ie=0,Ve=!1;try{if(qt.__emitTokens)qt.__emitTokens(Re,j);else{for(V.matcher.considerAll();;){Ie++,Ve?Ve=!1:V.matcher.considerAll(),V.matcher.lastIndex=we;const oe=V.matcher.exec(Re);if(!oe)break;const ve=Re.substring(we,oe.index),Oe=si(ve,oe);we=oe.index+Oe}si(Re.substring(we))}return j.finalize(),Sa=j.toHTML(),{language:fe,value:Sa,relevance:_e,illegal:!1,_emitter:j,_top:V}}catch(oe){if(oe.message&&oe.message.includes("Illegal"))return{language:fe,value:Rn(Re),illegal:!0,relevance:0,_illegalBy:{message:oe.message,index:we,context:Re.slice(we-100,we+100),mode:oe.mode,resultSoFar:Sa},_emitter:j};if(Pe)return{language:fe,value:Rn(Re),illegal:!1,relevance:0,errorRaised:oe,_emitter:j,_top:V};throw oe}}function Fn(fe){const Re={value:Rn(fe),illegal:!1,relevance:0,_top:z,_emitter:new P.__emitter(P)};return Re._emitter.addText(fe),Re}function ei(fe,Re){Re=Re||P.languages||Object.keys(ne);const $e=Fn(fe),ct=Re.filter(fn).filter(Ea).map(ut=>un(ut,fe,!1));ct.unshift($e);const Tt=ct.sort((ut,At)=>{if(ut.relevance!==At.relevance)return At.relevance-ut.relevance;if(ut.language&&At.language){if(fn(ut.language).supersetOf===At.language)return 1;if(fn(At.language).supersetOf===ut.language)return-1}return 0}),[Ht,sn]=Tt,Ut=Ht;return Ut.secondBest=sn,Ut}function Sn(fe,Re,$e){const ct=Re&&ge[Re]||$e;fe.classList.add("hljs"),fe.classList.add(`language-${ct}`)}function Mt(fe){let Re=null;const $e=He(fe);if(de($e))return;if(On("before:highlightElement",{el:fe,language:$e}),fe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",fe);return}if(fe.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(fe)),P.throwUnescapedHTML))throw new Un("One of your code blocks includes unescaped HTML.",fe.innerHTML);Re=fe;const ct=Re.textContent,Tt=$e?Ze(ct,{language:$e,ignoreIllegals:!0}):ei(ct);fe.innerHTML=Tt.value,fe.dataset.highlighted="yes",Sn(fe,$e,Tt.language),fe.result={language:Tt.language,re:Tt.relevance,relevance:Tt.relevance},Tt.secondBest&&(fe.secondBest={language:Tt.secondBest.language,relevance:Tt.secondBest.relevance}),On("after:highlightElement",{el:fe,result:Tt,text:ct})}function ln(fe){P=tn(P,fe)}const ot=()=>{Ma(),rt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ea(){Ma(),rt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let tl=!1;function Ma(){function fe(){Ma()}if(document.readyState==="loading"){tl||window.addEventListener("DOMContentLoaded",fe,!1),tl=!0;return}document.querySelectorAll(P.cssSelector).forEach(Mt)}function ti(fe,Re){let $e=null;try{$e=Re(O)}catch(ct){if(it("Language definition for '{}' could not be registered.".replace("{}",fe)),Pe)it(ct);else throw ct;$e=z}$e.name||($e.name=fe),ne[fe]=$e,$e.rawDefinition=Re.bind(null,O),$e.aliases&&ua($e.aliases,{languageName:fe})}function va(fe){delete ne[fe];for(const Re of Object.keys(ge))ge[Re]===fe&&delete ge[Re]}function ni(){return Object.keys(ne)}function fn(fe){return fe=(fe||"").toLowerCase(),ne[fe]||ne[ge[fe]]}function ua(fe,{languageName:Re}){typeof fe=="string"&&(fe=[fe]),fe.forEach($e=>{ge[$e.toLowerCase()]=Re})}function Ea(fe){const Re=fn(fe);return Re&&!Re.disableAutodetect}function _a(fe){fe["before:highlightBlock"]&&!fe["before:highlightElement"]&&(fe["before:highlightElement"]=Re=>{fe["before:highlightBlock"](Object.assign({block:Re.el},Re))}),fe["after:highlightBlock"]&&!fe["after:highlightElement"]&&(fe["after:highlightElement"]=Re=>{fe["after:highlightBlock"](Object.assign({block:Re.el},Re))})}function mt(fe){_a(fe),Ce.push(fe)}function Ca(fe){const Re=Ce.indexOf(fe);Re!==-1&&Ce.splice(Re,1)}function On(fe,Re){const $e=fe;Ce.forEach(function(ct){ct[$e]&&ct[$e](Re)})}function fa(fe){return rt("10.7.0","highlightBlock will be removed entirely in v12.0"),rt("10.7.0","Please use highlightElement now."),Mt(fe)}Object.assign(O,{highlight:Ze,highlightAuto:ei,highlightAll:Ma,highlightElement:Mt,highlightBlock:fa,configure:ln,initHighlighting:ot,initHighlightingOnLoad:ea,registerLanguage:ti,unregisterLanguage:va,listLanguages:ni,getLanguage:fn,registerAliases:ua,autoDetection:Ea,inherit:tn,addPlugin:mt,removePlugin:Ca}),O.debugMode=function(){Pe=!1},O.safeMode=function(){Pe=!0},O.versionString=kt,O.regex={concat:x,lookahead:_,either:U,optional:N,anyNumberOfTimes:w};for(const fe in je)typeof je[fe]=="object"&&s(je[fe]);return Object.assign(O,je),O},zt=an({});return zt.newInstance=()=>an({}),Cu=zt,zt.HighlightJS=zt,zt.default=zt,Cu}var Du,sg;function r0(){if(sg)return Du;sg=1;function s(i){const r=i.regex,l=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,d={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},p={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},y=i.inherit(p,{begin:/\(/,end:/\)/}),g=i.inherit(i.APOS_STRING_MODE,{className:"string"}),m=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[d]},{begin:/'/,end:/'/,contains:[d]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[p,m,g,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[p,y,m,g]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},d,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(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 Du=s,Du}var Lu,rg;function o0(){if(rg)return Lu;rg=1;function s(i){const r=i.regex,l={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[l]}]};Object.assign(l,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const d={className:"subst",begin:/\$\(/,end:/\)/,contains:[i.BACKSLASH_ESCAPE]},p=i.inherit(i.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),y={begin:/<<-?\s*(?=\w+)/,starts:{contains:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},g={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,l,d]};d.contains.push(g);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},i.NUMBER_MODE,l]},w=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],N=i.SHEBANG({binary:`(${w.join("|")})`,relevance:10}),x={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[i.inherit(i.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},A=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],U=["true","false"],G={match:/(\/[a-z._-]+)+/},D=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],re=["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"],Z=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:A,literal:U,built_in:[...D,...re,"set","shopt",...H,...Z]},contains:[N,i.SHEBANG(),x,_,p,y,G,g,m,b,v,l]}}return Lu=s,Lu}var zu,og;function c0(){if(og)return zu;og=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g=r.concat(/\batomic_/,r.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),m={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:g}]},v={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[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},w={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},v,{scope:"string",begin:/<.*?>/},l,i.C_BLOCK_COMMENT_MODE]},N={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},i.inherit(v,{className:"string"}),l,i.C_BLOCK_COMMENT_MODE]},x=[w,N],A={className:"title",begin:r.optional(d)+i.IDENT_RE,relevance:0},U=r.optional(d)+i.IDENT_RE+"\\s*\\(",G=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"},Z=[...x,m,l,i.C_BLOCK_COMMENT_MODE,_,v],le={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:H,contains:Z.concat([{begin:/\(/,end:/\)/,keywords:H,contains:Z.concat(["self"]),relevance:0}]),relevance:0},k={begin:"("+y+"[\\*&\\s]+){1,"+G+"}"+U,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:H,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:H,relevance:0},{begin:U,returnBegin:!0,contains:[i.inherit(A,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,v,_,m,{begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,v,_,m]}]},m,l,i.C_BLOCK_COMMENT_MODE,...x]};return{name:"C",aliases:["h"],keywords:H,disableAutodetect:!0,illegal:"</",contains:[].concat(le,k,Z,[...x,{begin:i.IDENT_RE+"::",keywords:H},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},i.TITLE_MODE]}]),exports:{preprocessor:N,strings:v,keywords:H}}}return zu=s,zu}var Uu,cg;function u0(){if(cg)return Uu;cg=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",g={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})"/})]},v={className:"number",variants:[{begin:"[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},_={scope:"meta",begin:/#\s*include\b/,end:/$/,keywords:{keyword:"include"},contains:[{begin:/\\\n/},b,{scope:"string",begin:/<.*?>/},l,i.C_BLOCK_COMMENT_MODE]},w={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},i.inherit(b,{className:"string"}),l,i.C_BLOCK_COMMENT_MODE]},N=[_,w],x={className:"title",begin:r.optional(d)+i.IDENT_RE,relevance:0},A=r.optional(d)+i.IDENT_RE+"\\s*\\(",U=12,G=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],D=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],re=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],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"],k={type:D,keyword:G,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:re},L={className:"function.dispatch",relevance:0,keywords:{_hint:H},begin:r.concat(/\b/,`(?!${G.join("|")})`,i.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},X=[L,...N,g,l,i.C_BLOCK_COMMENT_MODE,v,b],F={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:X.concat([{begin:/\(/,end:/\)/,keywords:k,contains:X.concat(["self"]),relevance:0}]),relevance:0},he={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+U+"}"+A,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:k,relevance:0},{begin:A,returnBegin:!0,contains:[x],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,b,v,g,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,b,v,g]}]},g,l,i.C_BLOCK_COMMENT_MODE,...N]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(F,he,L,X,[...N,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:k,contains:["self",g]},{begin:i.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Uu=s,Uu}var ju,ug;function f0(){if(ug)return ju;ug=1;function s(i){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],l=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],d=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],p=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],y={keyword:d.concat(p),built_in:r,literal:u},g=i.inherit(i.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",_={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+b},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+b},{begin:"(-?)(\\b"+m+"(\\.("+m+")?)?|\\."+m+")([eE][-+]?"+m+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},w={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},N={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},x=i.inherit(N,{illegal:/\n/}),A={className:"subst",begin:/\{/,end:/\}/,keywords:y},U=i.inherit(A,{illegal:/\n/}),G={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},i.BACKSLASH_ESCAPE,U]},D={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},A]},re=i.inherit(D,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},U]});A.contains=[D,G,N,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.C_BLOCK_COMMENT_MODE],U.contains=[re,G,x,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.inherit(i.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const H={variants:[w,D,G,N,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},Z={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},le=i.IDENT_RE+"(<"+i.IDENT_RE+"(\\s*,\\s*"+i.IDENT_RE+")*>)?(\\[\\])?",k={begin:"@"+i.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:y,illegal:/::/,contains:[i.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},H,_,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,Z,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,Z,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:"("+le+"\\s+)+"+i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:y,contains:[{beginKeywords:l.join(" "),relevance:0},{begin:i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[i.TITLE_MODE,Z],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,relevance:0,contains:[H,_,i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},k]}}return ju=s,ju}var Bu,fg;function d0(){if(fg)return Bu;fg=1;const s=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=m.regex,v=s(m),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},w="and or not only",N=/@-?\w[\w]*(-\w+)*/,x="[a-zA-Z-][a-zA-Z0-9_-]*",A=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[v.BLOCK_COMMENT,_,v.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+x,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+d.join("|")+")"},{begin:":(:)?("+p.join("|")+")"}]},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[v.BLOCK_COMMENT,v.HEXCOLOR,v.IMPORTANT,v.CSS_NUMBER_MODE,v.UNICODE_RANGE,...A,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...A,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},v.FUNCTION_DISPATCH]},{begin:b.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:N},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:w,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...A,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b"}]}}return Bu=g,Bu}var Iu,dg;function h0(){if(dg)return Iu;dg=1;function s(i){const r=i.regex,l={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},d={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},p={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},y={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},v={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},_=i.inherit(b,{contains:[]}),w=i.inherit(v,{contains:[]});b.contains.push(w),v.contains.push(_);let N=[l,m];return[b,v,_,w].forEach(G=>{G.contains=G.contains.concat(N)}),N=N.concat(b,v),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:N},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:N}]}]},l,p,u,b,v,{className:"quote",begin:"^>\\s+",contains:N,end:"$"},d,m,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Iu=s,Iu}var Hu,hg;function p0(){if(hg)return Hu;hg=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 Hu=s,Hu}var qu,pg;function m0(){if(pg)return qu;pg=1;function s(i){const r=i.regex,l="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),d=r.concat(u,/(::\w+)*/),y={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},b=[i.COMMENT("#","$",{contains:[g]}),i.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),i.COMMENT("^__END__",i.MATCH_NOTHING_RE)],v={className:"subst",begin:/#\{/,end:/\}/,keywords:y},_={className:"string",contains:[i.BACKSLASH_ESCAPE,v],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:r.concat(/<<[-~]?'?/,r.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[i.BACKSLASH_ESCAPE,v]})]}]},w="[1-9](_?[0-9])*|0",N="[0-9](_?[0-9])*",x={className:"number",relevance:0,variants:[{begin:`\\b(${w})(\\.(${N}))?([eE][+-]?(${N})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},A={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},le=[_,{variants:[{match:[/class\s+/,d,/\s+<\s+/,d]},{match:[/\b(class|module)\s+/,d]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:y},{match:[/(include|extend)\s+/,d],scope:{2:"title.class"},keywords:y},{relevance:0,match:[d,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:u,scope:"title.class"},{match:[/def/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[A]},{begin:"::"},{className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:l}],relevance:0},x,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:y},{begin:"("+i.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[i.BACKSLASH_ESCAPE,v],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,b),relevance:0}].concat(m,b);v.contains=le,A.contains=le;const F=[{begin:/^\s*=>/,starts:{end:"$",contains:le}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:y,contains:le}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[i.SHEBANG({binary:"ruby"})].concat(F).concat(b).concat(le)}}return qu=s,qu}var Gu,mg;function g0(){if(mg)return Gu;mg=1;function s(i){const p={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:p,illegal:"</",contains:[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:p,illegal:/["']/}]}]}}return Gu=s,Gu}var $u,gg;function b0(){if(gg)return $u;gg=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 $u=s,$u}var Yu,bg;function y0(){if(bg)return Yu;bg=1;function s(i){const r=i.regex,l={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:i.NUMBER_RE}]},u=i.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const d={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},p={className:"literal",begin:/\bon|off|true|false|yes|no\b/},y={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[u,p,d,y,l,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,_=r.either(m,b,v),w=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:w,className:"attr",starts:{end:/$/,contains:[u,g,p,d,y,l]}}]}}return Yu=s,Yu}var Fu,yg;function v0(){if(yg)return Fu;yg=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(p,y,g){return g===-1?"":p.replace(y,m=>u(p,y,g-1))}function d(p){const y=p.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=g+"<@@@>"+m,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",w=u("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),G={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},D={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},re={className:"params",begin:/\(/,end:/\)/,keywords:G,relevance:0,contains:[p.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:G,illegal:/<\/|#/,contains:[p.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[p.BACKSLASH_ESCAPE]},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,g],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[g,y.concat(w,m,/\s+/),g,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[re,p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},{begin:[g,y.concat(w,m,/\s+/),g,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:G,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:G,relevance:0,contains:[D,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,l,p.C_BLOCK_COMMENT_MODE]},p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE]},l,D]}}return Fu=d,Fu}var Ku,vg;function E0(){if(vg)return Ku;vg=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",i=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],l=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],d=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(d,l,u);function g(m){const b=m.regex,v=(pe,{after:ke})=>{const Ae="</"+pe[0].slice(1);return pe.input.indexOf(Ae,ke)!==-1},_=s,w={begin:"<>",end:"</>"},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,x={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(pe,ke)=>{const Ae=pe[0].length+pe.index,je=pe.input[Ae];if(je==="<"||je===","){ke.ignoreMatch();return}je===">"&&(v(pe,{after:Ae})||ke.ignoreMatch());let Le;const Me=pe.input.substring(Ae);if(Le=Me.match(/^\s*=/)){ke.ignoreMatch();return}if((Le=Me.match(/^\s+extends\s+/))&&Le.index===0){ke.ignoreMatch();return}}},A={$pattern:s,keyword:i,literal:r,built_in:y,"variable.language":p},U="[0-9](_?[0-9])*",G=`\\.(${U})`,D="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",re={className:"number",variants:[{begin:`(\\b(${D})((${G})|\\.)?|(${G}))[eE][+-]?(${U})\\b`},{begin:`\\b(${D})\\b((${G})\\b|\\.)?|(${G})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},H={className:"subst",begin:"\\$\\{",end:"\\}",keywords:A,contains:[]},Z={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,H],subLanguage:"xml"}},le={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,H],subLanguage:"css"}},k={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,H],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,H]},F={className:"comment",variants:[m.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:_+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},he=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,Z,le,k,L,{match:/\$\d+/},re];H.contains=he.concat({begin:/\{/,end:/\}/,keywords:A,contains:["self"].concat(he)});const Ne=[].concat(F,H.contains),Se=Ne.concat([{begin:/(\s*)\(/,end:/\)/,keywords:A,contains:["self"].concat(Ne)}]),me={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:A,contains:Se},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"}}]},ie={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},ce={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ye={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[me],illegal:/%/},Ee={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function S(pe){return b.concat("(?!",pe.join("|"),")")}const C={match:b.concat(/\b/,S([...d,"super","import","await"].map(pe=>`${pe}\\s*\\(`)),_,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},q={begin:b.concat(/\./,b.lookahead(b.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ue={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},me]},W="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",be={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(W)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[me]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:A,exports:{PARAMS_CONTAINS:Se,CLASS_REFERENCE:ie},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),ce,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,Z,le,k,L,F,{match:/\$\d+/},re,ie,{scope:"attr",match:_+b.lookahead(":"),relevance:0},be,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,m.REGEXP_MODE,{className:"function",begin:W,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:A,contains:Se}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:w.begin,end:w.end},{match:N},{begin:x.begin,"on:begin":x.isTrulyOpeningTag,end:x.end}],subLanguage:"xml",contains:[{begin:x.begin,end:x.end,skip:!0,contains:["self"]}]}]},ye,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[me,m.inherit(m.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[me]},C,Ee,I,ue,{match:/\$[(.]/}]}}return Ku=g,Ku}var Pu,Eg;function _0(){if(Eg)return Pu;Eg=1;const i={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(l){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},d={match:/[{}[\],:]/,className:"punctuation",relevance:0},p=["true","false","null"],y={scope:"literal",beginKeywords:p.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:p},contains:[u,d,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,i,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Pu=r,Pu}var Zu,_g;function S0(){if(_g)return Zu;_g=1;var s="[0-9](_*[0-9])*",i=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(d){const p={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},y={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},g={className:"symbol",begin:d.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[d.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+d.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[d.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[d.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+d.UNDERSCORE_IDENT_RE+")?"},w={className:"meta",begin:"@"+d.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[d.inherit(v,{className:"string"}),"self"]}]},N=l,x=d.COMMENT("/\\*","\\*/",{contains:[d.C_BLOCK_COMMENT_MODE]}),A={variants:[{className:"type",begin:d.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},U=A;return U.variants[1].contains=[A],A.variants[1].contains=[U],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:p,contains:[d.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),d.C_LINE_COMMENT_MODE,x,y,g,_,w,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:p,relevance:5,contains:[{begin:d.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[d.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:p,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[A,d.C_LINE_COMMENT_MODE,x],relevance:0},d.C_LINE_COMMENT_MODE,x,_,w,v,d.C_NUMBER_MODE]},x]},{begin:[/class|interface|trait/,/\s+/,d.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},d.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,w]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
167
|
+
`},N]}}return Zu=u,Zu}var Xu,Sg;function N0(){if(Sg)return Xu;Sg=1;const s=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),g=d.concat(p).sort().reverse();function m(b){const v=s(b),_=g,w="and or not only",N="[\\w-]+",x="("+N+"|@\\{"+N+"\\})",A=[],U=[],G=function(Ne){return{className:"string",begin:"~?"+Ne+".*?"+Ne}},D=function(Ne,Se,me){return{className:Ne,begin:Se,relevance:me}},re={$pattern:/[a-z-]+/,keyword:w,attribute:u.join(" ")},H={begin:"\\(",end:"\\)",contains:U,keywords:re,relevance:0};U.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,G("'"),G('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,H,D("variable","@@?"+N,10),D("variable","@\\{"+N+"\\}"),D("built_in","~?`[^`]*?`"),{className:"attribute",begin:N+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const Z=U.concat({begin:/\{/,end:/\}/,contains:A}),le={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(U)},k={begin:x+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:U}}]},L={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:re,returnEnd:!0,contains:U,relevance:0}},X={className:"variable",variants:[{begin:"@"+N+"\\s*:",relevance:15},{begin:"@"+N}],starts:{end:"[;}]",returnEnd:!0,contains:Z}},F={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:x,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,le,D("keyword","all\\b"),D("variable","@\\{"+N+"\\}"),{begin:"\\b("+l.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,D("selector-tag",x,0),D("selector-id","#"+x),D("selector-class","\\."+x,0),D("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+d.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:Z},{begin:"!important"},v.FUNCTION_DISPATCH]},he={begin:N+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[F]};return A.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,L,X,he,k,F,le,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:A}}return Xu=m,Xu}var Qu,Ng;function T0(){if(Ng)return Qu;Ng=1;function s(i){const r="\\[=*\\[",l="\\]=*\\]",u={begin:r,end:l,contains:["self"]},d=[i.COMMENT("--(?!"+r+")","$"),i.COMMENT("--"+r,l,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:i.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:d.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[i.inherit(i.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:d}].concat(d)},i.C_NUMBER_MODE,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{className:"string",begin:r,end:l,contains:[u],relevance:5}])}}return Qu=s,Qu}var Vu,Tg;function w0(){if(Tg)return Vu;Tg=1;function s(i){const r={className:"variable",variants:[{begin:"\\$\\("+i.UNDERSCORE_IDENT_RE+"\\)",contains:[i.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},l={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,r]},u={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,l]},d={begin:"^"+i.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},p={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},y={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[i.HASH_COMMENT_MODE,r,l,u,d,p,y]}}return Vu=s,Vu}var Ju,wg;function x0(){if(wg)return Ju;wg=1;function s(i){const r=i.regex,l=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,d={$pattern:/[\w.]+/,keyword:l.join(" ")},p={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:d},y={begin:/->\{/,end:/\}/},g={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[g]},b={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},v=[i.BACKSLASH_ESCAPE,p,m],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],w=(A,U,G="\\1")=>{const D=G==="\\1"?G:r.concat(G,U);return r.concat(r.concat("(?:",A,")"),U,/(?:\\.|[^\\\/])*?/,D,/(?:\\.|[^\\\/])*?/,G,u)},N=(A,U,G)=>r.concat(r.concat("(?:",A,")"),U,/(?:\\.|[^\\\/])*?/,G,u),x=[m,i.HASH_COMMENT_MODE,i.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),y,{className:"string",contains:v,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[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:w("s|tr|y",r.either(..._,{capture:!0}))},{begin:w("s|tr|y","\\(","\\)")},{begin:w("s|tr|y","\\[","\\]")},{begin:w("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:N("(?:m|qr)?",/\//,/\//)},{begin:N("m|qr",r.either(..._,{capture:!0}),/\1/)},{begin:N("m|qr",/\(/,/\)/)},{begin:N("m|qr",/\[/,/\]/)},{begin:N("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[i.TITLE_MODE,g]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[i.TITLE_MODE,g,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return p.contains=x,y.contains=x,{name:"Perl",aliases:["pl","pm"],keywords:d,contains:x}}return Ju=s,Ju}var Wu,xg;function A0(){if(xg)return Wu;xg=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_]*/,g={"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"]},m={$pattern:l,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:g,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:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[i.UNDERSCORE_TITLE_MODE]},{begin:"\\."+i.UNDERSCORE_IDENT_RE,relevance:0}]}}return Wu=s,Wu}var ef,Ag;function R0(){if(Ag)return ef;Ag=1;function s(i){const r=i.regex,l=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,l),d=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,l),p=r.concat(/[A-Z]+/,l),y={scope:"variable",match:"\\$+"+u},g={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=i.inherit(i.APOS_STRING_MODE,{illegal:null}),v=i.inherit(i.QUOTE_STRING_MODE,{illegal:null,contains:i.QUOTE_STRING_MODE.contains.concat(m)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:i.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(me,I)=>{I.data._beginMatch=me[1]||me[2]},"on:end":(me,I)=>{I.data._beginMatch!==me[1]&&I.ignoreMatch()}},w=i.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),N=`[
|
|
168
|
+
]`,x={scope:"string",variants:[v,b,_,w]},A={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},U=["false","null","true"],G=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],D=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],H={keyword:G,literal:(me=>{const I=[];return me.forEach(ie=>{I.push(ie),ie.toLowerCase()===ie?I.push(ie.toUpperCase()):I.push(ie.toLowerCase())}),I})(U),built_in:D},Z=me=>me.map(I=>I.replace(/\|\d+$/,"")),le={variants:[{match:[/new/,r.concat(N,"+"),r.concat("(?!",Z(D).join("\\b|"),"\\b)"),d],scope:{1:"keyword",4:"title.class"}}]},k=r.concat(u,"\\b(?!\\()"),L={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),k],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[d,r.concat(/::/,r.lookahead(/(?!class\b)/)),k],scope:{1:"title.class",3:"variable.constant"}},{match:[d,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[d,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},X={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},F={relevance:0,begin:/\(/,end:/\)/,keywords:H,contains:[X,y,L,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,x,A,le]},he={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",Z(G).join("\\b|"),"|",Z(D).join("\\b|"),"\\b)"),u,r.concat(N,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[F]};F.contains.push(he);const Ne=[X,L,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,x,A,le],Se={begin:r.concat(/#\[\s*\\?/,r.either(d,p)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:U,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:U,keyword:["new","array"]},contains:["self",...Ne]},...Ne,{scope:"meta",variants:[{match:d},{match:p}]}]};return{case_insensitive:!1,keywords:H,contains:[Se,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}]}},g,{scope:"variable.language",match:/\$this\b/},y,he,L,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},le,{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",Se,y,L,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,x,A]}]},{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]},x,A]}}return ef=s,ef}var tf,Rg;function O0(){if(Rg)return tf;Rg=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 tf=s,tf}var nf,Og;function k0(){if(Og)return nf;Og=1;function s(i){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return nf=s,nf}var af,kg;function M0(){if(kg)return af;kg=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"],g={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},v={begin:/\{\{/,relevance:0},_={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,m,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,m,v,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[i.BACKSLASH_ESCAPE,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,v,b]},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},w="[0-9](_?[0-9])*",N=`(\\b(${w}))?\\.(${w})|\\b(${w})\\.`,x=`\\b|${u.join("|")}`,A={className:"number",relevance:0,variants:[{begin:`(\\b(${w})|(${N}))[eE][+-]?(${w})[jJ]?(?=${x})`},{begin:`(${N})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${x})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${x})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${x})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${x})`},{begin:`\\b(${w})[jJ](?=${x})`}]},U={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},G={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",m,A,_,i.HASH_COMMENT_MODE]}]};return b.contains=[_,A,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[m,A,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,U,i.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[G]},{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:[A,G,_]}]}}return af=s,af}var lf,Mg;function C0(){if(Mg)return lf;Mg=1;function s(i){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return lf=s,lf}var sf,Cg;function D0(){if(Cg)return sf;Cg=1;function s(i){const r=i.regex,l=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),d=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,p=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:l,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[i.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:l},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),i.HASH_COMMENT_MODE,{scope:"string",contains:[i.BACKSLASH_ESCAPE],variants:[i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[d,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[p,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[l,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:d},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:p},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return sf=s,sf}var rf,Dg;function L0(){if(Dg)return rf;Dg=1;function s(i){const r=i.regex,l=/(r#)?/,u=r.concat(l,i.UNDERSCORE_IDENT_RE),d=r.concat(l,i.IDENT_RE),p={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,d,r.lookahead(/\s*\(/))},y="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",g=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],v=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:i.IDENT_RE+"!?",type:v,keyword:g,literal:m,built_in:b},illegal:"</",contains:[i.C_LINE_COMMENT_MODE,i.COMMENT("/\\*","\\*/",{contains:["self"]}),i.inherit(i.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+y},{begin:"\\b0o([0-7_]+)"+y},{begin:"\\b0x([A-Fa-f0-9_]+)"+y},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+y}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,u],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,u,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:i.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:v}},{scope:"punctuation",begin:"->"},p]}}return rf=s,rf}var of,Lg;function z0(){if(Lg)return of;Lg=1;const s=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),p=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function g(m){const b=s(m),v=p,_=d,w="@[a-z-]+",N="and or not only",A={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},A,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,A,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:w,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:N,attribute:u.join(" ")},contains:[{begin:w,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},A,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return of=g,of}var cf,zg;function U0(){if(zg)return cf;zg=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 cf=s,cf}var uf,Ug;function j0(){if(Ug)return uf;Ug=1;function s(i){const r=i.regex,l=i.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},d={begin:/"/,end:/"/,contains:[{match:/""/}]},p=["true","false","unknown"],y=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],v=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],_=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],w=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],N=v,x=[...b,...m].filter(Z=>!v.includes(Z)),A={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},U={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},G={match:r.concat(/\b/,r.either(...N),/\s*\(/),relevance:0,keywords:{built_in:N}};function D(Z){return r.concat(/\b/,r.either(...Z.map(le=>le.replace(/\s+/,"\\s+"))),/\b/)}const re={scope:"keyword",match:D(w),relevance:0};function H(Z,{exceptions:le,when:k}={}){const L=k;return le=le||[],Z.map(X=>X.match(/\|\d+$/)||le.includes(X)?X:L(X)?`${X}|0`:X)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:H(x,{when:Z=>Z.length<3}),literal:p,type:g,built_in:_},contains:[{scope:"type",match:D(y)},re,G,A,u,d,i.C_NUMBER_MODE,i.C_BLOCK_COMMENT_MODE,l,U]}}return uf=s,uf}var ff,jg;function B0(){if(jg)return ff;jg=1;function s(k){return k?typeof k=="string"?k:k.source:null}function i(k){return r("(?=",k,")")}function r(...k){return k.map(X=>s(X)).join("")}function l(k){const L=k[k.length-1];return typeof L=="object"&&L.constructor===Object?(k.splice(k.length-1,1),L):{}}function u(...k){return"("+(l(k).capture?"":"?:")+k.map(F=>s(F)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const d=k=>r(/\b/,k,/\w$/.test(k)?/\b/:/\B/),p=["Protocol","Type"].map(d),y=["init","self"].map(d),g=["Any","Self"],m=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],b=["false","nil","true"],v=["assignment","associativity","higherThan","left","lowerThan","none","right"],_=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],w=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],N=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),x=u(N,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),A=r(N,x,"*"),U=u(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),G=u(U,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),D=r(U,G,"*"),re=r(/[A-Z]/,G,"*"),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\(/,D,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Z=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function le(k){const L={match:/\s+/,relevance:0},X=k.COMMENT("/\\*","\\*/",{contains:["self"]}),F=[k.C_LINE_COMMENT_MODE,X],he={match:[/\./,u(...p,...y)],className:{2:"keyword"}},Ne={match:r(/\./,u(...m)),relevance:0},Se=m.filter(Ue=>typeof Ue=="string").concat(["_|0"]),me=m.filter(Ue=>typeof Ue!="string").concat(g).map(d),I={variants:[{className:"keyword",match:u(...me,...y)}]},ie={$pattern:u(/\b\w+/,/#\w+/),keyword:Se.concat(_),literal:b},ce=[he,Ne,I],ye={match:r(/\./,u(...w)),relevance:0},Ee={className:"built_in",match:r(/\b/,u(...w),/(?=\()/)},S=[ye,Ee],C={match:/->/,relevance:0},q={className:"operator",relevance:0,variants:[{match:A},{match:`\\.(\\.|${x})+`}]},ue=[C,q],W="([0-9]_*)+",be="([0-9a-fA-F]_*)+",pe={className:"number",relevance:0,variants:[{match:`\\b(${W})(\\.(${W}))?([eE][+-]?(${W}))?\\b`},{match:`\\b0x(${be})(\\.(${be}))?([pP][+-]?(${W}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ke=(Ue="")=>({className:"subst",variants:[{match:r(/\\/,Ue,/[0\\tnr"']/)},{match:r(/\\/,Ue,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ae=(Ue="")=>({className:"subst",match:r(/\\/,Ue,/[\t ]*(?:[\r\n]|\r\n)/)}),je=(Ue="")=>({className:"subst",label:"interpol",begin:r(/\\/,Ue,/\(/),end:/\)/}),Le=(Ue="")=>({begin:r(Ue,/"""/),end:r(/"""/,Ue),contains:[ke(Ue),Ae(Ue),je(Ue)]}),Me=(Ue="")=>({begin:r(Ue,/"/),end:r(/"/,Ue),contains:[ke(Ue),je(Ue)]}),Nt={className:"string",variants:[Le(),Le("#"),Le("##"),Le("###"),Me(),Me("#"),Me("##"),Me("###")]},Be=[k.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[k.BACKSLASH_ESCAPE]}],$n={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Be},tt=Ue=>{const nn=r(Ue,/\//),an=r(/\//,Ue);return{begin:nn,end:an,contains:[...Be,{scope:"comment",begin:`#(?!.*${an})`,end:/$/}]}},yn={scope:"regexp",variants:[tt("###"),tt("##"),tt("#"),$n]},Yn={match:r(/`/,D,/`/)},Qt={className:"variable",match:/\$\d+/},Jt={className:"variable",match:`\\$${G}+`},Wt=[Yn,Qt,Jt],ya={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Z,contains:[...ue,pe,Nt]}]}},Cn={scope:"keyword",match:r(/@/,u(...H),i(u(/\(/,/\s+/)))},it={scope:"meta",match:r(/@/,D)},Lt=[ya,Cn,it],rt={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)/,G,"+")},{className:"type",match:re,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,i(re)),relevance:0}]},vn={begin:/</,end:/>/,keywords:ie,contains:[...F,...ce,...Lt,C,rt]};rt.contains.push(vn);const En={match:r(D,/\s*:/),keywords:"_|0",relevance:0},Dn={begin:/\(/,end:/\)/,relevance:0,keywords:ie,contains:["self",En,...F,yn,...ce,...S,...ue,pe,Nt,...Wt,...Lt,rt]},An={begin:/</,end:/>/,keywords:"repeat each",contains:[...F,rt]},Ln={begin:u(i(r(D,/\s*:/)),i(r(D,/\s+/,D,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:D}]},zn={begin:/\(/,end:/\)/,keywords:ie,contains:[Ln,...F,...ce,...ue,pe,Nt,...Lt,rt,Dn],endsParent:!0,illegal:/["']/},_n={match:[/(func|macro)/,/\s+/,u(Yn.match,D,A)],className:{1:"keyword",3:"title.function"},contains:[An,zn,L],illegal:[/\[/,/%/]},Ot={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[An,zn,L],illegal:/\[|%/},en={match:[/operator/,/\s+/,A],className:{1:"keyword",3:"title"}},kt={begin:[/precedencegroup/,/\s+/,re],className:{1:"keyword",3:"title"},contains:[rt],keywords:[...v,...b],end:/}/},Un={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Rn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},tn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,D,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:ie,contains:[An,...ce,{begin:/:/,end:/\{/,keywords:ie,contains:[{scope:"title.class.inherited",match:re},...ce],relevance:0}]};for(const Ue of Nt.variants){const nn=Ue.contains.find(zt=>zt.label==="interpol");nn.keywords=ie;const an=[...ce,...S,...ue,pe,Nt,...Wt];nn.contains=[...an,{begin:/\(/,end:/\)/,contains:["self",...an]}]}return{name:"Swift",keywords:ie,contains:[...F,_n,Ot,Un,Rn,tn,en,kt,{beginKeywords:"import",end:/$/,contains:[...F],relevance:0},yn,...ce,...S,...ue,pe,Nt,...Wt,...Lt,rt,Dn]}}return ff=le,ff}var df,Bg;function I0(){if(Bg)return df;Bg=1;function s(i){const r="true false yes no null",l="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},d={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},p={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},y={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[i.BACKSLASH_ESCAPE,d]},g=i.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),w={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},N={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},x={begin:/\{/,end:/\}/,contains:[N],illegal:"\\n",relevance:0},A={begin:"\\[",end:"\\]",contains:[N],illegal:"\\n",relevance:0},U=[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}},w,{className:"number",begin:i.C_NUMBER_RE+"\\b",relevance:0},x,A,p,y],G=[...U];return G.pop(),G.push(g),N.contains=G,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:U}}return df=s,df}var hf,Ig;function H0(){if(Ig)return hf;Ig=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",i=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],l=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],d=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(d,l,u);function g(b){const v=b.regex,_=(ke,{after:Ae})=>{const je="</"+ke[0].slice(1);return ke.input.indexOf(je,Ae)!==-1},w=s,N={begin:"<>",end:"</>"},x=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ke,Ae)=>{const je=ke[0].length+ke.index,Le=ke.input[je];if(Le==="<"||Le===","){Ae.ignoreMatch();return}Le===">"&&(_(ke,{after:je})||Ae.ignoreMatch());let Me;const Nt=ke.input.substring(je);if(Me=Nt.match(/^\s*=/)){Ae.ignoreMatch();return}if((Me=Nt.match(/^\s+extends\s+/))&&Me.index===0){Ae.ignoreMatch();return}}},U={$pattern:s,keyword:i,literal:r,built_in:y,"variable.language":p},G="[0-9](_?[0-9])*",D=`\\.(${G})`,re="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",H={className:"number",variants:[{begin:`(\\b(${re})((${D})|\\.)?|(${D}))[eE][+-]?(${G})\\b`},{begin:`\\b(${re})\\b((${D})\\b|\\.)?|(${D})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},Z={className:"subst",begin:"\\$\\{",end:"\\}",keywords:U,contains:[]},le={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,Z],subLanguage:"xml"}},k={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,Z],subLanguage:"css"}},L={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,Z],subLanguage:"graphql"}},X={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,Z]},he={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:w+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},Ne=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,le,k,L,X,{match:/\$\d+/},H];Z.contains=Ne.concat({begin:/\{/,end:/\}/,keywords:U,contains:["self"].concat(Ne)});const Se=[].concat(he,Z.contains),me=Se.concat([{begin:/(\s*)\(/,end:/\)/,keywords:U,contains:["self"].concat(Se)}]),I={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:U,contains:me},ie={variants:[{match:[/class/,/\s+/,w,/\s+/,/extends/,/\s+/,v.concat(w,"(",v.concat(/\./,w),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,w],scope:{1:"keyword",3:"title.class"}}]},ce={relevance:0,match:v.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},ye={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Ee={variants:[{match:[/function/,/\s+/,w,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[I],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function C(ke){return v.concat("(?!",ke.join("|"),")")}const q={match:v.concat(/\b/,C([...d,"super","import","await"].map(ke=>`${ke}\\s*\\(`)),w,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},ue={begin:v.concat(/\./,v.lookahead(v.concat(w,/(?![0-9A-Za-z$_(])/))),end:w,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},W={match:[/get|set/,/\s+/,w,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},I]},be="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",pe={match:[/const|var|let/,/\s+/,w,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(be)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[I]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:U,exports:{PARAMS_CONTAINS:me,CLASS_REFERENCE:ce},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),ye,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,le,k,L,X,he,{match:/\$\d+/},H,ce,{scope:"attr",match:w+v.lookahead(":"),relevance:0},pe,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[he,b.REGEXP_MODE,{className:"function",begin:be,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:U,contains:me}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:N.begin,end:N.end},{match:x},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.end,skip:!0,contains:["self"]}]}]},Ee,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[I,b.inherit(b.TITLE_MODE,{begin:w,className:"title.function"})]},{match:/\.\.\./,relevance:0},ue,{match:"\\$"+w,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[I]},q,S,ie,W,{match:/\$[(.]/}]}}function m(b){const v=b.regex,_=g(b),w=s,N=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],x={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},A={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:N},contains:[_.exports.CLASS_REFERENCE]},U={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},G=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],D={$pattern:s,keyword:i.concat(G),literal:r,built_in:y.concat(N),"variable.language":p},re={className:"meta",begin:"@"+w},H=(L,X,F)=>{const he=L.contains.findIndex(Ne=>Ne.label===X);if(he===-1)throw new Error("can not find mode to replace");L.contains.splice(he,1,F)};Object.assign(_.keywords,D),_.exports.PARAMS_CONTAINS.push(re);const Z=_.contains.find(L=>L.scope==="attr"),le=Object.assign({},Z,{match:v.concat(w,v.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,Z,le]),_.contains=_.contains.concat([re,x,A,le]),H(_,"shebang",b.SHEBANG()),H(_,"use_strict",U);const k=_.contains.find(L=>L.label==="func.def");return k.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return hf=m,hf}var pf,Hg;function q0(){if(Hg)return pf;Hg=1;function s(i){const r=i.regex,l={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},d=/\d{1,2}\/\d{1,2}\/\d{4}/,p=/\d{4}-\d{1,2}-\d{1,2}/,y=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:r.concat(/# */,r.either(p,d),/ *#/)},{begin:r.concat(/# */,g,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(p,d),/ +/,r.either(y,g),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},v={className:"label",begin:/^\w+:/},_=i.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),w=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,m,b,v,_,w,{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:[w]}]}}return pf=s,pf}var mf,qg;function G0(){if(qg)return mf;qg=1;function s(i){i.regex;const r=i.COMMENT(/\(;/,/;\)/);r.contains.push("self");const l=i.COMMENT(/;;/,/$/),u=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],d={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},p={className:"variable",begin:/\$[\w_]+/},y={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[l,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},p,y,d,i.QUOTE_STRING_MODE,m,b,g]}}return mf=s,mf}var gf,Gg;function $0(){if(Gg)return gf;Gg=1;var s=s0();return s.registerLanguage("xml",r0()),s.registerLanguage("bash",o0()),s.registerLanguage("c",c0()),s.registerLanguage("cpp",u0()),s.registerLanguage("csharp",f0()),s.registerLanguage("css",d0()),s.registerLanguage("markdown",h0()),s.registerLanguage("diff",p0()),s.registerLanguage("ruby",m0()),s.registerLanguage("go",g0()),s.registerLanguage("graphql",b0()),s.registerLanguage("ini",y0()),s.registerLanguage("java",v0()),s.registerLanguage("javascript",E0()),s.registerLanguage("json",_0()),s.registerLanguage("kotlin",S0()),s.registerLanguage("less",N0()),s.registerLanguage("lua",T0()),s.registerLanguage("makefile",w0()),s.registerLanguage("perl",x0()),s.registerLanguage("objectivec",A0()),s.registerLanguage("php",R0()),s.registerLanguage("php-template",O0()),s.registerLanguage("plaintext",k0()),s.registerLanguage("python",M0()),s.registerLanguage("python-repl",C0()),s.registerLanguage("r",D0()),s.registerLanguage("rust",L0()),s.registerLanguage("scss",z0()),s.registerLanguage("shell",U0()),s.registerLanguage("sql",j0()),s.registerLanguage("swift",B0()),s.registerLanguage("yaml",I0()),s.registerLanguage("typescript",H0()),s.registerLanguage("vbnet",q0()),s.registerLanguage("wasm",G0()),s.HighlightJS=s,s.default=s,gf=s,gf}var Y0=$0();const qb=Sb(Y0),F0={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},K0=2e5,Gb="http://www.w3.org/1999/xhtml";function P0(s){for(const i of s.querySelectorAll(".d2h-file-wrapper")){const r=Z0(i.dataset.lang??"");if(r)for(const l of X0(i))$g(l.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),$g(l.filter(u=>u.kind!=="del"),()=>!0,r)}}function Z0(s){const i=F0[s]??l0(s);return i==="plaintext"||!qb.getLanguage(i)?null:i}function X0(s){const i=[];let r=[];for(const l of s.querySelectorAll(".d2h-diff-tbody > tr")){const u=l.querySelector("td:last-child"),d=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!d){r.length&&i.push(r),r=[];continue}const p=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:p,ctn:d})}return r.length&&i.push(r),i}function $g(s,i,r){if(s.filter(i).length===0)return;const u=s.map(p=>p.ctn.textContent??"").join(`
|
|
169
|
+
`);if(!u.trim()||u.length>K0)return;const d=V0(qb.highlight(u,{language:r,ignoreIllegals:!0}).value);s.forEach((p,y)=>{const g=d[y];g===void 0||!i(p)||Q0(p.ctn,g)})}function Q0(s,i){const r=ig(s);let l=i;if(r.length){const u=document.createElementNS(Gb,"div");u.innerHTML=i,l=a0(r,ig(u),s.textContent??"")}s.classList.add("hljs"),s.innerHTML=l}function V0(s){const i=document.createElementNS(Gb,"div");i.innerHTML=s;const r=[],l=[];let u="";const d=p=>{if(p.nodeType===Node.TEXT_NODE){(p.textContent??"").split(`
|
|
170
|
+
`).forEach((m,b)=>{b>0&&(u+="</span>".repeat(l.length),r.push(u),u=l.join("")),u+=J0(m)});return}const y=`<span class="${p.className}">`;u+=y,l.push(y),p.childNodes.forEach(d),l.pop(),u+="</span>"};return i.childNodes.forEach(d),r.push(u),r}function J0(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}const W0={arrowRight:["M5 12h14","m12 5 7 7-7 7"],chevronLeft:["m15 6-6 6 6 6"],chevronRight:["m9 6 6 6-6 6"],skip:["m5 4 10 8-10 8V4Z","M19 5v14"],rerun:["M21 12a9 9 0 1 1-3-6.7","M21 4v5h-5"],zap:["M13 2 4 14h7l-1 8 9-12h-7Z"],comment:["M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"],check:["M20 6 9 17l-5-5"],edit:["M12 20h9","M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"],drop:["M3 6h18","M8 6V4h8v2","M6 6l1 14h10l1-14"],plus:["M12 5v14","M5 12h14"],file:["M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8Z","M14 3v5h5"],send:["M22 2 11 13","M22 2 15 22l-4-9-9-4Z"],eye:["M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"],download:["M12 3v12","m7 12 5 5 5-5","M5 21h14"],external:["M14 4h6v6","M20 4 10 14","M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"],settings:["M20 7h-9","M14 17H5"],down:["M12 5v13","m6 12 6 6 6-6"],up:["M12 19V6","m6 12 6-6 6 6"],bell:["M18 9a6 6 0 1 0-12 0c0 5-2 6-2 6h16s-2-1-2-6","M13.7 20a2 2 0 0 1-3.4 0"],bellOff:["M8.5 3.6A6 6 0 0 1 18 9c0 1.7.2 2.9.6 3.9","M16.5 17H4s2-1 2-6a6 6 0 0 1 .7-2.8","M13.7 20a2 2 0 0 1-3.4 0","m3 3 18 18"]},eS={approve:[{cx:12,cy:12,r:9}],changes:[{cx:12,cy:12,r:9}],eye:[{cx:12,cy:12,r:3}],settings:[{cx:17,cy:17,r:3},{cx:7,cy:7,r:3}]},tS={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Ke({name:s,size:i=13}){const r=[...W0[s]??[],...tS[s]??[]];return f.jsxs("svg",{className:"icon",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(eS[s]??[]).map((l,u)=>f.jsx("circle",{cx:l.cx,cy:l.cy,r:l.r},u)),r.map((l,u)=>f.jsx("path",{d:l},u))]})}function nS({size:s=17}){return f.jsxs("svg",{className:"logo",width:s,height:s,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[f.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),f.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),f.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),f.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function ka({children:s}){return f.jsx("span",{className:"key",children:s})}/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function Yg(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 aS(s){if(Array.isArray(s))return s}function iS(s,i){var r=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(r!=null){var l,u,d,p,y=[],g=!0,m=!1;try{if(d=(r=r.call(s)).next,i!==0)for(;!(g=(l=d.call(r)).done)&&(y.push(l.value),y.length!==i);g=!0);}catch(b){m=!0,u=b}finally{try{if(!g&&r.return!=null&&(p=r.return(),Object(p)!==p))return}finally{if(m)throw u}}return y}}function lS(){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 sS(s,i){return aS(s)||iS(s,i)||rS(s,i)||lS()}function rS(s,i){if(s){if(typeof s=="string")return Yg(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)?Yg(s,i):void 0}}const $b=Object.entries,Fg=Object.setPrototypeOf,oS=Object.isFrozen,cS=Object.getPrototypeOf,uS=Object.getOwnPropertyDescriptor;let gn=Object.freeze,bn=Object.seal,Ul=Object.create,Yb=typeof Reflect<"u"&&Reflect,Rf=Yb.apply,Of=Yb.construct;gn||(gn=function(i){return i});bn||(bn=function(i){return i});Rf||(Rf=function(i,r){for(var l=arguments.length,u=new Array(l>2?l-2:0),d=2;d<l;d++)u[d-2]=arguments[d];return i.apply(r,u)});Of||(Of=function(i){for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return new i(...l)});const Dl=Pt(Array.prototype.forEach),fS=Pt(Array.prototype.lastIndexOf),Kg=Pt(Array.prototype.pop),Ll=Pt(Array.prototype.push),dS=Pt(Array.prototype.splice),Di=Array.isArray,js=Pt(String.prototype.toLowerCase),bf=Pt(String.prototype.toString),Pg=Pt(String.prototype.match),Ls=Pt(String.prototype.replace),Zg=Pt(String.prototype.indexOf),hS=Pt(String.prototype.trim),pS=Pt(Number.prototype.toString),mS=Pt(Boolean.prototype.toString),Xg=typeof BigInt>"u"?null:Pt(BigInt.prototype.toString),Qg=typeof Symbol>"u"?null:Pt(Symbol.prototype.toString),cn=Pt(Object.prototype.hasOwnProperty),zs=Pt(Object.prototype.toString),on=Pt(RegExp.prototype.test),Qi=gS(TypeError);function Pt(s){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return Rf(s,i,l)}}function gS(s){return function(){for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return Of(s,r)}}function st(s,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:js;if(Fg&&Fg(s,null),!Di(i))return s;let l=i.length;for(;l--;){let u=i[l];if(typeof u=="string"){const d=r(u);d!==u&&(oS(i)||(i[l]=d),u=d)}s[u]=!0}return s}function bS(s){for(let i=0;i<s.length;i++)cn(s,i)||(s[i]=null);return s}function wn(s){const i=Ul(null);for(const l of $b(s)){var r=sS(l,2);const u=r[0],d=r[1];cn(s,u)&&(Di(d)?i[u]=bS(d):d&&typeof d=="object"&&d.constructor===Object?i[u]=wn(d):i[u]=d)}return i}function yS(s){switch(typeof s){case"string":return s;case"number":return pS(s);case"boolean":return mS(s);case"bigint":return Xg?Xg(s):"0";case"symbol":return Qg?Qg(s):"Symbol()";case"undefined":return zs(s);case"function":case"object":{if(s===null)return zs(s);const i=s,r=ma(i,"toString");if(typeof r=="function"){const l=r(i);return typeof l=="string"?l:zs(l)}return zs(s)}default:return zs(s)}}function ma(s,i){for(;s!==null;){const l=uS(s,i);if(l){if(l.get)return Pt(l.get);if(typeof l.value=="function")return Pt(l.value)}s=cS(s)}function r(){return null}return r}function vS(s){try{return on(s,""),!0}catch{return!1}}const Vg=gn(["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"]),yf=gn(["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"]),vf=gn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ES=gn(["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"]),Ef=gn(["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"]),_S=gn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Jg=gn(["#text"]),Wg=gn(["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"]),_f=gn(["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"]),eb=gn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),eo=gn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),SS=bn(/{{[\w\W]*|^[\w\W]*}}/g),NS=bn(/<%[\w\W]*|^[\w\W]*%>/g),TS=bn(/\${[\w\W]*/g),wS=bn(/^data-[\-\w.\u00B7-\uFFFF]+$/),xS=bn(/^aria-[\-\w]+$/),tb=bn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),AS=bn(/^(?:\w+script|data):/i),RS=bn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),OS=bn(/^html$/i),kS=bn(/^[a-z][.\w]*(-[.\w]+)+$/i),nb=bn(/<[/\w!]/g),ab=bn(/<[/\w]/g),MS=bn(/<\/no(script|embed|frames)/i),CS=bn(/\/>/i),Wn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},DS=function(){return typeof window>"u"?null:window},LS=function(i,r){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let l=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(l=r.getAttribute(u));const d="dompurify"+(l?"#"+l:"");try{return i.createPolicy(d,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},ib=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ki=function(i,r,l,u){return cn(i,r)&&Di(i[r])?st(u.base?wn(u.base):{},i[r],u.transform):l};function Fb(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DS();const i=V=>Fb(V);if(i.version="3.4.13",i.removed=[],!s||!s.document||s.document.nodeType!==Wn.document||!s.Element)return i.isSupported=!1,i;let r=s.document;const l=r,u=l.currentScript;s.DocumentFragment;const d=s.HTMLTemplateElement,p=s.Node,y=s.Element,g=s.NodeFilter,m=s.NamedNodeMap;m===void 0&&(s.NamedNodeMap||s.MozNamedAttrMap),s.HTMLFormElement;const b=s.DOMParser,v=s.trustedTypes,_=y.prototype,w=ma(_,"cloneNode"),N=ma(_,"remove"),x=ma(_,"nextSibling"),A=ma(_,"childNodes"),U=ma(_,"parentNode"),G=ma(_,"shadowRoot"),D=ma(_,"attributes"),re=p&&p.prototype?ma(p.prototype,"nodeType"):null,H=p&&p.prototype?ma(p.prototype,"nodeName"):null,Z=p&&p.prototype?ma(p.prototype,"ownerDocument"):null;if(typeof d=="function"){const V=r.createElement("template");V.content&&V.content.ownerDocument&&(r=V.content.ownerDocument)}let le,k="",L,X=!1,F=0;const he=function(){if(F>0)throw Qi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ne=function(T){he(),F++;try{return le.createHTML(T)}finally{F--}},Se=function(T){he(),F++;try{return le.createScriptURL(T)}finally{F--}},me=function(){return X||(L=LS(v,u),X=!0),L},I=r,ie=I.implementation,ce=I.createNodeIterator,ye=I.createDocumentFragment,Ee=I.getElementsByTagName,S=l.importNode;let C=ib();i.isSupported=typeof $b=="function"&&typeof U=="function"&&ie&&ie.createHTMLDocument!==void 0;const q=SS,ue=NS,W=TS,be=wS,pe=xS,ke=AS,Ae=RS,je=kS;let Le=tb,Me=null;const Nt=st({},[...Vg,...yf,...vf,...Ef,...Jg]);let Be=null;const $n=st({},[...Wg,..._f,...eb,...eo]);let tt=Object.seal(Ul(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),yn=null,Yn=null;const Qt=Object.seal(Ul(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Jt=!0,Wt=!0,ya=!1,Cn=!0,it=!1,Lt=!0,rt=!1,vn=!1,En=null,Dn=null,An=!1,Ln=!1,zn=!1,_n=!1,Ot=!0,en=!1;const kt="user-content-";let Un=!0,Rn=!1,tn={},Ue=null;const nn=st({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let an=null;const zt=st({},["audio","video","img","source","image","track"]);let O=null;const ne=st({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",Ce="http://www.w3.org/2000/svg",Pe="http://www.w3.org/1999/xhtml";let Qe=Pe,z=!1,P=null;const de=st({},[ge,Ce,Pe],bf),He=gn(["mi","mo","mn","ms","mtext"]);let Ze=st({},He);const un=gn(["annotation-xml"]);let Fn=st({},un);const ei=st({},["title","style","font","a","script"]);let Sn=null;const Mt=["application/xhtml+xml","text/html"],ln="text/html";let ot=null,ea=null;const tl=r.createElement("form"),Ma=function(T){return T instanceof RegExp||T instanceof Function},ti=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ea&&ea===T)return;(!T||typeof T!="object")&&(T={}),T=wn(T),Sn=Mt.indexOf(T.PARSER_MEDIA_TYPE)===-1?ln:T.PARSER_MEDIA_TYPE,ot=Sn==="application/xhtml+xml"?bf:js,Me=ki(T,"ALLOWED_TAGS",Nt,{transform:ot}),Be=ki(T,"ALLOWED_ATTR",$n,{transform:ot}),P=ki(T,"ALLOWED_NAMESPACES",de,{transform:bf}),O=ki(T,"ADD_URI_SAFE_ATTR",ne,{transform:ot,base:ne}),an=ki(T,"ADD_DATA_URI_TAGS",zt,{transform:ot,base:zt}),Ue=ki(T,"FORBID_CONTENTS",nn,{transform:ot}),yn=ki(T,"FORBID_TAGS",wn({}),{transform:ot}),Yn=ki(T,"FORBID_ATTR",wn({}),{transform:ot}),tn=cn(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?wn(T.USE_PROFILES):T.USE_PROFILES:!1,Jt=T.ALLOW_ARIA_ATTR!==!1,Wt=T.ALLOW_DATA_ATTR!==!1,ya=T.ALLOW_UNKNOWN_PROTOCOLS||!1,Cn=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,it=T.SAFE_FOR_TEMPLATES||!1,Lt=T.SAFE_FOR_XML!==!1,rt=T.WHOLE_DOCUMENT||!1,Ln=T.RETURN_DOM||!1,zn=T.RETURN_DOM_FRAGMENT||!1,_n=T.RETURN_TRUSTED_TYPE||!1,An=T.FORCE_BODY||!1,Ot=T.SANITIZE_DOM!==!1,en=T.SANITIZE_NAMED_PROPS||!1,Un=T.KEEP_CONTENT!==!1,Rn=T.IN_PLACE||!1,Le=vS(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:tb,Qe=typeof T.NAMESPACE=="string"?T.NAMESPACE:Pe,Ze=cn(T,"MATHML_TEXT_INTEGRATION_POINTS")&&T.MATHML_TEXT_INTEGRATION_POINTS&&typeof T.MATHML_TEXT_INTEGRATION_POINTS=="object"?wn(T.MATHML_TEXT_INTEGRATION_POINTS):st({},He),Fn=cn(T,"HTML_INTEGRATION_POINTS")&&T.HTML_INTEGRATION_POINTS&&typeof T.HTML_INTEGRATION_POINTS=="object"?wn(T.HTML_INTEGRATION_POINTS):st({},un);const j=cn(T,"CUSTOM_ELEMENT_HANDLING")&&T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING=="object"?wn(T.CUSTOM_ELEMENT_HANDLING):Ul(null);if(tt=Ul(null),cn(j,"tagNameCheck")&&Ma(j.tagNameCheck)&&(tt.tagNameCheck=j.tagNameCheck),cn(j,"attributeNameCheck")&&Ma(j.attributeNameCheck)&&(tt.attributeNameCheck=j.attributeNameCheck),cn(j,"allowCustomizedBuiltInElements")&&typeof j.allowCustomizedBuiltInElements=="boolean"&&(tt.allowCustomizedBuiltInElements=j.allowCustomizedBuiltInElements),bn(tt),it&&(Wt=!1),zn&&(Ln=!0),tn&&(Me=st({},Jg),Be=Ul(null),tn.html===!0&&(st(Me,Vg),st(Be,Wg)),tn.svg===!0&&(st(Me,yf),st(Be,_f),st(Be,eo)),tn.svgFilters===!0&&(st(Me,vf),st(Be,_f),st(Be,eo)),tn.mathMl===!0&&(st(Me,Ef),st(Be,eb),st(Be,eo))),Qt.tagCheck=null,Qt.attributeCheck=null,cn(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?Qt.tagCheck=T.ADD_TAGS:Di(T.ADD_TAGS)&&(Me===Nt&&(Me=wn(Me)),st(Me,T.ADD_TAGS,ot))),cn(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?Qt.attributeCheck=T.ADD_ATTR:Di(T.ADD_ATTR)&&(Be===$n&&(Be=wn(Be)),st(Be,T.ADD_ATTR,ot))),cn(T,"ADD_URI_SAFE_ATTR")&&Di(T.ADD_URI_SAFE_ATTR)&&st(O,T.ADD_URI_SAFE_ATTR,ot),cn(T,"FORBID_CONTENTS")&&Di(T.FORBID_CONTENTS)&&(Ue===nn&&(Ue=wn(Ue)),st(Ue,T.FORBID_CONTENTS,ot)),cn(T,"ADD_FORBID_CONTENTS")&&Di(T.ADD_FORBID_CONTENTS)&&(Ue===nn&&(Ue=wn(Ue)),st(Ue,T.ADD_FORBID_CONTENTS,ot)),Un&&(Me["#text"]=!0),rt&&st(Me,["html","head","body"]),Me.table&&(st(Me,["tbody"]),delete yn.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ee=le;le=T.TRUSTED_TYPES_POLICY;try{k=Ne("")}catch(_e){throw le=ee,_e}}else T.TRUSTED_TYPES_POLICY===null?(le=void 0,k=""):(le===void 0&&(le=me()),le&&typeof k=="string"&&(k=Ne("")));gn&&gn(T),ea=T},va=st({},[...yf,...vf,...ES]),ni=st({},[...Ef,..._S]),fn=function(T,j,ee){return j.namespaceURI===Pe?T==="svg":j.namespaceURI===ge?T==="svg"&&(ee==="annotation-xml"||Ze[ee]):!!va[T]},ua=function(T,j,ee){return j.namespaceURI===Pe?T==="math":j.namespaceURI===Ce?T==="math"&&Fn[ee]:!!ni[T]},Ea=function(T,j,ee){return j.namespaceURI===Ce&&!Fn[ee]||j.namespaceURI===ge&&!Ze[ee]?!1:!ni[T]&&(ei[T]||!va[T])},_a=function(T){let j=U(T);(!j||!j.tagName)&&(j={namespaceURI:Qe,tagName:"template"});const ee=js(T.tagName),_e=js(j.tagName);return P[T.namespaceURI]?T.namespaceURI===Ce?fn(ee,j,_e):T.namespaceURI===ge?ua(ee,j,_e):T.namespaceURI===Pe?Ea(ee,j,_e):!!(Sn==="application/xhtml+xml"&&P[T.namespaceURI]):!1},mt=function(T){Ll(i.removed,{element:T});try{U(T).removeChild(T)}catch{if(N(T),!U(T))throw Qi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ca=function(T){fe(T);const j=A(T);if(j){const _e=[];Dl(j,we=>{Ll(_e,we)}),Dl(_e,we=>{try{N(we)}catch{}})}const ee=D(T);if(ee)for(let _e=ee.length-1;_e>=0;--_e){const we=ee[_e],Ie=we&&we.name;if(typeof Ie=="string")try{T.removeAttribute(Ie)}catch{}}},On=function(T,j){try{Ll(i.removed,{attribute:j.getAttributeNode(T),from:j})}catch{Ll(i.removed,{attribute:null,from:j})}if(j.removeAttribute(T),T==="is")if(Ln||zn)try{mt(j)}catch{}else try{j.setAttribute(T,"")}catch{}},fa=function(T){const j=D(T);if(j)for(let ee=j.length-1;ee>=0;--ee){const _e=j[ee],we=_e&&_e.name;if(!(typeof we!="string"||Be[ot(we)]))try{T.removeAttribute(we)}catch{}}},fe=function(T){const j=[T];for(;j.length>0;){const ee=j.pop();(re?re(ee):ee.nodeType)===Wn.element&&fa(ee);const we=A(ee);if(we)for(let Ie=we.length-1;Ie>=0;--Ie)j.push(we[Ie])}},Re=function(T){if(!Lt)return;const j=[T];for(;j.length>0;){const ee=j.pop(),_e=re?re(ee):ee.nodeType;if(_e===Wn.processingInstruction||_e===Wn.comment&&on(ab,ee.data)){try{N(ee)}catch{}continue}if(_e===Wn.element){const Ie=ee,Ve=ot(H?H(ee):ee.nodeName);try{Ie.hasAttribute&&Ie.hasAttribute("patchsrc")&&Ie.removeAttribute("patchsrc"),Ie.hasAttribute&&Ie.hasAttribute("for")&&Ve!=="label"&&Ve!=="output"&&Ie.removeAttribute("for")}catch{}}const we=A(ee);if(we)for(let Ie=we.length-1;Ie>=0;--Ie)j.push(we[Ie])}},$e=function(T){let j=null,ee=null;if(An)T="<remove></remove>"+T;else{const Ie=Pg(T,/^[\r\n\t ]+/);ee=Ie&&Ie[0]}Sn==="application/xhtml+xml"&&Qe===Pe&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const _e=le?Ne(T):T;if(Qe===Pe)try{j=new b().parseFromString(_e,Sn)}catch{}if(!j||!j.documentElement){j=ie.createDocument(Qe,"template",null);try{j.documentElement.innerHTML=z?k:_e}catch{}}const we=j.body||j.documentElement;return T&&ee&&we.insertBefore(r.createTextNode(ee),we.childNodes[0]||null),Qe===Pe?Ee.call(j,rt?"html":"body")[0]:rt?j.documentElement:we},ct=function(T){const j=Z?Z(T):T.ownerDocument;return ce.call(j||T,T,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},Tt=function(T){return T=Ls(T,q," "),T=Ls(T,ue," "),T=Ls(T,W," "),T},Ht=function(T){var j;T.normalize();const ee=Z?Z(T):T.ownerDocument,_e=ce.call(ee||T,T,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null);let we=_e.nextNode();for(;we;)we.data=Tt(we.data),we=_e.nextNode();const Ie=(j=T.querySelectorAll)===null||j===void 0?void 0:j.call(T,"template");Ie&&Dl(Ie,Ve=>{Ut(Ve.content)&&Ht(Ve.content)})},sn=function(T){const j=H?H(T):null;return typeof j!="string"||ot(j)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==D(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==re(T)||T.childNodes!==A(T)},Ut=function(T){if(!re||typeof T!="object"||T===null)return!1;try{return re(T)===Wn.documentFragment}catch{return!1}},ut=function(T){if(!re||typeof T!="object"||T===null)return!1;try{return typeof re(T)=="number"}catch{return!1}};function At(V,T,j){V.length!==0&&Dl(V,ee=>{ee.call(i,T,j,ea)})}const nl=function(T,j){return!!(Lt&&T.hasChildNodes()&&!ut(T.firstElementChild)&&on(nb,T.textContent)&&on(nb,T.innerHTML)||Lt&&T.namespaceURI===Pe&&j==="style"&&ut(T.firstElementChild)||T.nodeType===Wn.processingInstruction||Lt&&T.nodeType===Wn.comment&&on(ab,T.data))},ai=function(T,j,ee){if(!yn[j]&&li(j)&&(tt.tagNameCheck instanceof RegExp&&on(tt.tagNameCheck,j)||tt.tagNameCheck instanceof Function&&tt.tagNameCheck(j)))return!1;if(Un&&!Ue[j]){const _e=U(T),we=A(T);if(we&&_e){const Ie=we.length;for(let Ve=Ie-1;Ve>=0;--Ve){const oe=T===ee?w(we[Ve],!0):we[Ve];_e.insertBefore(oe,x(T))}}}return mt(T),!0},ii=function(T,j,ee,_e){return T.length===0?j:j===ee||j===_e?wn(j):j},Da=function(T,j){if(At(C.beforeSanitizeElements,T,null),T!==j&&U(T)===null)return Rn&&fe(T),!0;if(sn(T))return mt(T),!0;const ee=ot(H?H(T):T.nodeName);if(Me=ii(C.uponSanitizeElement,Me,Nt,En),At(C.uponSanitizeElement,T,{tagName:ee,allowedTags:Me}),T!==j&&U(T)===null)return Rn&&fe(T),!0;if(nl(T,ee))return mt(T),!0;if(yn[ee]||!(Qt.tagCheck instanceof Function&&Qt.tagCheck(ee))&&!Me[ee]){const we=ai(T,ee,j);return we===!1&&At(C.afterSanitizeElements,T,null),we}if((re?re(T):T.nodeType)===Wn.element&&!_a(T)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&on(MS,T.innerHTML))return mt(T),!0;if(it&&T.nodeType===Wn.text){const we=Tt(T.textContent);T.textContent!==we&&(Ll(i.removed,{element:T.cloneNode()}),T.textContent=we)}return At(C.afterSanitizeElements,T,null),!1},al=function(T,j,ee){if(Yn[j]||Lt&&j==="patchsrc"||Lt&&j==="for"&&T!=="label"&&T!=="output"||Ot&&(j==="id"||j==="name")&&(ee in r||ee in tl))return!1;const _e=Be[j]||Qt.attributeCheck instanceof Function&&Qt.attributeCheck(j,T);if(!(Wt&&on(be,j))){if(!(Jt&&on(pe,j))){if(_e){if(!O[j]){if(!on(Le,Ls(ee,Ae,""))){if(!((j==="src"||j==="xlink:href"||j==="href")&&T!=="script"&&Zg(ee,"data:")===0&&an[T])){if(!(ya&&!on(ke,Ls(ee,Ae,"")))){if(ee)return!1}}}}}else if(!(li(T)&&(tt.tagNameCheck instanceof RegExp&&on(tt.tagNameCheck,T)||tt.tagNameCheck instanceof Function&&tt.tagNameCheck(T))&&(tt.attributeNameCheck instanceof RegExp&&on(tt.attributeNameCheck,j)||tt.attributeNameCheck instanceof Function&&tt.attributeNameCheck(j,T))||j==="is"&&tt.allowCustomizedBuiltInElements&&(tt.tagNameCheck instanceof RegExp&&on(tt.tagNameCheck,ee)||tt.tagNameCheck instanceof Function&&tt.tagNameCheck(ee))))return!1}}return!0},Nn=st({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),li=function(T){return!Nn[js(T)]&&on(je,T)},La=function(T,j,ee,_e){if(le&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!ee)switch(v.getAttributeType(T,j)){case"TrustedHTML":return Ne(_e);case"TrustedScriptURL":return Se(_e)}return _e},si=function(T,j,ee,_e){try{ee?T.setAttributeNS(ee,j,_e):T.setAttribute(j,_e),sn(T)?mt(T):Kg(i.removed)}catch{On(j,T)}},qt=function(T){At(C.beforeSanitizeAttributes,T,null);const j=T.attributes;if(!j||sn(T))return;Be=ii(C.uponSanitizeAttribute,Be,$n,Dn);const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Be,forceKeepAttr:void 0};let _e=j.length;const we=ot(T.nodeName);for(;_e--;){const Ie=j[_e],Ve=Ie.name,oe=Ie.namespaceURI,ve=Ie.value,Oe=ot(Ve),Fe=ve;let Xe=Ve==="value"?Fe:hS(Fe);if(ee.attrName=Oe,ee.attrValue=Xe,ee.keepAttr=!0,ee.forceKeepAttr=void 0,At(C.uponSanitizeAttribute,T,ee),Xe=ee.attrValue,en&&(Oe==="id"||Oe==="name")&&Zg(Xe,kt)!==0&&(On(Ve,T),Xe=kt+Xe),Lt&&on(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Xe)){On(Ve,T);continue}if(Oe==="attributename"&&Pg(Xe,"href")){On(Ve,T);continue}if(!ee.forceKeepAttr){if(!ee.keepAttr){On(Ve,T);continue}if(!Cn&&on(CS,Xe)){On(Ve,T);continue}if(it&&(Xe=Tt(Xe)),!al(we,Oe,Xe)){On(Ve,T);continue}Xe=La(we,Oe,oe,Xe),Xe!==Fe&&si(T,Ve,oe,Xe)}}At(C.afterSanitizeAttributes,T,null)},za=function(T){let j=null;const ee=ct(T);for(At(C.beforeSanitizeShadowDOM,T,null);j=ee.nextNode();)if(At(C.uponSanitizeShadowNode,j,null),Da(j,T),qt(j),Ut(j.content)&&za(j.content),(re?re(j):j.nodeType)===Wn.element){const we=G(j);Ut(we)&&(Sa(we),za(we))}At(C.afterSanitizeShadowDOM,T,null)},Sa=function(T){const j=[{node:T,shadow:null}];for(;j.length>0;){const ee=j.pop();if(ee.shadow){za(ee.shadow);continue}const _e=ee.node,Ie=(re?re(_e):_e.nodeType)===Wn.element,Ve=A(_e);if(Ve)for(let oe=Ve.length-1;oe>=0;--oe)j.push({node:Ve[oe],shadow:null});if(Ie){const oe=H?H(_e):null;if(typeof oe=="string"&&ot(oe)==="template"){const ve=_e.content;Ut(ve)&&j.push({node:ve,shadow:null})}}if(Ie){const oe=G(_e);Ut(oe)&&j.push({node:null,shadow:oe},{node:oe,shadow:null})}}};return i.sanitize=function(V){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,ee=null,_e=null,we=null;if(z=!V,z&&(V="<!-->"),typeof V!="string"&&!ut(V)&&(V=yS(V),typeof V!="string"))throw Qi("dirty is not a string, aborting");if(!i.isSupported)return V;vn?(Me=En,Be=Dn):ti(T),(C.uponSanitizeElement.length>0||C.uponSanitizeAttribute.length>0)&&(Me=wn(Me)),C.uponSanitizeAttribute.length>0&&(Be=wn(Be)),i.removed=[];const Ie=Rn&&typeof V!="string"&&ut(V);if(Ie){Re(V);const ve=H?H(V):V.nodeName;if(typeof ve=="string"){const Oe=ot(ve);if(!Me[Oe]||yn[Oe])throw Ca(V),Qi("root node is forbidden and cannot be sanitized in-place")}if(sn(V))throw Ca(V),Qi("root node is clobbered and cannot be sanitized in-place");try{Sa(V)}catch(Oe){throw Ca(V),Oe}}else if(ut(V))j=$e("<!---->"),ee=j.ownerDocument.importNode(V,!0),ee.nodeType===Wn.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?j=ee:j.appendChild(ee),Sa(ee);else{if(!Ln&&!it&&!rt&&V.indexOf("<")===-1)return le&&_n?Ne(V):V;if(j=$e(V),!j)return Ln?null:_n?k:""}j&&An&&mt(j.firstChild);const Ve=Ie?V:j;try{const ve=ct(Ve);for(;_e=ve.nextNode();)Da(_e,Ve),qt(_e),Ut(_e.content)&&za(_e.content)}catch(ve){throw Ie&&(Ca(V),Dl(i.removed,Oe=>{Oe.element&&fe(Oe.element)})),ve}if(Ie)return Dl(i.removed,ve=>{ve.element&&fe(ve.element)}),it&&Ht(V),V;if(Ln){if(it&&Ht(j),zn)for(we=ye.call(j.ownerDocument);j.firstChild;)we.appendChild(j.firstChild);else we=j;return(Be.shadowroot||Be.shadowrootmode)&&(we=S.call(l,we,!0)),we}let oe=rt?j.outerHTML:j.innerHTML;return rt&&Me["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&on(OS,j.ownerDocument.doctype.name)&&(oe="<!DOCTYPE "+j.ownerDocument.doctype.name+`>
|
|
172
|
+
`+oe),it&&(oe=Tt(oe)),le&&_n?Ne(oe):oe},i.setConfig=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ti(V),vn=!0,En=Me,Dn=Be},i.clearConfig=function(){ea=null,vn=!1,En=null,Dn=null,le=L,k=""},i.isValidAttribute=function(V,T,j){ea||ti({});const ee=ot(V),_e=ot(T);return al(ee,_e,j)},i.addHook=function(V,T){typeof T=="function"&&cn(C,V)&&Ll(C[V],T)},i.removeHook=function(V,T){if(cn(C,V)){if(T!==void 0){const j=fS(C[V],T);return j===-1?void 0:dS(C[V],j,1)[0]}return Kg(C[V])}},i.removeHooks=function(V){cn(C,V)&&(C[V]=[])},i.removeAllHooks=function(){C=ib()},i}var zS=Fb();function Pf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var el=Pf();function Kb(s){el=s}var Vi={exec:()=>null};function zl(s){let i=[];return r=>{let l=Math.max(0,Math.min(3,r-1)),u=i[l];return u||(u=s(l),i[l]=u),u}}function et(s,i=""){let r=typeof s=="string"?s:s.source,l={replace:(u,d)=>{let p=typeof d=="string"?d:d.source;return p=p.replace(xn.caret,"$1"),r=r.replace(u,p),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:zl(s=>new RegExp(`^ {0,${s}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:zl(s=>new RegExp(`^ {0,${s}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:zl(s=>new RegExp(`^ {0,${s}}(?:\`\`\`|~~~)`)),headingBeginRegex:zl(s=>new RegExp(`^ {0,${s}}#`)),htmlBeginRegex:zl(s=>new RegExp(`^ {0,${s}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:zl(s=>new RegExp(`^ {0,${s}}>`))},jS=/^(?:[ \t]*(?:\n|$))+/,BS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,IS=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Gs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,HS=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Pb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Zb=et(Pb).replace(/bull/g,Zf).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(),qS=et(Pb).replace(/bull/g,Zf).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(),Xf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,GS=/^[^\n]+/,Qf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,$S=et(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Qf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),YS=et(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Zf).getRegex(),mo="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",Vf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,FS=et("^ {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",Vf).replace("tag",mo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xb=s=>et(Xf).replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",s).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),KS=Xb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),PS=Xb(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),ZS=et(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",PS).getRegex(),Jf={blockquote:ZS,code:BS,def:$S,fences:IS,heading:HS,hr:Gs,html:FS,lheading:Zb,list:YS,newline:jS,paragraph:KS,table:Vi,text:GS},lb=et("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),XS={...Jf,lheading:qS,table:lb,paragraph:et(Xf).replace("hr",Gs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",lb).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",mo).getRegex()},QS={...Jf,html:et(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Vf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Vi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:et(Xf).replace("hr",Gs).replace("heading",` *#{1,6} *[^
|
|
173
|
+
]`).replace("lheading",Zb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},VS=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,JS=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Qb=/^( {2,}|\\)\n(?!\s*$)/,WS=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Wa=/[\p{P}\p{S}]/u,ql=/[\s\p{P}\p{S}]/u,$s=/[^\s\p{P}\p{S}]/u,eN=et(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ql).getRegex(),tN=/[\p{Pi}\p{Ps}"']/u,Vb=/(?!~)[\p{P}\p{S}]/u,nN=/(?!~)[\s\p{P}\p{S}]/u,aN=/(?:[^\s\p{P}\p{S}]|~)/u,iN=et(/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(),Jb=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,lN=et(Jb,"u").replace(/punct/g,Wa).getRegex(),sN=et(Jb,"u").replace(/punct/g,Vb).getRegex(),rN=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,oN=et(rN,"u").replace(/openQuote/g,tN).replace(/punct/g,Wa).getRegex(),Wb="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",cN=et(Wb,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),uN=et(Wb,"gu").replace(/notPunctSpace/g,aN).replace(/punctSpace/g,nN).replace(/punct/g,Vb).getRegex(),fN="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",dN=et(fN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),hN=et("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),pN="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",mN=et(pN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),gN=et(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Wa).getRegex(),bN="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",yN=et(bN,"gu").replace(/notPunctSpace/g,$s).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),vN=et(/\\(punct)/,"gu").replace(/punct/g,Wa).getRegex(),EN=et(/^<(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(),_N=et(Vf).replace("(?:-->|$)","-->").getRegex(),SN=et("^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",_N).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),co=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,NN=et(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",co).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ey=et(/^!?\[(label)\]\[(ref)\]/).replace("label",co).replace("ref",Qf).getRegex(),ty=et(/^!?\[(ref)\](?:\[\])?/).replace("ref",Qf).getRegex(),TN=et("reflink|nolink(?!\\()","g").replace("reflink",ey).replace("nolink",ty).getRegex(),sb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Wf={_backpedal:Vi,anyPunctuation:vN,autolink:EN,blockSkip:iN,br:Qb,code:JS,del:Vi,delLDelim:Vi,delRDelim:Vi,emStrongLDelim:lN,emStrongRDelimAst:cN,emStrongRDelimUnd:hN,escape:VS,link:NN,nolink:ty,punctuation:eN,reflink:ey,reflinkSearch:TN,tag:SN,text:WS,url:Vi},wN={...Wf,emStrongLDelim:oN,emStrongRDelimAst:dN,emStrongRDelimUnd:mN,link:et(/^!?\[(label)\]\((.*?)\)/).replace("label",co).getRegex(),reflink:et(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",co).getRegex()},kf={...Wf,emStrongRDelimAst:uN,emStrongLDelim:sN,delLDelim:gN,delRDelim:yN,url:et(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",sb).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:et(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",sb).getRegex()},xN={...kf,br:et(Qb).replace("{2,}","*").getRegex(),text:et(kf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},to={normal:Jf,gfm:XS,pedantic:QS},Us={normal:Wf,gfm:kf,breaks:xN,pedantic:wN},AN={"&":"&","<":"<",">":">",'"':""","'":"'"},rb=s=>AN[s];function Ra(s,i){if(i){if(xn.escapeTest.test(s))return s.replace(xn.escapeReplace,rb)}else if(xn.escapeTestNoEncode.test(s))return s.replace(xn.escapeReplaceNoEncode,rb);return s}function ob(s){try{s=encodeURI(s).replace(xn.percentDecode,"%")}catch{return null}return s}function cb(s,i){var d;let r=s.replace(xn.findPipe,(p,y,g)=>{let m=!1,b=y;for(;--b>=0&&g[b]==="\\";)m=!m;return m?"|":" |"}),l=r.split(xn.splitPipe),u=0;if(l[0].trim()||l.shift(),l.length>0&&!((d=l.at(-1))!=null&&d.trim())&&l.pop(),i)if(l.length>i)l.splice(i);else for(;l.length<i;)l.push("");for(;u<l.length;u++)l[u]=l[u].trim().replace(xn.slashPipe,"|");return l}function Mi(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 ub(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 RN(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 ON(s,i=0){let r=i,l="";for(let u of s)if(u===" "){let d=4-r%4;l+=" ".repeat(d),r+=d}else l+=u,r++;return l}function fb(s,i,r,l,u){let d=i.href,p=i.title||null,y=s[1].replace(u.other.outputLinkReplace,"$1");l.state.inLink=!0;let g={type:s[0].charAt(0)==="!"?"image":"link",raw:r,href:d,title:p,text:y,tokens:l.inlineTokens(y)};return l.state.inLink=!1,g}function kN(s,i,r){let l=s.match(r.other.indentCodeCompensation);if(l===null)return i;let u=l[1];return i.split(`
|
|
176
|
+
`).map(d=>{let p=d.match(r.other.beginningSpace);if(p===null)return d;let[y]=p;return y.length>=u.length?d.slice(u.length):d}).join(`
|
|
177
|
+
`)}var uo=class{constructor(s){_t(this,"options");_t(this,"rules");_t(this,"lexer");this.options=s||el}space(s){let i=this.rules.block.newline.exec(s);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(s){let i=this.rules.block.code.exec(s);if(i){let r=this.options.pedantic?i[0]:ub(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=kN(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=Mi(r,"#");(this.options.pedantic||!l||this.rules.other.endingSpaceChar.test(l))&&(r=l.trim())}return{type:"heading",raw:Mi(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:Mi(i[0],`
|
|
179
|
+
`)}}blockquote(s){let i=this.rules.block.blockquote.exec(s);if(i){let r=Mi(i[0],`
|
|
180
|
+
`).split(`
|
|
181
|
+
`),l="",u="",d=[];for(;r.length>0;){let p=!1,y=[],g;for(g=0;g<r.length;g++)if(this.rules.other.blockquoteStart.test(r[g]))y.push(r[g]),p=!0;else if(!p)y.push(r[g]);else break;r=r.slice(g);let m=y.join(`
|
|
182
|
+
`),b=m.replace(this.rules.other.blockquoteSetextReplace,`
|
|
183
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");l=l?`${l}
|
|
184
|
+
${m}`:m,u=u?`${u}
|
|
185
|
+
${b}`:b;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(b,d,!0),this.lexer.state.top=v,r.length===0)break;let _=d.at(-1);if((_==null?void 0:_.type)==="code")break;if((_==null?void 0:_.type)==="blockquote"){let w=_,N=r.join(`
|
|
186
|
+
`),x=w.raw+`
|
|
187
|
+
`+N.replace(this.rules.other.blockquoteSetextReplace2,""),A=this.blockquote(x);d[d.length-1]=A,l=`${l}
|
|
188
|
+
${N}`,u=u.substring(0,u.length-w.text.length)+A.text;break}else if((_==null?void 0:_.type)==="list"){let w=_,N=w.raw+`
|
|
189
|
+
`+r.join(`
|
|
190
|
+
`),x=this.list(N);d[d.length-1]=x,l=l.substring(0,l.length-_.raw.length)+x.raw,u=u.substring(0,u.length-w.raw.length)+x.raw,r=N.substring(d.at(-1).raw.length).split(`
|
|
191
|
+
`);continue}}return{type:"blockquote",raw:l,tokens:d,text:u}}}list(s){let i=this.rules.block.list.exec(s);if(i){let r=i[1].trim(),l=r.length>1,u={type:"list",raw:"",ordered:l,start:l?+r.slice(0,-1):"",loose:!1,items:[]};r=l?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=l?r:"[*+-]");let d=this.rules.other.listItemRegex(r),p=!1;for(;s;){let g=!1,m="",b="";if(!(i=d.exec(s))||this.rules.block.hr.test(s))break;m=i[0],s=s.substring(m.length);let v=ON(i[2].split(`
|
|
192
|
+
`,1)[0],i[1].length),_=s.split(`
|
|
193
|
+
`,1)[0],w=!v.trim(),N=0;if(this.options.pedantic?(N=2,b=v.trimStart()):w?N=i[1].length+1:(N=v.search(this.rules.other.nonSpaceChar),N=N>4?1:N,b=v.slice(N),N+=i[1].length),w&&this.rules.other.blankLine.test(_)&&(m+=_+`
|
|
194
|
+
`,s=s.substring(_.length+1),g=!0),!g){let x=this.rules.other.nextBulletRegex(N),A=this.rules.other.hrRegex(N),U=this.rules.other.fencesBeginRegex(N),G=this.rules.other.headingBeginRegex(N),D=this.rules.other.htmlBeginRegex(N),re=this.rules.other.blockquoteBeginRegex(N);for(;s;){let H=s.split(`
|
|
195
|
+
`,1)[0],Z;if(_=H,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),Z=_):Z=_.replace(this.rules.other.tabCharGlobal," "),U.test(_)||G.test(_)||D.test(_)||re.test(_)||x.test(_)||A.test(_))break;if(Z.search(this.rules.other.nonSpaceChar)>=N||!_.trim())b+=`
|
|
196
|
+
`+Z.slice(N);else{if(w||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||U.test(v)||G.test(v)||A.test(v))break;b+=`
|
|
197
|
+
`+_}w=!_.trim(),m+=H+`
|
|
198
|
+
`,s=s.substring(H.length+1),v=Z.slice(N)}}u.loose||(p?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(p=!0)),u.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(b),loose:!1,text:b,tokens:[]}),u.raw+=m}let y=u.items.at(-1);if(y)y.raw=y.raw.trimEnd(),y.text=y.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let g of u.items)if(this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]),!u.loose){let m=g.tokens.filter(v=>v.type==="space"),b=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));u.loose=b}for(let g of u.items){let m=g.tokens[0];if(g.task&&((m==null?void 0:m.type)==="text"||(m==null?void 0:m.type)==="paragraph")){g.text=g.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}let b=this.rules.other.listTaskCheckbox.exec(g.raw);if(b){let v={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};g.checked=v.checked,u.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=v.raw+g.tokens[0].raw,g.tokens[0].text=v.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(v)):g.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):g.tokens.unshift(v)}}else g.task&&(g.task=!1)}if(u.loose)for(let g of u.items){g.loose=!0;for(let m of g.tokens)m.type==="text"&&(m.type="paragraph")}return u}}html(s){let i=this.rules.block.html.exec(s);if(i){let r=ub(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:Mi(i[0],`
|
|
199
|
+
`),href:l,title:u}}}table(s){var p;let i=this.rules.block.table.exec(s);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let r=cb(i[1]),l=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(p=i[3])!=null&&p.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
200
|
+
`):[],d={type:"table",raw:Mi(i[0],`
|
|
201
|
+
`),header:[],align:[],rows:[]};if(r.length===l.length){for(let y of l)this.rules.other.tableAlignRight.test(y)?d.align.push("right"):this.rules.other.tableAlignCenter.test(y)?d.align.push("center"):this.rules.other.tableAlignLeft.test(y)?d.align.push("left"):d.align.push(null);for(let y=0;y<r.length;y++)d.header.push({text:r[y],tokens:this.lexer.inline(r[y]),header:!0,align:d.align[y]});for(let y of u)d.rows.push(cb(y,d.header.length).map((g,m)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:d.align[m]})));return d}}lheading(s){let i=this.rules.block.lheading.exec(s);if(i){let r=i[1].trim();return{type:"heading",raw:Mi(i[0],`
|
|
202
|
+
`),depth:i[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(s){let i=this.rules.block.paragraph.exec(s);if(i){let r=i[1].charAt(i[1].length-1)===`
|
|
203
|
+
`?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:r,tokens:this.lexer.inline(r)}}}text(s){let i=this.rules.block.text.exec(s);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(s){let i=this.rules.inline.escape.exec(s);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(s){let i=this.rules.inline.tag.exec(s);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(s){let i=this.rules.inline.link.exec(s);if(i){let r=i[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let d=Mi(r.slice(0,-1),"\\");if((r.length-d.length)%2===0)return}else{let d=RN(i[2],"()");if(d===-2)return;if(d>-1){let p=(i[0].indexOf("!")===0?5:4)+i[1].length+d;i[2]=i[2].substring(0,d),i[0]=i[0].substring(0,p).trim(),i[3]=""}}let l=i[2],u="";if(this.options.pedantic){let d=this.rules.other.pedanticHrefTitle.exec(l);d&&(l=d[1],u=d[3])}else u=i[3]?i[3].slice(1,-1):"";return l=l.trim(),this.rules.other.startAngleBracket.test(l)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?l=l.slice(1):l=l.slice(1,-1)),fb(i,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:u&&u.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(s,i){let r;if((r=this.rules.inline.reflink.exec(s))||(r=this.rules.inline.nolink.exec(s))){let l=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),u=i[l.toLowerCase()];if(!u){let d=r[0].charAt(0);return{type:"text",raw:d,text:d}}return fb(r,u,r[0],this.lexer,this.rules)}}emStrong(s,i,r=""){let l=this.rules.inline.emStrongLDelim.exec(s);if(!(!l||!l[1]&&!l[2]&&!l[3]&&!l[4]||l[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(l[1]||l[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,d,p,y=u,g=0,m=l[0][0],b=r===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,i=i.slice(-1*s.length+u);(l=v.exec(i))!==null;){if(d=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!d)continue;if(p=[...d].length,l[3]||l[4]){y+=p;continue}else if(l[5]||l[6]){if(u%3&&!((u+p)%3)){g+=p;continue}if(b)break}if(y-=p,y>0)continue;p=Math.min(p,p+y+g);let _=[...l[0]][0].length,w=s.slice(0,u+l.index+_+p);if(Math.min(u,p)%2){let x=w.slice(1,-1);return{type:"em",raw:w,text:x,tokens:this.lexer.inlineTokens(x)}}let N=w.slice(2,-2);return{type:"strong",raw:w,text:N,tokens:this.lexer.inlineTokens(N)}}}}codespan(s){let i=this.rules.inline.code.exec(s);if(i){let r=i[2].replace(this.rules.other.newLineCharGlobal," "),l=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return l&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:i[0],text:r}}}br(s){let i=this.rules.inline.br.exec(s);if(i)return{type:"br",raw:i[0]}}del(s,i,r=""){let l=this.rules.inline.delLDelim.exec(s);if(l&&(!l[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,d,p,y=u,g=this.rules.inline.delRDelim;for(g.lastIndex=0,i=i.slice(-1*s.length+u);(l=g.exec(i))!==null;){if(d=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!d||(p=[...d].length,p!==u))continue;if(l[3]||l[4]){y+=p;continue}if(y-=p,y>0)continue;p=Math.min(p,p+y);let m=[...l[0]][0].length,b=s.slice(0,u+l.index+m+p),v=b.slice(u,-u);return{type:"del",raw:b,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(s){let i=this.rules.inline.autolink.exec(s);if(i){let r,l;return i[2]==="@"?(r=i[1],l="mailto:"+r):(r=i[1],l=r),{type:"link",raw:i[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}url(s){var r;let i;if(i=this.rules.inline.url.exec(s)){let l,u;if(i[2]==="@")l=i[0],u="mailto:"+l;else{let d;do d=i[0],i[0]=((r=this.rules.inline._backpedal.exec(i[0]))==null?void 0:r[0])??"";while(d!==i[0]);l=i[0],i[1]==="www."?u="http://"+i[0]:u=i[0]}return{type:"link",raw:i[0],text:l,href:u,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(s){let i=this.rules.inline.text.exec(s);if(i){let r=this.lexer.state.inRawBlock;return{type:"text",raw:i[0],text:i[0],escaped:r}}}},ga=class Mf{constructor(i){_t(this,"tokens");_t(this,"options");_t(this,"state");_t(this,"inlineQueue");_t(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=i||el,this.options.tokenizer=this.options.tokenizer||new uo,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:to.normal,inline:Us.normal};this.options.pedantic?(r.block=to.pedantic,r.inline=Us.pedantic):this.options.gfm&&(r.block=to.gfm,this.options.breaks?r.inline=Us.breaks:r.inline=Us.gfm),this.tokenizer.rules=r}static get rules(){return{block:to,inline:Us}}static lex(i,r){return new Mf(r).lex(i)}static lexInline(i,r){return new Mf(r).inlineTokens(i)}lex(i){i=i.replace(xn.carriageReturn,`
|
|
204
|
+
`),this.blockTokens(i,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let l=this.inlineQueue[r];this.inlineTokens(l.src,l.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(i,r=[],l=!1){var d,p,y;this.tokenizer.lexer=this,this.options.pedantic&&(i=i.replace(xn.tabCharGlobal," ").replace(xn.spaceLine,""));let u=1/0;for(;i;){if(i.length<u)u=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}let g;if((p=(d=this.options.extensions)==null?void 0:d.block)!=null&&p.some(b=>(g=b.call({lexer:this},i,r))?(i=i.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.space(i)){i=i.substring(g.raw.length);let b=r.at(-1);g.raw.length===1&&b!==void 0?b.raw+=`
|
|
205
|
+
`:r.push(g);continue}if(g=this.tokenizer.code(i)){i=i.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
206
|
+
`)?"":`
|
|
207
|
+
`)+g.raw,b.text+=`
|
|
208
|
+
`+g.text,this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(g=this.tokenizer.fences(i)){i=i.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.heading(i)){i=i.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.hr(i)){i=i.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.blockquote(i)){i=i.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.list(i)){i=i.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.html(i)){i=i.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.def(i)){i=i.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
209
|
+
`)?"":`
|
|
210
|
+
`)+g.raw,b.text+=`
|
|
211
|
+
`+g.raw,this.inlineQueue.at(-1).src=b.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title},r.push(g));continue}if(g=this.tokenizer.table(i)){i=i.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.lheading(i)){i=i.substring(g.raw.length),r.push(g);continue}let m=i;if((y=this.options.extensions)!=null&&y.startBlock){let b=1/0,v=i.slice(1),_;this.options.extensions.startBlock.forEach(w=>{_=w.call({lexer:this},v),typeof _=="number"&&_>=0&&(b=Math.min(b,_))}),b<1/0&&b>=0&&(m=i.substring(0,b+1))}if(this.state.top&&(g=this.tokenizer.paragraph(m))){let b=r.at(-1);l&&(b==null?void 0:b.type)==="paragraph"?(b.raw+=(b.raw.endsWith(`
|
|
212
|
+
`)?"":`
|
|
213
|
+
`)+g.raw,b.text+=`
|
|
214
|
+
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g),l=m.length!==i.length,i=i.substring(g.raw.length);continue}if(g=this.tokenizer.text(i)){i=i.substring(g.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
215
|
+
`)?"":`
|
|
216
|
+
`)+g.raw,b.text+=`
|
|
217
|
+
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(g);continue}if(i){this.infiniteLoopError(i.charCodeAt(0));break}}return this.state.top=!0,r}inline(i,r=[]){return this.inlineQueue.push({src:i,tokens:r}),r}inlineTokens(i,r=[]){var y,g,m,b,v;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,w=>_.includes(w.slice(w.lastIndexOf("[")+1,-1))?"["+"a".repeat(w.length-2)+"]":w))}l=l.replace(this.tokenizer.rules.inline.anyPunctuation,_=>"+".repeat(_.length)),l=l.replace(this.tokenizer.rules.inline.blockSkip,(_,w,N)=>{let x=N?N.length:0;return _.slice(0,x)+"["+"a".repeat(_.length-x-2)+"]"}),l=((g=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:g.call({lexer:this},l))??l;let u=!1,d="",p=1/0;for(;i;){if(i.length<p)p=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}u||(d=""),u=!1;let _;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(N=>(_=N.call({lexer:this},i,r))?(i=i.substring(_.raw.length),r.push(_),!0):!1))continue;if(_=this.tokenizer.escape(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.tag(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.link(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(_.raw.length);let N=r.at(-1);_.type==="text"&&(N==null?void 0:N.type)==="text"?(N.raw+=_.raw,N.text+=_.text):r.push(_);continue}if(_=this.tokenizer.emStrong(i,l,d)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.codespan(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.br(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.del(i,l,d)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.autolink(i)){i=i.substring(_.raw.length),r.push(_);continue}if(!this.state.inLink&&(_=this.tokenizer.url(i))){i=i.substring(_.raw.length),r.push(_);continue}let w=i;if((v=this.options.extensions)!=null&&v.startInline){let N=1/0,x=i.slice(1),A;this.options.extensions.startInline.forEach(U=>{A=U.call({lexer:this},x),typeof A=="number"&&A>=0&&(N=Math.min(N,A))}),N<1/0&&N>=0&&(w=i.substring(0,N+1))}if(_=this.tokenizer.inlineText(w)){i=i.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(d=_.raw.slice(-1)),u=!0;let N=r.at(-1);(N==null?void 0:N.type)==="text"?(N.raw+=_.raw,N.text+=_.text):r.push(_);continue}if(i){this.infiniteLoopError(i.charCodeAt(0));break}}return r}infiniteLoopError(i){let r="Infinite loop on byte: "+i;if(this.options.silent)console.error(r);else throw new Error(r)}},fo=class{constructor(s){_t(this,"options");_t(this,"parser");this.options=s||el}space(s){return""}code({text:s,lang:i,escaped:r}){var d;let l=(d=(i||"").match(xn.notSpaceStart))==null?void 0:d[0],u=s.replace(xn.endingNewline,"")+`
|
|
218
|
+
`;return l?'<pre><code class="language-'+Ra(l)+'">'+(r?u:Ra(u,!0))+`</code></pre>
|
|
219
|
+
`:"<pre><code>"+(r?u:Ra(u,!0))+`</code></pre>
|
|
220
|
+
`}blockquote({tokens:s}){return`<blockquote>
|
|
221
|
+
${this.parser.parse(s)}</blockquote>
|
|
222
|
+
`}html({text:s}){return s}def(s){return""}heading({tokens:s,depth:i}){return`<h${i}>${this.parser.parseInline(s)}</h${i}>
|
|
223
|
+
`}hr(s){return`<hr>
|
|
224
|
+
`}list(s){let i=s.ordered,r=s.start,l="";for(let p=0;p<s.items.length;p++){let y=s.items[p];l+=this.listitem(y)}let u=i?"ol":"ul",d=i&&r!==1?' start="'+r+'"':"";return"<"+u+d+`>
|
|
225
|
+
`+l+"</"+u+`>
|
|
226
|
+
`}listitem(s){return`<li>${this.parser.parse(s.tokens)}</li>
|
|
227
|
+
`}checkbox({checked:s}){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:s}){return`<p>${this.parser.parseInline(s)}</p>
|
|
228
|
+
`}table(s){let i="",r="";for(let u=0;u<s.header.length;u++)r+=this.tablecell(s.header[u]);i+=this.tablerow({text:r});let l="";for(let u=0;u<s.rows.length;u++){let d=s.rows[u];r="";for(let p=0;p<d.length;p++)r+=this.tablecell(d[p]);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=ob(s);if(u===null)return l;s=u;let d='<a href="'+s+'"';return i&&(d+=' title="'+Ra(i)+'"'),d+=">"+l+"</a>",d}image({href:s,title:i,text:r,tokens:l}){l&&(r=this.parser.parseInline(l,this.parser.textRenderer));let u=ob(s);if(u===null)return Ra(r);s=u;let d=`<img src="${s}" alt="${Ra(r)}"`;return i&&(d+=` title="${Ra(i)}"`),d+=">",d}text(s){return"tokens"in s&&s.tokens?this.parser.parseInline(s.tokens):"escaped"in s&&s.escaped?s.text:Ra(s.text)}},ed=class{strong({text:s}){return s}em({text:s}){return s}codespan({text:s}){return s}del({text:s}){return s}html({text:s}){return s}text({text:s}){return s}link({text:s}){return""+s}image({text:s}){return""+s}br(){return""}checkbox({raw:s}){return s}},ba=class Cf{constructor(i){_t(this,"options");_t(this,"renderer");_t(this,"textRenderer");this.options=i||el,this.options.renderer=this.options.renderer||new fo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ed}static parse(i,r){return new Cf(r).parse(i)}static parseInline(i,r){return new Cf(r).parseInline(i)}parse(i){var l,u;this.renderer.parser=this;let r="";for(let d=0;d<i.length;d++){let p=i[d];if((u=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&u[p.type]){let g=p,m=this.options.extensions.renderers[g.type].call({parser:this},g);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(g.type)){r+=m||"";continue}}let y=p;switch(y.type){case"space":{r+=this.renderer.space(y);break}case"hr":{r+=this.renderer.hr(y);break}case"heading":{r+=this.renderer.heading(y);break}case"code":{r+=this.renderer.code(y);break}case"table":{r+=this.renderer.table(y);break}case"blockquote":{r+=this.renderer.blockquote(y);break}case"list":{r+=this.renderer.list(y);break}case"checkbox":{r+=this.renderer.checkbox(y);break}case"html":{r+=this.renderer.html(y);break}case"def":{r+=this.renderer.def(y);break}case"paragraph":{r+=this.renderer.paragraph(y);break}case"text":{r+=this.renderer.text(y);break}default:{let g='Token with "'+y.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return r}parseInline(i,r=this.renderer){var u,d;this.renderer.parser=this;let l="";for(let p=0;p<i.length;p++){let y=i[p];if((d=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&d[y.type]){let m=this.options.extensions.renderers[y.type].call({parser:this},y);if(m!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(y.type)){l+=m||"";continue}}let g=y;switch(g.type){case"escape":{l+=r.text(g);break}case"html":{l+=r.html(g);break}case"link":{l+=r.link(g);break}case"image":{l+=r.image(g);break}case"checkbox":{l+=r.checkbox(g);break}case"strong":{l+=r.strong(g);break}case"em":{l+=r.em(g);break}case"codespan":{l+=r.codespan(g);break}case"br":{l+=r.br(g);break}case"del":{l+=r.del(g);break}case"text":{l+=r.text(g);break}default:{let m='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return l}},ao,Bs=(ao=class{constructor(s){_t(this,"options");_t(this,"block");this.options=s||el}preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}emStrongMask(s){return s}provideLexer(s=this.block){return s?ga.lex:ga.lexInline}provideParser(s=this.block){return s?ba.parse:ba.parseInline}},_t(ao,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),_t(ao,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ao),MN=class{constructor(...s){_t(this,"defaults",Pf());_t(this,"options",this.setOptions);_t(this,"parse",this.parseMarkdown(!0));_t(this,"parseInline",this.parseMarkdown(!1));_t(this,"Parser",ba);_t(this,"Renderer",fo);_t(this,"TextRenderer",ed);_t(this,"Lexer",ga);_t(this,"Tokenizer",uo);_t(this,"Hooks",Bs);this.use(...s)}walkTokens(s,i){var l,u;let r=[];for(let d of s)switch(r=r.concat(i.call(this,d)),d.type){case"table":{let p=d;for(let y of p.header)r=r.concat(this.walkTokens(y.tokens,i));for(let y of p.rows)for(let g of y)r=r.concat(this.walkTokens(g.tokens,i));break}case"list":{let p=d;r=r.concat(this.walkTokens(p.items,i));break}default:{let p=d;(u=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&u[p.type]?this.defaults.extensions.childTokens[p.type].forEach(y=>{let g=p[y].flat(1/0);r=r.concat(this.walkTokens(g,i))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,i)))}}return r}use(...s){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(r=>{let l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let d=i.renderers[u.name];d?i.renderers[u.name]=function(...p){let y=u.renderer.apply(this,p);return y===!1&&(y=d.apply(this,p)),y}:i.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let d=i[u.level];d?d.unshift(u.tokenizer):i[u.level]=[u.tokenizer],u.start&&(u.level==="block"?i.startBlock?i.startBlock.push(u.start):i.startBlock=[u.start]:u.level==="inline"&&(i.startInline?i.startInline.push(u.start):i.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(i.childTokens[u.name]=u.childTokens)}),l.extensions=i),r.renderer){let u=this.defaults.renderer||new fo(this.defaults);for(let d in r.renderer){if(!(d in u))throw new Error(`renderer '${d}' does not exist`);if(["options","parser"].includes(d))continue;let p=d,y=r.renderer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b||""}}l.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new uo(this.defaults);for(let d in r.tokenizer){if(!(d in u))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;let p=d,y=r.tokenizer[p],g=u[p];u[p]=(...m)=>{let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}l.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new Bs;for(let d in r.hooks){if(!(d in u))throw new Error(`hook '${d}' does not exist`);if(["options","block"].includes(d))continue;let p=d,y=r.hooks[p],g=u[p];Bs.passThroughHooks.has(d)?u[p]=m=>{if(this.defaults.async&&Bs.passThroughHooksRespectAsync.has(d))return(async()=>{let v=await y.call(u,m);return g.call(u,v)})();let b=y.call(u,m);return g.call(u,b)}:u[p]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await y.apply(u,m);return v===!1&&(v=await g.apply(u,m)),v})();let b=y.apply(u,m);return b===!1&&(b=g.apply(u,m)),b}}l.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,d=r.walkTokens;l.walkTokens=function(p){let y=[];return y.push(d.call(this,p)),u&&(y=y.concat(u.call(this,p))),y}}this.defaults={...this.defaults,...l}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,i){return ga.lex(s,i??this.defaults)}parser(s,i){return ba.parse(s,i??this.defaults)}parseMarkdown(s){return(i,r)=>{let l={...r},u={...this.defaults,...l},d=this.onError(!!u.silent,!!u.async);if(this.defaults.async===!0&&l.async===!1)return d(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(u.hooks&&(u.hooks.options=u,u.hooks.block=s),u.async)return(async()=>{let p=u.hooks?await u.hooks.preprocess(i):i,y=await(u.hooks?await u.hooks.provideLexer(s):s?ga.lex:ga.lexInline)(p,u),g=u.hooks?await u.hooks.processAllTokens(y):y;u.walkTokens&&await Promise.all(this.walkTokens(g,u.walkTokens));let m=await(u.hooks?await u.hooks.provideParser(s):s?ba.parse:ba.parseInline)(g,u);return u.hooks?await u.hooks.postprocess(m):m})().catch(d);try{u.hooks&&(i=u.hooks.preprocess(i));let p=(u.hooks?u.hooks.provideLexer(s):s?ga.lex:ga.lexInline)(i,u);u.hooks&&(p=u.hooks.processAllTokens(p)),u.walkTokens&&this.walkTokens(p,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(s):s?ba.parse:ba.parseInline)(p,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(p){return d(p)}}}onError(s,i){return r=>{if(r.message+=`
|
|
236
|
+
Please report this to https://github.com/markedjs/marked.`,s){let l="<p>An error occurred:</p><pre>"+Ra(r.message+"",!0)+"</pre>";return i?Promise.resolve(l):l}if(i)return Promise.reject(r);throw r}}},Ji=new MN;function pt(s,i){return Ji.parse(s,i)}pt.options=pt.setOptions=function(s){return Ji.setOptions(s),pt.defaults=Ji.defaults,Kb(pt.defaults),pt};pt.getDefaults=Pf;pt.defaults=el;function CN(...s){return Ji.use(...s),pt.defaults=Ji.defaults,Kb(pt.defaults),pt}pt.use=CN;pt.walkTokens=function(s,i){return Ji.walkTokens(s,i)};pt.parseInline=Ji.parseInline;pt.Parser=ba;pt.parser=ba.parse;pt.Renderer=fo;pt.TextRenderer=ed;pt.Lexer=ga;pt.lexer=ga.lex;pt.Tokenizer=uo;pt.Hooks=Bs;pt.parse=pt;pt.options;pt.setOptions;pt.walkTokens;pt.parseInline;ba.parse;ga.lex;pt.setOptions({gfm:!0,breaks:!1});function td(s){const i=pt.parse(s??"",{async:!1});return zS.sanitize(i)}function Wi({text:s,className:i}){const r=J.useMemo(()=>td(s),[s]);return s!=null&&s.trim()?f.jsx("div",{className:`md ${i??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const DN={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function LN(s){return s.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(i,r)=>DN[r.toLowerCase()]??i).replace(/\s+/g," ").trim()}function zN(s,i){return LN(i)!==s.replace(/\s+/g," ").trim()}function Ys({text:s,className:i}){const r=J.useMemo(()=>s!=null&&s.trim()?td(s):"",[s]);return!r||!zN(s,r)?null:f.jsxs("div",{className:"md-preview",children:[f.jsx("div",{className:"lab",children:"preview"}),f.jsx("div",{className:`md prose ${i??""}`,dangerouslySetInnerHTML:{__html:r}})]})}const UN=/\.(md|markdown)$/i;function nd(s){return UN.test(s)}function jN(s){return/^new file mode /m.test(s)||/^--- \/dev\/null$/m.test(s)}function BN(s){const i=[];let r=0,l=!1;const u=s.split(`
|
|
237
|
+
`);for(let d=0;d<u.length;d++){const p=u[d],y=p.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),l=!0;continue}l&&(p===""&&d===u.length-1||p.startsWith("\\")||p.startsWith("-")||(p.startsWith("+")||p.startsWith(" ")||p==="")&&(i.push({n:r,text:p===""?"":p.slice(1),added:p.startsWith("+")}),r++))}return i}const no=s=>(s.match(/\n/g)??[]).length;function ad(s){const i=BN(s),r=jN(s),l=[];let u=[];const d=()=>{if(u.length===0)return;const p=u[0].n,y=new Set(u.filter(b=>b.added).map(b=>b.n)),g=u.map(b=>b.text).join(`
|
|
238
|
+
`)+`
|
|
239
|
+
`;let m=p;for(const b of pt.lexer(g)){const v=b.raw,_=v.trimEnd();if(_===""){m+=no(v);continue}const w=v.length-v.trimStart().length,N=m+no(v.slice(0,w)),x=N+no(_.slice(w));let A=!1;for(let U=N;U<=x&&!A;U++)A=y.has(U);l.push({kind:"block",raw:_.slice(w),from:N,to:x,changed:A}),m+=no(v)}u=[]};for(const p of i){const y=u[u.length-1];if(y&&p.n!==y.n+1){const g=p.n-y.n-1;d(),l.push({kind:"gap",lines:g})}u.push(p)}return d(),{items:l,isNew:r,lines:i.length}}const db={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},IN={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function HN(s){return(s==null?void 0:s.recommendation)==="approve"?"APPROVE":(s==null?void 0:s.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function ny(s,i){const r=d_(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 hb(s,i){const r=d=>{const p=Number((d??"").trim());return Number.isInteger(p)&&p>0?p: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 ay(s){const i=s.comments.filter(u=>u.status==="dropped"),r=s.comments.filter(u=>u.status!=="dropped"),l=ny(s.diff,r);return{inline:l,folded:r.filter(u=>!l.includes(u)),dropped:i}}function Sf(s){const i=s.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:i.filter(d=>d.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:d})=>`${kb[u]} ${d} ${u}${d===1?"":"s"}`).join(" · ")}function qN(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 GN(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 Df(s){const{inline:i,folded:r}=ay(s);if(s.bodyOverride!=null)return`${i.length===0?"no inline comments":`${i.length} inline`} · body you wrote`;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 pb={approve:"approve",comment:"comment",request_changes:"changes"},$N={approve:"approve",comment:"comment",request_changes:"changes"};function YN(s,i){return s.status==="dropped"?"none":s.drifted?"comment":s.origin==="user"?"awaiting":i}function iy(s,i=20){const r=document.getElementById(`c-${s}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}i>0&&requestAnimationFrame(()=>iy(s,i-1))}function FN(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 mb(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 ly({pick:s,chatBusy:i,onAdd:r,onAsk:l,onClose:u}){const[d,p]=J.useState(""),y=J.useRef(null);J.useEffect(()=>{var m;return(m=y.current)==null?void 0:m.focus()},[]);const g=d.trim();return f.jsxs("div",{className:"line-composer",children:[f.jsxs("div",{className:"line-composer-head",children:[f.jsxs("span",{className:"comment-loc",children:[s.path,":",s.line]}),s.side==="old"&&f.jsx("span",{className:"faint",title:"GitHub only takes inline comments on the new side of a diff.",children:"this line is gone from the new file — a comment on it posts on the file, not the line"})]}),f.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:d,onChange:m=>p(m.target.value),onKeyDown:m=>{m.key==="Escape"&&u(),m.key==="Enter"&&(m.metaKey||m.ctrlKey)&&g&&(m.preventDefault(),r(g))}}),f.jsx(Ys,{className:"comment-body",text:d}),f.jsxs("div",{className:"line-composer-actions",children:[f.jsxs("button",{className:"btn",disabled:!g,onClick:()=>r(g),children:[f.jsx(Ke,{name:"plus"}),"add comment",f.jsx(ka,{children:"⌘↵"})]}),f.jsxs("button",{className:"btn btn-accent",disabled:!g||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(g),children:[f.jsx(Ke,{name:"comment"}),"ask the reviewer"]}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function KN({patch:s,comments:i,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:y}){const g=J.useMemo(()=>s.trim()?o_(s,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[s]),m=J.useMemo(()=>Ja(s).map(L=>L.path),[s]),b=J.useMemo(()=>new Set(Ja(s).filter(L=>nd(L.path)&&ad(L.patch).lines>0).map(L=>L.path)),[s]),v=J.useMemo(()=>i.map(L=>`${L.id}@${L.path}:${L.line}`).join("|"),[i]),_=J.useRef(null),w=J.useRef(y);w.current=y;const[N,x]=J.useState([]),[A,U]=J.useState([]),[G,D]=J.useState(null),[re,H]=J.useState(null);J.useEffect(()=>{var I,ie;const L=_.current;if(!L)return;L.innerHTML=g,P0(L);const X=new Map,F=[];L.querySelectorAll(".d2h-file-wrapper").forEach((ce,ye)=>{var C,q,ue,W;const Ee=(q=(C=ce.querySelector(".d2h-file-name"))==null?void 0:C.textContent)==null?void 0:q.trim(),S=Ee&&m.includes(Ee)?Ee:m[ye];if(Ee&&X.set(Ee,ce),S){X.set(S,ce),ce.dataset.path=S;const be=document.createElement("div");if(be.className="file-comments",(ue=ce.querySelector(".d2h-file-header"))==null||ue.after(be),F.push({path:S,el:be}),b.has(S)){const pe=document.createElement("button");pe.type="button",pe.className="btn btn-sm md-read-toggle",pe.dataset.readPath=S,pe.textContent="read as a document",pe.title="Render this markdown instead of showing it line by line",(W=ce.querySelector(".d2h-file-header"))==null||W.appendChild(pe)}}});const he=[],Ne=new Map;for(const ce of i){if(ce.line==null)continue;const ye=X.get(ce.path);if(!ye)continue;const Ee=Array.from(ye.querySelectorAll(".d2h-diff-tbody > tr")).find(C=>{var q,ue;return((ue=(q=C.querySelector(".line-num2"))==null?void 0:q.textContent)==null?void 0:ue.trim())===String(ce.line)});if(!Ee)continue;const S=mb(Ne.get(Ee)??Ee,"inline-comment-row");Ne.set(Ee,S.tr),he.push({id:ce.id,el:S.holder})}x(he),U(F);const Se=ce=>{const ye=ce.target.closest(".md-read-toggle");if(ye!=null&&ye.dataset.readPath){w.current(ye.dataset.readPath);return}const Ee=ce.target.closest(".line-add");if(!Ee)return;const{path:S,line:C,side:q}=Ee.dataset;!S||!C||D({path:S,line:Number(C),side:q==="old"?"old":"new"})};L.addEventListener("click",Se);const me=()=>L.removeEventListener("click",Se);if(l)return D(null),H(null),me;for(const ce of L.querySelectorAll(".d2h-file-wrapper")){const ye=ce.dataset.path;if(ye)for(const Ee of ce.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const S=hb((I=Ee.querySelector(".line-num1"))==null?void 0:I.textContent,(ie=Ee.querySelector(".line-num2"))==null?void 0:ie.textContent);if(!S)continue;const C=document.createElement("button");C.type="button",C.className="line-add";const q=`Say something about ${ye}:${S.line}`;C.title=q,C.setAttribute("aria-label",q),C.tabIndex=-1,C.dataset.path=ye,C.dataset.line=String(S.line),C.dataset.side=S.side,Ee.appendChild(C)}}return H(null),me},[g,v,m,b,l]),J.useEffect(()=>{const L=_.current;if(!L||!G||l){H(null);return}const X=Array.from(L.querySelectorAll(".d2h-file-wrapper")).find(Ne=>Ne.dataset.path===G.path),F=Array.from((X==null?void 0:X.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(Ne=>{var I,ie;const Se=Ne.querySelector(".d2h-code-linenumber"),me=hb((I=Se==null?void 0:Se.querySelector(".line-num1"))==null?void 0:I.textContent,(ie=Se==null?void 0:Se.querySelector(".line-num2"))==null?void 0:ie.textContent);return(me==null?void 0:me.line)===G.line&&me.side===G.side});if(!F){D(null);return}const he=mb(F,"line-composer-row");return H(he.holder),()=>he.tr.remove()},[G,N,l]);const Z=i.filter(L=>!N.some(X=>X.id===L.id)),le=A.map(L=>({...L,comments:Z.filter(X=>X.path===L.path)})).filter(L=>L.comments.length>0),k=Z.filter(L=>!A.some(X=>X.path===L.path));return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"diff",ref:_}),N.map(({id:L,el:X})=>{const F=i.find(he=>he.id===L);return F?xu.createPortal(r(F),X,L):null}),le.map(({path:L,el:X,comments:F})=>xu.createPortal(f.jsx(f.Fragment,{children:F.map(r)}),X,`file:${L}`)),G&&re&&xu.createPortal(f.jsx(ly,{pick:G,chatBusy:u,onAdd:L=>{d(G,L),D(null)},onAsk:L=>{p(G,L),D(null)},onClose:()=>D(null)}),re,`pick-${G.path}-${G.side}-${G.line}`),k.map(L=>r(L))]})}function PN({block:s,path:i,changed:r,readOnly:l,onPick:u}){const d=J.useMemo(()=>td(s.raw),[s.raw]),p=`Say something about ${i}:${s.from}`;return f.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!l&&f.jsx("button",{type:"button",className:"md-block-add",title:p,"aria-label":p,tabIndex:-1,onClick:u,children:f.jsx(Ke,{name:"plus"})}),f.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:d}})]})}function ZN({path:s,doc:i,comments:r,renderComment:l,readOnly:u,chatBusy:d,onAddLineComment:p,onAskAboutLine:y,onShowDiff:g}){const[m,b]=J.useState(null),v=J.useMemo(()=>{const _=new Map,w=i.items.flatMap((x,A)=>x.kind==="block"?[{item:x,i:A}]:[]),N=[];for(const x of r){const A=x.line==null?void 0:w.filter(U=>U.item.from<=x.line).pop()??w[0];if(!A){N.push(x);continue}_.set(A.i,[..._.get(A.i)??[],x])}return{at:_,rest:N}},[i,r]);return f.jsxs("div",{className:"md-file",children:[f.jsxs("div",{className:"md-file-head",children:[f.jsx(Ke,{name:"file"}),f.jsx("span",{className:"md-file-name",children:s}),i.isNew?f.jsx("span",{className:"tag tag-added",children:"new file"}):f.jsx("span",{className:"faint",title:"A diff carries the lines around a change, not the file.",children:"the diff's lines only — what the PR removed isn't here"}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:g,title:"Back to the line-by-line diff",children:"show the diff"})]}),v.rest.length>0&&f.jsx("div",{className:"file-comments",children:v.rest.map(l)}),i.items.map((_,w)=>f.jsxs(J.Fragment,{children:[_.kind==="gap"?f.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",_.lines.toLocaleString()," line",_.lines===1?"":"s"," the diff skips"]}):f.jsx(PN,{block:_,path:s,changed:_.changed&&!i.isNew,readOnly:u,onPick:()=>b({path:s,line:_.from,side:"new"})}),(v.at.get(w)??[]).map(l),_.kind==="block"&&(m==null?void 0:m.line)===_.from&&f.jsx(ly,{pick:m,chatBusy:d,onAdd:N=>{p(m,N),b(null)},onAsk:N=>{y(m,N),b(null)},onClose:()=>b(null)})]},w))]})}function XN({patch:s,comments:i,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p}){const y=J.useMemo(()=>s.trim()?Ja(s):[],[s]),g=J.useMemo(()=>new Map(y.filter(x=>nd(x.path)).map(x=>[x.path,ad(x.patch)]).filter(([,x])=>x.lines>0)),[y]),[m,b]=J.useState({}),v=x=>{var A;return m[x]??((A=g.get(x))==null?void 0:A.isNew)??!1},_=[];for(const x of y){const A=_[_.length-1];if(g.has(x.path)&&v(x.path)){_.push({kind:"read",paths:[x.path],patch:x.patch});continue}(A==null?void 0:A.kind)==="diff"?(A.paths.push(x.path),A.patch+=`
|
|
240
|
+
${x.patch}`):_.push({kind:"diff",paths:[x.path],patch:x.patch})}if(y.length===0)return f.jsx("p",{className:"muted",children:"No diff for this chapter."});const w=new Set(y.map(x=>x.path)),N=x=>i.filter(A=>x(A.path));return f.jsxs(f.Fragment,{children:[_.map(x=>{const A=new Set(x.paths);if(x.kind==="read"){const U=x.paths[0];return f.jsx(ZN,{path:U,doc:g.get(U),comments:N(G=>G===U),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onShowDiff:()=>b(G=>({...G,[U]:!1}))},`read:${U}`)}return f.jsx(KN,{patch:x.patch,comments:N(U=>A.has(U)),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:p,onRead:U=>b(G=>({...G,[U]:!0}))},`diff:${x.paths[0]}`)}),N(x=>!w.has(x)).map(r)]})}function sy({comment:s,onUpdate:i,onDelete:r,onDiscuss:l,readOnly:u,flash:d}){const[p,y]=J.useState(!1),[g,m]=J.useState(s.body),b=s.status==="approved",v=s.status==="dropped",_=s.origin==="user"?"yours":v?"dropped":b?"kept":"drafted";return f.jsxs("div",{id:`c-${s.id}`,className:`comment comment-${s.status}${d?" comment-flash":""}`,children:[f.jsxs("div",{className:"comment-head",children:[f.jsxs("span",{className:"comment-loc",children:[s.path,s.line!=null?`:${s.line}`:""]}),f.jsx("span",{className:`tag tag-${s.origin==="user"?"yours":_}`,children:_}),s.drifted?f.jsx("span",{className:"tag tag-drift",title:"The code this comment pointed at is gone from the diff, so it can't post inline.",children:"drifted — posts in the body"}):s.line==null&&f.jsx("span",{className:"tag tag-drift",title:"A comment with no line — either about the file as a whole, or on a line the PR removed, which GitHub can't take inline.",children:"on the file — posts in the body"}),!s.drifted&&s.originalLine!=null&&s.originalLine!==s.line&&f.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",s.originalLine]}),f.jsx("span",{className:"grow"}),!u&&(p?f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"btn btn-sm",onClick:()=>{i({body:g}),y(!1)},children:"save"}),f.jsx("button",{className:"btn btn-sm",onClick:()=>{m(s.body),y(!1)},children:"cancel"})]}):f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:`btn btn-sm${b?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>i({status:b?"draft":"approved"}),children:[f.jsx(Ke,{name:"check"}),"keep"]}),f.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[f.jsx(Ke,{name:"edit"}),"edit"]}),f.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>i({status:v?"draft":"dropped"}),children:[f.jsx(Ke,{name:"drop"}),v?"dropped":"drop"]}),l&&f.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:l,children:[f.jsx(Ke,{name:"comment"}),"discuss"]}),s.origin==="user"&&f.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),p?f.jsxs(f.Fragment,{children:[f.jsx("textarea",{className:"comment-edit",value:g,onChange:w=>m(w.target.value),rows:Math.max(3,g.split(`
|
|
241
|
+
`).length)}),f.jsx(Ys,{className:"comment-body",text:eg(g,s.severity??null)})]}):f.jsx(Wi,{className:"comment-body prose",text:eg(s.body,s.severity??null)})]})}function QN({files:s,chapterId:i,onAdd:r}){const[l,u]=J.useState(!1),[d,p]=J.useState(s[0]??""),[y,g]=J.useState(""),[m,b]=J.useState("");return l?f.jsxs("div",{className:"add-comment",children:[f.jsxs("div",{className:"add-comment-row",children:[f.jsx("select",{value:d,onChange:v=>p(v.target.value),children:s.map(v=>f.jsx("option",{value:v,children:v},v))}),f.jsx("input",{placeholder:"line (optional)",value:y,onChange:v=>g(v.target.value.replace(/\D/g,"")),size:12})]}),f.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(v.target.value),rows:3}),f.jsx(Ys,{className:"comment-body",text:m}),f.jsxs("div",{className:"add-comment-row",children:[f.jsx("button",{className:"btn",disabled:!m.trim()||!d,onClick:()=>{r({path:d,line:y?Number(y):null,body:m.trim(),chapterId:i}),b(""),g(""),u(!1)},children:"add"}),f.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):f.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[f.jsx(Ke,{name:"plus"}),"add a comment of your own"]})}const VN=2e3;function JN({chapter:s,n:i,diff:r,comments:l,open:u,heavy:d,onToggle:p,onUpdateComment:y,onDeleteComment:g,onAddComment:m,onDiscuss:b,onAskAboutLine:v,chatBusy:_,readOnly:w,anchorRef:N,flash:x}){const A=J.useMemo(()=>c_(r,s.files),[r,s.files]),U=J.useMemo(()=>ny(A,l),[A,l]),G=J.useMemo(()=>new Set(Ja(A).map(Z=>Z.path)),[A]),D=l.filter(Z=>!U.includes(Z)&&!G.has(Z.path)),re=l.filter(Z=>U.includes(Z)||G.has(Z.path)),H=Z=>f.jsx(sy,{comment:Z,onUpdate:le=>y(Z.id,le),onDelete:()=>g(Z.id),onDiscuss:b&&(()=>b({target:"comment",id:Z.id})),readOnly:w,flash:x===Z.id},Z.id);return f.jsxs("section",{className:"chapter",ref:N,children:[f.jsxs("header",{className:"chapter-head",onClick:p,children:[f.jsx("span",{className:"faint",children:u?"▾":"▸"}),f.jsxs("h3",{children:[i," · ",s.title]}),f.jsxs("span",{className:"faint chapter-meta",children:[s.files.length," file",s.files.length===1?"":"s",l.length>0?` · ${l.length} comment${l.length===1?"":"s"}`:" · no comments",d!=null&&!u&&f.jsx("span",{title:"Drawing this many lines at once would leave the page too slow to scroll. Open it if you want it — nothing else on the page is affected.",children:` · ${d.toLocaleString()} lines to draw, folded to keep the page quick`})]}),f.jsx("span",{className:"grow"}),b&&f.jsxs("button",{className:"btn btn-sm",onClick:Z=>{Z.stopPropagation(),b({target:"chapter",id:s.id})},children:[f.jsx(Ke,{name:"comment"}),"discuss"]})]}),u&&f.jsxs("div",{className:"chapter-body",children:[f.jsx(Wi,{className:"prose chapter-explanation",text:s.explanation}),D.map(H),f.jsx(XN,{patch:A,comments:re,renderComment:H,readOnly:w,chatBusy:_,onAddLineComment:(Z,le)=>m({path:Z.path,line:Z.side==="new"?Z.line:null,body:le,chapterId:s.id}),onAskAboutLine:v}),!w&&s.files.length>0&&f.jsx(QN,{files:s.files,chapterId:s.id,onAdd:m})]})]})}function WN(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 Lf(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 eT({turn:s,artifact:i}){return f.jsxs("div",{className:`chat-turn chat-turn-${s.role}`,children:[f.jsx("div",{className:"chat-turn-who",children:s.role==="user"?"You":"Reviewer"}),s.refs.length>0&&f.jsx("div",{className:"chat-refs",children:s.refs.map((r,l)=>f.jsx("span",{className:"chat-ref",children:Lf(r,i)},l))}),f.jsx(Wi,{className:"chat-turn-body prose",text:s.body}),s.revisions.map((r,l)=>f.jsxs("div",{className:"chat-revision",children:["↳ ",WN(r,i)]},l)),s.refused.map((r,l)=>f.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},l))]})}function tT({artifact:s,reviewKey:i,refs:r,onClearRefs:l,onDropRef:u,onArtifact:d,readOnly:p,inputRef:y,anchorRef:g}){const[m,b]=J.useState(""),[v,_]=J.useState(!1),[w,N]=J.useState(null),x=s.chat??[],A=s.pendingChat??null,U=A!=null&&A.error==null,G=v||U,D=(H,Z,le)=>{!H||G||(_(!0),N(null),wf(i,{message:H,refs:Z}).then(k=>{d(k),le==null||le()}).catch(k=>N(String(k.message??k))).finally(()=>_(!1)))},re=()=>D(m.trim(),r,()=>{b(""),l()});return f.jsxs("section",{className:"card chat-panel",ref:g,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"talk to the reviewer"}),f.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),f.jsxs("div",{className:"card-body",children:[(x.length>0||A)&&f.jsxs("div",{className:"chat-log",children:[x.map(H=>f.jsx(eT,{turn:H,artifact:s},H.id)),A&&f.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[f.jsx("div",{className:"chat-turn-who",children:"You"}),A.refs.length>0&&f.jsx("div",{className:"chat-refs",children:A.refs.map((H,Z)=>f.jsx("span",{className:"chat-ref",children:Lf(H,s)},Z))}),f.jsx(Wi,{className:"chat-turn-body prose",text:A.message}),A.error?f.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",A.error,!p&&f.jsxs(f.Fragment,{children:[" ",f.jsx("button",{className:"btn btn-sm",onClick:()=>D(A.message,A.refs),children:"ask again"})," ",f.jsx("button",{className:"btn btn-sm",onClick:()=>Y_(i).then(d).catch(H=>N(String(H.message??H))),children:"dismiss"})]})]}):f.jsx("div",{className:"chat-waiting",children:A.progress.length>0?f.jsx("ol",{className:"chat-progress",children:A.progress.map((H,Z)=>f.jsx("li",{className:Z===A.progress.length-1?"now":void 0,children:H},Z))}):"Thinking… it re-reads the code before answering."})]})]}),p?f.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):f.jsxs(f.Fragment,{children:[r.length>0&&f.jsxs("div",{className:"chat-refs chat-refs-pending",children:[f.jsx("span",{className:"faint",children:"about:"}),r.map((H,Z)=>f.jsxs("button",{className:"chat-ref",onClick:()=>u(Z),title:"Remove",children:[Lf(H,s)," ✕"]},Z))]}),f.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:m,disabled:v,placeholder:x.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)&&re()}}),f.jsx(Ys,{className:"chat-turn-body",text:m}),f.jsxs("div",{className:"chat-actions",children:[f.jsxs("button",{className:"btn btn-dark",onClick:re,disabled:G||m.trim()==="",children:[f.jsx(Ke,{name:"send"}),U?"waiting for the answer…":v?"sending…":"send message",f.jsx(ka,{children:"⌘↵"})]}),f.jsx("span",{className:"grow"}),s.preChat&&f.jsx("button",{className:"btn btn-sm",disabled:G,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{_(!0),F_(i).then(d).catch(H=>N(String(H.message??H))).finally(()=>_(!1))},children:"reset the review"})]})]}),w&&f.jsx("div",{className:"error",children:w})]})]})}function ry(s){const i=J.useRef(null),r=J.useCallback(()=>{const l=i.current;l&&(l.style.height="auto",l.style.height=`${Math.min(l.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return J.useEffect(r,[s,r]),J.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),i}function nT({initial:s,onSave:i,onCancel:r}){const[l,u]=J.useState(s),[d,p]=J.useState(!1),[y,g]=J.useState(null),m=ry(l),b=()=>{d||(p(!0),g(null),i(l).catch(v=>{g(String((v==null?void 0:v.message)??v)),p(!1)}))};return f.jsxs("div",{className:"body-edit-wrap",children:[f.jsx("textarea",{ref:m,className:"body-edit",autoFocus:!0,value:l,onChange:v=>u(v.target.value),rows:10,onKeyDown:v=>{v.key==="Enter"&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),b()),v.key==="Escape"&&!d&&r()}}),f.jsx(Ys,{className:"body-md",text:l}),y&&f.jsx("p",{className:"error",children:y}),f.jsxs("div",{className:"card-actions",children:[f.jsxs("button",{className:"btn btn-sm",onClick:b,disabled:d,children:[d?"saving…":"save this body",f.jsx(ka,{children:"⌘↵"})]}),f.jsx("button",{className:"btn btn-sm",onClick:r,disabled:d,children:"cancel"}),f.jsx("span",{className:"faint",children:"this is exactly what posts — the review above stays as it reads"})]})]})}const aT=s=>s?`@${s} — handing this review over to you.`:"";function iT({artifact:s,reviewKey:i,onConfirm:r,onCancel:l}){const[u]=J.useState(Hb),[d,p]=J.useState(""),[y,g]=J.useState(""),[m,b]=J.useState(!1),[v,_]=J.useState(!1),[w,N]=J.useState(null),[x,A]=J.useState(null),[U,G]=J.useState(null),[D,re]=J.useState(!1),[H,Z]=J.useState(null),[le,k]=J.useState(null),[L,X]=J.useState(!1),[F,he]=J.useState(-1),Ne=ry(y),Se=J.useRef(null),me=xf(d),I=Ib(me),ie=!s.sent&&(s.summary!==""||s.comments.length>0),ce=D?JSON.stringify([s.bodyOverride,s.summary,s.chapters.map(W=>[W.title,W.explanation]),s.comments.map(W=>[W.path,W.line,W.body,W.severity,W.status,W.drifted])]):"";J.useEffect(()=>{if(!D)return;let W=!1;return k(null),Z(null),Ub(i,"COMMENT").then(be=>!W&&Z(be)).catch(be=>{W||(Z(null),k(String((be==null?void 0:be.message)??be)))}),()=>{W=!0}},[D,i,ce]);const ye=!D||H!=null;J.useEffect(()=>{var W;F<0||(W=document.getElementById(`handoff-option-${F}`))==null||W.scrollIntoView({block:"nearest"})},[F]);const Ee=J.useMemo(()=>t0(x??[],u),[x,u]),S=J.useMemo(()=>n0(Ee,d),[Ee,d]);J.useEffect(()=>{let W=!1;return P_(i).then(be=>!W&&A(be.logins)).catch(be=>!W&&G(String((be==null?void 0:be.message)??be))),()=>{W=!0}},[i]);const C=W=>{p(W),m||g(aT(xf(W)))},q=W=>{C(W),X(!1),he(-1)};J.useLayoutEffect(()=>{var W;(W=Se.current)==null||W.showModal()},[]);const ue=()=>{v||!I||!ye||(_(!0),N(null),r(me,y.trim(),D).catch(W=>{N(String((W==null?void 0:W.message)??W)),_(!1)}))};return f.jsx("dialog",{className:"handoff-dialog",ref:Se,"aria-label":`Hand off ${s.id}`,onCancel:W=>{W.preventDefault(),v||l()},onClick:W=>{W.target===Se.current&&!v&&l()},children:f.jsxs("div",{className:"handoff-body",children:[f.jsxs("div",{className:"send-top",children:[f.jsx("span",{className:"lab",children:"hand off"}),f.jsx("span",{className:"grow"}),f.jsx("span",{className:"faint",children:s.id})]}),f.jsxs("div",{className:"handoff-who",children:[f.jsx("span",{className:"handoff-at",children:"@"}),f.jsxs("div",{className:"handoff-combo",children:[f.jsx("input",{className:"handoff-login",autoFocus:!0,value:d,spellCheck:!1,placeholder:"github login",role:"combobox","aria-expanded":L&&S.length>0,"aria-controls":"handoff-options","aria-autocomplete":"list","aria-activedescendant":F>=0?`handoff-option-${F}`:void 0,onFocus:()=>X(!0),onBlur:()=>X(!1),onChange:W=>{C(W.target.value),X(!0),he(0)},onKeyDown:W=>{const be=L&&S.length>0;if(W.key==="ArrowDown"||W.key==="ArrowUp"){if(W.preventDefault(),!be)return X(!0);const pe=W.key==="ArrowDown"?1:-1;he(ke=>(ke+pe+S.length)%S.length);return}if(W.key==="Enter"){const pe=be&&F>=0?S[F]:void 0;pe&&pe.login.toLowerCase()!==me.toLowerCase()?q(pe.login):ue();return}W.key==="Escape"&&be&&(W.preventDefault(),X(!1),he(-1))}}),L&&S.length>0&&f.jsx("ul",{className:"handoff-options",id:"handoff-options",role:"listbox",children:S.map((W,be)=>f.jsxs("li",{id:`handoff-option-${be}`,role:"option","aria-selected":be===F,className:be===F?"on":void 0,onMouseEnter:()=>he(be),onMouseDown:pe=>{pe.preventDefault(),q(W.login)},children:[f.jsxs("span",{className:"handoff-option-login",children:["@",W.login]}),W.recent&&f.jsx("span",{className:"faint",children:"handed to before"})]},W.login))})]})]}),U&&f.jsx("p",{className:"faint handoff-who-note",children:"cerber could not read who this repo takes reviews from — type the login instead."}),f.jsx("textarea",{ref:Ne,className:"body-edit",rows:2,value:y,onChange:W=>{b(!0),g(W.target.value)},onKeyDown:W=>{W.key==="Enter"&&(W.metaKey||W.ctrlKey)&&(W.preventDefault(),ue())}}),f.jsxs("div",{className:"body-source",children:[f.jsx("span",{className:"faint",children:y.trim()?"goes on the PR as a plain comment, not a review":"nothing will be posted — only the review request moves"}),y.trim()!==""&&f.jsx("button",{className:"link",onClick:()=>{b(!0),g("")},disabled:v,children:"post no note"})]}),ie&&f.jsxs("div",{className:"handoff-with-review",children:[f.jsxs("label",{children:[f.jsx("input",{type:"checkbox",checked:D,disabled:v,onChange:W=>re(W.target.checked)}),f.jsxs("span",{children:["also post the review — ",f.jsx("span",{className:"faint",children:Df(s)})]})]}),D&&f.jsxs(f.Fragment,{children:[f.jsxs("p",{className:"faint",children:["Posts as a ",f.jsx("strong",{children:"comment"}),", never an approval or a change request: you are handing over the verdict, so it is @",I?me:"them","'s to make. The findings keep their grades."]}),le?f.jsxs("p",{className:"error",children:["cerber could not build the body this would post, so it will not post one:"," ",le]}):H?f.jsx("pre",{className:"body-preview",children:H.body}):f.jsx("p",{className:"faint",children:"building the body…"})]})]}),w&&f.jsx("p",{className:"error",children:w}),f.jsxs("p",{className:"faint handoff-says",children:[I?f.jsxs(f.Fragment,{children:["@",me]}):"They"," will be asked for this review and you will be taken off it."," ",D?"This row goes under sent, with the review on the PR.":s.sent?"This row stays under sent.":"This row is filed under settled, and comes back if anybody asks you again."]}),f.jsxs("div",{className:"card-actions",children:[f.jsxs("button",{className:"btn btn-sm",onClick:ue,disabled:v||!I||!ye,children:[f.jsx(Ke,{name:"arrowRight"}),v?"handing over…":I?`hand off to @${me}`:"hand off",f.jsx(ka,{children:"⌘↵"})]}),f.jsx("button",{className:"btn btn-sm",onClick:l,disabled:v,children:"cancel"})]})]})})}function lT({artifact:s,reviewKey:i,event:r,sending:l,onSend:u,error:d,footer:p,next:y,onAdvance:g,onBody:m,anchorRef:b}){const[v,_]=J.useState(null),[w,N]=J.useState(null),[x,A]=J.useState(s.bodyOverride!=null),[U,G]=J.useState(!1),D=s.bodyOverride!=null;J.useEffect(()=>{D&&A(!0)},[D]);const re=x&&!U?JSON.stringify([s.bodyOverride,s.summary,s.chapters.map(H=>[H.title,H.explanation]),s.comments.map(H=>[H.path,H.line,H.body,H.severity,H.status,H.drifted])]):"";return J.useEffect(()=>{if(!x||U)return;let H=!1;return _(null),N(null),Ub(i,r).then(Z=>{H||(_(Z),N(null))}).catch(Z=>{H||N(String(Z))}),()=>{H=!0}},[i,r,re,x,U]),s.sent?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"sent-strip",ref:b,children:[f.jsxs("strong",{children:["✔ sent as ",db[s.sent.event]]}),f.jsxs("span",{className:"faint",children:[new Date(s.sent.at).toLocaleString()," · ",Df(s),s.sent.auto?" · auto-sent by the daemon":""]}),f.jsx("span",{className:"grow"}),s.sent.url&&f.jsxs("a",{href:s.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",f.jsx(Ke,{name:"external"})]}),f.jsxs("button",{className:"btn",onClick:g,children:[y?`next review: ${y.pr.repo}#${y.pr.number}`:"back to the queue",f.jsx(Ke,{name:"arrowRight"})]})]}),f.jsx("div",{className:"post-actions",children:p})]}):f.jsxs("div",{className:"send-panel",ref:b,children:[f.jsxs("div",{className:"send-top",children:[f.jsx("span",{className:"lab",children:"send to github"}),f.jsx("span",{className:"grow"}),f.jsx("span",{className:"faint",children:Df(s)}),f.jsxs("button",{className:"link",onClick:()=>A(!x),disabled:U,title:U?"save or cancel the body you are writing first":void 0,children:[f.jsx(Ke,{name:"eye"}),x?"hide what gets posted":"see what gets posted"]})]}),f.jsx("div",{className:"send-action",children:f.jsxs("button",{className:`send-btn tone-bg-${IN[r]}`,disabled:l,onClick:u,children:[f.jsx(Ke,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),l?"sending…":`${db[r]} on ${s.id}`," ",f.jsx(ka,{children:"s"})]})}),d&&f.jsx("p",{className:"error",children:d}),x&&f.jsxs(f.Fragment,{children:[w&&f.jsx("p",{className:"error",children:w}),v?U?f.jsx(nT,{initial:v.body,onSave:H=>m(H).then(()=>G(!1)),onCancel:()=>G(!1)}):f.jsxs(f.Fragment,{children:[f.jsx("pre",{className:"body-preview",children:v.body}),f.jsxs("div",{className:"body-source",children:[D?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"faint",children:"you wrote this body — it no longer follows the summary or the comments"}),f.jsx("button",{className:"link",onClick:()=>m(null).catch(H=>N(String((H==null?void 0:H.message)??H))),children:"build it from the review again"})]}):f.jsx("span",{className:"faint",children:"built from the summary, the walkthrough and the folded comments"}),f.jsxs("button",{className:"link",onClick:()=>G(!0),children:[f.jsx(Ke,{name:"edit"}),D?"keep editing it":"write it yourself"]})]})]}):!w&&f.jsx("p",{className:"faint",children:"building the body…"})]}),f.jsx("div",{className:"send-footer",children:p})]})}function sT({filed:s}){var l,u,d;const i=((l=s.review)==null?void 0:l.url)??((u=s.reply)==null?void 0:u.url)??null,r=p=>new Date(p).toLocaleDateString();return s.reason==="own-reply"&&s.reply?f.jsxs("div",{children:[f.jsxs("strong",{children:["You answered on this PR on ",r(s.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",i?f.jsx("a",{href:i,target:"_blank",rel:"noreferrer",children:"comment"}):"comment"," ","as a review, but the PR is with its author either way. Nothing here was changed or sent — the draft is still yours to send."]}):s.reason==="request-withdrawn"?f.jsxs("div",{children:[f.jsx("strong",{children:"Nobody is asking for this review any more."})," The request that put this PR in the inbox was taken back on or before ",r(s.at),", and you had said nothing on the PR, so cerber filed the draft under settled rather than leaving it out for you. Nothing here was changed or sent — the draft is still yours to send."]}):f.jsxs("div",{children:[f.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((d=s.review)==null?void 0:d.at)??s.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",i?f.jsx("a",{href:i,target:"_blank",rel:"noreferrer",children:"already on the PR"}):"already on the PR",". Nothing here was changed or sent — the draft is still yours to send."]})}function rT({entries:s,open:i,onToggle:r,anchorRef:l}){const u=d=>{const p=new Date(d);return Number.isNaN(p.getTime())?d:`${p.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${p.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return f.jsxs("section",{className:"card",ref:l,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"history"}),f.jsx("span",{className:"faint",children:s.length>0?`${s.length} entr${s.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),f.jsx("span",{className:"grow"}),f.jsxs("button",{className:"btn btn-sm","aria-expanded":i,onClick:r,children:[f.jsx(Ke,{name:i?"up":"down",size:12}),i?"hide":"show"]})]}),i&&f.jsx("div",{className:"card-body",children:s.length===0?f.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):f.jsx("ol",{className:"history",children:s.map((d,p)=>({e:d,i:p})).reverse().map(({e:d,i:p})=>f.jsxs("li",{className:"history-row",title:d.at,children:[f.jsx("span",{className:"history-at",children:u(d.at)}),f.jsx("span",{className:"history-by",children:d.by}),f.jsx("span",{className:"history-what",children:d.what}),d.cause&&f.jsx("span",{className:"history-cause",children:d.cause})]},`${p}-${d.at}`))})})]})}function oT({handoff:s,sent:i,hasDraft:r}){const l=new Date(s.at).toLocaleDateString();return f.jsxs("div",{children:[f.jsxs("strong",{children:["You handed this to @",s.to," on ",l,"."]})," ","GitHub asks them for this review now",s.withdrewYours?" and no longer asks you":" — but cerber could not take your own request off, so it is asking both of you","."," ",s.note?s.note.url?f.jsxs(f.Fragment,{children:["A"," ",f.jsx("a",{href:s.note.url,target:"_blank",rel:"noreferrer",children:"note"})," ","on the PR says so."]}):f.jsx(f.Fragment,{children:"A note on the PR says so."}):f.jsx(f.Fragment,{children:"No note was posted — only the request moved."})," ",i?f.jsx(f.Fragment,{children:"Your review of it is on the PR — the draft below is what went."}):r?f.jsx(f.Fragment,{children:"The draft below was never sent. It is still yours to read, or to send."}):f.jsx(f.Fragment,{children:"Nothing was drafted here, and nothing was sent."})]})}function cT({artifact:s,freshness:i,rerunning:r,onRerun:l}){const u=s.status==="running",d=(i==null?void 0:i.prState)??s.pr.state,p=d==="CLOSED"||d==="MERGED",y=s.refresh,g=i!=null&&i.changed?y:null;if(u)return f.jsxs("div",{className:"freshness freshness-running",children:[f.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]});const m=s.filed,b=s.handoff;return!p&&!g&&!m&&!b?null:f.jsxs("div",{className:"freshness",children:[b&&f.jsx(oT,{handoff:b,sent:s.sent,hasDraft:s.summary!==""||s.comments.length>0}),m&&f.jsx(sT,{filed:m}),p&&f.jsxs("div",{children:[f.jsxs("strong",{children:["This PR is ",d==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),g&&f.jsxs("div",{children:[f.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",f.jsx("code",{children:g.toSha.slice(0,7)}),", reviewed at"," ",f.jsx("code",{children:g.fromSha.slice(0,7)}),"."," ",g.moved>0&&f.jsxs(f.Fragment,{children:[g.moved," comment(s) followed the code. "]}),g.drifted>0&&f.jsxs(f.Fragment,{children:[g.drifted," could not — the code they point at is gone, so they will post in the review body instead of inline."," "]}),"The summary and verdict still describe the commit that was reviewed.",!s.sent&&f.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>l(),children:r?"starting…":"re-review at the new head"})]})]})}function uT({reviewKey:s}){var ge,Ce,Pe,Qe;const[i,r]=J.useState(null),[l,u]=J.useState(null),[d,p]=J.useState(null),[y,g]=J.useState(null),[m,b]=J.useState(!1),[v,_]=J.useState([]),[w,N]=J.useState(new Set),x=z=>N(P=>new Set(P).add(z)),[A,U]=J.useState(!1),[G,D]=J.useState([]),re=J.useRef(null),[H,Z]=J.useState(new Set),[le,k]=J.useState(0),L=J.useRef(new Map),X=J.useRef(null),F=J.useRef(null),he=J.useRef(null),Ne=J.useRef(null),Se=J.useRef(null),me=J.useRef(null),[I,ie]=J.useState(!1),ce=J.useRef(null),[ye,Ee]=J.useState(!1),[S,C]=J.useState(null),[q,ue]=J.useState(null);J.useEffect(()=>{if(!q)return;const z=setTimeout(()=>ue(null),1800);return()=>clearTimeout(z)},[q]);const W=z=>{var P,de;D(He=>He.some(Ze=>Ze.target===z.target&&Ze.id===z.id)?He:[...He,z]),(P=re.current)==null||P.scrollIntoView({behavior:"smooth",block:"center"}),(de=re.current)==null||de.focus()};J.useEffect(()=>{let z=!1;return window.scrollTo({top:0}),r(null),u(null),p(null),g(null),C(null),ag(s).then(P=>{if(!z)return r(P),$_(s).then(de=>{z||(p(de),de.changed&&r(de.artifact))}).catch(de=>!z&&g(String(de.message??de)))}).catch(P=>!z&&u(String(P))),()=>{z=!0}},[s]),J.useEffect(()=>{Kf().then(_).catch(()=>{})},[]),J.useEffect(()=>{const z=ce.current;if(!z)return;const P=()=>document.documentElement.style.setProperty("--top-h",`${z.offsetHeight}px`);P();const de=new ResizeObserver(P);return de.observe(z),()=>{de.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[i==null?void 0:i.id]);const be=(i==null?void 0:i.pendingChat)!=null&&i.pendingChat.error==null;J.useEffect(()=>{if((i==null?void 0:i.status)!=="running"&&!be)return;const z=setInterval(()=>{ag(s).then(P=>{r(P),P.status!=="running"&&b(!1)}).catch(()=>{})},3e3);return()=>clearInterval(z)},[i==null?void 0:i.status,be,s]);const pe=(i==null?void 0:i.sent)!=null,ke=J.useMemo(()=>g_(v,s,w),[v,s,w]),Ae=ke.findIndex(z=>z.key===s),je=(Ae>0?ke[Ae-1]:null)??null,Le=(Ae>=0&&Ae<ke.length-1?ke[Ae+1]:null)??null,Me=z=>{window.location.hash=`#/r/${encodeURIComponent(z)}`},Nt=()=>{Le?Me(Le.key):window.location.hash="#/"},Be=J.useMemo(()=>{if(!i)return[];const z=h_(i.diff,i.chapters);return z.length>0?[...i.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:z}]:i.chapters},[i]),$n=J.useMemo(()=>{const z=p_((i==null?void 0:i.diff)??""),P=new Set(Ja((i==null?void 0:i.diff)??"").filter(He=>nd(He.path)&&ad(He.patch).isNew).map(He=>He.path)),de=He=>{const Ze=z.get(He)??0;return P.has(He)?Math.round(Ze/4):Ze};return new Map(Be.map(He=>[He.id,He.files.reduce((Ze,un)=>Ze+de(un),0)]))},[i==null?void 0:i.diff,Be]),tt=z=>{const P=$n.get(z)??0;return P>VN?P:null},yn=z=>H.has(z)?tt(z)!=null:tt(z)==null,Yn=z=>Z(P=>{const de=new Set(P);return de.has(z)?de.delete(z):de.add(z),de});J.useEffect(()=>Z(new Set),[s]);const Qt=z=>{const P=Be[z];return P?(k(z),yn(P.id)||Yn(P.id),P):null},Jt=(...z)=>{for(const P of z)if(P.current)return P.current.scrollIntoView({behavior:"smooth",block:"start"})},Wt=z=>{var de;const P=Qt(z);P&&((de=L.current.get(P.id))==null||de.scrollIntoView({behavior:"smooth",block:"start"}))},ya=(z,P)=>{Qt(z),ue(P),iy(P)},Cn=HN(i==null?void 0:i.verdict);J.useEffect(()=>C(null),[Cn]);const it=()=>{!i||i.sent||ye||(Ee(!0),C(null),K_(s,Cn).then(z=>{r(z),x(s)}).catch(z=>C(String(z.message??z))).finally(()=>Ee(!1)))};if(J.useEffect(()=>{const z=P=>{FN(P.target)||P.metaKey||P.ctrlKey||P.altKey||(P.key==="["&&je?Me(je.key):P.key==="]"&&Le?Me(Le.key):P.key==="n"?Wt(Math.min(Be.length-1,le+1)):P.key==="N"?Wt(Math.max(0,le-1)):P.key==="s"&&!pe&&it())};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[je==null?void 0:je.key,Le==null?void 0:Le.key,Be,le,pe,Cn,i==null?void 0:i.sent,ye]),l&&!i)return f.jsx("p",{className:"error pad",children:l});if(!i)return f.jsx("p",{className:"muted pad",children:"Loading…"});const Lt=z=>{b(!0),u(null),zb(s,z).then(r).catch(P=>{u(String(P)),b(!1)})},rt=z=>z.then(r).catch(P=>u(String(P))),vn=z=>io(s,{status:z}).then(()=>{x(s),Nt()}).catch(P=>u(String(P))),En=(z,P,de)=>Z_(s,{to:z,note:P,postReview:de}).then(({artifact:He,noteError:Ze,sendError:un})=>{e0(z),r(He),U(!1),x(s);const Fn=[un&&`the review did not post: ${un}`,Ze&&`the note did not post: ${Ze}`].filter(Boolean);Fn.length>0?u(`Handed to @${z}, but ${Fn.join("; and ")}`):Nt()}),Dn=(z,P)=>rt(I_(s,z,P)),An=z=>rt(q_(s,z)),Ln=z=>rt(H_(s,z)),zn=i.comments.filter(z=>!z.chapterId||!Be.some(P=>P.id===z.chapterId)),{inline:_n,folded:Ot,dropped:en}=ay(i),kt=i.comments.filter(z=>z.status!=="dropped"&&z.drifted).length,Un=i.verdict?pb[i.verdict.recommendation]:"none",Rn=GN(i),tn=qN(i),Ue=i.pendingChat!=null&&i.pendingChat.error==null,nn=i.status==="running"||Ue,an=()=>rt(wf(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}]})),zt=(z,P)=>{rt(wf(s,{message:P,refs:[{target:"line",id:null,path:z.path,line:z.line,side:z.side}]}).then(de=>{var He;return(He=Ne.current)==null||He.scrollIntoView({behavior:"smooth",block:"start"}),de}))},O=(ge=i.run)!=null&&ge.trusted?"ran the code":(Ce=i.run)!=null&&Ce.withSource?"read the full source":i.run?"read the diff only":"no run yet",ne=z=>{var P;return f.jsxs("button",{className:`verdict-pick${((P=i.verdict)==null?void 0:P.recommendation)===z?` verdict-pick-on tone-${pb[z]}`:""}`,title:z==="approve"?"Approve":z==="comment"?"Comment without blocking":"Request changes",onClick:()=>rt(io(s,{verdictRecommendation:z})),children:[f.jsx(Ke,{name:$N[z]}),z.replace("_"," ")]},z)};return f.jsxs("div",{className:"review",children:[f.jsxs("div",{className:"review-top",ref:ce,children:[f.jsx("div",{className:"crumb",children:f.jsxs("div",{className:"bar-inner",children:[f.jsx("a",{href:"#/",children:"← queue"}),f.jsx("span",{className:"crumb-sep",children:"/"}),f.jsx("span",{className:"crumb-slug",children:i.id}),f.jsxs("span",{className:"walk",children:[f.jsx("button",{className:"walk-btn",disabled:!je,title:je?`[ — ${je.id}: ${je.pr.title}`:"no more reviews this way",onClick:()=>je&&Me(je.key),children:f.jsx(Ke,{name:"chevronLeft"})}),f.jsx("button",{className:"walk-btn",disabled:!Le,title:Le?`] — ${Le.id}: ${Le.pr.title}`:"no more reviews this way",onClick:()=>Le&&Me(Le.key),children:f.jsx(Ke,{name:"chevronRight"})})]}),Ae>=0&&f.jsxs("span",{className:"faint",children:[Ae+1," of ",ke.length," awaiting"]}),f.jsx("span",{className:"faint crumb-next",children:Le?`next: ${Le.pr.title}`:Ae>=0?"last in the queue":""}),f.jsx("span",{className:"grow"}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Ke,{name:"settings",size:15})})]})}),f.jsx("div",{className:"review-head",children:f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"review-head-top",children:[f.jsx("a",{className:"review-title",href:i.pr.url,target:"_blank",rel:"noreferrer",children:i.pr.title}),f.jsx("span",{className:"grow"}),i.verdict&&(pe?f.jsxs("span",{className:`chip tone-${Un}`,children:[i.verdict.recommendation.replace("_"," "),tn&&` · ${tn}`," · ",i.verdict.confidence,"%"]}):f.jsxs("button",{className:`chip chip-btn tone-${Un}`,title:"change it, or send — both are at the foot of the page",onClick:()=>Jt(X,Se),children:[i.verdict.recommendation.replace("_"," "),tn&&` · ${tn}`," · ",i.verdict.confidence,"%",f.jsx(Ke,{name:"down",size:12})]})),!pe&&i.status!=="running"&&f.jsxs("button",{className:"btn btn-sm",disabled:m,title:i.run?"Review the current head again — this draft is replaced, your own comments are kept":"Draft a review of this PR",onClick:()=>Lt(!0),children:[f.jsx(Ke,{name:"rerun"}),m?"starting…":i.run?"re-review at head":"review now"]})]}),f.jsxs("div",{className:"review-head-meta",children:[f.jsx("span",{children:i.pr.author}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[i.pr.headRefName," → ",i.pr.baseRefName,i.pr.headSha?` · ${i.pr.headSha.slice(0,7)}`:""]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[i.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",i.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",i.pr.deletions]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:O}),((Pe=i.run)==null?void 0:Pe.costUsd)!=null&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{title:"What this review would cost at API token rates. Riding a Claude subscription, it draws on your usage limits instead.",children:["≈$",i.run.costUsd.toFixed(2)," at API rates"]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:i.status})]})]})})]}),f.jsxs("div",{className:"wrap review-body",children:[f.jsxs("aside",{className:"rail",children:[f.jsxs("div",{className:"rail-jumps",children:[f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Jt(F),children:"summary"}),i.verdict&&f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>Jt(he),children:"why"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var z;Jt(Ne),(z=re.current)==null||z.focus()},children:"chat"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{ie(!0),Jt(me)},children:"history"})]}),Be.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>Wt(0),children:"changes"}),Be.map((z,P)=>f.jsxs("div",{className:"rail-group",children:[f.jsxs("button",{className:`rail-item${yn(z.id)?" rail-item-on":""}`,onClick:()=>Wt(P),children:[f.jsxs("span",{className:"grow",children:[P+1," · ",z.title]}),f.jsxs("span",{className:"rail-count",children:[z.files.length,"f"]})]}),i.comments.filter(de=>de.chapterId===z.id).map(de=>f.jsxs("button",{className:`rail-comment${de.status==="dropped"?" rail-comment-dropped":""}`,title:`${de.path}${de.line!=null?`:${de.line}`:""} — ${de.body}`,onClick:()=>ya(P,de.id),children:[f.jsx("span",{className:`rail-dot tone-${YN(de,Un)}`,children:"●"}),f.jsxs("span",{className:"rail-comment-loc",children:[de.path.split("/").pop(),de.line!=null?`:${de.drifted?"~":""}${de.line}`:""]})]},de.id))]},z.id))]}),f.jsx("button",{className:`lab rail-lab-btn${Be.length>0?" rail-lab":""}`,onClick:()=>Jt(X,Se),children:"verdict"}),f.jsxs("div",{className:"rail-facts",children:[f.jsxs("div",{children:[i.comments.length-en.length," keeping · ",en.length," dropped"]}),f.jsxs("div",{children:[_n.length," inline · ",Ot.length," folded into body"]}),kt>0&&f.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[kt," drifted"]})]})]}),f.jsxs("div",{className:"main",children:[f.jsx(cT,{artifact:i,freshness:d,rerunning:m,onRerun:Lt}),y&&f.jsxs("div",{className:"freshness",title:y,children:[f.jsx("strong",{children:"Couldn't check GitHub for newer commits."})," This is the review as it was drafted — if the PR has moved on since, nothing here knows it yet."]}),l&&f.jsx("div",{className:"error",children:l}),((Qe=i.run)==null?void 0:Qe.error)&&f.jsxs("div",{className:"error",children:["Run failed: ",i.run.error]}),f.jsx("div",{className:"card card-summary",ref:F,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"summary"}),f.jsx(Wi,{className:"prose lead",text:i.summary||"(no summary)"}),!pe&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>W({target:"summary",id:null}),children:[f.jsx(Ke,{name:"comment"}),"discuss the summary"]})]})}),i.verdict&&f.jsx("div",{className:`card card-why tone-border-${Un}`,ref:he,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"why"}),f.jsxs("div",{className:"sev-counts",children:[Sf(i)&&f.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Sf(i)}),Sf(i)&&f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{title:"How sure the review is that its own findings and grades are right — not how good an idea merging is. That is the verdict, and it follows from the blockers.",children:[i.verdict.confidence,"% sure of the findings"]})]}),f.jsx(Wi,{className:"prose lead",text:i.verdict.reasoning}),!pe&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>W({target:"verdict",id:null}),children:[f.jsx(Ke,{name:"comment"}),"discuss the verdict"]})]})}),Be.map((z,P)=>f.jsx(JN,{chapter:z,n:P+1,diff:i.diff,comments:i.comments.filter(de=>de.chapterId===z.id),open:yn(z.id),heavy:tt(z.id),onToggle:()=>Yn(z.id),onUpdateComment:Dn,onDeleteComment:An,onAddComment:Ln,onDiscuss:pe?void 0:W,onAskAboutLine:zt,chatBusy:Ue,readOnly:pe,flash:q,anchorRef:de=>{de?L.current.set(z.id,de):L.current.delete(z.id)}},z.id)),zn.length>0&&f.jsxs("section",{className:"card",children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"unattached comments"}),f.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),f.jsx("div",{className:"card-body",children:zn.map(z=>f.jsx(sy,{comment:z,onUpdate:P=>Dn(z.id,P),onDelete:()=>An(z.id),onDiscuss:pe?void 0:()=>W({target:"comment",id:z.id}),readOnly:pe},z.id))})]}),f.jsx(rT,{entries:i.history??[],open:I,onToggle:()=>ie(z=>!z),anchorRef:me})]}),f.jsxs("aside",{className:"cockpit",children:[f.jsx(tT,{artifact:i,reviewKey:s,refs:G,onClearRefs:()=>D([]),onDropRef:z=>D(P=>P.filter((de,He)=>He!==z)),onArtifact:r,readOnly:pe,inputRef:re,anchorRef:Ne}),f.jsxs("div",{className:"cockpit-decide",children:[!pe&&Rn&&f.jsxs("div",{className:"verdict-hint",children:[f.jsxs("span",{children:[f.jsx("strong",{children:Rn})," — the verdict was written before those edits."]}),f.jsxs("button",{className:"btn btn-sm",onClick:an,disabled:Ue,children:[f.jsx(Ke,{name:"comment"}),Ue?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),i.verdict&&!pe&&f.jsxs("div",{className:"verdict-bar",ref:X,children:[f.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(ne)]}),f.jsx(lT,{artifact:i,reviewKey:s,event:Cn,sending:ye,onSend:it,error:S,next:Le,onAdvance:Nt,onBody:z=>io(s,{bodyOverride:z}).then(r),anchorRef:Se,footer:f.jsxs(f.Fragment,{children:[!pe&&f.jsx("span",{className:"faint",children:"not sending?"}),!pe&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"btn btn-sm",title:Le?`Settle it locally and go to ${Le.id}`:"Settle it locally and go back to the queue",onClick:()=>vn("reviewed"),children:[f.jsx(Ke,{name:"check"}),"mark reviewed"]}),f.jsxs("button",{className:"btn btn-sm",title:Le?`Leave it and go to ${Le.id}`:"Leave it and go back to the queue",onClick:()=>vn("skipped"),children:[f.jsx(Ke,{name:"skip"}),"skip"]})]}),f.jsxs("button",{className:"btn btn-sm",title:nn?"Wait for the run to finish — a handoff settles the row it is rewriting":"Move GitHub's review request to somebody else, and settle this row",onClick:()=>U(!0),disabled:A||nn,children:[f.jsx(Ke,{name:"arrowRight"}),"hand off"]}),f.jsxs("a",{className:"btn btn-sm",href:X_(s),children:[f.jsx(Ke,{name:"download"}),"export .md"]})]})}),A&&f.jsx(iT,{artifact:i,reviewKey:s,onConfirm:En,onCancel:()=>U(!1)})]})]})]})]})}const gb="cerber.notify.seen.v2",fT="cerber.notify.seen",zf="cerber.notify",dT=1e4,Is=s=>s.status==="ready",Uf=s=>{try{return localStorage.getItem(s)}catch{return null}},jf=(s,i)=>{try{localStorage.setItem(s,i)}catch{}};function hT(s,i){return s?!!(s.enabled&&s.pollEnabled&&s.autoReview):i}function oy(s,i){return s.announceable===!1||s.status==="running"?!1:s.status==="awaiting"?!i:!0}const cy=":draft",lo=s=>`${s.key}${cy}`,uy=s=>Is(s)?lo(s):s.key;function pT(s,i,r){const l=new Set(i);return qs(s).filter(u=>oy(u,r)&&!l.has(uy(u)))}function mT(s,i,r=[]){const l=new Set(r),u=new Set(qs(s).map(p=>p.key)),d=[];for(const p of s){if(u.has(p.key)&&!oy(p,i)){for(const y of[p.key,lo(p)])l.has(y)&&d.push(y);continue}d.push(p.key),(Is(p)||!u.has(p.key)||l.has(lo(p)))&&d.push(lo(p))}return d}const Nf=s=>`${s.pr.repo}#${s.pr.number}`,gT={approve:"approves",comment:"comments",request_changes:"requests changes"};function bT(s){const i=s.verdict?gT[s.verdict.recommendation]:"drafted",r=s.blockerCount??0;return r===0?i:`${i} · ${r} blocker${r===1?"":"s"}`}function yT(s){if(s.length===0)return null;const i=`cerber:${s.map(uy).sort().join("|")}`;if(s.length===1){const u=s[0];return{title:Is(u)?`${Nf(u)} draft ready`:`${Nf(u)} awaits your review`,body:Is(u)?`${bT(u)} — ${u.pr.title}`:`${u.pr.title} — ${u.pr.author}`,tag:i,key:u.key}}const r=s.slice(0,3).map(Nf),l=s.length-r.length;return{title:s.every(Is)?`${s.length} drafts ready`:`${s.length} PRs await your review`,body:l>0?`${r.join(", ")} and ${l} more`:r.join(", "),tag:i,key:null}}const vT=new Set(["127.0.0.1","localhost","::1","[::1]"]);function ET(s,i=window.location.hostname){return!(s!=null&&s.enabled)||!s.notify?!1:vT.has(i)}function Hl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Uf(zf)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function _T(){const s=Hl();if(s==="unsupported"||s==="blocked")return s;if(s==="on")return jf(zf,"off"),Hl();if(jf(zf,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Hl()}function ST(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 NT(s,i){const r=s??i;if(!r)return null;let l;try{l=JSON.parse(r)}catch{return null}if(!Array.isArray(l))return null;const u=l.filter(d=>typeof d=="string");return s?u:u.flatMap(d=>[d,`${d}${cy}`])}function TT(){const s=J.useRef(null),i=J.useRef(!0),[r,l]=J.useState(!1);return J.useEffect(()=>{let u=!0;s.current=NT(Uf(gb),Uf(fT));const d=()=>Promise.all([Kf(),Lb().catch(()=>null)]).then(([y,g])=>{if(!u)return;const m=ET(g);l(m),i.current=hT(g,i.current);const b=i.current,v=s.current;if(s.current=mT(y,b,v??[]),jf(gb,JSON.stringify(s.current)),!v||Hl()!=="on"||m||document.visibilityState==="visible"&&document.hasFocus())return;const _=yT(pT(y,v,b));_&&ST(_)}).catch(()=>{});d();const p=setInterval(d,dT);return()=>{u=!1,clearInterval(p)}},[]),r}function fy(){const[s,i]=J.useState(Hl);return J.useEffect(()=>{const r=()=>i(Hl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[s,()=>void _T().then(i)]}const so=s=>{window.location.hash=`#/r/${encodeURIComponent(s)}`};function wT(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 xT({daemon:s}){return s!=null&&s.enabled?f.jsx("div",{className:"daemon-bar",children:f.jsxs("div",{className:"bar-inner",children:[s.pollEnabled?f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot"}),s.repos.length>0?s.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(s.intervalMs/6e4),"m"]}):f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),f.jsxs("span",{children:["auto-review ",f.jsx("b",{children:s.autoReview?"on":"off"})]}),f.jsxs("span",{children:["auto-send ",f.jsx("b",{children:s.autoSend==="on"?"on":"shadow"})," ≥",s.autoSendThreshold,"%",s.autoSend==="on"?` · ${s.autoSent} sent`:` · ${s.autoSendCandidates} candidate${s.autoSendCandidates===1?"":"s"}`]}),s.trustedRuns&&f.jsxs("span",{className:"warn",title:"Trust rules are set and auto-review is on: reviews of matching PRs run their code unattended. Settings → Trusted PRs, or serve --no-trust.",children:[f.jsx(Ke,{name:"zap",size:12})," trusted PRs run with Bash"]}),f.jsx("span",{className:"grow"}),s.lastPollError?f.jsx("span",{className:"danger",title:s.lastPollError,children:"discovery offline — showing local reviews only"}):f.jsx("span",{className:"faint",children:s.polling?"polling now…":[s.lastSummary?`last: ${s.lastSummary}`:null,s.nextPollAt?`next ${new Date(s.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function AT({r:s,selected:i,onSelect:r,onOpen:l,awaiting:u}){const d=M_(s),p=__(s),y=u?R_(s,u):null;return f.jsxs("div",{className:`row${i?" row-on":""}`,onClick:l,onMouseEnter:r,role:"button",tabIndex:-1,children:[f.jsx("span",{className:"col-caret",children:"›"}),f.jsxs("span",{className:"col-slug",title:`${s.pr.owner}/${s.pr.repo}#${s.pr.number}`,children:[s.pr.repo,"#",s.pr.number]}),f.jsx("span",{className:"col-author",title:s.pr.author,children:s.pr.author}),f.jsx("span",{className:"col-title",title:s.pr.title,children:s.pr.title}),s.pr.isDraft&&f.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&f.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),p&&f.jsx("span",{className:"tag tag-done",children:p}),f.jsx("span",{className:"col-comments",children:s.commentCount||""}),f.jsx("span",{className:"col-size",children:s.pr.changedFiles>0?f.jsxs(f.Fragment,{children:[s.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",s.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",s.pr.deletions]})]}):"—"}),f.jsx("span",{className:`col-verdict tone-${d.tone}`,children:d.label}),f.jsx("span",{className:"col-age",children:Db(s.updatedAt)})]})}function bb({autoFocus:s}){const[i,r]=J.useState(""),[l,u]=J.useState(!1),[d,p]=J.useState(null),y=g=>{g.preventDefault();const m=i.trim();!m||l||(u(!0),p(null),G_(m).then(b=>so(b.key)).catch(b=>{p(String(b instanceof Error?b.message:b)),u(!1)}))};return f.jsxs("form",{className:"pull",onSubmit:y,children:[f.jsx(Ke,{name:"plus"}),f.jsx("input",{className:"pull-input",value:i,autoFocus:s,disabled:l,onChange:g=>{r(g.target.value),d&&p(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),i.trim()&&f.jsx("button",{className:"btn btn-small",type:"submit",disabled:l,children:l?"starting…":"review"}),d&&f.jsx("span",{className:"pull-error",children:d})]})}function RT({text:s}){const i=J.useRef(null),[r,l]=J.useState(!1);return J.useLayoutEffect(()=>{const u=i.current;if(!u)return;const d=()=>l(u.scrollHeight-u.clientHeight>4);d();const p=new ResizeObserver(d);return p.observe(u),()=>p.disconnect()},[s]),f.jsx("div",{ref:i,className:`strip-prose${r?" strip-prose-clipped":""}`,children:f.jsx(Wi,{className:"prose",text:s})})}function OT(){var X;const[s,i]=J.useState(null),[r,l]=J.useState(null),[u,d]=J.useState(null),[p,y]=J.useState(new Set),[g,m]=J.useState("inbox"),[b,v]=J.useState(null),_=J.useRef(!0);J.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const w=()=>{Kf().then(F=>_.current&&i(F)).catch(F=>_.current&&d(String(F))),Lb().then(F=>_.current&&l(F)).catch(()=>{})};J.useEffect(()=>{w();const F=setInterval(w,1e4);return()=>clearInterval(F)},[]);const N=s??[],x=J.useMemo(()=>v_(N,r),[N,r]),A=x.requests,U=E_(g,x),G=x[U];J.useEffect(()=>{U!==g&&m(U)},[U,g]);const D=G.find(F=>F.key===b)??G[0]??null,re=F=>{y(he=>new Set(he).add(F)),zb(F).then(()=>w()).catch(he=>_.current&&d(String(he))).finally(()=>{_.current&&y(he=>{const Ne=new Set(he);return Ne.delete(F),Ne})})};if(J.useEffect(()=>{const F=he=>{if(wT(he.target)||he.metaKey||he.ctrlKey||he.altKey)return;const Ne=G.findIndex(me=>me.key===(D==null?void 0:D.key)),Se=me=>{const I=G[Math.min(G.length-1,Math.max(0,Ne+me))];I&&v(I.key)};he.key==="j"||he.key==="ArrowDown"?(he.preventDefault(),Se(1)):he.key==="k"||he.key==="ArrowUp"?(he.preventDefault(),Se(-1)):he.key==="Enter"&&D?so(D.key):he.key==="r"&&D&&D.status!=="sent"&&D.status!=="running"&&re(D.key)};return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[G,D==null?void 0:D.key]),u&&!s)return f.jsx("p",{className:"error",children:u});if(!s)return f.jsx("p",{className:"muted pad",children:"Loading…"});const H=G.reduce((F,he)=>F+(he.costUsd??0),0),Z=D?D_(D,r):null,le=D?p.has(D.key):!1,k=Tf.filter(F=>x[F].length>0),L=F=>f.jsxs("button",{className:`tab${U===F?" tab-on":""}${Tf.includes(F)?" tab-filed":""}${F==="requests"?" tab-requests":""}`,title:Au[F].title,onClick:()=>m(F),children:[Au[F].label," ",f.jsx("span",{className:"tab-count",children:x[F].length})]},F);return f.jsxs(f.Fragment,{children:[f.jsx(xT,{daemon:r}),u&&f.jsx("div",{className:"wrap",children:f.jsx("p",{className:"error",children:u})}),N.length===0?f.jsx("div",{className:"wrap",children:f.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?f.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):f.jsx("p",{children:"No reviews yet."}),f.jsx(bb,{autoFocus:!0})]})}):f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"tabs",children:[m_.map(L),k.length>0&&f.jsx("span",{className:"tab-split","aria-hidden":"true"}),k.map(L),f.jsx("span",{className:"grow"}),f.jsx(bb,{}),H>0&&f.jsxs("span",{className:"faint",title:"What these reviews would cost at API token rates. Riding a Claude subscription, they draw on your usage limits instead.",children:["≈$",H.toFixed(2)," at API rates"]})]}),f.jsxs("div",{className:"table-head",children:[f.jsx("span",{className:"col-caret"}),f.jsx("span",{className:"col-slug",children:"repo#pr"}),f.jsx("span",{className:"col-author",children:"author"}),f.jsx("span",{className:"col-title",children:"title"}),f.jsx("span",{className:"col-comments",children:"c"}),f.jsx("span",{className:"col-size",children:"size"}),f.jsx("span",{className:"col-verdict",children:"verdict"}),f.jsx("span",{className:"col-age",children:"upd"})]}),G.length===0?f.jsx("div",{className:"empty-tab",children:U==="inbox"&&A.length>0?f.jsxs(f.Fragment,{children:[f.jsx("p",{children:O_(A)}),f.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[f.jsx(Ke,{name:"arrowRight"}),"show ",A.length===1?"it":`all ${A.length}`]})]}):f.jsx("p",{className:"muted",children:U==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${Au[U].label} right now.`})}):G.map(F=>f.jsx(AT,{r:F,selected:F.key===(D==null?void 0:D.key),onSelect:()=>v(F.key),onOpen:()=>so(F.key),awaiting:y_(F,A)?S_(F,r):null},F.key)),D&&Z&&f.jsxs("div",{className:"cursor-strip",children:[f.jsxs("div",{className:"cursor-strip-body",children:[f.jsxs("div",{className:"lab",children:[D.pr.owner,"/",D.pr.repo,"#",D.pr.number,D.pr.headRefName&&D.pr.baseRefName?` · ${D.pr.headRefName} → ${D.pr.baseRefName}`:""]}),f.jsx(RT,{text:Z.reasoning}),f.jsxs("div",{className:"cursor-strip-meta",children:[Z.meta.join(" · "),((X=D.sent)==null?void 0:X.url)&&f.jsxs(f.Fragment,{children:[" · ",f.jsx("a",{href:D.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),f.jsxs("div",{className:"cursor-strip-actions",children:[f.jsxs("button",{className:"btn-primary",onClick:()=>so(D.key),children:[f.jsx(Ke,{name:"arrowRight"}),"open review ",f.jsx(ka,{children:"↵"})]}),f.jsxs("div",{className:"cursor-strip-row",children:[f.jsxs("button",{className:"btn",disabled:D.status==="sent"||D.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>io(D.key,{status:"skipped"}).then(w).catch(F=>d(String(F))),children:[f.jsx(Ke,{name:"skip"}),"skip"]}),f.jsxs("button",{className:"btn",disabled:le||D.status==="running"||D.status==="sent",title:D.status==="sent"?"This review was sent — it is a record now.":"Draft a review of the PR's current head.",onClick:()=>re(D.key),children:[f.jsx(Ke,{name:"rerun"}),le?"starting…":D.status==="awaiting"||D.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const Bf="cerber.theme";function kT(s){return s==="light"||s==="dark"?s:"system"}function MT(){try{return kT(localStorage.getItem(Bf))}catch{return"system"}}function CT(s,i=document.documentElement){s==="system"?delete i.dataset.theme:i.dataset.theme=s}function DT(){const[s,i]=J.useState(MT);return[s,l=>{try{l==="system"?localStorage.removeItem(Bf):localStorage.setItem(Bf,l)}catch{}CT(l),i(l)}]}const LT=[{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"}],yb=s=>s instanceof Error?s.message:String(s),zT={unsupported:"this browser has no notifications to give",blocked:"this browser has blocked notifications for cerber",off:"tell me when a review is ready for me",ask:"tell me when a review is ready for me (the browser will ask first)",on:"tell me when a review is ready for me"},UT=[{choice:"system",label:"follow this machine"},{choice:"light",label:"light"},{choice:"dark",label:"dark"}];function jT({daemonAnnounces:s}){const[i,r]=fy(),[l,u]=DT(),[d,p]=J.useState(null),[y,g]=J.useState(""),[m,b]=J.useState(null),[v,_]=J.useState(!1);J.useEffect(()=>{Q_().then(p).catch(N=>b(yb(N)))},[]);const w=N=>{_(!0),b(null),N.then(p).catch(x=>b(yb(x))).finally(()=>_(!1))};return m&&!d?f.jsx("p",{className:"error",children:m}):d?f.jsxs("div",{className:"settings",children:[f.jsx("a",{href:"#/",className:"back",children:"← queue"}),f.jsx("h1",{children:"Inbox"}),f.jsx("p",{children:"By default cerber keeps the queue itself: it polls GitHub for PRs awaiting your review and drafts a review for each, so they're ready when you open the cockpit. Nothing is ever sent without you. Changes apply on the next poll — no restart."}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:d.daemon.poll,disabled:v,onChange:N=>w(ku({poll:N.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",d.daemon.intervalMinutes,"m)"]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:d.daemon.autoReview,disabled:v||!d.daemon.poll,onChange:N=>w(ku({autoReview:N.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),f.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",f.jsx("code",{children:d.path})," under"," ",f.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),f.jsx("h1",{children:"Notifications"}),f.jsx("p",{children:'When a PR is worth coming back for, cerber says so: one desktop notification per poll. With auto-review on that moment is the draft landing, not the PR arriving — a tap that leads to "no run yet" costs you the walk back and gives you nothing — and the notification names what the review found. A PR nobody is drafting (auto-review off, or a run that failed) is announced as it lands, since that is all the news there will be — and if a retry then drafts it after all, that is new news and you are told. Several at once fold into one notification, and a PR whose draft has been announced never arrives twice, however its next re-review ends.'}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:d.daemon.notify,disabled:v||!d.daemon.poll,onChange:N=>w(ku({notify:N.target.checked}))})," ","tell this machine when a review is ready for you (no cockpit tab required)"]}),f.jsxs("p",{className:"muted",children:["This is the one that works while you're somewhere else: it rides the poll, so it needs nothing open but ",f.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",f.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. On macOS it"," ",f.jsx("strong",{children:"opens that review when you click it"}),', through a small app cerber builds for the job (the first one asks you to allow notifications from "Cerber"); a'," ",f.jsx("code",{children:"notify-send"})," tap announces the PR but has no click to give."]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:i==="on",disabled:i==="unsupported"||i==="blocked"||s,onChange:r})," ",s?"let this browser announce them instead":zT[i]]}),f.jsx("p",{className:"muted",children:s?f.jsx(f.Fragment,{children:"Standing down while the machine's own notification is on — two popups for one PR is one too many. Untick the machine one above and this browser takes over: it names the PR and opens that review on click just the same, but only while a cockpit tab is open and this browser has granted the permission."}):f.jsxs(f.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",f.jsx("code",{children:d.path}),". Granting it is the browser's prompt, not cerber's — a browser that has blocked cerber has to be un-blocked from the padlock next to the address bar. Nothing is announced while you're looking straight at the cockpit."]})}),f.jsx("h1",{children:"Appearance"}),UT.map(({choice:N,label:x})=>f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"radio",name:"theme",checked:l===N,onChange:()=>u(N)})," ",x]},N)),f.jsxs("p",{className:"muted",children:["Per-browser, like the notification switch: it's about this screen, not your reviews, so it lives here rather than in ",f.jsx("code",{children:d.path}),"."]}),f.jsx("h1",{children:"Trusted PRs"}),f.jsxs("p",{children:["Every review reads the PR's code. A ",f.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",f.jsx("code",{children:"git log"})," — so it can report what happened instead of guessing. That means executing code from the PR on this machine, the same as checking the branch out and running the tests yourself."]}),f.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",f.jsx("code",{children:d.path}),"."]}),f.jsx("p",{className:"muted",children:'Only people can be trusted — there is no way to trust a repository. Anyone can open a PR against a repo you own, so trusting the repo would trust them too. Membership is checked against GitHub when the review runs, and a check that fails counts as "not a member".'}),f.jsxs("div",{className:"trust-add",children:[f.jsx("input",{value:y,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:v,onChange:N=>g(N.target.value),onKeyDown:N=>{N.key==="Enter"&&!v&&y.trim()&&(w(Ou(y.trim())),g(""))}}),f.jsx("button",{className:"btn",disabled:v||!y.trim(),onClick:()=>{w(Ou(y.trim())),g("")},children:"trust"})]}),m&&f.jsx("p",{className:"error",children:m}),d.trust.length===0?f.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:d.trust.map(N=>f.jsxs("tr",{className:N.denies?"trust-deny":void 0,children:[f.jsx("td",{children:f.jsx("code",{children:N.rule})}),f.jsx("td",{className:"muted",children:N.explanation}),f.jsx("td",{className:"trust-actions",children:f.jsx("button",{className:"btn",disabled:v,onClick:()=>w(Ou(N.rule,!0)),children:"remove"})})]},N.rule))})}),f.jsx("h2",{children:"Rule syntax"}),f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:LT.map(N=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx("code",{children:N.rule})}),f.jsx("td",{className:"muted",children:N.meaning})]},N.rule))})}),f.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",f.jsx("code",{children:"gh"})," login, no git or ssh identity — so a push fails to authenticate rather than being merely discouraged. It is not a sandbox though: it has ",f.jsx("code",{children:"Bash"})," and this machine, so trust people you would let run their branch here anyway. The daemon reviews unattended, so with rules set it runs matching PRs' code with nobody watching — start it with ",f.jsx("code",{children:"--no-trust"})," to prevent that."]})]}):f.jsx("p",{className:"muted",children:"Loading…"})}function vb(){const s=window.location.hash,i=s.match(/^#\/r\/(.+)$/);return i?{view:"detail",key:decodeURIComponent(i[1])}:s==="#/settings"?{view:"settings"}:{view:"queue"}}const Eb={unsupported:"",blocked:"This browser blocked notifications for cerber. Turn them back on in its site settings — the padlock next to the address bar.",off:"Notifications off. Click to be told when a review is ready for you.",ask:"Click to be told when a review is ready for you — the browser will ask you first.",on:"Telling you when a review is ready for you. Click to stop."},_b="cerber taps this machine itself when a PR is worth coming back for — no tab required. The browser's own bell would be a second popup about one PR, so it stands down. Turn the machine one off in Settings to have this browser announce them instead.";function BT({daemonAnnounces:s}){const[i,r]=fy();return s?f.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:_b,"aria-label":_b,children:f.jsx(Ke,{name:"bell",size:15})}):i==="unsupported"?null:f.jsx("button",{className:`topbar-link bell bell-${i}`,title:Eb[i],"aria-label":Eb[i],"aria-pressed":i==="on",onClick:r,children:f.jsx(Ke,{name:i==="on"?"bell":"bellOff",size:15})})}function IT(){const[s,i]=J.useState(vb()),r=TT();return J.useEffect(()=>{const l=()=>i(vb());return window.addEventListener("hashchange",l),()=>window.removeEventListener("hashchange",l)},[]),s.view==="detail"?f.jsx("div",{className:"app",children:f.jsx(uT,{reviewKey:s.key})}):f.jsxs("div",{className:"app",children:[f.jsx("header",{className:"topbar",children:f.jsxs("div",{className:"bar-inner",children:[f.jsxs("a",{href:"#/",className:"brand",children:[f.jsx(nS,{}),"cerber"]}),f.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),f.jsx("span",{className:"grow"}),s.view==="queue"&&f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:"hint",children:[f.jsx(ka,{children:"j"}),f.jsx(ka,{children:"k"}),"move"]}),f.jsxs("span",{className:"hint",children:[f.jsx(ka,{children:"↵"}),"open"]}),f.jsxs("span",{className:"hint",children:[f.jsx(ka,{children:"r"}),"review now"]})]}),f.jsx(BT,{daemonAnnounces:r}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Ke,{name:"settings",size:15})})]})}),s.view==="queue"?f.jsx(OT,{}):f.jsx(jT,{daemonAnnounces:r})]})}wE.createRoot(document.getElementById("root")).render(f.jsx(vE.StrictMode,{children:f.jsx(IT,{})}));
|