@fullstackhouse/cerber 0.28.0 → 0.29.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/dist/core/artifact.js +13 -0
- package/dist/core/history.js +6 -0
- package/dist/core/revise.js +3 -0
- package/dist/core/send.js +10 -1
- package/dist/runner/review.js +3 -0
- package/dist/server/daemon.js +1 -0
- package/dist/server/index.js +14 -0
- package/package.json +1 -1
- package/web/dist/assets/{index-CiQjqBau.css → index-C9jlO49c.css} +1 -1
- package/web/dist/assets/index-DNaKDgSy.js +241 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-Bztcz5eI.js +0 -241
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
var tE=Object.defineProperty;var nE=(s,i,r)=>i in s?tE(s,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[i]=r;var Et=(s,i,r)=>nE(s,typeof i!="symbol"?i+"":i,r);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const g of d.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&l(g)}).observe(document,{childList:!0,subtree:!0});function r(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(u){if(u.ep)return;u.ep=!0;const d=r(u);fetch(u.href,d)}})();function bb(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var pu={exports:{}},ks={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Am;function aE(){if(Am)return ks;Am=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(l,u,d){var g=null;if(d!==void 0&&(g=""+d),u.key!==void 0&&(g=""+u.key),"key"in u){d={};for(var y in u)y!=="key"&&(d[y]=u[y])}else d=u;return u=d.ref,{$$typeof:s,type:l,key:g,ref:u!==void 0?u:null,props:d}}return ks.Fragment=i,ks.jsx=r,ks.jsxs=r,ks}var Rm;function iE(){return Rm||(Rm=1,pu.exports=aE()),pu.exports}var f=iE(),mu={exports:{}},Ie={};/**
|
|
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 Om;function lE(){if(Om)return Ie;Om=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function x(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,w={};function U(S,D,q){this.props=S,this.context=D,this.refs=w,this.updater=q||N}U.prototype.isReactComponent={},U.prototype.setState=function(S,D){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,D,"setState")},U.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function G(){}G.prototype=U.prototype;function L(S,D,q){this.props=S,this.context=D,this.refs=w,this.updater=q||N}var re=L.prototype=new G;re.constructor=L,A(re,U.prototype),re.isPureReactComponent=!0;var H=Array.isArray;function P(){}var le={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function z(S,D,q){var ue=q.ref;return{$$typeof:s,type:S,key:D,ref:ue!==void 0?ue:null,props:q}}function Q(S,D){return z(S.type,D,S.props)}function K(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function fe(S){var D={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(q){return D[q]})}var we=/\/+/g;function Ae(S,D){return typeof S=="object"&&S!==null&&S.key!=null?fe(""+S.key):D.toString(36)}function he(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(P,P):(S.status="pending",S.then(function(D){S.status==="pending"&&(S.status="fulfilled",S.value=D)},function(D){S.status==="pending"&&(S.status="rejected",S.reason=D)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function I(S,D,q,ue,pe){var xe=typeof S;(xe==="undefined"||xe==="boolean")&&(S=null);var me=!1;if(S===null)me=!0;else switch(xe){case"bigint":case"string":case"number":me=!0;break;case"object":switch(S.$$typeof){case s:case i:me=!0;break;case b:return me=S._init,I(me(S._payload),D,q,ue,pe)}}if(me)return pe=pe(S),me=ue===""?"."+Ae(S,0):ue,H(pe)?(q="",me!=null&&(q=me.replace(we,"$&/")+"/"),I(pe,D,q,"",function(He){return He})):pe!=null&&(K(pe)&&(pe=Q(pe,q+(pe.key==null||S&&S.key===pe.key?"":(""+pe.key).replace(we,"$&/")+"/")+me)),D.push(pe)),1;me=0;var Oe=ue===""?".":ue+":";if(H(S))for(var Ee=0;Ee<S.length;Ee++)ue=S[Ee],xe=Oe+Ae(ue,Ee),me+=I(ue,D,q,xe,pe);else if(Ee=x(S),typeof Ee=="function")for(S=Ee.call(S),Ee=0;!(ue=S.next()).done;)ue=ue.value,xe=Oe+Ae(ue,Ee++),me+=I(ue,D,q,xe,pe);else if(xe==="object"){if(typeof S.then=="function")return I(he(S),D,q,ue,pe);throw D=String(S),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return me}function ne(S,D,q){if(S==null)return S;var ue=[],pe=0;return I(S,ue,"","",function(xe){return D.call(q,xe,pe++)}),ue}function oe(S){if(S._status===-1){var D=S._result;D=D(),D.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=D)}if(S._status===1)return S._result.default;throw S._result}var ve=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=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(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Se={map:ne,forEach:function(S,D,q){ne(S,function(){D.apply(this,arguments)},q)},count:function(S){var D=0;return ne(S,function(){D++}),D},toArray:function(S){return ne(S,function(D){return D})||[]},only:function(S){if(!K(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return Ie.Activity=v,Ie.Children=Se,Ie.Component=U,Ie.Fragment=r,Ie.Profiler=u,Ie.PureComponent=L,Ie.StrictMode=l,Ie.Suspense=m,Ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le,Ie.__COMPILER_RUNTIME={__proto__:null,c:function(S){return le.H.useMemoCache(S)}},Ie.cache=function(S){return function(){return S.apply(null,arguments)}},Ie.cacheSignal=function(){return null},Ie.cloneElement=function(S,D,q){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ue=A({},S.props),pe=S.key;if(D!=null)for(xe in D.key!==void 0&&(pe=""+D.key),D)!k.call(D,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&D.ref===void 0||(ue[xe]=D[xe]);var xe=arguments.length-2;if(xe===1)ue.children=q;else if(1<xe){for(var me=Array(xe),Oe=0;Oe<xe;Oe++)me[Oe]=arguments[Oe+2];ue.children=me}return z(S.type,pe,ue)},Ie.createContext=function(S){return S={$$typeof:g,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:d,_context:S},S},Ie.createElement=function(S,D,q){var ue,pe={},xe=null;if(D!=null)for(ue in D.key!==void 0&&(xe=""+D.key),D)k.call(D,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(pe[ue]=D[ue]);var me=arguments.length-2;if(me===1)pe.children=q;else if(1<me){for(var Oe=Array(me),Ee=0;Ee<me;Ee++)Oe[Ee]=arguments[Ee+2];pe.children=Oe}if(S&&S.defaultProps)for(ue in me=S.defaultProps,me)pe[ue]===void 0&&(pe[ue]=me[ue]);return z(S,xe,pe)},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(S){return{$$typeof:y,render:S}},Ie.isValidElement=K,Ie.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:oe}},Ie.memo=function(S,D){return{$$typeof:p,type:S,compare:D===void 0?null:D}},Ie.startTransition=function(S){var D=le.T,q={};le.T=q;try{var ue=S(),pe=le.S;pe!==null&&pe(q,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(P,ve)}catch(xe){ve(xe)}finally{D!==null&&q.types!==null&&(D.types=q.types),le.T=D}},Ie.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()},Ie.use=function(S){return le.H.use(S)},Ie.useActionState=function(S,D,q){return le.H.useActionState(S,D,q)},Ie.useCallback=function(S,D){return le.H.useCallback(S,D)},Ie.useContext=function(S){return le.H.useContext(S)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function(S,D){return le.H.useDeferredValue(S,D)},Ie.useEffect=function(S,D){return le.H.useEffect(S,D)},Ie.useEffectEvent=function(S){return le.H.useEffectEvent(S)},Ie.useId=function(){return le.H.useId()},Ie.useImperativeHandle=function(S,D,q){return le.H.useImperativeHandle(S,D,q)},Ie.useInsertionEffect=function(S,D){return le.H.useInsertionEffect(S,D)},Ie.useLayoutEffect=function(S,D){return le.H.useLayoutEffect(S,D)},Ie.useMemo=function(S,D){return le.H.useMemo(S,D)},Ie.useOptimistic=function(S,D){return le.H.useOptimistic(S,D)},Ie.useReducer=function(S,D,q){return le.H.useReducer(S,D,q)},Ie.useRef=function(S){return le.H.useRef(S)},Ie.useState=function(S){return le.H.useState(S)},Ie.useSyncExternalStore=function(S,D,q){return le.H.useSyncExternalStore(S,D,q)},Ie.useTransition=function(){return le.H.useTransition()},Ie.version="19.2.8",Ie}var km;function Cf(){return km||(km=1,mu.exports=lE()),mu.exports}var ie=Cf();const sE=bb(ie);var gu={exports:{}},Ms={},bu={exports:{}},yu={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Mm;function rE(){return Mm||(Mm=1,(function(s){function i(I,ne){var oe=I.length;I.push(ne);e:for(;0<oe;){var ve=oe-1>>>1,Se=I[ve];if(0<u(Se,ne))I[ve]=ne,I[oe]=Se,oe=ve;else break e}}function r(I){return I.length===0?null:I[0]}function l(I){if(I.length===0)return null;var ne=I[0],oe=I.pop();if(oe!==ne){I[0]=oe;e:for(var ve=0,Se=I.length,S=Se>>>1;ve<S;){var D=2*(ve+1)-1,q=I[D],ue=D+1,pe=I[ue];if(0>u(q,oe))ue<Se&&0>u(pe,q)?(I[ve]=pe,I[ue]=oe,ve=ue):(I[ve]=q,I[D]=oe,ve=D);else if(ue<Se&&0>u(pe,oe))I[ve]=pe,I[ue]=oe,ve=ue;else break e}}return ne}function u(I,ne){var oe=I.sortIndex-ne.sortIndex;return oe!==0?oe:I.id-ne.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var g=Date,y=g.now();s.unstable_now=function(){return g.now()-y}}var m=[],p=[],b=1,v=null,_=3,x=!1,N=!1,A=!1,w=!1,U=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function re(I){for(var ne=r(p);ne!==null;){if(ne.callback===null)l(p);else if(ne.startTime<=I)l(p),ne.sortIndex=ne.expirationTime,i(m,ne);else break;ne=r(p)}}function H(I){if(A=!1,re(I),!N)if(r(m)!==null)N=!0,P||(P=!0,fe());else{var ne=r(p);ne!==null&&he(H,ne.startTime-I)}}var P=!1,le=-1,k=5,z=-1;function Q(){return w?!0:!(s.unstable_now()-z<k)}function K(){if(w=!1,P){var I=s.unstable_now();z=I;var ne=!0;try{e:{N=!1,A&&(A=!1,G(le),le=-1),x=!0;var oe=_;try{t:{for(re(I),v=r(m);v!==null&&!(v.expirationTime>I&&Q());){var ve=v.callback;if(typeof ve=="function"){v.callback=null,_=v.priorityLevel;var Se=ve(v.expirationTime<=I);if(I=s.unstable_now(),typeof Se=="function"){v.callback=Se,re(I),ne=!0;break t}v===r(m)&&l(m),re(I)}else l(m);v=r(m)}if(v!==null)ne=!0;else{var S=r(p);S!==null&&he(H,S.startTime-I),ne=!1}}break e}finally{v=null,_=oe,x=!1}ne=void 0}}finally{ne?fe():P=!1}}}var fe;if(typeof L=="function")fe=function(){L(K)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,Ae=we.port2;we.port1.onmessage=K,fe=function(){Ae.postMessage(null)}}else fe=function(){U(K,0)};function he(I,ne){le=U(function(){I(s.unstable_now())},ne)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(I){I.callback=null},s.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<I?Math.floor(1e3/I):5},s.unstable_getCurrentPriorityLevel=function(){return _},s.unstable_next=function(I){switch(_){case 1:case 2:case 3:var ne=3;break;default:ne=_}var oe=_;_=ne;try{return I()}finally{_=oe}},s.unstable_requestPaint=function(){w=!0},s.unstable_runWithPriority=function(I,ne){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var oe=_;_=I;try{return ne()}finally{_=oe}},s.unstable_scheduleCallback=function(I,ne,oe){var ve=s.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ve+oe:ve):oe=ve,I){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=oe+Se,I={id:b++,callback:ne,priorityLevel:I,startTime:oe,expirationTime:Se,sortIndex:-1},oe>ve?(I.sortIndex=oe,i(p,I),r(m)===null&&I===r(p)&&(A?(G(le),le=-1):A=!0,he(H,oe-ve))):(I.sortIndex=Se,i(m,I),N||x||(N=!0,P||(P=!0,fe()))),I},s.unstable_shouldYield=Q,s.unstable_wrapCallback=function(I){var ne=_;return function(){var oe=_;_=ne;try{return I.apply(this,arguments)}finally{_=oe}}}})(yu)),yu}var Cm;function oE(){return Cm||(Cm=1,bu.exports=rE()),bu.exports}var vu={exports:{}},_n={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Dm;function cE(){if(Dm)return _n;Dm=1;var s=Cf();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(m,p,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:m,containerInfo:p,implementation:b}}var g=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return _n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,_n.createPortal=function(m,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(m,p,null,b)},_n.flushSync=function(m){var p=g.T,b=l.p;try{if(g.T=null,l.p=2,m)return m()}finally{g.T=p,l.p=b,l.d.f()}},_n.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(m,p))},_n.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},_n.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var b=p.as,v=y(b,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?l.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:x}):b==="script"&&l.d.X(m,{crossOrigin:v,integrity:_,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},_n.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=y(p.as,p.crossOrigin);l.d.M(m,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(m)},_n.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,v=y(b,p.crossOrigin);l.d.L(m,b,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},_n.preloadModule=function(m,p){if(typeof m=="string")if(p){var b=y(p.as,p.crossOrigin);l.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(m)},_n.requestFormReset=function(m){l.d.r(m)},_n.unstable_batchedUpdates=function(m,p){return m(p)},_n.useFormState=function(m,p,b){return g.H.useFormState(m,p,b)},_n.useFormStatus=function(){return g.H.useHostTransitionStatus()},_n.version="19.2.8",_n}var Lm;function yb(){if(Lm)return vu.exports;Lm=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),vu.exports=cE(),vu.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var zm;function uE(){if(zm)return Ms;zm=1;var s=oE(),i=Cf(),r=yb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function g(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(d(e)!==e)throw Error(l(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return m(o),e;if(c===a)return m(o),t;c=c.sibling}throw Error(l(188))}if(n.return!==a.return)n=o,a=c;else{for(var h=!1,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"),x=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),L=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||e["@@iterator"],typeof e=="function"?e:null)}var we=Symbol.for("react.client.reference");function Ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===we?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case U:return"Profiler";case w:return"StrictMode";case H:return"Suspense";case P:return"SuspenseList";case z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case L: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:Ae(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return Ae(e(t))}catch{}}return null}var he=Array.isArray,I=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},ve=[],Se=-1;function S(e){return{current:e}}function D(e){0>Se||(e.current=ve[Se],ve[Se]=null,Se--)}function q(e,t){Se++,ve[Se]=e.current,e.current=t}var ue=S(null),pe=S(null),xe=S(null),me=S(null);function Oe(e,t){switch(q(xe,t),q(pe,e),q(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qp(t),e=Vp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(ue),q(ue,e)}function Ee(){D(ue),D(pe),D(xe)}function He(e){e.memoizedState!==null&&q(me,e);var t=ue.current,n=Vp(t,e.type);t!==n&&(q(pe,e),q(ue,n))}function We(e){pe.current===e&&(D(ue),D(pe)),me.current===e&&(D(me),ws._currentValue=oe)}var ke,At;function Ge(e){if(ke===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ke=t&&t[1]||"",At=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+ke+e+At}var Nn=!1;function nt(e,t){if(!e||Nn)return"";Nn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(Z){var F=Z}Reflect.construct(e,[],ae)}else{try{ae.call()}catch(Z){F=Z}e.call(ae.prototype)}}else{try{throw Error()}catch(Z){F=Z}(ae=e())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(Z){if(Z&&F&&typeof Z.stack=="string")return[Z.stack,F.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),h=c[0],E=c[1];if(h&&E){var O=h.split(`
|
|
44
|
+
`),Y=E.split(`
|
|
45
|
+
`);for(o=a=0;a<O.length&&!O[a].includes("DetermineComponentFrameRoot");)a++;for(;o<Y.length&&!Y[o].includes("DetermineComponentFrameRoot");)o++;if(a===O.length||o===Y.length)for(a=O.length-1,o=Y.length-1;1<=a&&0<=o&&O[a]!==Y[o];)o--;for(;1<=a&&0<=o;a--,o--)if(O[a]!==Y[o]){if(a!==1||o!==1)do if(a--,o--,0>o||O[a]!==Y[o]){var W=`
|
|
46
|
+
`+O[a].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),W}while(1<=a&&0<=o);break}}}finally{Nn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ge(n):""}function xn(e,t){switch(e.tag){case 26:case 27:case 5:return Ge(e.type);case 16:return Ge("Lazy");case 13:return e.child!==t&&t!==null?Ge("Suspense Fallback"):Ge("Suspense");case 19:return Ge("SuspenseList");case 0:case 15:return nt(e.type,!1);case 11:return nt(e.type.render,!1);case 1:return nt(e.type,!0);case 31:return Ge("Activity");default:return""}}function rn(e){try{var t="",n=null;do t+=xn(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var zt=Object.prototype.hasOwnProperty,qn=s.unstable_scheduleCallback,Jt=s.unstable_cancelCallback,ca=s.unstable_shouldYield,Vn=s.unstable_requestPaint,Ke=s.unstable_now,Ut=s.unstable_getCurrentPriorityLevel,mt=s.unstable_ImmediatePriority,bn=s.unstable_UserBlockingPriority,yn=s.unstable_NormalPriority,kn=s.unstable_LowPriority,Mn=s.unstable_IdlePriority,Cn=s.log,Dn=s.unstable_setDisableYieldValue,on=null,St=null;function Wt(e){if(typeof Cn=="function"&&Dn(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(on,e)}catch{}}var Nt=Math.clz32?Math.clz32:wn,Gn=Math.log,Ln=Math.LN2;function wn(e){return e>>>=0,e===0?32:31-(Gn(e)/Ln|0)|0}var je=256,cn=262144,Qt=4194304;function Ct(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function R(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=Ct(a):(h&=E,h!==0?o=Ct(h):n||(n=E&~e,n!==0&&(o=Ct(n))))):(E=a&~c,E!==0?o=Ct(E):h!==0?o=Ct(h):n||(n=a&~e,n!==0&&(o=Ct(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function J(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function C(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 ee(){var e=Qt;return Qt<<=1,(Qt&62914560)===0&&(Qt=4194304),e}function de(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Le(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ye(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,O=e.expirationTimes,Y=e.hiddenUpdates;for(n=h&~n;0<n;){var W=31-Nt(n),ae=1<<W;E[W]=0,O[W]=-1;var F=Y[W];if(F!==null)for(Y[W]=null,W=0;W<F.length;W++){var Z=F[W];Z!==null&&(Z.lane&=-536870913)}n&=~ae}a!==0&&be(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function be(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Nt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function ze(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Nt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function Rt(e,t){var n=t&-t;return n=(n&42)!==0?1:gt(n),(n&(e.suspendedLanes|t))!==0?0:n}function gt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Jn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ya(){var e=ne.p;return e!==0?e:(e=window.event,e===void 0?32:Em(e.type))}function ei(e,t){var n=ne.p;try{return ne.p=e,t()}finally{ne.p=n}}var vn=Math.random().toString(36).slice(2),Mt="__reactFiber$"+vn,en="__reactProps$"+vn,lt="__reactContainer$"+vn,Wn="__reactEvents$"+vn,tl="__reactListeners$"+vn,ka="__reactHandles$"+vn,ti="__reactResources$"+vn,va="__reactMarker$"+vn;function ni(e){delete e[Mt],delete e[en],delete e[Wn],delete e[tl],delete e[ka]}function un(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lt]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=im(e);e!==null;){if(n=e[Mt])return n;e=im(e)}return t}e=n,n=e.parentNode}return null}function ua(e){if(e=e[Mt]||e[lt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ea(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function _a(e){var t=e[ti];return t||(t=e[ti]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[va]=!0}var Ma=new Set,An={};function fa(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(An[e]=t,e=0;e<t.length;e++)Ma.add(t[e])}var Me=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$e={},st={};function Tt(e){return zt.call(st,e)?!0:zt.call($e,e)?!1:Me.test(e)?st[e]=!0:($e[e]=!0,!1)}function qt(e,t,n){if(Tt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function tn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Bt(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ot(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function 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=Ot(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=Ot(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ca(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var al=/[\n"\\]/g;function En(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=""+rt(t)):e.value!==""+rt(t)&&(e.value=""+rt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?si(e,h,rt(t)):n!=null?si(e,h,rt(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+rt(E):e.removeAttribute("name")}function Da(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?""+rt(n):"",t=t!=null?""+rt(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"&&Ca(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Gt(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+rt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function La(e,t,n){if(t!=null&&(t=""+rt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+rt(n):""}function Sa(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(l(92));if(he(a)){if(1<a.length)throw Error(l(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=rt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),ai(e)}function X(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var T=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function B(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 V(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&&B(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&B(e,c,t[c])}function _e(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ne=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Be=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Xe(e){return Be.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function se(){}var ge=null;function Ce(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fe=null,Pe=null;function ea(e){var t=ua(e);if(t&&(e=t.stateNode)){var n=e[en]||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="'+En(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[en]||null;if(!o)throw Error(l(90));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":La(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Gt(e,!!n.multiple,t,!1)}}}var Gl=!1;function $s(e,t,n){if(Gl)return e(t,n);Gl=!0;try{var a=e(t);return a}finally{if(Gl=!1,(Fe!==null||Pe!==null)&&(kr(),Fe&&(t=Fe,e=Pe,Pe=Fe=null,ea(t),e)))for(t=0;t<e.length;t++)ea(e[t])}}function $l(e,t){var n=e.stateNode;if(n===null)return null;var a=n[en]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var za=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),po=!1;if(za)try{var Yl={};Object.defineProperty(Yl,"passive",{get:function(){po=!0}}),window.addEventListener("test",Yl,Yl),window.removeEventListener("test",Yl,Yl)}catch{po=!1}var ri=null,mo=null,Ys=null;function Vf(){if(Ys)return Ys;var e,t=mo,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 Ys=o.slice(e,1<a?1-a:void 0)}function Fs(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 Ks(){return!0}function Jf(){return!1}function zn(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)?Ks:Jf,this.isPropagationStopped=Jf,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=Ks)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ks)},persist:function(){},isPersistent:Ks}),t}var Li={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ps=zn(Li),Fl=v({},Li,{view:0,detail:0}),Wb=zn(Fl),go,bo,Kl,Zs=v({},Fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kl&&(Kl&&e.type==="mousemove"?(go=e.screenX-Kl.screenX,bo=e.screenY-Kl.screenY):bo=go=0,Kl=e),go)},movementY:function(e){return"movementY"in e?e.movementY:bo}}),Wf=zn(Zs),ey=v({},Zs,{dataTransfer:0}),ty=zn(ey),ny=v({},Fl,{relatedTarget:0}),yo=zn(ny),ay=v({},Li,{animationName:0,elapsedTime:0,pseudoElement:0}),iy=zn(ay),ly=v({},Li,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sy=zn(ly),ry=v({},Li,{data:0}),ed=zn(ry),oy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cy={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"},uy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uy[e])?!!t[e]:!1}function vo(){return fy}var dy=v({},Fl,{key:function(e){if(e.key){var t=oy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vo,charCode:function(e){return e.type==="keypress"?Fs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hy=zn(dy),py=v({},Zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),td=zn(py),my=v({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vo}),gy=zn(my),by=v({},Li,{propertyName:0,elapsedTime:0,pseudoElement:0}),yy=zn(by),vy=v({},Zs,{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}),Ey=zn(vy),_y=v({},Li,{newState:0,oldState:0}),Sy=zn(_y),Ty=[9,13,27,32],Eo=za&&"CompositionEvent"in window,Pl=null;za&&"documentMode"in document&&(Pl=document.documentMode);var Ny=za&&"TextEvent"in window&&!Pl,nd=za&&(!Eo||Pl&&8<Pl&&11>=Pl),ad=" ",id=!1;function ld(e,t){switch(e){case"keyup":return Ty.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function xy(e,t){switch(e){case"compositionend":return sd(t);case"keypress":return t.which!==32?null:(id=!0,ad);case"textInput":return e=t.data,e===ad&&id?null:e;default:return null}}function wy(e,t){if(il)return e==="compositionend"||!Eo&&ld(e,t)?(e=Vf(),Ys=mo=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 nd&&t.locale!=="ko"?null:t.data;default:return null}}var Ay={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 rd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ay[e.type]:t==="textarea"}function od(e,t,n,a){Fe?Pe?Pe.push(a):Pe=[a]:Fe=a,t=Br(t,"onChange"),0<t.length&&(n=new Ps("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Zl=null,Xl=null;function Ry(e){Yp(e,0)}function Xs(e){var t=Ea(e);if(ii(t))return e}function cd(e,t){if(e==="change")return t}var ud=!1;if(za){var _o;if(za){var So="oninput"in document;if(!So){var fd=document.createElement("div");fd.setAttribute("oninput","return;"),So=typeof fd.oninput=="function"}_o=So}else _o=!1;ud=_o&&(!document.documentMode||9<document.documentMode)}function dd(){Zl&&(Zl.detachEvent("onpropertychange",hd),Xl=Zl=null)}function hd(e){if(e.propertyName==="value"&&Xs(Xl)){var t=[];od(t,Xl,e,Ce(e)),$s(Ry,t)}}function Oy(e,t,n){e==="focusin"?(dd(),Zl=t,Xl=n,Zl.attachEvent("onpropertychange",hd)):e==="focusout"&&dd()}function ky(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xs(Xl)}function My(e,t){if(e==="click")return Xs(t)}function Cy(e,t){if(e==="input"||e==="change")return Xs(t)}function Dy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:Dy;function Ql(e,t){if($n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!zt.call(t,o)||!$n(e[o],t[o]))return!1}return!0}function pd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function md(e,t){var n=pd(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=pd(n)}}function gd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ca(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ca(e.document)}return t}function To(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Ly=za&&"documentMode"in document&&11>=document.documentMode,ll=null,No=null,Vl=null,xo=!1;function yd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xo||ll==null||ll!==Ca(a)||(a=ll,"selectionStart"in a&&To(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Vl&&Ql(Vl,a)||(Vl=a,a=Br(No,"onSelect"),0<a.length&&(t=new Ps("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ll)))}function zi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sl={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionrun:zi("Transition","TransitionRun"),transitionstart:zi("Transition","TransitionStart"),transitioncancel:zi("Transition","TransitionCancel"),transitionend:zi("Transition","TransitionEnd")},wo={},vd={};za&&(vd=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);function Ui(e){if(wo[e])return wo[e];if(!sl[e])return e;var t=sl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in vd)return wo[e]=t[n];return e}var Ed=Ui("animationend"),_d=Ui("animationiteration"),Sd=Ui("animationstart"),zy=Ui("transitionrun"),Uy=Ui("transitionstart"),By=Ui("transitioncancel"),Td=Ui("transitionend"),Nd=new Map,Ao="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ao.push("scrollEnd");function da(e,t){Nd.set(e,t),fa(t,[e])}var Qs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ta=[],rl=0,Ro=0;function Vs(){for(var e=rl,t=Ro=rl=0;t<e;){var n=ta[t];ta[t++]=null;var a=ta[t];ta[t++]=null;var o=ta[t];ta[t++]=null;var c=ta[t];if(ta[t++]=null,a!==null&&o!==null){var h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}c!==0&&xd(n,o,c)}}function Js(e,t,n,a){ta[rl++]=e,ta[rl++]=t,ta[rl++]=n,ta[rl++]=a,Ro|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Oo(e,t,n,a){return Js(e,t,n,a),Ws(e)}function Bi(e,t){return Js(e,null,null,t),Ws(e)}function xd(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-Nt(n),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),c):null}function Ws(e){if(50<vs)throw vs=0,jc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ol={};function jy(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yn(e,t,n,a){return new jy(e,t,n,a)}function ko(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ua(e,t){var n=e.alternate;return n===null?(n=Yn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function wd(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 er(e,t,n,a,o,c){var h=0;if(a=e,typeof e=="function")ko(e)&&(h=1);else if(typeof e=="string")h=$v(e,n,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=Yn(31,n,t,o),e.elementType=z,e.lanes=c,e;case A:return ji(n.children,o,c,t);case w:h=8,o|=24;break;case U:return e=Yn(12,n,t,o|2),e.elementType=U,e.lanes=c,e;case H:return e=Yn(13,n,t,o),e.elementType=H,e.lanes=c,e;case P:return e=Yn(19,n,t,o),e.elementType=P,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L: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=Yn(h,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function ji(e,t,n,a){return e=Yn(7,e,a,t),e.lanes=n,e}function Mo(e,t,n){return e=Yn(6,e,null,t),e.lanes=n,e}function Ad(e){var t=Yn(18,null,null,0);return t.stateNode=e,t}function Co(e,t,n){return t=Yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Rd=new WeakMap;function na(e,t){if(typeof e=="object"&&e!==null){var n=Rd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:rn(t)},Rd.set(e,t),t)}return{value:e,source:t,stack:rn(t)}}var cl=[],ul=0,tr=null,Jl=0,aa=[],ia=0,oi=null,Ta=1,Na="";function Ba(e,t){cl[ul++]=Jl,cl[ul++]=tr,tr=e,Jl=t}function Od(e,t,n){aa[ia++]=Ta,aa[ia++]=Na,aa[ia++]=oi,oi=e;var a=Ta;e=Na;var o=32-Nt(a)-1;a&=~(1<<o),n+=1;var c=32-Nt(t)+o;if(30<c){var h=o-o%5;c=(a&(1<<h)-1).toString(32),a>>=h,o-=h,Ta=1<<32-Nt(t)+o|n<<o|a,Na=c+e}else Ta=1<<c|n<<o|a,Na=e}function Do(e){e.return!==null&&(Ba(e,1),Od(e,1,0))}function Lo(e){for(;e===tr;)tr=cl[--ul],cl[ul]=null,Jl=cl[--ul],cl[ul]=null;for(;e===oi;)oi=aa[--ia],aa[ia]=null,Na=aa[--ia],aa[ia]=null,Ta=aa[--ia],aa[ia]=null}function kd(e,t){aa[ia++]=Ta,aa[ia++]=Na,aa[ia++]=oi,Ta=t.id,Na=t.overflow,oi=e}var fn=null,xt=null,at=!1,ci=null,la=!1,zo=Error(l(519));function ui(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wl(na(t,e)),zo}function Md(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Mt]=e,t[en]=a,n){case"dialog":Ve("cancel",t),Ve("close",t);break;case"iframe":case"object":case"embed":Ve("load",t);break;case"video":case"audio":for(n=0;n<_s.length;n++)Ve(_s[n],t);break;case"source":Ve("error",t);break;case"img":case"image":case"link":Ve("error",t),Ve("load",t);break;case"details":Ve("toggle",t);break;case"input":Ve("invalid",t),Da(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ve("invalid",t);break;case"textarea":Ve("invalid",t),Sa(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Zp(t.textContent,n)?(a.popover!=null&&(Ve("beforetoggle",t),Ve("toggle",t)),a.onScroll!=null&&Ve("scroll",t),a.onScrollEnd!=null&&Ve("scrollend",t),a.onClick!=null&&(t.onclick=se),t=!0):t=!1,t||ui(e,!0)}function Cd(e){for(fn=e.return;fn;)switch(fn.tag){case 5:case 31:case 13:la=!1;return;case 27:case 3:la=!0;return;default:fn=fn.return}}function fl(e){if(e!==fn)return!1;if(!at)return Cd(e),at=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Wc(e.type,e.memoizedProps)),n=!n),n&&xt&&ui(e),Cd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));xt=am(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));xt=am(e)}else t===27?(t=xt,Ni(e.type)?(e=iu,iu=null,xt=e):xt=t):xt=fn?ra(e.stateNode.nextSibling):null;return!0}function Ii(){xt=fn=null,at=!1}function Uo(){var e=ci;return e!==null&&(In===null?In=e:In.push.apply(In,e),ci=null),e}function Wl(e){ci===null?ci=[e]:ci.push(e)}var Bo=S(null),Hi=null,ja=null;function fi(e,t,n){q(Bo,t._currentValue),t._currentValue=n}function Ia(e){e._currentValue=Bo.current,D(Bo)}function jo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Io(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=o;for(var O=0;O<t.length;O++)if(E.context===t[O]){c.lanes|=n,E=c.alternate,E!==null&&(E.lanes|=n),jo(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),jo(h,n,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function dl(e,t,n,a){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(l(387));if(h=h.memoizedProps,h!==null){var E=o.type;$n(o.pendingProps.value,h.value)||(e!==null?e.push(E):e=[E])}}else if(o===me.current){if(h=o.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ws):e=[ws])}o=o.return}e!==null&&Io(t,e,n,a),t.flags|=262144}function nr(e){for(e=e.firstContext;e!==null;){if(!$n(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qi(e){Hi=e,ja=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dn(e){return Dd(Hi,e)}function ar(e,t){return Hi===null&&qi(e),Dd(e,t)}function Dd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ja===null){if(e===null)throw Error(l(308));ja=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ja=ja.next=t;return n}var Iy=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()})}},Hy=s.unstable_scheduleCallback,qy=s.unstable_NormalPriority,$t={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ho(){return{controller:new Iy,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&Hy(qy,function(){e.controller.abort()})}var ts=null,qo=0,hl=0,pl=null;function Gy(e,t){if(ts===null){var n=ts=[];qo=0,hl=Yc(),pl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return qo++,t.then(Ld,Ld),t}function Ld(){if(--qo===0&&ts!==null){pl!==null&&(pl.status="fulfilled");var e=ts;ts=null,hl=0,pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $y(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 zd=I.S;I.S=function(e,t){yp=Ke(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Gy(e,t),zd!==null&&zd(e,t)};var Gi=S(null);function Go(){var e=Gi.current;return e!==null?e:_t.pooledCache}function ir(e,t){t===null?q(Gi,Gi.current):q(Gi,t.pool)}function Ud(){var e=Go();return e===null?null:{parent:$t._currentValue,pool:e}}var ml=Error(l(460)),$o=Error(l(474)),lr=Error(l(542)),sr={then:function(){}};function Bd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(se,se),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hd(e),e;default:if(typeof t.status=="string")t.then(se,se);else{if(e=_t,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hd(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 Id(){if(Yi===null)throw Error(l(459));var e=Yi;return Yi=null,e}function Hd(e){if(e===ml||e===lr)throw Error(l(483))}var gl=null,ns=0;function rr(e){var t=ns;return ns+=1,gl===null&&(gl=[]),jd(gl,e,t)}function as(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function or(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 qd(e){function t(j,M){if(e){var $=j.deletions;$===null?(j.deletions=[M],j.flags|=16):$.push(M)}}function n(j,M){if(!e)return null;for(;M!==null;)t(j,M),M=M.sibling;return null}function a(j){for(var M=new Map;j!==null;)j.key!==null?M.set(j.key,j):M.set(j.index,j),j=j.sibling;return M}function o(j,M){return j=Ua(j,M),j.index=0,j.sibling=null,j}function c(j,M,$){return j.index=$,e?($=j.alternate,$!==null?($=$.index,$<M?(j.flags|=67108866,M):$):(j.flags|=67108866,M)):(j.flags|=1048576,M)}function h(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function E(j,M,$,te){return M===null||M.tag!==6?(M=Mo($,j.mode,te),M.return=j,M):(M=o(M,$),M.return=j,M)}function O(j,M,$,te){var De=$.type;return De===A?W(j,M,$.props.children,te,$.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=j,M):(M=er($.type,$.key,$.props,null,j.mode,te),as(M,$),M.return=j,M)}function Y(j,M,$,te){return M===null||M.tag!==4||M.stateNode.containerInfo!==$.containerInfo||M.stateNode.implementation!==$.implementation?(M=Co($,j.mode,te),M.return=j,M):(M=o(M,$.children||[]),M.return=j,M)}function W(j,M,$,te,De){return M===null||M.tag!==7?(M=ji($,j.mode,te,De),M.return=j,M):(M=o(M,$),M.return=j,M)}function ae(j,M,$){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Mo(""+M,j.mode,$),M.return=j,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return $=er(M.type,M.key,M.props,null,j.mode,$),as($,M),$.return=j,$;case N:return M=Co(M,j.mode,$),M.return=j,M;case k:return M=$i(M),ae(j,M,$)}if(he(M)||fe(M))return M=ji(M,j.mode,$,null),M.return=j,M;if(typeof M.then=="function")return ae(j,rr(M),$);if(M.$$typeof===L)return ae(j,ar(j,M),$);or(j,M)}return null}function F(j,M,$,te){var De=M!==null?M.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return De!==null?null:E(j,M,""+$,te);if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return $.key===De?O(j,M,$,te):null;case N:return $.key===De?Y(j,M,$,te):null;case k:return $=$i($),F(j,M,$,te)}if(he($)||fe($))return De!==null?null:W(j,M,$,te,null);if(typeof $.then=="function")return F(j,M,rr($),te);if($.$$typeof===L)return F(j,M,ar(j,$),te);or(j,$)}return null}function Z(j,M,$,te,De){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return j=j.get($)||null,E(M,j,""+te,De);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case x:return j=j.get(te.key===null?$:te.key)||null,O(M,j,te,De);case N:return j=j.get(te.key===null?$:te.key)||null,Y(M,j,te,De);case k:return te=$i(te),Z(j,M,$,te,De)}if(he(te)||fe(te))return j=j.get($)||null,W(M,j,te,De,null);if(typeof te.then=="function")return Z(j,M,$,rr(te),De);if(te.$$typeof===L)return Z(j,M,$,ar(M,te),De);or(M,te)}return null}function Te(j,M,$,te){for(var De=null,ot=null,Re=M,Ye=M=0,tt=null;Re!==null&&Ye<$.length;Ye++){Re.index>Ye?(tt=Re,Re=null):tt=Re.sibling;var ct=F(j,Re,$[Ye],te);if(ct===null){Re===null&&(Re=tt);break}e&&Re&&ct.alternate===null&&t(j,Re),M=c(ct,M,Ye),ot===null?De=ct:ot.sibling=ct,ot=ct,Re=tt}if(Ye===$.length)return n(j,Re),at&&Ba(j,Ye),De;if(Re===null){for(;Ye<$.length;Ye++)Re=ae(j,$[Ye],te),Re!==null&&(M=c(Re,M,Ye),ot===null?De=Re:ot.sibling=Re,ot=Re);return at&&Ba(j,Ye),De}for(Re=a(Re);Ye<$.length;Ye++)tt=Z(Re,j,Ye,$[Ye],te),tt!==null&&(e&&tt.alternate!==null&&Re.delete(tt.key===null?Ye:tt.key),M=c(tt,M,Ye),ot===null?De=tt:ot.sibling=tt,ot=tt);return e&&Re.forEach(function(Oi){return t(j,Oi)}),at&&Ba(j,Ye),De}function Ue(j,M,$,te){if($==null)throw Error(l(151));for(var De=null,ot=null,Re=M,Ye=M=0,tt=null,ct=$.next();Re!==null&&!ct.done;Ye++,ct=$.next()){Re.index>Ye?(tt=Re,Re=null):tt=Re.sibling;var Oi=F(j,Re,ct.value,te);if(Oi===null){Re===null&&(Re=tt);break}e&&Re&&Oi.alternate===null&&t(j,Re),M=c(Oi,M,Ye),ot===null?De=Oi:ot.sibling=Oi,ot=Oi,Re=tt}if(ct.done)return n(j,Re),at&&Ba(j,Ye),De;if(Re===null){for(;!ct.done;Ye++,ct=$.next())ct=ae(j,ct.value,te),ct!==null&&(M=c(ct,M,Ye),ot===null?De=ct:ot.sibling=ct,ot=ct);return at&&Ba(j,Ye),De}for(Re=a(Re);!ct.done;Ye++,ct=$.next())ct=Z(Re,j,Ye,ct.value,te),ct!==null&&(e&&ct.alternate!==null&&Re.delete(ct.key===null?Ye:ct.key),M=c(ct,M,Ye),ot===null?De=ct:ot.sibling=ct,ot=ct);return e&&Re.forEach(function(eE){return t(j,eE)}),at&&Ba(j,Ye),De}function vt(j,M,$,te){if(typeof $=="object"&&$!==null&&$.type===A&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case x:e:{for(var De=$.key;M!==null;){if(M.key===De){if(De=$.type,De===A){if(M.tag===7){n(j,M.sibling),te=o(M,$.props.children),te.return=j,j=te;break e}}else if(M.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===k&&$i(De)===M.type){n(j,M.sibling),te=o(M,$.props),as(te,$),te.return=j,j=te;break e}n(j,M);break}else t(j,M);M=M.sibling}$.type===A?(te=ji($.props.children,j.mode,te,$.key),te.return=j,j=te):(te=er($.type,$.key,$.props,null,j.mode,te),as(te,$),te.return=j,j=te)}return h(j);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(j,M.sibling),te=o(M,$.children||[]),te.return=j,j=te;break e}else{n(j,M);break}else t(j,M);M=M.sibling}te=Co($,j.mode,te),te.return=j,j=te}return h(j);case k:return $=$i($),vt(j,M,$,te)}if(he($))return Te(j,M,$,te);if(fe($)){if(De=fe($),typeof De!="function")throw Error(l(150));return $=De.call($),Ue(j,M,$,te)}if(typeof $.then=="function")return vt(j,M,rr($),te);if($.$$typeof===L)return vt(j,M,ar(j,$),te);or(j,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,M!==null&&M.tag===6?(n(j,M.sibling),te=o(M,$),te.return=j,j=te):(n(j,M),te=Mo($,j.mode,te),te.return=j,j=te),h(j)):n(j,M)}return function(j,M,$,te){try{ns=0;var De=vt(j,M,$,te);return gl=null,De}catch(Re){if(Re===ml||Re===lr)throw Re;var ot=Yn(29,Re,null,j.mode);return ot.lanes=te,ot.return=j,ot}finally{}}}var Fi=qd(!0),Gd=qd(!1),di=!1;function Yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function 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,(ut&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Ws(e),xd(e,null,n),t}return Js(e,a,t,n),Ws(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,ze(e,n)}}function Ko(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Po=!1;function ls(){if(Po){var e=pl;if(e!==null)throw e}}function ss(e,t,n,a){Po=!1;var o=e.updateQueue;di=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,E=o.shared.pending;if(E!==null){o.shared.pending=null;var O=E,Y=O.next;O.next=null,h===null?c=Y:h.next=Y,h=O;var W=e.alternate;W!==null&&(W=W.updateQueue,E=W.lastBaseUpdate,E!==h&&(E===null?W.firstBaseUpdate=Y:E.next=Y,W.lastBaseUpdate=O))}if(c!==null){var ae=o.baseState;h=0,W=Y=O=null,E=c;do{var F=E.lane&-536870913,Z=F!==E.lane;if(Z?(et&F)===F:(a&F)===F){F!==0&&F===hl&&(Po=!0),W!==null&&(W=W.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Te=e,Ue=E;F=t;var vt=n;switch(Ue.tag){case 1:if(Te=Ue.payload,typeof Te=="function"){ae=Te.call(vt,ae,F);break e}ae=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=Ue.payload,F=typeof Te=="function"?Te.call(vt,ae,F):Te,F==null)break e;ae=v({},ae,F);break e;case 2:di=!0}}F=E.callback,F!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=o.callbacks,Z===null?o.callbacks=[F]:Z.push(F))}else Z={lane:F,tag:E.tag,payload:E.payload,callback:E.callback,next:null},W===null?(Y=W=Z,O=ae):W=W.next=Z,h|=F;if(E=E.next,E===null){if(E=o.shared.pending,E===null)break;Z=E,E=Z.next,Z.next=null,o.lastBaseUpdate=Z,o.shared.pending=null}}while(!0);W===null&&(O=ae),o.baseState=O,o.firstBaseUpdate=Y,o.lastBaseUpdate=W,c===null&&(o.shared.lanes=0),vi|=h,e.lanes=h,e.memoizedState=ae}}function $d(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function Yd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)$d(n[e],t)}var bl=S(null),cr=S(0);function Fd(e,t){e=Za,q(cr,e),q(bl,t),Za=e|t.baseLanes}function Zo(){q(cr,Za),q(bl,bl.current)}function Xo(){Za=cr.current,D(bl),D(cr)}var Fn=S(null),sa=null;function mi(e){var t=e.alternate;q(jt,jt.current&1),q(Fn,e),sa===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(sa=e)}function Qo(e){q(jt,jt.current),q(Fn,e),sa===null&&(sa=e)}function Kd(e){e.tag===22?(q(jt,jt.current),q(Fn,e),sa===null&&(sa=e)):gi()}function gi(){q(jt,jt.current),q(Fn,Fn.current)}function Kn(e){D(Fn),sa===e&&(sa=null),D(jt)}var jt=S(0);function ur(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||nu(n)||au(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ha=0,qe=null,bt=null,Yt=null,fr=!1,yl=!1,Ki=!1,dr=0,rs=0,vl=null,Yy=0;function Dt(){throw Error(l(321))}function Vo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function Jo(e,t,n,a,o,c){return Ha=c,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Oh:hc,Ki=!1,c=n(a,o),Ki=!1,yl&&(c=Zd(t,n,a,o)),Pd(e),c}function Pd(e){I.H=us;var t=bt!==null&&bt.next!==null;if(Ha=0,Yt=bt=qe=null,fr=!1,rs=0,vl=null,t)throw Error(l(300));e===null||Ft||(e=e.dependencies,e!==null&&nr(e)&&(Ft=!0))}function Zd(e,t,n,a){qe=e;var o=0;do{if(yl&&(vl=null),rs=0,yl=!1,25<=o)throw Error(l(301));if(o+=1,Yt=bt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}I.H=kh,c=t(n,a)}while(yl);return c}function Fy(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?os(t):t,e=e.useState()[0],(bt!==null?bt.memoizedState:null)!==e&&(qe.flags|=1024),t}function Wo(){var e=dr!==0;return dr=0,e}function ec(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function tc(e){if(fr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fr=!1}Ha=0,Yt=bt=qe=null,yl=!1,rs=dr=0,vl=null}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?qe.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function It(){if(bt===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var t=Yt===null?qe.memoizedState:Yt.next;if(t!==null)Yt=t,bt=e;else{if(e===null)throw qe.alternate===null?Error(l(467)):Error(l(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Yt===null?qe.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function hr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=rs;return rs+=1,vl===null&&(vl=[]),e=jd(vl,e,t),t=qe,(Yt===null?t.memoizedState:Yt.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Oh:hc),e}function pr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===L)return dn(e)}throw Error(l(438,String(e)))}function nc(e){var t=null,n=qe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=qe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=hr(),qe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Q;return t.index++,n}function qa(e,t){return typeof t=="function"?t(e):t}function mr(e){var t=It();return ac(t,bt,e)}function ac(e,t,n){var a=e.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var E=h=null,O=null,Y=t,W=!1;do{var ae=Y.lane&-536870913;if(ae!==Y.lane?(et&ae)===ae:(Ha&ae)===ae){var F=Y.revertLane;if(F===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),ae===hl&&(W=!0);else if((Ha&F)===F){Y=Y.next,F===hl&&(W=!0);continue}else ae={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},O===null?(E=O=ae,h=c):O=O.next=ae,qe.lanes|=F,vi|=F;ae=Y.action,Ki&&n(c,ae),c=Y.hasEagerState?Y.eagerState:n(c,ae)}else F={lane:ae,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},O===null?(E=O=F,h=c):O=O.next=F,qe.lanes|=ae,vi|=ae;Y=Y.next}while(Y!==null&&Y!==t);if(O===null?h=c:O.next=E,!$n(c,e.memoizedState)&&(Ft=!0,W&&(n=pl,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=O,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ic(e){var t=It(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);$n(c,t.memoizedState)||(Ft=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Xd(e,t,n){var a=qe,o=It(),c=at;if(c){if(n===void 0)throw Error(l(407));n=n()}else n=t();var h=!$n((bt||o).memoizedState,n);if(h&&(o.memoizedState=n,Ft=!0),o=o.queue,rc(Jd.bind(null,a,o,e),[e]),o.getSnapshot!==t||h||Yt!==null&&Yt.memoizedState.tag&1){if(a.flags|=2048,El(9,{destroy:void 0},Vd.bind(null,a,o,n,t),null),_t===null)throw Error(l(349));c||(Ha&127)!==0||Qd(a,t,n)}return n}function Qd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=qe.updateQueue,t===null?(t=hr(),qe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Vd(e,t,n,a){t.value=n,t.getSnapshot=a,Wd(t)&&eh(e)}function Jd(e,t,n){return n(function(){Wd(t)&&eh(e)})}function Wd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function eh(e){var t=Bi(e,2);t!==null&&Hn(t,e,2)}function lc(e){var t=Rn();if(typeof e=="function"){var n=e;if(e=n(),Ki){Wt(!0);try{n()}finally{Wt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:e},t}function th(e,t,n,a){return e.baseState=n,ac(e,bt,typeof a=="function"?a:qa)}function Ky(e,t,n,a,o){if(yr(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,nh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function nh(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),O=I.S;O!==null&&O(h,E),ah(e,t,E)}catch(Y){sc(e,t,Y)}finally{c!==null&&h.types!==null&&(c.types=h.types),I.T=c}}else try{c=n(o,a),ah(e,t,c)}catch(Y){sc(e,t,Y)}}function ah(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){ih(e,t,a)},function(a){return sc(e,t,a)}):ih(e,t,n)}function ih(e,t,n){t.status="fulfilled",t.value=n,lh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,nh(e,n)))}function sc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,lh(t),t=t.next;while(t!==a)}e.action=null}function lh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sh(e,t){return t}function rh(e,t){if(at){var n=_t.formState;if(n!==null){e:{var a=qe;if(at){if(xt){t:{for(var o=xt,c=la;o.nodeType!==8;){if(!c){o=null;break t}if(o=ra(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){xt=ra(o.nextSibling),a=o.data==="F!";break e}}ui(a)}a=!1}a&&(t=n[0])}}return n=Rn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sh,lastRenderedState:t},n.queue=a,n=wh.bind(null,qe,a),a.dispatch=n,a=lc(!1),c=dc.bind(null,qe,!1,a.queue),a=Rn(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=Ky.bind(null,qe,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function oh(e){var t=It();return ch(t,bt,e)}function ch(e,t,n){if(t=ac(e,t,sh)[0],e=mr(qa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=os(t)}catch(h){throw h===ml?lr:h}else a=t;t=It();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(qe.flags|=2048,El(9,{destroy:void 0},Py.bind(null,o,n),null)),[a,c,e]}function Py(e,t){e.action=t}function uh(e){var t=It(),n=bt;if(n!==null)return ch(t,n,e);It(),t=t.memoizedState,n=It();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=qe.updateQueue,t===null&&(t=hr(),qe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function fh(){return It().memoizedState}function gr(e,t,n,a){var o=Rn();qe.flags|=e,o.memoizedState=El(1|t,{destroy:void 0},n,a===void 0?null:a)}function br(e,t,n,a){var o=It();a=a===void 0?null:a;var c=o.memoizedState.inst;bt!==null&&a!==null&&Vo(a,bt.memoizedState.deps)?o.memoizedState=El(t,c,n,a):(qe.flags|=e,o.memoizedState=El(1|t,c,n,a))}function dh(e,t){gr(8390656,8,e,t)}function rc(e,t){br(2048,8,e,t)}function Zy(e){qe.flags|=4;var t=qe.updateQueue;if(t===null)t=hr(),qe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hh(e){var t=It().memoizedState;return Zy({ref:t,nextImpl:e}),function(){if((ut&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function ph(e,t){return br(4,2,e,t)}function mh(e,t){return br(4,4,e,t)}function gh(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 bh(e,t,n){n=n!=null?n.concat([e]):null,br(4,4,gh.bind(null,t,e),n)}function oc(){}function yh(e,t){var n=It();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Vo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function vh(e,t){var n=It();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Vo(t,a[1]))return a[0];if(a=e(),Ki){Wt(!0);try{e()}finally{Wt(!1)}}return n.memoizedState=[a,t],a}function cc(e,t,n){return n===void 0||(Ha&1073741824)!==0&&(et&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Ep(),qe.lanes|=e,vi|=e,n)}function Eh(e,t,n,a){return $n(n,t)?n:bl.current!==null?(e=cc(e,n,a),$n(e,t)||(Ft=!0),e):(Ha&42)===0||(Ha&1073741824)!==0&&(et&261930)===0?(Ft=!0,e.memoizedState=n):(e=Ep(),qe.lanes|=e,vi|=e,t)}function _h(e,t,n,a,o){var c=ne.p;ne.p=c!==0&&8>c?c:8;var h=I.T,E={};I.T=E,dc(e,!1,t,n);try{var O=o(),Y=I.S;if(Y!==null&&Y(E,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var W=$y(O,a);cs(e,t,W,Xn(e))}else cs(e,t,a,Xn(e))}catch(ae){cs(e,t,{then:function(){},status:"rejected",reason:ae},Xn())}finally{ne.p=c,h!==null&&E.types!==null&&(h.types=E.types),I.T=h}}function Xy(){}function uc(e,t,n,a){if(e.tag!==5)throw Error(l(476));var o=Sh(e).queue;_h(e,o,t,oe,n===null?Xy:function(){return Th(e),n(a)})}function Sh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Th(e){var t=Sh(e);t.next===null&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},Xn())}function fc(){return dn(ws)}function Nh(){return It().memoizedState}function xh(){return It().memoizedState}function Qy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xn();e=hi(n);var a=pi(t,e,n);a!==null&&(Hn(a,t,n),is(a,t,n)),t={cache:Ho()},e.payload=t;return}t=t.return}}function Vy(e,t,n){var a=Xn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},yr(e)?Ah(t,n):(n=Oo(e,t,n,a),n!==null&&(Hn(n,e,a),Rh(n,t,a)))}function wh(e,t,n){var a=Xn();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(yr(e))Ah(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,$n(E,h))return Js(e,t,o,0),_t===null&&Vs(),!1}catch{}finally{}if(n=Oo(e,t,o,a),n!==null)return Hn(n,e,a),Rh(n,t,a),!0}return!1}function dc(e,t,n,a){if(a={lane:2,revertLane:Yc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},yr(e)){if(t)throw Error(l(479))}else t=Oo(e,n,a,2),t!==null&&Hn(t,e,2)}function yr(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function Ah(e,t){yl=fr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ze(e,n)}}var us={readContext:dn,use:pr,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useLayoutEffect:Dt,useInsertionEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useSyncExternalStore:Dt,useId:Dt,useHostTransitionStatus:Dt,useFormState:Dt,useActionState:Dt,useOptimistic:Dt,useMemoCache:Dt,useCacheRefresh:Dt};us.useEffectEvent=Dt;var Oh={readContext:dn,use:pr,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:dn,useEffect:dh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,gr(4194308,4,gh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gr(4194308,4,e,t)},useInsertionEffect:function(e,t){gr(4,2,e,t)},useMemo:function(e,t){var n=Rn();t=t===void 0?null:t;var a=e();if(Ki){Wt(!0);try{e()}finally{Wt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Rn();if(n!==void 0){var o=n(t);if(Ki){Wt(!0);try{n(t)}finally{Wt(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=Vy.bind(null,qe,e),[a.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:function(e){e=lc(e);var t=e.queue,n=wh.bind(null,qe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:oc,useDeferredValue:function(e,t){var n=Rn();return cc(n,e,t)},useTransition:function(){var e=lc(!1);return e=_h.bind(null,qe,e.queue,!0,!1),Rn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=qe,o=Rn();if(at){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),_t===null)throw Error(l(349));(et&127)!==0||Qd(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,dh(Jd.bind(null,a,c,e),[e]),a.flags|=2048,El(9,{destroy:void 0},Vd.bind(null,a,c,n,t),null),n},useId:function(){var e=Rn(),t=_t.identifierPrefix;if(at){var n=Na,a=Ta;n=(a&~(1<<32-Nt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=dr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Yy++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:fc,useFormState:rh,useActionState:rh,useOptimistic:function(e){var t=Rn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dc.bind(null,qe,!0,n),n.dispatch=t,[e,t]},useMemoCache:nc,useCacheRefresh:function(){return Rn().memoizedState=Qy.bind(null,qe)},useEffectEvent:function(e){var t=Rn(),n={impl:e};return t.memoizedState=n,function(){if((ut&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},hc={readContext:dn,use:pr,useCallback:yh,useContext:dn,useEffect:rc,useImperativeHandle:bh,useInsertionEffect:ph,useLayoutEffect:mh,useMemo:vh,useReducer:mr,useRef:fh,useState:function(){return mr(qa)},useDebugValue:oc,useDeferredValue:function(e,t){var n=It();return Eh(n,bt.memoizedState,e,t)},useTransition:function(){var e=mr(qa)[0],t=It().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:Xd,useId:Nh,useHostTransitionStatus:fc,useFormState:oh,useActionState:oh,useOptimistic:function(e,t){var n=It();return th(n,bt,e,t)},useMemoCache:nc,useCacheRefresh:xh};hc.useEffectEvent=hh;var kh={readContext:dn,use:pr,useCallback:yh,useContext:dn,useEffect:rc,useImperativeHandle:bh,useInsertionEffect:ph,useLayoutEffect:mh,useMemo:vh,useReducer:ic,useRef:fh,useState:function(){return ic(qa)},useDebugValue:oc,useDeferredValue:function(e,t){var n=It();return bt===null?cc(n,e,t):Eh(n,bt.memoizedState,e,t)},useTransition:function(){var e=ic(qa)[0],t=It().memoizedState;return[typeof e=="boolean"?e:os(e),t]},useSyncExternalStore:Xd,useId:Nh,useHostTransitionStatus:fc,useFormState:uh,useActionState:uh,useOptimistic:function(e,t){var n=It();return bt!==null?th(n,bt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:nc,useCacheRefresh:xh};kh.useEffectEvent=hh;function pc(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 mc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Xn(),o=hi(a);o.payload=t,n!=null&&(o.callback=n),t=pi(e,o,a),t!==null&&(Hn(t,e,a),is(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Xn(),o=hi(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=pi(e,o,a),t!==null&&(Hn(t,e,a),is(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xn(),a=hi(n);a.tag=2,t!=null&&(a.callback=t),t=pi(e,a,n),t!==null&&(Hn(t,e,n),is(t,e,n))}};function Mh(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 Ch(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&mc.enqueueReplaceState(t,t.state,null)}function Pi(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Dh(e){Qs(e)}function Lh(e){console.error(e)}function zh(e){Qs(e)}function vr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Uh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function gc(e,t,n){return n=hi(n),n.tag=3,n.payload={element:null},n.callback=function(){vr(e,t)},n}function Bh(e){return e=hi(e),e.tag=3,e}function jh(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(){Uh(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Uh(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 Jy(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=Fn.current,n!==null){switch(n.tag){case 31:case 13:return sa===null?Mr():n.alternate===null&&Lt===0&&(Lt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===sr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),qc(e,a,o)),!1;case 22:return n.flags|=65536,a===sr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),qc(e,a,o)),!1}throw Error(l(435,n.tag))}return qc(e,a,o),Mr(),!1}if(at)return t=Fn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==zo&&(e=Error(l(422),{cause:a}),Wl(na(e,n)))):(a!==zo&&(t=Error(l(423),{cause:a}),Wl(na(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=na(a,n),o=gc(e.stateNode,a,o),Ko(e,o),Lt!==4&&(Lt=2)),!1;var c=Error(l(520),{cause:a});if(c=na(c,n),ys===null?ys=[c]:ys.push(c),Lt!==4&&(Lt=2),t===null)return!0;a=na(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=gc(n.stateNode,a,e),Ko(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ei===null||!Ei.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Bh(o),jh(o,e,n,a),Ko(n,o),!1}n=n.return}while(n!==null);return!1}var bc=Error(l(461)),Ft=!1;function hn(e,t,n,a){t.child=e===null?Gd(t,null,n,a):Fi(t,e.child,n,a)}function Ih(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=Jo(e,t,n,h,c,o),E=Wo(),e!==null&&!Ft?(ec(e,t,o),Ga(e,t,o)):(at&&E&&Do(t),t.flags|=1,hn(e,t,a,o),t.child)}function Hh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!ko(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,qh(e,t,c,a,o)):(e=er(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!xc(e,o)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ql,n(h,a)&&e.ref===t.ref)return Ga(e,t,o)}return t.flags|=1,e=Ua(c,a),e.ref=t.ref,e.return=t,t.child=e}function qh(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(Ql(c,a)&&e.ref===t.ref)if(Ft=!1,t.pendingProps=a=c,xc(e,o))(e.flags&131072)!==0&&(Ft=!0);else return t.lanes=e.lanes,Ga(e,t,o)}return yc(e,t,n,a,o)}function Gh(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 $h(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ir(t,c!==null?c.cachePool:null),c!==null?Fd(t,c):Zo(),Kd(t);else return a=t.lanes=536870912,$h(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(ir(t,c.cachePool),Fd(t,c),gi(),t.memoizedState=null):(e!==null&&ir(t,null),Zo(),gi());return hn(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 $h(e,t,n,a,o){var c=Go();return c=c===null?null:{parent:$t._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ir(t,null),Zo(),Kd(t),e!==null&&dl(e,t,a,!0),t.childLanes=o,null}function Er(e,t){return t=Sr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Yh(e,t,n){return Fi(t,e.child,null,n),e=Er(t,t.pendingProps),e.flags|=2,Kn(t),t.memoizedState=null,e}function Wy(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(at){if(a.mode==="hidden")return e=Er(t,a),t.lanes=536870912,fs(null,e);if(Qo(t),(e=xt)?(e=nm(e,la),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:oi!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=Ad(e),n.return=t,t.child=n,fn=t,xt=null)):e=null,e===null)throw ui(t);return t.lanes=536870912,null}return Er(t,a)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(Qo(t),o)if(t.flags&256)t.flags&=-257,t=Yh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(Ft||dl(e,t,n,!1),o=(n&e.childLanes)!==0,Ft||o){if(a=_t,a!==null&&(h=Rt(a,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,Bi(e,h),Hn(a,e,h),bc;Mr(),t=Yh(e,t,n)}else e=c.treeContext,xt=ra(h.nextSibling),fn=t,at=!0,ci=null,la=!1,e!==null&&kd(t,e),t=Er(t,a),t.flags|=4096;return t}return e=Ua(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _r(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(l(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function yc(e,t,n,a,o){return qi(t),n=Jo(e,t,n,a,void 0,o),a=Wo(),e!==null&&!Ft?(ec(e,t,o),Ga(e,t,o)):(at&&a&&Do(t),t.flags|=1,hn(e,t,n,o),t.child)}function Fh(e,t,n,a,o,c){return qi(t),t.updateQueue=null,n=Zd(t,a,n,o),Pd(e),a=Wo(),e!==null&&!Ft?(ec(e,t,c),Ga(e,t,c)):(at&&a&&Do(t),t.flags|=1,hn(e,t,n,c),t.child)}function Kh(e,t,n,a,o){if(qi(t),t.stateNode===null){var c=ol,h=n.contextType;typeof h=="object"&&h!==null&&(c=dn(h)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=mc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},Yo(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?dn(h):ol,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(pc(t,n,h,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&mc.enqueueReplaceState(c,c.state,null),ss(t,a,c,o),ls(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,O=Pi(n,E);c.props=O;var Y=c.context,W=n.contextType;h=ol,typeof W=="object"&&W!==null&&(h=dn(W));var ae=n.getDerivedStateFromProps;W=typeof ae=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,W||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||Y!==h)&&Ch(t,c,a,h),di=!1;var F=t.memoizedState;c.state=F,ss(t,a,c,o),ls(),Y=t.memoizedState,E||F!==Y||di?(typeof ae=="function"&&(pc(t,n,ae,a),Y=t.memoizedState),(O=di||Mh(t,n,O,a,F,Y,h))?(W||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=Y),c.props=a,c.state=Y,c.context=h,a=O):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,Fo(e,t),h=t.memoizedProps,W=Pi(n,h),c.props=W,ae=t.pendingProps,F=c.context,Y=n.contextType,O=ol,typeof Y=="object"&&Y!==null&&(O=dn(Y)),E=n.getDerivedStateFromProps,(Y=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==ae||F!==O)&&Ch(t,c,a,O),di=!1,F=t.memoizedState,c.state=F,ss(t,a,c,o),ls();var Z=t.memoizedState;h!==ae||F!==Z||di||e!==null&&e.dependencies!==null&&nr(e.dependencies)?(typeof E=="function"&&(pc(t,n,E,a),Z=t.memoizedState),(W=di||Mh(t,n,W,a,F,Z,O)||e!==null&&e.dependencies!==null&&nr(e.dependencies))?(Y||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,Z,O),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,Z,O)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=Z),c.props=a,c.state=Z,c.context=O,a=W):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,_r(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)):hn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ga(e,t,o),e}function Ph(e,t,n,a){return Ii(),t.flags|=256,hn(e,t,n,a),t.child}var vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ec(e){return{baseLanes:e,cachePool:Ud()}}function _c(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zn),e}function Zh(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(at){if(o?mi(t):gi(),(e=xt)?(e=nm(e,la),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:oi!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=Ad(e),n.return=t,t.child=n,fn=t,xt=null)):e=null,e===null)throw ui(t);return au(e)?t.lanes=32:t.lanes=536870912,null}var E=a.children;return a=a.fallback,o?(gi(),o=t.mode,E=Sr({mode:"hidden",children:E},o),a=ji(a,o,n,null),E.return=t,a.return=t,E.sibling=a,t.child=E,a=t.child,a.memoizedState=Ec(n),a.childLanes=_c(e,h,n),t.memoizedState=vc,fs(null,a)):(mi(t),Sc(t,E))}var O=e.memoizedState;if(O!==null&&(E=O.dehydrated,E!==null)){if(c)t.flags&256?(mi(t),t.flags&=-257,t=Tc(e,t,n)):t.memoizedState!==null?(gi(),t.child=e.child,t.flags|=128,t=null):(gi(),E=a.fallback,o=t.mode,a=Sr({mode:"visible",children:a.children},o),E=ji(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=Ec(n),a.childLanes=_c(e,h,n),t.memoizedState=vc,t=fs(null,a));else if(mi(t),au(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=Tc(e,t,n)}else if(Ft||dl(e,t,n,!1),h=(n&e.childLanes)!==0,Ft||h){if(h=_t,h!==null&&(a=Rt(h,n),a!==0&&a!==O.retryLane))throw O.retryLane=a,Bi(e,a),Hn(h,e,a),bc;nu(E)||Mr(),t=Tc(e,t,n)}else nu(E)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,xt=ra(E.nextSibling),fn=t,at=!0,ci=null,la=!1,e!==null&&kd(t,e),t=Sc(t,a.children),t.flags|=4096);return t}return o?(gi(),E=a.fallback,o=t.mode,O=e.child,Y=O.sibling,a=Ua(O,{mode:"hidden",children:a.children}),a.subtreeFlags=O.subtreeFlags&65011712,Y!==null?E=Ua(Y,E):(E=ji(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=Ec(n):(o=E.cachePool,o!==null?(O=$t._currentValue,o=o.parent!==O?{parent:O,pool:O}:o):o=Ud(),E={baseLanes:E.baseLanes|n,cachePool:o}),a.memoizedState=E,a.childLanes=_c(e,h,n),t.memoizedState=vc,fs(e.child,a)):(mi(t),n=e.child,e=n.sibling,n=Ua(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function Sc(e,t){return t=Sr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Sr(e,t){return e=Yn(22,e,null,t),e.lanes=0,e}function Tc(e,t,n){return Fi(t,e.child,null,n),e=Sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),jo(e.return,t,n)}function Nc(e,t,n,a,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=o,h.treeForkCount=c)}function Qh(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),hn(e,t,a,n),a=at?Jl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xh(e,n,t);else if(e.tag===19)Xh(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&&ur(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Nc(t,!1,o,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ur(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Nc(t,!0,n,null,c,a);break;case"together":Nc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Ga(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),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=Ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&nr(e)))}function ev(e,t,n){switch(t.tag){case 3:Oe(t,t.stateNode.containerInfo),fi(t,$t,e.memoizedState.cache),Ii();break;case 27:case 5:He(t);break;case 4:Oe(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,Qo(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?Zh(e,t,n):(mi(t),e=Ga(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 Qh(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,Gh(e,t,n,t.pendingProps);case 24:fi(t,$t,e.memoizedState.cache)}return Ga(e,t,n)}function Vh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ft=!0;else{if(!xc(e,n)&&(t.flags&128)===0)return Ft=!1,ev(e,t,n);Ft=(e.flags&131072)!==0}else Ft=!1,at&&(t.flags&1048576)!==0&&Od(t,Jl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=$i(t.elementType),t.type=e,typeof e=="function")ko(e)?(a=Pi(e,a),t.tag=1,t=Kh(null,t,e,a,n)):(t.tag=0,t=yc(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===re){t.tag=11,t=Ih(null,t,e,a,n);break e}else if(o===le){t.tag=14,t=Hh(null,t,e,a,n);break e}}throw t=Ae(e)||e,Error(l(306,t,""))}}return t;case 0:return yc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Pi(a,t.pendingProps),Kh(e,t,a,o,n);case 3:e:{if(Oe(t,t.stateNode.containerInfo),e===null)throw Error(l(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,Fo(e,t),ss(t,a,null,n);var h=t.memoizedState;if(a=h.cache,fi(t,$t,a),a!==c.cache&&Io(t,[$t],n,!0),ls(),a=h.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Ph(e,t,a,n);break e}else if(a!==o){o=na(Error(l(424)),t),Wl(o),t=Ph(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(xt=ra(e.firstChild),fn=t,at=!0,ci=null,la=!0,n=Gd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ii(),a===o){t=Ga(e,t,n);break e}hn(e,t,a,n)}t=t.child}return t;case 26:return _r(e,t),e===null?(n=om(t.type,null,t.pendingProps,null))?t.memoizedState=n:at||(n=t.type,e=t.pendingProps,a=jr(xe.current).createElement(n),a[Mt]=t,a[en]=e,pn(a,n,e),dt(a),t.stateNode=a):t.memoizedState=om(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return He(t),e===null&&at&&(a=t.stateNode=lm(t.type,t.pendingProps,xe.current),fn=t,la=!0,o=xt,Ni(t.type)?(iu=o,xt=ra(a.firstChild)):xt=o),hn(e,t,t.pendingProps.children,n),_r(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&at&&((o=a=xt)&&(a=kv(a,t.type,t.pendingProps,la),a!==null?(t.stateNode=a,fn=t,xt=ra(a.firstChild),la=!1,o=!0):o=!1),o||ui(t)),He(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,a=c.children,Wc(o,c)?a=null:h!==null&&Wc(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=Jo(e,t,Fy,null,null,n),ws._currentValue=o),_r(e,t),hn(e,t,a,n),t.child;case 6:return e===null&&at&&((e=n=xt)&&(n=Mv(n,t.pendingProps,la),n!==null?(t.stateNode=n,fn=t,xt=null,e=!0):e=!1),e||ui(t)),null;case 13:return Zh(e,t,n);case 4:return Oe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Fi(t,null,a,n):hn(e,t,a,n),t.child;case 11:return Ih(e,t,t.type,t.pendingProps,n);case 7:return hn(e,t,t.pendingProps,n),t.child;case 8:return hn(e,t,t.pendingProps.children,n),t.child;case 12:return hn(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,fi(t,t.type,a.value),hn(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,qi(t),o=dn(o),a=a(o),t.flags|=1,hn(e,t,a,n),t.child;case 14:return Hh(e,t,t.type,t.pendingProps,n);case 15:return qh(e,t,t.type,t.pendingProps,n);case 19:return Qh(e,t,n);case 31:return Wy(e,t,n);case 22:return Gh(e,t,n,t.pendingProps);case 24:return qi(t),a=dn($t),e===null?(o=Go(),o===null&&(o=_t,c=Ho(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},Yo(t),fi(t,$t,o)):((e.lanes&n)!==0&&(Fo(e,t),ss(t,null,null,n),ls()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),fi(t,$t,a)):(a=c.cache,fi(t,$t,a),a!==o.cache&&Io(t,[$t],n,!0))),hn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function $a(e){e.flags|=4}function wc(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Np())e.flags|=8192;else throw Yi=sr,$o}else e.flags&=-16777217}function Jh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!hm(t))if(Np())e.flags|=8192;else throw Yi=sr,$o}function Tr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ee():536870912,e.lanes|=t,Nl|=t)}function ds(e,t){if(!at)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function wt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function tv(e,t,n){var a=t.pendingProps;switch(Lo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(t),null;case 1:return wt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ia($t),Ee(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(fl(t)?$a(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Uo())),wt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?($a(t),c!==null?(wt(t),Jh(t,c)):(wt(t),wc(t,o,null,a,n))):c?c!==e.memoizedState?($a(t),wt(t),Jh(t,c)):(wt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&$a(t),wt(t),wc(t,o,e,a,n)),null;case 27:if(We(t),n=xe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return wt(t),null}e=ue.current,fl(t)?Md(t):(e=lm(o,a,n),t.stateNode=e,$a(t))}return wt(t),null;case 5:if(We(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return wt(t),null}if(c=ue.current,fl(t))Md(t);else{var h=jr(xe.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[en]=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(pn(c,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&$a(t)}}return wt(t),wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&$a(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(l(166));if(e=xe.current,fl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=fn,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[Mt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Zp(e.nodeValue,n)),e||ui(t,!0)}else e=jr(e).createTextNode(a),e[Mt]=t,t.stateNode=e}return wt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=fl(t),n!==null){if(e===null){if(!a)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Mt]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),e=!1}else n=Uo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Kn(t),t):(Kn(t),null);if((t.flags&128)!==0)throw Error(l(558))}return wt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=fl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[Mt]=t}else Ii(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),o=!1}else o=Uo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Kn(t),t):(Kn(t),null)}return Kn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Tr(t,t.updateQueue),wt(t),null);case 4:return Ee(),e===null&&Zc(t.stateNode.containerInfo),wt(t),null;case 10:return Ia(t.type),wt(t),null;case 19:if(D(jt),a=t.memoizedState,a===null)return wt(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)ds(a,!1);else{if(Lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=ur(e),c!==null){for(t.flags|=128,ds(a,!1),e=c.updateQueue,t.updateQueue=e,Tr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)wd(n,e),n=n.sibling;return q(jt,jt.current&1|2),at&&Ba(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Ke()>Rr&&(t.flags|=128,o=!0,ds(a,!1),t.lanes=4194304)}else{if(!o)if(e=ur(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Tr(t,e),ds(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!at)return wt(t),null}else 2*Ke()-a.renderingStartTime>Rr&&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=Ke(),e.sibling=null,n=jt.current,q(jt,o?n&1|2:n&1),at&&Ba(t,a.treeForkCount),e):(wt(t),null);case 22:case 23:return Kn(t),Xo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(wt(t),t.subtreeFlags&6&&(t.flags|=8192)):wt(t),n=t.updateQueue,n!==null&&Tr(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&&D(Gi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ia($t),wt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function nv(e,t){switch(Lo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ia($t),Ee(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return We(t),null;case 31:if(t.memoizedState!==null){if(Kn(t),t.alternate===null)throw Error(l(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(jt),null;case 4:return Ee(),null;case 10:return Ia(t.type),null;case 22:case 23:return Kn(t),Xo(),e!==null&&D(Gi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ia($t),null;case 25:return null;default:return null}}function Wh(e,t){switch(Lo(t),t.tag){case 3:Ia($t),Ee();break;case 26:case 27:case 5:We(t);break;case 4:Ee();break;case 31:t.memoizedState!==null&&Kn(t);break;case 13:Kn(t);break;case 19:D(jt);break;case 10:Ia(t.type);break;case 22:case 23:Kn(t),Xo(),e!==null&&D(Gi);break;case 24:Ia($t)}}function hs(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,h=n.inst;a=c(),h.destroy=a}n=n.next}while(n!==o)}}catch(E){pt(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 O=n,Y=E;try{Y()}catch(W){pt(o,O,W)}}}a=a.next}while(a!==c)}}catch(W){pt(t,t.return,W)}}function ep(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Yd(t,n)}catch(a){pt(e,e.return,a)}}}function tp(e,t,n){n.props=Pi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){pt(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){pt(e,t,o)}}function xa(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){pt(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){pt(e,t,o)}else n.current=null}function np(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){pt(e,e.return,o)}}function Ac(e,t,n){try{var a=e.stateNode;Nv(a,e.type,n,t),a[en]=t}catch(o){pt(e,e.return,o)}}function ap(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ni(e.type)||e.tag===4}function Rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ap(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&&Ni(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Oc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=se));else if(a!==4&&(a===27&&Ni(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Oc(e,t,n),e=e.sibling;e!==null;)Oc(e,t,n),e=e.sibling}function Nr(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&&Ni(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Nr(e,t,n),e=e.sibling;e!==null;)Nr(e,t,n),e=e.sibling}function ip(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);pn(t,a,n),t[Mt]=e,t[en]=n}catch(c){pt(e,e.return,c)}}var Ya=!1,Kt=!1,kc=!1,lp=typeof WeakSet=="function"?WeakSet:Set,nn=null;function av(e,t){if(e=e.containerInfo,Vc=Fr,e=bd(e),To(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,E=-1,O=-1,Y=0,W=0,ae=e,F=null;t:for(;;){for(var Z;ae!==n||o!==0&&ae.nodeType!==3||(E=h+o),ae!==c||a!==0&&ae.nodeType!==3||(O=h+a),ae.nodeType===3&&(h+=ae.nodeValue.length),(Z=ae.firstChild)!==null;)F=ae,ae=Z;for(;;){if(ae===e)break t;if(F===n&&++Y===o&&(E=h),F===c&&++W===a&&(O=h),(Z=ae.nextSibling)!==null)break;ae=F,F=ae.parentNode}ae=Z}n=E===-1||O===-1?null:{start:E,end:O}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jc={focusedElem:e,selectionRange:n},Fr=!1,nn=t;nn!==null;)if(t=nn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nn=e;else for(;nn!==null;){switch(t=nn,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var Te=Pi(n.type,o);e=a.getSnapshotBeforeUpdate(Te,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(Ue){pt(n,n.return,Ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":tu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,nn=e;break}nn=t.return}}function sp(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Ka(e,n),a&4&&hs(5,n);break;case 1:if(Ka(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){pt(n,n.return,h)}else{var o=Pi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){pt(n,n.return,h)}}a&64&&ep(n),a&512&&ps(n,n.return);break;case 3:if(Ka(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Yd(e,t)}catch(h){pt(n,n.return,h)}}break;case 27:t===null&&a&4&&ip(n);case 26:case 5:Ka(e,n),t===null&&a&4&&np(n),a&512&&ps(n,n.return);break;case 12:Ka(e,n);break;case 31:Ka(e,n),a&4&&cp(e,n);break;case 13:Ka(e,n),a&4&&up(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=dv.bind(null,n),Cv(e,n))));break;case 22:if(a=n.memoizedState!==null||Ya,!a){t=t!==null&&t.memoizedState!==null||Kt,o=Ya;var c=Kt;Ya=a,(Kt=t)&&!c?Pa(e,n,(n.subtreeFlags&8772)!==0):Ka(e,n),Ya=o,Kt=c}break;case 30:break;default:Ka(e,n)}}function rp(e){var t=e.alternate;t!==null&&(e.alternate=null,rp(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 kt=null,Un=!1;function Fa(e,t,n){for(n=n.child;n!==null;)op(e,t,n),n=n.sibling}function op(e,t,n){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(on,n)}catch{}switch(n.tag){case 26:Kt||xa(n,t),Fa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||xa(n,t);var a=kt,o=Un;Ni(n.type)&&(kt=n.stateNode,Un=!1),Fa(e,t,n),Ts(n.stateNode),kt=a,Un=o;break;case 5:Kt||xa(n,t);case 6:if(a=kt,o=Un,kt=null,Fa(e,t,n),kt=a,Un=o,kt!==null)if(Un)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(n.stateNode)}catch(c){pt(n,t,c)}else try{kt.removeChild(n.stateNode)}catch(c){pt(n,t,c)}break;case 18:kt!==null&&(Un?(e=kt,em(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Cl(e)):em(kt,n.stateNode));break;case 4:a=kt,o=Un,kt=n.stateNode.containerInfo,Un=!0,Fa(e,t,n),kt=a,Un=o;break;case 0:case 11:case 14:case 15:bi(2,n,t),Kt||bi(4,n,t),Fa(e,t,n);break;case 1:Kt||(xa(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&tp(n,t,a)),Fa(e,t,n);break;case 21:Fa(e,t,n);break;case 22:Kt=(a=Kt)||n.memoizedState!==null,Fa(e,t,n),Kt=a;break;default:Fa(e,t,n)}}function cp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Cl(e)}catch(n){pt(t,t.return,n)}}}function up(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){pt(t,t.return,n)}}function iv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lp),t;default:throw Error(l(435,e.tag))}}function xr(e,t){var n=iv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=hv.bind(null,e,a);a.then(o,o)}})}function Bn(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(Ni(E.type)){kt=E.stateNode,Un=!1;break e}break;case 5:kt=E.stateNode,Un=!1;break e;case 3:case 4:kt=E.stateNode.containerInfo,Un=!0;break e}E=E.return}if(kt===null)throw Error(l(160));op(c,h,o),kt=null,Un=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fp(t,e),t=t.sibling}var ha=null;function fp(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bn(t,e),jn(e),a&4&&(bi(3,e,e.return),hs(3,e),bi(5,e,e.return));break;case 1:Bn(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),a&64&&Ya&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=ha;if(Bn(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":c=o.getElementsByTagName("title")[0],(!c||c[va]||c[Mt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),pn(c,a,n),c[Mt]=e,dt(c),a=c;break e;case"link":var h=fm("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),pn(c,a,n),o.head.appendChild(c);break;case"meta":if(h=fm("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),pn(c,a,n),o.head.appendChild(c);break;default:throw Error(l(468,a))}c[Mt]=e,dt(c),a=c}e.stateNode=a}else dm(o,e.type,e.stateNode);else e.stateNode=um(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?dm(o,e.type,e.stateNode):um(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Ac(e,e.memoizedProps,n.memoizedProps)}break;case 27:Bn(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),n!==null&&a&4&&Ac(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Bn(t,e),jn(e),a&512&&(Kt||n===null||xa(n,n.return)),e.flags&32){o=e.stateNode;try{X(o,"")}catch(Te){pt(e,e.return,Te)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Ac(e,o,n!==null?n.memoizedProps:o)),a&1024&&(kc=!0);break;case 6:if(Bn(t,e),jn(e),a&4){if(e.stateNode===null)throw Error(l(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(Te){pt(e,e.return,Te)}}break;case 3:if(qr=null,o=ha,ha=Ir(t.containerInfo),Bn(t,e),ha=o,jn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Cl(t.containerInfo)}catch(Te){pt(e,e.return,Te)}kc&&(kc=!1,dp(e));break;case 4:a=ha,ha=Ir(e.stateNode.containerInfo),Bn(t,e),jn(e),ha=a;break;case 12:Bn(t,e),jn(e);break;case 31:Bn(t,e),jn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,xr(e,a)));break;case 13:Bn(t,e),jn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ar=Ke()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,xr(e,a)));break;case 22:o=e.memoizedState!==null;var O=n!==null&&n.memoizedState!==null,Y=Ya,W=Kt;if(Ya=Y||o,Kt=W||O,Bn(t,e),Kt=W,Ya=Y,jn(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||O||Ya||Kt||Zi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){O=n=t;try{if(c=O.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{E=O.stateNode;var ae=O.memoizedProps.style,F=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;E.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(Te){pt(O,O.return,Te)}}}else if(t.tag===6){if(n===null){O=t;try{O.stateNode.nodeValue=o?"":O.memoizedProps}catch(Te){pt(O,O.return,Te)}}}else if(t.tag===18){if(n===null){O=t;try{var Z=O.stateNode;o?tm(Z,!0):tm(O.stateNode,!1)}catch(Te){pt(O,O.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,xr(e,n))));break;case 19:Bn(t,e),jn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,xr(e,a)));break;case 30:break;case 21:break;default:Bn(t,e),jn(e)}}function jn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(ap(a)){n=a;break}a=a.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,c=Rc(e);Nr(e,c,o);break;case 5:var h=n.stateNode;n.flags&32&&(X(h,""),n.flags&=-33);var E=Rc(e);Nr(e,E,h);break;case 3:case 4:var O=n.stateNode.containerInfo,Y=Rc(e);Oc(e,Y,O);break;default:throw Error(l(161))}}catch(W){pt(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ka(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sp(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:xa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&tp(t,t.return,n),Zi(t);break;case 27:Ts(t.stateNode);case 26:case 5:xa(t,t.return),Zi(t);break;case 22:t.memoizedState===null&&Zi(t);break;case 30:Zi(t);break;default:Zi(t)}e=e.sibling}}function Pa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Pa(o,c,n),hs(4,c);break;case 1:if(Pa(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(Y){pt(a,a.return,Y)}if(a=c,o=a.updateQueue,o!==null){var E=a.stateNode;try{var O=o.shared.hiddenCallbacks;if(O!==null)for(o.shared.hiddenCallbacks=null,o=0;o<O.length;o++)$d(O[o],E)}catch(Y){pt(a,a.return,Y)}}n&&h&64&&ep(c),ps(c,c.return);break;case 27:ip(c);case 26:case 5:Pa(o,c,n),n&&a===null&&h&4&&np(c),ps(c,c.return);break;case 12:Pa(o,c,n);break;case 31:Pa(o,c,n),n&&h&4&&cp(o,c);break;case 13:Pa(o,c,n),n&&h&4&&up(o,c);break;case 22:c.memoizedState===null&&Pa(o,c,n),ps(c,c.return);break;case 30:break;default:Pa(o,c,n)}t=t.sibling}}function Mc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&es(n))}function Cc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&es(e))}function pa(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hp(e,t,n,a),t=t.sibling}function hp(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(O){pt(t,t.return,O)}}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&&Mc(h,t);break;case 24:pa(e,t,n,a),o&2048&&Cc(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,O=a,Y=h.flags;switch(h.tag){case 0:case 11:case 15:_l(c,h,E,O,o),hs(8,h);break;case 23:break;case 22:var W=h.stateNode;h.memoizedState!==null?W._visibility&2?_l(c,h,E,O,o):ms(c,h):(W._visibility|=2,_l(c,h,E,O,o)),o&&Y&2048&&Mc(h.alternate,h);break;case 24:_l(c,h,E,O,o),o&&Y&2048&&Cc(h.alternate,h);break;default:_l(c,h,E,O,o)}t=t.sibling}}function ms(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ms(n,a),o&2048&&Mc(a.alternate,a);break;case 24:ms(n,a),o&2048&&Cc(a.alternate,a);break;default:ms(n,a)}t=t.sibling}}var gs=8192;function Sl(e,t,n){if(e.subtreeFlags&gs)for(e=e.child;e!==null;)pp(e,t,n),e=e.sibling}function pp(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&gs&&e.memoizedState!==null&&Yv(n,ha,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var a=ha;ha=Ir(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 mp(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];nn=a,bp(a,e)}mp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gp(e),e=e.sibling}function gp(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,wr(e)):bs(e);break;default:bs(e)}}function wr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];nn=a,bp(a,e)}mp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bi(8,t,t.return),wr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,wr(t));break;default:wr(t)}e=e.sibling}}function bp(e,t){for(;nn!==null;){var n=nn;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,nn=a;else e:for(n=e;nn!==null;){a=nn;var o=a.sibling,c=a.return;if(rp(a),a===n){nn=null;break e}if(o!==null){o.return=c,nn=o;break e}nn=c}}}var lv={getCacheForType:function(e){var t=dn($t),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return dn($t).controller.signal}},sv=typeof WeakMap=="function"?WeakMap:Map,ut=0,_t=null,Qe=null,et=0,ht=0,Pn=null,yi=!1,Tl=!1,Dc=!1,Za=0,Lt=0,vi=0,Xi=0,Lc=0,Zn=0,Nl=0,ys=null,In=null,zc=!1,Ar=0,yp=0,Rr=1/0,Or=null,Ei=null,Vt=0,_i=null,xl=null,Xa=0,Uc=0,Bc=null,vp=null,vs=0,jc=null;function Xn(){return(ut&2)!==0&&et!==0?et&-et:I.T!==null?Yc():ya()}function Ep(){if(Zn===0)if((et&536870912)===0||at){var e=cn;cn<<=1,(cn&3932160)===0&&(cn=262144),Zn=e}else Zn=536870912;return e=Fn.current,e!==null&&(e.flags|=32),Zn}function Hn(e,t,n){(e===_t&&(ht===2||ht===9)||e.cancelPendingCommit!==null)&&(wl(e,0),Si(e,et,Zn,!1)),Le(e,n),((ut&2)===0||e!==_t)&&(e===_t&&((ut&2)===0&&(Xi|=n),Lt===4&&Si(e,et,Zn,!1)),wa(e))}function _p(e,t,n){if((ut&6)!==0)throw Error(l(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||J(e,t),o=a?cv(e,t):Hc(e,t,!0),c=a;do{if(o===0){Tl&&!a&&Si(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!rv(n)){o=Hc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var E=e;o=ys;var O=E.current.memoizedState.isDehydrated;if(O&&(wl(E,h).flags|=256),h=Hc(E,h,!1),h!==2){if(Dc&&!O){E.errorRecoveryDisabledLanes|=c,Xi|=c,o=4;break e}c=In,In=o,c!==null&&(In===null?In=c:In.push.apply(In,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){wl(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,Zn,!yi);break e;case 2:In=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Ar+300-Ke(),10<o)){if(Si(a,t,Zn,!yi),R(a,0,!0)!==0)break e;Xa=t,a.timeoutHandle=Jp(Sp.bind(null,a,n,In,Or,zc,t,Zn,Xi,Nl,yi,c,"Throttled",-0,0),o);break e}Sp(a,n,In,Or,zc,t,Zn,Xi,Nl,yi,c,null,-0,0)}}break}while(!0);wa(e)}function Sp(e,t,n,a,o,c,h,E,O,Y,W,ae,F,Z){if(e.timeoutHandle=-1,ae=t.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:se},pp(t,c,ae);var Te=(c&62914560)===c?Ar-Ke():(c&4194048)===c?yp-Ke():0;if(Te=Fv(ae,Te),Te!==null){Xa=c,e.cancelPendingCommit=Te(kp.bind(null,e,t,c,n,a,o,h,E,O,W,ae,null,F,Z)),Si(e,c,h,!Y);return}}kp(e,t,c,n,a,o,h,E,O)}function rv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],c=o.getSnapshot;o=o.value;try{if(!$n(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Si(e,t,n,a){t&=~Lc,t&=~Xi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-Nt(o),h=1<<c;a[c]=-1,o&=~h}n!==0&&be(e,n,t)}function kr(){return(ut&6)===0?(Es(0),!1):!0}function Ic(){if(Qe!==null){if(ht===0)var e=Qe.return;else e=Qe,ja=Hi=null,tc(e),gl=null,ns=0,e=Qe;for(;e!==null;)Wh(e.alternate,e),e=e.return;Qe=null}}function wl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Av(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Xa=0,Ic(),_t=e,Qe=n=Ua(e.current,null),et=t,ht=0,Pn=null,yi=!1,Tl=J(e,t),Dc=!1,Nl=Zn=Lc=Xi=vi=Lt=0,In=ys=null,zc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-Nt(a),c=1<<o;t|=e[o],a&=~c}return Za=t,Vs(),n}function Tp(e,t){qe=null,I.H=us,t===ml||t===lr?(t=Id(),ht=3):t===$o?(t=Id(),ht=4):ht=t===bc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Pn=t,Qe===null&&(Lt=1,vr(e,na(t,e.current)))}function Np(){var e=Fn.current;return e===null?!0:(et&4194048)===et?sa===null:(et&62914560)===et||(et&536870912)!==0?e===sa:!1}function xp(){var e=I.H;return I.H=us,e===null?us:e}function wp(){var e=I.A;return I.A=lv,e}function Mr(){Lt=4,yi||(et&4194048)!==et&&Fn.current!==null||(Tl=!0),(vi&134217727)===0&&(Xi&134217727)===0||_t===null||Si(_t,et,Zn,!1)}function Hc(e,t,n){var a=ut;ut|=2;var o=xp(),c=wp();(_t!==e||et!==t)&&(Or=null,wl(e,t)),t=!1;var h=Lt;e:do try{if(ht!==0&&Qe!==null){var E=Qe,O=Pn;switch(ht){case 8:Ic(),h=6;break e;case 3:case 2:case 9:case 6:Fn.current===null&&(t=!0);var Y=ht;if(ht=0,Pn=null,Al(e,E,O,Y),n&&Tl){h=0;break e}break;default:Y=ht,ht=0,Pn=null,Al(e,E,O,Y)}}ov(),h=Lt;break}catch(W){Tp(e,W)}while(!0);return t&&e.shellSuspendCounter++,ja=Hi=null,ut=a,I.H=o,I.A=c,Qe===null&&(_t=null,et=0,Vs()),h}function ov(){for(;Qe!==null;)Ap(Qe)}function cv(e,t){var n=ut;ut|=2;var a=xp(),o=wp();_t!==e||et!==t?(Or=null,Rr=Ke()+500,wl(e,t)):Tl=J(e,t);e:do try{if(ht!==0&&Qe!==null){t=Qe;var c=Pn;t:switch(ht){case 1:ht=0,Pn=null,Al(e,t,c,1);break;case 2:case 9:if(Bd(c)){ht=0,Pn=null,Rp(t);break}t=function(){ht!==2&&ht!==9||_t!==e||(ht=7),wa(e)},c.then(t,t);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:Bd(c)?(ht=0,Pn=null,Rp(t)):(ht=0,Pn=null,Al(e,t,c,7));break;case 5:var h=null;switch(Qe.tag){case 26:h=Qe.memoizedState;case 5:case 27:var E=Qe;if(h?hm(h):E.stateNode.complete){ht=0,Pn=null;var O=E.sibling;if(O!==null)Qe=O;else{var Y=E.return;Y!==null?(Qe=Y,Cr(Y)):Qe=null}break t}}ht=0,Pn=null,Al(e,t,c,5);break;case 6:ht=0,Pn=null,Al(e,t,c,6);break;case 8:Ic(),Lt=6;break e;default:throw Error(l(462))}}uv();break}catch(W){Tp(e,W)}while(!0);return ja=Hi=null,I.H=a,I.A=o,ut=n,Qe!==null?0:(_t=null,et=0,Vs(),Lt)}function uv(){for(;Qe!==null&&!ca();)Ap(Qe)}function Ap(e){var t=Vh(e.alternate,e,Za);e.memoizedProps=e.pendingProps,t===null?Cr(e):Qe=t}function Rp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Fh(n,t,t.pendingProps,t.type,void 0,et);break;case 11:t=Fh(n,t,t.pendingProps,t.type.render,t.ref,et);break;case 5:tc(t);default:Wh(n,t),t=Qe=wd(t,Za),t=Vh(n,t,Za)}e.memoizedProps=e.pendingProps,t===null?Cr(e):Qe=t}function Al(e,t,n,a){ja=Hi=null,tc(t),gl=null,ns=0;var o=t.return;try{if(Jy(e,o,t,n,et)){Lt=1,vr(e,na(n,e.current)),Qe=null;return}}catch(c){if(o!==null)throw Qe=o,c;Lt=1,vr(e,na(n,e.current)),Qe=null;return}t.flags&32768?(at||a===1?e=!0:Tl||(et&536870912)!==0?e=!1:(yi=e=!0,(a===2||a===9||a===3||a===6)&&(a=Fn.current,a!==null&&a.tag===13&&(a.flags|=16384))),Op(t,e)):Cr(t)}function Cr(e){var t=e;do{if((t.flags&32768)!==0){Op(t,yi);return}e=t.return;var n=tv(t.alternate,t,Za);if(n!==null){Qe=n;return}if(t=t.sibling,t!==null){Qe=t;return}Qe=t=e}while(t!==null);Lt===0&&(Lt=5)}function Op(e,t){do{var n=nv(e.alternate,e);if(n!==null){n.flags&=32767,Qe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Qe=e;return}Qe=e=n}while(e!==null);Lt=6,Qe=null}function kp(e,t,n,a,o,c,h,E,O){e.cancelPendingCommit=null;do Dr();while(Vt!==0);if((ut&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=Ro,ye(e,n,c,h,E,O),e===_t&&(Qe=_t=null,et=0),xl=t,_i=e,Xa=n,Uc=c,Bc=o,vp=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,pv(yn,function(){return zp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=I.T,I.T=null,o=ne.p,ne.p=2,h=ut,ut|=4;try{av(e,t,n)}finally{ut=h,ne.p=o,I.T=a}}Vt=1,Mp(),Cp(),Dp()}}function Mp(){if(Vt===1){Vt=0;var e=_i,t=xl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=I.T,I.T=null;var a=ne.p;ne.p=2;var o=ut;ut|=4;try{fp(t,e);var c=Jc,h=bd(e.containerInfo),E=c.focusedElem,O=c.selectionRange;if(h!==E&&E&&E.ownerDocument&&gd(E.ownerDocument.documentElement,E)){if(O!==null&&To(E)){var Y=O.start,W=O.end;if(W===void 0&&(W=Y),"selectionStart"in E)E.selectionStart=Y,E.selectionEnd=Math.min(W,E.value.length);else{var ae=E.ownerDocument||document,F=ae&&ae.defaultView||window;if(F.getSelection){var Z=F.getSelection(),Te=E.textContent.length,Ue=Math.min(O.start,Te),vt=O.end===void 0?Ue:Math.min(O.end,Te);!Z.extend&&Ue>vt&&(h=vt,vt=Ue,Ue=h);var j=md(E,Ue),M=md(E,vt);if(j&&M&&(Z.rangeCount!==1||Z.anchorNode!==j.node||Z.anchorOffset!==j.offset||Z.focusNode!==M.node||Z.focusOffset!==M.offset)){var $=ae.createRange();$.setStart(j.node,j.offset),Z.removeAllRanges(),Ue>vt?(Z.addRange($),Z.extend(M.node,M.offset)):($.setEnd(M.node,M.offset),Z.addRange($))}}}}for(ae=[],Z=E;Z=Z.parentNode;)Z.nodeType===1&&ae.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ae.length;E++){var te=ae[E];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Fr=!!Vc,Jc=Vc=null}finally{ut=o,ne.p=a,I.T=n}}e.current=t,Vt=2}}function Cp(){if(Vt===2){Vt=0;var e=_i,t=xl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=I.T,I.T=null;var a=ne.p;ne.p=2;var o=ut;ut|=4;try{sp(e,t.alternate,t)}finally{ut=o,ne.p=a,I.T=n}}Vt=3}}function Dp(){if(Vt===4||Vt===3){Vt=0,Vn();var e=_i,t=xl,n=Xa,a=vp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Vt=5:(Vt=0,xl=_i=null,Lp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Ei=null),Jn(n),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(on,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=I.T,o=ne.p,ne.p=2,I.T=null;try{for(var c=e.onRecoverableError,h=0;h<a.length;h++){var E=a[h];c(E.value,{componentStack:E.stack})}}finally{I.T=t,ne.p=o}}(Xa&3)!==0&&Dr(),wa(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===jc?vs++:(vs=0,jc=e):vs=0,Es(0)}}function Lp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,es(t)))}function Dr(){return Mp(),Cp(),Dp(),zp()}function zp(){if(Vt!==5)return!1;var e=_i,t=Uc;Uc=0;var n=Jn(Xa),a=I.T,o=ne.p;try{ne.p=32>n?32:n,I.T=null,n=Bc,Bc=null;var c=_i,h=Xa;if(Vt=0,xl=_i=null,Xa=0,(ut&6)!==0)throw Error(l(331));var E=ut;if(ut|=4,gp(c.current),hp(c,c.current,h,n),ut=E,Es(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(on,c)}catch{}return!0}finally{ne.p=o,I.T=a,Lp(e,t)}}function Up(e,t,n){t=na(n,t),t=gc(e.stateNode,t,2),e=pi(e,t,2),e!==null&&(Le(e,2),wa(e))}function pt(e,t,n){if(e.tag===3)Up(e,e,n);else for(;t!==null;){if(t.tag===3){Up(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=na(n,e),n=Bh(2),a=pi(t,n,2),a!==null&&(jh(n,a,t,e),Le(a,2),wa(a));break}}t=t.return}}function qc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new sv;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(Dc=!0,o.add(n),e=fv.bind(null,e,t,n),t.then(e,e))}function fv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,_t===e&&(et&n)===n&&(Lt===4||Lt===3&&(et&62914560)===et&&300>Ke()-Ar?(ut&2)===0&&wl(e,0):Lc|=n,Nl===et&&(Nl=0)),wa(e)}function Bp(e,t){t===0&&(t=ee()),e=Bi(e,t),e!==null&&(Le(e,t),wa(e))}function dv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bp(e,n)}function hv(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),Bp(e,n)}function pv(e,t){return qn(e,t)}var Lr=null,Rl=null,Gc=!1,zr=!1,$c=!1,Ti=0;function wa(e){e!==Rl&&e.next===null&&(Rl===null?Lr=Rl=e:Rl=Rl.next=e),zr=!0,Gc||(Gc=!0,gv())}function Es(e,t){if(!$c&&zr){$c=!0;do for(var n=!1,a=Lr;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-Nt(42|e)+1)-1,c&=o&~(h&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,qp(a,c))}else c=et,c=R(a,a===_t?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||J(a,c)||(n=!0,qp(a,c));a=a.next}while(n);$c=!1}}function mv(){jp()}function jp(){zr=Gc=!1;var e=0;Ti!==0&&wv()&&(e=Ti);for(var t=Ke(),n=null,a=Lr;a!==null;){var o=a.next,c=Ip(a,t);c===0?(a.next=null,n===null?Lr=o:n.next=o,o===null&&(Rl=n)):(n=a,(e!==0||(c&3)!==0)&&(zr=!0)),a=o}Vt!==0&&Vt!==5||Es(e),Ti!==0&&(Ti=0)}function Ip(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Nt(c),E=1<<h,O=o[h];O===-1?((E&n)===0||(E&a)!==0)&&(o[h]=C(E,t)):O<=t&&(e.expiredLanes|=E),c&=~E}if(t=_t,n=et,n=R(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ht===2||ht===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Jt(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||J(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Jt(a),Jn(n)){case 2:case 8:n=bn;break;case 32:n=yn;break;case 268435456:n=Mn;break;default:n=yn}return a=Hp.bind(null,e),n=qn(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Jt(a),e.callbackPriority=2,e.callbackNode=null,2}function Hp(e,t){if(Vt!==0&&Vt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Dr()&&e.callbackNode!==n)return null;var a=et;return a=R(e,e===_t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(_p(e,a,t),Ip(e,Ke()),e.callbackNode!=null&&e.callbackNode===n?Hp.bind(null,e):null)}function qp(e,t){if(Dr())return null;_p(e,t,!0)}function gv(){Rv(function(){(ut&6)!==0?qn(mt,mv):jp()})}function Yc(){if(Ti===0){var e=hl;e===0&&(e=je,je<<=1,(je&261888)===0&&(je=256)),Ti=e}return Ti}function Gp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xe(""+e)}function $p(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 bv(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Gp((o[en]||null).action),h=a.submitter;h&&(t=(t=h[en]||null)?Gp(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var E=new Ps("action","action",null,a,o);e.push({event:E,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ti!==0){var O=h?$p(o,h):new FormData(o);uc(n,{pending:!0,data:O,method:o.method,action:c},null,O)}}else typeof c=="function"&&(E.preventDefault(),O=h?$p(o,h):new FormData(o),uc(n,{pending:!0,data:O,method:o.method,action:c},c,O))},currentTarget:o}]})}}for(var Fc=0;Fc<Ao.length;Fc++){var Kc=Ao[Fc],yv=Kc.toLowerCase(),vv=Kc[0].toUpperCase()+Kc.slice(1);da(yv,"on"+vv)}da(Ed,"onAnimationEnd"),da(_d,"onAnimationIteration"),da(Sd,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(zy,"onTransitionRun"),da(Uy,"onTransitionStart"),da(By,"onTransitionCancel"),da(Td,"onTransitionEnd"),ce("onMouseEnter",["mouseout","mouseover"]),ce("onMouseLeave",["mouseout","mouseover"]),ce("onPointerEnter",["pointerout","pointerover"]),ce("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(" "),Ev=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_s));function Yp(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],O=E.instance,Y=E.currentTarget;if(E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(W){Qs(W)}o.currentTarget=null,c=O}else for(h=0;h<a.length;h++){if(E=a[h],O=E.instance,Y=E.currentTarget,E=E.listener,O!==c&&o.isPropagationStopped())break e;c=E,o.currentTarget=Y;try{c(o)}catch(W){Qs(W)}o.currentTarget=null,c=O}}}}function Ve(e,t){var n=t[Wn];n===void 0&&(n=t[Wn]=new Set);var a=e+"__bubble";n.has(a)||(Fp(t,e,2,!1),n.add(a))}function Pc(e,t,n){var a=0;t&&(a|=4),Fp(n,e,a,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Zc(e){if(!e[Ur]){e[Ur]=!0,Ma.forEach(function(n){n!=="selectionchange"&&(Ev.has(n)||Pc(n,!1,e),Pc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ur]||(t[Ur]=!0,Pc("selectionchange",!1,t))}}function Fp(e,t,n,a){switch(Em(t)){case 2:var o=Zv;break;case 8:o=Xv;break;default:o=cu}n=o.bind(null,t,n,e),o=void 0,!po||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Xc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var E=a.stateNode.containerInfo;if(E===o)break;if(h===4)for(h=a.return;h!==null;){var O=h.tag;if((O===3||O===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;E!==null;){if(h=un(E),h===null)return;if(O=h.tag,O===5||O===6||O===26||O===27){a=c=h;continue e}E=E.parentNode}}a=a.return}$s(function(){var Y=c,W=Ce(n),ae=[];e:{var F=Nd.get(e);if(F!==void 0){var Z=Ps,Te=e;switch(e){case"keypress":if(Fs(n)===0)break e;case"keydown":case"keyup":Z=hy;break;case"focusin":Te="focus",Z=yo;break;case"focusout":Te="blur",Z=yo;break;case"beforeblur":case"afterblur":Z=yo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=Wf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=ty;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=gy;break;case Ed:case _d:case Sd:Z=iy;break;case Td:Z=yy;break;case"scroll":case"scrollend":Z=Wb;break;case"wheel":Z=Ey;break;case"copy":case"cut":case"paste":Z=sy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=td;break;case"toggle":case"beforetoggle":Z=Sy}var Ue=(t&4)!==0,vt=!Ue&&(e==="scroll"||e==="scrollend"),j=Ue?F!==null?F+"Capture":null:F;Ue=[];for(var M=Y,$;M!==null;){var te=M;if($=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||$===null||j===null||(te=$l(M,j),te!=null&&Ue.push(Ss(M,te,$))),vt)break;M=M.return}0<Ue.length&&(F=new Z(F,Te,null,n,W),ae.push({event:F,listeners:Ue}))}}if((t&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",F&&n!==ge&&(Te=n.relatedTarget||n.fromElement)&&(un(Te)||Te[lt]))break e;if((Z||F)&&(F=W.window===W?W:(F=W.ownerDocument)?F.defaultView||F.parentWindow:window,Z?(Te=n.relatedTarget||n.toElement,Z=Y,Te=Te?un(Te):null,Te!==null&&(vt=d(Te),Ue=Te.tag,Te!==vt||Ue!==5&&Ue!==27&&Ue!==6)&&(Te=null)):(Z=null,Te=Y),Z!==Te)){if(Ue=Wf,te="onMouseLeave",j="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(Ue=td,te="onPointerLeave",j="onPointerEnter",M="pointer"),vt=Z==null?F:Ea(Z),$=Te==null?F:Ea(Te),F=new Ue(te,M+"leave",Z,n,W),F.target=vt,F.relatedTarget=$,te=null,un(W)===Y&&(Ue=new Ue(j,M+"enter",Te,n,W),Ue.target=$,Ue.relatedTarget=vt,te=Ue),vt=te,Z&&Te)t:{for(Ue=_v,j=Z,M=Te,$=0,te=j;te;te=Ue(te))$++;te=0;for(var De=M;De;De=Ue(De))te++;for(;0<$-te;)j=Ue(j),$--;for(;0<te-$;)M=Ue(M),te--;for(;$--;){if(j===M||M!==null&&j===M.alternate){Ue=j;break t}j=Ue(j),M=Ue(M)}Ue=null}else Ue=null;Z!==null&&Kp(ae,F,Z,Ue,!1),Te!==null&&vt!==null&&Kp(ae,vt,Te,Ue,!0)}}e:{if(F=Y?Ea(Y):window,Z=F.nodeName&&F.nodeName.toLowerCase(),Z==="select"||Z==="input"&&F.type==="file")var ot=cd;else if(rd(F))if(ud)ot=Cy;else{ot=ky;var Re=Oy}else Z=F.nodeName,!Z||Z.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?Y&&_e(Y.elementType)&&(ot=cd):ot=My;if(ot&&(ot=ot(e,Y))){od(ae,ot,n,W);break e}Re&&Re(e,F,Y),e==="focusout"&&Y&&F.type==="number"&&Y.memoizedProps.value!=null&&si(F,"number",F.value)}switch(Re=Y?Ea(Y):window,e){case"focusin":(rd(Re)||Re.contentEditable==="true")&&(ll=Re,No=Y,Vl=null);break;case"focusout":Vl=No=ll=null;break;case"mousedown":xo=!0;break;case"contextmenu":case"mouseup":case"dragend":xo=!1,yd(ae,n,W);break;case"selectionchange":if(Ly)break;case"keydown":case"keyup":yd(ae,n,W)}var Ye;if(Eo)e:{switch(e){case"compositionstart":var tt="onCompositionStart";break e;case"compositionend":tt="onCompositionEnd";break e;case"compositionupdate":tt="onCompositionUpdate";break e}tt=void 0}else il?ld(e,n)&&(tt="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(tt="onCompositionStart");tt&&(nd&&n.locale!=="ko"&&(il||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&il&&(Ye=Vf()):(ri=W,mo="value"in ri?ri.value:ri.textContent,il=!0)),Re=Br(Y,tt),0<Re.length&&(tt=new ed(tt,e,null,n,W),ae.push({event:tt,listeners:Re}),Ye?tt.data=Ye:(Ye=sd(n),Ye!==null&&(tt.data=Ye)))),(Ye=Ny?xy(e,n):wy(e,n))&&(tt=Br(Y,"onBeforeInput"),0<tt.length&&(Re=new ed("onBeforeInput","beforeinput",null,n,W),ae.push({event:Re,listeners:tt}),Re.data=Ye)),bv(ae,e,Y,n,W)}Yp(ae,t)})}function Ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Br(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 _v(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Kp(e,t,n,a,o){for(var c=t._reactName,h=[];n!==null&&n!==a;){var E=n,O=E.alternate,Y=E.stateNode;if(E=E.tag,O!==null&&O===a)break;E!==5&&E!==26&&E!==27||Y===null||(O=Y,o?(Y=$l(n,c),Y!=null&&h.unshift(Ss(n,Y,O))):o||(Y=$l(n,c),Y!=null&&h.push(Ss(n,Y,O)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Sv=/\r\n?/g,Tv=/\u0000|\uFFFD/g;function Pp(e){return(typeof e=="string"?e:""+e).replace(Sv,`
|
|
49
|
+
`).replace(Tv,"")}function Zp(e,t){return t=Pp(t),Pp(e)===t}function yt(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||X(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&X(e,""+a);break;case"className":tn(e,"class",a);break;case"tabIndex":tn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":tn(e,n,a);break;case"style":V(e,a,c);break;case"data":if(t!=="object"){tn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xe(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&yt(e,t,"name",o.name,o,null),yt(e,t,"formEncType",o.formEncType,o,null),yt(e,t,"formMethod",o.formMethod,o,null),yt(e,t,"formTarget",o.formTarget,o,null)):(yt(e,t,"encType",o.encType,o,null),yt(e,t,"method",o.method,o,null),yt(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xe(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=se);break;case"onScroll":a!=null&&Ve("scroll",e);break;case"onScrollEnd":a!=null&&Ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Xe(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ve("beforetoggle",e),Ve("toggle",e),qt(e,"popover",a);break;case"xlinkActuate":Bt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Bt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Bt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Bt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Bt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Bt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":qt(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ne.get(n)||n,qt(e,n,a))}}function Qc(e,t,n,a,o,c){switch(n){case"style":V(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"children":typeof a=="string"?X(e,a):(typeof a=="number"||typeof a=="bigint")&&X(e,""+a);break;case"onScroll":a!=null&&Ve("scroll",e);break;case"onScrollEnd":a!=null&&Ve("scrollend",e);break;case"onClick":a!=null&&(e.onclick=se);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!An.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[en]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):qt(e,n,a)}}}function pn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",e),Ve("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var 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:yt(e,t,c,h,n,null)}}o&&yt(e,t,"srcSet",n.srcSet,n,null),a&&yt(e,t,"src",n.src,n,null);return;case"input":Ve("invalid",e);var E=c=h=o=null,O=null,Y=null;for(a in n)if(n.hasOwnProperty(a)){var W=n[a];if(W!=null)switch(a){case"name":o=W;break;case"type":h=W;break;case"checked":O=W;break;case"defaultChecked":Y=W;break;case"value":c=W;break;case"defaultValue":E=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(l(137,t));break;default:yt(e,t,a,W,n,null)}}Da(e,c,E,O,Y,h,o,!1);return;case"select":Ve("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:yt(e,t,o,E,n,null)}t=c,n=h,e.multiple=!!a,t!=null?Gt(e,!!a,t,!1):n!=null&&Gt(e,!!a,n,!0);return;case"textarea":Ve("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:yt(e,t,h,E,n,null)}Sa(e,a,o,c);return;case"option":for(O in n)if(n.hasOwnProperty(O)&&(a=n[O],a!=null))switch(O){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:yt(e,t,O,a,n,null)}return;case"dialog":Ve("beforetoggle",e),Ve("toggle",e),Ve("cancel",e),Ve("close",e);break;case"iframe":case"object":Ve("load",e);break;case"video":case"audio":for(a=0;a<_s.length;a++)Ve(_s[a],e);break;case"image":Ve("error",e),Ve("load",e);break;case"details":Ve("toggle",e);break;case"embed":case"source":case"link":Ve("error",e),Ve("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Y in n)if(n.hasOwnProperty(Y)&&(a=n[Y],a!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:yt(e,t,Y,a,n,null)}return;default:if(_e(t)){for(W in n)n.hasOwnProperty(W)&&(a=n[W],a!==void 0&&Qc(e,t,W,a,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(a=n[E],a!=null&&yt(e,t,E,a,n,null))}function Nv(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,O=null,Y=null,W=null;for(Z in n){var ae=n[Z];if(n.hasOwnProperty(Z)&&ae!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":O=ae;default:a.hasOwnProperty(Z)||yt(e,t,Z,null,a,ae)}}for(var F in a){var Z=a[F];if(ae=n[F],a.hasOwnProperty(F)&&(Z!=null||ae!=null))switch(F){case"type":c=Z;break;case"name":o=Z;break;case"checked":Y=Z;break;case"defaultChecked":W=Z;break;case"value":h=Z;break;case"defaultValue":E=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(l(137,t));break;default:Z!==ae&&yt(e,t,F,Z,a,ae)}}li(e,h,E,O,Y,W,c,o);return;case"select":Z=h=E=F=null;for(c in n)if(O=n[c],n.hasOwnProperty(c)&&O!=null)switch(c){case"value":break;case"multiple":Z=O;default:a.hasOwnProperty(c)||yt(e,t,c,null,a,O)}for(o in a)if(c=a[o],O=n[o],a.hasOwnProperty(o)&&(c!=null||O!=null))switch(o){case"value":F=c;break;case"defaultValue":E=c;break;case"multiple":h=c;default:c!==O&&yt(e,t,o,c,a,O)}t=E,n=h,a=Z,F!=null?Gt(e,!!n,F,!1):!!a!=!!n&&(t!=null?Gt(e,!!n,t,!0):Gt(e,!!n,n?[]:"",!1));return;case"textarea":Z=F=null;for(E in n)if(o=n[E],n.hasOwnProperty(E)&&o!=null&&!a.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:yt(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":F=o;break;case"defaultValue":Z=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&yt(e,t,h,o,a,c)}La(e,F,Z);return;case"option":for(var Te in n)if(F=n[Te],n.hasOwnProperty(Te)&&F!=null&&!a.hasOwnProperty(Te))switch(Te){case"selected":e.selected=!1;break;default:yt(e,t,Te,null,a,F)}for(O in a)if(F=a[O],Z=n[O],a.hasOwnProperty(O)&&F!==Z&&(F!=null||Z!=null))switch(O){case"selected":e.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:yt(e,t,O,F,a,Z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ue in n)F=n[Ue],n.hasOwnProperty(Ue)&&F!=null&&!a.hasOwnProperty(Ue)&&yt(e,t,Ue,null,a,F);for(Y in a)if(F=a[Y],Z=n[Y],a.hasOwnProperty(Y)&&F!==Z&&(F!=null||Z!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(l(137,t));break;default:yt(e,t,Y,F,a,Z)}return;default:if(_e(t)){for(var vt in n)F=n[vt],n.hasOwnProperty(vt)&&F!==void 0&&!a.hasOwnProperty(vt)&&Qc(e,t,vt,void 0,a,F);for(W in a)F=a[W],Z=n[W],!a.hasOwnProperty(W)||F===Z||F===void 0&&Z===void 0||Qc(e,t,W,F,a,Z);return}}for(var j in n)F=n[j],n.hasOwnProperty(j)&&F!=null&&!a.hasOwnProperty(j)&&yt(e,t,j,null,a,F);for(ae in a)F=a[ae],Z=n[ae],!a.hasOwnProperty(ae)||F===Z||F==null&&Z==null||yt(e,t,ae,F,a,Z)}function Xp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xv(){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&&Xp(h)){for(h=0,E=o.responseEnd,a+=1;a<n.length;a++){var O=n[a],Y=O.startTime;if(Y>E)break;var W=O.transferSize,ae=O.initiatorType;W&&Xp(ae)&&(O=O.responseEnd,h+=W*(O<E?1:(E-Y)/(O-Y)))}if(--a,t+=8*(c+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Vc=null,Jc=null;function jr(e){return e.nodeType===9?e:e.ownerDocument}function Qp(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 Vp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Wc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var eu=null;function wv(){var e=window.event;return e&&e.type==="popstate"?e===eu?!1:(eu=e,!0):(eu=null,!1)}var Jp=typeof setTimeout=="function"?setTimeout:void 0,Av=typeof clearTimeout=="function"?clearTimeout:void 0,Wp=typeof Promise=="function"?Promise:void 0,Rv=typeof queueMicrotask=="function"?queueMicrotask:typeof Wp<"u"?function(e){return Wp.resolve(null).then(e).catch(Ov)}:Jp;function Ov(e){setTimeout(function(){throw e})}function Ni(e){return e==="head"}function em(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Cl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ts(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ts(n);for(var c=n.firstChild;c;){var h=c.nextSibling,E=c.nodeName;c[va]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&Ts(e.ownerDocument.body);n=o}while(n);Cl(t)}function tm(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function tu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":tu(n),ni(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function kv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[va])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ra(e.nextSibling),e===null)break}return null}function Mv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ra(e.nextSibling),e===null))return null;return e}function nm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ra(e.nextSibling),e===null))return null;return e}function nu(e){return e.data==="$?"||e.data==="$~"}function au(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Cv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function ra(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var iu=null;function am(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ra(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function im(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 lm(e,t,n){switch(t=jr(n),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Ts(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ni(e)}var oa=new Map,sm=new Set;function Ir(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qa=ne.d;ne.d={f:Dv,r:Lv,D:zv,C:Uv,L:Bv,m:jv,X:Hv,S:Iv,M:qv};function Dv(){var e=Qa.f(),t=kr();return e||t}function Lv(e){var t=ua(e);t!==null&&t.tag===5&&t.type==="form"?Th(t):Qa.r(e)}var Ol=typeof document>"u"?null:document;function rm(e,t,n){var a=Ol;if(a&&typeof t=="string"&&t){var o=En(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),sm.has(o)||(sm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),pn(t,"link",e),dt(t),a.head.appendChild(t)))}}function zv(e){Qa.D(e),rm("dns-prefetch",e,null)}function Uv(e,t){Qa.C(e,t),rm("preconnect",e,t)}function Bv(e,t,n){Qa.L(e,t,n);var a=Ol;if(a&&e&&t){var o='link[rel="preload"][as="'+En(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+En(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+En(n.imageSizes)+'"]')):o+='[href="'+En(e)+'"]';var c=o;switch(t){case"style":c=kl(e);break;case"script":c=Ml(e)}oa.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),oa.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Ns(c))||t==="script"&&a.querySelector(xs(c))||(t=a.createElement("link"),pn(t,"link",e),dt(t),a.head.appendChild(t)))}}function jv(e,t){Qa.m(e,t);var n=Ol;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+En(a)+'"][href="'+En(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ml(e)}if(!oa.has(c)&&(e=v({rel:"modulepreload",href:e},t),oa.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(xs(c)))return}a=n.createElement("link"),pn(a,"link",e),dt(a),n.head.appendChild(a)}}}function Iv(e,t,n){Qa.S(e,t,n);var a=Ol;if(a&&e){var o=_a(a).hoistableStyles,c=kl(e);t=t||"default";var h=o.get(c);if(!h){var E={loading:0,preload:null};if(h=a.querySelector(Ns(c)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=oa.get(c))&&lu(e,n);var O=h=a.createElement("link");dt(O),pn(O,"link",e),O._p=new Promise(function(Y,W){O.onload=Y,O.onerror=W}),O.addEventListener("load",function(){E.loading|=1}),O.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Hr(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:E},o.set(c,h)}}}function Hv(e,t){Qa.X(e,t);var n=Ol;if(n&&e){var a=_a(n).hoistableScripts,o=Ml(e),c=a.get(o);c||(c=n.querySelector(xs(o)),c||(e=v({src:e,async:!0},t),(t=oa.get(o))&&su(e,t),c=n.createElement("script"),dt(c),pn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function qv(e,t){Qa.M(e,t);var n=Ol;if(n&&e){var a=_a(n).hoistableScripts,o=Ml(e),c=a.get(o);c||(c=n.querySelector(xs(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=oa.get(o))&&su(e,t),c=n.createElement("script"),dt(c),pn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function om(e,t,n,a){var o=(o=xe.current)?Ir(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=kl(n.href),n=_a(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=kl(n.href);var c=_a(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(Ns(e)))&&!c._p&&(h.instance=c,h.state.loading=5),oa.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},oa.set(e,n),c||Gv(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="'+En(e)+'"'}function Ns(e){return'link[rel="stylesheet"]['+e+"]"}function cm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Gv(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}),pn(t,"link",n),dt(t),e.head.appendChild(t))}function Ml(e){return'[src="'+En(e)+'"]'}function xs(e){return"script[async]"+e}function um(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+En(n.href)+'"]');if(a)return t.instance=a,dt(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"),dt(a),pn(a,"style",o),Hr(a,n.precedence,e),t.instance=a;case"stylesheet":o=kl(n.href);var c=e.querySelector(Ns(o));if(c)return t.state.loading|=4,t.instance=c,dt(c),c;a=cm(n),(o=oa.get(o))&&lu(a,o),c=(e.ownerDocument||e).createElement("link"),dt(c);var h=c;return h._p=new Promise(function(E,O){h.onload=E,h.onerror=O}),pn(c,"link",a),t.state.loading|=4,Hr(c,n.precedence,e),t.instance=c;case"script":return c=Ml(n.src),(o=e.querySelector(xs(c)))?(t.instance=o,dt(o),o):(a=n,(o=oa.get(c))&&(a=v({},n),su(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),dt(o),pn(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,Hr(a,n.precedence,e));return t.instance}function Hr(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 lu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function su(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var qr=null;function fm(e,t,n){if(qr===null){var a=new Map,o=qr=new Map;o.set(n,a)}else o=qr,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 dm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function $v(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 hm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Yv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=kl(a.href),c=t.querySelector(Ns(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Gr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,dt(c);return}c=t.ownerDocument||t,a=cm(a),(o=oa.get(o))&&lu(a,o),c=c.createElement("link"),dt(c);var h=c;h._p=new Promise(function(E,O){h.onload=E,h.onerror=O}),pn(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=Gr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var ru=0;function Fv(e,t){return e.stylesheets&&e.count===0&&Yr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Yr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&ru===0&&(ru=62500*xv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Yr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>ru?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Gr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $r=null;function Yr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$r=new Map,t.forEach(Kv,e),$r=null,Gr.call(e))}function Kv(e,t){if(!(t.state.loading&4)){var n=$r.get(e);if(n)var a=n.get(null);else{n=new Map,$r.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=Gr.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var ws={$$typeof:L,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Pv(e,t,n,a,o,c,h,E,O){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=de(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=de(0),this.hiddenUpdates=de(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function pm(e,t,n,a,o,c,h,E,O,Y,W,ae){return e=new Pv(e,t,n,h,O,Y,W,ae,E),t=1,c===!0&&(t|=24),c=Yn(3,null,null,t),e.current=c,c.stateNode=e,t=Ho(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},Yo(c),e}function mm(e){return e?(e=ol,e):ol}function gm(e,t,n,a,o,c){o=mm(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&&(Hn(n,e,t),is(n,e,t))}function bm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ou(e,t){bm(e,t),(e=e.alternate)&&bm(e,t)}function ym(e){if(e.tag===13||e.tag===31){var t=Bi(e,67108864);t!==null&&Hn(t,e,67108864),ou(e,67108864)}}function vm(e){if(e.tag===13||e.tag===31){var t=Xn();t=gt(t);var n=Bi(e,t);n!==null&&Hn(n,e,t),ou(e,t)}}var Fr=!0;function Zv(e,t,n,a){var o=I.T;I.T=null;var c=ne.p;try{ne.p=2,cu(e,t,n,a)}finally{ne.p=c,I.T=o}}function Xv(e,t,n,a){var o=I.T;I.T=null;var c=ne.p;try{ne.p=8,cu(e,t,n,a)}finally{ne.p=c,I.T=o}}function cu(e,t,n,a){if(Fr){var o=uu(a);if(o===null)Xc(e,t,a,Kr,n),_m(e,a);else if(Vv(o,e,t,n,a))a.stopPropagation();else if(_m(e,a),t&4&&-1<Qv.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=Ct(c.pendingLanes);if(h!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;h;){var O=1<<31-Nt(h);E.entanglements[1]|=O,h&=~O}wa(c),(ut&6)===0&&(Rr=Ke()+500,Es(0))}}break;case 31:case 13:E=Bi(c,2),E!==null&&Hn(E,c,2),kr(),ou(c,2)}if(c=uu(a),c===null&&Xc(e,t,a,Kr,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else Xc(e,t,a,null,n)}}function uu(e){return e=Ce(e),fu(e)}var Kr=null;function fu(e){if(Kr=null,e=un(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=g(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Kr=e,null}function Em(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(Ut()){case mt:return 2;case bn:return 8;case yn:case kn:return 32;case Mn:return 268435456;default:return 32}default:return 32}}var du=!1,xi=null,wi=null,Ai=null,As=new Map,Rs=new Map,Ri=[],Qv="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 _m(e,t){switch(e){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":wi=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&&ym(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Vv(e,t,n,a,o){switch(t){case"focusin":return xi=Os(xi,e,t,n,a,o),!0;case"dragenter":return wi=Os(wi,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 Sm(e){var t=un(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=g(n),t!==null){e.blockedOn=t,ei(e.priority,function(){vm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,ei(e.priority,function(){vm(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 Pr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=uu(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);ge=a,n.target.dispatchEvent(a),ge=null}else return t=ua(n),t!==null&&ym(t),e.blockedOn=n,!1;t.shift()}return!0}function Tm(e,t,n){Pr(e)&&n.delete(t)}function Jv(){du=!1,xi!==null&&Pr(xi)&&(xi=null),wi!==null&&Pr(wi)&&(wi=null),Ai!==null&&Pr(Ai)&&(Ai=null),As.forEach(Tm),Rs.forEach(Tm)}function Zr(e,t){e.blockedOn===t&&(e.blockedOn=null,du||(du=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Jv)))}var Xr=null;function Nm(e){Xr!==e&&(Xr=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Xr===e&&(Xr=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(fu(a||n)===null)continue;break}var c=ua(n);c!==null&&(e.splice(t,3),t-=3,uc(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Cl(e){function t(O){return Zr(O,e)}xi!==null&&Zr(xi,e),wi!==null&&Zr(wi,e),Ai!==null&&Zr(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);)Sm(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[en]||null;if(typeof c=="function")h||Nm(n);else if(h){var E=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[en]||null)E=h.formAction;else if(fu(o)!==null)continue}else E=h.action;typeof E=="function"?n[a+1]=E:(n.splice(a,3),a-=3),Nm(n)}}}function xm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function hu(e){this._internalRoot=e}Qr.prototype.render=hu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,a=Xn();gm(n,a,e,t,null,null)},Qr.prototype.unmount=hu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gm(e.current,2,null,e,null,null),kr(),t[lt]=null}};function Qr(e){this._internalRoot=e}Qr.prototype.unstable_scheduleHydration=function(e){if(e){var t=ya();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&&Sm(e)}};var wm=i.version;if(wm!=="19.2.8")throw Error(l(527,wm,"19.2.8"));ne.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Wv={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vr.isDisabled&&Vr.supportsFiber)try{on=Vr.inject(Wv),St=Vr}catch{}}return Ms.createRoot=function(e,t){if(!u(e))throw Error(l(299));var n=!1,a="",o=Dh,c=Lh,h=zh;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=pm(e,1,!1,null,null,n,a,null,o,c,h,xm),e[lt]=t.current,Zc(e),new hu(t)},Ms.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var a=!1,o="",c=Dh,h=Lh,E=zh,O=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&&(O=n.formState)),t=pm(e,1,!0,t,n??null,a,o,O,c,h,E,xm),t.context=mm(null),n=t.current,a=Xn(),a=gt(a),o=hi(a),o.callback=null,pi(n,o,a),n=a,t.current.lanes=n,Le(t,n),wa(t),e[lt]=t.current,Zc(e),new Qr(t)},Ms.version="19.2.8",Ms}var Um;function fE(){if(Um)return gu.exports;Um=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),gu.exports=uE(),gu.exports}var dE=fE(),Pt;(function(s){s.INSERT="insert",s.DELETE="delete",s.CONTEXT="context"})(Pt||(Pt={}));const hE={LINE_BY_LINE:"line-by-line"},pE={NONE:"none"},mE={WORD:"word"};var jl;(function(s){s.AUTO="auto",s.DARK="dark",s.LIGHT="light"})(jl||(jl={}));const gE=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],bE=RegExp("["+gE.join("\\")+"]","g");function yE(s){return s.replace(bE,"\\$&")}function Bm(s){return s&&s.replace(/\\/g,"/")}function vE(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 vb(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 jm(s,i){const r=s.split(".");return r.length>1?r[r.length-1]:i}function Im(s,i){return i.reduce((r,l)=>r||s.startsWith(l),!1)}const Hm=["a/","b/","i/","w/","c/","o/"];function Ci(s,i,r){const l=r!==void 0?[...Hm,r]:Hm,u=i?new RegExp(`^${yE(i)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,d=""]=u.exec(s)||[],g=l.find(m=>d.indexOf(m)===0);return(g?d.slice(g.length):d).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function EE(s,i){return Ci(s,"---",i)}function _E(s,i){return Ci(s,"+++",i)}function SE(s,i={}){const r=[];let l=null,u=null,d=null,g=null,y=null,m=null,p=null;const b="--- ",v="+++ ",_="@@",x=/^old mode (\d{6})/,N=/^new mode (\d{6})/,A=/^deleted file mode (\d{6})/,w=/^new file mode (\d{6})/,U=/^copy from "?(.+)"?/,G=/^copy to "?(.+)"?/,L=/^rename from "?(.+)"?/,re=/^rename to "?(.+)"?/,H=/^similarity index (\d+)%/,P=/^dissimilarity index (\d+)%/,le=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,k=/^Binary files (.*) and (.*) differ/,z=/^GIT binary patch/,Q=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,K=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,fe=/^new file mode (\d{6})/,we=/^deleted file mode (\d{6}),(\d{6})/,Ae=s.replace(/\/g,"").replace(/\r\n?/g,`
|
|
50
|
+
`).split(`
|
|
51
|
+
`);function he(){u!==null&&l!==null&&(l.blocks.push(u),u=null)}function I(){l!==null&&(!l.oldName&&m!==null&&(l.oldName=m),!l.newName&&p!==null&&(l.newName=p),l.newName&&(r.push(l),l=null)),m=null,p=null}function ne(){he(),I(),l={blocks:[],deletedLines:0,addedLines:0}}function oe(S){he();let D;l!==null&&((D=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(S))?(l.isCombined=!1,d=parseInt(D[1],10),y=parseInt(D[2],10)):(D=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(S))?(l.isCombined=!0,d=parseInt(D[1],10),g=parseInt(D[2],10),y=parseInt(D[3],10)):(S.startsWith(_)&&console.error("Failed to parse lines, starting in 0!"),d=0,y=0,l.isCombined=!1)),u={lines:[],oldStartLine:d,oldStartLine2:g,newStartLine:y,header:S}}function ve(S){if(l===null||u===null||d===null||y===null)return;const D={content:S},q=l.isCombined?["+ "," +","++"]:["+"],ue=l.isCombined?["- "," -","--"]:["-"];Im(S,q)?(l.addedLines++,D.type=Pt.INSERT,D.oldNumber=void 0,D.newNumber=y++):Im(S,ue)?(l.deletedLines++,D.type=Pt.DELETE,D.oldNumber=d++,D.newNumber=void 0):(D.type=Pt.CONTEXT,D.oldNumber=d++,D.newNumber=y++),u.lines.push(D)}function Se(S,D){let q=D;for(;q<Ae.length-3;){if(S.startsWith("diff"))return!1;if(Ae[q].startsWith(b)&&Ae[q+1].startsWith(v)&&Ae[q+2].startsWith(_))return!0;q++}return!1}return Ae.forEach((S,D)=>{if(!S||S.startsWith("*"))return;let q;const ue=Ae[D-1],pe=Ae[D+1],xe=Ae[D+2];if(S.startsWith("diff --git")||S.startsWith("diff --combined")){if(ne(),(q=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(S))&&(m=Ci(q[1],void 0,i.dstPrefix),p=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(ne(),(q=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(S))&&(m=Ci(q[1],void 0,i.dstPrefix),p=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)&&pe.startsWith(v)&&xe.startsWith(_))&&ne(),l!=null&&l.isTooBig)return;if(l&&(typeof i.diffMaxChanges=="number"&&l.addedLines+l.deletedLines>i.diffMaxChanges||typeof i.diffMaxLineLength=="number"&&S.length>i.diffMaxLineLength)){l.isTooBig=!0,l.addedLines=0,l.deletedLines=0,l.blocks=[],u=null;const Oe=typeof i.diffTooBigMessage=="function"?i.diffTooBigMessage(r.length):"Diff too big to be displayed";oe(Oe);return}if(S.startsWith(b)&&pe.startsWith(v)||S.startsWith(v)&&ue.startsWith(b)){if(l&&!l.oldName&&S.startsWith("--- ")&&(q=EE(S,i.srcPrefix))){l.oldName=q,l.language=jm(l.oldName,l.language);return}if(l&&!l.newName&&S.startsWith("+++ ")&&(q=_E(S,i.dstPrefix))){l.newName=q,l.language=jm(l.newName,l.language);return}}if(l&&(S.startsWith(_)||l.isGitDiff&&l.oldName&&l.newName&&!u)){oe(S);return}if(u&&(S.startsWith("+")||S.startsWith("-")||S.startsWith(" "))){ve(S);return}const me=!Se(S,D);if(l===null)throw new Error("Where is my file !!!");(q=x.exec(S))?l.oldMode=q[1]:(q=N.exec(S))?l.newMode=q[1]:(q=A.exec(S))?(l.deletedFileMode=q[1],l.isDeleted=!0):(q=w.exec(S))?(l.newFileMode=q[1],l.isNew=!0):(q=U.exec(S))?(me&&(l.oldName=q[1]),l.isCopy=!0):(q=G.exec(S))?(me&&(l.newName=q[1]),l.isCopy=!0):(q=L.exec(S))?(me&&(l.oldName=q[1]),l.isRename=!0):(q=re.exec(S))?(me&&(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),oe("Binary file")):z.test(S)?(l.isBinary=!0,oe(S)):(q=H.exec(S))?l.unchangedPercentage=parseInt(q[1],10):(q=P.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=Q.exec(S))?(l.checksumBefore=[q[2],q[3]],l.checksumAfter=q[1]):(q=K.exec(S))?(l.oldMode=[q[2],q[3]],l.newMode=q[1]):(q=fe.exec(S))?(l.newFileMode=q[1],l.isNew=!0):(q=we.exec(S))&&(l.deletedFileMode=q[1],l.isDeleted=!0)}),he(),I(),r}class Eb{diff(i,r,l={}){let u;typeof l=="function"?(u=l,l={}):"callback"in l&&(u=l.callback);const d=this.castInput(i,l),g=this.castInput(r,l),y=this.removeEmpty(this.tokenize(d,l)),m=this.removeEmpty(this.tokenize(g,l));return this.diffWithOptionsObj(y,m,l,u)}diffWithOptionsObj(i,r,l,u){var d;const g=G=>{if(G=this.postProcess(G,l),u){setTimeout(function(){u(G)},0);return}else return G},y=r.length,m=i.length;let p=1,b=y+m;l.maxEditLength!=null&&(b=Math.min(b,l.maxEditLength));const v=(d=l.timeout)!==null&&d!==void 0?d:1/0,_=Date.now()+v,x=[{oldPos:-1,lastComponent:void 0}];let N=this.extractCommon(x[0],r,i,0,l);if(x[0].oldPos+1>=m&&N+1>=y)return g(this.buildValues(x[0].lastComponent,r,i));let A=-1/0,w=1/0;const U=()=>{for(let G=Math.max(A,-p);G<=Math.min(w,p);G+=2){let L;const re=x[G-1],H=x[G+1];re&&(x[G-1]=void 0);let P=!1;if(H){const k=H.oldPos-G;P=H&&0<=k&&k<y}const le=re&&re.oldPos+1<m;if(!P&&!le){x[G]=void 0;continue}if(!le||P&&re.oldPos<H.oldPos?L=this.addToPath(H,!0,!1,0,l):L=this.addToPath(re,!1,!0,1,l),N=this.extractCommon(L,r,i,G,l),L.oldPos+1>=m&&N+1>=y)return g(this.buildValues(L.lastComponent,r,i))||!0;x[G]=L,L.oldPos+1>=m&&(w=Math.min(w,G-1)),N+1>=y&&(A=Math.max(A,G+1))}p++};if(u)(function G(){setTimeout(function(){if(p>b||Date.now()>_)return u(void 0);U()||G()},0)})();else for(;p<=b&&Date.now()<=_;){const G=U();if(G)return G}}addToPath(i,r,l,u,d){const g=i.lastComponent;return g&&!d.oneChangePerToken&&g.added===r&&g.removed===l?{oldPos:i.oldPos+u,lastComponent:{count:g.count+1,added:r,removed:l,previousComponent:g.previousComponent}}:{oldPos:i.oldPos+u,lastComponent:{count:1,added:r,removed:l,previousComponent:g}}}extractCommon(i,r,l,u,d){const g=r.length,y=l.length;let m=i.oldPos,p=m-u,b=0;for(;p+1<g&&m+1<y&&this.equals(l[m+1],r[p+1],d);)p++,m++,b++,d.oneChangePerToken&&(i.lastComponent={count:1,previousComponent:i.lastComponent,added:!1,removed:!1});return b&&!d.oneChangePerToken&&(i.lastComponent={count:b,previousComponent:i.lastComponent,added:!1,removed:!1}),i.oldPos=m,p}equals(i,r,l){return l.comparator?l.comparator(i,r):i===r||!!l.ignoreCase&&i.toLowerCase()===r.toLowerCase()}removeEmpty(i){const r=[];for(let l=0;l<i.length;l++)i[l]&&r.push(i[l]);return r}castInput(i,r){return i}tokenize(i,r){return Array.from(i)}join(i){return i.join("")}postProcess(i,r){return i}get useLongestToken(){return!1}buildValues(i,r,l){const u=[];let d;for(;i;)u.push(i),d=i.previousComponent,delete i.previousComponent,i=d;u.reverse();const g=u.length;let y=0,m=0,p=0;for(;y<g;y++){const b=u[y];if(b.removed)b.value=this.join(l.slice(p,p+b.count)),p+=b.count;else{if(!b.added&&this.useLongestToken){let v=r.slice(m,m+b.count);v=v.map(function(_,x){const N=l[p+x];return N.length>_.length?N:_}),b.value=this.join(v)}else b.value=this.join(r.slice(m,m+b.count));m+=b.count,b.added||(p+=b.count)}}return u}}class TE extends Eb{}const NE=new TE;function xE(s,i,r){return NE.diff(s,i,r)}const qm="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 wE extends Eb{tokenize(i){const r=new RegExp(`(\\r?\\n)|[${qm}]+|[^\\S\\n\\r]+|[^${qm}]`,"ug");return i.match(r)||[]}}const AE=new wE;function RE(s,i,r){return AE.diff(s,i,r)}function OE(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 Df(s){return(i,r)=>{const l=s(i).trim(),u=s(r).trim();return OE(l,u)/(l.length+u.length)}}function Lf(s){function i(l,u,d=new Map){let g=1/0,y;for(let m=0;m<l.length;++m)for(let p=0;p<u.length;++p){const b=JSON.stringify([l[m],u[p]]);let v;d.has(b)&&(v=d.get(b))||(v=s(l[m],u[p]),d.set(b,v)),v<g&&(g=v,y={indexA:m,indexB:p,score:g})}return y}function r(l,u,d=0,g=new Map){const y=i(l,u,g);if(!y||l.length+u.length<3)return[[l,u]];const m=l.slice(0,y.indexA),p=u.slice(0,y.indexB),b=[l[y.indexA]],v=[u[y.indexB]],_=y.indexA+1,x=y.indexB+1,N=l.slice(_),A=u.slice(x),w=r(m,p,d+1,g),U=r(b,v,d+1,g),G=r(N,A,d+1,g);let L=U;return(y.indexA>0||y.indexB>0)&&(L=w.concat(L)),(l.length>_||u.length>x)&&(L=L.concat(G)),L}return r}const On={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},co={matching:pE.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:mE.WORD,colorScheme:jl.LIGHT},Aa="/",_b=Df(s=>s.value),kE=Lf(_b);function Eu(s){return s.indexOf("dev/null")!==-1}function ME(s){return s.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function CE(s){return s.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function io(s){switch(s){case Pt.CONTEXT:return On.CONTEXT;case Pt.INSERT:return On.INSERTS;case Pt.DELETE:return On.DELETES}}function zf(s){switch(s){case jl.DARK:return"d2h-dark-color-scheme";case jl.AUTO:return"d2h-auto-color-scheme";case jl.LIGHT:default:return"d2h-light-color-scheme"}}function DE(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=DE(i);return{prefix:s.substring(0,l),content:r?Il(s.substring(l)):s.substring(l)}}function uo(s){const i=Bm(s.oldName),r=Bm(s.newName);if(i!==r&&!Eu(i)&&!Eu(r)){const l=[],u=[],d=i.split(Aa),g=r.split(Aa),y=d.length,m=g.length;let p=0,b=y-1,v=m-1;for(;p<b&&p<v&&d[p]===g[p];)l.push(g[p]),p+=1;for(;b>p&&v>p&&d[b]===g[v];)u.unshift(g[v]),b-=1,v-=1;const _=l.join(Aa),x=u.join(Aa),N=d.slice(p,b+1).join(Aa),A=g.slice(p,v+1).join(Aa);return _.length&&x.length?_+Aa+"{"+N+" → "+A+"}"+Aa+x:_.length?_+Aa+"{"+N+" → "+A+"}":x.length?"{"+N+" → "+A+"}"+Aa+x:i+" → "+r}else return Eu(r)?i:r}function Uf(s){return`d2h-${vE(uo(s)).toString().slice(-6)}`}function Bf(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 Sb(s,i,r,l={}){const{matching:u,maxLineLengthHighlight:d,matchWordsThreshold:g,diffStyle:y}=Object.assign(Object.assign({},co),l),m=Oa(s,r,!1),p=Oa(i,r,!1);if(m.content.length>d||p.content.length>d)return{oldLine:{prefix:m.prefix,content:Il(m.content)},newLine:{prefix:p.prefix,content:Il(p.content)}};const b=y==="char"?xE(m.content,p.content):RE(m.content,p.content),v=[];if(y==="word"&&u==="words"){const x=b.filter(w=>w.removed),N=b.filter(w=>w.added);kE(N,x).forEach(w=>{w[0].length===1&&w[1].length===1&&_b(w[0][0],w[1][0])<g&&(v.push(w[0][0]),v.push(w[1][0]))})}const _=b.reduce((x,N)=>{const A=N.added?"ins":N.removed?"del":null,w=v.indexOf(N)>-1?' class="d2h-change"':"",U=Il(N.value);return A!==null?`${x}<${A}${w}>${U}</${A}>`:`${x}${U}`},"");return{oldLine:{prefix:m.prefix,content:ME(_)},newLine:{prefix:p.prefix,content:CE(_)}}}const Gm="file-summary",LE="icon",zE={colorScheme:co.colorScheme};class UE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},zE),r)}render(i){const r=i.map(l=>this.hoganUtils.render(Gm,"line",{fileHtmlId:Uf(l),oldName:l.oldName,newName:l.newName,fileName:uo(l),deletedLines:"-"+l.deletedLines,addedLines:"+"+l.addedLines},{fileIcon:this.hoganUtils.template(LE,Bf(l))})).join(`
|
|
52
|
+
`);return this.hoganUtils.render(Gm,"wrapper",{colorScheme:zf(this.config.colorScheme),filesNumber:i.length,files:r})}}const Tb=Object.assign(Object.assign({},co),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Cs="generic",$m="line-by-line",BE="icon",jE="tag";class IE{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},Tb),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:zf(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($m,"file-diff"),u=this.hoganUtils.template(Cs,"file-path"),d=this.hoganUtils.template(BE,"file"),g=this.hoganUtils.template(jE,Bf(i));return l.render({file:i,fileHtmlId:Uf(i),diffs:r,filePath:u.render({fileDiffName:uo(i)},{fileIcon:d,fileTag:g})})}generateEmptyDiff(){return this.hoganUtils.render(Cs,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:On})}generateFileHtml(i){const r=Lf(Df(l=>Oa(l.content,i.isCombined).content));return i.blocks.map(l=>{let u=this.hoganUtils.render(Cs,"block-header",{CSSLineClass:On,blockHeader:i.isTooBig?l.header:Il(l.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(l).forEach(([d,g,y])=>{if(g.length&&y.length&&!d.length)this.applyRematchMatching(g,y,r).map(([m,p])=>{const{left:b,right:v}=this.processChangedLines(i,i.isCombined,m,p);u+=b,u+=v});else if(d.length)d.forEach(m=>{const{prefix:p,content:b}=Oa(m.content,i.isCombined);u+=this.generateSingleLineHtml(i,{type:On.CONTEXT,prefix:p,content:b,oldNumber:m.oldNumber,newNumber:m.newNumber})});else if(g.length||y.length){const{left:m,right:p}=this.processChangedLines(i,i.isCombined,g,y);u+=m,u+=p}else console.error("Unknown state reached while processing groups of lines",d,g,y)}),u}).join(`
|
|
54
|
+
`)}applyLineGroupping(i){const r=[];let l=[],u=[];for(let d=0;d<i.lines.length;d++){const g=i.lines[d];(g.type!==Pt.INSERT&&u.length||g.type===Pt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),g.type===Pt.CONTEXT?r.push([[g],[],[]]):g.type===Pt.INSERT&&l.length===0?r.push([[],[],[g]]):g.type===Pt.INSERT&&l.length>0?u.push(g):g.type===Pt.DELETE&&l.push(g)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(i,r,l){const u=i.length*r.length,d=vb(i.concat(r).map(y=>y.content.length));return u<this.config.matchingMaxComparisons&&d<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?l(i,r):[[i,r]]}processChangedLines(i,r,l,u){const d={right:"",left:""},g=Math.max(l.length,u.length);for(let y=0;y<g;y++){const m=l[y],p=u[y],b=m!==void 0&&p!==void 0?Sb(m.content,p.content,r,this.config):void 0,v=m!==void 0&&m.oldNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.oldLine.prefix,content:b.oldLine.content,type:On.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(m.content,r)),{type:io(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,_=p!==void 0&&p.newNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.newLine.prefix,content:b.newLine.content,type:On.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(p.content,r)),{type:io(p.type)})),{oldNumber:p.oldNumber,newNumber:p.newNumber}):void 0,{left:x,right:N}=this.generateLineHtml(i,v,_);d.left+=x,d.right+=N}return d}generateLineHtml(i,r,l){return{left:this.generateSingleLineHtml(i,r),right:this.generateSingleLineHtml(i,l)}}generateSingleLineHtml(i,r){if(r===void 0)return"";const l=this.hoganUtils.render($m,"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 Nb=Object.assign(Object.assign({},co),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ds="generic",HE="side-by-side",qE="icon",GE="tag";class $E{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},Nb),r)}render(i){const r=i.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
|
|
55
|
+
`);return this.hoganUtils.render(Ds,"wrapper",{colorScheme:zf(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(HE,"file-diff"),u=this.hoganUtils.template(Ds,"file-path"),d=this.hoganUtils.template(qE,"file"),g=this.hoganUtils.template(GE,Bf(i));return l.render({file:i,fileHtmlId:Uf(i),diffs:r,filePath:u.render({fileDiffName:uo(i)},{fileIcon:d,fileTag:g})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Ds,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:On})}}generateFileHtml(i){const r=Lf(Df(l=>Oa(l.content,i.isCombined).content));return i.blocks.map(l=>{const u={left:this.makeHeaderHtml(l.header,i),right:this.makeHeaderHtml("")};return this.applyLineGroupping(l).forEach(([d,g,y])=>{if(g.length&&y.length&&!d.length)this.applyRematchMatching(g,y,r).map(([m,p])=>{const{left:b,right:v}=this.processChangedLines(i.isCombined,m,p);u.left+=b,u.right+=v});else if(d.length)d.forEach(m=>{const{prefix:p,content:b}=Oa(m.content,i.isCombined),{left:v,right:_}=this.generateLineHtml({type:On.CONTEXT,prefix:p,content:b,number:m.oldNumber},{type:On.CONTEXT,prefix:p,content:b,number:m.newNumber});u.left+=v,u.right+=_});else if(g.length||y.length){const{left:m,right:p}=this.processChangedLines(i.isCombined,g,y);u.left+=m,u.right+=p}else console.error("Unknown state reached while processing groups of lines",d,g,y)}),u}).reduce((l,u)=>({left:l.left+u.left,right:l.right+u.right}),{left:"",right:""})}applyLineGroupping(i){const r=[];let l=[],u=[];for(let d=0;d<i.lines.length;d++){const g=i.lines[d];(g.type!==Pt.INSERT&&u.length||g.type===Pt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),g.type===Pt.CONTEXT?r.push([[g],[],[]]):g.type===Pt.INSERT&&l.length===0?r.push([[],[],[g]]):g.type===Pt.INSERT&&l.length>0?u.push(g):g.type===Pt.DELETE&&l.push(g)}return(l.length||u.length)&&(r.push([[],l,u]),l=[],u=[]),r}applyRematchMatching(i,r,l){const u=i.length*r.length,d=vb(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:On,blockHeader:r!=null&&r.isTooBig?i:Il(i),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(i,r,l){const u={right:"",left:""},d=Math.max(r.length,l.length);for(let g=0;g<d;g++){const y=r[g],m=l[g],p=y!==void 0&&m!==void 0?Sb(y.content,m.content,i,this.config):void 0,b=y!==void 0&&y.oldNumber!==void 0?Object.assign(Object.assign({},p!==void 0?{prefix:p.oldLine.prefix,content:p.oldLine.content,type:On.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(y.content,i)),{type:io(y.type)})),{number:y.oldNumber}):void 0,v=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},p!==void 0?{prefix:p.newLine.prefix,content:p.newLine.content,type:On.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(m.content,i)),{type:io(m.type)})),{number:m.newNumber}):void 0,{left:_,right:x}=this.generateLineHtml(b,v);u.left+=_,u.right+=x}return u}generateLineHtml(i,r){return{left:this.generateSingleHtml(i),right:this.generateSingleHtml(r)}}generateSingleHtml(i){const r="d2h-code-side-linenumber",l="d2h-code-side-line";return this.hoganUtils.render(Ds,"line",{type:(i==null?void 0:i.type)||`${On.CONTEXT} d2h-emptyplaceholder`,lineClass:i!==void 0?r:`${r} d2h-code-side-emptyplaceholder`,contentClass:i!==void 0?l:`${l} d2h-code-side-emptyplaceholder`,prefix:(i==null?void 0:i.prefix)===" "?" ":i==null?void 0:i.prefix,content:i==null?void 0:i.content,lineNumber:i==null?void 0:i.number})}}var _u={},Ym;function YE(){return Ym||(Ym=1,(function(s){(function(i){var r=/\S/,l=/\"/g,u=/\n/g,d=/\r/g,g=/\\/g,y=/\u2028/,m=/\u2029/;i.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},i.scan=function(z,Q){var K=z.length,fe=0,we=1,Ae=2,he=fe,I=null,ne=null,oe="",ve=[],Se=!1,S=0,D=0,q="{{",ue="}}";function pe(){oe.length>0&&(ve.push({tag:"_t",text:new String(oe)}),oe="")}function xe(){for(var Ee=!0,He=D;He<ve.length;He++)if(Ee=i.tags[ve[He].tag]<i.tags._v||ve[He].tag=="_t"&&ve[He].text.match(r)===null,!Ee)return!1;return Ee}function me(Ee,He){if(pe(),Ee&&xe())for(var We=D,ke;We<ve.length;We++)ve[We].text&&((ke=ve[We+1])&&ke.tag==">"&&(ke.indent=ve[We].text.toString()),ve.splice(We,1));else He||ve.push({tag:`
|
|
56
|
+
`});Se=!1,D=ve.length}function Oe(Ee,He){var We="="+ue,ke=Ee.indexOf(We,He),At=b(Ee.substring(Ee.indexOf("=",He)+1,ke)).split(" ");return q=At[0],ue=At[At.length-1],ke+We.length-1}for(Q&&(Q=Q.split(" "),q=Q[0],ue=Q[1]),S=0;S<K;S++)he==fe?v(q,z,S)?(--S,pe(),he=we):z.charAt(S)==`
|
|
57
|
+
`?me(Se):oe+=z.charAt(S):he==we?(S+=q.length-1,ne=i.tags[z.charAt(S+1)],I=ne?z.charAt(S+1):"_v",I=="="?(S=Oe(z,S),he=fe):(ne&&S++,he=Ae),Se=S):v(ue,z,S)?(ve.push({tag:I,n:b(oe),otag:q,ctag:ue,i:I=="/"?Se-q.length:S+ue.length}),oe="",S+=ue.length-1,he=fe,I=="{"&&(ue=="}}"?S++:p(ve[ve.length-1]))):oe+=z.charAt(S);return me(Se,!0),ve};function p(k){k.n.substr(k.n.length-1)==="}"&&(k.n=k.n.substring(0,k.n.length-1))}function b(k){return k.trim?k.trim():k.replace(/^\s*|\s*$/g,"")}function v(k,z,Q){if(z.charAt(Q)!=k.charAt(0))return!1;for(var K=1,fe=k.length;K<fe;K++)if(z.charAt(Q+K)!=k.charAt(K))return!1;return!0}var _={_t:!0,"\n":!0,$:!0,"/":!0};function x(k,z,Q,K){var fe=[],we=null,Ae=null,he=null;for(Ae=Q[Q.length-1];k.length>0;){if(he=k.shift(),Ae&&Ae.tag=="<"&&!(he.tag in _))throw new Error("Illegal content in < super tag.");if(i.tags[he.tag]<=i.tags.$||N(he,K))Q.push(he),he.nodes=x(k,he.tag,Q,K);else if(he.tag=="/"){if(Q.length===0)throw new Error("Closing tag without opener: /"+he.n);if(we=Q.pop(),he.n!=we.n&&!A(he.n,we.n,K))throw new Error("Nesting error: "+we.n+" vs. "+he.n);return we.end=he.i,fe}else he.tag==`
|
|
58
|
+
`&&(he.last=k.length==0||k[0].tag==`
|
|
59
|
+
`);fe.push(he)}if(Q.length>0)throw new Error("missing closing tag: "+Q.pop().n);return fe}function N(k,z){for(var Q=0,K=z.length;Q<K;Q++)if(z[Q].o==k.n)return k.tag="#",!0}function A(k,z,Q){for(var K=0,fe=Q.length;K<fe;K++)if(Q[K].c==k&&Q[K].o==z)return!0}function w(k){var z=[];for(var Q in k)z.push('"'+L(Q)+'": function(c,p,t,i) {'+k[Q]+"}");return"{ "+z.join(",")+" }"}function U(k){var z=[];for(var Q in k.partials)z.push('"'+L(Q)+'":{name:"'+L(k.partials[Q].name)+'", '+U(k.partials[Q])+"}");return"partials: {"+z.join(",")+"}, subs: "+w(k.subs)}i.stringify=function(k,z,Q){return"{code: function (c,p,i) { "+i.wrapMain(k.code)+" },"+U(k)+"}"};var G=0;i.generate=function(k,z,Q){G=0;var K={code:"",subs:{},partials:{}};return i.walk(k,K),Q.asString?this.stringify(K,z,Q):this.makeTemplate(K,z,Q)},i.wrapMain=function(k){return'var t=this;t.b(i=i||"");'+k+"return t.fl();"},i.template=i.Template,i.makeTemplate=function(k,z,Q){var K=this.makePartials(k);return K.code=new Function("c","p","i",this.wrapMain(k.code)),new this.template(K,z,this,Q)},i.makePartials=function(k){var z,Q={subs:{},partials:k.partials,name:k.name};for(z in Q.partials)Q.partials[z]=this.makePartials(Q.partials[z]);for(z in k.subs)Q.subs[z]=new Function("c","p","t","i",k.subs[z]);return Q};function L(k){return k.replace(g,"\\\\").replace(l,'\\"').replace(u,"\\n").replace(d,"\\r").replace(y,"\\u2028").replace(m,"\\u2029")}function re(k){return~k.indexOf(".")?"d":"f"}function H(k,z){var Q="<"+(z.prefix||""),K=Q+k.n+G++;return z.partials[K]={name:k.n,partials:{}},z.code+='t.b(t.rp("'+L(K)+'",c,p,"'+(k.indent||"")+'"));',K}i.codegen={"#":function(k,z){z.code+="if(t.s(t."+re(k.n)+'("'+L(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,z),z.code+="});c.pop();}"},"^":function(k,z){z.code+="if(!t.s(t."+re(k.n)+'("'+L(k.n)+'",c,p,1),c,p,1,0,0,"")){',i.walk(k.nodes,z),z.code+="};"},">":H,"<":function(k,z){var Q={partials:{},code:"",subs:{},inPartial:!0};i.walk(k.nodes,Q);var K=z.partials[H(k,z)];K.subs=Q.subs,K.partials=Q.partials},$:function(k,z){var Q={subs:{},code:"",partials:z.partials,prefix:k.n};i.walk(k.nodes,Q),z.subs[k.n]=Q.code,z.inPartial||(z.code+='t.sub("'+L(k.n)+'",c,p,i);')},"\n":function(k,z){z.code+=le('"\\n"'+(k.last?"":" + i"))},_v:function(k,z){z.code+="t.b(t.v(t."+re(k.n)+'("'+L(k.n)+'",c,p,0)));'},_t:function(k,z){z.code+=le('"'+L(k.text)+'"')},"{":P,"&":P};function P(k,z){z.code+="t.b(t.t(t."+re(k.n)+'("'+L(k.n)+'",c,p,0)));'}function le(k){return"t.b("+k+");"}i.walk=function(k,z){for(var Q,K=0,fe=k.length;K<fe;K++)Q=i.codegen[k[K].tag],Q&&Q(k[K],z);return z},i.parse=function(k,z,Q){return Q=Q||{},x(k,"",[],Q.sectionTags||[])},i.cache={},i.cacheKey=function(k,z){return[k,!!z.asString,!!z.disableLambda,z.delimiters,!!z.modelGet].join("||")},i.compile=function(k,z){z=z||{};var Q=i.cacheKey(k,z),K=this.cache[Q];if(K){var fe=K.partials;for(var we in fe)delete fe[we].instance;return K}return K=this.generate(this.parse(this.scan(k,z.delimiters),k,z),k,z),this.cache[Q]=K}})(s)})(_u)),_u}var Su={},Fm;function FE(){return Fm||(Fm=1,(function(s){(function(i){i.Template=function(x,N,A,w){x=x||{},this.r=x.code||this.r,this.c=A,this.options=w||{},this.text=N||"",this.partials=x.partials||{},this.subs=x.subs||{},this.buf=""},i.Template.prototype={r:function(x,N,A){return""},v,t:b,render:function(N,A,w){return this.ri([N],A||{},w)},ri:function(x,N,A){return this.r(x,N,A)},ep:function(x,N){var A=this.partials[x],w=N[A.name];if(A.instance&&A.base==w)return A.instance;if(typeof w=="string"){if(!this.c)throw new Error("No compiler available.");w=this.c.compile(w,this.options)}if(!w)return null;if(this.partials[x].base=w,A.subs){N.stackText||(N.stackText={});for(key in A.subs)N.stackText[key]||(N.stackText[key]=this.activeSub!==void 0&&N.stackText[this.activeSub]?N.stackText[this.activeSub]:this.text);w=l(w,A.subs,A.partials,this.stackSubs,this.stackPartials,N.stackText)}return this.partials[x].instance=w,w},rp:function(x,N,A,w){var U=this.ep(x,A);return U?U.ri(N,A,w):""},rs:function(x,N,A){var w=x[x.length-1];if(!_(w)){A(x,N,this);return}for(var U=0;U<w.length;U++)x.push(w[U]),A(x,N,this),x.pop()},s:function(x,N,A,w,U,G,L){var re;return _(x)&&x.length===0?!1:(typeof x=="function"&&(x=this.ms(x,N,A,w,U,G,L)),re=!!x,!w&&re&&N&&N.push(typeof x=="object"?x:N[N.length-1]),re)},d:function(x,N,A,w){var U,G=x.split("."),L=this.f(G[0],N,A,w),re=this.options.modelGet,H=null;if(x==="."&&_(N[N.length-2]))L=N[N.length-1];else for(var P=1;P<G.length;P++)U=r(G[P],L,re),U!==void 0?(H=L,L=U):L="";return w&&!L?!1:(!w&&typeof L=="function"&&(N.push(H),L=this.mv(L,N,A),N.pop()),L)},f:function(x,N,A,w){for(var U=!1,G=null,L=!1,re=this.options.modelGet,H=N.length-1;H>=0;H--)if(G=N[H],U=r(x,G,re),U!==void 0){L=!0;break}return L?(!w&&typeof U=="function"&&(U=this.mv(U,N,A)),U):w?!1:""},ls:function(x,N,A,w,U,G){var L=this.options.delimiters;return this.options.delimiters=G,this.b(this.ct(b(x.call(N,U,A)),N,w)),this.options.delimiters=L,!1},ct:function(x,N,A){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(x,this.options).render(N,A)},b:function(x){this.buf+=x},fl:function(){var x=this.buf;return this.buf="",x},ms:function(x,N,A,w,U,G,L){var re,H=N[N.length-1],P=x.call(H);return typeof P=="function"?w?!0:(re=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(P,H,N,A,re.substring(U,G),L)):P},mv:function(x,N,A){var w=N[N.length-1],U=x.call(w);return typeof U=="function"?this.ct(b(U.call(w)),w,A):U},sub:function(x,N,A,w){var U=this.subs[x];U&&(this.activeSub=x,U(N,A,this,w),this.activeSub=!1)}};function r(x,N,A){var w;return N&&typeof N=="object"&&(N[x]!==void 0?w=N[x]:A&&N.get&&typeof N.get=="function"&&(w=N.get(x))),w}function l(x,N,A,w,U,G){function L(){}L.prototype=x;function re(){}re.prototype=x.subs;var H,P=new L;P.subs=new re,P.subsText={},P.buf="",w=w||{},P.stackSubs=w,P.subsText=G;for(H in N)w[H]||(w[H]=N[H]);for(H in w)P.subs[H]=w[H];U=U||{},P.stackPartials=U;for(H in A)U[H]||(U[H]=A[H]);for(H in U)P.partials[H]=U[H];return P}var u=/&/g,d=/</g,g=/>/g,y=/\'/g,m=/\"/g,p=/[&<>\"\']/;function b(x){return String(x??"")}function v(x){return x=b(x),p.test(x)?x.replace(u,"&").replace(d,"<").replace(g,">").replace(y,"'").replace(m,"""):x}var _=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}})(s)})(Su)),Su}var Tu,Km;function KE(){if(Km)return Tu;Km=1;var s=YE();return s.Template=FE().Template,s.template=s.Template,Tu=s,Tu}var Ht=KE();const Xt={};Xt["file-summary-line"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<li class="d2h-file-list-line">'),l.b(`
|
|
60
|
+
`+r),l.b(' <span class="d2h-file-name-wrapper">'),l.b(`
|
|
61
|
+
`+r),l.b(l.rp("<fileIcon0",s,i," ")),l.b(' <a href="#'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-name">'),l.b(l.v(l.f("fileName",s,i,0))),l.b("</a>"),l.b(`
|
|
62
|
+
`+r),l.b(' <span class="d2h-file-stats">'),l.b(`
|
|
63
|
+
`+r),l.b(' <span class="d2h-lines-added">'),l.b(l.v(l.f("addedLines",s,i,0))),l.b("</span>"),l.b(`
|
|
64
|
+
`+r),l.b(' <span class="d2h-lines-deleted">'),l.b(l.v(l.f("deletedLines",s,i,0))),l.b("</span>"),l.b(`
|
|
65
|
+
`+r),l.b(" </span>"),l.b(`
|
|
66
|
+
`+r),l.b(" </span>"),l.b(`
|
|
67
|
+
`+r),l.b("</li>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});Xt["file-summary-wrapper"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-file-list-wrapper '),l.b(l.v(l.f("colorScheme",s,i,0))),l.b('">'),l.b(`
|
|
68
|
+
`+r),l.b(' <div class="d2h-file-list-header">'),l.b(`
|
|
69
|
+
`+r),l.b(' <span class="d2h-file-list-title">Files changed ('),l.b(l.v(l.f("filesNumber",s,i,0))),l.b(")</span>"),l.b(`
|
|
70
|
+
`+r),l.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),l.b(`
|
|
71
|
+
`+r),l.b(' <a class="d2h-file-switch d2h-show">show</a>'),l.b(`
|
|
72
|
+
`+r),l.b(" </div>"),l.b(`
|
|
73
|
+
`+r),l.b(' <ol class="d2h-file-list">'),l.b(`
|
|
74
|
+
`+r),l.b(" "),l.b(l.t(l.f("files",s,i,0))),l.b(`
|
|
75
|
+
`+r),l.b(" </ol>"),l.b(`
|
|
76
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Xt["generic-block-header"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
|
|
77
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,i,0))),l.b(" "),l.b(l.v(l.d("CSSLineClass.INFO",s,i,0))),l.b('"></td>'),l.b(`
|
|
78
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,i,0))),l.b('">'),l.b(`
|
|
79
|
+
`+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,i,0))),l.b('">'),l.s(l.f("blockHeader",s,i,1),s,i,0,156,173,"{{ }}")&&(l.rs(s,i,function(u,d,g){g.b(g.t(g.f("blockHeader",u,d,0)))}),s.pop()),l.s(l.f("blockHeader",s,i,1),s,i,1,0,0,"")||l.b(" "),l.b("</div>"),l.b(`
|
|
80
|
+
`+r),l.b(" </td>"),l.b(`
|
|
81
|
+
`+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Xt["generic-empty-diff"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
|
|
82
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.d("CSSLineClass.INFO",s,i,0))),l.b('">'),l.b(`
|
|
83
|
+
`+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,i,0))),l.b('">'),l.b(`
|
|
84
|
+
`+r),l.b(" File without changes"),l.b(`
|
|
85
|
+
`+r),l.b(" </div>"),l.b(`
|
|
86
|
+
`+r),l.b(" </td>"),l.b(`
|
|
87
|
+
`+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Xt["generic-file-path"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-file-name-wrapper">'),l.b(`
|
|
88
|
+
`+r),l.b(l.rp("<fileIcon0",s,i," ")),l.b(' <span class="d2h-file-name">'),l.b(l.v(l.f("fileDiffName",s,i,0))),l.b("</span>"),l.b(`
|
|
89
|
+
`+r),l.b(l.rp("<fileTag1",s,i," ")),l.b("</span>"),l.b(`
|
|
90
|
+
`+r),l.b('<label class="d2h-file-collapse">'),l.b(`
|
|
91
|
+
`+r),l.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),l.b(`
|
|
92
|
+
`+r),l.b(" Viewed"),l.b(`
|
|
93
|
+
`+r),l.b("</label>"),l.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});Xt["generic-line"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b("<tr>"),l.b(`
|
|
94
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.f("lineClass",s,i,0))),l.b(" "),l.b(l.v(l.f("type",s,i,0))),l.b('">'),l.b(`
|
|
95
|
+
`+r),l.b(" "),l.b(l.t(l.f("lineNumber",s,i,0))),l.b(`
|
|
96
|
+
`+r),l.b(" </td>"),l.b(`
|
|
97
|
+
`+r),l.b(' <td class="'),l.b(l.v(l.f("type",s,i,0))),l.b('">'),l.b(`
|
|
98
|
+
`+r),l.b(' <div class="'),l.b(l.v(l.f("contentClass",s,i,0))),l.b('">'),l.b(`
|
|
99
|
+
`+r),l.s(l.f("prefix",s,i,1),s,i,0,162,238,"{{ }}")&&(l.rs(s,i,function(u,d,g){g.b(' <span class="d2h-code-line-prefix">'),g.b(g.t(g.f("prefix",u,d,0))),g.b("</span>"),g.b(`
|
|
100
|
+
`+r)}),s.pop()),l.s(l.f("prefix",s,i,1),s,i,1,0,0,"")||(l.b(' <span class="d2h-code-line-prefix"> </span>'),l.b(`
|
|
101
|
+
`+r)),l.s(l.f("content",s,i,1),s,i,0,371,445,"{{ }}")&&(l.rs(s,i,function(u,d,g){g.b(' <span class="d2h-code-line-ctn">'),g.b(g.t(g.f("content",u,d,0))),g.b("</span>"),g.b(`
|
|
102
|
+
`+r)}),s.pop()),l.s(l.f("content",s,i,1),s,i,1,0,0,"")||(l.b(' <span class="d2h-code-line-ctn"><br></span>'),l.b(`
|
|
103
|
+
`+r)),l.b(" </div>"),l.b(`
|
|
104
|
+
`+r),l.b(" </td>"),l.b(`
|
|
105
|
+
`+r),l.b("</tr>"),l.fl()},partials:{},subs:{}});Xt["generic-wrapper"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div class="d2h-wrapper '),l.b(l.v(l.f("colorScheme",s,i,0))),l.b('">'),l.b(`
|
|
106
|
+
`+r),l.b(" "),l.b(l.t(l.f("content",s,i,0))),l.b(`
|
|
107
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Xt["icon-file-added"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),l.b(`
|
|
108
|
+
`+r),l.b(' width="14">'),l.b(`
|
|
109
|
+
`+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),l.b(`
|
|
110
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Xt["icon-file-changed"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),l.b(`
|
|
111
|
+
`+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
|
|
112
|
+
`+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),l.b(`
|
|
113
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Xt["icon-file-deleted"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),l.b(`
|
|
114
|
+
`+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
|
|
115
|
+
`+r),l.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),l.b(`
|
|
116
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Xt["icon-file-renamed"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),l.b(`
|
|
117
|
+
`+r),l.b(' viewBox="0 0 14 16" width="14">'),l.b(`
|
|
118
|
+
`+r),l.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),l.b(`
|
|
119
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Xt["icon-file"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),l.b(`
|
|
120
|
+
`+r),l.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),l.b(`
|
|
121
|
+
`+r),l.b("</svg>"),l.fl()},partials:{},subs:{}});Xt["line-by-line-file-diff"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,i,0))),l.b('">'),l.b(`
|
|
122
|
+
`+r),l.b(' <div class="d2h-file-header">'),l.b(`
|
|
123
|
+
`+r),l.b(" "),l.b(l.t(l.f("filePath",s,i,0))),l.b(`
|
|
124
|
+
`+r),l.b(" </div>"),l.b(`
|
|
125
|
+
`+r),l.b(' <div class="d2h-file-diff">'),l.b(`
|
|
126
|
+
`+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
|
|
127
|
+
`+r),l.b(' <table class="d2h-diff-table">'),l.b(`
|
|
128
|
+
`+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
|
|
129
|
+
`+r),l.b(" "),l.b(l.t(l.f("diffs",s,i,0))),l.b(`
|
|
130
|
+
`+r),l.b(" </tbody>"),l.b(`
|
|
131
|
+
`+r),l.b(" </table>"),l.b(`
|
|
132
|
+
`+r),l.b(" </div>"),l.b(`
|
|
133
|
+
`+r),l.b(" </div>"),l.b(`
|
|
134
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Xt["line-by-line-numbers"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div class="line-num1">'),l.b(l.v(l.f("oldNumber",s,i,0))),l.b("</div>"),l.b(`
|
|
135
|
+
`+r),l.b('<div class="line-num2">'),l.b(l.v(l.f("newNumber",s,i,0))),l.b("</div>"),l.fl()},partials:{},subs:{}});Xt["side-by-side-file-diff"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<div id="'),l.b(l.v(l.f("fileHtmlId",s,i,0))),l.b('" class="d2h-file-wrapper" data-lang="'),l.b(l.v(l.d("file.language",s,i,0))),l.b('">'),l.b(`
|
|
136
|
+
`+r),l.b(' <div class="d2h-file-header">'),l.b(`
|
|
137
|
+
`+r),l.b(" "),l.b(l.t(l.f("filePath",s,i,0))),l.b(`
|
|
138
|
+
`+r),l.b(" </div>"),l.b(`
|
|
139
|
+
`+r),l.b(' <div class="d2h-files-diff">'),l.b(`
|
|
140
|
+
`+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
|
|
141
|
+
`+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
|
|
142
|
+
`+r),l.b(' <table class="d2h-diff-table">'),l.b(`
|
|
143
|
+
`+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
|
|
144
|
+
`+r),l.b(" "),l.b(l.t(l.d("diffs.left",s,i,0))),l.b(`
|
|
145
|
+
`+r),l.b(" </tbody>"),l.b(`
|
|
146
|
+
`+r),l.b(" </table>"),l.b(`
|
|
147
|
+
`+r),l.b(" </div>"),l.b(`
|
|
148
|
+
`+r),l.b(" </div>"),l.b(`
|
|
149
|
+
`+r),l.b(' <div class="d2h-file-side-diff">'),l.b(`
|
|
150
|
+
`+r),l.b(' <div class="d2h-code-wrapper">'),l.b(`
|
|
151
|
+
`+r),l.b(' <table class="d2h-diff-table">'),l.b(`
|
|
152
|
+
`+r),l.b(' <tbody class="d2h-diff-tbody">'),l.b(`
|
|
153
|
+
`+r),l.b(" "),l.b(l.t(l.d("diffs.right",s,i,0))),l.b(`
|
|
154
|
+
`+r),l.b(" </tbody>"),l.b(`
|
|
155
|
+
`+r),l.b(" </table>"),l.b(`
|
|
156
|
+
`+r),l.b(" </div>"),l.b(`
|
|
157
|
+
`+r),l.b(" </div>"),l.b(`
|
|
158
|
+
`+r),l.b(" </div>"),l.b(`
|
|
159
|
+
`+r),l.b("</div>"),l.fl()},partials:{},subs:{}});Xt["tag-file-added"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),l.fl()},partials:{},subs:{}});Xt["tag-file-changed"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),l.fl()},partials:{},subs:{}});Xt["tag-file-deleted"]=new Ht.Template({code:function(s,i,r){var l=this;return l.b(r=r||""),l.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),l.fl()},partials:{},subs:{}});Xt["tag-file-renamed"]=new Ht.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 PE{constructor({compiledTemplates:i={},rawTemplates:r={}}){const l=Object.entries(r).reduce((u,[d,g])=>{const y=Ht.compile(g,{asString:!1});return Object.assign(Object.assign({},u),{[d]:y})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Xt),i),l)}static compile(i){return Ht.compile(i,{asString:!1})}render(i,r,l,u,d){const g=this.templateKey(i,r);try{return this.preCompiledTemplates[g].render(l,u,d)}catch{throw new Error(`Could not find template to render '${g}'`)}}template(i,r){return this.preCompiledTemplates[this.templateKey(i,r)]}templateKey(i,r){return`${i}-${r}`}}const ZE=Object.assign(Object.assign(Object.assign({},Tb),Nb),{outputFormat:hE.LINE_BY_LINE,drawFileList:!0});function XE(s,i={}){const r=Object.assign(Object.assign({},ZE),i),l=typeof s=="string"?SE(s,r):s,u=new PE(r),{colorScheme:d}=r,g={colorScheme:d},y=r.drawFileList?new UE(u,g).render(l):"",m=r.outputFormat==="side-by-side"?new $E(u,r).render(l):new IE(u,r).render(l);return y+m}var Nu=yb();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 g of r)if(g.startsWith("diff --git ")){d(),l=[g];const y=g.match(/^diff --git a\/(.+?) b\/(.+)$/);u=y?y[2]:g.slice(11)}else if(l&&(l.push(g),g.startsWith("--- a/")&&u==="/dev/null"&&(u=g.slice(6)),g==="+++ /dev/null")){const y=l.find(m=>m.startsWith("--- a/"));y&&(u=y.slice(6))}return d(),i}function QE(s,i){const r=new Set(i);return Ja(s).filter(l=>r.has(l.path)).map(l=>l.patch).join(`
|
|
162
|
+
`)}function VE(s){return JE(s)}function JE(s,i){const l=new Map;for(const{path:u,patch:d}of Ja(s)){const g=new Map;let y=0,m=!1;const p=d.split(`
|
|
163
|
+
`);for(let b=0;b<p.length;b++){const v=p[b],_=v.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_){y=Number(_[2]),m=!0;continue}m&&(v===""&&b===p.length-1||v.startsWith("\\")||(v.startsWith("+")||v.startsWith(" ")||v==="")&&(g.set(y,v===""?"":v.slice(1)),y++))}l.set(u,g)}return l}function WE(s){const i=new Map;for(const[r,l]of VE(s))i.set(r,new Set(l.keys()));return i}function e_(s,i){const r=new Set(i.flatMap(l=>l.files));return Ja(s).map(l=>l.path).filter(l=>!r.has(l))}function t_(s){return new Map(Ja(s).map(i=>[i.path,i.patch.split(`
|
|
164
|
+
`).length]))}const xb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function Pm(s,i){return i?`${xb[i]} **${i}** — ${s}`:s}const n_=["inbox","awaiting","drafted"],_f=["requests","settled","sent","archived"],xu={inbox:{label:"inbox",title:"Everything still waiting on you — drafted reviews and PRs the poll found but nobody has read."},awaiting:{label:"awaiting",title:"Found by the inbox poll, not drafted yet — or a run is in flight right now."},drafted:{label:"drafted",title:"A draft is written and waiting for you to read it."},requests:{label:"open requests",title:"GitHub still lists you as a requested reviewer on these. You settled or archived them here without submitting a review, so they also appear under whichever tab you filed them in."},settled:{label:"settled",title:"You marked these reviewed or skipped. Nothing was sent to GitHub."},sent:{label:"sent",title:"Reviews that reached GitHub. Kept here as a record."},archived:{label:"archived",title:"PRs that have since been merged or closed."}};function Zm(s){return s.status==="awaiting"||s.status==="running"?"awaiting":s.status==="sent"?"sent":"drafted"}const Is=s=>!!s.pr.state&&s.pr.state!=="OPEN",Xm=["ready","awaiting","running","failed","reviewed","skipped","sent"];function Bl(s){return[...s].sort((i,r)=>Xm.indexOf(i.status)-Xm.indexOf(r.status)||r.updatedAt.localeCompare(i.updatedAt))}const wb=["sent","reviewed","skipped"];function fo(s){return Bl(s.filter(i=>!Is(i)&&!wb.includes(i.status)))}function a_(s,i,r){return fo(s).filter(l=>l.key===i||!r.has(l.key))}function i_(s,i){if(!(i!=null&&i.enabled)||i.awaiting.length===0)return[];const r=new Set(fo(s).map(u=>u.id)),l=new Set(i.awaiting.map(u=>u.id));return Bl(s.filter(u=>l.has(u.id)&&!r.has(u.id)))}const l_=(s,i)=>i.some(r=>r.id===s.id);function s_(s,i){const r=s.filter(u=>!Is(u)),l=Bl(r.filter(u=>!wb.includes(u.status)));return{inbox:l,awaiting:l.filter(u=>Zm(u)==="awaiting"),drafted:l.filter(u=>Zm(u)==="drafted"),requests:i_(s,i),settled:Bl(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Bl(r.filter(u=>u.status==="sent")),archived:Bl(s.filter(Is))}}function r_(s,i){return _f.includes(s)&&i[s].length===0?"inbox":s}function Ab(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 lo={"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 o_(s){var i;return Is(s)?((i=s.pr.state)==null?void 0:i.toLowerCase())??null:s.filed?lo[s.filed.reason].tag:s.status==="reviewed"||s.status==="skipped"?s.status:null}function c_(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 u_={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."}},f_=s=>u_[s];function d_(s){const i=jf[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 h_(s){const i=lo[s.reason],r=new Date(Ab(s)).toLocaleDateString();return{label:i.tag,title:`${i.requested} That was ${r}. GitHub lists a review request for you now — most likely the author has asked for another look since. Re-review it to draft against the current head.`}}const p_=(s,i)=>s.sent?d_(s.sent):s.filed?h_(s.filed):f_(i);function m_(s){const i=s.length,r=i===1?"1 review request":`${i} review requests`,l=s.some(Is)?"settled or archived":"settled";return`Nothing new in the inbox — but GitHub still has ${r} open on you. You ${l} ${i===1?"it":"them"} here without submitting a review, so ${i===1?"it is":"they are"} under open requests, tagged with whose move it is.`}function Rb(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 g_={approve:"approve",comment:"comment",request_changes:"changes"},jf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function b_(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 · ${jf[s.sent.event]??s.sent.event}`,tone:"sent"}:s.verdict?{label:`${s.verdict.recommendation.replace("_"," ")} ${s.verdict.confidence}%`,tone:g_[s.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function wu(s){return s.trusted?"ran the code":s.withSource?"read the full source":"read the diff only"}function y_(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 v_(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 ${Rb(s.updatedAt,r)} ago`,wu(s)]};if(s.status==="awaiting")return{reasoning:"Found by the inbox poll, not drafted yet — auto-review was off when it arrived, or it is still queued behind another run.",meta:["no run yet","press r to review now"]};if(s.status==="failed")return{reasoning:s.runError??"The review run failed before it produced a draft.",meta:["press r to try again"]};if(s.sent)return{reasoning:`Sent to GitHub as ${jf[s.sent.event]??s.sent.event} on ${new Date(s.sent.at).toLocaleDateString()}. Kept here as a record; the conversation can't continue.`,meta:[s.sent.auto?"auto-sent by the daemon":"sent by you",wu(s)]};const l=[wu(s)];return s.filed?l.unshift(lo[s.filed.reason].meta(new Date(Ab(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(y_(s)),i!=null&&i.enabled&&s.status==="ready"&&((u=s.verdict)==null?void 0:u.recommendation)==="approve"&&l.push(s.verdict.confidence>=i.autoSendThreshold?`auto-send candidate at ${s.verdict.confidence}%`:`below the ${i.autoSendThreshold}% auto-send bar`),s.filed?{reasoning:lo[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 E_="/favicon.svg",__="/favicon-dot.svg",S_=s=>fo(s).length>0,T_=s=>s?__:E_;function N_(s){const i=T_(S_(s)),r=document.querySelector("link[rel='icon']");!r||r.getAttribute("href")===i||r.setAttribute("href",i)}async function sn(s,i){const r=await fetch(s,{...i,headers:i!=null&&i.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let l=`${(i==null?void 0:i.method)??"GET"} ${s}: ${r.status}`;try{const u=await r.json();u.error&&(l=u.error)}catch{}throw new Error(l)}return r.json()}const If=async()=>{const s=await sn("/api/reviews");return N_(s),s},Ob=()=>sn("/api/daemon"),Qm=s=>sn(`/api/reviews/${encodeURIComponent(s)}`),no=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}`,{method:"PATCH",body:JSON.stringify(i)}),x_=(s,i,r)=>sn(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"PATCH",body:JSON.stringify(r)}),w_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/comments`,{method:"POST",body:JSON.stringify(i)}),A_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"DELETE"}),R_=s=>sn("/api/reviews",{method:"POST",body:JSON.stringify({input:s})}),O_=s=>sn(`/api/reviews/${encodeURIComponent(s)}/refresh`,{method:"POST"}),kb=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/rerun`+(i===void 0?"":`?source=${i?"1":"0"}`),{method:"POST"}),Sf=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/chat`,{method:"POST",body:JSON.stringify(i)}),k_=s=>sn(`/api/reviews/${encodeURIComponent(s)}/chat/pending`,{method:"DELETE"}),M_=s=>sn(`/api/reviews/${encodeURIComponent(s)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),C_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/send-preview?event=${i}`),D_=(s,i)=>sn(`/api/reviews/${encodeURIComponent(s)}/send`,{method:"POST",body:JSON.stringify({event:i,confirm:!0})}),L_=s=>`/api/reviews/${encodeURIComponent(s)}/export`,z_=()=>sn("/api/config"),Au=(s,i=!1)=>sn("/api/config/trust",{method:"POST",body:JSON.stringify({rule:s,remove:i})}),Ru=s=>sn("/api/config/daemon",{method:"POST",body:JSON.stringify(s)});function Ou(s){return s.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function Tf(s){return s.nodeName.toLowerCase()}function Vm(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),Tf(d).match(/br|hr|img|input/)||i.push({event:"stop",offset:u,node:d}));return u};return r(s,0),i}function U_(s,i,r){let l=0,u="";const d=[];function g(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 m(v){if(!g(v))throw new Error("Node is not an Element");u+=`<${Tf(v)} ${Array().map.call(v.attributes,_=>`${_.nodeName}="${Ou(_.value).replace(/"/g,""")}"`).join(" ")}>`}function p(v){u+="</"+Tf(v)+">"}function b(v){(v.event==="start"?m:p)(v.node)}for(;s.length||i.length;){let v=y();if(u+=Ou(r.substring(l,v[0].offset)),l=v[0].offset,v===s){d.reverse().forEach(p);do b(v.splice(0,1)[0]),v=y();while(v===s&&v.length&&v[0].offset===l);d.reverse().forEach(m)}else v[0].event==="start"?d.push(v[0].node):d.pop(),b(v.splice(0,1)[0])}return u+Ou(r.substr(l))}const B_={"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 j_(s){var i;return(i=B_[s])!==null&&i!==void 0?i:"plaintext"}var ku,Jm;function I_(){if(Jm)return ku;Jm=1;function s(R){return R instanceof Map?R.clear=R.delete=R.set=function(){throw new Error("map is read-only")}:R instanceof Set&&(R.add=R.clear=R.delete=function(){throw new Error("set is read-only")}),Object.freeze(R),Object.getOwnPropertyNames(R).forEach(J=>{const C=R[J],ee=typeof C;(ee==="object"||ee==="function")&&!Object.isFrozen(C)&&s(C)}),R}class i{constructor(J){J.data===void 0&&(J.data={}),this.data=J.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(R){return R.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(R,...J){const C=Object.create(null);for(const ee in R)C[ee]=R[ee];return J.forEach(function(ee){for(const de in ee)C[de]=ee[de]}),C}const u="</span>",d=R=>!!R.scope,g=(R,{prefix:J})=>{if(R.startsWith("language:"))return R.replace("language:","language-");if(R.includes(".")){const C=R.split(".");return[`${J}${C.shift()}`,...C.map((ee,de)=>`${ee}${"_".repeat(de+1)}`)].join(" ")}return`${J}${R}`};class y{constructor(J,C){this.buffer="",this.classPrefix=C.classPrefix,J.walk(this)}addText(J){this.buffer+=r(J)}openNode(J){if(!d(J))return;const C=g(J.scope,{prefix:this.classPrefix});this.span(C)}closeNode(J){d(J)&&(this.buffer+=u)}value(){return this.buffer}span(J){this.buffer+=`<span class="${J}">`}}const m=(R={})=>{const J={children:[]};return Object.assign(J,R),J};class p{constructor(){this.rootNode=m(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(J){this.top.children.push(J)}openNode(J){const C=m({scope:J});this.add(C),this.stack.push(C)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(J){return this.constructor._walk(J,this.rootNode)}static _walk(J,C){return typeof C=="string"?J.addText(C):C.children&&(J.openNode(C),C.children.forEach(ee=>this._walk(J,ee)),J.closeNode(C)),J}static _collapse(J){typeof J!="string"&&J.children&&(J.children.every(C=>typeof C=="string")?J.children=[J.children.join("")]:J.children.forEach(C=>{p._collapse(C)}))}}class b extends p{constructor(J){super(),this.options=J}addText(J){J!==""&&this.add(J)}startScope(J){this.openNode(J)}endScope(){this.closeNode()}__addSublanguage(J,C){const ee=J.root;C&&(ee.scope=`language:${C}`),this.add(ee)}toHTML(){return new y(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(R){return R?typeof R=="string"?R:R.source:null}function _(R){return A("(?=",R,")")}function x(R){return A("(?:",R,")*")}function N(R){return A("(?:",R,")?")}function A(...R){return R.map(C=>v(C)).join("")}function w(R){const J=R[R.length-1];return typeof J=="object"&&J.constructor===Object?(R.splice(R.length-1,1),J):{}}function U(...R){return"("+(w(R).capture?"":"?:")+R.map(ee=>v(ee)).join("|")+")"}function G(R){return new RegExp(R.toString()+"|").exec("").length-1}function L(R,J){const C=R&&R.exec(J);return C&&C.index===0}const re=new RegExp(U(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function H(R,{joinWith:J}){let C=0;return R.map(ee=>{C+=1;const de=C;let Le=v(ee),ye="";for(;Le.length>0;){const be=re.exec(Le);if(!be){ye+=Le;break}ye+=Le.substring(0,be.index),Le=Le.substring(be.index+be[0].length),be[0][0]==="\\"&&be[1]?ye+="\\"+String(Number(be[1])+de):(ye+=be[0],(be[0]==="("||/^\(\?[<']/.test(be[0]))&&C++)}return ye}).map(ee=>`(${ee})`).join(J)}const P=/\b\B/,le="[a-zA-Z]\\w*",k="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",Q="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",fe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",we=(R={})=>{const J=/^#![ ]*\//;return R.binary&&(R.begin=A(J,/.*\b/,R.binary,/\b.*/)),l({scope:"meta",begin:J,end:/$/,relevance:0,"on:begin":(C,ee)=>{C.index!==0&&ee.ignoreMatch()}},R)},Ae={begin:"\\\\[\\s\\S]",relevance:0},he={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ae]},I={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ae]},ne={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},oe=function(R,J,C={}){const ee=l({scope:"comment",begin:R,end:J,contains:[]},C);ee.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 de=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 ee.contains.push({begin:A(/[ ]+/,"(",de,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ee},ve=oe("//","$"),Se=oe("/\\*","\\*/"),S=oe("#","$"),D={scope:"number",begin:z,relevance:0},q={scope:"number",begin:Q,relevance:0},ue={scope:"number",begin:K,relevance:0},pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ae,{begin:/\[/,end:/\]/,relevance:0,contains:[Ae]}]},xe={scope:"title",begin:le,relevance:0},me={scope:"title",begin:k,relevance:0},Oe={begin:"\\.\\s*"+k,relevance:0};var He=Object.freeze({__proto__:null,APOS_STRING_MODE:he,BACKSLASH_ESCAPE:Ae,BINARY_NUMBER_MODE:ue,BINARY_NUMBER_RE:K,COMMENT:oe,C_BLOCK_COMMENT_MODE:Se,C_LINE_COMMENT_MODE:ve,C_NUMBER_MODE:q,C_NUMBER_RE:Q,END_SAME_AS_BEGIN:function(R){return Object.assign(R,{"on:begin":(J,C)=>{C.data._beginMatch=J[1]},"on:end":(J,C)=>{C.data._beginMatch!==J[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:S,IDENT_RE:le,MATCH_NOTHING_RE:P,METHOD_GUARD:Oe,NUMBER_MODE:D,NUMBER_RE:z,PHRASAL_WORDS_MODE:ne,QUOTE_STRING_MODE:I,REGEXP_MODE:pe,RE_STARTERS_RE:fe,SHEBANG:we,TITLE_MODE:xe,UNDERSCORE_IDENT_RE:k,UNDERSCORE_TITLE_MODE:me});function We(R,J){R.input[R.index-1]==="."&&J.ignoreMatch()}function ke(R,J){R.className!==void 0&&(R.scope=R.className,delete R.className)}function At(R,J){J&&R.beginKeywords&&(R.begin="\\b("+R.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",R.__beforeBegin=We,R.keywords=R.keywords||R.beginKeywords,delete R.beginKeywords,R.relevance===void 0&&(R.relevance=0))}function Ge(R,J){Array.isArray(R.illegal)&&(R.illegal=U(...R.illegal))}function Nn(R,J){if(R.match){if(R.begin||R.end)throw new Error("begin & end are not supported with match");R.begin=R.match,delete R.match}}function nt(R,J){R.relevance===void 0&&(R.relevance=1)}const xn=(R,J)=>{if(!R.beforeMatch)return;if(R.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},R);Object.keys(R).forEach(ee=>{delete R[ee]}),R.keywords=C.keywords,R.begin=A(C.beforeMatch,_(C.begin)),R.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},R.relevance=0,delete C.beforeMatch},rn=["of","and","for","in","not","or","if","then","parent","list","value"],zt="keyword";function qn(R,J,C=zt){const ee=Object.create(null);return typeof R=="string"?de(C,R.split(" ")):Array.isArray(R)?de(C,R):Object.keys(R).forEach(function(Le){Object.assign(ee,qn(R[Le],J,Le))}),ee;function de(Le,ye){J&&(ye=ye.map(be=>be.toLowerCase())),ye.forEach(function(be){const ze=be.split("|");ee[ze[0]]=[Le,Jt(ze[0],ze[1])]})}}function Jt(R,J){return J?Number(J):ca(R)?0:1}function ca(R){return rn.includes(R.toLowerCase())}const Vn={},Ke=R=>{console.error(R)},Ut=(R,...J)=>{console.log(`WARN: ${R}`,...J)},mt=(R,J)=>{Vn[`${R}/${J}`]||(console.log(`Deprecated as of ${R}. ${J}`),Vn[`${R}/${J}`]=!0)},bn=new Error;function yn(R,J,{key:C}){let ee=0;const de=R[C],Le={},ye={};for(let be=1;be<=J.length;be++)ye[be+ee]=de[be],Le[be+ee]=!0,ee+=G(J[be-1]);R[C]=ye,R[C]._emit=Le,R[C]._multi=!0}function kn(R){if(Array.isArray(R.begin)){if(R.skip||R.excludeBegin||R.returnBegin)throw Ke("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),bn;if(typeof R.beginScope!="object"||R.beginScope===null)throw Ke("beginScope must be object"),bn;yn(R,R.begin,{key:"beginScope"}),R.begin=H(R.begin,{joinWith:""})}}function Mn(R){if(Array.isArray(R.end)){if(R.skip||R.excludeEnd||R.returnEnd)throw Ke("skip, excludeEnd, returnEnd not compatible with endScope: {}"),bn;if(typeof R.endScope!="object"||R.endScope===null)throw Ke("endScope must be object"),bn;yn(R,R.end,{key:"endScope"}),R.end=H(R.end,{joinWith:""})}}function Cn(R){R.scope&&typeof R.scope=="object"&&R.scope!==null&&(R.beginScope=R.scope,delete R.scope)}function Dn(R){Cn(R),typeof R.beginScope=="string"&&(R.beginScope={_wrap:R.beginScope}),typeof R.endScope=="string"&&(R.endScope={_wrap:R.endScope}),kn(R),Mn(R)}function on(R){function J(ye,be){return new RegExp(v(ye),"m"+(R.case_insensitive?"i":"")+(R.unicodeRegex?"u":"")+(be?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(be,ze){ze.position=this.position++,this.matchIndexes[this.matchAt]=ze,this.regexes.push([ze,be]),this.matchAt+=G(be)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const be=this.regexes.map(ze=>ze[1]);this.matcherRe=J(H(be,{joinWith:"|"}),!0),this.lastIndex=0}exec(be){this.matcherRe.lastIndex=this.lastIndex;const ze=this.matcherRe.exec(be);if(!ze)return null;const Rt=ze.findIndex((Jn,ya)=>ya>0&&Jn!==void 0),gt=this.matchIndexes[Rt];return ze.splice(0,Rt),Object.assign(ze,gt)}}class ee{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(be){if(this.multiRegexes[be])return this.multiRegexes[be];const ze=new C;return this.rules.slice(be).forEach(([Rt,gt])=>ze.addRule(Rt,gt)),ze.compile(),this.multiRegexes[be]=ze,ze}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(be,ze){this.rules.push([be,ze]),ze.type==="begin"&&this.count++}exec(be){const ze=this.getMatcher(this.regexIndex);ze.lastIndex=this.lastIndex;let Rt=ze.exec(be);if(this.resumingScanAtSamePosition()&&!(Rt&&Rt.index===this.lastIndex)){const gt=this.getMatcher(0);gt.lastIndex=this.lastIndex+1,Rt=gt.exec(be)}return Rt&&(this.regexIndex+=Rt.position+1,this.regexIndex===this.count&&this.considerAll()),Rt}}function de(ye){const be=new ee;return ye.contains.forEach(ze=>be.addRule(ze.begin,{rule:ze,type:"begin"})),ye.terminatorEnd&&be.addRule(ye.terminatorEnd,{type:"end"}),ye.illegal&&be.addRule(ye.illegal,{type:"illegal"}),be}function Le(ye,be){const ze=ye;if(ye.isCompiled)return ze;[ke,Nn,Dn,xn].forEach(gt=>gt(ye,be)),R.compilerExtensions.forEach(gt=>gt(ye,be)),ye.__beforeBegin=null,[At,Ge,nt].forEach(gt=>gt(ye,be)),ye.isCompiled=!0;let Rt=null;return typeof ye.keywords=="object"&&ye.keywords.$pattern&&(ye.keywords=Object.assign({},ye.keywords),Rt=ye.keywords.$pattern,delete ye.keywords.$pattern),Rt=Rt||/\w+/,ye.keywords&&(ye.keywords=qn(ye.keywords,R.case_insensitive)),ze.keywordPatternRe=J(Rt,!0),be&&(ye.begin||(ye.begin=/\B|\b/),ze.beginRe=J(ze.begin),!ye.end&&!ye.endsWithParent&&(ye.end=/\B|\b/),ye.end&&(ze.endRe=J(ze.end)),ze.terminatorEnd=v(ze.end)||"",ye.endsWithParent&&be.terminatorEnd&&(ze.terminatorEnd+=(ye.end?"|":"")+be.terminatorEnd)),ye.illegal&&(ze.illegalRe=J(ye.illegal)),ye.contains||(ye.contains=[]),ye.contains=[].concat(...ye.contains.map(function(gt){return Wt(gt==="self"?ye:gt)})),ye.contains.forEach(function(gt){Le(gt,ze)}),ye.starts&&Le(ye.starts,be),ze.matcher=de(ze),ze}if(R.compilerExtensions||(R.compilerExtensions=[]),R.contains&&R.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return R.classNameAliases=l(R.classNameAliases||{}),Le(R)}function St(R){return R?R.endsWithParent||St(R.starts):!1}function Wt(R){return R.variants&&!R.cachedVariants&&(R.cachedVariants=R.variants.map(function(J){return l(R,{variants:null},J)})),R.cachedVariants?R.cachedVariants:St(R)?l(R,{starts:R.starts?l(R.starts):null}):Object.isFrozen(R)?l(R):R}var Nt="11.12.0";class Gn extends Error{constructor(J,C){super(J),this.name="HTMLInjectionError",this.html=C}}const Ln=r,wn=l,je=Symbol("nomatch"),cn=7,Qt=function(R){const J=Object.create(null),C=Object.create(null),ee=[];let de=!0;const Le="Could not find the language '{}', did you forget to load/include a language module?",ye={disableAutodetect:!0,name:"Plain text",contains:[]};let be={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function ze(ce){return be.noHighlightRe.test(ce)}function Rt(ce){let Me=ce.className+" ";Me+=ce.parentNode?ce.parentNode.className:"";const $e=be.languageDetectRe.exec(Me);if($e){const st=un($e[1]);return st||(Ut(Le.replace("{}",$e[1])),Ut("Falling back to no-highlight mode for this block.",ce)),st?$e[1]:"no-highlight"}return Me.split(/\s+/).find(st=>ze(st)||un(st))}function gt(ce,Me,$e){let st="",Tt="";typeof Me=="object"?(st=ce,$e=Me.ignoreIllegals,Tt=Me.language):(mt("10.7.0","highlight(lang, code, ...args) has been deprecated."),mt("10.7.0",`Please use highlight(code, options) instead.
|
|
165
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Tt=ce,st=Me),$e===void 0&&($e=!0);const qt={code:st,language:Tt};An("before:highlight",qt);const tn=qt.result?qt.result:Jn(qt.language,qt.code,$e);return tn.code=qt.code,An("after:highlight",tn),tn}function Jn(ce,Me,$e,st){const Tt=Object.create(null);function qt(se,ge){return se.keywords[ge]}function tn(){if(!X.keywords){B.addText(V);return}let se=0;X.keywordPatternRe.lastIndex=0;let ge=X.keywordPatternRe.exec(V),Ce="";for(;ge;){Ce+=V.substring(se,ge.index);const Fe=Gt.case_insensitive?ge[0].toLowerCase():ge[0],Pe=qt(X,Fe);if(Pe){const[ea,Gl]=Pe;if(B.addText(Ce),Ce="",Tt[Fe]=(Tt[Fe]||0)+1,Tt[Fe]<=cn&&(_e+=Gl),ea.startsWith("_"))Ce+=ge[0];else{const $s=Gt.classNameAliases[ea]||ea;Ot(ge[0],$s)}}else Ce+=ge[0];se=X.keywordPatternRe.lastIndex,ge=X.keywordPatternRe.exec(V)}Ce+=V.substring(se),B.addText(Ce)}function Bt(){if(V==="")return;let se=null;if(typeof X.subLanguage=="string"){if(!J[X.subLanguage]){B.addText(V);return}se=Jn(X.subLanguage,V,!0,T[X.subLanguage]),T[X.subLanguage]=se._top}else se=ei(V,X.subLanguage.length?X.subLanguage:null);X.relevance>0&&(_e+=se.relevance),B.__addSublanguage(se._emitter,se.language)}function rt(){X.subLanguage!=null?Bt():tn(),V=""}function Ot(se,ge){se!==""&&(B.startScope(ge),B.addText(se),B.endScope())}function nl(se,ge){let Ce=1;const Fe=ge.length-1;for(;Ce<=Fe;){if(!se._emit[Ce]){Ce++;continue}const Pe=Gt.classNameAliases[se[Ce]]||se[Ce],ea=ge[Ce];Pe?Ot(ea,Pe):(V=ea,tn(),V=""),Ce++}}function ai(se,ge){return se.scope&&typeof se.scope=="string"&&B.openNode(Gt.classNameAliases[se.scope]||se.scope),se.beginScope&&(se.beginScope._wrap?(Ot(V,Gt.classNameAliases[se.beginScope._wrap]||se.beginScope._wrap),V=""):se.beginScope._multi&&(nl(se.beginScope,ge),V="")),X=Object.create(se,{parent:{value:X}}),X}function ii(se,ge,Ce){let Fe=L(se.endRe,Ce);if(Fe){if(se["on:end"]){const Pe=new i(se);se["on:end"](ge,Pe),Pe.isMatchIgnored&&(Fe=!1)}if(Fe){for(;se.endsParent&&se.parent;)se=se.parent;return se}}if(se.endsWithParent)return ii(se.parent,ge,Ce)}function Ca(se){return X.matcher.regexIndex===0?(V+=se[0],1):(Xe=!0,0)}function al(se){const ge=se[0],Ce=se.rule,Fe=new i(Ce),Pe=[Ce.__beforeBegin,Ce["on:begin"]];for(const ea of Pe)if(ea&&(ea(se,Fe),Fe.isMatchIgnored))return Ca(ge);return Ce.skip?V+=ge:(Ce.excludeBegin&&(V+=ge),rt(),!Ce.returnBegin&&!Ce.excludeBegin&&(V=ge)),ai(Ce,se),Ce.returnBegin?0:ge.length}function En(se){const ge=se[0],Ce=Me.substring(se.index),Fe=ii(X,se,Ce);if(!Fe)return je;const Pe=X;X.endScope&&X.endScope._wrap?(rt(),Ot(ge,X.endScope._wrap)):X.endScope&&X.endScope._multi?(rt(),nl(X.endScope,se)):Pe.skip?V+=ge:(Pe.returnEnd||Pe.excludeEnd||(V+=ge),rt(),Pe.excludeEnd&&(V=ge));do X.scope&&B.closeNode(),!X.skip&&!X.subLanguage&&(_e+=X.relevance),X=X.parent;while(X!==Fe.parent);return Fe.starts&&ai(Fe.starts,se),Pe.returnEnd?0:ge.length}function li(){const se=[];for(let ge=X;ge!==Gt;ge=ge.parent)ge.scope&&se.unshift(ge.scope);se.forEach(ge=>B.openNode(ge))}let Da={};function si(se,ge){const Ce=ge&&ge[0];if(V+=se,Ce==null)return rt(),0;if(Da.type==="begin"&&ge.type==="end"&&Da.index===ge.index&&Ce===""){if(V+=Me.slice(ge.index,ge.index+1),!de){const Fe=new Error(`0 width match regex (${ce})`);throw Fe.languageName=ce,Fe.badRule=Da.rule,Fe}return 1}if(Da=ge,ge.type==="begin")return al(ge);if(ge.type==="illegal"&&!$e){const Fe=new Error('Illegal lexeme "'+Ce+'" for mode "'+(X.scope||"<unnamed>")+'"');throw Fe.mode=X,Fe}else if(ge.type==="end"){const Fe=En(ge);if(Fe!==je)return Fe}if(ge.type==="illegal"&&Ce==="")return ge.index===Me.length||(V+=`
|
|
166
|
+
`),1;if(Be>1e5&&Be>ge.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=Ce,Ce.length}const Gt=un(ce);if(!Gt)throw Ke(Le.replace("{}",ce)),new Error('Unknown language: "'+ce+'"');const La=on(Gt);let Sa="",X=st||La;const T={},B=new be.__emitter(be);li();let V="",_e=0,Ne=0,Be=0,Xe=!1;try{if(Gt.__emitTokens)Gt.__emitTokens(Me,B);else{for(X.matcher.considerAll();;){Be++,Xe?Xe=!1:X.matcher.considerAll(),X.matcher.lastIndex=Ne;const se=X.matcher.exec(Me);if(!se)break;const ge=Me.substring(Ne,se.index),Ce=si(ge,se);Ne=se.index+Ce}si(Me.substring(Ne))}return B.finalize(),Sa=B.toHTML(),{language:ce,value:Sa,relevance:_e,illegal:!1,_emitter:B,_top:X}}catch(se){if(se.message&&se.message.includes("Illegal"))return{language:ce,value:Ln(Me),illegal:!0,relevance:0,_illegalBy:{message:se.message,index:Ne,context:Me.slice(Ne-100,Ne+100),mode:se.mode,resultSoFar:Sa},_emitter:B};if(de)return{language:ce,value:Ln(Me),illegal:!1,relevance:0,errorRaised:se,_emitter:B,_top:X};throw se}}function ya(ce){const Me={value:Ln(ce),illegal:!1,relevance:0,_top:ye,_emitter:new be.__emitter(be)};return Me._emitter.addText(ce),Me}function ei(ce,Me){Me=Me||be.languages||Object.keys(J);const $e=ya(ce),st=Me.filter(un).filter(Ea).map(rt=>Jn(rt,ce,!1));st.unshift($e);const Tt=st.sort((rt,Ot)=>{if(rt.relevance!==Ot.relevance)return Ot.relevance-rt.relevance;if(rt.language&&Ot.language){if(un(rt.language).supersetOf===Ot.language)return 1;if(un(Ot.language).supersetOf===rt.language)return-1}return 0}),[qt,tn]=Tt,Bt=qt;return Bt.secondBest=tn,Bt}function vn(ce,Me,$e){const st=Me&&C[Me]||$e;ce.classList.add("hljs"),ce.classList.add(`language-${st}`)}function Mt(ce){let Me=null;const $e=Rt(ce);if(ze($e))return;if(An("before:highlightElement",{el:ce,language:$e}),ce.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ce);return}if(ce.children.length>0&&(be.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ce)),be.throwUnescapedHTML))throw new Gn("One of your code blocks includes unescaped HTML.",ce.innerHTML);Me=ce;const st=Me.textContent,Tt=$e?gt(st,{language:$e,ignoreIllegals:!0}):ei(st);ce.innerHTML=Tt.value,ce.dataset.highlighted="yes",vn(ce,$e,Tt.language),ce.result={language:Tt.language,re:Tt.relevance,relevance:Tt.relevance},Tt.secondBest&&(ce.secondBest={language:Tt.secondBest.language,relevance:Tt.secondBest.relevance}),An("after:highlightElement",{el:ce,result:Tt,text:st})}function en(ce){be=wn(be,ce)}const lt=()=>{ka(),mt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Wn(){ka(),mt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let tl=!1;function ka(){function ce(){ka()}if(document.readyState==="loading"){tl||window.addEventListener("DOMContentLoaded",ce,!1),tl=!0;return}document.querySelectorAll(be.cssSelector).forEach(Mt)}function ti(ce,Me){let $e=null;try{$e=Me(R)}catch(st){if(Ke("Language definition for '{}' could not be registered.".replace("{}",ce)),de)Ke(st);else throw st;$e=ye}$e.name||($e.name=ce),J[ce]=$e,$e.rawDefinition=Me.bind(null,R),$e.aliases&&ua($e.aliases,{languageName:ce})}function va(ce){delete J[ce];for(const Me of Object.keys(C))C[Me]===ce&&delete C[Me]}function ni(){return Object.keys(J)}function un(ce){return ce=(ce||"").toLowerCase(),J[ce]||J[C[ce]]}function ua(ce,{languageName:Me}){typeof ce=="string"&&(ce=[ce]),ce.forEach($e=>{C[$e.toLowerCase()]=Me})}function Ea(ce){const Me=un(ce);return Me&&!Me.disableAutodetect}function _a(ce){ce["before:highlightBlock"]&&!ce["before:highlightElement"]&&(ce["before:highlightElement"]=Me=>{ce["before:highlightBlock"](Object.assign({block:Me.el},Me))}),ce["after:highlightBlock"]&&!ce["after:highlightElement"]&&(ce["after:highlightElement"]=Me=>{ce["after:highlightBlock"](Object.assign({block:Me.el},Me))})}function dt(ce){_a(ce),ee.push(ce)}function Ma(ce){const Me=ee.indexOf(ce);Me!==-1&&ee.splice(Me,1)}function An(ce,Me){const $e=ce;ee.forEach(function(st){st[$e]&&st[$e](Me)})}function fa(ce){return mt("10.7.0","highlightBlock will be removed entirely in v12.0"),mt("10.7.0","Please use highlightElement now."),Mt(ce)}Object.assign(R,{highlight:gt,highlightAuto:ei,highlightAll:ka,highlightElement:Mt,highlightBlock:fa,configure:en,initHighlighting:lt,initHighlightingOnLoad:Wn,registerLanguage:ti,unregisterLanguage:va,listLanguages:ni,getLanguage:un,registerAliases:ua,autoDetection:Ea,inherit:wn,addPlugin:dt,removePlugin:Ma}),R.debugMode=function(){de=!1},R.safeMode=function(){de=!0},R.versionString=Nt,R.regex={concat:A,lookahead:_,either:U,optional:N,anyNumberOfTimes:x};for(const ce in He)typeof He[ce]=="object"&&s(He[ce]);return Object.assign(R,He),R},Ct=Qt({});return Ct.newInstance=()=>Qt({}),ku=Ct,Ct.HighlightJS=Ct,Ct.default=Ct,ku}var Mu,Wm;function H_(){if(Wm)return Mu;Wm=1;function s(i){const r=i.regex,l=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,d={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},g={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},y=i.inherit(g,{begin:/\(/,end:/\)/}),m=i.inherit(i.APOS_STRING_MODE,{className:"string"}),p=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[d]},{begin:/'/,end:/'/,contains:[d]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[g,p,m,y,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[g,y,p,m]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},d,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[p]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(l,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Mu=s,Mu}var Cu,eg;function q_(){if(eg)return Cu;eg=1;function s(i){const r=i.regex,l={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[l]}]};Object.assign(l,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const d={className:"subst",begin:/\$\(/,end:/\)/,contains:[i.BACKSLASH_ESCAPE]},g=i.inherit(i.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),y={begin:/<<-?\s*(?=\w+)/,starts:{contains:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},m={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,l,d]};d.contains.push(m);const p={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},_={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},i.NUMBER_MODE,l]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],N=i.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),A={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[i.inherit(i.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},w=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],U=["true","false"],G={match:/(\/[a-z._-]+)+/},L=["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"],P=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:w,literal:U,built_in:[...L,...re,"set","shopt",...H,...P]},contains:[N,i.SHEBANG(),A,_,g,y,G,m,p,b,v,l]}}return Cu=s,Cu}var Du,tg;function G_(){if(tg)return Du;tg=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",m=r.concat(/\batomic_/,r.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),p={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:m}]},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},x={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]},A=[x,N],w={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"},P=[...A,p,l,i.C_BLOCK_COMMENT_MODE,_,v],le={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:H,contains:P.concat([{begin:/\(/,end:/\)/,keywords:H,contains:P.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(w,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,v,_,p,{begin:/\(/,end:/\)/,keywords:H,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,v,_,p]}]},p,l,i.C_BLOCK_COMMENT_MODE,...A]};return{name:"C",aliases:["h"],keywords:H,disableAutodetect:!0,illegal:"</",contains:[].concat(le,k,P,[...A,{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 Du=s,Du}var Lu,ng;function $_(){if(ng)return Lu;ng=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",y="(?!struct)("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",m={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},b={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},i.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},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]},x={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},i.inherit(b,{className:"string"}),l,i.C_BLOCK_COMMENT_MODE]},N=[_,x],A={className:"title",begin:r.optional(d)+i.IDENT_RE,relevance:0},w=r.optional(d)+i.IDENT_RE+"\\s*\\(",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"],L=["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:L,keyword:G,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:re},z={className:"function.dispatch",relevance:0,keywords:{_hint:H},begin:r.concat(/\b/,`(?!${G.join("|")})`,i.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},Q=[z,...N,m,l,i.C_BLOCK_COMMENT_MODE,v,b],K={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:Q.concat([{begin:/\(/,end:/\)/,keywords:k,contains:Q.concat(["self"]),relevance:0}]),relevance:0},fe={className:"function",begin:"("+y+"[\\*&\\s]+){1,"+U+"}"+w,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:k,relevance:0},{begin:w,returnBegin:!0,contains:[A],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,b,v,m,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,b,v,m]}]},m,l,i.C_BLOCK_COMMENT_MODE,...N]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(K,fe,z,Q,[...N,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:k,contains:["self",m]},{begin:i.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Lu=s,Lu}var zu,ag;function Y_(){if(ag)return zu;ag=1;function s(i){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],l=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],u=["default","false","null","true"],d=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],g=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],y={keyword:d.concat(g),built_in:r,literal:u},m=i.inherit(i.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),p="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",_={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+b},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+b},{begin:"(-?)(\\b"+p+"(\\.("+p+")?)?|\\."+p+")([eE][-+]?"+p+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},x={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},N={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},A=i.inherit(N,{illegal:/\n/}),w={className:"subst",begin:/\{/,end:/\}/,keywords:y},U=i.inherit(w,{illegal:/\n/}),G={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},i.BACKSLASH_ESCAPE,U]},L={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},w]},re=i.inherit(L,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},U]});w.contains=[L,G,N,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.C_BLOCK_COMMENT_MODE],U.contains=[re,G,A,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,i.inherit(i.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const H={variants:[x,L,G,N,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},P={begin:"<",end:">",contains:[{beginKeywords:"in out"},m]},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"},m,P,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[m,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[m,P,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,P],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 zu=s,zu}var Uu,ig;function F_(){if(ig)return Uu;ig=1;const s=p=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:p.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:p.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function m(p){const b=p.regex,v=s(p),_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",N=/@-?\w[\w]*(-\w+)*/,A="[a-zA-Z-][a-zA-Z0-9_-]*",w=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[v.BLOCK_COMMENT,_,v.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+A,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+d.join("|")+")"},{begin:":(:)?("+g.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,...w,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...w,{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:x,attribute:u.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...w,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b"}]}}return Uu=m,Uu}var Bu,lg;function K_(){if(lg)return Bu;lg=1;function s(i){const r=i.regex,l={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},u={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},d={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},g={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},y={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},m=/[A-Za-z][A-Za-z0-9+.-]*/,p={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,m,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},b={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},v={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},_=i.inherit(b,{contains:[]}),x=i.inherit(v,{contains:[]});b.contains.push(x),v.contains.push(_);let N=[l,p];return[b,v,_,x].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,g,u,b,v,{className:"quote",begin:"^>\\s+",contains:N,end:"$"},d,p,y,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Bu=s,Bu}var ju,sg;function P_(){if(sg)return ju;sg=1;function s(i){const r=i.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return ju=s,ju}var Iu,rg;function Z_(){if(rg)return Iu;rg=1;function s(i){const r=i.regex,l="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",u=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),d=r.concat(u,/(::\w+)*/),y={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},m={className:"doctag",begin:"@[A-Za-z]+"},p={begin:"#<",end:">"},b=[i.COMMENT("#","$",{contains:[m]}),i.COMMENT("^=begin","^=end",{contains:[m],relevance:10}),i.COMMENT("^__END__",i.MATCH_NOTHING_RE)],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]})]}]},x="[1-9](_?[0-9])*|0",N="[0-9](_?[0-9])*",A={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${N}))?([eE][+-]?(${N})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},w={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:y}]},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:[w]},{begin:"::"},{className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[_,{begin:l}],relevance:0},A,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:y},{begin:"("+i.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[i.BACKSLASH_ESCAPE,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(p,b),relevance:0}].concat(p,b);v.contains=le,w.contains=le;const K=[{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(p),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:y,illegal:/\/\*/,contains:[i.SHEBANG({binary:"ruby"})].concat(K).concat(b).concat(le)}}return Iu=s,Iu}var Hu,og;function X_(){if(og)return Hu;og=1;function s(i){const g={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:g,illegal:"</",contains:[i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{className:"string",variants:[i.QUOTE_STRING_MODE,i.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[i.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:g,illegal:/["']/}]}]}}return Hu=s,Hu}var qu,cg;function Q_(){if(cg)return qu;cg=1;function s(i){const r=i.regex,l=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[i.HASH_COMMENT_MODE,i.QUOTE_STRING_MODE,i.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:r.concat(l,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return qu=s,qu}var Gu,ug;function V_(){if(ug)return Gu;ug=1;function s(i){const r=i.regex,l={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:i.NUMBER_RE}]},u=i.COMMENT();u.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const d={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},g={className:"literal",begin:/\bon|off|true|false|yes|no\b/},y={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},m={begin:/\[/,end:/\]/,contains:[u,g,d,y,l,"self"],relevance:0},p=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,_=r.either(p,b,v),x=r.concat(_,"(\\s*\\.\\s*",_,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[u,{className:"section",begin:/\[+/,end:/\]+/},{begin:x,className:"attr",starts:{end:/$/,contains:[u,m,g,d,y,l]}}]}}return Gu=s,Gu}var $u,fg;function J_(){if(fg)return $u;fg=1;var s="[0-9](_*[0-9])*",i=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(g,y,m){return m===-1?"":g.replace(y,p=>u(g,y,m-1))}function d(g){const y=g.regex,m="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",p="(?:(?:\\s*\\[\\s*])+)?",b=m+"<@@@>"+p,_="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",x=u("(?:\\s*<\\s*"+_+"(?:\\s*,\\s*"+_+")*\\s*>)?",/<@@@>/g,2),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"]},L={className:"meta",begin:"@"+m,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},re={className:"params",begin:/\(/,end:/\)/,keywords:G,relevance:0,contains:[g.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:G,illegal:/<\/|#/,contains:[g.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[g.BACKSLASH_ESCAPE]},g.APOS_STRING_MODE,g.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,m],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[m,y.concat(x,p,/\s+/),m,p,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,m],className:{1:"keyword",3:"title.class"},contains:[re,g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE]},{begin:[m,y.concat(x,p,/\s+/),m,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:G,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:G,relevance:0,contains:[L,g.APOS_STRING_MODE,g.QUOTE_STRING_MODE,l,g.C_BLOCK_COMMENT_MODE]},g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE]},l,L]}}return $u=d,$u}var Yu,dg;function W_(){if(dg)return Yu;dg=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",i=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],l=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],d=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],g=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(d,l,u);function m(p){const b=p.regex,v=(me,{after:Oe})=>{const Ee="</"+me[0].slice(1);return me.input.indexOf(Ee,Oe)!==-1},_=s,x={begin:"<>",end:"</>"},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,A={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(me,Oe)=>{const Ee=me[0].length+me.index,He=me.input[Ee];if(He==="<"||He===","){Oe.ignoreMatch();return}He===">"&&(v(me,{after:Ee})||Oe.ignoreMatch());let We;const ke=me.input.substring(Ee);if(We=ke.match(/^\s*=/)){Oe.ignoreMatch();return}if((We=ke.match(/^\s+extends\s+/))&&We.index===0){Oe.ignoreMatch();return}}},w={$pattern:s,keyword:i,literal:r,built_in:y,"variable.language":g},U="[0-9](_?[0-9])*",G=`\\.(${U})`,L="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",re={className:"number",variants:[{begin:`(\\b(${L})((${G})|\\.)?|(${G}))[eE][+-]?(${U})\\b`},{begin:`\\b(${L})\\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:w,contains:[]},P={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,H],subLanguage:"xml"}},le={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,H],subLanguage:"css"}},k={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,H],subLanguage:"graphql"}},z={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,H]},K={className:"comment",variants:[p.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:_+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),p.C_BLOCK_COMMENT_MODE,p.C_LINE_COMMENT_MODE]},fe=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,P,le,k,z,{match:/\$\d+/},re];H.contains=fe.concat({begin:/\{/,end:/\}/,keywords:w,contains:["self"].concat(fe)});const we=[].concat(K,H.contains),Ae=we.concat([{begin:/(\s*)\(/,end:/\)/,keywords:w,contains:["self"].concat(we)}]),he={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:Ae},I={variants:[{match:[/class/,/\s+/,_,/\s+/,/extends/,/\s+/,b.concat(_,"(",b.concat(/\./,_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,_],scope:{1:"keyword",3:"title.class"}}]},ne={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},oe={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ve={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[he],illegal:/%/},Se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function S(me){return b.concat("(?!",me.join("|"),")")}const D={match:b.concat(/\b/,S([...d,"super","import","await"].map(me=>`${me}\\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:/\(\)/},he]},pe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",xe={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(pe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[he]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:w,exports:{PARAMS_CONTAINS:Ae,CLASS_REFERENCE:ne},illegal:/#(?![$_A-Za-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),oe,p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,P,le,k,z,K,{match:/\$\d+/},re,ne,{scope:"attr",match:_+b.lookahead(":"),relevance:0},xe,{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[K,p.REGEXP_MODE,{className:"function",begin:pe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:Ae}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:N},{begin:A.begin,"on:begin":A.isTrulyOpeningTag,end:A.end}],subLanguage:"xml",contains:[{begin:A.begin,end:A.end,skip:!0,contains:["self"]}]}]},ve,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[he,p.inherit(p.TITLE_MODE,{begin:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[he]},D,Se,I,ue,{match:/\$[(.]/}]}}return Yu=m,Yu}var Fu,hg;function e0(){if(hg)return Fu;hg=1;const i={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0};function r(l){const u={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},d={match:/[{}[\],:]/,className:"punctuation",relevance:0},g=["true","false","null"],y={scope:"literal",beginKeywords:g.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:g},contains:[u,d,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,i,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Fu=r,Fu}var Ku,pg;function t0(){if(pg)return Ku;pg=1;var s="[0-9](_*[0-9])*",i=`\\.(${s})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",l={className:"number",variants:[{begin:`(\\b(${s})((${i})|\\.)?|(${i}))[eE][+-]?(${s})[fFdD]?\\b`},{begin:`\\b(${s})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[fFdD]?\\b`},{begin:`\\b(${s})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${s})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function u(d){const g={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},y={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},m={className:"symbol",begin:d.UNDERSCORE_IDENT_RE+"@"},p={className:"subst",begin:/\$\{/,end:/\}/,contains:[d.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+d.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,p]},{begin:"'",end:"'",illegal:/\n/,contains:[d.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[d.BACKSLASH_ESCAPE,b,p]}]};p.contains.push(v);const _={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+d.UNDERSCORE_IDENT_RE+")?"},x={className:"meta",begin:"@"+d.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[d.inherit(v,{className:"string"}),"self"]}]},N=l,A=d.COMMENT("/\\*","\\*/",{contains:[d.C_BLOCK_COMMENT_MODE]}),w={variants:[{className:"type",begin:d.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},U=w;return U.variants[1].contains=[w],w.variants[1].contains=[U],{name:"Kotlin",aliases:["kt","kts","ktm","ktx"],keywords:g,contains:[d.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),d.C_LINE_COMMENT_MODE,A,y,m,_,x,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:g,relevance:5,contains:[{begin:d.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[d.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:g,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[w,d.C_LINE_COMMENT_MODE,A],relevance:0},d.C_LINE_COMMENT_MODE,A,_,x,v,d.C_NUMBER_MODE]},A]},{begin:[/class|interface|trait/,/\s+/,d.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},d.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},_,x]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
167
|
+
`},N]}}return Ku=u,Ku}var Pu,mg;function n0(){if(mg)return Pu;mg=1;const s=b=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:b.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:b.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),m=d.concat(g).sort().reverse();function p(b){const v=s(b),_=m,x="and or not only",N="[\\w-]+",A="("+N+"|@\\{"+N+"\\})",w=[],U=[],G=function(we){return{className:"string",begin:"~?"+we+".*?"+we}},L=function(we,Ae,he){return{className:we,begin:Ae,relevance:he}},re={$pattern:/[a-z-]+/,keyword:x,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,L("variable","@@?"+N,10),L("variable","@\\{"+N+"\\}"),L("built_in","~?`[^`]*?`"),{className:"attribute",begin:N+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},v.IMPORTANT,{beginKeywords:"and not"},v.FUNCTION_DISPATCH);const P=U.concat({begin:/\{/,end:/\}/,contains:w}),le={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(U)},k={begin:A+"\\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}}]},z={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}},Q={className:"variable",variants:[{begin:"@"+N+"\\s*:",relevance:15},{begin:"@"+N}],starts:{end:"[;}]",returnEnd:!0,contains:P}},K={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:A,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,le,L("keyword","all\\b"),L("variable","@\\{"+N+"\\}"),{begin:"\\b("+l.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,L("selector-tag",A,0),L("selector-id","#"+A),L("selector-class","\\."+A,0),L("selector-tag","&",0),v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+d.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+g.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:P},{begin:"!important"},v.FUNCTION_DISPATCH]},fe={begin:N+`:(:)?(${_.join("|")})`,returnBegin:!0,contains:[K]};return w.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,z,Q,fe,k,K,le,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:w}}return Pu=p,Pu}var Zu,gg;function a0(){if(gg)return Zu;gg=1;function s(i){const r="\\[=*\\[",l="\\]=*\\]",u={begin:r,end:l,contains:["self"]},d=[i.COMMENT("--(?!"+r+")","$"),i.COMMENT("--"+r,l,{contains:[u],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:i.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local global not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:d.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[i.inherit(i.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:d}].concat(d)},i.C_NUMBER_MODE,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{className:"string",begin:r,end:l,contains:[u],relevance:5}])}}return Zu=s,Zu}var Xu,bg;function i0(){if(bg)return Xu;bg=1;function s(i){const r={className:"variable",variants:[{begin:"\\$\\("+i.UNDERSCORE_IDENT_RE+"\\)",contains:[i.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},l={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,r]},u={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[r,l]},d={begin:"^"+i.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},g={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},y={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[i.HASH_COMMENT_MODE,r,l,u,d,g,y]}}return Xu=s,Xu}var Qu,yg;function l0(){if(yg)return Qu;yg=1;function s(i){const r=i.regex,l=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],u=/[dualxmsipngr]{0,12}/,d={$pattern:/[\w.]+/,keyword:l.join(" ")},g={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:d},y={begin:/->\{/,end:/\}/},m={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},p={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[m]},b={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},v=[i.BACKSLASH_ESCAPE,g,p],_=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(w,U,G="\\1")=>{const L=G==="\\1"?G:r.concat(G,U);return r.concat(r.concat("(?:",w,")"),U,/(?:\\.|[^\\\/])*?/,L,/(?:\\.|[^\\\/])*?/,G,u)},N=(w,U,G)=>r.concat(r.concat("(?:",w,")"),U,/(?:\\.|[^\\\/])*?/,G,u),A=[p,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:x("s|tr|y",r.either(..._,{capture:!0}))},{begin:x("s|tr|y","\\(","\\)")},{begin:x("s|tr|y","\\[","\\]")},{begin:x("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:N("(?:m|qr)?",/\//,/\//)},{begin:N("m|qr",r.either(..._,{capture:!0}),/\1/)},{begin:N("m|qr",/\(/,/\)/)},{begin:N("m|qr",/\[/,/\]/)},{begin:N("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[i.TITLE_MODE,m]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[i.TITLE_MODE,m,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return g.contains=A,y.contains=A,{name:"Perl",aliases:["pl","pm"],keywords:d,contains:A}}return Qu=s,Qu}var Vu,vg;function s0(){if(vg)return Vu;vg=1;function s(i){const r={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},l=/[a-zA-Z@][a-zA-Z0-9_]*/,m={"variable.language":["this","super"],$pattern:l,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},p={$pattern:l,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:m,illegal:"</",contains:[r,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.C_NUMBER_MODE,i.QUOTE_STRING_MODE,i.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+p.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:p,contains:[i.UNDERSCORE_TITLE_MODE]},{begin:"\\."+i.UNDERSCORE_IDENT_RE,relevance:0}]}}return Vu=s,Vu}var Ju,Eg;function r0(){if(Eg)return Ju;Eg=1;function s(i){const r=i.regex,l=/(?![A-Za-z0-9])(?![$])/,u=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,l),d=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,l),g=r.concat(/[A-Z]+/,l),y={scope:"variable",match:"\\$+"+u},m={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},p={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=i.inherit(i.APOS_STRING_MODE,{illegal:null}),v=i.inherit(i.QUOTE_STRING_MODE,{illegal:null,contains:i.QUOTE_STRING_MODE.contains.concat(p)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:i.QUOTE_STRING_MODE.contains.concat(p),"on:begin":(he,I)=>{I.data._beginMatch=he[1]||he[2]},"on:end":(he,I)=>{I.data._beginMatch!==he[1]&&I.ignoreMatch()}},x=i.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),N=`[
|
|
168
|
+
]`,A={scope:"string",variants:[v,b,_,x]},w={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},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"],L=["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:(he=>{const I=[];return he.forEach(ne=>{I.push(ne),ne.toLowerCase()===ne?I.push(ne.toUpperCase()):I.push(ne.toLowerCase())}),I})(U),built_in:L},P=he=>he.map(I=>I.replace(/\|\d+$/,"")),le={variants:[{match:[/new/,r.concat(N,"+"),r.concat("(?!",P(L).join("\\b|"),"\\b)"),d],scope:{1:"keyword",4:"title.class"}}]},k=r.concat(u,"\\b(?!\\()"),z={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"}}]},Q={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},K={relevance:0,begin:/\(/,end:/\)/,keywords:H,contains:[Q,y,z,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,A,w,le]},fe={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",P(G).join("\\b|"),"|",P(L).join("\\b|"),"\\b)"),u,r.concat(N,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[K]};K.contains.push(fe);const we=[Q,z,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,A,w,le],Ae={begin:r.concat(/#\[\s*\\?/,r.either(d,g)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:U,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:U,keyword:["new","array"]},contains:["self",...we]},...we,{scope:"meta",variants:[{match:d},{match:g}]}]};return{case_insensitive:!1,keywords:H,contains:[Ae,i.HASH_COMMENT_MODE,i.COMMENT("//","$"),i.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:i.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},m,{scope:"variable.language",match:/\$this\b/},y,fe,z,{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",Ae,y,z,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,A,w]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},i.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[i.inherit(i.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},i.UNDERSCORE_TITLE_MODE]},A,w]}}return Ju=s,Ju}var Wu,_g;function o0(){if(_g)return Wu;_g=1;function s(i){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},i.inherit(i.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),i.inherit(i.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return Wu=s,Wu}var ef,Sg;function c0(){if(Sg)return ef;Sg=1;function s(i){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return ef=s,ef}var tf,Tg;function u0(){if(Tg)return tf;Tg=1;function s(i){const r=i.regex,l=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],m={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},p={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:m,illegal:/#/},v={begin:/\{\{/,relevance:0},_={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,p],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,p],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,p,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,p,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]},x="[0-9](_?[0-9])*",N=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,A=`\\b|${u.join("|")}`,w={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${N}))[eE][+-]?(${x})[jJ]?(?=${A})`},{begin:`(${N})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${A})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${A})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${A})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${A})`},{begin:`\\b(${x})[jJ](?=${A})`}]},U={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:m,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:m,contains:["self",p,w,_,i.HASH_COMMENT_MODE]}]};return b.contains=[_,w,p],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:m,illegal:/(<\/|\?)|=>/,contains:[p,w,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},_,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:[w,G,_]}]}}return tf=s,tf}var nf,Ng;function f0(){if(Ng)return nf;Ng=1;function s(i){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return nf=s,nf}var af,xg;function d0(){if(xg)return af;xg=1;function s(i){const r=i.regex,l=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,u=r.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),d=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,g=r.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:l,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[i.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:r.lookahead(r.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:l},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),i.HASH_COMMENT_MODE,{scope:"string",contains:[i.BACKSLASH_ESCAPE],variants:[i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),i.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[d,u]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,u]},{scope:{1:"punctuation",2:"number"},match:[g,u]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,u]}]},{scope:{3:"operator"},match:[l,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:d},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:g},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return af=s,af}var lf,wg;function h0(){if(wg)return lf;wg=1;function s(i){const r=i.regex,l=/(r#)?/,u=r.concat(l,i.UNDERSCORE_IDENT_RE),d=r.concat(l,i.IDENT_RE),g={scope:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,d,r.lookahead(/\s*\(/))},y="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",m=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],p=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],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:m,literal:p,built_in:b},illegal:"</",contains:[i.C_LINE_COMMENT_MODE,i.COMMENT("/\\*","\\*/",{contains:["self"]}),i.inherit(i.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+y},{begin:"\\b0o([0-7_]+)"+y},{begin:"\\b0x([A-Fa-f0-9_]+)"+y},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+y}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:"keyword",3:"keyword"}},{begin:[/fn/,/\s+/,u],scope:{1:"keyword",3:"title.function"}},{scope:"meta",begin:"#!?\\[",end:"\\]",contains:[{scope:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,u],scope:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,u,/\s+/,/in/],scope:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,u],scope:{1:"keyword",3:"title.class"}},{begin:i.IDENT_RE+"::",keywords:{keyword:"Self",built_in:b,type:v}},{scope:"punctuation",begin:"->"},g]}}return lf=s,lf}var sf,Ag;function p0(){if(Ag)return sf;Ag=1;const s=p=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:p.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:p.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),y=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function m(p){const b=s(p),v=g,_=d,x="@[a-z-]+",N="and or not only",w={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},w,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+y.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,w,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,p.QUOTE_STRING_MODE,p.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:N,attribute:u.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},w,p.QUOTE_STRING_MODE,p.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return sf=m,sf}var rf,Rg;function m0(){if(Rg)return rf;Rg=1;function s(i){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return rf=s,rf}var of,Og;function g0(){if(Og)return of;Og=1;function s(i){const r=i.regex,l=i.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},d={begin:/"/,end:/"/,contains:[{match:/""/}]},g=["true","false","unknown"],y=["double precision","large object","with timezone","without timezone"],m=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],p=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],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"],x=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],N=v,A=[...b,...p].filter(P=>!v.includes(P)),w={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 L(P){return r.concat(/\b/,r.either(...P.map(le=>le.replace(/\s+/,"\\s+"))),/\b/)}const re={scope:"keyword",match:L(x),relevance:0};function H(P,{exceptions:le,when:k}={}){const z=k;return le=le||[],P.map(Q=>Q.match(/\|\d+$/)||le.includes(Q)?Q:z(Q)?`${Q}|0`:Q)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:H(A,{when:P=>P.length<3}),literal:g,type:m,built_in:_},contains:[{scope:"type",match:L(y)},re,G,w,u,d,i.C_NUMBER_MODE,i.C_BLOCK_COMMENT_MODE,l,U]}}return of=s,of}var cf,kg;function b0(){if(kg)return cf;kg=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(Q=>s(Q)).join("")}function l(k){const z=k[k.length-1];return typeof z=="object"&&z.constructor===Object?(k.splice(k.length-1,1),z):{}}function u(...k){return"("+(l(k).capture?"":"?:")+k.map(K=>s(K)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const d=k=>r(/\b/,k,/\w$/.test(k)?/\b/:/\B/),g=["Protocol","Type"].map(d),y=["init","self"].map(d),m=["Any","Self"],p=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],b=["false","nil","true"],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"],x=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],N=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),A=u(N,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),w=r(N,A,"*"),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]/),L=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\(/,L,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],P=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function le(k){const z={match:/\s+/,relevance:0},Q=k.COMMENT("/\\*","\\*/",{contains:["self"]}),K=[k.C_LINE_COMMENT_MODE,Q],fe={match:[/\./,u(...g,...y)],className:{2:"keyword"}},we={match:r(/\./,u(...p)),relevance:0},Ae=p.filter(je=>typeof je=="string").concat(["_|0"]),he=p.filter(je=>typeof je!="string").concat(m).map(d),I={variants:[{className:"keyword",match:u(...he,...y)}]},ne={$pattern:u(/\b\w+/,/#\w+/),keyword:Ae.concat(_),literal:b},oe=[fe,we,I],ve={match:r(/\./,u(...x)),relevance:0},Se={className:"built_in",match:r(/\b/,u(...x),/(?=\()/)},S=[ve,Se],D={match:/->/,relevance:0},q={className:"operator",relevance:0,variants:[{match:w},{match:`\\.(\\.|${A})+`}]},ue=[D,q],pe="([0-9]_*)+",xe="([0-9a-fA-F]_*)+",me={className:"number",relevance:0,variants:[{match:`\\b(${pe})(\\.(${pe}))?([eE][+-]?(${pe}))?\\b`},{match:`\\b0x(${xe})(\\.(${xe}))?([pP][+-]?(${pe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Oe=(je="")=>({className:"subst",variants:[{match:r(/\\/,je,/[0\\tnr"']/)},{match:r(/\\/,je,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ee=(je="")=>({className:"subst",match:r(/\\/,je,/[\t ]*(?:[\r\n]|\r\n)/)}),He=(je="")=>({className:"subst",label:"interpol",begin:r(/\\/,je,/\(/),end:/\)/}),We=(je="")=>({begin:r(je,/"""/),end:r(/"""/,je),contains:[Oe(je),Ee(je),He(je)]}),ke=(je="")=>({begin:r(je,/"/),end:r(/"/,je),contains:[Oe(je),He(je)]}),At={className:"string",variants:[We(),We("#"),We("##"),We("###"),ke(),ke("#"),ke("##"),ke("###")]},Ge=[k.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[k.BACKSLASH_ESCAPE]}],Nn={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Ge},nt=je=>{const cn=r(je,/\//),Qt=r(/\//,je);return{begin:cn,end:Qt,contains:[...Ge,{scope:"comment",begin:`#(?!.*${Qt})`,end:/$/}]}},xn={scope:"regexp",variants:[nt("###"),nt("##"),nt("#"),Nn]},rn={match:r(/`/,L,/`/)},zt={className:"variable",match:/\$\d+/},qn={className:"variable",match:`\\$${G}+`},Jt=[rn,zt,qn],ca={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:P,contains:[...ue,me,At]}]}},Vn={scope:"keyword",match:r(/@/,u(...H),i(u(/\(/,/\s+/)))},Ke={scope:"meta",match:r(/@/,L)},Ut=[ca,Vn,Ke],mt={match:i(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,G,"+")},{className:"type",match:re,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,i(re)),relevance:0}]},bn={begin:/</,end:/>/,keywords:ne,contains:[...K,...oe,...Ut,D,mt]};mt.contains.push(bn);const yn={match:r(L,/\s*:/),keywords:"_|0",relevance:0},kn={begin:/\(/,end:/\)/,relevance:0,keywords:ne,contains:["self",yn,...K,xn,...oe,...S,...ue,me,At,...Jt,...Ut,mt]},Mn={begin:/</,end:/>/,keywords:"repeat each",contains:[...K,mt]},Cn={begin:u(i(r(L,/\s*:/)),i(r(L,/\s+/,L,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:L}]},Dn={begin:/\(/,end:/\)/,keywords:ne,contains:[Cn,...K,...oe,...ue,me,At,...Ut,mt,kn],endsParent:!0,illegal:/["']/},on={match:[/(func|macro)/,/\s+/,u(rn.match,L,w)],className:{1:"keyword",3:"title.function"},contains:[Mn,Dn,z],illegal:[/\[/,/%/]},St={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Mn,Dn,z],illegal:/\[|%/},Wt={match:[/operator/,/\s+/,w],className:{1:"keyword",3:"title"}},Nt={begin:[/precedencegroup/,/\s+/,re],className:{1:"keyword",3:"title"},contains:[mt],keywords:[...v,...b],end:/}/},Gn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Ln={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},wn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,L,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:ne,contains:[Mn,...oe,{begin:/:/,end:/\{/,keywords:ne,contains:[{scope:"title.class.inherited",match:re},...oe],relevance:0}]};for(const je of At.variants){const cn=je.contains.find(Ct=>Ct.label==="interpol");cn.keywords=ne;const Qt=[...oe,...S,...ue,me,At,...Jt];cn.contains=[...Qt,{begin:/\(/,end:/\)/,contains:["self",...Qt]}]}return{name:"Swift",keywords:ne,contains:[...K,on,St,Gn,Ln,wn,Wt,Nt,{beginKeywords:"import",end:/$/,contains:[...K],relevance:0},xn,...oe,...S,...ue,me,At,...Jt,...Ut,mt,kn]}}return cf=le,cf}var uf,Mg;function y0(){if(Mg)return uf;Mg=1;function s(i){const r="true false yes no null",l="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},d={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},g={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},y={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[i.BACKSLASH_ESCAPE,d]},m=i.inherit(y,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),x={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},N={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},A={begin:/\{/,end:/\}/,contains:[N],illegal:"\\n",relevance:0},w={begin:"\\[",end:"\\]",contains:[N],illegal:"\\n",relevance:0},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}},x,{className:"number",begin:i.C_NUMBER_RE+"\\b",relevance:0},A,w,g,y],G=[...U];return G.pop(),G.push(m),N.contains=G,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:U}}return uf=s,uf}var ff,Cg;function v0(){if(Cg)return ff;Cg=1;const s="[A-Za-z$_][0-9A-Za-z$_]*",i=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],l=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],u=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],d=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],g=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],y=[].concat(d,l,u);function m(b){const v=b.regex,_=(Oe,{after:Ee})=>{const He="</"+Oe[0].slice(1);return Oe.input.indexOf(He,Ee)!==-1},x=s,N={begin:"<>",end:"</>"},A=/<[A-Za-z0-9\\._:-]+\s*\/>/,w={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Oe,Ee)=>{const He=Oe[0].length+Oe.index,We=Oe.input[He];if(We==="<"||We===","){Ee.ignoreMatch();return}We===">"&&(_(Oe,{after:He})||Ee.ignoreMatch());let ke;const At=Oe.input.substring(He);if(ke=At.match(/^\s*=/)){Ee.ignoreMatch();return}if((ke=At.match(/^\s+extends\s+/))&&ke.index===0){Ee.ignoreMatch();return}}},U={$pattern:s,keyword:i,literal:r,built_in:y,"variable.language":g},G="[0-9](_?[0-9])*",L=`\\.(${G})`,re="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",H={className:"number",variants:[{begin:`(\\b(${re})((${L})|\\.)?|(${L}))[eE][+-]?(${G})\\b`},{begin:`\\b(${re})\\b((${L})\\b|\\.)?|(${L})\\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},P={className:"subst",begin:"\\$\\{",end:"\\}",keywords:U,contains:[]},le={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,P],subLanguage:"xml"}},k={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,P],subLanguage:"css"}},z={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,P],subLanguage:"graphql"}},Q={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,P]},fe={className:"comment",variants:[b.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:x+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),b.C_BLOCK_COMMENT_MODE,b.C_LINE_COMMENT_MODE]},we=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,le,k,z,Q,{match:/\$\d+/},H];P.contains=we.concat({begin:/\{/,end:/\}/,keywords:U,contains:["self"].concat(we)});const Ae=[].concat(fe,P.contains),he=Ae.concat([{begin:/(\s*)\(/,end:/\)/,keywords:U,contains:["self"].concat(Ae)}]),I={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:U,contains:he},ne={variants:[{match:[/class/,/\s+/,x,/\s+/,/extends/,/\s+/,v.concat(x,"(",v.concat(/\./,x),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,x],scope:{1:"keyword",3:"title.class"}}]},oe={relevance:0,match: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]}},ve={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Se={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[I],illegal:/%/},S={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function D(Oe){return v.concat("(?!",Oe.join("|"),")")}const q={match:v.concat(/\b/,D([...d,"super","import","await"].map(Oe=>`${Oe}\\s*\\(`)),x,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},ue={begin:v.concat(/\./,v.lookahead(v.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},pe={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},I]},xe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",me={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(xe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[I]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:U,exports:{PARAMS_CONTAINS:he,CLASS_REFERENCE:oe},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),ve,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,le,k,z,Q,fe,{match:/\$\d+/},H,oe,{scope:"attr",match:x+v.lookahead(":"),relevance:0},me,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[fe,b.REGEXP_MODE,{className:"function",begin:xe,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:he}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:N.begin,end:N.end},{match:A},{begin:w.begin,"on:begin":w.isTrulyOpeningTag,end:w.end}],subLanguage:"xml",contains:[{begin:w.begin,end:w.end,skip:!0,contains:["self"]}]}]},Se,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[I,b.inherit(b.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},ue,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[I]},q,S,ne,pe,{match:/\$[(.]/}]}}function p(b){const v=b.regex,_=m(b),x=s,N=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],A={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},w={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:N},contains:[_.exports.CLASS_REFERENCE]},U={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},G=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],L={$pattern:s,keyword:i.concat(G),literal:r,built_in:y.concat(N),"variable.language":g},re={className:"meta",begin:"@"+x},H=(z,Q,K)=>{const fe=z.contains.findIndex(we=>we.label===Q);if(fe===-1)throw new Error("can not find mode to replace");z.contains.splice(fe,1,K)};Object.assign(_.keywords,L),_.exports.PARAMS_CONTAINS.push(re);const P=_.contains.find(z=>z.scope==="attr"),le=Object.assign({},P,{match:v.concat(x,v.lookahead(/\s*\?:/))});_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,P,le]),_.contains=_.contains.concat([re,A,w,le]),H(_,"shebang",b.SHEBANG()),H(_,"use_strict",U);const k=_.contains.find(z=>z.label==="func.def");return k.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return ff=p,ff}var df,Dg;function E0(){if(Dg)return df;Dg=1;function s(i){const r=i.regex,l={className:"string",begin:/"(""|[^/n])"C\b/},u={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},d=/\d{1,2}\/\d{1,2}\/\d{4}/,g=/\d{4}-\d{1,2}-\d{1,2}/,y=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,m=/\d{1,2}(:\d{1,2}){1,2}/,p={className:"literal",variants:[{begin:r.concat(/# */,r.either(g,d),/ *#/)},{begin:r.concat(/# */,m,/ *#/)},{begin:r.concat(/# */,y,/ *#/)},{begin:r.concat(/# */,r.either(g,d),/ +/,r.either(y,m),/ *#/)}]},b={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},v={className:"label",begin:/^\w+:/},_=i.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),x=i.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[l,u,p,b,v,_,x,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[x]}]}}return df=s,df}var hf,Lg;function _0(){if(Lg)return hf;Lg=1;function s(i){i.regex;const r=i.COMMENT(/\(;/,/;\)/);r.contains.push("self");const l=i.COMMENT(/;;/,/$/),u=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],d={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},g={className:"variable",begin:/\$[\w_]+/},y={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},m={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},p={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[l,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},g,y,d,i.QUOTE_STRING_MODE,p,b,m]}}return hf=s,hf}var pf,zg;function S0(){if(zg)return pf;zg=1;var s=I_();return s.registerLanguage("xml",H_()),s.registerLanguage("bash",q_()),s.registerLanguage("c",G_()),s.registerLanguage("cpp",$_()),s.registerLanguage("csharp",Y_()),s.registerLanguage("css",F_()),s.registerLanguage("markdown",K_()),s.registerLanguage("diff",P_()),s.registerLanguage("ruby",Z_()),s.registerLanguage("go",X_()),s.registerLanguage("graphql",Q_()),s.registerLanguage("ini",V_()),s.registerLanguage("java",J_()),s.registerLanguage("javascript",W_()),s.registerLanguage("json",e0()),s.registerLanguage("kotlin",t0()),s.registerLanguage("less",n0()),s.registerLanguage("lua",a0()),s.registerLanguage("makefile",i0()),s.registerLanguage("perl",l0()),s.registerLanguage("objectivec",s0()),s.registerLanguage("php",r0()),s.registerLanguage("php-template",o0()),s.registerLanguage("plaintext",c0()),s.registerLanguage("python",u0()),s.registerLanguage("python-repl",f0()),s.registerLanguage("r",d0()),s.registerLanguage("rust",h0()),s.registerLanguage("scss",p0()),s.registerLanguage("shell",m0()),s.registerLanguage("sql",g0()),s.registerLanguage("swift",b0()),s.registerLanguage("yaml",y0()),s.registerLanguage("typescript",v0()),s.registerLanguage("vbnet",E0()),s.registerLanguage("wasm",_0()),s.HighlightJS=s,s.default=s,pf=s,pf}var T0=S0();const Mb=bb(T0),N0={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},x0=2e5,Cb="http://www.w3.org/1999/xhtml";function w0(s){for(const i of s.querySelectorAll(".d2h-file-wrapper")){const r=A0(i.dataset.lang??"");if(r)for(const l of R0(i))Ug(l.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),Ug(l.filter(u=>u.kind!=="del"),()=>!0,r)}}function A0(s){const i=N0[s]??j_(s);return i==="plaintext"||!Mb.getLanguage(i)?null:i}function R0(s){const i=[];let r=[];for(const l of s.querySelectorAll(".d2h-diff-tbody > tr")){const u=l.querySelector("td:last-child"),d=u==null?void 0:u.querySelector(".d2h-code-line-ctn");if(!u||!d){r.length&&i.push(r),r=[];continue}const g=u.classList.contains("d2h-ins")?"ins":u.classList.contains("d2h-del")?"del":"cntx";r.push({kind:g,ctn:d})}return r.length&&i.push(r),i}function Ug(s,i,r){if(s.filter(i).length===0)return;const u=s.map(g=>g.ctn.textContent??"").join(`
|
|
169
|
+
`);if(!u.trim()||u.length>x0)return;const d=k0(Mb.highlight(u,{language:r,ignoreIllegals:!0}).value);s.forEach((g,y)=>{const m=d[y];m===void 0||!i(g)||O0(g.ctn,m)})}function O0(s,i){const r=Vm(s);let l=i;if(r.length){const u=document.createElementNS(Cb,"div");u.innerHTML=i,l=U_(r,Vm(u),s.textContent??"")}s.classList.add("hljs"),s.innerHTML=l}function k0(s){const i=document.createElementNS(Cb,"div");i.innerHTML=s;const r=[],l=[];let u="";const d=g=>{if(g.nodeType===Node.TEXT_NODE){(g.textContent??"").split(`
|
|
170
|
+
`).forEach((p,b)=>{b>0&&(u+="</span>".repeat(l.length),r.push(u),u=l.join("")),u+=M0(p)});return}const y=`<span class="${g.className}">`;u+=y,l.push(y),g.childNodes.forEach(d),l.pop(),u+="</span>"};return i.childNodes.forEach(d),r.push(u),r}function M0(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}const C0={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"]},D0={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}]},L0={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function Ze({name:s,size:i=13}){const r=[...C0[s]??[],...L0[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:[(D0[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 z0({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 Va({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 Bg(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 U0(s){if(Array.isArray(s))return s}function B0(s,i){var r=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(r!=null){var l,u,d,g,y=[],m=!0,p=!1;try{if(d=(r=r.call(s)).next,i!==0)for(;!(m=(l=d.call(r)).done)&&(y.push(l.value),y.length!==i);m=!0);}catch(b){p=!0,u=b}finally{try{if(!m&&r.return!=null&&(g=r.return(),Object(g)!==g))return}finally{if(p)throw u}}return y}}function j0(){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 I0(s,i){return U0(s)||B0(s,i)||H0(s,i)||j0()}function H0(s,i){if(s){if(typeof s=="string")return Bg(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)?Bg(s,i):void 0}}const Db=Object.entries,jg=Object.setPrototypeOf,q0=Object.isFrozen,G0=Object.getPrototypeOf,$0=Object.getOwnPropertyDescriptor;let mn=Object.freeze,gn=Object.seal,Ul=Object.create,Lb=typeof Reflect<"u"&&Reflect,Nf=Lb.apply,xf=Lb.construct;mn||(mn=function(i){return i});gn||(gn=function(i){return i});Nf||(Nf=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)});xf||(xf=function(i){for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return new i(...l)});const Dl=Zt(Array.prototype.forEach),Y0=Zt(Array.prototype.lastIndexOf),Ig=Zt(Array.prototype.pop),Ll=Zt(Array.prototype.push),F0=Zt(Array.prototype.splice),Di=Array.isArray,Bs=Zt(String.prototype.toLowerCase),mf=Zt(String.prototype.toString),Hg=Zt(String.prototype.match),Ls=Zt(String.prototype.replace),qg=Zt(String.prototype.indexOf),K0=Zt(String.prototype.trim),P0=Zt(Number.prototype.toString),Z0=Zt(Boolean.prototype.toString),Gg=typeof BigInt>"u"?null:Zt(BigInt.prototype.toString),$g=typeof Symbol>"u"?null:Zt(Symbol.prototype.toString),ln=Zt(Object.prototype.hasOwnProperty),zs=Zt(Object.prototype.toString),an=Zt(RegExp.prototype.test),Qi=X0(TypeError);function Zt(s){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return Nf(s,i,l)}}function X0(s){return function(){for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return xf(s,r)}}function it(s,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bs;if(jg&&jg(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&&(q0(i)||(i[l]=d),u=d)}s[u]=!0}return s}function Q0(s){for(let i=0;i<s.length;i++)ln(s,i)||(s[i]=null);return s}function Sn(s){const i=Ul(null);for(const l of Db(s)){var r=I0(l,2);const u=r[0],d=r[1];ln(s,u)&&(Di(d)?i[u]=Q0(d):d&&typeof d=="object"&&d.constructor===Object?i[u]=Sn(d):i[u]=d)}return i}function V0(s){switch(typeof s){case"string":return s;case"number":return P0(s);case"boolean":return Z0(s);case"bigint":return Gg?Gg(s):"0";case"symbol":return $g?$g(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=$0(s,i);if(l){if(l.get)return Zt(l.get);if(typeof l.value=="function")return Zt(l.value)}s=G0(s)}function r(){return null}return r}function J0(s){try{return an(s,""),!0}catch{return!1}}const Yg=mn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),gf=mn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),bf=mn(["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"]),W0=mn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),yf=mn(["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"]),eS=mn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fg=mn(["#text"]),Kg=mn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),vf=mn(["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"]),Pg=mn(["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"]),Jr=mn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tS=gn(/{{[\w\W]*|^[\w\W]*}}/g),nS=gn(/<%[\w\W]*|^[\w\W]*%>/g),aS=gn(/\${[\w\W]*/g),iS=gn(/^data-[\-\w.\u00B7-\uFFFF]+$/),lS=gn(/^aria-[\-\w]+$/),Zg=gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sS=gn(/^(?:\w+script|data):/i),rS=gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oS=gn(/^html$/i),cS=gn(/^[a-z][.\w]*(-[.\w]+)+$/i),Xg=gn(/<[/\w!]/g),Qg=gn(/<[/\w]/g),uS=gn(/<\/no(script|embed|frames)/i),fS=gn(/\/>/i),Qn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},dS=function(){return typeof window>"u"?null:window},hS=function(i,r){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let l=null;const u="data-tt-policy-suffix";r&&r.hasAttribute(u)&&(l=r.getAttribute(u));const d="dompurify"+(l?"#"+l:"");try{return i.createPolicy(d,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},Vg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ki=function(i,r,l,u){return ln(i,r)&&Di(i[r])?it(u.base?Sn(u.base):{},i[r],u.transform):l};function zb(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dS();const i=X=>zb(X);if(i.version="3.4.13",i.removed=[],!s||!s.document||s.document.nodeType!==Qn.document||!s.Element)return i.isSupported=!1,i;let r=s.document;const l=r,u=l.currentScript;s.DocumentFragment;const d=s.HTMLTemplateElement,g=s.Node,y=s.Element,m=s.NodeFilter,p=s.NamedNodeMap;p===void 0&&(s.NamedNodeMap||s.MozNamedAttrMap),s.HTMLFormElement;const b=s.DOMParser,v=s.trustedTypes,_=y.prototype,x=ma(_,"cloneNode"),N=ma(_,"remove"),A=ma(_,"nextSibling"),w=ma(_,"childNodes"),U=ma(_,"parentNode"),G=ma(_,"shadowRoot"),L=ma(_,"attributes"),re=g&&g.prototype?ma(g.prototype,"nodeType"):null,H=g&&g.prototype?ma(g.prototype,"nodeName"):null,P=g&&g.prototype?ma(g.prototype,"ownerDocument"):null;if(typeof d=="function"){const X=r.createElement("template");X.content&&X.content.ownerDocument&&(r=X.content.ownerDocument)}let le,k="",z,Q=!1,K=0;const fe=function(){if(K>0)throw Qi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},we=function(T){fe(),K++;try{return le.createHTML(T)}finally{K--}},Ae=function(T){fe(),K++;try{return le.createScriptURL(T)}finally{K--}},he=function(){return Q||(z=hS(v,u),Q=!0),z},I=r,ne=I.implementation,oe=I.createNodeIterator,ve=I.createDocumentFragment,Se=I.getElementsByTagName,S=l.importNode;let D=Vg();i.isSupported=typeof Db=="function"&&typeof U=="function"&&ne&&ne.createHTMLDocument!==void 0;const q=tS,ue=nS,pe=aS,xe=iS,me=lS,Oe=sS,Ee=rS,He=cS;let We=Zg,ke=null;const At=it({},[...Yg,...gf,...bf,...yf,...Fg]);let Ge=null;const Nn=it({},[...Kg,...vf,...Pg,...Jr]);let nt=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}})),xn=null,rn=null;const zt=Object.seal(Ul(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let qn=!0,Jt=!0,ca=!1,Vn=!0,Ke=!1,Ut=!0,mt=!1,bn=!1,yn=null,kn=null,Mn=!1,Cn=!1,Dn=!1,on=!1,St=!0,Wt=!1;const Nt="user-content-";let Gn=!0,Ln=!1,wn={},je=null;const cn=it({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Qt=null;const Ct=it({},["audio","video","img","source","image","track"]);let R=null;const J=it({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),C="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",de="http://www.w3.org/1999/xhtml";let Le=de,ye=!1,be=null;const ze=it({},[C,ee,de],mf),Rt=mn(["mi","mo","mn","ms","mtext"]);let gt=it({},Rt);const Jn=mn(["annotation-xml"]);let ya=it({},Jn);const ei=it({},["title","style","font","a","script"]);let vn=null;const Mt=["application/xhtml+xml","text/html"],en="text/html";let lt=null,Wn=null;const tl=r.createElement("form"),ka=function(T){return T instanceof RegExp||T instanceof Function},ti=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Wn&&Wn===T)return;(!T||typeof T!="object")&&(T={}),T=Sn(T),vn=Mt.indexOf(T.PARSER_MEDIA_TYPE)===-1?en:T.PARSER_MEDIA_TYPE,lt=vn==="application/xhtml+xml"?mf:Bs,ke=ki(T,"ALLOWED_TAGS",At,{transform:lt}),Ge=ki(T,"ALLOWED_ATTR",Nn,{transform:lt}),be=ki(T,"ALLOWED_NAMESPACES",ze,{transform:mf}),R=ki(T,"ADD_URI_SAFE_ATTR",J,{transform:lt,base:J}),Qt=ki(T,"ADD_DATA_URI_TAGS",Ct,{transform:lt,base:Ct}),je=ki(T,"FORBID_CONTENTS",cn,{transform:lt}),xn=ki(T,"FORBID_TAGS",Sn({}),{transform:lt}),rn=ki(T,"FORBID_ATTR",Sn({}),{transform:lt}),wn=ln(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?Sn(T.USE_PROFILES):T.USE_PROFILES:!1,qn=T.ALLOW_ARIA_ATTR!==!1,Jt=T.ALLOW_DATA_ATTR!==!1,ca=T.ALLOW_UNKNOWN_PROTOCOLS||!1,Vn=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ke=T.SAFE_FOR_TEMPLATES||!1,Ut=T.SAFE_FOR_XML!==!1,mt=T.WHOLE_DOCUMENT||!1,Cn=T.RETURN_DOM||!1,Dn=T.RETURN_DOM_FRAGMENT||!1,on=T.RETURN_TRUSTED_TYPE||!1,Mn=T.FORCE_BODY||!1,St=T.SANITIZE_DOM!==!1,Wt=T.SANITIZE_NAMED_PROPS||!1,Gn=T.KEEP_CONTENT!==!1,Ln=T.IN_PLACE||!1,We=J0(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:Zg,Le=typeof T.NAMESPACE=="string"?T.NAMESPACE:de,gt=ln(T,"MATHML_TEXT_INTEGRATION_POINTS")&&T.MATHML_TEXT_INTEGRATION_POINTS&&typeof T.MATHML_TEXT_INTEGRATION_POINTS=="object"?Sn(T.MATHML_TEXT_INTEGRATION_POINTS):it({},Rt),ya=ln(T,"HTML_INTEGRATION_POINTS")&&T.HTML_INTEGRATION_POINTS&&typeof T.HTML_INTEGRATION_POINTS=="object"?Sn(T.HTML_INTEGRATION_POINTS):it({},Jn);const B=ln(T,"CUSTOM_ELEMENT_HANDLING")&&T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING=="object"?Sn(T.CUSTOM_ELEMENT_HANDLING):Ul(null);if(nt=Ul(null),ln(B,"tagNameCheck")&&ka(B.tagNameCheck)&&(nt.tagNameCheck=B.tagNameCheck),ln(B,"attributeNameCheck")&&ka(B.attributeNameCheck)&&(nt.attributeNameCheck=B.attributeNameCheck),ln(B,"allowCustomizedBuiltInElements")&&typeof B.allowCustomizedBuiltInElements=="boolean"&&(nt.allowCustomizedBuiltInElements=B.allowCustomizedBuiltInElements),gn(nt),Ke&&(Jt=!1),Dn&&(Cn=!0),wn&&(ke=it({},Fg),Ge=Ul(null),wn.html===!0&&(it(ke,Yg),it(Ge,Kg)),wn.svg===!0&&(it(ke,gf),it(Ge,vf),it(Ge,Jr)),wn.svgFilters===!0&&(it(ke,bf),it(Ge,vf),it(Ge,Jr)),wn.mathMl===!0&&(it(ke,yf),it(Ge,Pg),it(Ge,Jr))),zt.tagCheck=null,zt.attributeCheck=null,ln(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?zt.tagCheck=T.ADD_TAGS:Di(T.ADD_TAGS)&&(ke===At&&(ke=Sn(ke)),it(ke,T.ADD_TAGS,lt))),ln(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?zt.attributeCheck=T.ADD_ATTR:Di(T.ADD_ATTR)&&(Ge===Nn&&(Ge=Sn(Ge)),it(Ge,T.ADD_ATTR,lt))),ln(T,"ADD_URI_SAFE_ATTR")&&Di(T.ADD_URI_SAFE_ATTR)&&it(R,T.ADD_URI_SAFE_ATTR,lt),ln(T,"FORBID_CONTENTS")&&Di(T.FORBID_CONTENTS)&&(je===cn&&(je=Sn(je)),it(je,T.FORBID_CONTENTS,lt)),ln(T,"ADD_FORBID_CONTENTS")&&Di(T.ADD_FORBID_CONTENTS)&&(je===cn&&(je=Sn(je)),it(je,T.ADD_FORBID_CONTENTS,lt)),Gn&&(ke["#text"]=!0),mt&&it(ke,["html","head","body"]),ke.table&&(it(ke,["tbody"]),delete xn.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 V=le;le=T.TRUSTED_TYPES_POLICY;try{k=we("")}catch(_e){throw le=V,_e}}else T.TRUSTED_TYPES_POLICY===null?(le=void 0,k=""):(le===void 0&&(le=he()),le&&typeof k=="string"&&(k=we("")));mn&&mn(T),Wn=T},va=it({},[...gf,...bf,...W0]),ni=it({},[...yf,...eS]),un=function(T,B,V){return B.namespaceURI===de?T==="svg":B.namespaceURI===C?T==="svg"&&(V==="annotation-xml"||gt[V]):!!va[T]},ua=function(T,B,V){return B.namespaceURI===de?T==="math":B.namespaceURI===ee?T==="math"&&ya[V]:!!ni[T]},Ea=function(T,B,V){return B.namespaceURI===ee&&!ya[V]||B.namespaceURI===C&&!gt[V]?!1:!ni[T]&&(ei[T]||!va[T])},_a=function(T){let B=U(T);(!B||!B.tagName)&&(B={namespaceURI:Le,tagName:"template"});const V=Bs(T.tagName),_e=Bs(B.tagName);return be[T.namespaceURI]?T.namespaceURI===ee?un(V,B,_e):T.namespaceURI===C?ua(V,B,_e):T.namespaceURI===de?Ea(V,B,_e):!!(vn==="application/xhtml+xml"&&be[T.namespaceURI]):!1},dt=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")}},Ma=function(T){ce(T);const B=w(T);if(B){const _e=[];Dl(B,Ne=>{Ll(_e,Ne)}),Dl(_e,Ne=>{try{N(Ne)}catch{}})}const V=L(T);if(V)for(let _e=V.length-1;_e>=0;--_e){const Ne=V[_e],Be=Ne&&Ne.name;if(typeof Be=="string")try{T.removeAttribute(Be)}catch{}}},An=function(T,B){try{Ll(i.removed,{attribute:B.getAttributeNode(T),from:B})}catch{Ll(i.removed,{attribute:null,from:B})}if(B.removeAttribute(T),T==="is")if(Cn||Dn)try{dt(B)}catch{}else try{B.setAttribute(T,"")}catch{}},fa=function(T){const B=L(T);if(B)for(let V=B.length-1;V>=0;--V){const _e=B[V],Ne=_e&&_e.name;if(!(typeof Ne!="string"||Ge[lt(Ne)]))try{T.removeAttribute(Ne)}catch{}}},ce=function(T){const B=[T];for(;B.length>0;){const V=B.pop();(re?re(V):V.nodeType)===Qn.element&&fa(V);const Ne=w(V);if(Ne)for(let Be=Ne.length-1;Be>=0;--Be)B.push(Ne[Be])}},Me=function(T){if(!Ut)return;const B=[T];for(;B.length>0;){const V=B.pop(),_e=re?re(V):V.nodeType;if(_e===Qn.processingInstruction||_e===Qn.comment&&an(Qg,V.data)){try{N(V)}catch{}continue}if(_e===Qn.element){const Be=V,Xe=lt(H?H(V):V.nodeName);try{Be.hasAttribute&&Be.hasAttribute("patchsrc")&&Be.removeAttribute("patchsrc"),Be.hasAttribute&&Be.hasAttribute("for")&&Xe!=="label"&&Xe!=="output"&&Be.removeAttribute("for")}catch{}}const Ne=w(V);if(Ne)for(let Be=Ne.length-1;Be>=0;--Be)B.push(Ne[Be])}},$e=function(T){let B=null,V=null;if(Mn)T="<remove></remove>"+T;else{const Be=Hg(T,/^[\r\n\t ]+/);V=Be&&Be[0]}vn==="application/xhtml+xml"&&Le===de&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const _e=le?we(T):T;if(Le===de)try{B=new b().parseFromString(_e,vn)}catch{}if(!B||!B.documentElement){B=ne.createDocument(Le,"template",null);try{B.documentElement.innerHTML=ye?k:_e}catch{}}const Ne=B.body||B.documentElement;return T&&V&&Ne.insertBefore(r.createTextNode(V),Ne.childNodes[0]||null),Le===de?Se.call(B,mt?"html":"body")[0]:mt?B.documentElement:Ne},st=function(T){const B=P?P(T):T.ownerDocument;return oe.call(B||T,T,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Tt=function(T){return T=Ls(T,q," "),T=Ls(T,ue," "),T=Ls(T,pe," "),T},qt=function(T){var B;T.normalize();const V=P?P(T):T.ownerDocument,_e=oe.call(V||T,T,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let Ne=_e.nextNode();for(;Ne;)Ne.data=Tt(Ne.data),Ne=_e.nextNode();const Be=(B=T.querySelectorAll)===null||B===void 0?void 0:B.call(T,"template");Be&&Dl(Be,Xe=>{Bt(Xe.content)&&qt(Xe.content)})},tn=function(T){const B=H?H(T):null;return typeof B!="string"||lt(B)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==L(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==re(T)||T.childNodes!==w(T)},Bt=function(T){if(!re||typeof T!="object"||T===null)return!1;try{return re(T)===Qn.documentFragment}catch{return!1}},rt=function(T){if(!re||typeof T!="object"||T===null)return!1;try{return typeof re(T)=="number"}catch{return!1}};function Ot(X,T,B){X.length!==0&&Dl(X,V=>{V.call(i,T,B,Wn)})}const nl=function(T,B){return!!(Ut&&T.hasChildNodes()&&!rt(T.firstElementChild)&&an(Xg,T.textContent)&&an(Xg,T.innerHTML)||Ut&&T.namespaceURI===de&&B==="style"&&rt(T.firstElementChild)||T.nodeType===Qn.processingInstruction||Ut&&T.nodeType===Qn.comment&&an(Qg,T.data))},ai=function(T,B,V){if(!xn[B]&&li(B)&&(nt.tagNameCheck instanceof RegExp&&an(nt.tagNameCheck,B)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(B)))return!1;if(Gn&&!je[B]){const _e=U(T),Ne=w(T);if(Ne&&_e){const Be=Ne.length;for(let Xe=Be-1;Xe>=0;--Xe){const se=T===V?x(Ne[Xe],!0):Ne[Xe];_e.insertBefore(se,A(T))}}}return dt(T),!0},ii=function(T,B,V,_e){return T.length===0?B:B===V||B===_e?Sn(B):B},Ca=function(T,B){if(Ot(D.beforeSanitizeElements,T,null),T!==B&&U(T)===null)return Ln&&ce(T),!0;if(tn(T))return dt(T),!0;const V=lt(H?H(T):T.nodeName);if(ke=ii(D.uponSanitizeElement,ke,At,yn),Ot(D.uponSanitizeElement,T,{tagName:V,allowedTags:ke}),T!==B&&U(T)===null)return Ln&&ce(T),!0;if(nl(T,V))return dt(T),!0;if(xn[V]||!(zt.tagCheck instanceof Function&&zt.tagCheck(V))&&!ke[V]){const Ne=ai(T,V,B);return Ne===!1&&Ot(D.afterSanitizeElements,T,null),Ne}if((re?re(T):T.nodeType)===Qn.element&&!_a(T)||(V==="noscript"||V==="noembed"||V==="noframes")&&an(uS,T.innerHTML))return dt(T),!0;if(Ke&&T.nodeType===Qn.text){const Ne=Tt(T.textContent);T.textContent!==Ne&&(Ll(i.removed,{element:T.cloneNode()}),T.textContent=Ne)}return Ot(D.afterSanitizeElements,T,null),!1},al=function(T,B,V){if(rn[B]||Ut&&B==="patchsrc"||Ut&&B==="for"&&T!=="label"&&T!=="output"||St&&(B==="id"||B==="name")&&(V in r||V in tl))return!1;const _e=Ge[B]||zt.attributeCheck instanceof Function&&zt.attributeCheck(B,T);if(!(Jt&&an(xe,B))){if(!(qn&&an(me,B))){if(_e){if(!R[B]){if(!an(We,Ls(V,Ee,""))){if(!((B==="src"||B==="xlink:href"||B==="href")&&T!=="script"&&qg(V,"data:")===0&&Qt[T])){if(!(ca&&!an(Oe,Ls(V,Ee,"")))){if(V)return!1}}}}}else if(!(li(T)&&(nt.tagNameCheck instanceof RegExp&&an(nt.tagNameCheck,T)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(T))&&(nt.attributeNameCheck instanceof RegExp&&an(nt.attributeNameCheck,B)||nt.attributeNameCheck instanceof Function&&nt.attributeNameCheck(B,T))||B==="is"&&nt.allowCustomizedBuiltInElements&&(nt.tagNameCheck instanceof RegExp&&an(nt.tagNameCheck,V)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(V))))return!1}}return!0},En=it({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),li=function(T){return!En[Bs(T)]&&an(He,T)},Da=function(T,B,V,_e){if(le&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!V)switch(v.getAttributeType(T,B)){case"TrustedHTML":return we(_e);case"TrustedScriptURL":return Ae(_e)}return _e},si=function(T,B,V,_e){try{V?T.setAttributeNS(V,B,_e):T.setAttribute(B,_e),tn(T)?dt(T):Ig(i.removed)}catch{An(B,T)}},Gt=function(T){Ot(D.beforeSanitizeAttributes,T,null);const B=T.attributes;if(!B||tn(T))return;Ge=ii(D.uponSanitizeAttribute,Ge,Nn,kn);const V={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ge,forceKeepAttr:void 0};let _e=B.length;const Ne=lt(T.nodeName);for(;_e--;){const Be=B[_e],Xe=Be.name,se=Be.namespaceURI,ge=Be.value,Ce=lt(Xe),Fe=ge;let Pe=Xe==="value"?Fe:K0(Fe);if(V.attrName=Ce,V.attrValue=Pe,V.keepAttr=!0,V.forceKeepAttr=void 0,Ot(D.uponSanitizeAttribute,T,V),Pe=V.attrValue,Wt&&(Ce==="id"||Ce==="name")&&qg(Pe,Nt)!==0&&(An(Xe,T),Pe=Nt+Pe),Ut&&an(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Pe)){An(Xe,T);continue}if(Ce==="attributename"&&Hg(Pe,"href")){An(Xe,T);continue}if(!V.forceKeepAttr){if(!V.keepAttr){An(Xe,T);continue}if(!Vn&&an(fS,Pe)){An(Xe,T);continue}if(Ke&&(Pe=Tt(Pe)),!al(Ne,Ce,Pe)){An(Xe,T);continue}Pe=Da(Ne,Ce,se,Pe),Pe!==Fe&&si(T,Xe,se,Pe)}}Ot(D.afterSanitizeAttributes,T,null)},La=function(T){let B=null;const V=st(T);for(Ot(D.beforeSanitizeShadowDOM,T,null);B=V.nextNode();)if(Ot(D.uponSanitizeShadowNode,B,null),Ca(B,T),Gt(B),Bt(B.content)&&La(B.content),(re?re(B):B.nodeType)===Qn.element){const Ne=G(B);Bt(Ne)&&(Sa(Ne),La(Ne))}Ot(D.afterSanitizeShadowDOM,T,null)},Sa=function(T){const B=[{node:T,shadow:null}];for(;B.length>0;){const V=B.pop();if(V.shadow){La(V.shadow);continue}const _e=V.node,Be=(re?re(_e):_e.nodeType)===Qn.element,Xe=w(_e);if(Xe)for(let se=Xe.length-1;se>=0;--se)B.push({node:Xe[se],shadow:null});if(Be){const se=H?H(_e):null;if(typeof se=="string"&<(se)==="template"){const ge=_e.content;Bt(ge)&&B.push({node:ge,shadow:null})}}if(Be){const se=G(_e);Bt(se)&&B.push({node:null,shadow:se},{node:se,shadow:null})}}};return i.sanitize=function(X){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null,V=null,_e=null,Ne=null;if(ye=!X,ye&&(X="<!-->"),typeof X!="string"&&!rt(X)&&(X=V0(X),typeof X!="string"))throw Qi("dirty is not a string, aborting");if(!i.isSupported)return X;bn?(ke=yn,Ge=kn):ti(T),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(ke=Sn(ke)),D.uponSanitizeAttribute.length>0&&(Ge=Sn(Ge)),i.removed=[];const Be=Ln&&typeof X!="string"&&rt(X);if(Be){Me(X);const ge=H?H(X):X.nodeName;if(typeof ge=="string"){const Ce=lt(ge);if(!ke[Ce]||xn[Ce])throw Ma(X),Qi("root node is forbidden and cannot be sanitized in-place")}if(tn(X))throw Ma(X),Qi("root node is clobbered and cannot be sanitized in-place");try{Sa(X)}catch(Ce){throw Ma(X),Ce}}else if(rt(X))B=$e("<!---->"),V=B.ownerDocument.importNode(X,!0),V.nodeType===Qn.element&&V.nodeName==="BODY"||V.nodeName==="HTML"?B=V:B.appendChild(V),Sa(V);else{if(!Cn&&!Ke&&!mt&&X.indexOf("<")===-1)return le&&on?we(X):X;if(B=$e(X),!B)return Cn?null:on?k:""}B&&Mn&&dt(B.firstChild);const Xe=Be?X:B;try{const ge=st(Xe);for(;_e=ge.nextNode();)Ca(_e,Xe),Gt(_e),Bt(_e.content)&&La(_e.content)}catch(ge){throw Be&&(Ma(X),Dl(i.removed,Ce=>{Ce.element&&ce(Ce.element)})),ge}if(Be)return Dl(i.removed,ge=>{ge.element&&ce(ge.element)}),Ke&&qt(X),X;if(Cn){if(Ke&&qt(B),Dn)for(Ne=ve.call(B.ownerDocument);B.firstChild;)Ne.appendChild(B.firstChild);else Ne=B;return(Ge.shadowroot||Ge.shadowrootmode)&&(Ne=S.call(l,Ne,!0)),Ne}let se=mt?B.outerHTML:B.innerHTML;return mt&&ke["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&an(oS,B.ownerDocument.doctype.name)&&(se="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
|
|
172
|
+
`+se),Ke&&(se=Tt(se)),le&&on?we(se):se},i.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ti(X),bn=!0,yn=ke,kn=Ge},i.clearConfig=function(){Wn=null,bn=!1,yn=null,kn=null,le=z,k=""},i.isValidAttribute=function(X,T,B){Wn||ti({});const V=lt(X),_e=lt(T);return al(V,_e,B)},i.addHook=function(X,T){typeof T=="function"&&ln(D,X)&&Ll(D[X],T)},i.removeHook=function(X,T){if(ln(D,X)){if(T!==void 0){const B=Y0(D[X],T);return B===-1?void 0:F0(D[X],B,1)[0]}return Ig(D[X])}},i.removeHooks=function(X){ln(D,X)&&(D[X]=[])},i.removeAllHooks=function(){D=Vg()},i}var pS=zb();function Hf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var el=Hf();function Ub(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 Je(s,i=""){let r=typeof s=="string"?s:s.source,l={replace:(u,d)=>{let g=typeof d=="string"?d:d.source;return g=g.replace(Tn.caret,"$1"),r=r.replace(u,g),l},getRegex:()=>new RegExp(r,i)};return l}var mS=((s="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+s)}catch{return!1}})(),Tn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:s=>new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex: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}}>`))},gS=/^(?:[ \t]*(?:\n|$))+/,bS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yS=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Hs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vS=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,qf=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Bb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,jb=Je(Bb).replace(/bull/g,qf).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(),ES=Je(Bb).replace(/bull/g,qf).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(),Gf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,_S=/^[^\n]+/,$f=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,SS=Je(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$f).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),TS=Je(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,qf).getRegex(),ho="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",Yf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,NS=Je("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Yf).replace("tag",ho).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ib=s=>Je(Gf).replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",s).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ho).getRegex(),xS=Ib(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),wS=Ib(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),AS=Je(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",wS).getRegex(),Ff={blockquote:AS,code:bS,def:SS,fences:yS,heading:vS,hr:Hs,html:NS,lheading:jb,list:TS,newline:gS,paragraph:xS,table:Vi,text:_S},Jg=Je("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ho).getRegex(),RS={...Ff,lheading:ES,table:Jg,paragraph:Je(Gf).replace("hr",Hs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Jg).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",ho).getRegex()},OS={...Ff,html:Je(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Yf).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:Je(Gf).replace("hr",Hs).replace("heading",` *#{1,6} *[^
|
|
173
|
+
]`).replace("lheading",jb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},kS=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,MS=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Hb=/^( {2,}|\\)\n(?!\s*$)/,CS=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Wa=/[\p{P}\p{S}]/u,ql=/[\s\p{P}\p{S}]/u,qs=/[^\s\p{P}\p{S}]/u,DS=Je(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ql).getRegex(),LS=/[\p{Pi}\p{Ps}"']/u,qb=/(?!~)[\p{P}\p{S}]/u,zS=/(?!~)[\s\p{P}\p{S}]/u,US=/(?:[^\s\p{P}\p{S}]|~)/u,BS=Je(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",mS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Gb=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,jS=Je(Gb,"u").replace(/punct/g,Wa).getRegex(),IS=Je(Gb,"u").replace(/punct/g,qb).getRegex(),HS=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,qS=Je(HS,"u").replace(/openQuote/g,LS).replace(/punct/g,Wa).getRegex(),$b="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",GS=Je($b,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),$S=Je($b,"gu").replace(/notPunctSpace/g,US).replace(/punctSpace/g,zS).replace(/punct/g,qb).getRegex(),YS="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",FS=Je(YS,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),KS=Je("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),PS="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",ZS=Je(PS,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),XS=Je(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Wa).getRegex(),QS="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",VS=Je(QS,"gu").replace(/notPunctSpace/g,qs).replace(/punctSpace/g,ql).replace(/punct/g,Wa).getRegex(),JS=Je(/\\(punct)/,"gu").replace(/punct/g,Wa).getRegex(),WS=Je(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),eT=Je(Yf).replace("(?:-->|$)","-->").getRegex(),tT=Je("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",eT).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),so=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,nT=Je(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",so).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Yb=Je(/^!?\[(label)\]\[(ref)\]/).replace("label",so).replace("ref",$f).getRegex(),Fb=Je(/^!?\[(ref)\](?:\[\])?/).replace("ref",$f).getRegex(),aT=Je("reflink|nolink(?!\\()","g").replace("reflink",Yb).replace("nolink",Fb).getRegex(),Wg=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Kf={_backpedal:Vi,anyPunctuation:JS,autolink:WS,blockSkip:BS,br:Hb,code:MS,del:Vi,delLDelim:Vi,delRDelim:Vi,emStrongLDelim:jS,emStrongRDelimAst:GS,emStrongRDelimUnd:KS,escape:kS,link:nT,nolink:Fb,punctuation:DS,reflink:Yb,reflinkSearch:aT,tag:tT,text:CS,url:Vi},iT={...Kf,emStrongLDelim:qS,emStrongRDelimAst:FS,emStrongRDelimUnd:ZS,link:Je(/^!?\[(label)\]\((.*?)\)/).replace("label",so).getRegex(),reflink:Je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",so).getRegex()},wf={...Kf,emStrongRDelimAst:$S,emStrongLDelim:IS,delLDelim:XS,delRDelim:VS,url:Je(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Wg).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Je(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Wg).getRegex()},lT={...wf,br:Je(Hb).replace("{2,}","*").getRegex(),text:Je(wf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Wr={normal:Ff,gfm:RS,pedantic:OS},Us={normal:Kf,gfm:wf,breaks:lT,pedantic:iT},sT={"&":"&","<":"<",">":">",'"':""","'":"'"},eb=s=>sT[s];function Ra(s,i){if(i){if(Tn.escapeTest.test(s))return s.replace(Tn.escapeReplace,eb)}else if(Tn.escapeTestNoEncode.test(s))return s.replace(Tn.escapeReplaceNoEncode,eb);return s}function tb(s){try{s=encodeURI(s).replace(Tn.percentDecode,"%")}catch{return null}return s}function nb(s,i){var d;let r=s.replace(Tn.findPipe,(g,y,m)=>{let p=!1,b=y;for(;--b>=0&&m[b]==="\\";)p=!p;return p?"|":" |"}),l=r.split(Tn.splitPipe),u=0;if(l[0].trim()||l.shift(),l.length>0&&!((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(Tn.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 ab(s){let i=s.split(`
|
|
174
|
+
`),r=i.length-1;for(;r>=0&&Tn.blankLine.test(i[r]);)r--;return i.length-r<=2?s:i.slice(0,r+1).join(`
|
|
175
|
+
`)}function rT(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 oT(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 ib(s,i,r,l,u){let d=i.href,g=i.title||null,y=s[1].replace(u.other.outputLinkReplace,"$1");l.state.inLink=!0;let m={type:s[0].charAt(0)==="!"?"image":"link",raw:r,href:d,title:g,text:y,tokens:l.inlineTokens(y)};return l.state.inLink=!1,m}function cT(s,i,r){let l=s.match(r.other.indentCodeCompensation);if(l===null)return i;let u=l[1];return i.split(`
|
|
176
|
+
`).map(d=>{let g=d.match(r.other.beginningSpace);if(g===null)return d;let[y]=g;return y.length>=u.length?d.slice(u.length):d}).join(`
|
|
177
|
+
`)}var ro=class{constructor(s){Et(this,"options");Et(this,"rules");Et(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]:ab(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=cT(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 g=!1,y=[],m;for(m=0;m<r.length;m++)if(this.rules.other.blockquoteStart.test(r[m]))y.push(r[m]),g=!0;else if(!g)y.push(r[m]);else break;r=r.slice(m);let p=y.join(`
|
|
182
|
+
`),b=p.replace(this.rules.other.blockquoteSetextReplace,`
|
|
183
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");l=l?`${l}
|
|
184
|
+
${p}`:p,u=u?`${u}
|
|
185
|
+
${b}`:b;let 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 x=_,N=r.join(`
|
|
186
|
+
`),A=x.raw+`
|
|
187
|
+
`+N.replace(this.rules.other.blockquoteSetextReplace2,""),w=this.blockquote(A);d[d.length-1]=w,l=`${l}
|
|
188
|
+
${N}`,u=u.substring(0,u.length-x.text.length)+w.text;break}else if((_==null?void 0:_.type)==="list"){let x=_,N=x.raw+`
|
|
189
|
+
`+r.join(`
|
|
190
|
+
`),A=this.list(N);d[d.length-1]=A,l=l.substring(0,l.length-_.raw.length)+A.raw,u=u.substring(0,u.length-x.raw.length)+A.raw,r=N.substring(d.at(-1).raw.length).split(`
|
|
191
|
+
`);continue}}return{type:"blockquote",raw:l,tokens:d,text:u}}}list(s){let i=this.rules.block.list.exec(s);if(i){let r=i[1].trim(),l=r.length>1,u={type:"list",raw:"",ordered:l,start:l?+r.slice(0,-1):"",loose:!1,items:[]};r=l?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=l?r:"[*+-]");let d=this.rules.other.listItemRegex(r),g=!1;for(;s;){let m=!1,p="",b="";if(!(i=d.exec(s))||this.rules.block.hr.test(s))break;p=i[0],s=s.substring(p.length);let v=oT(i[2].split(`
|
|
192
|
+
`,1)[0],i[1].length),_=s.split(`
|
|
193
|
+
`,1)[0],x=!v.trim(),N=0;if(this.options.pedantic?(N=2,b=v.trimStart()):x?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),x&&this.rules.other.blankLine.test(_)&&(p+=_+`
|
|
194
|
+
`,s=s.substring(_.length+1),m=!0),!m){let A=this.rules.other.nextBulletRegex(N),w=this.rules.other.hrRegex(N),U=this.rules.other.fencesBeginRegex(N),G=this.rules.other.headingBeginRegex(N),L=this.rules.other.htmlBeginRegex(N),re=this.rules.other.blockquoteBeginRegex(N);for(;s;){let H=s.split(`
|
|
195
|
+
`,1)[0],P;if(_=H,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),P=_):P=_.replace(this.rules.other.tabCharGlobal," "),U.test(_)||G.test(_)||L.test(_)||re.test(_)||A.test(_)||w.test(_))break;if(P.search(this.rules.other.nonSpaceChar)>=N||!_.trim())b+=`
|
|
196
|
+
`+P.slice(N);else{if(x||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||U.test(v)||G.test(v)||w.test(v))break;b+=`
|
|
197
|
+
`+_}x=!_.trim(),p+=H+`
|
|
198
|
+
`,s=s.substring(H.length+1),v=P.slice(N)}}u.loose||(g?u.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(g=!0)),u.items.push({type:"list_item",raw:p,task:!!this.options.gfm&&this.rules.other.listIsTask.test(b),loose:!1,text:b,tokens:[]}),u.raw+=p}let y=u.items.at(-1);if(y)y.raw=y.raw.trimEnd(),y.text=y.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let m of u.items)if(this.lexer.state.top=!1,m.tokens=this.lexer.blockTokens(m.text,[]),!u.loose){let p=m.tokens.filter(v=>v.type==="space"),b=p.length>0&&p.some(v=>this.rules.other.anyLine.test(v.raw));u.loose=b}for(let m of u.items){let p=m.tokens[0];if(m.task&&((p==null?void 0:p.type)==="text"||(p==null?void 0:p.type)==="paragraph")){m.text=m.text.replace(this.rules.other.listReplaceTask,""),p.raw=p.raw.replace(this.rules.other.listReplaceTask,""),p.text=p.text.replace(this.rules.other.listReplaceTask,"");for(let 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(m.raw);if(b){let v={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};m.checked=v.checked,u.loose?m.tokens[0]&&["paragraph","text"].includes(m.tokens[0].type)&&"tokens"in m.tokens[0]&&m.tokens[0].tokens?(m.tokens[0].raw=v.raw+m.tokens[0].raw,m.tokens[0].text=v.raw+m.tokens[0].text,m.tokens[0].tokens.unshift(v)):m.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):m.tokens.unshift(v)}}else m.task&&(m.task=!1)}if(u.loose)for(let m of u.items){m.loose=!0;for(let p of m.tokens)p.type==="text"&&(p.type="paragraph")}return u}}html(s){let i=this.rules.block.html.exec(s);if(i){let r=ab(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 g;let i=this.rules.block.table.exec(s);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let r=nb(i[1]),l=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),u=(g=i[3])!=null&&g.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
200
|
+
`):[],d={type:"table",raw: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(nb(y,d.header.length).map((m,p)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:d.align[p]})));return d}}lheading(s){let i=this.rules.block.lheading.exec(s);if(i){let r=i[1].trim();return{type:"heading",raw: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=rT(i[2],"()");if(d===-2)return;if(d>-1){let g=(i[0].indexOf("!")===0?5:4)+i[1].length+d;i[2]=i[2].substring(0,d),i[0]=i[0].substring(0,g).trim(),i[3]=""}}let l=i[2],u="";if(this.options.pedantic){let d=this.rules.other.pedanticHrefTitle.exec(l);d&&(l=d[1],u=d[3])}else u=i[3]?i[3].slice(1,-1):"";return l=l.trim(),this.rules.other.startAngleBracket.test(l)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?l=l.slice(1):l=l.slice(1,-1)),ib(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 ib(r,u,r[0],this.lexer,this.rules)}}emStrong(s,i,r=""){let l=this.rules.inline.emStrongLDelim.exec(s);if(!(!l||!l[1]&&!l[2]&&!l[3]&&!l[4]||l[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(l[1]||l[3])||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,d,g,y=u,m=0,p=l[0][0],b=r===p,v=p==="*"?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(g=[...d].length,l[3]||l[4]){y+=g;continue}else if(l[5]||l[6]){if(u%3&&!((u+g)%3)){m+=g;continue}if(b)break}if(y-=g,y>0)continue;g=Math.min(g,g+y+m);let _=[...l[0]][0].length,x=s.slice(0,u+l.index+_+g);if(Math.min(u,g)%2){let A=x.slice(1,-1);return{type:"em",raw:x,text:A,tokens:this.lexer.inlineTokens(A)}}let N=x.slice(2,-2);return{type:"strong",raw:x,text:N,tokens:this.lexer.inlineTokens(N)}}}}codespan(s){let i=this.rules.inline.code.exec(s);if(i){let r=i[2].replace(this.rules.other.newLineCharGlobal," "),l=this.rules.other.nonSpaceChar.test(r),u=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return l&&u&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:i[0],text:r}}}br(s){let i=this.rules.inline.br.exec(s);if(i)return{type:"br",raw:i[0]}}del(s,i,r=""){let l=this.rules.inline.delLDelim.exec(s);if(l&&(!l[1]||!r||this.rules.inline.punctuation.exec(r))){let u=[...l[0]].length-1,d,g,y=u,m=this.rules.inline.delRDelim;for(m.lastIndex=0,i=i.slice(-1*s.length+u);(l=m.exec(i))!==null;){if(d=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!d||(g=[...d].length,g!==u))continue;if(l[3]||l[4]){y+=g;continue}if(y-=g,y>0)continue;g=Math.min(g,g+y);let p=[...l[0]][0].length,b=s.slice(0,u+l.index+p+g),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 Af{constructor(i){Et(this,"tokens");Et(this,"options");Et(this,"state");Et(this,"inlineQueue");Et(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=i||el,this.options.tokenizer=this.options.tokenizer||new ro,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Tn,block:Wr.normal,inline:Us.normal};this.options.pedantic?(r.block=Wr.pedantic,r.inline=Us.pedantic):this.options.gfm&&(r.block=Wr.gfm,this.options.breaks?r.inline=Us.breaks:r.inline=Us.gfm),this.tokenizer.rules=r}static get rules(){return{block:Wr,inline:Us}}static lex(i,r){return new Af(r).lex(i)}static lexInline(i,r){return new Af(r).inlineTokens(i)}lex(i){i=i.replace(Tn.carriageReturn,`
|
|
204
|
+
`),this.blockTokens(i,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let l=this.inlineQueue[r];this.inlineTokens(l.src,l.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(i,r=[],l=!1){var d,g,y;this.tokenizer.lexer=this,this.options.pedantic&&(i=i.replace(Tn.tabCharGlobal," ").replace(Tn.spaceLine,""));let u=1/0;for(;i;){if(i.length<u)u=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}let m;if((g=(d=this.options.extensions)==null?void 0:d.block)!=null&&g.some(b=>(m=b.call({lexer:this},i,r))?(i=i.substring(m.raw.length),r.push(m),!0):!1))continue;if(m=this.tokenizer.space(i)){i=i.substring(m.raw.length);let b=r.at(-1);m.raw.length===1&&b!==void 0?b.raw+=`
|
|
205
|
+
`:r.push(m);continue}if(m=this.tokenizer.code(i)){i=i.substring(m.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
206
|
+
`)?"":`
|
|
207
|
+
`)+m.raw,b.text+=`
|
|
208
|
+
`+m.text,this.inlineQueue.at(-1).src=b.text):r.push(m);continue}if(m=this.tokenizer.fences(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.heading(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.hr(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.blockquote(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.list(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.html(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.def(i)){i=i.substring(m.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="paragraph"||(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
209
|
+
`)?"":`
|
|
210
|
+
`)+m.raw,b.text+=`
|
|
211
|
+
`+m.raw,this.inlineQueue.at(-1).src=b.text):this.tokens.links[m.tag]||(this.tokens.links[m.tag]={href:m.href,title:m.title},r.push(m));continue}if(m=this.tokenizer.table(i)){i=i.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.lheading(i)){i=i.substring(m.raw.length),r.push(m);continue}let p=i;if((y=this.options.extensions)!=null&&y.startBlock){let b=1/0,v=i.slice(1),_;this.options.extensions.startBlock.forEach(x=>{_=x.call({lexer:this},v),typeof _=="number"&&_>=0&&(b=Math.min(b,_))}),b<1/0&&b>=0&&(p=i.substring(0,b+1))}if(this.state.top&&(m=this.tokenizer.paragraph(p))){let b=r.at(-1);l&&(b==null?void 0:b.type)==="paragraph"?(b.raw+=(b.raw.endsWith(`
|
|
212
|
+
`)?"":`
|
|
213
|
+
`)+m.raw,b.text+=`
|
|
214
|
+
`+m.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(m),l=p.length!==i.length,i=i.substring(m.raw.length);continue}if(m=this.tokenizer.text(i)){i=i.substring(m.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
215
|
+
`)?"":`
|
|
216
|
+
`)+m.raw,b.text+=`
|
|
217
|
+
`+m.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(m);continue}if(i){this.infiniteLoopError(i.charCodeAt(0));break}}return this.state.top=!0,r}inline(i,r=[]){return this.inlineQueue.push({src:i,tokens:r}),r}inlineTokens(i,r=[]){var y,m,p,b,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,x=>_.includes(x.slice(x.lastIndexOf("[")+1,-1))?"["+"a".repeat(x.length-2)+"]":x))}l=l.replace(this.tokenizer.rules.inline.anyPunctuation,_=>"+".repeat(_.length)),l=l.replace(this.tokenizer.rules.inline.blockSkip,(_,x,N)=>{let A=N?N.length:0;return _.slice(0,A)+"["+"a".repeat(_.length-A-2)+"]"}),l=((m=(y=this.options.hooks)==null?void 0:y.emStrongMask)==null?void 0:m.call({lexer:this},l))??l;let u=!1,d="",g=1/0;for(;i;){if(i.length<g)g=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}u||(d=""),u=!1;let _;if((b=(p=this.options.extensions)==null?void 0:p.inline)!=null&&b.some(N=>(_=N.call({lexer:this},i,r))?(i=i.substring(_.raw.length),r.push(_),!0):!1))continue;if(_=this.tokenizer.escape(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.tag(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.link(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(_.raw.length);let N=r.at(-1);_.type==="text"&&(N==null?void 0:N.type)==="text"?(N.raw+=_.raw,N.text+=_.text):r.push(_);continue}if(_=this.tokenizer.emStrong(i,l,d)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.codespan(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.br(i)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.del(i,l,d)){i=i.substring(_.raw.length),r.push(_);continue}if(_=this.tokenizer.autolink(i)){i=i.substring(_.raw.length),r.push(_);continue}if(!this.state.inLink&&(_=this.tokenizer.url(i))){i=i.substring(_.raw.length),r.push(_);continue}let x=i;if((v=this.options.extensions)!=null&&v.startInline){let N=1/0,A=i.slice(1),w;this.options.extensions.startInline.forEach(U=>{w=U.call({lexer:this},A),typeof w=="number"&&w>=0&&(N=Math.min(N,w))}),N<1/0&&N>=0&&(x=i.substring(0,N+1))}if(_=this.tokenizer.inlineText(x)){i=i.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(d=_.raw.slice(-1)),u=!0;let N=r.at(-1);(N==null?void 0:N.type)==="text"?(N.raw+=_.raw,N.text+=_.text):r.push(_);continue}if(i){this.infiniteLoopError(i.charCodeAt(0));break}}return r}infiniteLoopError(i){let r="Infinite loop on byte: "+i;if(this.options.silent)console.error(r);else throw new Error(r)}},oo=class{constructor(s){Et(this,"options");Et(this,"parser");this.options=s||el}space(s){return""}code({text:s,lang:i,escaped:r}){var d;let l=(d=(i||"").match(Tn.notSpaceStart))==null?void 0:d[0],u=s.replace(Tn.endingNewline,"")+`
|
|
218
|
+
`;return l?'<pre><code class="language-'+Ra(l)+'">'+(r?u:Ra(u,!0))+`</code></pre>
|
|
219
|
+
`:"<pre><code>"+(r?u:Ra(u,!0))+`</code></pre>
|
|
220
|
+
`}blockquote({tokens:s}){return`<blockquote>
|
|
221
|
+
${this.parser.parse(s)}</blockquote>
|
|
222
|
+
`}html({text:s}){return s}def(s){return""}heading({tokens:s,depth:i}){return`<h${i}>${this.parser.parseInline(s)}</h${i}>
|
|
223
|
+
`}hr(s){return`<hr>
|
|
224
|
+
`}list(s){let i=s.ordered,r=s.start,l="";for(let g=0;g<s.items.length;g++){let y=s.items[g];l+=this.listitem(y)}let u=i?"ol":"ul",d=i&&r!==1?' start="'+r+'"':"";return"<"+u+d+`>
|
|
225
|
+
`+l+"</"+u+`>
|
|
226
|
+
`}listitem(s){return`<li>${this.parser.parse(s.tokens)}</li>
|
|
227
|
+
`}checkbox({checked:s}){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:s}){return`<p>${this.parser.parseInline(s)}</p>
|
|
228
|
+
`}table(s){let i="",r="";for(let u=0;u<s.header.length;u++)r+=this.tablecell(s.header[u]);i+=this.tablerow({text:r});let l="";for(let u=0;u<s.rows.length;u++){let d=s.rows[u];r="";for(let g=0;g<d.length;g++)r+=this.tablecell(d[g]);l+=this.tablerow({text:r})}return l&&(l=`<tbody>${l}</tbody>`),`<table>
|
|
229
|
+
<thead>
|
|
230
|
+
`+i+`</thead>
|
|
231
|
+
`+l+`</table>
|
|
232
|
+
`}tablerow({text:s}){return`<tr>
|
|
233
|
+
${s}</tr>
|
|
234
|
+
`}tablecell(s){let i=this.parser.parseInline(s.tokens),r=s.header?"th":"td";return(s.align?`<${r} align="${s.align}">`:`<${r}>`)+i+`</${r}>
|
|
235
|
+
`}strong({tokens:s}){return`<strong>${this.parser.parseInline(s)}</strong>`}em({tokens:s}){return`<em>${this.parser.parseInline(s)}</em>`}codespan({text:s}){return`<code>${Ra(s,!0)}</code>`}br(s){return"<br>"}del({tokens:s}){return`<del>${this.parser.parseInline(s)}</del>`}link({href:s,title:i,tokens:r}){let l=this.parser.parseInline(r),u=tb(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=tb(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)}},Pf=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 Rf{constructor(i){Et(this,"options");Et(this,"renderer");Et(this,"textRenderer");this.options=i||el,this.options.renderer=this.options.renderer||new oo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Pf}static parse(i,r){return new Rf(r).parse(i)}static parseInline(i,r){return new Rf(r).parseInline(i)}parse(i){var l,u;this.renderer.parser=this;let r="";for(let d=0;d<i.length;d++){let g=i[d];if((u=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&u[g.type]){let m=g,p=this.options.extensions.renderers[m.type].call({parser:this},m);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(m.type)){r+=p||"";continue}}let y=g;switch(y.type){case"space":{r+=this.renderer.space(y);break}case"hr":{r+=this.renderer.hr(y);break}case"heading":{r+=this.renderer.heading(y);break}case"code":{r+=this.renderer.code(y);break}case"table":{r+=this.renderer.table(y);break}case"blockquote":{r+=this.renderer.blockquote(y);break}case"list":{r+=this.renderer.list(y);break}case"checkbox":{r+=this.renderer.checkbox(y);break}case"html":{r+=this.renderer.html(y);break}case"def":{r+=this.renderer.def(y);break}case"paragraph":{r+=this.renderer.paragraph(y);break}case"text":{r+=this.renderer.text(y);break}default:{let m='Token with "'+y.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}parseInline(i,r=this.renderer){var u,d;this.renderer.parser=this;let l="";for(let g=0;g<i.length;g++){let y=i[g];if((d=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&d[y.type]){let p=this.options.extensions.renderers[y.type].call({parser:this},y);if(p!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(y.type)){l+=p||"";continue}}let m=y;switch(m.type){case"escape":{l+=r.text(m);break}case"html":{l+=r.html(m);break}case"link":{l+=r.link(m);break}case"image":{l+=r.image(m);break}case"checkbox":{l+=r.checkbox(m);break}case"strong":{l+=r.strong(m);break}case"em":{l+=r.em(m);break}case"codespan":{l+=r.codespan(m);break}case"br":{l+=r.br(m);break}case"del":{l+=r.del(m);break}case"text":{l+=r.text(m);break}default:{let p='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return l}},to,js=(to=class{constructor(s){Et(this,"options");Et(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}},Et(to,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Et(to,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),to),uT=class{constructor(...s){Et(this,"defaults",Hf());Et(this,"options",this.setOptions);Et(this,"parse",this.parseMarkdown(!0));Et(this,"parseInline",this.parseMarkdown(!1));Et(this,"Parser",ba);Et(this,"Renderer",oo);Et(this,"TextRenderer",Pf);Et(this,"Lexer",ga);Et(this,"Tokenizer",ro);Et(this,"Hooks",js);this.use(...s)}walkTokens(s,i){var l,u;let r=[];for(let d of s)switch(r=r.concat(i.call(this,d)),d.type){case"table":{let g=d;for(let y of g.header)r=r.concat(this.walkTokens(y.tokens,i));for(let y of g.rows)for(let m of y)r=r.concat(this.walkTokens(m.tokens,i));break}case"list":{let g=d;r=r.concat(this.walkTokens(g.items,i));break}default:{let g=d;(u=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&u[g.type]?this.defaults.extensions.childTokens[g.type].forEach(y=>{let m=g[y].flat(1/0);r=r.concat(this.walkTokens(m,i))}):g.tokens&&(r=r.concat(this.walkTokens(g.tokens,i)))}}return r}use(...s){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return s.forEach(r=>{let l={...r};if(l.async=this.defaults.async||l.async||!1,r.extensions&&(r.extensions.forEach(u=>{if(!u.name)throw new Error("extension name required");if("renderer"in u){let d=i.renderers[u.name];d?i.renderers[u.name]=function(...g){let y=u.renderer.apply(this,g);return y===!1&&(y=d.apply(this,g)),y}:i.renderers[u.name]=u.renderer}if("tokenizer"in u){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let d=i[u.level];d?d.unshift(u.tokenizer):i[u.level]=[u.tokenizer],u.start&&(u.level==="block"?i.startBlock?i.startBlock.push(u.start):i.startBlock=[u.start]:u.level==="inline"&&(i.startInline?i.startInline.push(u.start):i.startInline=[u.start]))}"childTokens"in u&&u.childTokens&&(i.childTokens[u.name]=u.childTokens)}),l.extensions=i),r.renderer){let u=this.defaults.renderer||new oo(this.defaults);for(let d in r.renderer){if(!(d in u))throw new Error(`renderer '${d}' does not exist`);if(["options","parser"].includes(d))continue;let g=d,y=r.renderer[g],m=u[g];u[g]=(...p)=>{let b=y.apply(u,p);return b===!1&&(b=m.apply(u,p)),b||""}}l.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new ro(this.defaults);for(let d in r.tokenizer){if(!(d in u))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;let g=d,y=r.tokenizer[g],m=u[g];u[g]=(...p)=>{let b=y.apply(u,p);return b===!1&&(b=m.apply(u,p)),b}}l.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new js;for(let d in r.hooks){if(!(d in u))throw new Error(`hook '${d}' does not exist`);if(["options","block"].includes(d))continue;let g=d,y=r.hooks[g],m=u[g];js.passThroughHooks.has(d)?u[g]=p=>{if(this.defaults.async&&js.passThroughHooksRespectAsync.has(d))return(async()=>{let v=await y.call(u,p);return m.call(u,v)})();let b=y.call(u,p);return m.call(u,b)}:u[g]=(...p)=>{if(this.defaults.async)return(async()=>{let v=await y.apply(u,p);return v===!1&&(v=await m.apply(u,p)),v})();let b=y.apply(u,p);return b===!1&&(b=m.apply(u,p)),b}}l.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,d=r.walkTokens;l.walkTokens=function(g){let y=[];return y.push(d.call(this,g)),u&&(y=y.concat(u.call(this,g))),y}}this.defaults={...this.defaults,...l}}),this}setOptions(s){return this.defaults={...this.defaults,...s},this}lexer(s,i){return 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 g=u.hooks?await u.hooks.preprocess(i):i,y=await(u.hooks?await u.hooks.provideLexer(s):s?ga.lex:ga.lexInline)(g,u),m=u.hooks?await u.hooks.processAllTokens(y):y;u.walkTokens&&await Promise.all(this.walkTokens(m,u.walkTokens));let p=await(u.hooks?await u.hooks.provideParser(s):s?ba.parse:ba.parseInline)(m,u);return u.hooks?await u.hooks.postprocess(p):p})().catch(d);try{u.hooks&&(i=u.hooks.preprocess(i));let g=(u.hooks?u.hooks.provideLexer(s):s?ga.lex:ga.lexInline)(i,u);u.hooks&&(g=u.hooks.processAllTokens(g)),u.walkTokens&&this.walkTokens(g,u.walkTokens);let y=(u.hooks?u.hooks.provideParser(s):s?ba.parse:ba.parseInline)(g,u);return u.hooks&&(y=u.hooks.postprocess(y)),y}catch(g){return d(g)}}}onError(s,i){return r=>{if(r.message+=`
|
|
236
|
+
Please report this to https://github.com/markedjs/marked.`,s){let l="<p>An error occurred:</p><pre>"+Ra(r.message+"",!0)+"</pre>";return i?Promise.resolve(l):l}if(i)return Promise.reject(r);throw r}}},Ji=new uT;function ft(s,i){return Ji.parse(s,i)}ft.options=ft.setOptions=function(s){return Ji.setOptions(s),ft.defaults=Ji.defaults,Ub(ft.defaults),ft};ft.getDefaults=Hf;ft.defaults=el;function fT(...s){return Ji.use(...s),ft.defaults=Ji.defaults,Ub(ft.defaults),ft}ft.use=fT;ft.walkTokens=function(s,i){return Ji.walkTokens(s,i)};ft.parseInline=Ji.parseInline;ft.Parser=ba;ft.parser=ba.parse;ft.Renderer=oo;ft.TextRenderer=Pf;ft.Lexer=ga;ft.lexer=ga.lex;ft.Tokenizer=ro;ft.Hooks=js;ft.parse=ft;ft.options;ft.setOptions;ft.walkTokens;ft.parseInline;ba.parse;ga.lex;ft.setOptions({gfm:!0,breaks:!1});function Zf(s){const i=ft.parse(s??"",{async:!1});return pS.sanitize(i)}function Wi({text:s,className:i}){const r=ie.useMemo(()=>Zf(s),[s]);return s!=null&&s.trim()?f.jsx("div",{className:`md ${i??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const dT={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'"};function hT(s){return s.replace(/<[^>]*>/g," ").replace(/&([a-z]+|#\d+);/gi,(i,r)=>dT[r.toLowerCase()]??i).replace(/\s+/g," ").trim()}function pT(s,i){return hT(i)!==s.replace(/\s+/g," ").trim()}function Gs({text:s,className:i}){const r=ie.useMemo(()=>s!=null&&s.trim()?Zf(s):"",[s]);return!r||!pT(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 mT=/\.(md|markdown)$/i;function Xf(s){return mT.test(s)}function gT(s){return/^new file mode /m.test(s)||/^--- \/dev\/null$/m.test(s)}function bT(s){const i=[];let r=0,l=!1;const u=s.split(`
|
|
237
|
+
`);for(let d=0;d<u.length;d++){const g=u[d],y=g.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(y){r=Number(y[1]),l=!0;continue}l&&(g===""&&d===u.length-1||g.startsWith("\\")||g.startsWith("-")||(g.startsWith("+")||g.startsWith(" ")||g==="")&&(i.push({n:r,text:g===""?"":g.slice(1),added:g.startsWith("+")}),r++))}return i}const eo=s=>(s.match(/\n/g)??[]).length;function Qf(s){const i=bT(s),r=gT(s),l=[];let u=[];const d=()=>{if(u.length===0)return;const g=u[0].n,y=new Set(u.filter(b=>b.added).map(b=>b.n)),m=u.map(b=>b.text).join(`
|
|
238
|
+
`)+`
|
|
239
|
+
`;let p=g;for(const b of ft.lexer(m)){const v=b.raw,_=v.trimEnd();if(_===""){p+=eo(v);continue}const x=v.length-v.trimStart().length,N=p+eo(v.slice(0,x)),A=N+eo(_.slice(x));let w=!1;for(let U=N;U<=A&&!w;U++)w=y.has(U);l.push({kind:"block",raw:_.slice(x),from:N,to:A,changed:w}),p+=eo(v)}u=[]};for(const g of i){const y=u[u.length-1];if(y&&g.n!==y.n+1){const m=g.n-y.n-1;d(),l.push({kind:"gap",lines:m})}u.push(g)}return d(),{items:l,isNew:r,lines:i.length}}const lb={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},yT={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function vT(s){return(s==null?void 0:s.recommendation)==="approve"?"APPROVE":(s==null?void 0:s.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function Kb(s,i){const r=WE(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 sb(s,i){const r=d=>{const g=Number((d??"").trim());return Number.isInteger(g)&&g>0?g:null},l=r(i);if(l!=null)return{line:l,side:"new"};const u=r(s);return u!=null?{line:u,side:"old"}:null}function Pb(s){const i=s.comments.filter(u=>u.status==="dropped"),r=s.comments.filter(u=>u.status!=="dropped"),l=Kb(s.diff,r);return{inline:l,folded:r.filter(u=>!l.includes(u)),dropped:i}}function Ef(s){const i=s.comments.filter(u=>u.status!=="dropped");return["blocker","minor","nit"].map(u=>({tier:u,n:i.filter(d=>d.severity===u).length})).filter(({n:u})=>u>0).map(({tier:u,n:d})=>`${xb[u]} ${d} ${u}${d===1?"":"s"}`).join(" · ")}function ET(s){if(!s.comments.some(l=>l.severity!=null))return null;const r=s.comments.filter(l=>l.status!=="dropped"&&l.severity==="blocker").length;return r===0?"no blockers":`${r} blocker${r===1?"":"s"}`}function _T(s){if(!s.verdict||!s.comments.some(u=>u.severity!=null))return null;const r=s.comments.filter(u=>u.status!=="dropped"&&u.severity==="blocker").length,l=s.verdict.recommendation;return l==="approve"&&r>0?`the verdict says approve, but ${r} blocker${r===1?"":"s"} still stand${r===1?"s":""}`:l==="request_changes"&&r===0?"the verdict says request changes, but no blocker still stands":null}function rb(s){const{inline:i,folded:r}=Pb(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 ob={approve:"approve",comment:"comment",request_changes:"changes"},ST={approve:"approve",comment:"comment",request_changes:"changes"};function TT(s,i){return s.status==="dropped"?"none":s.drifted?"comment":s.origin==="user"?"awaiting":i}function Zb(s,i=20){const r=document.getElementById(`c-${s}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}i>0&&requestAnimationFrame(()=>Zb(s,i-1))}function NT(s){const i=s,r=i==null?void 0:i.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"||(i==null?void 0:i.isContentEditable)===!0}function cb(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 Xb({pick:s,chatBusy:i,onAdd:r,onAsk:l,onClose:u}){const[d,g]=ie.useState(""),y=ie.useRef(null);ie.useEffect(()=>{var p;return(p=y.current)==null?void 0:p.focus()},[]);const m=d.trim();return f.jsxs("div",{className:"line-composer",children:[f.jsxs("div",{className:"line-composer-head",children:[f.jsxs("span",{className:"comment-loc",children:[s.path,":",s.line]}),s.side==="old"&&f.jsx("span",{className:"faint",title:"GitHub only takes inline comments on the new side of a diff.",children:"this line is gone from the new file — a comment on it posts on the file, not the line"})]}),f.jsx("textarea",{ref:y,className:"comment-edit",rows:3,placeholder:"what about this line?",value:d,onChange:p=>g(p.target.value),onKeyDown:p=>{p.key==="Escape"&&u(),p.key==="Enter"&&(p.metaKey||p.ctrlKey)&&m&&(p.preventDefault(),r(m))}}),f.jsx(Gs,{className:"comment-body",text:d}),f.jsxs("div",{className:"line-composer-actions",children:[f.jsxs("button",{className:"btn",disabled:!m,onClick:()=>r(m),children:[f.jsx(Ze,{name:"plus"}),"add comment",f.jsx(Va,{children:"⌘↵"})]}),f.jsxs("button",{className:"btn btn-accent",disabled:!m||i,title:i?"the reviewer is still answering the last question":"Ask the reviewer about this line — the answer lands in the chat below",onClick:()=>l(m),children:[f.jsx(Ze,{name:"comment"}),"ask the reviewer"]}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:u,children:"cancel"})]})]})}function xT({patch:s,comments:i,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:g,onRead:y}){const m=ie.useMemo(()=>s.trim()?XE(s,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[s]),p=ie.useMemo(()=>Ja(s).map(z=>z.path),[s]),b=ie.useMemo(()=>new Set(Ja(s).filter(z=>Xf(z.path)&&Qf(z.patch).lines>0).map(z=>z.path)),[s]),v=ie.useMemo(()=>i.map(z=>`${z.id}@${z.path}:${z.line}`).join("|"),[i]),_=ie.useRef(null),x=ie.useRef(y);x.current=y;const[N,A]=ie.useState([]),[w,U]=ie.useState([]),[G,L]=ie.useState(null),[re,H]=ie.useState(null);ie.useEffect(()=>{var I,ne;const z=_.current;if(!z)return;z.innerHTML=m,w0(z);const Q=new Map,K=[];z.querySelectorAll(".d2h-file-wrapper").forEach((oe,ve)=>{var D,q,ue,pe;const Se=(q=(D=oe.querySelector(".d2h-file-name"))==null?void 0:D.textContent)==null?void 0:q.trim(),S=Se&&p.includes(Se)?Se:p[ve];if(Se&&Q.set(Se,oe),S){Q.set(S,oe),oe.dataset.path=S;const xe=document.createElement("div");if(xe.className="file-comments",(ue=oe.querySelector(".d2h-file-header"))==null||ue.after(xe),K.push({path:S,el:xe}),b.has(S)){const me=document.createElement("button");me.type="button",me.className="btn btn-sm md-read-toggle",me.dataset.readPath=S,me.textContent="read as a document",me.title="Render this markdown instead of showing it line by line",(pe=oe.querySelector(".d2h-file-header"))==null||pe.appendChild(me)}}});const fe=[],we=new Map;for(const oe of i){if(oe.line==null)continue;const ve=Q.get(oe.path);if(!ve)continue;const Se=Array.from(ve.querySelectorAll(".d2h-diff-tbody > tr")).find(D=>{var q,ue;return((ue=(q=D.querySelector(".line-num2"))==null?void 0:q.textContent)==null?void 0:ue.trim())===String(oe.line)});if(!Se)continue;const S=cb(we.get(Se)??Se,"inline-comment-row");we.set(Se,S.tr),fe.push({id:oe.id,el:S.holder})}A(fe),U(K);const Ae=oe=>{const ve=oe.target.closest(".md-read-toggle");if(ve!=null&&ve.dataset.readPath){x.current(ve.dataset.readPath);return}const Se=oe.target.closest(".line-add");if(!Se)return;const{path:S,line:D,side:q}=Se.dataset;!S||!D||L({path:S,line:Number(D),side:q==="old"?"old":"new"})};z.addEventListener("click",Ae);const he=()=>z.removeEventListener("click",Ae);if(l)return L(null),H(null),he;for(const oe of z.querySelectorAll(".d2h-file-wrapper")){const ve=oe.dataset.path;if(ve)for(const Se of oe.querySelectorAll(".d2h-diff-tbody > tr > td.d2h-code-linenumber")){const S=sb((I=Se.querySelector(".line-num1"))==null?void 0:I.textContent,(ne=Se.querySelector(".line-num2"))==null?void 0:ne.textContent);if(!S)continue;const D=document.createElement("button");D.type="button",D.className="line-add";const q=`Say something about ${ve}:${S.line}`;D.title=q,D.setAttribute("aria-label",q),D.tabIndex=-1,D.dataset.path=ve,D.dataset.line=String(S.line),D.dataset.side=S.side,Se.appendChild(D)}}return H(null),he},[m,v,p,b,l]),ie.useEffect(()=>{const z=_.current;if(!z||!G||l){H(null);return}const Q=Array.from(z.querySelectorAll(".d2h-file-wrapper")).find(we=>we.dataset.path===G.path),K=Array.from((Q==null?void 0:Q.querySelectorAll(".d2h-diff-tbody > tr"))??[]).find(we=>{var I,ne;const Ae=we.querySelector(".d2h-code-linenumber"),he=sb((I=Ae==null?void 0:Ae.querySelector(".line-num1"))==null?void 0:I.textContent,(ne=Ae==null?void 0:Ae.querySelector(".line-num2"))==null?void 0:ne.textContent);return(he==null?void 0:he.line)===G.line&&he.side===G.side});if(!K){L(null);return}const fe=cb(K,"line-composer-row");return H(fe.holder),()=>fe.tr.remove()},[G,N,l]);const P=i.filter(z=>!N.some(Q=>Q.id===z.id)),le=w.map(z=>({...z,comments:P.filter(Q=>Q.path===z.path)})).filter(z=>z.comments.length>0),k=P.filter(z=>!w.some(Q=>Q.path===z.path));return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"diff",ref:_}),N.map(({id:z,el:Q})=>{const K=i.find(fe=>fe.id===z);return K?Nu.createPortal(r(K),Q,z):null}),le.map(({path:z,el:Q,comments:K})=>Nu.createPortal(f.jsx(f.Fragment,{children:K.map(r)}),Q,`file:${z}`)),G&&re&&Nu.createPortal(f.jsx(Xb,{pick:G,chatBusy:u,onAdd:z=>{d(G,z),L(null)},onAsk:z=>{g(G,z),L(null)},onClose:()=>L(null)}),re,`pick-${G.path}-${G.side}-${G.line}`),k.map(z=>r(z))]})}function wT({block:s,path:i,changed:r,readOnly:l,onPick:u}){const d=ie.useMemo(()=>Zf(s.raw),[s.raw]),g=`Say something about ${i}:${s.from}`;return f.jsxs("div",{className:`md-block${r?" md-block-changed":""}`,children:[!l&&f.jsx("button",{type:"button",className:"md-block-add",title:g,"aria-label":g,tabIndex:-1,onClick:u,children:f.jsx(Ze,{name:"plus"})}),f.jsx("div",{className:"md md-doc prose",dangerouslySetInnerHTML:{__html:d}})]})}function AT({path:s,doc:i,comments:r,renderComment:l,readOnly:u,chatBusy:d,onAddLineComment:g,onAskAboutLine:y,onShowDiff:m}){const[p,b]=ie.useState(null),v=ie.useMemo(()=>{const _=new Map,x=i.items.flatMap((A,w)=>A.kind==="block"?[{item:A,i:w}]:[]),N=[];for(const A of r){const w=A.line==null?void 0:x.filter(U=>U.item.from<=A.line).pop()??x[0];if(!w){N.push(A);continue}_.set(w.i,[..._.get(w.i)??[],A])}return{at:_,rest:N}},[i,r]);return f.jsxs("div",{className:"md-file",children:[f.jsxs("div",{className:"md-file-head",children:[f.jsx(Ze,{name:"file"}),f.jsx("span",{className:"md-file-name",children:s}),i.isNew?f.jsx("span",{className:"tag tag-added",children:"new file"}):f.jsx("span",{className:"faint",title:"A diff carries the lines around a change, not the file.",children:"the diff's lines only — what the PR removed isn't here"}),f.jsx("span",{className:"grow"}),f.jsx("button",{className:"btn btn-sm",onClick:m,title:"Back to the line-by-line diff",children:"show the diff"})]}),v.rest.length>0&&f.jsx("div",{className:"file-comments",children:v.rest.map(l)}),i.items.map((_,x)=>f.jsxs(ie.Fragment,{children:[_.kind==="gap"?f.jsxs("div",{className:"md-gap",title:"These lines are in the file but not in the diff.",children:["⋯ ",_.lines.toLocaleString()," line",_.lines===1?"":"s"," the diff skips"]}):f.jsx(wT,{block:_,path:s,changed:_.changed&&!i.isNew,readOnly:u,onPick:()=>b({path:s,line:_.from,side:"new"})}),(v.at.get(x)??[]).map(l),_.kind==="block"&&(p==null?void 0:p.line)===_.from&&f.jsx(Xb,{pick:p,chatBusy:d,onAdd:N=>{g(p,N),b(null)},onAsk:N=>{y(p,N),b(null)},onClose:()=>b(null)})]},x))]})}function RT({patch:s,comments:i,renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:g}){const y=ie.useMemo(()=>s.trim()?Ja(s):[],[s]),m=ie.useMemo(()=>new Map(y.filter(A=>Xf(A.path)).map(A=>[A.path,Qf(A.patch)]).filter(([,A])=>A.lines>0)),[y]),[p,b]=ie.useState({}),v=A=>{var w;return p[A]??((w=m.get(A))==null?void 0:w.isNew)??!1},_=[];for(const A of y){const w=_[_.length-1];if(m.has(A.path)&&v(A.path)){_.push({kind:"read",paths:[A.path],patch:A.patch});continue}(w==null?void 0:w.kind)==="diff"?(w.paths.push(A.path),w.patch+=`
|
|
240
|
+
${A.patch}`):_.push({kind:"diff",paths:[A.path],patch:A.patch})}if(y.length===0)return f.jsx("p",{className:"muted",children:"No diff for this chapter."});const x=new Set(y.map(A=>A.path)),N=A=>i.filter(w=>A(w.path));return f.jsxs(f.Fragment,{children:[_.map(A=>{const w=new Set(A.paths);if(A.kind==="read"){const U=A.paths[0];return f.jsx(AT,{path:U,doc:m.get(U),comments:N(G=>G===U),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:g,onShowDiff:()=>b(G=>({...G,[U]:!1}))},`read:${U}`)}return f.jsx(xT,{patch:A.patch,comments:N(U=>w.has(U)),renderComment:r,readOnly:l,chatBusy:u,onAddLineComment:d,onAskAboutLine:g,onRead:U=>b(G=>({...G,[U]:!0}))},`diff:${A.paths[0]}`)}),N(A=>!x.has(A)).map(r)]})}function Qb({comment:s,onUpdate:i,onDelete:r,onDiscuss:l,readOnly:u,flash:d}){const[g,y]=ie.useState(!1),[m,p]=ie.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&&(g?f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"btn btn-sm",onClick:()=>{i({body:m}),y(!1)},children:"save"}),f.jsx("button",{className:"btn btn-sm",onClick:()=>{p(s.body),y(!1)},children:"cancel"})]}):f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:`btn btn-sm${b?" btn-keep-on":""}`,title:"Keep this comment — it posts with the review",onClick:()=>i({status:b?"draft":"approved"}),children:[f.jsx(Ze,{name:"check"}),"keep"]}),f.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>y(!0),children:[f.jsx(Ze,{name:"edit"}),"edit"]}),f.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>i({status:v?"draft":"dropped"}),children:[f.jsx(Ze,{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(Ze,{name:"comment"}),"discuss"]}),s.origin==="user"&&f.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),g?f.jsxs(f.Fragment,{children:[f.jsx("textarea",{className:"comment-edit",value:m,onChange:x=>p(x.target.value),rows:Math.max(3,m.split(`
|
|
241
|
+
`).length)}),f.jsx(Gs,{className:"comment-body",text:Pm(m,s.severity??null)})]}):f.jsx(Wi,{className:"comment-body prose",text:Pm(s.body,s.severity??null)})]})}function OT({files:s,chapterId:i,onAdd:r}){const[l,u]=ie.useState(!1),[d,g]=ie.useState(s[0]??""),[y,m]=ie.useState(""),[p,b]=ie.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=>g(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=>m(v.target.value.replace(/\D/g,"")),size:12})]}),f.jsx("textarea",{placeholder:"Your comment…",value:p,onChange:v=>b(v.target.value),rows:3}),f.jsx(Gs,{className:"comment-body",text:p}),f.jsxs("div",{className:"add-comment-row",children:[f.jsx("button",{className:"btn",disabled:!p.trim()||!d,onClick:()=>{r({path:d,line:y?Number(y):null,body:p.trim(),chapterId:i}),b(""),m(""),u(!1)},children:"add"}),f.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):f.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[f.jsx(Ze,{name:"plus"}),"add a comment of your own"]})}const kT=2e3;function MT({chapter:s,n:i,diff:r,comments:l,open:u,heavy:d,onToggle:g,onUpdateComment:y,onDeleteComment:m,onAddComment:p,onDiscuss:b,onAskAboutLine:v,chatBusy:_,readOnly:x,anchorRef:N,flash:A}){const w=ie.useMemo(()=>QE(r,s.files),[r,s.files]),U=ie.useMemo(()=>Kb(w,l),[w,l]),G=ie.useMemo(()=>new Set(Ja(w).map(P=>P.path)),[w]),L=l.filter(P=>!U.includes(P)&&!G.has(P.path)),re=l.filter(P=>U.includes(P)||G.has(P.path)),H=P=>f.jsx(Qb,{comment:P,onUpdate:le=>y(P.id,le),onDelete:()=>m(P.id),onDiscuss:b&&(()=>b({target:"comment",id:P.id})),readOnly:x,flash:A===P.id},P.id);return f.jsxs("section",{className:"chapter",ref:N,children:[f.jsxs("header",{className:"chapter-head",onClick:g,children:[f.jsx("span",{className:"faint",children:u?"▾":"▸"}),f.jsxs("h3",{children:[i," · ",s.title]}),f.jsxs("span",{className:"faint chapter-meta",children:[s.files.length," file",s.files.length===1?"":"s",l.length>0?` · ${l.length} comment${l.length===1?"":"s"}`:" · no comments",d!=null&&!u&&f.jsx("span",{title:"Drawing this many lines at once would leave the page too slow to scroll. Open it if you want it — nothing else on the page is affected.",children:` · ${d.toLocaleString()} lines to draw, folded to keep the page quick`})]}),f.jsx("span",{className:"grow"}),b&&f.jsxs("button",{className:"btn btn-sm",onClick:P=>{P.stopPropagation(),b({target:"chapter",id:s.id})},children:[f.jsx(Ze,{name:"comment"}),"discuss"]})]}),u&&f.jsxs("div",{className:"chapter-body",children:[f.jsx(Wi,{className:"prose chapter-explanation",text:s.explanation}),L.map(H),f.jsx(RT,{patch:w,comments:re,renderComment:H,readOnly:x,chatBusy:_,onAddLineComment:(P,le)=>p({path:P.path,line:P.side==="new"?P.line:null,body:le,chapterId:s.id}),onAskAboutLine:v}),!x&&s.files.length>0&&f.jsx(OT,{files:s.files,chapterId:s.id,onAdd:p})]})]})}function CT(s,i){switch(s.kind){case"summary":return"rewrote the summary";case"verdict":return`changed the verdict to ${s.verdict.recommendation.replace("_"," ")}`;case"chapter":{const r=i.chapters.find(l=>l.id===s.chapterId);return`rewrote the "${(r==null?void 0:r.title)??s.chapterId}" chapter`}case"comment-edit":{const r=i.comments.find(l=>l.id===s.commentId);return r?`rewrote the comment on ${r.path}:${r.line??"file"}`:"rewrote a comment"}case"comment-drop":{const r=i.comments.find(l=>l.id===s.commentId);return r?`dropped the comment on ${r.path}:${r.line??"file"}`:"dropped a comment"}case"comment-add":return`added a comment on ${s.path}:${s.line??"file"}`}}function Of(s,i){var l;if(s.target==="summary")return"the summary";if(s.target==="verdict")return"the verdict";if(s.target==="chapter")return((l=i.chapters.find(u=>u.id===s.id))==null?void 0:l.title)??"a chapter";if(s.target==="line")return s.path==null||s.line==null?"a line of the diff":`${s.path}:${s.line}${s.side==="old"?" (removed)":""}`;const r=i.comments.find(u=>u.id===s.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function DT({turn:s,artifact:i}){return f.jsxs("div",{className:`chat-turn chat-turn-${s.role}`,children:[f.jsx("div",{className:"chat-turn-who",children:s.role==="user"?"You":"Reviewer"}),s.refs.length>0&&f.jsx("div",{className:"chat-refs",children:s.refs.map((r,l)=>f.jsx("span",{className:"chat-ref",children:Of(r,i)},l))}),f.jsx(Wi,{className:"chat-turn-body prose",text:s.body}),s.revisions.map((r,l)=>f.jsxs("div",{className:"chat-revision",children:["↳ ",CT(r,i)]},l)),s.refused.map((r,l)=>f.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},l))]})}function LT({artifact:s,reviewKey:i,refs:r,onClearRefs:l,onDropRef:u,onArtifact:d,readOnly:g,inputRef:y,anchorRef:m}){const[p,b]=ie.useState(""),[v,_]=ie.useState(!1),[x,N]=ie.useState(null),A=s.chat??[],w=s.pendingChat??null,U=w!=null&&w.error==null,G=v||U,L=(H,P,le)=>{!H||G||(_(!0),N(null),Sf(i,{message:H,refs:P}).then(k=>{d(k),le==null||le()}).catch(k=>N(String(k.message??k))).finally(()=>_(!1)))},re=()=>L(p.trim(),r,()=>{b(""),l()});return f.jsxs("section",{className:"card chat-panel",ref:m,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"talk to the reviewer"}),f.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),f.jsxs("div",{className:"card-body",children:[(A.length>0||w)&&f.jsxs("div",{className:"chat-log",children:[A.map(H=>f.jsx(DT,{turn:H,artifact:s},H.id)),w&&f.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[f.jsx("div",{className:"chat-turn-who",children:"You"}),w.refs.length>0&&f.jsx("div",{className:"chat-refs",children:w.refs.map((H,P)=>f.jsx("span",{className:"chat-ref",children:Of(H,s)},P))}),f.jsx(Wi,{className:"chat-turn-body prose",text:w.message}),w.error?f.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",w.error,!g&&f.jsxs(f.Fragment,{children:[" ",f.jsx("button",{className:"btn btn-sm",onClick:()=>L(w.message,w.refs),children:"ask again"})," ",f.jsx("button",{className:"btn btn-sm",onClick:()=>k_(i).then(d).catch(H=>N(String(H.message??H))),children:"dismiss"})]})]}):f.jsx("div",{className:"chat-waiting",children:w.progress.length>0?f.jsx("ol",{className:"chat-progress",children:w.progress.map((H,P)=>f.jsx("li",{className:P===w.progress.length-1?"now":void 0,children:H},P))}):"Thinking… it re-reads the code before answering."})]})]}),g?f.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):f.jsxs(f.Fragment,{children:[r.length>0&&f.jsxs("div",{className:"chat-refs chat-refs-pending",children:[f.jsx("span",{className:"faint",children:"about:"}),r.map((H,P)=>f.jsxs("button",{className:"chat-ref",onClick:()=>u(P),title:"Remove",children:[Of(H,s)," ✕"]},P))]}),f.jsx("textarea",{ref:y,className:"chat-input",rows:2,value:p,disabled:v,placeholder:A.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(Gs,{className:"chat-turn-body",text:p}),f.jsxs("div",{className:"chat-actions",children:[f.jsxs("button",{className:"btn btn-dark",onClick:re,disabled:G||p.trim()==="",children:[f.jsx(Ze,{name:"send"}),U?"waiting for the answer…":v?"sending…":"send message",f.jsx(Va,{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),M_(i).then(d).catch(H=>N(String(H.message??H))).finally(()=>_(!1))},children:"reset the review"})]})]}),x&&f.jsx("div",{className:"error",children:x})]})]})}function zT(s){const i=ie.useRef(null),r=ie.useCallback(()=>{const l=i.current;l&&(l.style.height="auto",l.style.height=`${Math.min(l.scrollHeight+2,window.innerHeight*.7)}px`)},[]);return ie.useEffect(r,[s,r]),ie.useEffect(()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)),[r]),i}function UT({initial:s,onSave:i,onCancel:r}){const[l,u]=ie.useState(s),[d,g]=ie.useState(!1),[y,m]=ie.useState(null),p=zT(l),b=()=>{d||(g(!0),m(null),i(l).catch(v=>{m(String((v==null?void 0:v.message)??v)),g(!1)}))};return f.jsxs("div",{className:"body-edit-wrap",children:[f.jsx("textarea",{ref:p,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(Gs,{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(Va,{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"})]})]})}function BT({artifact:s,reviewKey:i,event:r,sending:l,onSend:u,error:d,footer:g,next:y,onAdvance:m,onBody:p,anchorRef:b}){const[v,_]=ie.useState(null),[x,N]=ie.useState(null),[A,w]=ie.useState(s.bodyOverride!=null),[U,G]=ie.useState(!1),L=s.bodyOverride!=null;ie.useEffect(()=>{L&&w(!0)},[L]);const re=A&&!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 ie.useEffect(()=>{if(!A||U)return;let H=!1;return _(null),N(null),C_(i,r).then(P=>{H||(_(P),N(null))}).catch(P=>{H||N(String(P))}),()=>{H=!0}},[i,r,re,A,U]),s.sent?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"sent-strip",ref:b,children:[f.jsxs("strong",{children:["✔ sent as ",lb[s.sent.event]]}),f.jsxs("span",{className:"faint",children:[new Date(s.sent.at).toLocaleString()," · ",rb(s),s.sent.auto?" · auto-sent by the daemon":""]}),f.jsx("span",{className:"grow"}),s.sent.url&&f.jsxs("a",{href:s.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",f.jsx(Ze,{name:"external"})]}),f.jsxs("button",{className:"btn",onClick:m,children:[y?`next review: ${y.pr.repo}#${y.pr.number}`:"back to the queue",f.jsx(Ze,{name:"arrowRight"})]})]}),f.jsx("div",{className:"post-actions",children:g})]}):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:rb(s)}),f.jsxs("button",{className:"link",onClick:()=>w(!A),disabled:U,title:U?"save or cancel the body you are writing first":void 0,children:[f.jsx(Ze,{name:"eye"}),A?"hide what gets posted":"see what gets posted"]})]}),f.jsx("div",{className:"send-action",children:f.jsxs("button",{className:`send-btn tone-bg-${yT[r]}`,disabled:l,onClick:u,children:[f.jsx(Ze,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),l?"sending…":`${lb[r]} on ${s.id}`," ",f.jsx(Va,{children:"s"})]})}),d&&f.jsx("p",{className:"error",children:d}),A&&f.jsxs(f.Fragment,{children:[x&&f.jsx("p",{className:"error",children:x}),v?U?f.jsx(UT,{initial:v.body,onSave:H=>p(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:[L?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:()=>p(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(Ze,{name:"edit"}),L?"keep editing it":"write it yourself"]})]})]}):!x&&f.jsx("p",{className:"faint",children:"building the body…"})]}),f.jsx("div",{className:"send-footer",children:g})]})}function jT({filed:s}){var l,u,d;const i=((l=s.review)==null?void 0:l.url)??((u=s.reply)==null?void 0:u.url)??null,r=g=>new Date(g).toLocaleDateString();return s.reason==="own-reply"&&s.reply?f.jsxs("div",{children:[f.jsxs("strong",{children:["You answered on this PR on ",r(s.reply.at),", and nobody has replied since."]})," ","So cerber filed this draft under settled: GitHub does not count a"," ",i?f.jsx("a",{href:i,target:"_blank",rel:"noreferrer",children:"comment"}):"comment"," ","as a review, but the PR is with its author either way. Nothing here was changed or sent — the draft is still yours to send."]}):s.reason==="request-withdrawn"?f.jsxs("div",{children:[f.jsx("strong",{children:"Nobody is asking for this review any more."})," The request that put this PR in the inbox was taken back on or before ",r(s.at),", and you had said nothing on the PR, so cerber filed the draft under settled rather than leaving it out for you. Nothing here was changed or sent — the draft is still yours to send."]}):f.jsxs("div",{children:[f.jsxs("strong",{children:["You reviewed this PR on GitHub on ",r(((d=s.review)==null?void 0:d.at)??s.at),"."]})," ","So cerber filed this draft under settled, GitHub having stopped asking you for a review and shown one of your own"," ",i?f.jsx("a",{href:i,target:"_blank",rel:"noreferrer",children:"already on the PR"}):"already on the PR",". Nothing here was changed or sent — the draft is still yours to send."]})}function IT({entries:s,open:i,onToggle:r,anchorRef:l}){const u=d=>{const g=new Date(d);return Number.isNaN(g.getTime())?d:`${g.toLocaleDateString(void 0,{month:"short",day:"2-digit"})} ${g.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}`};return f.jsxs("section",{className:"card",ref:l,children:[f.jsxs("header",{className:"card-head",children:[f.jsx("h2",{children:"history"}),f.jsx("span",{className:"faint",children:s.length>0?`${s.length} entr${s.length===1?"y":"ies"} — what cerber did to this row, and when`:"nothing recorded"}),f.jsx("span",{className:"grow"}),f.jsxs("button",{className:"btn btn-sm","aria-expanded":i,onClick:r,children:[f.jsx(Ze,{name:i?"up":"down",size:12}),i?"hide":"show"]})]}),i&&f.jsx("div",{className:"card-body",children:s.length===0?f.jsx("div",{className:"faint",children:"This review predates cerber keeping a history — it starts at the next thing that happens to it."}):f.jsx("ol",{className:"history",children:s.map((d,g)=>({e:d,i:g})).reverse().map(({e:d,i:g})=>f.jsxs("li",{className:"history-row",title:d.at,children:[f.jsx("span",{className:"history-at",children:u(d.at)}),f.jsx("span",{className:"history-by",children:d.by}),f.jsx("span",{className:"history-what",children:d.what}),d.cause&&f.jsx("span",{className:"history-cause",children:d.cause})]},`${g}-${d.at}`))})})]})}function HT({artifact:s,freshness:i,rerunning:r,onRerun:l}){const u=s.status==="running",d=(i==null?void 0:i.prState)??s.pr.state,g=d==="CLOSED"||d==="MERGED",y=s.refresh,m=i!=null&&i.changed?y:null;if(u)return f.jsxs("div",{className:"freshness freshness-running",children:[f.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]});const p=s.filed;return!g&&!m&&!p?null:f.jsxs("div",{className:"freshness",children:[p&&f.jsx(jT,{filed:p}),g&&f.jsxs("div",{children:[f.jsxs("strong",{children:["This PR is ",d==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),m&&f.jsxs("div",{children:[f.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",f.jsx("code",{children:m.toSha.slice(0,7)}),", reviewed at"," ",f.jsx("code",{children:m.fromSha.slice(0,7)}),"."," ",m.moved>0&&f.jsxs(f.Fragment,{children:[m.moved," comment(s) followed the code. "]}),m.drifted>0&&f.jsxs(f.Fragment,{children:[m.drifted," could not — the code they point at is gone, so they will post in the review body instead of inline."," "]}),"The summary and verdict still describe the commit that was reviewed.",!s.sent&&f.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>l(),children:r?"starting…":"re-review at the new head"})]})]})}function qT({reviewKey:s}){var Qt,Ct,R,J;const[i,r]=ie.useState(null),[l,u]=ie.useState(null),[d,g]=ie.useState(null),[y,m]=ie.useState(null),[p,b]=ie.useState(!1),[v,_]=ie.useState([]),[x,N]=ie.useState(new Set),A=C=>N(ee=>new Set(ee).add(C)),[w,U]=ie.useState([]),G=ie.useRef(null),[L,re]=ie.useState(new Set),[H,P]=ie.useState(0),le=ie.useRef(new Map),k=ie.useRef(null),z=ie.useRef(null),Q=ie.useRef(null),K=ie.useRef(null),fe=ie.useRef(null),we=ie.useRef(null),[Ae,he]=ie.useState(!1),I=ie.useRef(null),[ne,oe]=ie.useState(!1),[ve,Se]=ie.useState(null),[S,D]=ie.useState(null);ie.useEffect(()=>{if(!S)return;const C=setTimeout(()=>D(null),1800);return()=>clearTimeout(C)},[S]);const q=C=>{var ee,de;U(Le=>Le.some(ye=>ye.target===C.target&&ye.id===C.id)?Le:[...Le,C]),(ee=G.current)==null||ee.scrollIntoView({behavior:"smooth",block:"center"}),(de=G.current)==null||de.focus()};ie.useEffect(()=>{let C=!1;return window.scrollTo({top:0}),r(null),u(null),g(null),m(null),Se(null),Qm(s).then(ee=>{if(!C)return r(ee),O_(s).then(de=>{C||(g(de),de.changed&&r(de.artifact))}).catch(de=>!C&&m(String(de.message??de)))}).catch(ee=>!C&&u(String(ee))),()=>{C=!0}},[s]),ie.useEffect(()=>{If().then(_).catch(()=>{})},[]),ie.useEffect(()=>{const C=I.current;if(!C)return;const ee=()=>document.documentElement.style.setProperty("--top-h",`${C.offsetHeight}px`);ee();const de=new ResizeObserver(ee);return de.observe(C),()=>{de.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[i==null?void 0:i.id]);const ue=(i==null?void 0:i.pendingChat)!=null&&i.pendingChat.error==null;ie.useEffect(()=>{if((i==null?void 0:i.status)!=="running"&&!ue)return;const C=setInterval(()=>{Qm(s).then(ee=>{r(ee),ee.status!=="running"&&b(!1)}).catch(()=>{})},3e3);return()=>clearInterval(C)},[i==null?void 0:i.status,ue,s]);const pe=(i==null?void 0:i.sent)!=null,xe=ie.useMemo(()=>a_(v,s,x),[v,s,x]),me=xe.findIndex(C=>C.key===s),Oe=(me>0?xe[me-1]:null)??null,Ee=(me>=0&&me<xe.length-1?xe[me+1]:null)??null,He=C=>{window.location.hash=`#/r/${encodeURIComponent(C)}`},We=()=>{Ee?He(Ee.key):window.location.hash="#/"},ke=ie.useMemo(()=>{if(!i)return[];const C=e_(i.diff,i.chapters);return C.length>0?[...i.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:C}]:i.chapters},[i]),At=ie.useMemo(()=>{const C=t_((i==null?void 0:i.diff)??""),ee=new Set(Ja((i==null?void 0:i.diff)??"").filter(Le=>Xf(Le.path)&&Qf(Le.patch).isNew).map(Le=>Le.path)),de=Le=>{const ye=C.get(Le)??0;return ee.has(Le)?Math.round(ye/4):ye};return new Map(ke.map(Le=>[Le.id,Le.files.reduce((ye,be)=>ye+de(be),0)]))},[i==null?void 0:i.diff,ke]),Ge=C=>{const ee=At.get(C)??0;return ee>kT?ee:null},Nn=C=>L.has(C)?Ge(C)!=null:Ge(C)==null,nt=C=>re(ee=>{const de=new Set(ee);return de.has(C)?de.delete(C):de.add(C),de});ie.useEffect(()=>re(new Set),[s]);const xn=C=>{const ee=ke[C];return ee?(P(C),Nn(ee.id)||nt(ee.id),ee):null},rn=(...C)=>{for(const ee of C)if(ee.current)return ee.current.scrollIntoView({behavior:"smooth",block:"start"})},zt=C=>{var de;const ee=xn(C);ee&&((de=le.current.get(ee.id))==null||de.scrollIntoView({behavior:"smooth",block:"start"}))},qn=(C,ee)=>{xn(C),D(ee),Zb(ee)},Jt=vT(i==null?void 0:i.verdict);ie.useEffect(()=>Se(null),[Jt]);const ca=()=>{!i||i.sent||ne||(oe(!0),Se(null),D_(s,Jt).then(C=>{r(C),A(s)}).catch(C=>Se(String(C.message??C))).finally(()=>oe(!1)))};if(ie.useEffect(()=>{const C=ee=>{NT(ee.target)||ee.metaKey||ee.ctrlKey||ee.altKey||(ee.key==="["&&Oe?He(Oe.key):ee.key==="]"&&Ee?He(Ee.key):ee.key==="n"?zt(Math.min(ke.length-1,H+1)):ee.key==="N"?zt(Math.max(0,H-1)):ee.key==="s"&&!pe&&ca())};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[Oe==null?void 0:Oe.key,Ee==null?void 0:Ee.key,ke,H,pe,Jt,i==null?void 0:i.sent,ne]),l&&!i)return f.jsx("p",{className:"error pad",children:l});if(!i)return f.jsx("p",{className:"muted pad",children:"Loading…"});const Vn=C=>{b(!0),u(null),kb(s,C).then(r).catch(ee=>{u(String(ee)),b(!1)})},Ke=C=>C.then(r).catch(ee=>u(String(ee))),Ut=C=>no(s,{status:C}).then(()=>{A(s),We()}).catch(ee=>u(String(ee))),mt=(C,ee)=>Ke(x_(s,C,ee)),bn=C=>Ke(A_(s,C)),yn=C=>Ke(w_(s,C)),kn=i.comments.filter(C=>!C.chapterId||!ke.some(ee=>ee.id===C.chapterId)),{inline:Mn,folded:Cn,dropped:Dn}=Pb(i),on=i.comments.filter(C=>C.status!=="dropped"&&C.drifted).length,St=i.verdict?ob[i.verdict.recommendation]:"none",Wt=_T(i),Nt=ET(i),Gn=i.pendingChat!=null&&i.pendingChat.error==null,Ln=()=>Ke(Sf(s,{message:"Some findings were dropped, edited or re-graded after this review was drafted. Update the summary and verdict to match what still stands — do not re-review the whole PR.",refs:[{target:"verdict",id:null}]})),wn=(C,ee)=>{Ke(Sf(s,{message:ee,refs:[{target:"line",id:null,path:C.path,line:C.line,side:C.side}]}).then(de=>{var Le;return(Le=K.current)==null||Le.scrollIntoView({behavior:"smooth",block:"start"}),de}))},je=(Qt=i.run)!=null&&Qt.trusted?"ran the code":(Ct=i.run)!=null&&Ct.withSource?"read the full source":i.run?"read the diff only":"no run yet",cn=C=>{var ee;return f.jsxs("button",{className:`verdict-pick${((ee=i.verdict)==null?void 0:ee.recommendation)===C?` verdict-pick-on tone-${ob[C]}`:""}`,title:C==="approve"?"Approve":C==="comment"?"Comment without blocking":"Request changes",onClick:()=>Ke(no(s,{verdictRecommendation:C})),children:[f.jsx(Ze,{name:ST[C]}),C.replace("_"," ")]},C)};return f.jsxs("div",{className:"review",children:[f.jsxs("div",{className:"review-top",ref:I,children:[f.jsx("div",{className:"crumb",children:f.jsxs("div",{className:"bar-inner",children:[f.jsx("a",{href:"#/",children:"← queue"}),f.jsx("span",{className:"crumb-sep",children:"/"}),f.jsx("span",{className:"crumb-slug",children:i.id}),f.jsxs("span",{className:"walk",children:[f.jsx("button",{className:"walk-btn",disabled:!Oe,title:Oe?`[ — ${Oe.id}: ${Oe.pr.title}`:"no more reviews this way",onClick:()=>Oe&&He(Oe.key),children:f.jsx(Ze,{name:"chevronLeft"})}),f.jsx("button",{className:"walk-btn",disabled:!Ee,title:Ee?`] — ${Ee.id}: ${Ee.pr.title}`:"no more reviews this way",onClick:()=>Ee&&He(Ee.key),children:f.jsx(Ze,{name:"chevronRight"})})]}),me>=0&&f.jsxs("span",{className:"faint",children:[me+1," of ",xe.length," awaiting"]}),f.jsx("span",{className:"faint crumb-next",children:Ee?`next: ${Ee.pr.title}`:me>=0?"last in the queue":""}),f.jsx("span",{className:"grow"}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Ze,{name:"settings",size:15})})]})}),f.jsx("div",{className:"review-head",children:f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"review-head-top",children:[f.jsx("a",{className:"review-title",href:i.pr.url,target:"_blank",rel:"noreferrer",children:i.pr.title}),f.jsx("span",{className:"grow"}),i.verdict&&(pe?f.jsxs("span",{className:`chip tone-${St}`,children:[i.verdict.recommendation.replace("_"," "),Nt&&` · ${Nt}`," · ",i.verdict.confidence,"%"]}):f.jsxs("button",{className:`chip chip-btn tone-${St}`,title:"change it, or send — both are at the foot of the page",onClick:()=>rn(k,fe),children:[i.verdict.recommendation.replace("_"," "),Nt&&` · ${Nt}`," · ",i.verdict.confidence,"%",f.jsx(Ze,{name:"down",size:12})]})),!pe&&i.status!=="running"&&f.jsxs("button",{className:"btn btn-sm",disabled:p,title:i.run?"Review the current head again — this draft is replaced, your own comments are kept":"Draft a review of this PR",onClick:()=>Vn(!0),children:[f.jsx(Ze,{name:"rerun"}),p?"starting…":i.run?"re-review at head":"review now"]})]}),f.jsxs("div",{className:"review-head-meta",children:[f.jsx("span",{children:i.pr.author}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[i.pr.headRefName," → ",i.pr.baseRefName,i.pr.headSha?` · ${i.pr.headSha.slice(0,7)}`:""]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{children:[i.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",i.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",i.pr.deletions]})]}),f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:je}),((R=i.run)==null?void 0:R.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:()=>rn(z),children:"summary"}),i.verdict&&f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>rn(Q),children:"why"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var C;rn(K),(C=G.current)==null||C.focus()},children:"chat"}),f.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{he(!0),rn(we)},children:"history"})]}),ke.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>zt(0),children:"changes"}),ke.map((C,ee)=>f.jsxs("div",{className:"rail-group",children:[f.jsxs("button",{className:`rail-item${Nn(C.id)?" rail-item-on":""}`,onClick:()=>zt(ee),children:[f.jsxs("span",{className:"grow",children:[ee+1," · ",C.title]}),f.jsxs("span",{className:"rail-count",children:[C.files.length,"f"]})]}),i.comments.filter(de=>de.chapterId===C.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:()=>qn(ee,de.id),children:[f.jsx("span",{className:`rail-dot tone-${TT(de,St)}`,children:"●"}),f.jsxs("span",{className:"rail-comment-loc",children:[de.path.split("/").pop(),de.line!=null?`:${de.drifted?"~":""}${de.line}`:""]})]},de.id))]},C.id))]}),f.jsx("button",{className:`lab rail-lab-btn${ke.length>0?" rail-lab":""}`,onClick:()=>rn(k,fe),children:"verdict"}),f.jsxs("div",{className:"rail-facts",children:[f.jsxs("div",{children:[i.comments.length-Dn.length," keeping · ",Dn.length," dropped"]}),f.jsxs("div",{children:[Mn.length," inline · ",Cn.length," folded into body"]}),on>0&&f.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[on," drifted"]})]})]}),f.jsxs("div",{className:"main",children:[f.jsx(HT,{artifact:i,freshness:d,rerunning:p,onRerun:Vn}),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}),((J=i.run)==null?void 0:J.error)&&f.jsxs("div",{className:"error",children:["Run failed: ",i.run.error]}),f.jsx("div",{className:"card card-summary",ref:z,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:()=>q({target:"summary",id:null}),children:[f.jsx(Ze,{name:"comment"}),"discuss the summary"]})]})}),i.verdict&&f.jsx("div",{className:`card card-why tone-border-${St}`,ref:Q,children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"lab",children:"why"}),f.jsxs("div",{className:"sev-counts",children:[Ef(i)&&f.jsx("span",{title:"Live findings by grade. Only blockers block.",children:Ef(i)}),Ef(i)&&f.jsx("span",{className:"crumb-sep",children:"·"}),f.jsxs("span",{title:"How sure the review is that its own findings and grades are right — not how good an idea merging is. That is the verdict, and it follows from the blockers.",children:[i.verdict.confidence,"% sure of the findings"]})]}),f.jsx(Wi,{className:"prose lead",text:i.verdict.reasoning}),!pe&&f.jsxs("button",{className:"btn btn-sm",onClick:()=>q({target:"verdict",id:null}),children:[f.jsx(Ze,{name:"comment"}),"discuss the verdict"]})]})}),ke.map((C,ee)=>f.jsx(MT,{chapter:C,n:ee+1,diff:i.diff,comments:i.comments.filter(de=>de.chapterId===C.id),open:Nn(C.id),heavy:Ge(C.id),onToggle:()=>nt(C.id),onUpdateComment:mt,onDeleteComment:bn,onAddComment:yn,onDiscuss:pe?void 0:q,onAskAboutLine:wn,chatBusy:Gn,readOnly:pe,flash:S,anchorRef:de=>{de?le.current.set(C.id,de):le.current.delete(C.id)}},C.id)),kn.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:kn.map(C=>f.jsx(Qb,{comment:C,onUpdate:ee=>mt(C.id,ee),onDelete:()=>bn(C.id),onDiscuss:pe?void 0:()=>q({target:"comment",id:C.id}),readOnly:pe},C.id))})]}),f.jsx(IT,{entries:i.history??[],open:Ae,onToggle:()=>he(C=>!C),anchorRef:we})]}),f.jsxs("aside",{className:"cockpit",children:[f.jsx(LT,{artifact:i,reviewKey:s,refs:w,onClearRefs:()=>U([]),onDropRef:C=>U(ee=>ee.filter((de,Le)=>Le!==C)),onArtifact:r,readOnly:pe,inputRef:G,anchorRef:K}),f.jsxs("div",{className:"cockpit-decide",children:[!pe&&Wt&&f.jsxs("div",{className:"verdict-hint",children:[f.jsxs("span",{children:[f.jsx("strong",{children:Wt})," — the verdict was written before those edits."]}),f.jsxs("button",{className:"btn btn-sm",onClick:Ln,disabled:Gn,children:[f.jsx(Ze,{name:"comment"}),Gn?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),i.verdict&&!pe&&f.jsxs("div",{className:"verdict-bar",ref:k,children:[f.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(cn)]}),f.jsx(BT,{artifact:i,reviewKey:s,event:Jt,sending:ne,onSend:ca,error:ve,next:Ee,onAdvance:We,onBody:C=>no(s,{bodyOverride:C}).then(r),anchorRef:fe,footer:f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"faint",children:"not sending?"}),!pe&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"btn btn-sm",title:Ee?`Settle it locally and go to ${Ee.id}`:"Settle it locally and go back to the queue",onClick:()=>Ut("reviewed"),children:[f.jsx(Ze,{name:"check"}),"mark reviewed"]}),f.jsxs("button",{className:"btn btn-sm",title:Ee?`Leave it and go to ${Ee.id}`:"Leave it and go back to the queue",onClick:()=>Ut("skipped"),children:[f.jsx(Ze,{name:"skip"}),"skip"]})]}),f.jsxs("a",{className:"btn btn-sm",href:L_(s),children:[f.jsx(Ze,{name:"download"}),"export .md"]})]})})]})]})]})]})}const ub="cerber.notify.seen",kf="cerber.notify",GT=1e4,Vb=s=>{try{return localStorage.getItem(s)}catch{return null}},Mf=(s,i)=>{try{localStorage.setItem(s,i)}catch{}};function $T(s,i){const r=new Set(i);return fo(s).filter(l=>!r.has(l.key))}function YT(s){return s.map(i=>i.key)}const fb=s=>`${s.pr.repo}#${s.pr.number}`;function FT(s){if(s.length===0)return null;const i=`cerber:${s.map(u=>u.key).sort().join("|")}`;if(s.length===1){const u=s[0];return{title:`${fb(u)} awaits your review`,body:`${u.pr.title} — ${u.pr.author}`,tag:i,key:u.key}}const r=s.slice(0,3).map(fb),l=s.length-r.length;return{title:`${s.length} PRs await your review`,body:l>0?`${r.join(", ")} and ${l} more`:r.join(", "),tag:i,key:null}}const KT=new Set(["127.0.0.1","localhost","::1","[::1]"]);function PT(s,i=window.location.hostname){return!(s!=null&&s.enabled)||!s.notify?!1:KT.has(i)}function Hl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Vb(kf)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function ZT(){const s=Hl();if(s==="unsupported"||s==="blocked")return s;if(s==="on")return Mf(kf,"off"),Hl();if(Mf(kf,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return Hl()}function XT(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 QT(){const s=ie.useRef(null),[i,r]=ie.useState(!1);return ie.useEffect(()=>{let l=!0;const u=Vb(ub);if(u)try{const y=JSON.parse(u);Array.isArray(y)&&(s.current=y.filter(m=>typeof m=="string"))}catch{}const d=()=>Promise.all([If(),Ob().catch(()=>null)]).then(([y,m])=>{if(!l)return;const p=PT(m);r(p);const b=s.current;if(s.current=YT(y),Mf(ub,JSON.stringify(s.current)),!b||Hl()!=="on"||p||document.visibilityState==="visible"&&document.hasFocus())return;const v=FT($T(y,b));v&&XT(v)}).catch(()=>{});d();const g=setInterval(d,GT);return()=>{l=!1,clearInterval(g)}},[]),i}function Jb(){const[s,i]=ie.useState(Hl);return ie.useEffect(()=>{const r=()=>i(Hl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[s,()=>void ZT().then(i)]}const ao=s=>{window.location.hash=`#/r/${encodeURIComponent(s)}`};function VT(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 JT({daemon:s}){return s!=null&&s.enabled?f.jsx("div",{className:"daemon-bar",children:f.jsxs("div",{className:"bar-inner",children:[s.pollEnabled?f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot"}),s.repos.length>0?s.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(s.intervalMs/6e4),"m"]}):f.jsxs("span",{className:"daemon-live",children:[f.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),f.jsxs("span",{children:["auto-review ",f.jsx("b",{children:s.autoReview?"on":"off"})]}),f.jsxs("span",{children:["auto-send ",f.jsx("b",{children:s.autoSend==="on"?"on":"shadow"})," ≥",s.autoSendThreshold,"%",s.autoSend==="on"?` · ${s.autoSent} sent`:` · ${s.autoSendCandidates} candidate${s.autoSendCandidates===1?"":"s"}`]}),s.trustedRuns&&f.jsxs("span",{className:"warn",title:"Trust rules are set and auto-review is on: reviews of matching PRs run their code unattended. Settings → Trusted PRs, or serve --no-trust.",children:[f.jsx(Ze,{name:"zap",size:12})," trusted PRs run with Bash"]}),f.jsx("span",{className:"grow"}),s.lastPollError?f.jsx("span",{className:"danger",title:s.lastPollError,children:"discovery offline — showing local reviews only"}):f.jsx("span",{className:"faint",children:s.polling?"polling now…":[s.lastSummary?`last: ${s.lastSummary}`:null,s.nextPollAt?`next ${new Date(s.nextPollAt).toLocaleTimeString()}`:null].filter(Boolean).join(" · ")})]})}):null}function WT({r:s,selected:i,onSelect:r,onOpen:l,awaiting:u}){const d=b_(s),g=o_(s),y=u?p_(s,u):null;return f.jsxs("div",{className:`row${i?" row-on":""}`,onClick:l,onMouseEnter:r,role:"button",tabIndex:-1,children:[f.jsx("span",{className:"col-caret",children:"›"}),f.jsxs("span",{className:"col-slug",title:`${s.pr.owner}/${s.pr.repo}#${s.pr.number}`,children:[s.pr.repo,"#",s.pr.number]}),f.jsx("span",{className:"col-author",title:s.pr.author,children:s.pr.author}),f.jsx("span",{className:"col-title",title:s.pr.title,children:s.pr.title}),s.pr.isDraft&&f.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),y&&f.jsx("span",{className:"tag tag-awaiting",title:y.title,children:y.label}),g&&f.jsx("span",{className:"tag tag-done",children:g}),f.jsx("span",{className:"col-comments",children:s.commentCount||""}),f.jsx("span",{className:"col-size",children:s.pr.changedFiles>0?f.jsxs(f.Fragment,{children:[s.pr.changedFiles,"f ",f.jsxs("span",{className:"add",children:["+",s.pr.additions]})," ",f.jsxs("span",{className:"del",children:["−",s.pr.deletions]})]}):"—"}),f.jsx("span",{className:`col-verdict tone-${d.tone}`,children:d.label}),f.jsx("span",{className:"col-age",children:Rb(s.updatedAt)})]})}function db({autoFocus:s}){const[i,r]=ie.useState(""),[l,u]=ie.useState(!1),[d,g]=ie.useState(null),y=m=>{m.preventDefault();const p=i.trim();!p||l||(u(!0),g(null),R_(p).then(b=>ao(b.key)).catch(b=>{g(String(b instanceof Error?b.message:b)),u(!1)}))};return f.jsxs("form",{className:"pull",onSubmit:y,children:[f.jsx(Ze,{name:"plus"}),f.jsx("input",{className:"pull-input",value:i,autoFocus:s,disabled:l,onChange:m=>{r(m.target.value),d&&g(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),i.trim()&&f.jsx("button",{className:"btn btn-small",type:"submit",disabled:l,children:l?"starting…":"review"}),d&&f.jsx("span",{className:"pull-error",children:d})]})}function eN({text:s}){const i=ie.useRef(null),[r,l]=ie.useState(!1);return ie.useLayoutEffect(()=>{const u=i.current;if(!u)return;const d=()=>l(u.scrollHeight-u.clientHeight>4);d();const g=new ResizeObserver(d);return g.observe(u),()=>g.disconnect()},[s]),f.jsx("div",{ref:i,className:`strip-prose${r?" strip-prose-clipped":""}`,children:f.jsx(Wi,{className:"prose",text:s})})}function tN(){var Q;const[s,i]=ie.useState(null),[r,l]=ie.useState(null),[u,d]=ie.useState(null),[g,y]=ie.useState(new Set),[m,p]=ie.useState("inbox"),[b,v]=ie.useState(null),_=ie.useRef(!0);ie.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const x=()=>{If().then(K=>_.current&&i(K)).catch(K=>_.current&&d(String(K))),Ob().then(K=>_.current&&l(K)).catch(()=>{})};ie.useEffect(()=>{x();const K=setInterval(x,1e4);return()=>clearInterval(K)},[]);const N=s??[],A=ie.useMemo(()=>s_(N,r),[N,r]),w=A.requests,U=r_(m,A),G=A[U];ie.useEffect(()=>{U!==m&&p(U)},[U,m]);const L=G.find(K=>K.key===b)??G[0]??null,re=K=>{y(fe=>new Set(fe).add(K)),kb(K).then(()=>x()).catch(fe=>_.current&&d(String(fe))).finally(()=>{_.current&&y(fe=>{const we=new Set(fe);return we.delete(K),we})})};if(ie.useEffect(()=>{const K=fe=>{if(VT(fe.target)||fe.metaKey||fe.ctrlKey||fe.altKey)return;const we=G.findIndex(he=>he.key===(L==null?void 0:L.key)),Ae=he=>{const I=G[Math.min(G.length-1,Math.max(0,we+he))];I&&v(I.key)};fe.key==="j"||fe.key==="ArrowDown"?(fe.preventDefault(),Ae(1)):fe.key==="k"||fe.key==="ArrowUp"?(fe.preventDefault(),Ae(-1)):fe.key==="Enter"&&L?ao(L.key):fe.key==="r"&&L&&L.status!=="sent"&&L.status!=="running"&&re(L.key)};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[G,L==null?void 0:L.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((K,fe)=>K+(fe.costUsd??0),0),P=L?v_(L,r):null,le=L?g.has(L.key):!1,k=_f.filter(K=>A[K].length>0),z=K=>f.jsxs("button",{className:`tab${U===K?" tab-on":""}${_f.includes(K)?" tab-filed":""}${K==="requests"?" tab-requests":""}`,title:xu[K].title,onClick:()=>p(K),children:[xu[K].label," ",f.jsx("span",{className:"tab-count",children:A[K].length})]},K);return f.jsxs(f.Fragment,{children:[f.jsx(JT,{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(db,{autoFocus:!0})]})}):f.jsxs("div",{className:"wrap",children:[f.jsxs("div",{className:"tabs",children:[n_.map(z),k.length>0&&f.jsx("span",{className:"tab-split","aria-hidden":"true"}),k.map(z),f.jsx("span",{className:"grow"}),f.jsx(db,{}),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"&&w.length>0?f.jsxs(f.Fragment,{children:[f.jsx("p",{children:m_(w)}),f.jsxs("button",{className:"btn",onClick:()=>p("requests"),children:[f.jsx(Ze,{name:"arrowRight"}),"show ",w.length===1?"it":`all ${w.length}`]})]}):f.jsx("p",{className:"muted",children:U==="inbox"?`Inbox empty — nothing awaits your review.${r!=null&&r.enabled&&r.lastPollError?" (Discovery is offline; check gh auth.)":""}`:`Nothing ${xu[U].label} right now.`})}):G.map(K=>f.jsx(WT,{r:K,selected:K.key===(L==null?void 0:L.key),onSelect:()=>v(K.key),onOpen:()=>ao(K.key),awaiting:l_(K,w)?c_(K,r):null},K.key)),L&&P&&f.jsxs("div",{className:"cursor-strip",children:[f.jsxs("div",{className:"cursor-strip-body",children:[f.jsxs("div",{className:"lab",children:[L.pr.owner,"/",L.pr.repo,"#",L.pr.number,L.pr.headRefName&&L.pr.baseRefName?` · ${L.pr.headRefName} → ${L.pr.baseRefName}`:""]}),f.jsx(eN,{text:P.reasoning}),f.jsxs("div",{className:"cursor-strip-meta",children:[P.meta.join(" · "),((Q=L.sent)==null?void 0:Q.url)&&f.jsxs(f.Fragment,{children:[" · ",f.jsx("a",{href:L.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:()=>ao(L.key),children:[f.jsx(Ze,{name:"arrowRight"}),"open review ",f.jsx(Va,{children:"↵"})]}),f.jsxs("div",{className:"cursor-strip-row",children:[f.jsxs("button",{className:"btn",disabled:L.status==="sent"||L.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>no(L.key,{status:"skipped"}).then(x).catch(K=>d(String(K))),children:[f.jsx(Ze,{name:"skip"}),"skip"]}),f.jsxs("button",{className:"btn",disabled:le||L.status==="running"||L.status==="sent",title:L.status==="sent"?"This review was sent — it is a record now.":"Draft a review of the PR's current head.",onClick:()=>re(L.key),children:[f.jsx(Ze,{name:"rerun"}),le?"starting…":L.status==="awaiting"||L.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const nN=[{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"}],hb=s=>s instanceof Error?s.message:String(s),aN={unsupported:"this browser has no notifications to give",blocked:"this browser has blocked notifications for cerber",off:"tell me when a PR lands in the queue",ask:"tell me when a PR lands in the queue (the browser will ask first)",on:"tell me when a PR lands in the queue"};function iN({daemonAnnounces:s}){const[i,r]=Jb(),[l,u]=ie.useState(null),[d,g]=ie.useState(""),[y,m]=ie.useState(null),[p,b]=ie.useState(!1);ie.useEffect(()=>{z_().then(u).catch(_=>m(hb(_)))},[]);const v=_=>{b(!0),m(null),_.then(u).catch(x=>m(hb(x))).finally(()=>b(!1))};return y&&!l?f.jsx("p",{className:"error",children:y}):l?f.jsxs("div",{className:"settings",children:[f.jsx("a",{href:"#/",className:"back",children:"← queue"}),f.jsx("h1",{children:"Inbox"}),f.jsx("p",{children:"By default cerber keeps the queue itself: it polls GitHub for PRs awaiting your review and drafts a review for each, so they're ready when you open the cockpit. Nothing is ever sent without you. Changes apply on the next poll — no restart."}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:l.daemon.poll,disabled:p,onChange:_=>v(Ru({poll:_.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",l.daemon.intervalMinutes,"m)"]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:l.daemon.autoReview,disabled:p||!l.daemon.poll,onChange:_=>v(Ru({autoReview:_.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),f.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",f.jsx("code",{children:l.path})," under"," ",f.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),f.jsx("h1",{children:"Notifications"}),f.jsx("p",{children:"When a PR lands in the queue, cerber says so: one desktop notification per poll. A single arrival names the PR; several landing at once fold into one notification. A PR that has already been announced never arrives twice."}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:l.daemon.notify,disabled:p||!l.daemon.poll,onChange:_=>v(Ru({notify:_.target.checked}))})," ","tell this machine when a PR lands (no cockpit tab required)"]}),f.jsxs("p",{className:"muted",children:["This is the one that works while you're somewhere else: it rides the poll that finds the PR, so it needs nothing open but ",f.jsx("code",{children:"serve"})," itself. It hands the notification to whatever this machine already has — Notification Centre on macOS,"," ",f.jsx("code",{children:"notify-send"})," on Linux — and stays quiet where there is neither. It cannot open a review on click; the browser's can."]}),f.jsxs("label",{className:"inbox-toggle",children:[f.jsx("input",{type:"checkbox",checked:i==="on",disabled:i==="unsupported"||i==="blocked"||s,onChange:r})," ",s?"let this browser announce them instead":aN[i]]}),f.jsx("p",{className:"muted",children:s?f.jsxs(f.Fragment,{children:["Standing down while the machine's own notification is on — two popups for one PR is one too many. Untick the machine one above and this browser takes over: it names the PR and ",f.jsx("strong",{children:"opens that review when you click it"}),", but only while a cockpit tab is open and this browser has granted the permission."]}):f.jsxs(f.Fragment,{children:["Per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",f.jsx("code",{children:l.path}),". Granting it is the browser's prompt, not cerber's — a browser that has blocked cerber has to be un-blocked from the padlock next to the address bar. Nothing is announced while you're looking straight at the cockpit."]})}),f.jsx("h1",{children:"Trusted PRs"}),f.jsxs("p",{children:["Every review reads the PR's code. A ",f.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",f.jsx("code",{children:"git log"})," — so it can report what happened instead of guessing. That means executing code from the PR on this machine, the same as checking the branch out and running the tests yourself."]}),f.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",f.jsx("code",{children:l.path}),"."]}),f.jsx("p",{className:"muted",children:'Only people can be trusted — there is no way to trust a repository. Anyone can open a PR against a repo you own, so trusting the repo would trust them too. Membership is checked against GitHub when the review runs, and a check that fails counts as "not a member".'}),f.jsxs("div",{className:"trust-add",children:[f.jsx("input",{value:d,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:p,onChange:_=>g(_.target.value),onKeyDown:_=>{_.key==="Enter"&&!p&&d.trim()&&(v(Au(d.trim())),g(""))}}),f.jsx("button",{className:"btn",disabled:p||!d.trim(),onClick:()=>{v(Au(d.trim())),g("")},children:"trust"})]}),y&&f.jsx("p",{className:"error",children:y}),l.trust.length===0?f.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:l.trust.map(_=>f.jsxs("tr",{className:_.denies?"trust-deny":void 0,children:[f.jsx("td",{children:f.jsx("code",{children:_.rule})}),f.jsx("td",{className:"muted",children:_.explanation}),f.jsx("td",{className:"trust-actions",children:f.jsx("button",{className:"btn",disabled:p,onClick:()=>v(Au(_.rule,!0)),children:"remove"})})]},_.rule))})}),f.jsx("h2",{children:"Rule syntax"}),f.jsx("table",{className:"trust-table",children:f.jsx("tbody",{children:nN.map(_=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx("code",{children:_.rule})}),f.jsx("td",{className:"muted",children:_.meaning})]},_.rule))})}),f.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",f.jsx("code",{children:"gh"})," login, no git or ssh identity — so a push fails to authenticate rather than being merely discouraged. It is not a sandbox though: it has ",f.jsx("code",{children:"Bash"})," and this machine, so trust people you would let run their branch here anyway. The daemon reviews unattended, so with rules set it runs matching PRs' code with nobody watching — start it with ",f.jsx("code",{children:"--no-trust"})," to prevent that."]})]}):f.jsx("p",{className:"muted",children:"Loading…"})}function pb(){const s=window.location.hash,i=s.match(/^#\/r\/(.+)$/);return i?{view:"detail",key:decodeURIComponent(i[1])}:s==="#/settings"?{view:"settings"}:{view:"queue"}}const mb={unsupported:"",blocked:"This browser blocked notifications for cerber. Turn them back on in its site settings — the padlock next to the address bar.",off:"Notifications off. Click to be told when a PR lands in the queue.",ask:"Click to be told when a PR lands in the queue — the browser will ask you first.",on:"Telling you when a PR lands in the queue. Click to stop."},gb="cerber taps this machine itself when a PR lands — no tab required. The browser's own bell would be a second popup about one PR, so it stands down. Turn the machine one off in Settings to have this browser announce arrivals instead.";function lN({daemonAnnounces:s}){const[i,r]=Jb();return s?f.jsx("span",{className:"topbar-link bell bell-daemon",role:"img",title:gb,"aria-label":gb,children:f.jsx(Ze,{name:"bell",size:15})}):i==="unsupported"?null:f.jsx("button",{className:`topbar-link bell bell-${i}`,title:mb[i],"aria-label":mb[i],"aria-pressed":i==="on",onClick:r,children:f.jsx(Ze,{name:i==="on"?"bell":"bellOff",size:15})})}function sN(){const[s,i]=ie.useState(pb()),r=QT();return ie.useEffect(()=>{const l=()=>i(pb());return window.addEventListener("hashchange",l),()=>window.removeEventListener("hashchange",l)},[]),s.view==="detail"?f.jsx("div",{className:"app",children:f.jsx(qT,{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(z0,{}),"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(Va,{children:"j"}),f.jsx(Va,{children:"k"}),"move"]}),f.jsxs("span",{className:"hint",children:[f.jsx(Va,{children:"↵"}),"open"]}),f.jsxs("span",{className:"hint",children:[f.jsx(Va,{children:"r"}),"review now"]})]}),f.jsx(lN,{daemonAnnounces:r}),f.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:f.jsx(Ze,{name:"settings",size:15})})]})}),s.view==="queue"?f.jsx(tN,{}):f.jsx(iN,{daemonAnnounces:r})]})}dE.createRoot(document.getElementById("root")).render(f.jsx(sE.StrictMode,{children:f.jsx(sN,{})}));
|