@fullstackhouse/cerber 0.18.2 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/dist/cli/index.js +1 -1
- package/dist/core/artifact.js +15 -2
- package/dist/core/diff.js +19 -7
- package/dist/core/export.js +9 -1
- package/dist/runner/prompt.js +38 -4
- package/dist/server/index.js +6 -0
- package/package.json +1 -1
- package/web/dist/assets/{index-Cg6579bg.css → index-BG0S9CJ-.css} +1 -1
- package/web/dist/assets/index-Do1QOj6T.js +236 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-BPX9h5Ec.js +0 -236
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
var GE=Object.defineProperty;var $E=(s,i,r)=>i in s?GE(s,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[i]=r;var Tt=(s,i,r)=>$E(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 sb(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var cu={exports:{}},Os={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ym;function YE(){if(ym)return Os;ym=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 E in u)E!=="key"&&(d[E]=u[E])}else d=u;return u=d.ref,{$$typeof:s,type:l,key:g,ref:u!==void 0?u:null,props:d}}return Os.Fragment=i,Os.jsx=r,Os.jsxs=r,Os}var Em;function FE(){return Em||(Em=1,cu.exports=YE()),cu.exports}var p=FE(),uu={exports:{}},je={};/**
|
|
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 vm;function KE(){if(vm)return je;vm=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"),E=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),T=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=T&&_[T]||_["@@iterator"],typeof _=="function"?_:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,R={};function U(_,D,j){this.props=_,this.context=D,this.refs=R,this.updater=j||N}U.prototype.isReactComponent={},U.prototype.setState=function(_,D){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,D,"setState")},U.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function $(){}$.prototype=U.prototype;function L(_,D,j){this.props=_,this.context=D,this.refs=R,this.updater=j||N}var le=L.prototype=new $;le.constructor=L,k(le,U.prototype),le.isPureReactComponent=!0;var q=Array.isArray;function J(){}var ae={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function Y(_,D,j){var se=j.ref;return{$$typeof:s,type:_,key:D,ref:se!==void 0?se:null,props:j}}function ee(_,D){return Y(_.type,D,_.props)}function Z(_){return typeof _=="object"&&_!==null&&_.$$typeof===s}function ue(_){var D={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(j){return D[j]})}var Oe=/\/+/g;function Ce(_,D){return typeof _=="object"&&_!==null&&_.key!=null?ue(""+_.key):D.toString(36)}function ge(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(J,J):(_.status="pending",_.then(function(D){_.status==="pending"&&(_.status="fulfilled",_.value=D)},function(D){_.status==="pending"&&(_.status="rejected",_.reason=D)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function B(_,D,j,se,fe){var xe=typeof _;(xe==="undefined"||xe==="boolean")&&(_=null);var Ee=!1;if(_===null)Ee=!0;else switch(xe){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(_.$$typeof){case s:case i:Ee=!0;break;case b:return Ee=_._init,B(Ee(_._payload),D,j,se,fe)}}if(Ee)return fe=fe(_),Ee=se===""?"."+Ce(_,0):se,q(fe)?(j="",Ee!=null&&(j=Ee.replace(Oe,"$&/")+"/"),B(fe,D,j,"",function(He){return He})):fe!=null&&(Z(fe)&&(fe=ee(fe,j+(fe.key==null||_&&_.key===fe.key?"":(""+fe.key).replace(Oe,"$&/")+"/")+Ee)),D.push(fe)),1;Ee=0;var Re=se===""?".":se+":";if(q(_))for(var ke=0;ke<_.length;ke++)se=_[ke],xe=Re+Ce(se,ke),Ee+=B(se,D,j,xe,fe);else if(ke=x(_),typeof ke=="function")for(_=ke.call(_),ke=0;!(se=_.next()).done;)se=se.value,xe=Re+Ce(se,ke++),Ee+=B(se,D,j,xe,fe);else if(xe==="object"){if(typeof _.then=="function")return B(ge(_),D,j,se,fe);throw D=String(_),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function te(_,D,j){if(_==null)return _;var se=[],fe=0;return B(_,se,"","",function(xe){return D.call(j,xe,fe++)}),se}function ce(_){if(_._status===-1){var D=_._result;D=D(),D.then(function(j){(_._status===0||_._status===-1)&&(_._status=1,_._result=j)},function(j){(_._status===0||_._status===-1)&&(_._status=2,_._result=j)}),_._status===-1&&(_._status=0,_._result=D)}if(_._status===1)return _._result.default;throw _._result}var Te=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},Be={map:te,forEach:function(_,D,j){te(_,function(){D.apply(this,arguments)},j)},count:function(_){var D=0;return te(_,function(){D++}),D},toArray:function(_){return te(_,function(D){return D})||[]},only:function(_){if(!Z(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return je.Activity=v,je.Children=Be,je.Component=U,je.Fragment=r,je.Profiler=u,je.PureComponent=L,je.StrictMode=l,je.Suspense=h,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae,je.__COMPILER_RUNTIME={__proto__:null,c:function(_){return ae.H.useMemoCache(_)}},je.cache=function(_){return function(){return _.apply(null,arguments)}},je.cacheSignal=function(){return null},je.cloneElement=function(_,D,j){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var se=k({},_.props),fe=_.key;if(D!=null)for(xe in D.key!==void 0&&(fe=""+D.key),D)!M.call(D,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&D.ref===void 0||(se[xe]=D[xe]);var xe=arguments.length-2;if(xe===1)se.children=j;else if(1<xe){for(var Ee=Array(xe),Re=0;Re<xe;Re++)Ee[Re]=arguments[Re+2];se.children=Ee}return Y(_.type,fe,se)},je.createContext=function(_){return _={$$typeof:g,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:d,_context:_},_},je.createElement=function(_,D,j){var se,fe={},xe=null;if(D!=null)for(se in D.key!==void 0&&(xe=""+D.key),D)M.call(D,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(fe[se]=D[se]);var Ee=arguments.length-2;if(Ee===1)fe.children=j;else if(1<Ee){for(var Re=Array(Ee),ke=0;ke<Ee;ke++)Re[ke]=arguments[ke+2];fe.children=Re}if(_&&_.defaultProps)for(se in Ee=_.defaultProps,Ee)fe[se]===void 0&&(fe[se]=Ee[se]);return Y(_,xe,fe)},je.createRef=function(){return{current:null}},je.forwardRef=function(_){return{$$typeof:E,render:_}},je.isValidElement=Z,je.lazy=function(_){return{$$typeof:b,_payload:{_status:-1,_result:_},_init:ce}},je.memo=function(_,D){return{$$typeof:m,type:_,compare:D===void 0?null:D}},je.startTransition=function(_){var D=ae.T,j={};ae.T=j;try{var se=_(),fe=ae.S;fe!==null&&fe(j,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(J,Te)}catch(xe){Te(xe)}finally{D!==null&&j.types!==null&&(D.types=j.types),ae.T=D}},je.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()},je.use=function(_){return ae.H.use(_)},je.useActionState=function(_,D,j){return ae.H.useActionState(_,D,j)},je.useCallback=function(_,D){return ae.H.useCallback(_,D)},je.useContext=function(_){return ae.H.useContext(_)},je.useDebugValue=function(){},je.useDeferredValue=function(_,D){return ae.H.useDeferredValue(_,D)},je.useEffect=function(_,D){return ae.H.useEffect(_,D)},je.useEffectEvent=function(_){return ae.H.useEffectEvent(_)},je.useId=function(){return ae.H.useId()},je.useImperativeHandle=function(_,D,j){return ae.H.useImperativeHandle(_,D,j)},je.useInsertionEffect=function(_,D){return ae.H.useInsertionEffect(_,D)},je.useLayoutEffect=function(_,D){return ae.H.useLayoutEffect(_,D)},je.useMemo=function(_,D){return ae.H.useMemo(_,D)},je.useOptimistic=function(_,D){return ae.H.useOptimistic(_,D)},je.useReducer=function(_,D,j){return ae.H.useReducer(_,D,j)},je.useRef=function(_){return ae.H.useRef(_)},je.useState=function(_){return ae.H.useState(_)},je.useSyncExternalStore=function(_,D,j){return ae.H.useSyncExternalStore(_,D,j)},je.useTransition=function(){return ae.H.useTransition()},je.version="19.2.8",je}var _m;function Nf(){return _m||(_m=1,uu.exports=KE()),uu.exports}var he=Nf();const ZE=sb(he);var fu={exports:{}},Ms={},du={exports:{}},hu={};/**
|
|
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 Sm;function XE(){return Sm||(Sm=1,(function(s){function i(B,te){var ce=B.length;B.push(te);e:for(;0<ce;){var Te=ce-1>>>1,Be=B[Te];if(0<u(Be,te))B[Te]=te,B[ce]=Be,ce=Te;else break e}}function r(B){return B.length===0?null:B[0]}function l(B){if(B.length===0)return null;var te=B[0],ce=B.pop();if(ce!==te){B[0]=ce;e:for(var Te=0,Be=B.length,_=Be>>>1;Te<_;){var D=2*(Te+1)-1,j=B[D],se=D+1,fe=B[se];if(0>u(j,ce))se<Be&&0>u(fe,j)?(B[Te]=fe,B[se]=ce,Te=se):(B[Te]=j,B[D]=ce,Te=D);else if(se<Be&&0>u(fe,ce))B[Te]=fe,B[se]=ce,Te=se;else break e}}return te}function u(B,te){var ce=B.sortIndex-te.sortIndex;return ce!==0?ce:B.id-te.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,E=g.now();s.unstable_now=function(){return g.now()-E}}var h=[],m=[],b=1,v=null,T=3,x=!1,N=!1,k=!1,R=!1,U=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function le(B){for(var te=r(m);te!==null;){if(te.callback===null)l(m);else if(te.startTime<=B)l(m),te.sortIndex=te.expirationTime,i(h,te);else break;te=r(m)}}function q(B){if(k=!1,le(B),!N)if(r(h)!==null)N=!0,J||(J=!0,ue());else{var te=r(m);te!==null&&ge(q,te.startTime-B)}}var J=!1,ae=-1,M=5,Y=-1;function ee(){return R?!0:!(s.unstable_now()-Y<M)}function Z(){if(R=!1,J){var B=s.unstable_now();Y=B;var te=!0;try{e:{N=!1,k&&(k=!1,$(ae),ae=-1),x=!0;var ce=T;try{t:{for(le(B),v=r(h);v!==null&&!(v.expirationTime>B&&ee());){var Te=v.callback;if(typeof Te=="function"){v.callback=null,T=v.priorityLevel;var Be=Te(v.expirationTime<=B);if(B=s.unstable_now(),typeof Be=="function"){v.callback=Be,le(B),te=!0;break t}v===r(h)&&l(h),le(B)}else l(h);v=r(h)}if(v!==null)te=!0;else{var _=r(m);_!==null&&ge(q,_.startTime-B),te=!1}}break e}finally{v=null,T=ce,x=!1}te=void 0}}finally{te?ue():J=!1}}}var ue;if(typeof L=="function")ue=function(){L(Z)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,Ce=Oe.port2;Oe.port1.onmessage=Z,ue=function(){Ce.postMessage(null)}}else ue=function(){U(Z,0)};function ge(B,te){ae=U(function(){B(s.unstable_now())},te)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(B){B.callback=null},s.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<B?Math.floor(1e3/B):5},s.unstable_getCurrentPriorityLevel=function(){return T},s.unstable_next=function(B){switch(T){case 1:case 2:case 3:var te=3;break;default:te=T}var ce=T;T=te;try{return B()}finally{T=ce}},s.unstable_requestPaint=function(){R=!0},s.unstable_runWithPriority=function(B,te){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ce=T;T=B;try{return te()}finally{T=ce}},s.unstable_scheduleCallback=function(B,te,ce){var Te=s.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?Te+ce:Te):ce=Te,B){case 1:var Be=-1;break;case 2:Be=250;break;case 5:Be=1073741823;break;case 4:Be=1e4;break;default:Be=5e3}return Be=ce+Be,B={id:b++,callback:te,priorityLevel:B,startTime:ce,expirationTime:Be,sortIndex:-1},ce>Te?(B.sortIndex=ce,i(m,B),r(h)===null&&B===r(m)&&(k?($(ae),ae=-1):k=!0,ge(q,ce-Te))):(B.sortIndex=Be,i(h,B),N||x||(N=!0,J||(J=!0,ue()))),B},s.unstable_shouldYield=ee,s.unstable_wrapCallback=function(B){var te=T;return function(){var ce=T;T=te;try{return B.apply(this,arguments)}finally{T=ce}}}})(hu)),hu}var Tm;function PE(){return Tm||(Tm=1,du.exports=XE()),du.exports}var pu={exports:{}},Sn={};/**
|
|
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 Nm;function QE(){if(Nm)return Sn;Nm=1;var s=Nf();function i(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(h,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:h,containerInfo:m,implementation:b}}var g=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function E(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Sn.createPortal=function(h,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(h,m,null,b)},Sn.flushSync=function(h){var m=g.T,b=l.p;try{if(g.T=null,l.p=2,h)return h()}finally{g.T=m,l.p=b,l.d.f()}},Sn.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,l.d.C(h,m))},Sn.prefetchDNS=function(h){typeof h=="string"&&l.d.D(h)},Sn.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var b=m.as,v=E(b,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?l.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:T,fetchPriority:x}):b==="script"&&l.d.X(h,{crossOrigin:v,integrity:T,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Sn.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=E(m.as,m.crossOrigin);l.d.M(h,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&l.d.M(h)},Sn.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=E(b,m.crossOrigin);l.d.L(h,b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Sn.preloadModule=function(h,m){if(typeof h=="string")if(m){var b=E(m.as,m.crossOrigin);l.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else l.d.m(h)},Sn.requestFormReset=function(h){l.d.r(h)},Sn.unstable_batchedUpdates=function(h,m){return h(m)},Sn.useFormState=function(h,m,b){return g.H.useFormState(h,m,b)},Sn.useFormStatus=function(){return g.H.useHostTransitionStatus()},Sn.version="19.2.8",Sn}var xm;function rb(){if(xm)return pu.exports;xm=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),pu.exports=QE(),pu.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 wm;function VE(){if(wm)return Ms;wm=1;var s=PE(),i=Nf(),r=rb();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 E(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 h(e){if(d(e)!==e)throw Error(l(188))}function m(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return h(o),e;if(c===a)return h(o),t;c=c.sibling}throw Error(l(188))}if(n.return!==a.return)n=o,a=c;else{for(var f=!1,y=o.child;y;){if(y===n){f=!0,n=o,a=c;break}if(y===a){f=!0,a=o,n=c;break}y=y.sibling}if(!f){for(y=c.child;y;){if(y===n){f=!0,n=c,a=o;break}if(y===a){f=!0,a=c,n=o;break}y=y.sibling}if(!f)throw Error(l(189))}}if(n.alternate!==a)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,T=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),L=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=Z&&e[Z]||e["@@iterator"],typeof e=="function"?e:null)}var Oe=Symbol.for("react.client.reference");function Ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case U:return"Profiler";case R:return"StrictMode";case q:return"Suspense";case J:return"SuspenseList";case Y:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case L:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return t=e.displayName||null,t!==null?t:Ce(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return Ce(e(t))}catch{}}return null}var ge=Array.isArray,B=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},Te=[],Be=-1;function _(e){return{current:e}}function D(e){0>Be||(e.current=Te[Be],Te[Be]=null,Be--)}function j(e,t){Be++,Te[Be]=e.current,e.current=t}var se=_(null),fe=_(null),xe=_(null),Ee=_(null);function Re(e,t){switch(j(xe,t),j(fe,e),j(se,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=Gp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(se),j(se,e)}function ke(){D(se),D(fe),D(xe)}function He(e){e.memoizedState!==null&&j(Ee,e);var t=se.current,n=Gp(t,e.type);t!==n&&(j(fe,e),j(se,n))}function Ze(e){fe.current===e&&(D(se),D(fe)),Ee.current===e&&(D(Ee),xs._currentValue=ce)}var Le,Nt;function Fe(e){if(Le===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Le=t&&t[1]||"",Nt=-1<n.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Le+e+Nt}var On=!1;function tt(e,t){if(!e||On)return"";On=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(F){var G=F}Reflect.construct(e,[],W)}else{try{W.call()}catch(F){G=F}e.call(W.prototype)}}else{try{throw Error()}catch(F){G=F}(W=e())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(F){if(F&&G&&typeof F.stack=="string")return[F.stack,G.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],y=c[1];if(f&&y){var w=f.split(`
|
|
44
|
-
`),H=y.split(`
|
|
45
|
-
`);for(o=a=0;a<w.length&&!w[a].includes("DetermineComponentFrameRoot");)a++;for(;o<H.length&&!H[o].includes("DetermineComponentFrameRoot");)o++;if(a===w.length||o===H.length)for(a=w.length-1,o=H.length-1;1<=a&&0<=o&&w[a]!==H[o];)o--;for(;1<=a&&0<=o;a--,o--)if(w[a]!==H[o]){if(a!==1||o!==1)do if(a--,o--,0>o||w[a]!==H[o]){var P=`
|
|
46
|
-
`+w[a].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=a&&0<=o);break}}}finally{On=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Fe(n):""}function tn(e,t){switch(e.tag){case 26:case 27:case 5:return Fe(e.type);case 16:return Fe("Lazy");case 13:return e.child!==t&&t!==null?Fe("Suspense Fallback"):Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 15:return tt(e.type,!1);case 11:return tt(e.type.render,!1);case 1:return tt(e.type,!0);case 31:return Fe("Activity");default:return""}}function Hn(e){try{var t="",n=null;do t+=tn(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var Vt=Object.prototype.hasOwnProperty,Mn=s.unstable_scheduleCallback,xn=s.unstable_cancelCallback,oa=s.unstable_shouldYield,ca=s.unstable_requestPaint,at=s.unstable_now,Bt=s.unstable_getCurrentPriorityLevel,yt=s.unstable_ImmediatePriority,nn=s.unstable_UserBlockingPriority,fn=s.unstable_NormalPriority,kn=s.unstable_LowPriority,Cn=s.unstable_IdlePriority,Dn=s.log,qn=s.unstable_setDisableYieldValue,dn=null,Ot=null;function an(e){if(typeof Dn=="function"&&qn(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(dn,e)}catch{}}var Dt=Math.clz32?Math.clz32:be,Qn=Math.log,ie=Math.LN2;function be(e){return e>>>=0,e===0?32:31-(Qn(e)/ie|0)|0}var oe=256,ht=262144,Jt=4194304;function Wt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function A(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,c=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~c,a!==0?o=Wt(a):(f&=y,f!==0?o=Wt(f):n||(n=y&~e,n!==0&&(o=Wt(n))))):(y=a&~c,y!==0?o=Wt(y):f!==0?o=Wt(f):n||(n=a&~e,n!==0&&(o=Wt(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 Q(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function de(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 De(){var e=Jt;return Jt<<=1,(Jt&62914560)===0&&(Jt=4194304),e}function Je(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function it(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ve(e,t,n,a,o,c){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,w=e.expirationTimes,H=e.hiddenUpdates;for(n=f&~n;0<n;){var P=31-Dt(n),W=1<<P;y[P]=0,w[P]=-1;var G=H[P];if(G!==null)for(H[P]=null,P=0;P<G.length;P++){var F=G[P];F!==null&&(F.lane&=-536870913)}n&=~W}a!==0&&me(e,a,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(f&~t))}function me(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Dt(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-Dt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function Mt(e,t){var n=t&-t;return n=(n&42)!==0?1:Et(n),(n&(e.suspendedLanes|t))!==0?0:n}function Et(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 Vn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ya(){var e=te.p;return e!==0?e:(e=window.event,e===void 0?32:fm(e.type))}function Ja(e,t){var n=te.p;try{return te.p=e,t()}finally{te.p=n}}var vn=Math.random().toString(36).slice(2),Lt="__reactFiber$"+vn,ln="__reactProps$"+vn,st="__reactContainer$"+vn,Jn="__reactEvents$"+vn,el="__reactListeners$"+vn,Ma="__reactHandles$"+vn,Wa="__reactResources$"+vn,Ea="__reactMarker$"+vn;function ei(e){delete e[Lt],delete e[ln],delete e[Jn],delete e[el],delete e[Ma]}function hn(e){var t=e[Lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[st]||n[Lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Pp(e);e!==null;){if(n=e[Lt])return n;e=Pp(e)}return t}e=n,n=e.parentNode}return null}function ua(e){if(e=e[Lt]||e[st]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function va(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function _a(e){var t=e[Wa];return t||(t=e[Wa]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function pt(e){e[Ea]=!0}var ka=new Set,wn={};function fa(e,t){re(e,t),re(e+"Capture",t)}function re(e,t){for(wn[e]=t,e=0;e<t.length;e++)ka.add(t[e])}var we=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ge={},rt={};function wt(e){return Vt.call(rt,e)?!0:Vt.call(Ge,e)?!1:we.test(e)?rt[e]=!0:(Ge[e]=!0,!1)}function Gt(e,t,n){if(wt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function sn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function It(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function ot(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tl(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ti(e){if(!e._valueTracker){var t=kt(e)?"checked":"value";e._valueTracker=tl(e,t,""+e[t])}}function ni(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=kt(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ca(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var nl=/[\n"\\]/g;function _n(e){return e.replace(nl,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ai(e,t,n,a,o,c,f,y){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ot(t)):e.value!==""+ot(t)&&(e.value=""+ot(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?ii(e,f,ot(t)):n!=null?ii(e,f,ot(n)):a!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+ot(y):e.removeAttribute("name")}function Da(e,t,n,a,o,c,f,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ti(e);return}n=n!=null?""+ot(n):"",t=t!=null?""+ot(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),ti(e)}function ii(e,t,n){t==="number"&&Ca(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function $t(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+ot(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function La(e,t,n){if(t!=null&&(t=""+ot(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ot(n):""}function Sa(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(l(92));if(ge(a)){if(1<a.length)throw Error(l(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=ot(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),ti(e)}function K(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var S=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function C(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||S.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function X(e,t,n){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&C(e,o,a)}else for(var c in t)t.hasOwnProperty(c)&&C(e,c,t[c])}function ye(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Se=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ie=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Xe(e){return Ie.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ne(){}var pe=null;function Ae(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ye=null,Ke=null;function Wn(e){var t=ua(e);if(t&&(e=t.stateNode)){var n=e[ln]||null;e:switch(e=t.stateNode,t.type){case"input":if(ai(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+_n(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[ln]||null;if(!o)throw Error(l(90));ai(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&ni(a)}break e;case"textarea":La(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&$t(e,!!n.multiple,t,!1)}}}var ql=!1;function qs(e,t,n){if(ql)return e(t,n);ql=!0;try{var a=e(t);return a}finally{if(ql=!1,(Ye!==null||Ke!==null)&&(Rr(),Ye&&(t=Ye,e=Ke,Ke=Ye=null,Wn(t),e)))for(t=0;t<e.length;t++)Wn(e[t])}}function Gl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[ln]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var za=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oo=!1;if(za)try{var $l={};Object.defineProperty($l,"passive",{get:function(){oo=!0}}),window.addEventListener("test",$l,$l),window.removeEventListener("test",$l,$l)}catch{oo=!1}var li=null,co=null,Gs=null;function Gf(){if(Gs)return Gs;var e,t=co,n=t.length,a,o="value"in li?li.value:li.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var f=n-e;for(a=1;a<=f&&t[n-a]===o[c-a];a++);return Gs=o.slice(e,1<a?1-a:void 0)}function $s(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 Ys(){return!0}function $f(){return!1}function Ln(e){function t(n,a,o,c,f){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ys:$f,this.isPropagationStopped=$f,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=Ys)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ys)},persist:function(){},isPersistent:Ys}),t}var Ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fs=Ln(Ci),Yl=v({},Ci,{view:0,detail:0}),Hb=Ln(Yl),uo,fo,Fl,Ks=v({},Yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:po,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Fl&&(Fl&&e.type==="mousemove"?(uo=e.screenX-Fl.screenX,fo=e.screenY-Fl.screenY):fo=uo=0,Fl=e),uo)},movementY:function(e){return"movementY"in e?e.movementY:fo}}),Yf=Ln(Ks),qb=v({},Ks,{dataTransfer:0}),Gb=Ln(qb),$b=v({},Yl,{relatedTarget:0}),ho=Ln($b),Yb=v({},Ci,{animationName:0,elapsedTime:0,pseudoElement:0}),Fb=Ln(Yb),Kb=v({},Ci,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zb=Ln(Kb),Xb=v({},Ci,{data:0}),Ff=Ln(Xb),Pb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qb={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"},Vb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vb[e])?!!t[e]:!1}function po(){return Jb}var Wb=v({},Yl,{key:function(e){if(e.key){var t=Pb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$s(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:po,charCode:function(e){return e.type==="keypress"?$s(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$s(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ey=Ln(Wb),ty=v({},Ks,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kf=Ln(ty),ny=v({},Yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:po}),ay=Ln(ny),iy=v({},Ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),ly=Ln(iy),sy=v({},Ks,{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}),ry=Ln(sy),oy=v({},Ci,{newState:0,oldState:0}),cy=Ln(oy),uy=[9,13,27,32],mo=za&&"CompositionEvent"in window,Kl=null;za&&"documentMode"in document&&(Kl=document.documentMode);var fy=za&&"TextEvent"in window&&!Kl,Zf=za&&(!mo||Kl&&8<Kl&&11>=Kl),Xf=" ",Pf=!1;function Qf(e,t){switch(e){case"keyup":return uy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var al=!1;function dy(e,t){switch(e){case"compositionend":return Vf(t);case"keypress":return t.which!==32?null:(Pf=!0,Xf);case"textInput":return e=t.data,e===Xf&&Pf?null:e;default:return null}}function hy(e,t){if(al)return e==="compositionend"||!mo&&Qf(e,t)?(e=Gf(),Gs=co=li=null,al=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Zf&&t.locale!=="ko"?null:t.data;default:return null}}var py={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 Jf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!py[e.type]:t==="textarea"}function Wf(e,t,n,a){Ye?Ke?Ke.push(a):Ke=[a]:Ye=a,t=zr(t,"onChange"),0<t.length&&(n=new Fs("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Zl=null,Xl=null;function my(e){zp(e,0)}function Zs(e){var t=va(e);if(ni(t))return e}function ed(e,t){if(e==="change")return t}var td=!1;if(za){var go;if(za){var bo="oninput"in document;if(!bo){var nd=document.createElement("div");nd.setAttribute("oninput","return;"),bo=typeof nd.oninput=="function"}go=bo}else go=!1;td=go&&(!document.documentMode||9<document.documentMode)}function ad(){Zl&&(Zl.detachEvent("onpropertychange",id),Xl=Zl=null)}function id(e){if(e.propertyName==="value"&&Zs(Xl)){var t=[];Wf(t,Xl,e,Ae(e)),qs(my,t)}}function gy(e,t,n){e==="focusin"?(ad(),Zl=t,Xl=n,Zl.attachEvent("onpropertychange",id)):e==="focusout"&&ad()}function by(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zs(Xl)}function yy(e,t){if(e==="click")return Zs(t)}function Ey(e,t){if(e==="input"||e==="change")return Zs(t)}function vy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gn=typeof Object.is=="function"?Object.is:vy;function Pl(e,t){if(Gn(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(!Vt.call(t,o)||!Gn(e[o],t[o]))return!1}return!0}function ld(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sd(e,t){var n=ld(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=ld(n)}}function rd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function od(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 yo(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 _y=za&&"documentMode"in document&&11>=document.documentMode,il=null,Eo=null,Ql=null,vo=!1;function cd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vo||il==null||il!==Ca(a)||(a=il,"selectionStart"in a&&yo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ql&&Pl(Ql,a)||(Ql=a,a=zr(Eo,"onSelect"),0<a.length&&(t=new Fs("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=il)))}function Di(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ll={animationend:Di("Animation","AnimationEnd"),animationiteration:Di("Animation","AnimationIteration"),animationstart:Di("Animation","AnimationStart"),transitionrun:Di("Transition","TransitionRun"),transitionstart:Di("Transition","TransitionStart"),transitioncancel:Di("Transition","TransitionCancel"),transitionend:Di("Transition","TransitionEnd")},_o={},ud={};za&&(ud=document.createElement("div").style,"AnimationEvent"in window||(delete ll.animationend.animation,delete ll.animationiteration.animation,delete ll.animationstart.animation),"TransitionEvent"in window||delete ll.transitionend.transition);function Li(e){if(_o[e])return _o[e];if(!ll[e])return e;var t=ll[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ud)return _o[e]=t[n];return e}var fd=Li("animationend"),dd=Li("animationiteration"),hd=Li("animationstart"),Sy=Li("transitionrun"),Ty=Li("transitionstart"),Ny=Li("transitioncancel"),pd=Li("transitionend"),md=new Map,So="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(" ");So.push("scrollEnd");function da(e,t){md.set(e,t),fa(t,[e])}var Xs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ea=[],sl=0,To=0;function Ps(){for(var e=sl,t=To=sl=0;t<e;){var n=ea[t];ea[t++]=null;var a=ea[t];ea[t++]=null;var o=ea[t];ea[t++]=null;var c=ea[t];if(ea[t++]=null,a!==null&&o!==null){var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}c!==0&&gd(n,o,c)}}function Qs(e,t,n,a){ea[sl++]=e,ea[sl++]=t,ea[sl++]=n,ea[sl++]=a,To|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function No(e,t,n,a){return Qs(e,t,n,a),Vs(e)}function zi(e,t){return Qs(e,null,null,t),Vs(e)}function gd(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-Dt(n),e=c.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),c):null}function Vs(e){if(50<ys)throw ys=0,Dc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var rl={};function xy(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 $n(e,t,n,a){return new xy(e,t,n,a)}function xo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ua(e,t){var n=e.alternate;return n===null?(n=$n(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 bd(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 Js(e,t,n,a,o,c){var f=0;if(a=e,typeof e=="function")xo(e)&&(f=1);else if(typeof e=="string")f=ME(e,n,se.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Y:return e=$n(31,n,t,o),e.elementType=Y,e.lanes=c,e;case k:return Ui(n.children,o,c,t);case R:f=8,o|=24;break;case U:return e=$n(12,n,t,o|2),e.elementType=U,e.lanes=c,e;case q:return e=$n(13,n,t,o),e.elementType=q,e.lanes=c,e;case J:return e=$n(19,n,t,o),e.elementType=J,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:f=10;break e;case $:f=9;break e;case le:f=11;break e;case ae:f=14;break e;case M:f=16,a=null;break e}f=29,n=Error(l(130,e===null?"null":typeof e,"")),a=null}return t=$n(f,n,t,o),t.elementType=e,t.type=a,t.lanes=c,t}function Ui(e,t,n,a){return e=$n(7,e,a,t),e.lanes=n,e}function wo(e,t,n){return e=$n(6,e,null,t),e.lanes=n,e}function yd(e){var t=$n(18,null,null,0);return t.stateNode=e,t}function Ao(e,t,n){return t=$n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ed=new WeakMap;function ta(e,t){if(typeof e=="object"&&e!==null){var n=Ed.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Hn(t)},Ed.set(e,t),t)}return{value:e,source:t,stack:Hn(t)}}var ol=[],cl=0,Ws=null,Vl=0,na=[],aa=0,si=null,Ta=1,Na="";function Ba(e,t){ol[cl++]=Vl,ol[cl++]=Ws,Ws=e,Vl=t}function vd(e,t,n){na[aa++]=Ta,na[aa++]=Na,na[aa++]=si,si=e;var a=Ta;e=Na;var o=32-Dt(a)-1;a&=~(1<<o),n+=1;var c=32-Dt(t)+o;if(30<c){var f=o-o%5;c=(a&(1<<f)-1).toString(32),a>>=f,o-=f,Ta=1<<32-Dt(t)+o|n<<o|a,Na=c+e}else Ta=1<<c|n<<o|a,Na=e}function Ro(e){e.return!==null&&(Ba(e,1),vd(e,1,0))}function Oo(e){for(;e===Ws;)Ws=ol[--cl],ol[cl]=null,Vl=ol[--cl],ol[cl]=null;for(;e===si;)si=na[--aa],na[aa]=null,Na=na[--aa],na[aa]=null,Ta=na[--aa],na[aa]=null}function _d(e,t){na[aa++]=Ta,na[aa++]=Na,na[aa++]=si,Ta=t.id,Na=t.overflow,si=e}var pn=null,At=null,nt=!1,ri=null,ia=!1,Mo=Error(l(519));function oi(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jl(ta(t,e)),Mo}function Sd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Lt]=e,t[ln]=a,n){case"dialog":Qe("cancel",t),Qe("close",t);break;case"iframe":case"object":case"embed":Qe("load",t);break;case"video":case"audio":for(n=0;n<vs.length;n++)Qe(vs[n],t);break;case"source":Qe("error",t);break;case"img":case"image":case"link":Qe("error",t),Qe("load",t);break;case"details":Qe("toggle",t);break;case"input":Qe("invalid",t),Da(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Qe("invalid",t);break;case"textarea":Qe("invalid",t),Sa(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||jp(t.textContent,n)?(a.popover!=null&&(Qe("beforetoggle",t),Qe("toggle",t)),a.onScroll!=null&&Qe("scroll",t),a.onScrollEnd!=null&&Qe("scrollend",t),a.onClick!=null&&(t.onclick=ne),t=!0):t=!1,t||oi(e,!0)}function Td(e){for(pn=e.return;pn;)switch(pn.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:pn=pn.return}}function ul(e){if(e!==pn)return!1;if(!nt)return Td(e),nt=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Xc(e.type,e.memoizedProps)),n=!n),n&&At&&oi(e),Td(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));At=Xp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));At=Xp(e)}else t===27?(t=At,Si(e.type)?(e=Wc,Wc=null,At=e):At=t):At=pn?sa(e.stateNode.nextSibling):null;return!0}function Bi(){At=pn=null,nt=!1}function ko(){var e=ri;return e!==null&&(In===null?In=e:In.push.apply(In,e),ri=null),e}function Jl(e){ri===null?ri=[e]:ri.push(e)}var Co=_(null),Ii=null,Ia=null;function ci(e,t,n){j(Co,t._currentValue),t._currentValue=n}function ja(e){e._currentValue=Co.current,D(Co)}function Do(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 Lo(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var f=o.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=o;for(var w=0;w<t.length;w++)if(y.context===t[w]){c.lanes|=n,y=c.alternate,y!==null&&(y.lanes|=n),Do(c.return,n,e),a||(f=null);break e}c=y.next}}else if(o.tag===18){if(f=o.return,f===null)throw Error(l(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),Do(f,n,e),f=null}else f=o.child;if(f!==null)f.return=o;else for(f=o;f!==null;){if(f===e){f=null;break}if(o=f.sibling,o!==null){o.return=f.return,f=o;break}f=f.return}o=f}}function fl(e,t,n,a){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var f=o.alternate;if(f===null)throw Error(l(387));if(f=f.memoizedProps,f!==null){var y=o.type;Gn(o.pendingProps.value,f.value)||(e!==null?e.push(y):e=[y])}}else if(o===Ee.current){if(f=o.alternate,f===null)throw Error(l(387));f.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(xs):e=[xs])}o=o.return}e!==null&&Lo(t,e,n,a),t.flags|=262144}function er(e){for(e=e.firstContext;e!==null;){if(!Gn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ji(e){Ii=e,Ia=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mn(e){return Nd(Ii,e)}function tr(e,t){return Ii===null&&ji(e),Nd(e,t)}function Nd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ia===null){if(e===null)throw Error(l(308));Ia=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ia=Ia.next=t;return n}var wy=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()})}},Ay=s.unstable_scheduleCallback,Ry=s.unstable_NormalPriority,Yt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zo(){return{controller:new wy,data:new Map,refCount:0}}function Wl(e){e.refCount--,e.refCount===0&&Ay(Ry,function(){e.controller.abort()})}var es=null,Uo=0,dl=0,hl=null;function Oy(e,t){if(es===null){var n=es=[];Uo=0,dl=jc(),hl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Uo++,t.then(xd,xd),t}function xd(){if(--Uo===0&&es!==null){hl!==null&&(hl.status="fulfilled");var e=es;es=null,dl=0,hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function My(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 wd=B.S;B.S=function(e,t){cp=at(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Oy(e,t),wd!==null&&wd(e,t)};var Hi=_(null);function Bo(){var e=Hi.current;return e!==null?e:xt.pooledCache}function nr(e,t){t===null?j(Hi,Hi.current):j(Hi,t.pool)}function Ad(){var e=Bo();return e===null?null:{parent:Yt._currentValue,pool:e}}var pl=Error(l(460)),Io=Error(l(474)),ar=Error(l(542)),ir={then:function(){}};function Rd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Od(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ne,ne),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,kd(e),e;default:if(typeof t.status=="string")t.then(ne,ne);else{if(e=xt,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,kd(e),e}throw Gi=t,pl}}function qi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Gi=n,pl):n}}var Gi=null;function Md(){if(Gi===null)throw Error(l(459));var e=Gi;return Gi=null,e}function kd(e){if(e===pl||e===ar)throw Error(l(483))}var ml=null,ts=0;function lr(e){var t=ts;return ts+=1,ml===null&&(ml=[]),Od(ml,e,t)}function ns(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function sr(e,t){throw t.$$typeof===T?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Cd(e){function t(z,O){if(e){var I=z.deletions;I===null?(z.deletions=[O],z.flags|=16):I.push(O)}}function n(z,O){if(!e)return null;for(;O!==null;)t(z,O),O=O.sibling;return null}function a(z){for(var O=new Map;z!==null;)z.key!==null?O.set(z.key,z):O.set(z.index,z),z=z.sibling;return O}function o(z,O){return z=Ua(z,O),z.index=0,z.sibling=null,z}function c(z,O,I){return z.index=I,e?(I=z.alternate,I!==null?(I=I.index,I<O?(z.flags|=67108866,O):I):(z.flags|=67108866,O)):(z.flags|=1048576,O)}function f(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function y(z,O,I,V){return O===null||O.tag!==6?(O=wo(I,z.mode,V),O.return=z,O):(O=o(O,I),O.return=z,O)}function w(z,O,I,V){var Me=I.type;return Me===k?P(z,O,I.props.children,V,I.key):O!==null&&(O.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===M&&qi(Me)===O.type)?(O=o(O,I.props),ns(O,I),O.return=z,O):(O=Js(I.type,I.key,I.props,null,z.mode,V),ns(O,I),O.return=z,O)}function H(z,O,I,V){return O===null||O.tag!==4||O.stateNode.containerInfo!==I.containerInfo||O.stateNode.implementation!==I.implementation?(O=Ao(I,z.mode,V),O.return=z,O):(O=o(O,I.children||[]),O.return=z,O)}function P(z,O,I,V,Me){return O===null||O.tag!==7?(O=Ui(I,z.mode,V,Me),O.return=z,O):(O=o(O,I),O.return=z,O)}function W(z,O,I){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=wo(""+O,z.mode,I),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case x:return I=Js(O.type,O.key,O.props,null,z.mode,I),ns(I,O),I.return=z,I;case N:return O=Ao(O,z.mode,I),O.return=z,O;case M:return O=qi(O),W(z,O,I)}if(ge(O)||ue(O))return O=Ui(O,z.mode,I,null),O.return=z,O;if(typeof O.then=="function")return W(z,lr(O),I);if(O.$$typeof===L)return W(z,tr(z,O),I);sr(z,O)}return null}function G(z,O,I,V){var Me=O!==null?O.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return Me!==null?null:y(z,O,""+I,V);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case x:return I.key===Me?w(z,O,I,V):null;case N:return I.key===Me?H(z,O,I,V):null;case M:return I=qi(I),G(z,O,I,V)}if(ge(I)||ue(I))return Me!==null?null:P(z,O,I,V,null);if(typeof I.then=="function")return G(z,O,lr(I),V);if(I.$$typeof===L)return G(z,O,tr(z,I),V);sr(z,I)}return null}function F(z,O,I,V,Me){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return z=z.get(I)||null,y(O,z,""+V,Me);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case x:return z=z.get(V.key===null?I:V.key)||null,w(O,z,V,Me);case N:return z=z.get(V.key===null?I:V.key)||null,H(O,z,V,Me);case M:return V=qi(V),F(z,O,I,V,Me)}if(ge(V)||ue(V))return z=z.get(I)||null,P(O,z,V,Me,null);if(typeof V.then=="function")return F(z,O,I,lr(V),Me);if(V.$$typeof===L)return F(z,O,I,tr(O,V),Me);sr(O,V)}return null}function _e(z,O,I,V){for(var Me=null,ct=null,Ne=O,$e=O=0,et=null;Ne!==null&&$e<I.length;$e++){Ne.index>$e?(et=Ne,Ne=null):et=Ne.sibling;var ut=G(z,Ne,I[$e],V);if(ut===null){Ne===null&&(Ne=et);break}e&&Ne&&ut.alternate===null&&t(z,Ne),O=c(ut,O,$e),ct===null?Me=ut:ct.sibling=ut,ct=ut,Ne=et}if($e===I.length)return n(z,Ne),nt&&Ba(z,$e),Me;if(Ne===null){for(;$e<I.length;$e++)Ne=W(z,I[$e],V),Ne!==null&&(O=c(Ne,O,$e),ct===null?Me=Ne:ct.sibling=Ne,ct=Ne);return nt&&Ba(z,$e),Me}for(Ne=a(Ne);$e<I.length;$e++)et=F(Ne,z,$e,I[$e],V),et!==null&&(e&&et.alternate!==null&&Ne.delete(et.key===null?$e:et.key),O=c(et,O,$e),ct===null?Me=et:ct.sibling=et,ct=et);return e&&Ne.forEach(function(Ai){return t(z,Ai)}),nt&&Ba(z,$e),Me}function Ue(z,O,I,V){if(I==null)throw Error(l(151));for(var Me=null,ct=null,Ne=O,$e=O=0,et=null,ut=I.next();Ne!==null&&!ut.done;$e++,ut=I.next()){Ne.index>$e?(et=Ne,Ne=null):et=Ne.sibling;var Ai=G(z,Ne,ut.value,V);if(Ai===null){Ne===null&&(Ne=et);break}e&&Ne&&Ai.alternate===null&&t(z,Ne),O=c(Ai,O,$e),ct===null?Me=Ai:ct.sibling=Ai,ct=Ai,Ne=et}if(ut.done)return n(z,Ne),nt&&Ba(z,$e),Me;if(Ne===null){for(;!ut.done;$e++,ut=I.next())ut=W(z,ut.value,V),ut!==null&&(O=c(ut,O,$e),ct===null?Me=ut:ct.sibling=ut,ct=ut);return nt&&Ba(z,$e),Me}for(Ne=a(Ne);!ut.done;$e++,ut=I.next())ut=F(Ne,z,$e,ut.value,V),ut!==null&&(e&&ut.alternate!==null&&Ne.delete(ut.key===null?$e:ut.key),O=c(ut,O,$e),ct===null?Me=ut:ct.sibling=ut,ct=ut);return e&&Ne.forEach(function(qE){return t(z,qE)}),nt&&Ba(z,$e),Me}function St(z,O,I,V){if(typeof I=="object"&&I!==null&&I.type===k&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case x:e:{for(var Me=I.key;O!==null;){if(O.key===Me){if(Me=I.type,Me===k){if(O.tag===7){n(z,O.sibling),V=o(O,I.props.children),V.return=z,z=V;break e}}else if(O.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===M&&qi(Me)===O.type){n(z,O.sibling),V=o(O,I.props),ns(V,I),V.return=z,z=V;break e}n(z,O);break}else t(z,O);O=O.sibling}I.type===k?(V=Ui(I.props.children,z.mode,V,I.key),V.return=z,z=V):(V=Js(I.type,I.key,I.props,null,z.mode,V),ns(V,I),V.return=z,z=V)}return f(z);case N:e:{for(Me=I.key;O!==null;){if(O.key===Me)if(O.tag===4&&O.stateNode.containerInfo===I.containerInfo&&O.stateNode.implementation===I.implementation){n(z,O.sibling),V=o(O,I.children||[]),V.return=z,z=V;break e}else{n(z,O);break}else t(z,O);O=O.sibling}V=Ao(I,z.mode,V),V.return=z,z=V}return f(z);case M:return I=qi(I),St(z,O,I,V)}if(ge(I))return _e(z,O,I,V);if(ue(I)){if(Me=ue(I),typeof Me!="function")throw Error(l(150));return I=Me.call(I),Ue(z,O,I,V)}if(typeof I.then=="function")return St(z,O,lr(I),V);if(I.$$typeof===L)return St(z,O,tr(z,I),V);sr(z,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,O!==null&&O.tag===6?(n(z,O.sibling),V=o(O,I),V.return=z,z=V):(n(z,O),V=wo(I,z.mode,V),V.return=z,z=V),f(z)):n(z,O)}return function(z,O,I,V){try{ts=0;var Me=St(z,O,I,V);return ml=null,Me}catch(Ne){if(Ne===pl||Ne===ar)throw Ne;var ct=$n(29,Ne,null,z.mode);return ct.lanes=V,ct.return=z,ct}finally{}}}var $i=Cd(!0),Dd=Cd(!1),ui=!1;function jo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ho(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function di(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(dt&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Vs(e),gd(e,null,n),t}return Qs(e,a,t,n),Vs(e)}function as(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ze(e,n)}}function qo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Go=!1;function is(){if(Go){var e=hl;if(e!==null)throw e}}function ls(e,t,n,a){Go=!1;var o=e.updateQueue;ui=!1;var c=o.firstBaseUpdate,f=o.lastBaseUpdate,y=o.shared.pending;if(y!==null){o.shared.pending=null;var w=y,H=w.next;w.next=null,f===null?c=H:f.next=H,f=w;var P=e.alternate;P!==null&&(P=P.updateQueue,y=P.lastBaseUpdate,y!==f&&(y===null?P.firstBaseUpdate=H:y.next=H,P.lastBaseUpdate=w))}if(c!==null){var W=o.baseState;f=0,P=H=w=null,y=c;do{var G=y.lane&-536870913,F=G!==y.lane;if(F?(We&G)===G:(a&G)===G){G!==0&&G===dl&&(Go=!0),P!==null&&(P=P.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var _e=e,Ue=y;G=t;var St=n;switch(Ue.tag){case 1:if(_e=Ue.payload,typeof _e=="function"){W=_e.call(St,W,G);break e}W=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=Ue.payload,G=typeof _e=="function"?_e.call(St,W,G):_e,G==null)break e;W=v({},W,G);break e;case 2:ui=!0}}G=y.callback,G!==null&&(e.flags|=64,F&&(e.flags|=8192),F=o.callbacks,F===null?o.callbacks=[G]:F.push(G))}else F={lane:G,tag:y.tag,payload:y.payload,callback:y.callback,next:null},P===null?(H=P=F,w=W):P=P.next=F,f|=G;if(y=y.next,y===null){if(y=o.shared.pending,y===null)break;F=y,y=F.next,F.next=null,o.lastBaseUpdate=F,o.shared.pending=null}}while(!0);P===null&&(w=W),o.baseState=w,o.firstBaseUpdate=H,o.lastBaseUpdate=P,c===null&&(o.shared.lanes=0),bi|=f,e.lanes=f,e.memoizedState=W}}function Ld(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function zd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ld(n[e],t)}var gl=_(null),rr=_(0);function Ud(e,t){e=Xa,j(rr,e),j(gl,t),Xa=e|t.baseLanes}function $o(){j(rr,Xa),j(gl,gl.current)}function Yo(){Xa=rr.current,D(gl),D(rr)}var Yn=_(null),la=null;function hi(e){var t=e.alternate;j(jt,jt.current&1),j(Yn,e),la===null&&(t===null||gl.current!==null||t.memoizedState!==null)&&(la=e)}function Fo(e){j(jt,jt.current),j(Yn,e),la===null&&(la=e)}function Bd(e){e.tag===22?(j(jt,jt.current),j(Yn,e),la===null&&(la=e)):pi()}function pi(){j(jt,jt.current),j(Yn,Yn.current)}function Fn(e){D(Yn),la===e&&(la=null),D(jt)}var jt=_(0);function or(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Vc(n)||Jc(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,vt=null,Ft=null,cr=!1,bl=!1,Yi=!1,ur=0,ss=0,yl=null,ky=0;function zt(){throw Error(l(321))}function Ko(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gn(e[n],t[n]))return!1;return!0}function Zo(e,t,n,a,o,c){return Ha=c,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?vh:oc,Yi=!1,c=n(a,o),Yi=!1,bl&&(c=jd(t,n,a,o)),Id(e),c}function Id(e){B.H=cs;var t=vt!==null&&vt.next!==null;if(Ha=0,Ft=vt=qe=null,cr=!1,ss=0,yl=null,t)throw Error(l(300));e===null||Kt||(e=e.dependencies,e!==null&&er(e)&&(Kt=!0))}function jd(e,t,n,a){qe=e;var o=0;do{if(bl&&(yl=null),ss=0,bl=!1,25<=o)throw Error(l(301));if(o+=1,Ft=vt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}B.H=_h,c=t(n,a)}while(bl);return c}function Cy(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?rs(t):t,e=e.useState()[0],(vt!==null?vt.memoizedState:null)!==e&&(qe.flags|=1024),t}function Xo(){var e=ur!==0;return ur=0,e}function Po(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Qo(e){if(cr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cr=!1}Ha=0,Ft=vt=qe=null,bl=!1,ss=ur=0,yl=null}function An(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?qe.memoizedState=Ft=e:Ft=Ft.next=e,Ft}function Ht(){if(vt===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=vt.next;var t=Ft===null?qe.memoizedState:Ft.next;if(t!==null)Ft=t,vt=e;else{if(e===null)throw qe.alternate===null?Error(l(467)):Error(l(310));vt=e,e={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},Ft===null?qe.memoizedState=Ft=e:Ft=Ft.next=e}return Ft}function fr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rs(e){var t=ss;return ss+=1,yl===null&&(yl=[]),e=Od(yl,e,t),t=qe,(Ft===null?t.memoizedState:Ft.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?vh:oc),e}function dr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return rs(e);if(e.$$typeof===L)return mn(e)}throw Error(l(438,String(e)))}function Vo(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=fr(),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]=ee;return t.index++,n}function qa(e,t){return typeof t=="function"?t(e):t}function hr(e){var t=Ht();return Jo(t,vt,e)}function Jo(e,t,n){var a=e.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=n;var o=e.baseQueue,c=a.pending;if(c!==null){if(o!==null){var f=o.next;o.next=c.next,c.next=f}t.baseQueue=o=c,a.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var y=f=null,w=null,H=t,P=!1;do{var W=H.lane&-536870913;if(W!==H.lane?(We&W)===W:(Ha&W)===W){var G=H.revertLane;if(G===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),W===dl&&(P=!0);else if((Ha&G)===G){H=H.next,G===dl&&(P=!0);continue}else W={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},w===null?(y=w=W,f=c):w=w.next=W,qe.lanes|=G,bi|=G;W=H.action,Yi&&n(c,W),c=H.hasEagerState?H.eagerState:n(c,W)}else G={lane:W,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},w===null?(y=w=G,f=c):w=w.next=G,qe.lanes|=W,bi|=W;H=H.next}while(H!==null&&H!==t);if(w===null?f=c:w.next=y,!Gn(c,e.memoizedState)&&(Kt=!0,P&&(n=hl,n!==null)))throw n;e.memoizedState=c,e.baseState=f,e.baseQueue=w,a.lastRenderedState=c}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Wo(e){var t=Ht(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var f=o=o.next;do c=e(c,f.action),f=f.next;while(f!==o);Gn(c,t.memoizedState)||(Kt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Hd(e,t,n){var a=qe,o=Ht(),c=nt;if(c){if(n===void 0)throw Error(l(407));n=n()}else n=t();var f=!Gn((vt||o).memoizedState,n);if(f&&(o.memoizedState=n,Kt=!0),o=o.queue,nc($d.bind(null,a,o,e),[e]),o.getSnapshot!==t||f||Ft!==null&&Ft.memoizedState.tag&1){if(a.flags|=2048,El(9,{destroy:void 0},Gd.bind(null,a,o,n,t),null),xt===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=fr(),qe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Gd(e,t,n,a){t.value=n,t.getSnapshot=a,Yd(t)&&Fd(e)}function $d(e,t,n){return n(function(){Yd(t)&&Fd(e)})}function Yd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gn(e,n)}catch{return!0}}function Fd(e){var t=zi(e,2);t!==null&&jn(t,e,2)}function ec(e){var t=An();if(typeof e=="function"){var n=e;if(e=n(),Yi){an(!0);try{n()}finally{an(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:e},t}function Kd(e,t,n,a){return e.baseState=n,Jo(e,vt,typeof a=="function"?a:qa)}function Dy(e,t,n,a,o){if(gr(e))throw Error(l(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};B.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Zd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Zd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var c=B.T,f={};B.T=f;try{var y=n(o,a),w=B.S;w!==null&&w(f,y),Xd(e,t,y)}catch(H){tc(e,t,H)}finally{c!==null&&f.types!==null&&(c.types=f.types),B.T=c}}else try{c=n(o,a),Xd(e,t,c)}catch(H){tc(e,t,H)}}function Xd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Pd(e,t,a)},function(a){return tc(e,t,a)}):Pd(e,t,n)}function Pd(e,t,n){t.status="fulfilled",t.value=n,Qd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zd(e,n)))}function tc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Qd(t),t=t.next;while(t!==a)}e.action=null}function Qd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Vd(e,t){return t}function Jd(e,t){if(nt){var n=xt.formState;if(n!==null){e:{var a=qe;if(nt){if(At){t:{for(var o=At,c=ia;o.nodeType!==8;){if(!c){o=null;break t}if(o=sa(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){At=sa(o.nextSibling),a=o.data==="F!";break e}}oi(a)}a=!1}a&&(t=n[0])}}return n=An(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vd,lastRenderedState:t},n.queue=a,n=bh.bind(null,qe,a),a.dispatch=n,a=ec(!1),c=rc.bind(null,qe,!1,a.queue),a=An(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=Dy.bind(null,qe,o,c,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function Wd(e){var t=Ht();return eh(t,vt,e)}function eh(e,t,n){if(t=Jo(e,t,Vd)[0],e=hr(qa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=rs(t)}catch(f){throw f===pl?ar:f}else a=t;t=Ht();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(qe.flags|=2048,El(9,{destroy:void 0},Ly.bind(null,o,n),null)),[a,c,e]}function Ly(e,t){e.action=t}function th(e){var t=Ht(),n=vt;if(n!==null)return eh(t,n,e);Ht(),t=t.memoizedState,n=Ht();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=fr(),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 nh(){return Ht().memoizedState}function pr(e,t,n,a){var o=An();qe.flags|=e,o.memoizedState=El(1|t,{destroy:void 0},n,a===void 0?null:a)}function mr(e,t,n,a){var o=Ht();a=a===void 0?null:a;var c=o.memoizedState.inst;vt!==null&&a!==null&&Ko(a,vt.memoizedState.deps)?o.memoizedState=El(t,c,n,a):(qe.flags|=e,o.memoizedState=El(1|t,c,n,a))}function ah(e,t){pr(8390656,8,e,t)}function nc(e,t){mr(2048,8,e,t)}function zy(e){qe.flags|=4;var t=qe.updateQueue;if(t===null)t=fr(),qe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ih(e){var t=Ht().memoizedState;return zy({ref:t,nextImpl:e}),function(){if((dt&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function lh(e,t){return mr(4,2,e,t)}function sh(e,t){return mr(4,4,e,t)}function rh(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 oh(e,t,n){n=n!=null?n.concat([e]):null,mr(4,4,rh.bind(null,t,e),n)}function ac(){}function ch(e,t){var n=Ht();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Ko(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function uh(e,t){var n=Ht();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Ko(t,a[1]))return a[0];if(a=e(),Yi){an(!0);try{e()}finally{an(!1)}}return n.memoizedState=[a,t],a}function ic(e,t,n){return n===void 0||(Ha&1073741824)!==0&&(We&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=fp(),qe.lanes|=e,bi|=e,n)}function fh(e,t,n,a){return Gn(n,t)?n:gl.current!==null?(e=ic(e,n,a),Gn(e,t)||(Kt=!0),e):(Ha&42)===0||(Ha&1073741824)!==0&&(We&261930)===0?(Kt=!0,e.memoizedState=n):(e=fp(),qe.lanes|=e,bi|=e,t)}function dh(e,t,n,a,o){var c=te.p;te.p=c!==0&&8>c?c:8;var f=B.T,y={};B.T=y,rc(e,!1,t,n);try{var w=o(),H=B.S;if(H!==null&&H(y,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var P=My(w,a);os(e,t,P,Xn(e))}else os(e,t,a,Xn(e))}catch(W){os(e,t,{then:function(){},status:"rejected",reason:W},Xn())}finally{te.p=c,f!==null&&y.types!==null&&(f.types=y.types),B.T=f}}function Uy(){}function lc(e,t,n,a){if(e.tag!==5)throw Error(l(476));var o=hh(e).queue;dh(e,o,t,ce,n===null?Uy:function(){return ph(e),n(a)})}function hh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:ce},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 ph(e){var t=hh(e);t.next===null&&(t=e.alternate.memoizedState),os(e,t.next.queue,{},Xn())}function sc(){return mn(xs)}function mh(){return Ht().memoizedState}function gh(){return Ht().memoizedState}function By(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xn();e=fi(n);var a=di(t,e,n);a!==null&&(jn(a,t,n),as(a,t,n)),t={cache:zo()},e.payload=t;return}t=t.return}}function Iy(e,t,n){var a=Xn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},gr(e)?yh(t,n):(n=No(e,t,n,a),n!==null&&(jn(n,e,a),Eh(n,t,a)))}function bh(e,t,n){var a=Xn();os(e,t,n,a)}function os(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(gr(e))yh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var f=t.lastRenderedState,y=c(f,n);if(o.hasEagerState=!0,o.eagerState=y,Gn(y,f))return Qs(e,t,o,0),xt===null&&Ps(),!1}catch{}finally{}if(n=No(e,t,o,a),n!==null)return jn(n,e,a),Eh(n,t,a),!0}return!1}function rc(e,t,n,a){if(a={lane:2,revertLane:jc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},gr(e)){if(t)throw Error(l(479))}else t=No(e,n,a,2),t!==null&&jn(t,e,2)}function gr(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function yh(e,t){bl=cr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Eh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ze(e,n)}}var cs={readContext:mn,use:dr,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useLayoutEffect:zt,useInsertionEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useSyncExternalStore:zt,useId:zt,useHostTransitionStatus:zt,useFormState:zt,useActionState:zt,useOptimistic:zt,useMemoCache:zt,useCacheRefresh:zt};cs.useEffectEvent=zt;var vh={readContext:mn,use:dr,useCallback:function(e,t){return An().memoizedState=[e,t===void 0?null:t],e},useContext:mn,useEffect:ah,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,pr(4194308,4,rh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pr(4194308,4,e,t)},useInsertionEffect:function(e,t){pr(4,2,e,t)},useMemo:function(e,t){var n=An();t=t===void 0?null:t;var a=e();if(Yi){an(!0);try{e()}finally{an(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=An();if(n!==void 0){var o=n(t);if(Yi){an(!0);try{n(t)}finally{an(!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=Iy.bind(null,qe,e),[a.memoizedState,e]},useRef:function(e){var t=An();return e={current:e},t.memoizedState=e},useState:function(e){e=ec(e);var t=e.queue,n=bh.bind(null,qe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ac,useDeferredValue:function(e,t){var n=An();return ic(n,e,t)},useTransition:function(){var e=ec(!1);return e=dh.bind(null,qe,e.queue,!0,!1),An().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=qe,o=An();if(nt){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),xt===null)throw Error(l(349));(We&127)!==0||qd(a,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,ah($d.bind(null,a,c,e),[e]),a.flags|=2048,El(9,{destroy:void 0},Gd.bind(null,a,c,n,t),null),n},useId:function(){var e=An(),t=xt.identifierPrefix;if(nt){var n=Na,a=Ta;n=(a&~(1<<32-Dt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ur++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=ky++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:sc,useFormState:Jd,useActionState:Jd,useOptimistic:function(e){var t=An();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=rc.bind(null,qe,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vo,useCacheRefresh:function(){return An().memoizedState=By.bind(null,qe)},useEffectEvent:function(e){var t=An(),n={impl:e};return t.memoizedState=n,function(){if((dt&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},oc={readContext:mn,use:dr,useCallback:ch,useContext:mn,useEffect:nc,useImperativeHandle:oh,useInsertionEffect:lh,useLayoutEffect:sh,useMemo:uh,useReducer:hr,useRef:nh,useState:function(){return hr(qa)},useDebugValue:ac,useDeferredValue:function(e,t){var n=Ht();return fh(n,vt.memoizedState,e,t)},useTransition:function(){var e=hr(qa)[0],t=Ht().memoizedState;return[typeof e=="boolean"?e:rs(e),t]},useSyncExternalStore:Hd,useId:mh,useHostTransitionStatus:sc,useFormState:Wd,useActionState:Wd,useOptimistic:function(e,t){var n=Ht();return Kd(n,vt,e,t)},useMemoCache:Vo,useCacheRefresh:gh};oc.useEffectEvent=ih;var _h={readContext:mn,use:dr,useCallback:ch,useContext:mn,useEffect:nc,useImperativeHandle:oh,useInsertionEffect:lh,useLayoutEffect:sh,useMemo:uh,useReducer:Wo,useRef:nh,useState:function(){return Wo(qa)},useDebugValue:ac,useDeferredValue:function(e,t){var n=Ht();return vt===null?ic(n,e,t):fh(n,vt.memoizedState,e,t)},useTransition:function(){var e=Wo(qa)[0],t=Ht().memoizedState;return[typeof e=="boolean"?e:rs(e),t]},useSyncExternalStore:Hd,useId:mh,useHostTransitionStatus:sc,useFormState:th,useActionState:th,useOptimistic:function(e,t){var n=Ht();return vt!==null?Kd(n,vt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Vo,useCacheRefresh:gh};_h.useEffectEvent=ih;function cc(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 uc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Xn(),o=fi(a);o.payload=t,n!=null&&(o.callback=n),t=di(e,o,a),t!==null&&(jn(t,e,a),as(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Xn(),o=fi(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=di(e,o,a),t!==null&&(jn(t,e,a),as(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xn(),a=fi(n);a.tag=2,t!=null&&(a.callback=t),t=di(e,a,n),t!==null&&(jn(t,e,n),as(t,e,n))}};function Sh(e,t,n,a,o,c,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,f):t.prototype&&t.prototype.isPureReactComponent?!Pl(n,a)||!Pl(o,c):!0}function Th(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&&uc.enqueueReplaceState(t,t.state,null)}function Fi(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 Nh(e){Xs(e)}function xh(e){console.error(e)}function wh(e){Xs(e)}function br(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Ah(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 fc(e,t,n){return n=fi(n),n.tag=3,n.payload={element:null},n.callback=function(){br(e,t)},n}function Rh(e){return e=fi(e),e.tag=3,e}function Oh(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(){Ah(t,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Ah(t,n,a),typeof o!="function"&&(yi===null?yi=new Set([this]):yi.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function 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&&fl(t,n,o,!0),n=Yn.current,n!==null){switch(n.tag){case 31:case 13:return la===null?Or():n.alternate===null&&Ut===0&&(Ut=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===ir?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Uc(e,a,o)),!1;case 22:return n.flags|=65536,a===ir?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)),Uc(e,a,o)),!1}throw Error(l(435,n.tag))}return Uc(e,a,o),Or(),!1}if(nt)return t=Yn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Mo&&(e=Error(l(422),{cause:a}),Jl(ta(e,n)))):(a!==Mo&&(t=Error(l(423),{cause:a}),Jl(ta(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=ta(a,n),o=fc(e.stateNode,a,o),qo(e,o),Ut!==4&&(Ut=2)),!1;var c=Error(l(520),{cause:a});if(c=ta(c,n),bs===null?bs=[c]:bs.push(c),Ut!==4&&(Ut=2),t===null)return!0;a=ta(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=fc(n.stateNode,a,e),qo(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(yi===null||!yi.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Rh(o),Oh(o,e,n,a),qo(n,o),!1}n=n.return}while(n!==null);return!1}var dc=Error(l(461)),Kt=!1;function gn(e,t,n,a){t.child=e===null?Dd(t,null,n,a):$i(t,e.child,n,a)}function Mh(e,t,n,a,o){n=n.render;var c=t.ref;if("ref"in a){var f={};for(var y in a)y!=="ref"&&(f[y]=a[y])}else f=a;return ji(t),a=Zo(e,t,n,f,c,o),y=Xo(),e!==null&&!Kt?(Po(e,t,o),Ga(e,t,o)):(nt&&y&&Ro(t),t.flags|=1,gn(e,t,a,o),t.child)}function kh(e,t,n,a,o){if(e===null){var c=n.type;return typeof c=="function"&&!xo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Ch(e,t,c,a,o)):(e=Js(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!vc(e,o)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Pl,n(f,a)&&e.ref===t.ref)return Ga(e,t,o)}return t.flags|=1,e=Ua(c,a),e.ref=t.ref,e.return=t,t.child=e}function Ch(e,t,n,a,o){if(e!==null){var c=e.memoizedProps;if(Pl(c,a)&&e.ref===t.ref)if(Kt=!1,t.pendingProps=a=c,vc(e,o))(e.flags&131072)!==0&&(Kt=!0);else return t.lanes=e.lanes,Ga(e,t,o)}return hc(e,t,n,a,o)}function Dh(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 Lh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&nr(t,c!==null?c.cachePool:null),c!==null?Ud(t,c):$o(),Bd(t);else return a=t.lanes=536870912,Lh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(nr(t,c.cachePool),Ud(t,c),pi(),t.memoizedState=null):(e!==null&&nr(t,null),$o(),pi());return gn(e,t,o,n),t.child}function us(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lh(e,t,n,a,o){var c=Bo();return c=c===null?null:{parent:Yt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&nr(t,null),$o(),Bd(t),e!==null&&fl(e,t,a,!0),t.childLanes=o,null}function yr(e,t){return t=vr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function zh(e,t,n){return $i(t,e.child,null,n),e=yr(t,t.pendingProps),e.flags|=2,Fn(t),t.memoizedState=null,e}function Hy(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(nt){if(a.mode==="hidden")return e=yr(t,a),t.lanes=536870912,us(null,e);if(Fo(t),(e=At)?(e=Zp(e,ia),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:si!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=yd(e),n.return=t,t.child=n,pn=t,At=null)):e=null,e===null)throw oi(t);return t.lanes=536870912,null}return yr(t,a)}var c=e.memoizedState;if(c!==null){var f=c.dehydrated;if(Fo(t),o)if(t.flags&256)t.flags&=-257,t=zh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(Kt||fl(e,t,n,!1),o=(n&e.childLanes)!==0,Kt||o){if(a=xt,a!==null&&(f=Mt(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,zi(e,f),jn(a,e,f),dc;Or(),t=zh(e,t,n)}else e=c.treeContext,At=sa(f.nextSibling),pn=t,nt=!0,ri=null,ia=!1,e!==null&&_d(t,e),t=yr(t,a),t.flags|=4096;return t}return e=Ua(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Er(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(l(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function hc(e,t,n,a,o){return ji(t),n=Zo(e,t,n,a,void 0,o),a=Xo(),e!==null&&!Kt?(Po(e,t,o),Ga(e,t,o)):(nt&&a&&Ro(t),t.flags|=1,gn(e,t,n,o),t.child)}function Uh(e,t,n,a,o,c){return ji(t),t.updateQueue=null,n=jd(t,a,n,o),Id(e),a=Xo(),e!==null&&!Kt?(Po(e,t,c),Ga(e,t,c)):(nt&&a&&Ro(t),t.flags|=1,gn(e,t,n,c),t.child)}function Bh(e,t,n,a,o){if(ji(t),t.stateNode===null){var c=rl,f=n.contextType;typeof f=="object"&&f!==null&&(c=mn(f)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=uc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},jo(t),f=n.contextType,c.context=typeof f=="object"&&f!==null?mn(f):rl,c.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(cc(t,n,f,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&uc.enqueueReplaceState(c,c.state,null),ls(t,a,c,o),is(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,w=Fi(n,y);c.props=w;var H=c.context,P=n.contextType;f=rl,typeof P=="object"&&P!==null&&(f=mn(P));var W=n.getDerivedStateFromProps;P=typeof W=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,P||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||H!==f)&&Th(t,c,a,f),ui=!1;var G=t.memoizedState;c.state=G,ls(t,a,c,o),is(),H=t.memoizedState,y||G!==H||ui?(typeof W=="function"&&(cc(t,n,W,a),H=t.memoizedState),(w=ui||Sh(t,n,w,a,G,H,f))?(P||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=H),c.props=a,c.state=H,c.context=f,a=w):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,Ho(e,t),f=t.memoizedProps,P=Fi(n,f),c.props=P,W=t.pendingProps,G=c.context,H=n.contextType,w=rl,typeof H=="object"&&H!==null&&(w=mn(H)),y=n.getDerivedStateFromProps,(H=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==W||G!==w)&&Th(t,c,a,w),ui=!1,G=t.memoizedState,c.state=G,ls(t,a,c,o),is();var F=t.memoizedState;f!==W||G!==F||ui||e!==null&&e.dependencies!==null&&er(e.dependencies)?(typeof y=="function"&&(cc(t,n,y,a),F=t.memoizedState),(P=ui||Sh(t,n,P,a,G,F,w)||e!==null&&e.dependencies!==null&&er(e.dependencies))?(H||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,F,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,F,w)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=F),c.props=a,c.state=F,c.context=w,a=P):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Er(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=$i(t,e.child,null,o),t.child=$i(t,null,n,o)):gn(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ga(e,t,o),e}function Ih(e,t,n,a){return Bi(),t.flags|=256,gn(e,t,n,a),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:Ad()}}function gc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zn),e}function jh(e,t,n){var a=t.pendingProps,o=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(jt.current&2)!==0),f&&(o=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(nt){if(o?hi(t):pi(),(e=At)?(e=Zp(e,ia),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:si!==null?{id:Ta,overflow:Na}:null,retryLane:536870912,hydrationErrors:null},n=yd(e),n.return=t,t.child=n,pn=t,At=null)):e=null,e===null)throw oi(t);return Jc(e)?t.lanes=32:t.lanes=536870912,null}var y=a.children;return a=a.fallback,o?(pi(),o=t.mode,y=vr({mode:"hidden",children:y},o),a=Ui(a,o,n,null),y.return=t,a.return=t,y.sibling=a,t.child=y,a=t.child,a.memoizedState=mc(n),a.childLanes=gc(e,f,n),t.memoizedState=pc,us(null,a)):(hi(t),bc(t,y))}var w=e.memoizedState;if(w!==null&&(y=w.dehydrated,y!==null)){if(c)t.flags&256?(hi(t),t.flags&=-257,t=yc(e,t,n)):t.memoizedState!==null?(pi(),t.child=e.child,t.flags|=128,t=null):(pi(),y=a.fallback,o=t.mode,a=vr({mode:"visible",children:a.children},o),y=Ui(y,o,n,null),y.flags|=2,a.return=t,y.return=t,a.sibling=y,t.child=a,$i(t,e.child,null,n),a=t.child,a.memoizedState=mc(n),a.childLanes=gc(e,f,n),t.memoizedState=pc,t=us(null,a));else if(hi(t),Jc(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var H=f.dgst;f=H,a=Error(l(419)),a.stack="",a.digest=f,Jl({value:a,source:null,stack:null}),t=yc(e,t,n)}else if(Kt||fl(e,t,n,!1),f=(n&e.childLanes)!==0,Kt||f){if(f=xt,f!==null&&(a=Mt(f,n),a!==0&&a!==w.retryLane))throw w.retryLane=a,zi(e,a),jn(f,e,a),dc;Vc(y)||Or(),t=yc(e,t,n)}else Vc(y)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,At=sa(y.nextSibling),pn=t,nt=!0,ri=null,ia=!1,e!==null&&_d(t,e),t=bc(t,a.children),t.flags|=4096);return t}return o?(pi(),y=a.fallback,o=t.mode,w=e.child,H=w.sibling,a=Ua(w,{mode:"hidden",children:a.children}),a.subtreeFlags=w.subtreeFlags&65011712,H!==null?y=Ua(H,y):(y=Ui(y,o,n,null),y.flags|=2),y.return=t,a.return=t,a.sibling=y,t.child=a,us(null,a),a=t.child,y=e.child.memoizedState,y===null?y=mc(n):(o=y.cachePool,o!==null?(w=Yt._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Ad(),y={baseLanes:y.baseLanes|n,cachePool:o}),a.memoizedState=y,a.childLanes=gc(e,f,n),t.memoizedState=pc,us(e.child,a)):(hi(t),n=e.child,e=n.sibling,n=Ua(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=n,t.memoizedState=null,n)}function bc(e,t){return t=vr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function vr(e,t){return e=$n(22,e,null,t),e.lanes=0,e}function yc(e,t,n){return $i(t,e.child,null,n),e=bc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Do(e.return,t,n)}function Ec(e,t,n,a,o,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=o,f.treeForkCount=c)}function qh(e,t,n){var a=t.pendingProps,o=a.revealOrder,c=a.tail;a=a.children;var f=jt.current,y=(f&2)!==0;if(y?(f=f&1|2,t.flags|=128):f&=1,j(jt,f),gn(e,t,a,n),a=nt?Vl:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hh(e,n,t);else if(e.tag===19)Hh(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&&or(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ec(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&&or(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ec(t,!0,n,null,c,a);break;case"together":Ec(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Ga(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(fl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=Ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function vc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&er(e)))}function qy(e,t,n){switch(t.tag){case 3:Re(t,t.stateNode.containerInfo),ci(t,Yt,e.memoizedState.cache),Bi();break;case 27:case 5:He(t);break;case 4:Re(t,t.stateNode.containerInfo);break;case 10:ci(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(hi(t),t.flags|=128,null):(n&t.child.childLanes)!==0?jh(e,t,n):(hi(t),e=Ga(e,t,n),e!==null?e.sibling:null);hi(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(fl(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return qh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),j(jt,jt.current),a)break;return null;case 22:return t.lanes=0,Dh(e,t,n,t.pendingProps);case 24:ci(t,Yt,e.memoizedState.cache)}return Ga(e,t,n)}function Gh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Kt=!0;else{if(!vc(e,n)&&(t.flags&128)===0)return Kt=!1,qy(e,t,n);Kt=(e.flags&131072)!==0}else Kt=!1,nt&&(t.flags&1048576)!==0&&vd(t,Vl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=qi(t.elementType),t.type=e,typeof e=="function")xo(e)?(a=Fi(e,a),t.tag=1,t=Bh(null,t,e,a,n)):(t.tag=0,t=hc(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===le){t.tag=11,t=Mh(null,t,e,a,n);break e}else if(o===ae){t.tag=14,t=kh(null,t,e,a,n);break e}}throw t=Ce(e)||e,Error(l(306,t,""))}}return t;case 0:return hc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Fi(a,t.pendingProps),Bh(e,t,a,o,n);case 3:e:{if(Re(t,t.stateNode.containerInfo),e===null)throw Error(l(387));a=t.pendingProps;var c=t.memoizedState;o=c.element,Ho(e,t),ls(t,a,null,n);var f=t.memoizedState;if(a=f.cache,ci(t,Yt,a),a!==c.cache&&Lo(t,[Yt],n,!0),is(),a=f.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Ih(e,t,a,n);break e}else if(a!==o){o=ta(Error(l(424)),t),Jl(o),t=Ih(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(At=sa(e.firstChild),pn=t,nt=!0,ri=null,ia=!0,n=Dd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Bi(),a===o){t=Ga(e,t,n);break e}gn(e,t,a,n)}t=t.child}return t;case 26:return Er(e,t),e===null?(n=Wp(t.type,null,t.pendingProps,null))?t.memoizedState=n:nt||(n=t.type,e=t.pendingProps,a=Ur(xe.current).createElement(n),a[Lt]=t,a[ln]=e,bn(a,n,e),pt(a),t.stateNode=a):t.memoizedState=Wp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return He(t),e===null&&nt&&(a=t.stateNode=Qp(t.type,t.pendingProps,xe.current),pn=t,ia=!0,o=At,Si(t.type)?(Wc=o,At=sa(a.firstChild)):At=o),gn(e,t,t.pendingProps.children,n),Er(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&nt&&((o=a=At)&&(a=bE(a,t.type,t.pendingProps,ia),a!==null?(t.stateNode=a,pn=t,At=sa(a.firstChild),ia=!1,o=!0):o=!1),o||oi(t)),He(t),o=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,a=c.children,Xc(o,c)?a=null:f!==null&&Xc(o,f)&&(t.flags|=32),t.memoizedState!==null&&(o=Zo(e,t,Cy,null,null,n),xs._currentValue=o),Er(e,t),gn(e,t,a,n),t.child;case 6:return e===null&&nt&&((e=n=At)&&(n=yE(n,t.pendingProps,ia),n!==null?(t.stateNode=n,pn=t,At=null,e=!0):e=!1),e||oi(t)),null;case 13:return jh(e,t,n);case 4:return Re(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=$i(t,null,a,n):gn(e,t,a,n),t.child;case 11:return Mh(e,t,t.type,t.pendingProps,n);case 7:return gn(e,t,t.pendingProps,n),t.child;case 8:return gn(e,t,t.pendingProps.children,n),t.child;case 12:return gn(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,ci(t,t.type,a.value),gn(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,ji(t),o=mn(o),a=a(o),t.flags|=1,gn(e,t,a,n),t.child;case 14:return kh(e,t,t.type,t.pendingProps,n);case 15:return Ch(e,t,t.type,t.pendingProps,n);case 19:return qh(e,t,n);case 31:return Hy(e,t,n);case 22:return Dh(e,t,n,t.pendingProps);case 24:return ji(t),a=mn(Yt),e===null?(o=Bo(),o===null&&(o=xt,c=zo(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:a,cache:o},jo(t),ci(t,Yt,o)):((e.lanes&n)!==0&&(Ho(e,t),ls(t,null,null,n),is()),o=e.memoizedState,c=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),ci(t,Yt,a)):(a=c.cache,ci(t,Yt,a),a!==o.cache&&Lo(t,[Yt],n,!0))),gn(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 _c(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(mp())e.flags|=8192;else throw Gi=ir,Io}else e.flags&=-16777217}function $h(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!im(t))if(mp())e.flags|=8192;else throw Gi=ir,Io}function _r(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?De():536870912,e.lanes|=t,Tl|=t)}function fs(e,t){if(!nt)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 Rt(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 Gy(e,t,n){var a=t.pendingProps;switch(Oo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rt(t),null;case 1:return Rt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ja(Yt),ke(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ul(t)?$a(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ko())),Rt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?($a(t),c!==null?(Rt(t),$h(t,c)):(Rt(t),_c(t,o,null,a,n))):c?c!==e.memoizedState?($a(t),Rt(t),$h(t,c)):(Rt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&$a(t),Rt(t),_c(t,o,e,a,n)),null;case 27:if(Ze(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 Rt(t),null}e=se.current,ul(t)?Sd(t):(e=Qp(o,a,n),t.stateNode=e,$a(t))}return Rt(t),null;case 5:if(Ze(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 Rt(t),null}if(c=se.current,ul(t))Sd(t);else{var f=Ur(xe.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(o,{is:a.is}):f.createElement(o)}}c[Lt]=t,c[ln]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=c;e:switch(bn(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 Rt(t),_c(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,ul(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=pn,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[Lt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||jp(e.nodeValue,n)),e||oi(t,!0)}else e=Ur(e).createTextNode(a),e[Lt]=t,t.stateNode=e}return Rt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=ul(t),n!==null){if(e===null){if(!a)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Lt]=t}else Bi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Rt(t),e=!1}else n=ko(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Fn(t),t):(Fn(t),null);if((t.flags&128)!==0)throw Error(l(558))}return Rt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ul(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[Lt]=t}else Bi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Rt(t),o=!1}else o=ko(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Fn(t),t):(Fn(t),null)}return Fn(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),_r(t,t.updateQueue),Rt(t),null);case 4:return ke(),e===null&&$c(t.stateNode.containerInfo),Rt(t),null;case 10:return ja(t.type),Rt(t),null;case 19:if(D(jt),a=t.memoizedState,a===null)return Rt(t),null;if(o=(t.flags&128)!==0,c=a.rendering,c===null)if(o)fs(a,!1);else{if(Ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=or(e),c!==null){for(t.flags|=128,fs(a,!1),e=c.updateQueue,t.updateQueue=e,_r(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)bd(n,e),n=n.sibling;return j(jt,jt.current&1|2),nt&&Ba(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&at()>wr&&(t.flags|=128,o=!0,fs(a,!1),t.lanes=4194304)}else{if(!o)if(e=or(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,_r(t,e),fs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!nt)return Rt(t),null}else 2*at()-a.renderingStartTime>wr&&n!==536870912&&(t.flags|=128,o=!0,fs(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=at(),e.sibling=null,n=jt.current,j(jt,o?n&1|2:n&1),nt&&Ba(t,a.treeForkCount),e):(Rt(t),null);case 22:case 23:return Fn(t),Yo(),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&&(Rt(t),t.subtreeFlags&6&&(t.flags|=8192)):Rt(t),n=t.updateQueue,n!==null&&_r(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(Hi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ja(Yt),Rt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function $y(e,t){switch(Oo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ja(Yt),ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ze(t),null;case 31:if(t.memoizedState!==null){if(Fn(t),t.alternate===null)throw Error(l(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Fn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(jt),null;case 4:return ke(),null;case 10:return ja(t.type),null;case 22:case 23:return Fn(t),Yo(),e!==null&&D(Hi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ja(Yt),null;case 25:return null;default:return null}}function Yh(e,t){switch(Oo(t),t.tag){case 3:ja(Yt),ke();break;case 26:case 27:case 5:Ze(t);break;case 4:ke();break;case 31:t.memoizedState!==null&&Fn(t);break;case 13:Fn(t);break;case 19:D(jt);break;case 10:ja(t.type);break;case 22:case 23:Fn(t),Yo(),e!==null&&D(Hi);break;case 24:ja(Yt)}}function ds(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var c=n.create,f=n.inst;a=c(),f.destroy=a}n=n.next}while(n!==o)}}catch(y){gt(t,t.return,y)}}function mi(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){var f=a.inst,y=f.destroy;if(y!==void 0){f.destroy=void 0,o=t;var w=n,H=y;try{H()}catch(P){gt(o,w,P)}}}a=a.next}while(a!==c)}}catch(P){gt(t,t.return,P)}}function Fh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{zd(t,n)}catch(a){gt(e,e.return,a)}}}function Kh(e,t,n){n.props=Fi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){gt(e,t,a)}}function hs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){gt(e,t,o)}}function xa(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){gt(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){gt(e,t,o)}else n.current=null}function Zh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){gt(e,e.return,o)}}function Sc(e,t,n){try{var a=e.stateNode;fE(a,e.type,n,t),a[ln]=t}catch(o){gt(e,e.return,o)}}function Xh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Si(e.type)||e.tag===4}function Tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Si(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nc(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=ne));else if(a!==4&&(a===27&&Si(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Nc(e,t,n),e=e.sibling;e!==null;)Nc(e,t,n),e=e.sibling}function Sr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Si(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Sr(e,t,n),e=e.sibling;e!==null;)Sr(e,t,n),e=e.sibling}function Ph(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);bn(t,a,n),t[Lt]=e,t[ln]=n}catch(c){gt(e,e.return,c)}}var Ya=!1,Zt=!1,xc=!1,Qh=typeof WeakSet=="function"?WeakSet:Set,rn=null;function Yy(e,t){if(e=e.containerInfo,Kc=$r,e=od(e),yo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var f=0,y=-1,w=-1,H=0,P=0,W=e,G=null;t:for(;;){for(var F;W!==n||o!==0&&W.nodeType!==3||(y=f+o),W!==c||a!==0&&W.nodeType!==3||(w=f+a),W.nodeType===3&&(f+=W.nodeValue.length),(F=W.firstChild)!==null;)G=W,W=F;for(;;){if(W===e)break t;if(G===n&&++H===o&&(y=f),G===c&&++P===a&&(w=f),(F=W.nextSibling)!==null)break;W=G,G=W.parentNode}W=F}n=y===-1||w===-1?null:{start:y,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zc={focusedElem:e,selectionRange:n},$r=!1,rn=t;rn!==null;)if(t=rn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rn=e;else for(;rn!==null;){switch(t=rn,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var _e=Fi(n.type,o);e=a.getSnapshotBeforeUpdate(_e,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(Ue){gt(n,n.return,Ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Qc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,rn=e;break}rn=t.return}}function Vh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Ka(e,n),a&4&&ds(5,n);break;case 1:if(Ka(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(f){gt(n,n.return,f)}else{var o=Fi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){gt(n,n.return,f)}}a&64&&Fh(n),a&512&&hs(n,n.return);break;case 3:if(Ka(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{zd(e,t)}catch(f){gt(n,n.return,f)}}break;case 27:t===null&&a&4&&Ph(n);case 26:case 5:Ka(e,n),t===null&&a&4&&Zh(n),a&512&&hs(n,n.return);break;case 12:Ka(e,n);break;case 31:Ka(e,n),a&4&&ep(e,n);break;case 13:Ka(e,n),a&4&&tp(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Wy.bind(null,n),EE(e,n))));break;case 22:if(a=n.memoizedState!==null||Ya,!a){t=t!==null&&t.memoizedState!==null||Zt,o=Ya;var c=Zt;Ya=a,(Zt=t)&&!c?Za(e,n,(n.subtreeFlags&8772)!==0):Ka(e,n),Ya=o,Zt=c}break;case 30:break;default:Ka(e,n)}}function Jh(e){var t=e.alternate;t!==null&&(e.alternate=null,Jh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ei(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ct=null,zn=!1;function Fa(e,t,n){for(n=n.child;n!==null;)Wh(e,t,n),n=n.sibling}function Wh(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(dn,n)}catch{}switch(n.tag){case 26:Zt||xa(n,t),Fa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zt||xa(n,t);var a=Ct,o=zn;Si(n.type)&&(Ct=n.stateNode,zn=!1),Fa(e,t,n),Ss(n.stateNode),Ct=a,zn=o;break;case 5:Zt||xa(n,t);case 6:if(a=Ct,o=zn,Ct=null,Fa(e,t,n),Ct=a,zn=o,Ct!==null)if(zn)try{(Ct.nodeType===9?Ct.body:Ct.nodeName==="HTML"?Ct.ownerDocument.body:Ct).removeChild(n.stateNode)}catch(c){gt(n,t,c)}else try{Ct.removeChild(n.stateNode)}catch(c){gt(n,t,c)}break;case 18:Ct!==null&&(zn?(e=Ct,Fp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),kl(e)):Fp(Ct,n.stateNode));break;case 4:a=Ct,o=zn,Ct=n.stateNode.containerInfo,zn=!0,Fa(e,t,n),Ct=a,zn=o;break;case 0:case 11:case 14:case 15:mi(2,n,t),Zt||mi(4,n,t),Fa(e,t,n);break;case 1:Zt||(xa(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Kh(n,t,a)),Fa(e,t,n);break;case 21:Fa(e,t,n);break;case 22:Zt=(a=Zt)||n.memoizedState!==null,Fa(e,t,n),Zt=a;break;default:Fa(e,t,n)}}function ep(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{kl(e)}catch(n){gt(t,t.return,n)}}}function tp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{kl(e)}catch(n){gt(t,t.return,n)}}function Fy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qh),t;default:throw Error(l(435,e.tag))}}function Tr(e,t){var n=Fy(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=eE.bind(null,e,a);a.then(o,o)}})}function Un(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],c=e,f=t,y=f;e:for(;y!==null;){switch(y.tag){case 27:if(Si(y.type)){Ct=y.stateNode,zn=!1;break e}break;case 5:Ct=y.stateNode,zn=!1;break e;case 3:case 4:Ct=y.stateNode.containerInfo,zn=!0;break e}y=y.return}if(Ct===null)throw Error(l(160));Wh(c,f,o),Ct=null,zn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)np(t,e),t=t.sibling}var ha=null;function np(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Un(t,e),Bn(e),a&4&&(mi(3,e,e.return),ds(3,e),mi(5,e,e.return));break;case 1:Un(t,e),Bn(e),a&512&&(Zt||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(Un(t,e),Bn(e),a&512&&(Zt||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[Ea]||c[Lt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(a),o.head.insertBefore(c,o.querySelector("head > title"))),bn(c,a,n),c[Lt]=e,pt(c),a=c;break e;case"link":var f=nm("link","href",o).get(a+(n.href||""));if(f){for(var y=0;y<f.length;y++)if(c=f[y],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(y,1);break t}}c=o.createElement(a),bn(c,a,n),o.head.appendChild(c);break;case"meta":if(f=nm("meta","content",o).get(a+(n.content||""))){for(y=0;y<f.length;y++)if(c=f[y],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(y,1);break t}}c=o.createElement(a),bn(c,a,n),o.head.appendChild(c);break;default:throw Error(l(468,a))}c[Lt]=e,pt(c),a=c}e.stateNode=a}else am(o,e.type,e.stateNode);else e.stateNode=tm(o,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?am(o,e.type,e.stateNode):tm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Sc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Un(t,e),Bn(e),a&512&&(Zt||n===null||xa(n,n.return)),n!==null&&a&4&&Sc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Un(t,e),Bn(e),a&512&&(Zt||n===null||xa(n,n.return)),e.flags&32){o=e.stateNode;try{K(o,"")}catch(_e){gt(e,e.return,_e)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Sc(e,o,n!==null?n.memoizedProps:o)),a&1024&&(xc=!0);break;case 6:if(Un(t,e),Bn(e),a&4){if(e.stateNode===null)throw Error(l(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(_e){gt(e,e.return,_e)}}break;case 3:if(jr=null,o=ha,ha=Br(t.containerInfo),Un(t,e),ha=o,Bn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{kl(t.containerInfo)}catch(_e){gt(e,e.return,_e)}xc&&(xc=!1,ap(e));break;case 4:a=ha,ha=Br(e.stateNode.containerInfo),Un(t,e),Bn(e),ha=a;break;case 12:Un(t,e),Bn(e);break;case 31:Un(t,e),Bn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Tr(e,a)));break;case 13:Un(t,e),Bn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(xr=at()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Tr(e,a)));break;case 22:o=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,H=Ya,P=Zt;if(Ya=H||o,Zt=P||w,Un(t,e),Zt=P,Ya=H,Bn(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||w||Ya||Zt||Ki(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){w=n=t;try{if(c=w.stateNode,o)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=w.stateNode;var W=w.memoizedProps.style,G=W!=null&&W.hasOwnProperty("display")?W.display:null;y.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(_e){gt(w,w.return,_e)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(_e){gt(w,w.return,_e)}}}else if(t.tag===18){if(n===null){w=t;try{var F=w.stateNode;o?Kp(F,!0):Kp(w.stateNode,!1)}catch(_e){gt(w,w.return,_e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Tr(e,n))));break;case 19:Un(t,e),Bn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Tr(e,a)));break;case 30:break;case 21:break;default:Un(t,e),Bn(e)}}function Bn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Xh(a)){n=a;break}a=a.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,c=Tc(e);Sr(e,c,o);break;case 5:var f=n.stateNode;n.flags&32&&(K(f,""),n.flags&=-33);var y=Tc(e);Sr(e,y,f);break;case 3:case 4:var w=n.stateNode.containerInfo,H=Tc(e);Nc(e,H,w);break;default:throw Error(l(161))}}catch(P){gt(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ap(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ap(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;)Vh(e,t.alternate,t),t=t.sibling}function Ki(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:mi(4,t,t.return),Ki(t);break;case 1:xa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Kh(t,t.return,n),Ki(t);break;case 27:Ss(t.stateNode);case 26:case 5:xa(t,t.return),Ki(t);break;case 22:t.memoizedState===null&&Ki(t);break;case 30:Ki(t);break;default:Ki(t)}e=e.sibling}}function Za(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,c=t,f=c.flags;switch(c.tag){case 0:case 11:case 15:Za(o,c,n),ds(4,c);break;case 1:if(Za(o,c,n),a=c,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(H){gt(a,a.return,H)}if(a=c,o=a.updateQueue,o!==null){var y=a.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Ld(w[o],y)}catch(H){gt(a,a.return,H)}}n&&f&64&&Fh(c),hs(c,c.return);break;case 27:Ph(c);case 26:case 5:Za(o,c,n),n&&a===null&&f&4&&Zh(c),hs(c,c.return);break;case 12:Za(o,c,n);break;case 31:Za(o,c,n),n&&f&4&&ep(o,c);break;case 13:Za(o,c,n),n&&f&4&&tp(o,c);break;case 22:c.memoizedState===null&&Za(o,c,n),hs(c,c.return);break;case 30:break;default:Za(o,c,n)}t=t.sibling}}function wc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Wl(n))}function Ac(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wl(e))}function pa(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ip(e,t,n,a),t=t.sibling}function ip(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:pa(e,t,n,a),o&2048&&ds(9,t);break;case 1:pa(e,t,n,a);break;case 3:pa(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wl(e)));break;case 12:if(o&2048){pa(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,f=c.id,y=c.onPostCommit;typeof y=="function"&&y(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){gt(t,t.return,w)}}else pa(e,t,n,a);break;case 31:pa(e,t,n,a);break;case 13:pa(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,f=t.alternate,t.memoizedState!==null?c._visibility&2?pa(e,t,n,a):ps(e,t):c._visibility&2?pa(e,t,n,a):(c._visibility|=2,vl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&wc(f,t);break;case 24:pa(e,t,n,a),o&2048&&Ac(t.alternate,t);break;default:pa(e,t,n,a)}}function vl(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,f=t,y=n,w=a,H=f.flags;switch(f.tag){case 0:case 11:case 15:vl(c,f,y,w,o),ds(8,f);break;case 23:break;case 22:var P=f.stateNode;f.memoizedState!==null?P._visibility&2?vl(c,f,y,w,o):ps(c,f):(P._visibility|=2,vl(c,f,y,w,o)),o&&H&2048&&wc(f.alternate,f);break;case 24:vl(c,f,y,w,o),o&&H&2048&&Ac(f.alternate,f);break;default:vl(c,f,y,w,o)}t=t.sibling}}function ps(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ps(n,a),o&2048&&wc(a.alternate,a);break;case 24:ps(n,a),o&2048&&Ac(a.alternate,a);break;default:ps(n,a)}t=t.sibling}}var ms=8192;function _l(e,t,n){if(e.subtreeFlags&ms)for(e=e.child;e!==null;)lp(e,t,n),e=e.sibling}function lp(e,t,n){switch(e.tag){case 26:_l(e,t,n),e.flags&ms&&e.memoizedState!==null&&kE(n,ha,e.memoizedState,e.memoizedProps);break;case 5:_l(e,t,n);break;case 3:case 4:var a=ha;ha=Br(e.stateNode.containerInfo),_l(e,t,n),ha=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ms,ms=16777216,_l(e,t,n),ms=a):_l(e,t,n));break;default:_l(e,t,n)}}function sp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function gs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];rn=a,op(a,e)}sp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rp(e),e=e.sibling}function rp(e){switch(e.tag){case 0:case 11:case 15:gs(e),e.flags&2048&&mi(9,e,e.return);break;case 3:gs(e);break;case 12:gs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Nr(e)):gs(e);break;default:gs(e)}}function Nr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];rn=a,op(a,e)}sp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:mi(8,t,t.return),Nr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Nr(t));break;default:Nr(t)}e=e.sibling}}function op(e,t){for(;rn!==null;){var n=rn;switch(n.tag){case 0:case 11:case 15:mi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Wl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,rn=a;else e:for(n=e;rn!==null;){a=rn;var o=a.sibling,c=a.return;if(Jh(a),a===n){rn=null;break e}if(o!==null){o.return=c,rn=o;break e}rn=c}}}var Ky={getCacheForType:function(e){var t=mn(Yt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return mn(Yt).controller.signal}},Zy=typeof WeakMap=="function"?WeakMap:Map,dt=0,xt=null,Pe=null,We=0,mt=0,Kn=null,gi=!1,Sl=!1,Rc=!1,Xa=0,Ut=0,bi=0,Zi=0,Oc=0,Zn=0,Tl=0,bs=null,In=null,Mc=!1,xr=0,cp=0,wr=1/0,Ar=null,yi=null,en=0,Ei=null,Nl=null,Pa=0,kc=0,Cc=null,up=null,ys=0,Dc=null;function Xn(){return(dt&2)!==0&&We!==0?We&-We:B.T!==null?jc():ya()}function fp(){if(Zn===0)if((We&536870912)===0||nt){var e=ht;ht<<=1,(ht&3932160)===0&&(ht=262144),Zn=e}else Zn=536870912;return e=Yn.current,e!==null&&(e.flags|=32),Zn}function jn(e,t,n){(e===xt&&(mt===2||mt===9)||e.cancelPendingCommit!==null)&&(xl(e,0),vi(e,We,Zn,!1)),it(e,n),((dt&2)===0||e!==xt)&&(e===xt&&((dt&2)===0&&(Zi|=n),Ut===4&&vi(e,We,Zn,!1)),wa(e))}function dp(e,t,n){if((dt&6)!==0)throw Error(l(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Q(e,t),o=a?Qy(e,t):zc(e,t,!0),c=a;do{if(o===0){Sl&&!a&&vi(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Xy(n)){o=zc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var y=e;o=bs;var w=y.current.memoizedState.isDehydrated;if(w&&(xl(y,f).flags|=256),f=zc(y,f,!1),f!==2){if(Rc&&!w){y.errorRecoveryDisabledLanes|=c,Zi|=c,o=4;break e}c=In,In=o,c!==null&&(In===null?In=c:In.push.apply(In,c))}o=f}if(c=!1,o!==2)continue}}if(o===1){xl(e,0),vi(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:vi(a,t,Zn,!gi);break e;case 2:In=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=xr+300-at(),10<o)){if(vi(a,t,Zn,!gi),A(a,0,!0)!==0)break e;Pa=t,a.timeoutHandle=$p(hp.bind(null,a,n,In,Ar,Mc,t,Zn,Zi,Tl,gi,c,"Throttled",-0,0),o);break e}hp(a,n,In,Ar,Mc,t,Zn,Zi,Tl,gi,c,null,-0,0)}}break}while(!0);wa(e)}function hp(e,t,n,a,o,c,f,y,w,H,P,W,G,F){if(e.timeoutHandle=-1,W=t.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ne},lp(t,c,W);var _e=(c&62914560)===c?xr-at():(c&4194048)===c?cp-at():0;if(_e=CE(W,_e),_e!==null){Pa=c,e.cancelPendingCommit=_e(_p.bind(null,e,t,c,n,a,o,f,y,w,P,W,null,G,F)),vi(e,c,f,!H);return}}_p(e,t,c,n,a,o,f,y,w)}function Xy(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(!Gn(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 vi(e,t,n,a){t&=~Oc,t&=~Zi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var c=31-Dt(o),f=1<<c;a[c]=-1,o&=~f}n!==0&&me(e,n,t)}function Rr(){return(dt&6)===0?(Es(0),!1):!0}function Lc(){if(Pe!==null){if(mt===0)var e=Pe.return;else e=Pe,Ia=Ii=null,Qo(e),ml=null,ts=0,e=Pe;for(;e!==null;)Yh(e.alternate,e),e=e.return;Pe=null}}function xl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,pE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Pa=0,Lc(),xt=e,Pe=n=Ua(e.current,null),We=t,mt=0,Kn=null,gi=!1,Sl=Q(e,t),Rc=!1,Tl=Zn=Oc=Zi=bi=Ut=0,In=bs=null,Mc=!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-Dt(a),c=1<<o;t|=e[o],a&=~c}return Xa=t,Ps(),n}function pp(e,t){qe=null,B.H=cs,t===pl||t===ar?(t=Md(),mt=3):t===Io?(t=Md(),mt=4):mt=t===dc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kn=t,Pe===null&&(Ut=1,br(e,ta(t,e.current)))}function mp(){var e=Yn.current;return e===null?!0:(We&4194048)===We?la===null:(We&62914560)===We||(We&536870912)!==0?e===la:!1}function gp(){var e=B.H;return B.H=cs,e===null?cs:e}function bp(){var e=B.A;return B.A=Ky,e}function Or(){Ut=4,gi||(We&4194048)!==We&&Yn.current!==null||(Sl=!0),(bi&134217727)===0&&(Zi&134217727)===0||xt===null||vi(xt,We,Zn,!1)}function zc(e,t,n){var a=dt;dt|=2;var o=gp(),c=bp();(xt!==e||We!==t)&&(Ar=null,xl(e,t)),t=!1;var f=Ut;e:do try{if(mt!==0&&Pe!==null){var y=Pe,w=Kn;switch(mt){case 8:Lc(),f=6;break e;case 3:case 2:case 9:case 6:Yn.current===null&&(t=!0);var H=mt;if(mt=0,Kn=null,wl(e,y,w,H),n&&Sl){f=0;break e}break;default:H=mt,mt=0,Kn=null,wl(e,y,w,H)}}Py(),f=Ut;break}catch(P){pp(e,P)}while(!0);return t&&e.shellSuspendCounter++,Ia=Ii=null,dt=a,B.H=o,B.A=c,Pe===null&&(xt=null,We=0,Ps()),f}function Py(){for(;Pe!==null;)yp(Pe)}function Qy(e,t){var n=dt;dt|=2;var a=gp(),o=bp();xt!==e||We!==t?(Ar=null,wr=at()+500,xl(e,t)):Sl=Q(e,t);e:do try{if(mt!==0&&Pe!==null){t=Pe;var c=Kn;t:switch(mt){case 1:mt=0,Kn=null,wl(e,t,c,1);break;case 2:case 9:if(Rd(c)){mt=0,Kn=null,Ep(t);break}t=function(){mt!==2&&mt!==9||xt!==e||(mt=7),wa(e)},c.then(t,t);break e;case 3:mt=7;break e;case 4:mt=5;break e;case 7:Rd(c)?(mt=0,Kn=null,Ep(t)):(mt=0,Kn=null,wl(e,t,c,7));break;case 5:var f=null;switch(Pe.tag){case 26:f=Pe.memoizedState;case 5:case 27:var y=Pe;if(f?im(f):y.stateNode.complete){mt=0,Kn=null;var w=y.sibling;if(w!==null)Pe=w;else{var H=y.return;H!==null?(Pe=H,Mr(H)):Pe=null}break t}}mt=0,Kn=null,wl(e,t,c,5);break;case 6:mt=0,Kn=null,wl(e,t,c,6);break;case 8:Lc(),Ut=6;break e;default:throw Error(l(462))}}Vy();break}catch(P){pp(e,P)}while(!0);return Ia=Ii=null,B.H=a,B.A=o,dt=n,Pe!==null?0:(xt=null,We=0,Ps(),Ut)}function Vy(){for(;Pe!==null&&!oa();)yp(Pe)}function yp(e){var t=Gh(e.alternate,e,Xa);e.memoizedProps=e.pendingProps,t===null?Mr(e):Pe=t}function Ep(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Uh(n,t,t.pendingProps,t.type,void 0,We);break;case 11:t=Uh(n,t,t.pendingProps,t.type.render,t.ref,We);break;case 5:Qo(t);default:Yh(n,t),t=Pe=bd(t,Xa),t=Gh(n,t,Xa)}e.memoizedProps=e.pendingProps,t===null?Mr(e):Pe=t}function wl(e,t,n,a){Ia=Ii=null,Qo(t),ml=null,ts=0;var o=t.return;try{if(jy(e,o,t,n,We)){Ut=1,br(e,ta(n,e.current)),Pe=null;return}}catch(c){if(o!==null)throw Pe=o,c;Ut=1,br(e,ta(n,e.current)),Pe=null;return}t.flags&32768?(nt||a===1?e=!0:Sl||(We&536870912)!==0?e=!1:(gi=e=!0,(a===2||a===9||a===3||a===6)&&(a=Yn.current,a!==null&&a.tag===13&&(a.flags|=16384))),vp(t,e)):Mr(t)}function Mr(e){var t=e;do{if((t.flags&32768)!==0){vp(t,gi);return}e=t.return;var n=Gy(t.alternate,t,Xa);if(n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Ut===0&&(Ut=5)}function vp(e,t){do{var n=$y(e.alternate,e);if(n!==null){n.flags&=32767,Pe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Pe=e;return}Pe=e=n}while(e!==null);Ut=6,Pe=null}function _p(e,t,n,a,o,c,f,y,w){e.cancelPendingCommit=null;do kr();while(en!==0);if((dt&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=To,ve(e,n,c,f,y,w),e===xt&&(Pe=xt=null,We=0),Nl=t,Ei=e,Pa=n,kc=c,Cc=o,up=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,tE(fn,function(){return wp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null,o=te.p,te.p=2,f=dt,dt|=4;try{Yy(e,t,n)}finally{dt=f,te.p=o,B.T=a}}en=1,Sp(),Tp(),Np()}}function Sp(){if(en===1){en=0;var e=Ei,t=Nl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=B.T,B.T=null;var a=te.p;te.p=2;var o=dt;dt|=4;try{np(t,e);var c=Zc,f=od(e.containerInfo),y=c.focusedElem,w=c.selectionRange;if(f!==y&&y&&y.ownerDocument&&rd(y.ownerDocument.documentElement,y)){if(w!==null&&yo(y)){var H=w.start,P=w.end;if(P===void 0&&(P=H),"selectionStart"in y)y.selectionStart=H,y.selectionEnd=Math.min(P,y.value.length);else{var W=y.ownerDocument||document,G=W&&W.defaultView||window;if(G.getSelection){var F=G.getSelection(),_e=y.textContent.length,Ue=Math.min(w.start,_e),St=w.end===void 0?Ue:Math.min(w.end,_e);!F.extend&&Ue>St&&(f=St,St=Ue,Ue=f);var z=sd(y,Ue),O=sd(y,St);if(z&&O&&(F.rangeCount!==1||F.anchorNode!==z.node||F.anchorOffset!==z.offset||F.focusNode!==O.node||F.focusOffset!==O.offset)){var I=W.createRange();I.setStart(z.node,z.offset),F.removeAllRanges(),Ue>St?(F.addRange(I),F.extend(O.node,O.offset)):(I.setEnd(O.node,O.offset),F.addRange(I))}}}}for(W=[],F=y;F=F.parentNode;)F.nodeType===1&&W.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<W.length;y++){var V=W[y];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}$r=!!Kc,Zc=Kc=null}finally{dt=o,te.p=a,B.T=n}}e.current=t,en=2}}function Tp(){if(en===2){en=0;var e=Ei,t=Nl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=B.T,B.T=null;var a=te.p;te.p=2;var o=dt;dt|=4;try{Vh(e,t.alternate,t)}finally{dt=o,te.p=a,B.T=n}}en=3}}function Np(){if(en===4||en===3){en=0,ca();var e=Ei,t=Nl,n=Pa,a=up;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?en=5:(en=0,Nl=Ei=null,xp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(yi=null),Vn(n),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(dn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=B.T,o=te.p,te.p=2,B.T=null;try{for(var c=e.onRecoverableError,f=0;f<a.length;f++){var y=a[f];c(y.value,{componentStack:y.stack})}}finally{B.T=t,te.p=o}}(Pa&3)!==0&&kr(),wa(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Dc?ys++:(ys=0,Dc=e):ys=0,Es(0)}}function xp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wl(t)))}function kr(){return Sp(),Tp(),Np(),wp()}function wp(){if(en!==5)return!1;var e=Ei,t=kc;kc=0;var n=Vn(Pa),a=B.T,o=te.p;try{te.p=32>n?32:n,B.T=null,n=Cc,Cc=null;var c=Ei,f=Pa;if(en=0,Nl=Ei=null,Pa=0,(dt&6)!==0)throw Error(l(331));var y=dt;if(dt|=4,rp(c.current),ip(c,c.current,f,n),dt=y,Es(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(dn,c)}catch{}return!0}finally{te.p=o,B.T=a,xp(e,t)}}function Ap(e,t,n){t=ta(n,t),t=fc(e.stateNode,t,2),e=di(e,t,2),e!==null&&(it(e,2),wa(e))}function gt(e,t,n){if(e.tag===3)Ap(e,e,n);else for(;t!==null;){if(t.tag===3){Ap(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(yi===null||!yi.has(a))){e=ta(n,e),n=Rh(2),a=di(t,n,2),a!==null&&(Oh(n,a,t,e),it(a,2),wa(a));break}}t=t.return}}function Uc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Zy;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)||(Rc=!0,o.add(n),e=Jy.bind(null,e,t,n),t.then(e,e))}function Jy(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,xt===e&&(We&n)===n&&(Ut===4||Ut===3&&(We&62914560)===We&&300>at()-xr?(dt&2)===0&&xl(e,0):Oc|=n,Tl===We&&(Tl=0)),wa(e)}function Rp(e,t){t===0&&(t=De()),e=zi(e,t),e!==null&&(it(e,t),wa(e))}function Wy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rp(e,n)}function eE(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),Rp(e,n)}function tE(e,t){return Mn(e,t)}var Cr=null,Al=null,Bc=!1,Dr=!1,Ic=!1,_i=0;function wa(e){e!==Al&&e.next===null&&(Al===null?Cr=Al=e:Al=Al.next=e),Dr=!0,Bc||(Bc=!0,aE())}function Es(e,t){if(!Ic&&Dr){Ic=!0;do for(var n=!1,a=Cr;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var c=0;else{var f=a.suspendedLanes,y=a.pingedLanes;c=(1<<31-Dt(42|e)+1)-1,c&=o&~(f&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Cp(a,c))}else c=We,c=A(a,a===xt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Q(a,c)||(n=!0,Cp(a,c));a=a.next}while(n);Ic=!1}}function nE(){Op()}function Op(){Dr=Bc=!1;var e=0;_i!==0&&hE()&&(e=_i);for(var t=at(),n=null,a=Cr;a!==null;){var o=a.next,c=Mp(a,t);c===0?(a.next=null,n===null?Cr=o:n.next=o,o===null&&(Al=n)):(n=a,(e!==0||(c&3)!==0)&&(Dr=!0)),a=o}en!==0&&en!==5||Es(e),_i!==0&&(_i=0)}function Mp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var f=31-Dt(c),y=1<<f,w=o[f];w===-1?((y&n)===0||(y&a)!==0)&&(o[f]=de(y,t)):w<=t&&(e.expiredLanes|=y),c&=~y}if(t=xt,n=We,n=A(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(mt===2||mt===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&xn(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Q(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&xn(a),Vn(n)){case 2:case 8:n=nn;break;case 32:n=fn;break;case 268435456:n=Cn;break;default:n=fn}return a=kp.bind(null,e),n=Mn(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&xn(a),e.callbackPriority=2,e.callbackNode=null,2}function kp(e,t){if(en!==0&&en!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(kr()&&e.callbackNode!==n)return null;var a=We;return a=A(e,e===xt?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(dp(e,a,t),Mp(e,at()),e.callbackNode!=null&&e.callbackNode===n?kp.bind(null,e):null)}function Cp(e,t){if(kr())return null;dp(e,t,!0)}function aE(){mE(function(){(dt&6)!==0?Mn(yt,nE):Op()})}function jc(){if(_i===0){var e=dl;e===0&&(e=oe,oe<<=1,(oe&261888)===0&&(oe=256)),_i=e}return _i}function Dp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xe(""+e)}function Lp(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 iE(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var c=Dp((o[ln]||null).action),f=a.submitter;f&&(t=(t=f[ln]||null)?Dp(t.formAction):f.getAttribute("formAction"),t!==null&&(c=t,f=null));var y=new Fs("action","action",null,a,o);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(_i!==0){var w=f?Lp(o,f):new FormData(o);lc(n,{pending:!0,data:w,method:o.method,action:c},null,w)}}else typeof c=="function"&&(y.preventDefault(),w=f?Lp(o,f):new FormData(o),lc(n,{pending:!0,data:w,method:o.method,action:c},c,w))},currentTarget:o}]})}}for(var Hc=0;Hc<So.length;Hc++){var qc=So[Hc],lE=qc.toLowerCase(),sE=qc[0].toUpperCase()+qc.slice(1);da(lE,"on"+sE)}da(fd,"onAnimationEnd"),da(dd,"onAnimationIteration"),da(hd,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(Sy,"onTransitionRun"),da(Ty,"onTransitionStart"),da(Ny,"onTransitionCancel"),da(pd,"onTransitionEnd"),re("onMouseEnter",["mouseout","mouseover"]),re("onMouseLeave",["mouseout","mouseover"]),re("onPointerEnter",["pointerout","pointerover"]),re("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 vs="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(" "),rE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vs));function zp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var f=a.length-1;0<=f;f--){var y=a[f],w=y.instance,H=y.currentTarget;if(y=y.listener,w!==c&&o.isPropagationStopped())break e;c=y,o.currentTarget=H;try{c(o)}catch(P){Xs(P)}o.currentTarget=null,c=w}else for(f=0;f<a.length;f++){if(y=a[f],w=y.instance,H=y.currentTarget,y=y.listener,w!==c&&o.isPropagationStopped())break e;c=y,o.currentTarget=H;try{c(o)}catch(P){Xs(P)}o.currentTarget=null,c=w}}}}function Qe(e,t){var n=t[Jn];n===void 0&&(n=t[Jn]=new Set);var a=e+"__bubble";n.has(a)||(Up(t,e,2,!1),n.add(a))}function Gc(e,t,n){var a=0;t&&(a|=4),Up(n,e,a,t)}var Lr="_reactListening"+Math.random().toString(36).slice(2);function $c(e){if(!e[Lr]){e[Lr]=!0,ka.forEach(function(n){n!=="selectionchange"&&(rE.has(n)||Gc(n,!1,e),Gc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Lr]||(t[Lr]=!0,Gc("selectionchange",!1,t))}}function Up(e,t,n,a){switch(fm(t)){case 2:var o=zE;break;case 8:o=UE;break;default:o=iu}n=o.bind(null,t,n,e),o=void 0,!oo||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 Yc(e,t,n,a,o){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var y=a.stateNode.containerInfo;if(y===o)break;if(f===4)for(f=a.return;f!==null;){var w=f.tag;if((w===3||w===4)&&f.stateNode.containerInfo===o)return;f=f.return}for(;y!==null;){if(f=hn(y),f===null)return;if(w=f.tag,w===5||w===6||w===26||w===27){a=c=f;continue e}y=y.parentNode}}a=a.return}qs(function(){var H=c,P=Ae(n),W=[];e:{var G=md.get(e);if(G!==void 0){var F=Fs,_e=e;switch(e){case"keypress":if($s(n)===0)break e;case"keydown":case"keyup":F=ey;break;case"focusin":_e="focus",F=ho;break;case"focusout":_e="blur",F=ho;break;case"beforeblur":case"afterblur":F=ho;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":F=Yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Gb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=ay;break;case fd:case dd:case hd:F=Fb;break;case pd:F=ly;break;case"scroll":case"scrollend":F=Hb;break;case"wheel":F=ry;break;case"copy":case"cut":case"paste":F=Zb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Kf;break;case"toggle":case"beforetoggle":F=cy}var Ue=(t&4)!==0,St=!Ue&&(e==="scroll"||e==="scrollend"),z=Ue?G!==null?G+"Capture":null:G;Ue=[];for(var O=H,I;O!==null;){var V=O;if(I=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||I===null||z===null||(V=Gl(O,z),V!=null&&Ue.push(_s(O,V,I))),St)break;O=O.return}0<Ue.length&&(G=new F(G,_e,null,n,P),W.push({event:G,listeners:Ue}))}}if((t&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",G&&n!==pe&&(_e=n.relatedTarget||n.fromElement)&&(hn(_e)||_e[st]))break e;if((F||G)&&(G=P.window===P?P:(G=P.ownerDocument)?G.defaultView||G.parentWindow:window,F?(_e=n.relatedTarget||n.toElement,F=H,_e=_e?hn(_e):null,_e!==null&&(St=d(_e),Ue=_e.tag,_e!==St||Ue!==5&&Ue!==27&&Ue!==6)&&(_e=null)):(F=null,_e=H),F!==_e)){if(Ue=Yf,V="onMouseLeave",z="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Ue=Kf,V="onPointerLeave",z="onPointerEnter",O="pointer"),St=F==null?G:va(F),I=_e==null?G:va(_e),G=new Ue(V,O+"leave",F,n,P),G.target=St,G.relatedTarget=I,V=null,hn(P)===H&&(Ue=new Ue(z,O+"enter",_e,n,P),Ue.target=I,Ue.relatedTarget=St,V=Ue),St=V,F&&_e)t:{for(Ue=oE,z=F,O=_e,I=0,V=z;V;V=Ue(V))I++;V=0;for(var Me=O;Me;Me=Ue(Me))V++;for(;0<I-V;)z=Ue(z),I--;for(;0<V-I;)O=Ue(O),V--;for(;I--;){if(z===O||O!==null&&z===O.alternate){Ue=z;break t}z=Ue(z),O=Ue(O)}Ue=null}else Ue=null;F!==null&&Bp(W,G,F,Ue,!1),_e!==null&&St!==null&&Bp(W,St,_e,Ue,!0)}}e:{if(G=H?va(H):window,F=G.nodeName&&G.nodeName.toLowerCase(),F==="select"||F==="input"&&G.type==="file")var ct=ed;else if(Jf(G))if(td)ct=Ey;else{ct=by;var Ne=gy}else F=G.nodeName,!F||F.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?H&&ye(H.elementType)&&(ct=ed):ct=yy;if(ct&&(ct=ct(e,H))){Wf(W,ct,n,P);break e}Ne&&Ne(e,G,H),e==="focusout"&&H&&G.type==="number"&&H.memoizedProps.value!=null&&ii(G,"number",G.value)}switch(Ne=H?va(H):window,e){case"focusin":(Jf(Ne)||Ne.contentEditable==="true")&&(il=Ne,Eo=H,Ql=null);break;case"focusout":Ql=Eo=il=null;break;case"mousedown":vo=!0;break;case"contextmenu":case"mouseup":case"dragend":vo=!1,cd(W,n,P);break;case"selectionchange":if(_y)break;case"keydown":case"keyup":cd(W,n,P)}var $e;if(mo)e:{switch(e){case"compositionstart":var et="onCompositionStart";break e;case"compositionend":et="onCompositionEnd";break e;case"compositionupdate":et="onCompositionUpdate";break e}et=void 0}else al?Qf(e,n)&&(et="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(et="onCompositionStart");et&&(Zf&&n.locale!=="ko"&&(al||et!=="onCompositionStart"?et==="onCompositionEnd"&&al&&($e=Gf()):(li=P,co="value"in li?li.value:li.textContent,al=!0)),Ne=zr(H,et),0<Ne.length&&(et=new Ff(et,e,null,n,P),W.push({event:et,listeners:Ne}),$e?et.data=$e:($e=Vf(n),$e!==null&&(et.data=$e)))),($e=fy?dy(e,n):hy(e,n))&&(et=zr(H,"onBeforeInput"),0<et.length&&(Ne=new Ff("onBeforeInput","beforeinput",null,n,P),W.push({event:Ne,listeners:et}),Ne.data=$e)),iE(W,e,H,n,P)}zp(W,t)})}function _s(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zr(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Gl(e,n),o!=null&&a.unshift(_s(e,o,c)),o=Gl(e,t),o!=null&&a.push(_s(e,o,c))),e.tag===3)return a;e=e.return}return[]}function oE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bp(e,t,n,a,o){for(var c=t._reactName,f=[];n!==null&&n!==a;){var y=n,w=y.alternate,H=y.stateNode;if(y=y.tag,w!==null&&w===a)break;y!==5&&y!==26&&y!==27||H===null||(w=H,o?(H=Gl(n,c),H!=null&&f.unshift(_s(n,H,w))):o||(H=Gl(n,c),H!=null&&f.push(_s(n,H,w)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var cE=/\r\n?/g,uE=/\u0000|\uFFFD/g;function Ip(e){return(typeof e=="string"?e:""+e).replace(cE,`
|
|
49
|
-
`).replace(uE,"")}function jp(e,t){return t=Ip(t),Ip(e)===t}function _t(e,t,n,a,o,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||K(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&K(e,""+a);break;case"className":sn(e,"class",a);break;case"tabIndex":sn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":sn(e,n,a);break;case"style":X(e,a,c);break;case"data":if(t!=="object"){sn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=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"&&_t(e,t,"name",o.name,o,null),_t(e,t,"formEncType",o.formEncType,o,null),_t(e,t,"formMethod",o.formMethod,o,null),_t(e,t,"formTarget",o.formTarget,o,null)):(_t(e,t,"encType",o.encType,o,null),_t(e,t,"method",o.method,o,null),_t(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=ne);break;case"onScroll":a!=null&&Qe("scroll",e);break;case"onScrollEnd":a!=null&&Qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=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":Qe("beforetoggle",e),Qe("toggle",e),Gt(e,"popover",a);break;case"xlinkActuate":It(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":It(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":It(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":It(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":It(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":It(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":It(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":It(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":It(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Gt(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Se.get(n)||n,Gt(e,n,a))}}function Fc(e,t,n,a,o,c){switch(n){case"style":X(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"children":typeof a=="string"?K(e,a):(typeof a=="number"||typeof a=="bigint")&&K(e,""+a);break;case"onScroll":a!=null&&Qe("scroll",e);break;case"onScrollEnd":a!=null&&Qe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=ne);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wn.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[ln]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Gt(e,n,a)}}}function bn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",e),Qe("load",e);var a=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:_t(e,t,c,f,n,null)}}o&&_t(e,t,"srcSet",n.srcSet,n,null),a&&_t(e,t,"src",n.src,n,null);return;case"input":Qe("invalid",e);var y=c=f=o=null,w=null,H=null;for(a in n)if(n.hasOwnProperty(a)){var P=n[a];if(P!=null)switch(a){case"name":o=P;break;case"type":f=P;break;case"checked":w=P;break;case"defaultChecked":H=P;break;case"value":c=P;break;case"defaultValue":y=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(l(137,t));break;default:_t(e,t,a,P,n,null)}}Da(e,c,y,w,H,f,o,!1);return;case"select":Qe("invalid",e),a=f=c=null;for(o in n)if(n.hasOwnProperty(o)&&(y=n[o],y!=null))switch(o){case"value":c=y;break;case"defaultValue":f=y;break;case"multiple":a=y;default:_t(e,t,o,y,n,null)}t=c,n=f,e.multiple=!!a,t!=null?$t(e,!!a,t,!1):n!=null&&$t(e,!!a,n,!0);return;case"textarea":Qe("invalid",e),c=o=a=null;for(f in n)if(n.hasOwnProperty(f)&&(y=n[f],y!=null))switch(f){case"value":a=y;break;case"defaultValue":o=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(l(91));break;default:_t(e,t,f,y,n,null)}Sa(e,a,o,c);return;case"option":for(w in n)if(n.hasOwnProperty(w)&&(a=n[w],a!=null))switch(w){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:_t(e,t,w,a,n,null)}return;case"dialog":Qe("beforetoggle",e),Qe("toggle",e),Qe("cancel",e),Qe("close",e);break;case"iframe":case"object":Qe("load",e);break;case"video":case"audio":for(a=0;a<vs.length;a++)Qe(vs[a],e);break;case"image":Qe("error",e),Qe("load",e);break;case"details":Qe("toggle",e);break;case"embed":case"source":case"link":Qe("error",e),Qe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in n)if(n.hasOwnProperty(H)&&(a=n[H],a!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:_t(e,t,H,a,n,null)}return;default:if(ye(t)){for(P in n)n.hasOwnProperty(P)&&(a=n[P],a!==void 0&&Fc(e,t,P,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&_t(e,t,y,a,n,null))}function fE(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,f=null,y=null,w=null,H=null,P=null;for(F in n){var W=n[F];if(n.hasOwnProperty(F)&&W!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":w=W;default:a.hasOwnProperty(F)||_t(e,t,F,null,a,W)}}for(var G in a){var F=a[G];if(W=n[G],a.hasOwnProperty(G)&&(F!=null||W!=null))switch(G){case"type":c=F;break;case"name":o=F;break;case"checked":H=F;break;case"defaultChecked":P=F;break;case"value":f=F;break;case"defaultValue":y=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(l(137,t));break;default:F!==W&&_t(e,t,G,F,a,W)}}ai(e,f,y,w,H,P,c,o);return;case"select":F=f=y=G=null;for(c in n)if(w=n[c],n.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":F=w;default:a.hasOwnProperty(c)||_t(e,t,c,null,a,w)}for(o in a)if(c=a[o],w=n[o],a.hasOwnProperty(o)&&(c!=null||w!=null))switch(o){case"value":G=c;break;case"defaultValue":y=c;break;case"multiple":f=c;default:c!==w&&_t(e,t,o,c,a,w)}t=y,n=f,a=F,G!=null?$t(e,!!n,G,!1):!!a!=!!n&&(t!=null?$t(e,!!n,t,!0):$t(e,!!n,n?[]:"",!1));return;case"textarea":F=G=null;for(y in n)if(o=n[y],n.hasOwnProperty(y)&&o!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:_t(e,t,y,null,a,o)}for(f in a)if(o=a[f],c=n[f],a.hasOwnProperty(f)&&(o!=null||c!=null))switch(f){case"value":G=o;break;case"defaultValue":F=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&_t(e,t,f,o,a,c)}La(e,G,F);return;case"option":for(var _e in n)if(G=n[_e],n.hasOwnProperty(_e)&&G!=null&&!a.hasOwnProperty(_e))switch(_e){case"selected":e.selected=!1;break;default:_t(e,t,_e,null,a,G)}for(w in a)if(G=a[w],F=n[w],a.hasOwnProperty(w)&&G!==F&&(G!=null||F!=null))switch(w){case"selected":e.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:_t(e,t,w,G,a,F)}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)G=n[Ue],n.hasOwnProperty(Ue)&&G!=null&&!a.hasOwnProperty(Ue)&&_t(e,t,Ue,null,a,G);for(H in a)if(G=a[H],F=n[H],a.hasOwnProperty(H)&&G!==F&&(G!=null||F!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(l(137,t));break;default:_t(e,t,H,G,a,F)}return;default:if(ye(t)){for(var St in n)G=n[St],n.hasOwnProperty(St)&&G!==void 0&&!a.hasOwnProperty(St)&&Fc(e,t,St,void 0,a,G);for(P in a)G=a[P],F=n[P],!a.hasOwnProperty(P)||G===F||G===void 0&&F===void 0||Fc(e,t,P,G,a,F);return}}for(var z in n)G=n[z],n.hasOwnProperty(z)&&G!=null&&!a.hasOwnProperty(z)&&_t(e,t,z,null,a,G);for(W in a)G=a[W],F=n[W],!a.hasOwnProperty(W)||G===F||G==null&&F==null||_t(e,t,W,G,a,F)}function Hp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],c=o.transferSize,f=o.initiatorType,y=o.duration;if(c&&y&&Hp(f)){for(f=0,y=o.responseEnd,a+=1;a<n.length;a++){var w=n[a],H=w.startTime;if(H>y)break;var P=w.transferSize,W=w.initiatorType;P&&Hp(W)&&(w=w.responseEnd,f+=P*(w<y?1:(y-H)/(w-H)))}if(--a,t+=8*(c+f)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Kc=null,Zc=null;function Ur(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 Gp(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 Xc(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 Pc=null;function hE(){var e=window.event;return e&&e.type==="popstate"?e===Pc?!1:(Pc=e,!0):(Pc=null,!1)}var $p=typeof setTimeout=="function"?setTimeout:void 0,pE=typeof clearTimeout=="function"?clearTimeout:void 0,Yp=typeof Promise=="function"?Promise:void 0,mE=typeof queueMicrotask=="function"?queueMicrotask:typeof Yp<"u"?function(e){return Yp.resolve(null).then(e).catch(gE)}:$p;function gE(e){setTimeout(function(){throw e})}function Si(e){return e==="head"}function Fp(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),kl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ss(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ss(n);for(var c=n.firstChild;c;){var f=c.nextSibling,y=c.nodeName;c[Ea]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&Ss(e.ownerDocument.body);n=o}while(n);kl(t)}function Kp(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 Qc(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":Qc(n),ei(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function bE(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[Ea])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=sa(e.nextSibling),e===null)break}return null}function yE(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=sa(e.nextSibling),e===null))return null;return e}function Zp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=sa(e.nextSibling),e===null))return null;return e}function Vc(e){return e.data==="$?"||e.data==="$~"}function Jc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function EE(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 sa(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 Wc=null;function Xp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return sa(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Pp(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 Qp(e,t,n){switch(t=Ur(n),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Ss(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ei(e)}var ra=new Map,Vp=new Set;function Br(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qa=te.d;te.d={f:vE,r:_E,D:SE,C:TE,L:NE,m:xE,X:AE,S:wE,M:RE};function vE(){var e=Qa.f(),t=Rr();return e||t}function _E(e){var t=ua(e);t!==null&&t.tag===5&&t.type==="form"?ph(t):Qa.r(e)}var Rl=typeof document>"u"?null:document;function Jp(e,t,n){var a=Rl;if(a&&typeof t=="string"&&t){var o=_n(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Vp.has(o)||(Vp.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),bn(t,"link",e),pt(t),a.head.appendChild(t)))}}function SE(e){Qa.D(e),Jp("dns-prefetch",e,null)}function TE(e,t){Qa.C(e,t),Jp("preconnect",e,t)}function NE(e,t,n){Qa.L(e,t,n);var a=Rl;if(a&&e&&t){var o='link[rel="preload"][as="'+_n(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+_n(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+_n(n.imageSizes)+'"]')):o+='[href="'+_n(e)+'"]';var c=o;switch(t){case"style":c=Ol(e);break;case"script":c=Ml(e)}ra.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ra.set(c,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Ts(c))||t==="script"&&a.querySelector(Ns(c))||(t=a.createElement("link"),bn(t,"link",e),pt(t),a.head.appendChild(t)))}}function xE(e,t){Qa.m(e,t);var n=Rl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+_n(a)+'"][href="'+_n(e)+'"]',c=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ml(e)}if(!ra.has(c)&&(e=v({rel:"modulepreload",href:e},t),ra.set(c,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ns(c)))return}a=n.createElement("link"),bn(a,"link",e),pt(a),n.head.appendChild(a)}}}function wE(e,t,n){Qa.S(e,t,n);var a=Rl;if(a&&e){var o=_a(a).hoistableStyles,c=Ol(e);t=t||"default";var f=o.get(c);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(Ts(c)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ra.get(c))&&eu(e,n);var w=f=a.createElement("link");pt(w),bn(w,"link",e),w._p=new Promise(function(H,P){w.onload=H,w.onerror=P}),w.addEventListener("load",function(){y.loading|=1}),w.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Ir(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:y},o.set(c,f)}}}function AE(e,t){Qa.X(e,t);var n=Rl;if(n&&e){var a=_a(n).hoistableScripts,o=Ml(e),c=a.get(o);c||(c=n.querySelector(Ns(o)),c||(e=v({src:e,async:!0},t),(t=ra.get(o))&&tu(e,t),c=n.createElement("script"),pt(c),bn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function RE(e,t){Qa.M(e,t);var n=Rl;if(n&&e){var a=_a(n).hoistableScripts,o=Ml(e),c=a.get(o);c||(c=n.querySelector(Ns(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=ra.get(o))&&tu(e,t),c=n.createElement("script"),pt(c),bn(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(o,c))}}function Wp(e,t,n,a){var o=(o=xe.current)?Br(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ol(n.href),n=_a(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ol(n.href);var c=_a(o).hoistableStyles,f=c.get(e);if(f||(o=o.ownerDocument||o,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=o.querySelector(Ts(e)))&&!c._p&&(f.instance=c,f.state.loading=5),ra.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},ra.set(e,n),c||OE(o,e,n,f.state))),t&&a===null)throw Error(l(528,""));return f}if(t&&a!==null)throw Error(l(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=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 Ol(e){return'href="'+_n(e)+'"'}function Ts(e){return'link[rel="stylesheet"]['+e+"]"}function em(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function OE(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}),bn(t,"link",n),pt(t),e.head.appendChild(t))}function Ml(e){return'[src="'+_n(e)+'"]'}function Ns(e){return"script[async]"+e}function tm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+_n(n.href)+'"]');if(a)return t.instance=a,pt(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"),pt(a),bn(a,"style",o),Ir(a,n.precedence,e),t.instance=a;case"stylesheet":o=Ol(n.href);var c=e.querySelector(Ts(o));if(c)return t.state.loading|=4,t.instance=c,pt(c),c;a=em(n),(o=ra.get(o))&&eu(a,o),c=(e.ownerDocument||e).createElement("link"),pt(c);var f=c;return f._p=new Promise(function(y,w){f.onload=y,f.onerror=w}),bn(c,"link",a),t.state.loading|=4,Ir(c,n.precedence,e),t.instance=c;case"script":return c=Ml(n.src),(o=e.querySelector(Ns(c)))?(t.instance=o,pt(o),o):(a=n,(o=ra.get(c))&&(a=v({},n),tu(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),pt(o),bn(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ir(a,n.precedence,e));return t.instance}function Ir(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,c=o,f=0;f<a.length;f++){var y=a[f];if(y.dataset.precedence===t)c=y;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function eu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function tu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var jr=null;function nm(e,t,n){if(jr===null){var a=new Map,o=jr=new Map;o.set(n,a)}else o=jr,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[Ea]||c[Lt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(t)||"";f=e+f;var y=a.get(f);y?y.push(c):a.set(f,[c])}}return a}function am(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ME(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 im(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function kE(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ol(a.href),c=t.querySelector(Ts(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Hr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,pt(c);return}c=t.ownerDocument||t,a=em(a),(o=ra.get(o))&&eu(a,o),c=c.createElement("link"),pt(c);var f=c;f._p=new Promise(function(y,w){f.onload=y,f.onerror=w}),bn(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=Hr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var nu=0;function CE(e,t){return e.stylesheets&&e.count===0&&Gr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Gr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&nu===0&&(nu=62500*dE());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>nu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Hr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var qr=null;function Gr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,qr=new Map,t.forEach(DE,e),qr=null,Hr.call(e))}function DE(e,t){if(!(t.state.loading&4)){var n=qr.get(e);if(n)var a=n.get(null);else{n=new Map,qr.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var f=o[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}o=t.instance,f=o.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,o),n.set(f,o),this.count++,a=Hr.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var xs={$$typeof:L,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function LE(e,t,n,a,o,c,f,y,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Je(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Je(0),this.hiddenUpdates=Je(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function lm(e,t,n,a,o,c,f,y,w,H,P,W){return e=new LE(e,t,n,f,w,H,P,W,y),t=1,c===!0&&(t|=24),c=$n(3,null,null,t),e.current=c,c.stateNode=e,t=zo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},jo(c),e}function sm(e){return e?(e=rl,e):rl}function rm(e,t,n,a,o,c){o=sm(o),a.context===null?a.context=o:a.pendingContext=o,a=fi(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=di(e,a,t),n!==null&&(jn(n,e,t),as(n,e,t))}function om(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function au(e,t){om(e,t),(e=e.alternate)&&om(e,t)}function cm(e){if(e.tag===13||e.tag===31){var t=zi(e,67108864);t!==null&&jn(t,e,67108864),au(e,67108864)}}function um(e){if(e.tag===13||e.tag===31){var t=Xn();t=Et(t);var n=zi(e,t);n!==null&&jn(n,e,t),au(e,t)}}var $r=!0;function zE(e,t,n,a){var o=B.T;B.T=null;var c=te.p;try{te.p=2,iu(e,t,n,a)}finally{te.p=c,B.T=o}}function UE(e,t,n,a){var o=B.T;B.T=null;var c=te.p;try{te.p=8,iu(e,t,n,a)}finally{te.p=c,B.T=o}}function iu(e,t,n,a){if($r){var o=lu(a);if(o===null)Yc(e,t,a,Yr,n),dm(e,a);else if(IE(o,e,t,n,a))a.stopPropagation();else if(dm(e,a),t&4&&-1<BE.indexOf(e)){for(;o!==null;){var c=ua(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Wt(c.pendingLanes);if(f!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var w=1<<31-Dt(f);y.entanglements[1]|=w,f&=~w}wa(c),(dt&6)===0&&(wr=at()+500,Es(0))}}break;case 31:case 13:y=zi(c,2),y!==null&&jn(y,c,2),Rr(),au(c,2)}if(c=lu(a),c===null&&Yc(e,t,a,Yr,n),c===o)break;o=c}o!==null&&a.stopPropagation()}else Yc(e,t,a,null,n)}}function lu(e){return e=Ae(e),su(e)}var Yr=null;function su(e){if(Yr=null,e=hn(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=E(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 Yr=e,null}function fm(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(Bt()){case yt:return 2;case nn:return 8;case fn:case kn:return 32;case Cn:return 268435456;default:return 32}default:return 32}}var ru=!1,Ti=null,Ni=null,xi=null,ws=new Map,As=new Map,wi=[],BE="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 dm(e,t){switch(e){case"focusin":case"focusout":Ti=null;break;case"dragenter":case"dragleave":Ni=null;break;case"mouseover":case"mouseout":xi=null;break;case"pointerover":case"pointerout":ws.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":As.delete(t.pointerId)}}function Rs(e,t,n,a,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ua(t),t!==null&&cm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function IE(e,t,n,a,o){switch(t){case"focusin":return Ti=Rs(Ti,e,t,n,a,o),!0;case"dragenter":return Ni=Rs(Ni,e,t,n,a,o),!0;case"mouseover":return xi=Rs(xi,e,t,n,a,o),!0;case"pointerover":var c=o.pointerId;return ws.set(c,Rs(ws.get(c)||null,e,t,n,a,o)),!0;case"gotpointercapture":return c=o.pointerId,As.set(c,Rs(As.get(c)||null,e,t,n,a,o)),!0}return!1}function hm(e){var t=hn(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,Ja(e.priority,function(){um(n)});return}}else if(t===31){if(t=E(n),t!==null){e.blockedOn=t,Ja(e.priority,function(){um(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 Fr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=lu(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);pe=a,n.target.dispatchEvent(a),pe=null}else return t=ua(n),t!==null&&cm(t),e.blockedOn=n,!1;t.shift()}return!0}function pm(e,t,n){Fr(e)&&n.delete(t)}function jE(){ru=!1,Ti!==null&&Fr(Ti)&&(Ti=null),Ni!==null&&Fr(Ni)&&(Ni=null),xi!==null&&Fr(xi)&&(xi=null),ws.forEach(pm),As.forEach(pm)}function Kr(e,t){e.blockedOn===t&&(e.blockedOn=null,ru||(ru=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,jE)))}var Zr=null;function mm(e){Zr!==e&&(Zr=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Zr===e&&(Zr=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(su(a||n)===null)continue;break}var c=ua(n);c!==null&&(e.splice(t,3),t-=3,lc(c,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function kl(e){function t(w){return Kr(w,e)}Ti!==null&&Kr(Ti,e),Ni!==null&&Kr(Ni,e),xi!==null&&Kr(xi,e),ws.forEach(t),As.forEach(t);for(var n=0;n<wi.length;n++){var a=wi[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<wi.length&&(n=wi[0],n.blockedOn===null);)hm(n),n.blockedOn===null&&wi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],c=n[a+1],f=o[ln]||null;if(typeof c=="function")f||mm(n);else if(f){var y=null;if(c&&c.hasAttribute("formAction")){if(o=c,f=c[ln]||null)y=f.formAction;else if(su(o)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),mm(n)}}}function gm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return o=f})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function ou(e){this._internalRoot=e}Xr.prototype.render=ou.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,a=Xn();rm(n,a,e,t,null,null)},Xr.prototype.unmount=ou.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rm(e.current,2,null,e,null,null),Rr(),t[st]=null}};function Xr(e){this._internalRoot=e}Xr.prototype.unstable_scheduleHydration=function(e){if(e){var t=ya();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wi.length&&t!==0&&t<wi[n].priority;n++);wi.splice(n,0,e),n===0&&hm(e)}};var bm=i.version;if(bm!=="19.2.8")throw Error(l(527,bm,"19.2.8"));te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var HE={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pr.isDisabled&&Pr.supportsFiber)try{dn=Pr.inject(HE),Ot=Pr}catch{}}return Ms.createRoot=function(e,t){if(!u(e))throw Error(l(299));var n=!1,a="",o=Nh,c=xh,f=wh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=lm(e,1,!1,null,null,n,a,null,o,c,f,gm),e[st]=t.current,$c(e),new ou(t)},Ms.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var a=!1,o="",c=Nh,f=xh,y=wh,w=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(w=n.formState)),t=lm(e,1,!0,t,n??null,a,o,w,c,f,y,gm),t.context=sm(null),n=t.current,a=Xn(),a=Et(a),o=fi(a),o.callback=null,di(n,o,a),n=a,t.current.lanes=n,it(t,n),wa(t),e[st]=t.current,$c(e),new Xr(t)},Ms.version="19.2.8",Ms}var Am;function JE(){if(Am)return fu.exports;Am=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(),fu.exports=VE(),fu.exports}var WE=JE(),Xt;(function(s){s.INSERT="insert",s.DELETE="delete",s.CONTEXT="context"})(Xt||(Xt={}));const ev={LINE_BY_LINE:"line-by-line"},tv={NONE:"none"},nv={WORD:"word"};var Bl;(function(s){s.AUTO="auto",s.DARK="dark",s.LIGHT="light"})(Bl||(Bl={}));const av=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],iv=RegExp("["+av.join("\\")+"]","g");function lv(s){return s.replace(iv,"\\$&")}function Rm(s){return s&&s.replace(/\\/g,"/")}function sv(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 ob(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 Om(s,i){const r=s.split(".");return r.length>1?r[r.length-1]:i}function Mm(s,i){return i.reduce((r,l)=>r||s.startsWith(l),!1)}const km=["a/","b/","i/","w/","c/","o/"];function Mi(s,i,r){const l=r!==void 0?[...km,r]:km,u=i?new RegExp(`^${lv(i)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,d=""]=u.exec(s)||[],g=l.find(h=>d.indexOf(h)===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 rv(s,i){return Mi(s,"---",i)}function ov(s,i){return Mi(s,"+++",i)}function cv(s,i={}){const r=[];let l=null,u=null,d=null,g=null,E=null,h=null,m=null;const b="--- ",v="+++ ",T="@@",x=/^old mode (\d{6})/,N=/^new mode (\d{6})/,k=/^deleted file mode (\d{6})/,R=/^new file mode (\d{6})/,U=/^copy from "?(.+)"?/,$=/^copy to "?(.+)"?/,L=/^rename from "?(.+)"?/,le=/^rename to "?(.+)"?/,q=/^similarity index (\d+)%/,J=/^dissimilarity index (\d+)%/,ae=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,M=/^Binary files (.*) and (.*) differ/,Y=/^GIT binary patch/,ee=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,Z=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,ue=/^new file mode (\d{6})/,Oe=/^deleted file mode (\d{6}),(\d{6})/,Ce=s.replace(/\/g,"").replace(/\r\n?/g,`
|
|
50
|
-
`).split(`
|
|
51
|
-
`);function ge(){u!==null&&l!==null&&(l.blocks.push(u),u=null)}function B(){l!==null&&(!l.oldName&&h!==null&&(l.oldName=h),!l.newName&&m!==null&&(l.newName=m),l.newName&&(r.push(l),l=null)),h=null,m=null}function te(){ge(),B(),l={blocks:[],deletedLines:0,addedLines:0}}function ce(_){ge();let D;l!==null&&((D=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(_))?(l.isCombined=!1,d=parseInt(D[1],10),E=parseInt(D[2],10)):(D=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(_))?(l.isCombined=!0,d=parseInt(D[1],10),g=parseInt(D[2],10),E=parseInt(D[3],10)):(_.startsWith(T)&&console.error("Failed to parse lines, starting in 0!"),d=0,E=0,l.isCombined=!1)),u={lines:[],oldStartLine:d,oldStartLine2:g,newStartLine:E,header:_}}function Te(_){if(l===null||u===null||d===null||E===null)return;const D={content:_},j=l.isCombined?["+ "," +","++"]:["+"],se=l.isCombined?["- "," -","--"]:["-"];Mm(_,j)?(l.addedLines++,D.type=Xt.INSERT,D.oldNumber=void 0,D.newNumber=E++):Mm(_,se)?(l.deletedLines++,D.type=Xt.DELETE,D.oldNumber=d++,D.newNumber=void 0):(D.type=Xt.CONTEXT,D.oldNumber=d++,D.newNumber=E++),u.lines.push(D)}function Be(_,D){let j=D;for(;j<Ce.length-3;){if(_.startsWith("diff"))return!1;if(Ce[j].startsWith(b)&&Ce[j+1].startsWith(v)&&Ce[j+2].startsWith(T))return!0;j++}return!1}return Ce.forEach((_,D)=>{if(!_||_.startsWith("*"))return;let j;const se=Ce[D-1],fe=Ce[D+1],xe=Ce[D+2];if(_.startsWith("diff --git")||_.startsWith("diff --combined")){if(te(),(j=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(_))&&(h=Mi(j[1],void 0,i.dstPrefix),m=Mi(j[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isGitDiff=!0;return}if(_.startsWith("Binary files")&&!(l!=null&&l.isGitDiff)){if(te(),(j=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(_))&&(h=Mi(j[1],void 0,i.dstPrefix),m=Mi(j[2],void 0,i.srcPrefix)),l===null)throw new Error("Where is my file !!!");l.isBinary=!0;return}if((!l||!l.isGitDiff&&l&&_.startsWith(b)&&fe.startsWith(v)&&xe.startsWith(T))&&te(),l!=null&&l.isTooBig)return;if(l&&(typeof i.diffMaxChanges=="number"&&l.addedLines+l.deletedLines>i.diffMaxChanges||typeof i.diffMaxLineLength=="number"&&_.length>i.diffMaxLineLength)){l.isTooBig=!0,l.addedLines=0,l.deletedLines=0,l.blocks=[],u=null;const Re=typeof i.diffTooBigMessage=="function"?i.diffTooBigMessage(r.length):"Diff too big to be displayed";ce(Re);return}if(_.startsWith(b)&&fe.startsWith(v)||_.startsWith(v)&&se.startsWith(b)){if(l&&!l.oldName&&_.startsWith("--- ")&&(j=rv(_,i.srcPrefix))){l.oldName=j,l.language=Om(l.oldName,l.language);return}if(l&&!l.newName&&_.startsWith("+++ ")&&(j=ov(_,i.dstPrefix))){l.newName=j,l.language=Om(l.newName,l.language);return}}if(l&&(_.startsWith(T)||l.isGitDiff&&l.oldName&&l.newName&&!u)){ce(_);return}if(u&&(_.startsWith("+")||_.startsWith("-")||_.startsWith(" "))){Te(_);return}const Ee=!Be(_,D);if(l===null)throw new Error("Where is my file !!!");(j=x.exec(_))?l.oldMode=j[1]:(j=N.exec(_))?l.newMode=j[1]:(j=k.exec(_))?(l.deletedFileMode=j[1],l.isDeleted=!0):(j=R.exec(_))?(l.newFileMode=j[1],l.isNew=!0):(j=U.exec(_))?(Ee&&(l.oldName=j[1]),l.isCopy=!0):(j=$.exec(_))?(Ee&&(l.newName=j[1]),l.isCopy=!0):(j=L.exec(_))?(Ee&&(l.oldName=j[1]),l.isRename=!0):(j=le.exec(_))?(Ee&&(l.newName=j[1]),l.isRename=!0):(j=M.exec(_))?(l.isBinary=!0,l.oldName=Mi(j[1],void 0,i.srcPrefix),l.newName=Mi(j[2],void 0,i.dstPrefix),ce("Binary file")):Y.test(_)?(l.isBinary=!0,ce(_)):(j=q.exec(_))?l.unchangedPercentage=parseInt(j[1],10):(j=J.exec(_))?l.changedPercentage=parseInt(j[1],10):(j=ae.exec(_))?(l.checksumBefore=j[1],l.checksumAfter=j[2],j[3]&&(l.mode=j[3])):(j=ee.exec(_))?(l.checksumBefore=[j[2],j[3]],l.checksumAfter=j[1]):(j=Z.exec(_))?(l.oldMode=[j[2],j[3]],l.newMode=j[1]):(j=ue.exec(_))?(l.newFileMode=j[1],l.isNew=!0):(j=Oe.exec(_))&&(l.deletedFileMode=j[1],l.isDeleted=!0)}),ge(),B(),r}class cb{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),E=this.removeEmpty(this.tokenize(d,l)),h=this.removeEmpty(this.tokenize(g,l));return this.diffWithOptionsObj(E,h,l,u)}diffWithOptionsObj(i,r,l,u){var d;const g=$=>{if($=this.postProcess($,l),u){setTimeout(function(){u($)},0);return}else return $},E=r.length,h=i.length;let m=1,b=E+h;l.maxEditLength!=null&&(b=Math.min(b,l.maxEditLength));const v=(d=l.timeout)!==null&&d!==void 0?d:1/0,T=Date.now()+v,x=[{oldPos:-1,lastComponent:void 0}];let N=this.extractCommon(x[0],r,i,0,l);if(x[0].oldPos+1>=h&&N+1>=E)return g(this.buildValues(x[0].lastComponent,r,i));let k=-1/0,R=1/0;const U=()=>{for(let $=Math.max(k,-m);$<=Math.min(R,m);$+=2){let L;const le=x[$-1],q=x[$+1];le&&(x[$-1]=void 0);let J=!1;if(q){const M=q.oldPos-$;J=q&&0<=M&&M<E}const ae=le&&le.oldPos+1<h;if(!J&&!ae){x[$]=void 0;continue}if(!ae||J&&le.oldPos<q.oldPos?L=this.addToPath(q,!0,!1,0,l):L=this.addToPath(le,!1,!0,1,l),N=this.extractCommon(L,r,i,$,l),L.oldPos+1>=h&&N+1>=E)return g(this.buildValues(L.lastComponent,r,i))||!0;x[$]=L,L.oldPos+1>=h&&(R=Math.min(R,$-1)),N+1>=E&&(k=Math.max(k,$+1))}m++};if(u)(function $(){setTimeout(function(){if(m>b||Date.now()>T)return u(void 0);U()||$()},0)})();else for(;m<=b&&Date.now()<=T;){const $=U();if($)return $}}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,E=l.length;let h=i.oldPos,m=h-u,b=0;for(;m+1<g&&h+1<E&&this.equals(l[h+1],r[m+1],d);)m++,h++,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=h,m}equals(i,r,l){return l.comparator?l.comparator(i,r):i===r||!!l.ignoreCase&&i.toLowerCase()===r.toLowerCase()}removeEmpty(i){const r=[];for(let l=0;l<i.length;l++)i[l]&&r.push(i[l]);return r}castInput(i,r){return i}tokenize(i,r){return Array.from(i)}join(i){return i.join("")}postProcess(i,r){return i}get useLongestToken(){return!1}buildValues(i,r,l){const u=[];let d;for(;i;)u.push(i),d=i.previousComponent,delete i.previousComponent,i=d;u.reverse();const g=u.length;let E=0,h=0,m=0;for(;E<g;E++){const b=u[E];if(b.removed)b.value=this.join(l.slice(m,m+b.count)),m+=b.count;else{if(!b.added&&this.useLongestToken){let v=r.slice(h,h+b.count);v=v.map(function(T,x){const N=l[m+x];return N.length>T.length?N:T}),b.value=this.join(v)}else b.value=this.join(r.slice(h,h+b.count));h+=b.count,b.added||(m+=b.count)}}return u}}class uv extends cb{}const fv=new uv;function dv(s,i,r){return fv.diff(s,i,r)}const Cm="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 hv extends cb{tokenize(i){const r=new RegExp(`(\\r?\\n)|[${Cm}]+|[^\\S\\n\\r]+|[^${Cm}]`,"ug");return i.match(r)||[]}}const pv=new hv;function mv(s,i,r){return pv.diff(s,i,r)}function gv(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 xf(s){return(i,r)=>{const l=s(i).trim(),u=s(r).trim();return gv(l,u)/(l.length+u.length)}}function wf(s){function i(l,u,d=new Map){let g=1/0,E;for(let h=0;h<l.length;++h)for(let m=0;m<u.length;++m){const b=JSON.stringify([l[h],u[m]]);let v;d.has(b)&&(v=d.get(b))||(v=s(l[h],u[m]),d.set(b,v)),v<g&&(g=v,E={indexA:h,indexB:m,score:g})}return E}function r(l,u,d=0,g=new Map){const E=i(l,u,g);if(!E||l.length+u.length<3)return[[l,u]];const h=l.slice(0,E.indexA),m=u.slice(0,E.indexB),b=[l[E.indexA]],v=[u[E.indexB]],T=E.indexA+1,x=E.indexB+1,N=l.slice(T),k=u.slice(x),R=r(h,m,d+1,g),U=r(b,v,d+1,g),$=r(N,k,d+1,g);let L=U;return(E.indexA>0||E.indexB>0)&&(L=R.concat(L)),(l.length>T||u.length>x)&&(L=L.concat($)),L}return r}const Rn={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},lo={matching:tv.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:nv.WORD,colorScheme:Bl.LIGHT},Aa="/",ub=xf(s=>s.value),bv=wf(ub);function mu(s){return s.indexOf("dev/null")!==-1}function yv(s){return s.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function Ev(s){return s.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function to(s){switch(s){case Xt.CONTEXT:return Rn.CONTEXT;case Xt.INSERT:return Rn.INSERTS;case Xt.DELETE:return Rn.DELETES}}function Af(s){switch(s){case Bl.DARK:return"d2h-dark-color-scheme";case Bl.AUTO:return"d2h-auto-color-scheme";case Bl.LIGHT:default:return"d2h-light-color-scheme"}}function vv(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=vv(i);return{prefix:s.substring(0,l),content:r?Il(s.substring(l)):s.substring(l)}}function so(s){const i=Rm(s.oldName),r=Rm(s.newName);if(i!==r&&!mu(i)&&!mu(r)){const l=[],u=[],d=i.split(Aa),g=r.split(Aa),E=d.length,h=g.length;let m=0,b=E-1,v=h-1;for(;m<b&&m<v&&d[m]===g[m];)l.push(g[m]),m+=1;for(;b>m&&v>m&&d[b]===g[v];)u.unshift(g[v]),b-=1,v-=1;const T=l.join(Aa),x=u.join(Aa),N=d.slice(m,b+1).join(Aa),k=g.slice(m,v+1).join(Aa);return T.length&&x.length?T+Aa+"{"+N+" → "+k+"}"+Aa+x:T.length?T+Aa+"{"+N+" → "+k+"}":x.length?"{"+N+" → "+k+"}"+Aa+x:i+" → "+r}else return mu(r)?i:r}function Rf(s){return`d2h-${sv(so(s)).toString().slice(-6)}`}function Of(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 fb(s,i,r,l={}){const{matching:u,maxLineLengthHighlight:d,matchWordsThreshold:g,diffStyle:E}=Object.assign(Object.assign({},lo),l),h=Oa(s,r,!1),m=Oa(i,r,!1);if(h.content.length>d||m.content.length>d)return{oldLine:{prefix:h.prefix,content:Il(h.content)},newLine:{prefix:m.prefix,content:Il(m.content)}};const b=E==="char"?dv(h.content,m.content):mv(h.content,m.content),v=[];if(E==="word"&&u==="words"){const x=b.filter(R=>R.removed),N=b.filter(R=>R.added);bv(N,x).forEach(R=>{R[0].length===1&&R[1].length===1&&ub(R[0][0],R[1][0])<g&&(v.push(R[0][0]),v.push(R[1][0]))})}const T=b.reduce((x,N)=>{const k=N.added?"ins":N.removed?"del":null,R=v.indexOf(N)>-1?' class="d2h-change"':"",U=Il(N.value);return k!==null?`${x}<${k}${R}>${U}</${k}>`:`${x}${U}`},"");return{oldLine:{prefix:h.prefix,content:yv(T)},newLine:{prefix:m.prefix,content:Ev(T)}}}const Dm="file-summary",_v="icon",Sv={colorScheme:lo.colorScheme};class Tv{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},Sv),r)}render(i){const r=i.map(l=>this.hoganUtils.render(Dm,"line",{fileHtmlId:Rf(l),oldName:l.oldName,newName:l.newName,fileName:so(l),deletedLines:"-"+l.deletedLines,addedLines:"+"+l.addedLines},{fileIcon:this.hoganUtils.template(_v,Of(l))})).join(`
|
|
52
|
-
`);return this.hoganUtils.render(Dm,"wrapper",{colorScheme:Af(this.config.colorScheme),filesNumber:i.length,files:r})}}const db=Object.assign(Object.assign({},lo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),ks="generic",Lm="line-by-line",Nv="icon",xv="tag";class wv{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},db),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(ks,"wrapper",{colorScheme:Af(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(Lm,"file-diff"),u=this.hoganUtils.template(ks,"file-path"),d=this.hoganUtils.template(Nv,"file"),g=this.hoganUtils.template(xv,Of(i));return l.render({file:i,fileHtmlId:Rf(i),diffs:r,filePath:u.render({fileDiffName:so(i)},{fileIcon:d,fileTag:g})})}generateEmptyDiff(){return this.hoganUtils.render(ks,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Rn})}generateFileHtml(i){const r=wf(xf(l=>Oa(l.content,i.isCombined).content));return i.blocks.map(l=>{let u=this.hoganUtils.render(ks,"block-header",{CSSLineClass:Rn,blockHeader:i.isTooBig?l.header:Il(l.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(l).forEach(([d,g,E])=>{if(g.length&&E.length&&!d.length)this.applyRematchMatching(g,E,r).map(([h,m])=>{const{left:b,right:v}=this.processChangedLines(i,i.isCombined,h,m);u+=b,u+=v});else if(d.length)d.forEach(h=>{const{prefix:m,content:b}=Oa(h.content,i.isCombined);u+=this.generateSingleLineHtml(i,{type:Rn.CONTEXT,prefix:m,content:b,oldNumber:h.oldNumber,newNumber:h.newNumber})});else if(g.length||E.length){const{left:h,right:m}=this.processChangedLines(i,i.isCombined,g,E);u+=h,u+=m}else console.error("Unknown state reached while processing groups of lines",d,g,E)}),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!==Xt.INSERT&&u.length||g.type===Xt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),g.type===Xt.CONTEXT?r.push([[g],[],[]]):g.type===Xt.INSERT&&l.length===0?r.push([[],[],[g]]):g.type===Xt.INSERT&&l.length>0?u.push(g):g.type===Xt.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=ob(i.concat(r).map(E=>E.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 E=0;E<g;E++){const h=l[E],m=u[E],b=h!==void 0&&m!==void 0?fb(h.content,m.content,r,this.config):void 0,v=h!==void 0&&h.oldNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.oldLine.prefix,content:b.oldLine.content,type:Rn.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(h.content,r)),{type:to(h.type)})),{oldNumber:h.oldNumber,newNumber:h.newNumber}):void 0,T=m!==void 0&&m.newNumber!==void 0?Object.assign(Object.assign({},b!==void 0?{prefix:b.newLine.prefix,content:b.newLine.content,type:Rn.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(m.content,r)),{type:to(m.type)})),{oldNumber:m.oldNumber,newNumber:m.newNumber}):void 0,{left:x,right:N}=this.generateLineHtml(i,v,T);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(Lm,"numbers",{oldNumber:r.oldNumber||"",newNumber:r.newNumber||""});return this.hoganUtils.render(ks,"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 hb=Object.assign(Object.assign({},lo),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Cs="generic",Av="side-by-side",Rv="icon",Ov="tag";class Mv{constructor(i,r={}){this.hoganUtils=i,this.config=Object.assign(Object.assign({},hb),r)}render(i){const r=i.map(l=>{let u;return l.blocks.length?u=this.generateFileHtml(l):u=this.generateEmptyDiff(),this.makeFileDiffHtml(l,u)}).join(`
|
|
55
|
-
`);return this.hoganUtils.render(Cs,"wrapper",{colorScheme:Af(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(Av,"file-diff"),u=this.hoganUtils.template(Cs,"file-path"),d=this.hoganUtils.template(Rv,"file"),g=this.hoganUtils.template(Ov,Of(i));return l.render({file:i,fileHtmlId:Rf(i),diffs:r,filePath:u.render({fileDiffName:so(i)},{fileIcon:d,fileTag:g})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Cs,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Rn})}}generateFileHtml(i){const r=wf(xf(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,E])=>{if(g.length&&E.length&&!d.length)this.applyRematchMatching(g,E,r).map(([h,m])=>{const{left:b,right:v}=this.processChangedLines(i.isCombined,h,m);u.left+=b,u.right+=v});else if(d.length)d.forEach(h=>{const{prefix:m,content:b}=Oa(h.content,i.isCombined),{left:v,right:T}=this.generateLineHtml({type:Rn.CONTEXT,prefix:m,content:b,number:h.oldNumber},{type:Rn.CONTEXT,prefix:m,content:b,number:h.newNumber});u.left+=v,u.right+=T});else if(g.length||E.length){const{left:h,right:m}=this.processChangedLines(i.isCombined,g,E);u.left+=h,u.right+=m}else console.error("Unknown state reached while processing groups of lines",d,g,E)}),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!==Xt.INSERT&&u.length||g.type===Xt.CONTEXT&&l.length>0)&&(r.push([[],l,u]),l=[],u=[]),g.type===Xt.CONTEXT?r.push([[g],[],[]]):g.type===Xt.INSERT&&l.length===0?r.push([[],[],[g]]):g.type===Xt.INSERT&&l.length>0?u.push(g):g.type===Xt.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=ob(i.concat(r).map(E=>E.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(Cs,"block-header",{CSSLineClass:Rn,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 E=r[g],h=l[g],m=E!==void 0&&h!==void 0?fb(E.content,h.content,i,this.config):void 0,b=E!==void 0&&E.oldNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.oldLine.prefix,content:m.oldLine.content,type:Rn.DELETE_CHANGES}:Object.assign(Object.assign({},Oa(E.content,i)),{type:to(E.type)})),{number:E.oldNumber}):void 0,v=h!==void 0&&h.newNumber!==void 0?Object.assign(Object.assign({},m!==void 0?{prefix:m.newLine.prefix,content:m.newLine.content,type:Rn.INSERT_CHANGES}:Object.assign(Object.assign({},Oa(h.content,i)),{type:to(h.type)})),{number:h.newNumber}):void 0,{left:T,right:x}=this.generateLineHtml(b,v);u.left+=T,u.right+=x}return u}generateLineHtml(i,r){return{left:this.generateSingleHtml(i),right:this.generateSingleHtml(r)}}generateSingleHtml(i){const r="d2h-code-side-linenumber",l="d2h-code-side-line";return this.hoganUtils.render(Cs,"line",{type:(i==null?void 0:i.type)||`${Rn.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 gu={},zm;function kv(){return zm||(zm=1,(function(s){(function(i){var r=/\S/,l=/\"/g,u=/\n/g,d=/\r/g,g=/\\/g,E=/\u2028/,h=/\u2029/;i.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},i.scan=function(Y,ee){var Z=Y.length,ue=0,Oe=1,Ce=2,ge=ue,B=null,te=null,ce="",Te=[],Be=!1,_=0,D=0,j="{{",se="}}";function fe(){ce.length>0&&(Te.push({tag:"_t",text:new String(ce)}),ce="")}function xe(){for(var ke=!0,He=D;He<Te.length;He++)if(ke=i.tags[Te[He].tag]<i.tags._v||Te[He].tag=="_t"&&Te[He].text.match(r)===null,!ke)return!1;return ke}function Ee(ke,He){if(fe(),ke&&xe())for(var Ze=D,Le;Ze<Te.length;Ze++)Te[Ze].text&&((Le=Te[Ze+1])&&Le.tag==">"&&(Le.indent=Te[Ze].text.toString()),Te.splice(Ze,1));else He||Te.push({tag:`
|
|
56
|
-
`});Be=!1,D=Te.length}function Re(ke,He){var Ze="="+se,Le=ke.indexOf(Ze,He),Nt=b(ke.substring(ke.indexOf("=",He)+1,Le)).split(" ");return j=Nt[0],se=Nt[Nt.length-1],Le+Ze.length-1}for(ee&&(ee=ee.split(" "),j=ee[0],se=ee[1]),_=0;_<Z;_++)ge==ue?v(j,Y,_)?(--_,fe(),ge=Oe):Y.charAt(_)==`
|
|
57
|
-
`?Ee(Be):ce+=Y.charAt(_):ge==Oe?(_+=j.length-1,te=i.tags[Y.charAt(_+1)],B=te?Y.charAt(_+1):"_v",B=="="?(_=Re(Y,_),ge=ue):(te&&_++,ge=Ce),Be=_):v(se,Y,_)?(Te.push({tag:B,n:b(ce),otag:j,ctag:se,i:B=="/"?Be-j.length:_+se.length}),ce="",_+=se.length-1,ge=ue,B=="{"&&(se=="}}"?_++:m(Te[Te.length-1]))):ce+=Y.charAt(_);return Ee(Be,!0),Te};function m(M){M.n.substr(M.n.length-1)==="}"&&(M.n=M.n.substring(0,M.n.length-1))}function b(M){return M.trim?M.trim():M.replace(/^\s*|\s*$/g,"")}function v(M,Y,ee){if(Y.charAt(ee)!=M.charAt(0))return!1;for(var Z=1,ue=M.length;Z<ue;Z++)if(Y.charAt(ee+Z)!=M.charAt(Z))return!1;return!0}var T={_t:!0,"\n":!0,$:!0,"/":!0};function x(M,Y,ee,Z){var ue=[],Oe=null,Ce=null,ge=null;for(Ce=ee[ee.length-1];M.length>0;){if(ge=M.shift(),Ce&&Ce.tag=="<"&&!(ge.tag in T))throw new Error("Illegal content in < super tag.");if(i.tags[ge.tag]<=i.tags.$||N(ge,Z))ee.push(ge),ge.nodes=x(M,ge.tag,ee,Z);else if(ge.tag=="/"){if(ee.length===0)throw new Error("Closing tag without opener: /"+ge.n);if(Oe=ee.pop(),ge.n!=Oe.n&&!k(ge.n,Oe.n,Z))throw new Error("Nesting error: "+Oe.n+" vs. "+ge.n);return Oe.end=ge.i,ue}else ge.tag==`
|
|
58
|
-
`&&(ge.last=M.length==0||M[0].tag==`
|
|
59
|
-
`);ue.push(ge)}if(ee.length>0)throw new Error("missing closing tag: "+ee.pop().n);return ue}function N(M,Y){for(var ee=0,Z=Y.length;ee<Z;ee++)if(Y[ee].o==M.n)return M.tag="#",!0}function k(M,Y,ee){for(var Z=0,ue=ee.length;Z<ue;Z++)if(ee[Z].c==M&&ee[Z].o==Y)return!0}function R(M){var Y=[];for(var ee in M)Y.push('"'+L(ee)+'": function(c,p,t,i) {'+M[ee]+"}");return"{ "+Y.join(",")+" }"}function U(M){var Y=[];for(var ee in M.partials)Y.push('"'+L(ee)+'":{name:"'+L(M.partials[ee].name)+'", '+U(M.partials[ee])+"}");return"partials: {"+Y.join(",")+"}, subs: "+R(M.subs)}i.stringify=function(M,Y,ee){return"{code: function (c,p,i) { "+i.wrapMain(M.code)+" },"+U(M)+"}"};var $=0;i.generate=function(M,Y,ee){$=0;var Z={code:"",subs:{},partials:{}};return i.walk(M,Z),ee.asString?this.stringify(Z,Y,ee):this.makeTemplate(Z,Y,ee)},i.wrapMain=function(M){return'var t=this;t.b(i=i||"");'+M+"return t.fl();"},i.template=i.Template,i.makeTemplate=function(M,Y,ee){var Z=this.makePartials(M);return Z.code=new Function("c","p","i",this.wrapMain(M.code)),new this.template(Z,Y,this,ee)},i.makePartials=function(M){var Y,ee={subs:{},partials:M.partials,name:M.name};for(Y in ee.partials)ee.partials[Y]=this.makePartials(ee.partials[Y]);for(Y in M.subs)ee.subs[Y]=new Function("c","p","t","i",M.subs[Y]);return ee};function L(M){return M.replace(g,"\\\\").replace(l,'\\"').replace(u,"\\n").replace(d,"\\r").replace(E,"\\u2028").replace(h,"\\u2029")}function le(M){return~M.indexOf(".")?"d":"f"}function q(M,Y){var ee="<"+(Y.prefix||""),Z=ee+M.n+$++;return Y.partials[Z]={name:M.n,partials:{}},Y.code+='t.b(t.rp("'+L(Z)+'",c,p,"'+(M.indent||"")+'"));',Z}i.codegen={"#":function(M,Y){Y.code+="if(t.s(t."+le(M.n)+'("'+L(M.n)+'",c,p,1),c,p,0,'+M.i+","+M.end+',"'+M.otag+" "+M.ctag+'")){t.rs(c,p,function(c,p,t){',i.walk(M.nodes,Y),Y.code+="});c.pop();}"},"^":function(M,Y){Y.code+="if(!t.s(t."+le(M.n)+'("'+L(M.n)+'",c,p,1),c,p,1,0,0,"")){',i.walk(M.nodes,Y),Y.code+="};"},">":q,"<":function(M,Y){var ee={partials:{},code:"",subs:{},inPartial:!0};i.walk(M.nodes,ee);var Z=Y.partials[q(M,Y)];Z.subs=ee.subs,Z.partials=ee.partials},$:function(M,Y){var ee={subs:{},code:"",partials:Y.partials,prefix:M.n};i.walk(M.nodes,ee),Y.subs[M.n]=ee.code,Y.inPartial||(Y.code+='t.sub("'+L(M.n)+'",c,p,i);')},"\n":function(M,Y){Y.code+=ae('"\\n"'+(M.last?"":" + i"))},_v:function(M,Y){Y.code+="t.b(t.v(t."+le(M.n)+'("'+L(M.n)+'",c,p,0)));'},_t:function(M,Y){Y.code+=ae('"'+L(M.text)+'"')},"{":J,"&":J};function J(M,Y){Y.code+="t.b(t.t(t."+le(M.n)+'("'+L(M.n)+'",c,p,0)));'}function ae(M){return"t.b("+M+");"}i.walk=function(M,Y){for(var ee,Z=0,ue=M.length;Z<ue;Z++)ee=i.codegen[M[Z].tag],ee&&ee(M[Z],Y);return Y},i.parse=function(M,Y,ee){return ee=ee||{},x(M,"",[],ee.sectionTags||[])},i.cache={},i.cacheKey=function(M,Y){return[M,!!Y.asString,!!Y.disableLambda,Y.delimiters,!!Y.modelGet].join("||")},i.compile=function(M,Y){Y=Y||{};var ee=i.cacheKey(M,Y),Z=this.cache[ee];if(Z){var ue=Z.partials;for(var Oe in ue)delete ue[Oe].instance;return Z}return Z=this.generate(this.parse(this.scan(M,Y.delimiters),M,Y),M,Y),this.cache[ee]=Z}})(s)})(gu)),gu}var bu={},Um;function Cv(){return Um||(Um=1,(function(s){(function(i){i.Template=function(x,N,k,R){x=x||{},this.r=x.code||this.r,this.c=k,this.options=R||{},this.text=N||"",this.partials=x.partials||{},this.subs=x.subs||{},this.buf=""},i.Template.prototype={r:function(x,N,k){return""},v,t:b,render:function(N,k,R){return this.ri([N],k||{},R)},ri:function(x,N,k){return this.r(x,N,k)},ep:function(x,N){var k=this.partials[x],R=N[k.name];if(k.instance&&k.base==R)return k.instance;if(typeof R=="string"){if(!this.c)throw new Error("No compiler available.");R=this.c.compile(R,this.options)}if(!R)return null;if(this.partials[x].base=R,k.subs){N.stackText||(N.stackText={});for(key in k.subs)N.stackText[key]||(N.stackText[key]=this.activeSub!==void 0&&N.stackText[this.activeSub]?N.stackText[this.activeSub]:this.text);R=l(R,k.subs,k.partials,this.stackSubs,this.stackPartials,N.stackText)}return this.partials[x].instance=R,R},rp:function(x,N,k,R){var U=this.ep(x,k);return U?U.ri(N,k,R):""},rs:function(x,N,k){var R=x[x.length-1];if(!T(R)){k(x,N,this);return}for(var U=0;U<R.length;U++)x.push(R[U]),k(x,N,this),x.pop()},s:function(x,N,k,R,U,$,L){var le;return T(x)&&x.length===0?!1:(typeof x=="function"&&(x=this.ms(x,N,k,R,U,$,L)),le=!!x,!R&&le&&N&&N.push(typeof x=="object"?x:N[N.length-1]),le)},d:function(x,N,k,R){var U,$=x.split("."),L=this.f($[0],N,k,R),le=this.options.modelGet,q=null;if(x==="."&&T(N[N.length-2]))L=N[N.length-1];else for(var J=1;J<$.length;J++)U=r($[J],L,le),U!==void 0?(q=L,L=U):L="";return R&&!L?!1:(!R&&typeof L=="function"&&(N.push(q),L=this.mv(L,N,k),N.pop()),L)},f:function(x,N,k,R){for(var U=!1,$=null,L=!1,le=this.options.modelGet,q=N.length-1;q>=0;q--)if($=N[q],U=r(x,$,le),U!==void 0){L=!0;break}return L?(!R&&typeof U=="function"&&(U=this.mv(U,N,k)),U):R?!1:""},ls:function(x,N,k,R,U,$){var L=this.options.delimiters;return this.options.delimiters=$,this.b(this.ct(b(x.call(N,U,k)),N,R)),this.options.delimiters=L,!1},ct:function(x,N,k){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(x,this.options).render(N,k)},b:function(x){this.buf+=x},fl:function(){var x=this.buf;return this.buf="",x},ms:function(x,N,k,R,U,$,L){var le,q=N[N.length-1],J=x.call(q);return typeof J=="function"?R?!0:(le=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(J,q,N,k,le.substring(U,$),L)):J},mv:function(x,N,k){var R=N[N.length-1],U=x.call(R);return typeof U=="function"?this.ct(b(U.call(R)),R,k):U},sub:function(x,N,k,R){var U=this.subs[x];U&&(this.activeSub=x,U(N,k,this,R),this.activeSub=!1)}};function r(x,N,k){var R;return N&&typeof N=="object"&&(N[x]!==void 0?R=N[x]:k&&N.get&&typeof N.get=="function"&&(R=N.get(x))),R}function l(x,N,k,R,U,$){function L(){}L.prototype=x;function le(){}le.prototype=x.subs;var q,J=new L;J.subs=new le,J.subsText={},J.buf="",R=R||{},J.stackSubs=R,J.subsText=$;for(q in N)R[q]||(R[q]=N[q]);for(q in R)J.subs[q]=R[q];U=U||{},J.stackPartials=U;for(q in k)U[q]||(U[q]=k[q]);for(q in U)J.partials[q]=U[q];return J}var u=/&/g,d=/</g,g=/>/g,E=/\'/g,h=/\"/g,m=/[&<>\"\']/;function b(x){return String(x??"")}function v(x){return x=b(x),m.test(x)?x.replace(u,"&").replace(d,"<").replace(g,">").replace(E,"'").replace(h,"""):x}var T=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}})(s)})(bu)),bu}var yu,Bm;function Dv(){if(Bm)return yu;Bm=1;var s=kv();return s.Template=Cv().Template,s.template=s.Template,yu=s,yu}var qt=Dv();const Qt={};Qt["file-summary-line"]=new qt.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:{}});Qt["file-summary-wrapper"]=new qt.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:{}});Qt["generic-block-header"]=new qt.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:{}});Qt["generic-empty-diff"]=new qt.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:{}});Qt["generic-file-path"]=new qt.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:{}});Qt["generic-line"]=new qt.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:{}});Qt["generic-wrapper"]=new qt.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:{}});Qt["icon-file-added"]=new qt.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:{}});Qt["icon-file-changed"]=new qt.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:{}});Qt["icon-file-deleted"]=new qt.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:{}});Qt["icon-file-renamed"]=new qt.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:{}});Qt["icon-file"]=new qt.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:{}});Qt["line-by-line-file-diff"]=new qt.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:{}});Qt["line-by-line-numbers"]=new qt.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:{}});Qt["side-by-side-file-diff"]=new qt.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:{}});Qt["tag-file-added"]=new qt.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:{}});Qt["tag-file-changed"]=new qt.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:{}});Qt["tag-file-deleted"]=new qt.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:{}});Qt["tag-file-renamed"]=new qt.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 Lv{constructor({compiledTemplates:i={},rawTemplates:r={}}){const l=Object.entries(r).reduce((u,[d,g])=>{const E=qt.compile(g,{asString:!1});return Object.assign(Object.assign({},u),{[d]:E})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Qt),i),l)}static compile(i){return qt.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 zv=Object.assign(Object.assign(Object.assign({},db),hb),{outputFormat:ev.LINE_BY_LINE,drawFileList:!0});function Uv(s,i={}){const r=Object.assign(Object.assign({},zv),i),l=typeof s=="string"?cv(s,r):s,u=new Lv(r),{colorScheme:d}=r,g={colorScheme:d},E=r.drawFileList?new Tv(u,g).render(l):"",h=r.outputFormat==="side-by-side"?new Mv(u,r).render(l):new wv(u,r).render(l);return E+h}var Bv=rb();function Mf(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 E=g.match(/^diff --git a\/(.+?) b\/(.+)$/);u=E?E[2]:g.slice(11)}else if(l&&(l.push(g),g.startsWith("--- a/")&&u==="/dev/null"&&(u=g.slice(6)),g==="+++ /dev/null")){const E=l.find(h=>h.startsWith("--- a/"));E&&(u=E.slice(6))}return d(),i}function Iv(s,i){const r=new Set(i);return Mf(s).filter(l=>r.has(l.path)).map(l=>l.patch).join(`
|
|
162
|
-
`)}function jv(s){const i=new Map;for(const{path:r,patch:l}of Mf(s)){const u=new Map;let d=0,g=!1;const E=l.split(`
|
|
163
|
-
`);for(let h=0;h<E.length;h++){const m=E[h],b=m.match(/^@@ -\d+(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(b){d=Number(b[1]),g=!0;continue}g&&(m===""&&h===E.length-1||m.startsWith("\\")||(m.startsWith("+")||m.startsWith(" ")||m==="")&&(u.set(d,m===""?"":m.slice(1)),d++))}i.set(r,u)}return i}function Hv(s){const i=new Map;for(const[r,l]of jv(s))i.set(r,new Set(l.keys()));return i}function qv(s,i){const r=new Set(i.flatMap(l=>l.files));return Mf(s).map(l=>l.path).filter(l=>!r.has(l))}const pb={blocker:"🚨",minor:"⚠️",nit:"🎨"};function Gv(s,i){return i?`${pb[i]} **${i}** — ${s}`:s}async function un(s,i){const r=await fetch(s,{...i,headers:i!=null&&i.body?{"Content-Type":"application/json"}:void 0});if(!r.ok){let l=`${(i==null?void 0:i.method)??"GET"} ${s}: ${r.status}`;try{const u=await r.json();u.error&&(l=u.error)}catch{}throw new Error(l)}return r.json()}const kf=()=>un("/api/reviews"),$v=()=>un("/api/daemon"),Im=s=>un(`/api/reviews/${encodeURIComponent(s)}`),hf=(s,i)=>un(`/api/reviews/${encodeURIComponent(s)}`,{method:"PATCH",body:JSON.stringify(i)}),Yv=(s,i,r)=>un(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"PATCH",body:JSON.stringify(r)}),Fv=(s,i)=>un(`/api/reviews/${encodeURIComponent(s)}/comments`,{method:"POST",body:JSON.stringify(i)}),Kv=(s,i)=>un(`/api/reviews/${encodeURIComponent(s)}/comments/${i}`,{method:"DELETE"}),Zv=s=>un("/api/reviews",{method:"POST",body:JSON.stringify({input:s})}),Xv=s=>un(`/api/reviews/${encodeURIComponent(s)}/refresh`,{method:"POST"}),mb=(s,i)=>un(`/api/reviews/${encodeURIComponent(s)}/rerun`+(i===void 0?"":`?source=${i?"1":"0"}`),{method:"POST"}),gb=(s,i)=>un(`/api/reviews/${encodeURIComponent(s)}/chat`,{method:"POST",body:JSON.stringify(i)}),Pv=s=>un(`/api/reviews/${encodeURIComponent(s)}/chat/pending`,{method:"DELETE"}),Qv=s=>un(`/api/reviews/${encodeURIComponent(s)}/chat/reset`,{method:"POST",body:JSON.stringify({})}),Vv=(s,i)=>un(`/api/reviews/${encodeURIComponent(s)}/send-preview?event=${i}`),Jv=(s,i)=>un(`/api/reviews/${encodeURIComponent(s)}/send`,{method:"POST",body:JSON.stringify({event:i,confirm:!0})}),Wv=s=>`/api/reviews/${encodeURIComponent(s)}/export`,e_=()=>un("/api/config"),Eu=(s,i=!1)=>un("/api/config/trust",{method:"POST",body:JSON.stringify({rule:s,remove:i})}),jm=s=>un("/api/config/daemon",{method:"POST",body:JSON.stringify(s)});function vu(s){return s.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function pf(s){return s.nodeName.toLowerCase()}function Hm(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),pf(d).match(/br|hr|img|input/)||i.push({event:"stop",offset:u,node:d}));return u};return r(s,0),i}function t_(s,i,r){let l=0,u="";const d=[];function g(v){return v!==null&&(v==null?void 0:v.attributes)!==void 0}function E(){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 h(v){if(!g(v))throw new Error("Node is not an Element");u+=`<${pf(v)} ${Array().map.call(v.attributes,T=>`${T.nodeName}="${vu(T.value).replace(/"/g,""")}"`).join(" ")}>`}function m(v){u+="</"+pf(v)+">"}function b(v){(v.event==="start"?h:m)(v.node)}for(;s.length||i.length;){let v=E();if(u+=vu(r.substring(l,v[0].offset)),l=v[0].offset,v===s){d.reverse().forEach(m);do b(v.splice(0,1)[0]),v=E();while(v===s&&v.length&&v[0].offset===l);d.reverse().forEach(h)}else v[0].event==="start"?d.push(v[0].node):d.pop(),b(v.splice(0,1)[0])}return u+vu(r.substr(l))}const n_={"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 a_(s){var i;return(i=n_[s])!==null&&i!==void 0?i:"plaintext"}var _u,qm;function i_(){if(qm)return _u;qm=1;function s(A){return A instanceof Map?A.clear=A.delete=A.set=function(){throw new Error("map is read-only")}:A instanceof Set&&(A.add=A.clear=A.delete=function(){throw new Error("set is read-only")}),Object.freeze(A),Object.getOwnPropertyNames(A).forEach(Q=>{const de=A[Q],De=typeof de;(De==="object"||De==="function")&&!Object.isFrozen(de)&&s(de)}),A}class i{constructor(Q){Q.data===void 0&&(Q.data={}),this.data=Q.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(A,...Q){const de=Object.create(null);for(const De in A)de[De]=A[De];return Q.forEach(function(De){for(const Je in De)de[Je]=De[Je]}),de}const u="</span>",d=A=>!!A.scope,g=(A,{prefix:Q})=>{if(A.startsWith("language:"))return A.replace("language:","language-");if(A.includes(".")){const de=A.split(".");return[`${Q}${de.shift()}`,...de.map((De,Je)=>`${De}${"_".repeat(Je+1)}`)].join(" ")}return`${Q}${A}`};class E{constructor(Q,de){this.buffer="",this.classPrefix=de.classPrefix,Q.walk(this)}addText(Q){this.buffer+=r(Q)}openNode(Q){if(!d(Q))return;const de=g(Q.scope,{prefix:this.classPrefix});this.span(de)}closeNode(Q){d(Q)&&(this.buffer+=u)}value(){return this.buffer}span(Q){this.buffer+=`<span class="${Q}">`}}const h=(A={})=>{const Q={children:[]};return Object.assign(Q,A),Q};class m{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Q){this.top.children.push(Q)}openNode(Q){const de=h({scope:Q});this.add(de),this.stack.push(de)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Q){return this.constructor._walk(Q,this.rootNode)}static _walk(Q,de){return typeof de=="string"?Q.addText(de):de.children&&(Q.openNode(de),de.children.forEach(De=>this._walk(Q,De)),Q.closeNode(de)),Q}static _collapse(Q){typeof Q!="string"&&Q.children&&(Q.children.every(de=>typeof de=="string")?Q.children=[Q.children.join("")]:Q.children.forEach(de=>{m._collapse(de)}))}}class b extends m{constructor(Q){super(),this.options=Q}addText(Q){Q!==""&&this.add(Q)}startScope(Q){this.openNode(Q)}endScope(){this.closeNode()}__addSublanguage(Q,de){const De=Q.root;de&&(De.scope=`language:${de}`),this.add(De)}toHTML(){return new E(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(A){return A?typeof A=="string"?A:A.source:null}function T(A){return k("(?=",A,")")}function x(A){return k("(?:",A,")*")}function N(A){return k("(?:",A,")?")}function k(...A){return A.map(de=>v(de)).join("")}function R(A){const Q=A[A.length-1];return typeof Q=="object"&&Q.constructor===Object?(A.splice(A.length-1,1),Q):{}}function U(...A){return"("+(R(A).capture?"":"?:")+A.map(De=>v(De)).join("|")+")"}function $(A){return new RegExp(A.toString()+"|").exec("").length-1}function L(A,Q){const de=A&&A.exec(Q);return de&&de.index===0}const le=new RegExp(U(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function q(A,{joinWith:Q}){let de=0;return A.map(De=>{de+=1;const Je=de;let it=v(De),ve="";for(;it.length>0;){const me=le.exec(it);if(!me){ve+=it;break}ve+=it.substring(0,me.index),it=it.substring(me.index+me[0].length),me[0][0]==="\\"&&me[1]?ve+="\\"+String(Number(me[1])+Je):(ve+=me[0],(me[0]==="("||/^\(\?[<']/.test(me[0]))&&de++)}return ve}).map(De=>`(${De})`).join(Q)}const J=/\b\B/,ae="[a-zA-Z]\\w*",M="[a-zA-Z_]\\w*",Y="\\b\\d+(\\.\\d+)?",ee="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Z="\\b(0b[01]+)",ue="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Oe=(A={})=>{const Q=/^#![ ]*\//;return A.binary&&(A.begin=k(Q,/.*\b/,A.binary,/\b.*/)),l({scope:"meta",begin:Q,end:/$/,relevance:0,"on:begin":(de,De)=>{de.index!==0&&De.ignoreMatch()}},A)},Ce={begin:"\\\\[\\s\\S]",relevance:0},ge={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ce]},B={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ce]},te={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ce=function(A,Q,de={}){const De=l({scope:"comment",begin:A,end:Q,contains:[]},de);De.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 Je=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 De.contains.push({begin:k(/[ ]+/,"(",Je,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),De},Te=ce("//","$"),Be=ce("/\\*","\\*/"),_=ce("#","$"),D={scope:"number",begin:Y,relevance:0},j={scope:"number",begin:ee,relevance:0},se={scope:"number",begin:Z,relevance:0},fe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ce,{begin:/\[/,end:/\]/,relevance:0,contains:[Ce]}]},xe={scope:"title",begin:ae,relevance:0},Ee={scope:"title",begin:M,relevance:0},Re={begin:"\\.\\s*"+M,relevance:0};var He=Object.freeze({__proto__:null,APOS_STRING_MODE:ge,BACKSLASH_ESCAPE:Ce,BINARY_NUMBER_MODE:se,BINARY_NUMBER_RE:Z,COMMENT:ce,C_BLOCK_COMMENT_MODE:Be,C_LINE_COMMENT_MODE:Te,C_NUMBER_MODE:j,C_NUMBER_RE:ee,END_SAME_AS_BEGIN:function(A){return Object.assign(A,{"on:begin":(Q,de)=>{de.data._beginMatch=Q[1]},"on:end":(Q,de)=>{de.data._beginMatch!==Q[1]&&de.ignoreMatch()}})},HASH_COMMENT_MODE:_,IDENT_RE:ae,MATCH_NOTHING_RE:J,METHOD_GUARD:Re,NUMBER_MODE:D,NUMBER_RE:Y,PHRASAL_WORDS_MODE:te,QUOTE_STRING_MODE:B,REGEXP_MODE:fe,RE_STARTERS_RE:ue,SHEBANG:Oe,TITLE_MODE:xe,UNDERSCORE_IDENT_RE:M,UNDERSCORE_TITLE_MODE:Ee});function Ze(A,Q){A.input[A.index-1]==="."&&Q.ignoreMatch()}function Le(A,Q){A.className!==void 0&&(A.scope=A.className,delete A.className)}function Nt(A,Q){Q&&A.beginKeywords&&(A.begin="\\b("+A.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",A.__beforeBegin=Ze,A.keywords=A.keywords||A.beginKeywords,delete A.beginKeywords,A.relevance===void 0&&(A.relevance=0))}function Fe(A,Q){Array.isArray(A.illegal)&&(A.illegal=U(...A.illegal))}function On(A,Q){if(A.match){if(A.begin||A.end)throw new Error("begin & end are not supported with match");A.begin=A.match,delete A.match}}function tt(A,Q){A.relevance===void 0&&(A.relevance=1)}const tn=(A,Q)=>{if(!A.beforeMatch)return;if(A.starts)throw new Error("beforeMatch cannot be used with starts");const de=Object.assign({},A);Object.keys(A).forEach(De=>{delete A[De]}),A.keywords=de.keywords,A.begin=k(de.beforeMatch,T(de.begin)),A.starts={relevance:0,contains:[Object.assign(de,{endsParent:!0})]},A.relevance=0,delete de.beforeMatch},Hn=["of","and","for","in","not","or","if","then","parent","list","value"],Vt="keyword";function Mn(A,Q,de=Vt){const De=Object.create(null);return typeof A=="string"?Je(de,A.split(" ")):Array.isArray(A)?Je(de,A):Object.keys(A).forEach(function(it){Object.assign(De,Mn(A[it],Q,it))}),De;function Je(it,ve){Q&&(ve=ve.map(me=>me.toLowerCase())),ve.forEach(function(me){const ze=me.split("|");De[ze[0]]=[it,xn(ze[0],ze[1])]})}}function xn(A,Q){return Q?Number(Q):oa(A)?0:1}function oa(A){return Hn.includes(A.toLowerCase())}const ca={},at=A=>{console.error(A)},Bt=(A,...Q)=>{console.log(`WARN: ${A}`,...Q)},yt=(A,Q)=>{ca[`${A}/${Q}`]||(console.log(`Deprecated as of ${A}. ${Q}`),ca[`${A}/${Q}`]=!0)},nn=new Error;function fn(A,Q,{key:de}){let De=0;const Je=A[de],it={},ve={};for(let me=1;me<=Q.length;me++)ve[me+De]=Je[me],it[me+De]=!0,De+=$(Q[me-1]);A[de]=ve,A[de]._emit=it,A[de]._multi=!0}function kn(A){if(Array.isArray(A.begin)){if(A.skip||A.excludeBegin||A.returnBegin)throw at("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),nn;if(typeof A.beginScope!="object"||A.beginScope===null)throw at("beginScope must be object"),nn;fn(A,A.begin,{key:"beginScope"}),A.begin=q(A.begin,{joinWith:""})}}function Cn(A){if(Array.isArray(A.end)){if(A.skip||A.excludeEnd||A.returnEnd)throw at("skip, excludeEnd, returnEnd not compatible with endScope: {}"),nn;if(typeof A.endScope!="object"||A.endScope===null)throw at("endScope must be object"),nn;fn(A,A.end,{key:"endScope"}),A.end=q(A.end,{joinWith:""})}}function Dn(A){A.scope&&typeof A.scope=="object"&&A.scope!==null&&(A.beginScope=A.scope,delete A.scope)}function qn(A){Dn(A),typeof A.beginScope=="string"&&(A.beginScope={_wrap:A.beginScope}),typeof A.endScope=="string"&&(A.endScope={_wrap:A.endScope}),kn(A),Cn(A)}function dn(A){function Q(ve,me){return new RegExp(v(ve),"m"+(A.case_insensitive?"i":"")+(A.unicodeRegex?"u":"")+(me?"g":""))}class de{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(me,ze){ze.position=this.position++,this.matchIndexes[this.matchAt]=ze,this.regexes.push([ze,me]),this.matchAt+=$(me)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const me=this.regexes.map(ze=>ze[1]);this.matcherRe=Q(q(me,{joinWith:"|"}),!0),this.lastIndex=0}exec(me){this.matcherRe.lastIndex=this.lastIndex;const ze=this.matcherRe.exec(me);if(!ze)return null;const Mt=ze.findIndex((Vn,ya)=>ya>0&&Vn!==void 0),Et=this.matchIndexes[Mt];return ze.splice(0,Mt),Object.assign(ze,Et)}}class De{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(me){if(this.multiRegexes[me])return this.multiRegexes[me];const ze=new de;return this.rules.slice(me).forEach(([Mt,Et])=>ze.addRule(Mt,Et)),ze.compile(),this.multiRegexes[me]=ze,ze}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(me,ze){this.rules.push([me,ze]),ze.type==="begin"&&this.count++}exec(me){const ze=this.getMatcher(this.regexIndex);ze.lastIndex=this.lastIndex;let Mt=ze.exec(me);if(this.resumingScanAtSamePosition()&&!(Mt&&Mt.index===this.lastIndex)){const Et=this.getMatcher(0);Et.lastIndex=this.lastIndex+1,Mt=Et.exec(me)}return Mt&&(this.regexIndex+=Mt.position+1,this.regexIndex===this.count&&this.considerAll()),Mt}}function Je(ve){const me=new De;return ve.contains.forEach(ze=>me.addRule(ze.begin,{rule:ze,type:"begin"})),ve.terminatorEnd&&me.addRule(ve.terminatorEnd,{type:"end"}),ve.illegal&&me.addRule(ve.illegal,{type:"illegal"}),me}function it(ve,me){const ze=ve;if(ve.isCompiled)return ze;[Le,On,qn,tn].forEach(Et=>Et(ve,me)),A.compilerExtensions.forEach(Et=>Et(ve,me)),ve.__beforeBegin=null,[Nt,Fe,tt].forEach(Et=>Et(ve,me)),ve.isCompiled=!0;let Mt=null;return typeof ve.keywords=="object"&&ve.keywords.$pattern&&(ve.keywords=Object.assign({},ve.keywords),Mt=ve.keywords.$pattern,delete ve.keywords.$pattern),Mt=Mt||/\w+/,ve.keywords&&(ve.keywords=Mn(ve.keywords,A.case_insensitive)),ze.keywordPatternRe=Q(Mt,!0),me&&(ve.begin||(ve.begin=/\B|\b/),ze.beginRe=Q(ze.begin),!ve.end&&!ve.endsWithParent&&(ve.end=/\B|\b/),ve.end&&(ze.endRe=Q(ze.end)),ze.terminatorEnd=v(ze.end)||"",ve.endsWithParent&&me.terminatorEnd&&(ze.terminatorEnd+=(ve.end?"|":"")+me.terminatorEnd)),ve.illegal&&(ze.illegalRe=Q(ve.illegal)),ve.contains||(ve.contains=[]),ve.contains=[].concat(...ve.contains.map(function(Et){return an(Et==="self"?ve:Et)})),ve.contains.forEach(function(Et){it(Et,ze)}),ve.starts&&it(ve.starts,me),ze.matcher=Je(ze),ze}if(A.compilerExtensions||(A.compilerExtensions=[]),A.contains&&A.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return A.classNameAliases=l(A.classNameAliases||{}),it(A)}function Ot(A){return A?A.endsWithParent||Ot(A.starts):!1}function an(A){return A.variants&&!A.cachedVariants&&(A.cachedVariants=A.variants.map(function(Q){return l(A,{variants:null},Q)})),A.cachedVariants?A.cachedVariants:Ot(A)?l(A,{starts:A.starts?l(A.starts):null}):Object.isFrozen(A)?l(A):A}var Dt="11.12.0";class Qn extends Error{constructor(Q,de){super(Q),this.name="HTMLInjectionError",this.html=de}}const ie=r,be=l,oe=Symbol("nomatch"),ht=7,Jt=function(A){const Q=Object.create(null),de=Object.create(null),De=[];let Je=!0;const it="Could not find the language '{}', did you forget to load/include a language module?",ve={disableAutodetect:!0,name:"Plain text",contains:[]};let me={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(re){return me.noHighlightRe.test(re)}function Mt(re){let we=re.className+" ";we+=re.parentNode?re.parentNode.className:"";const Ge=me.languageDetectRe.exec(we);if(Ge){const rt=hn(Ge[1]);return rt||(Bt(it.replace("{}",Ge[1])),Bt("Falling back to no-highlight mode for this block.",re)),rt?Ge[1]:"no-highlight"}return we.split(/\s+/).find(rt=>ze(rt)||hn(rt))}function Et(re,we,Ge){let rt="",wt="";typeof we=="object"?(rt=re,Ge=we.ignoreIllegals,wt=we.language):(yt("10.7.0","highlight(lang, code, ...args) has been deprecated."),yt("10.7.0",`Please use highlight(code, options) instead.
|
|
164
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),wt=re,rt=we),Ge===void 0&&(Ge=!0);const Gt={code:rt,language:wt};wn("before:highlight",Gt);const sn=Gt.result?Gt.result:Vn(Gt.language,Gt.code,Ge);return sn.code=Gt.code,wn("after:highlight",sn),sn}function Vn(re,we,Ge,rt){const wt=Object.create(null);function Gt(ne,pe){return ne.keywords[pe]}function sn(){if(!K.keywords){C.addText(X);return}let ne=0;K.keywordPatternRe.lastIndex=0;let pe=K.keywordPatternRe.exec(X),Ae="";for(;pe;){Ae+=X.substring(ne,pe.index);const Ye=$t.case_insensitive?pe[0].toLowerCase():pe[0],Ke=Gt(K,Ye);if(Ke){const[Wn,ql]=Ke;if(C.addText(Ae),Ae="",wt[Ye]=(wt[Ye]||0)+1,wt[Ye]<=ht&&(ye+=ql),Wn.startsWith("_"))Ae+=pe[0];else{const qs=$t.classNameAliases[Wn]||Wn;kt(pe[0],qs)}}else Ae+=pe[0];ne=K.keywordPatternRe.lastIndex,pe=K.keywordPatternRe.exec(X)}Ae+=X.substring(ne),C.addText(Ae)}function It(){if(X==="")return;let ne=null;if(typeof K.subLanguage=="string"){if(!Q[K.subLanguage]){C.addText(X);return}ne=Vn(K.subLanguage,X,!0,S[K.subLanguage]),S[K.subLanguage]=ne._top}else ne=Ja(X,K.subLanguage.length?K.subLanguage:null);K.relevance>0&&(ye+=ne.relevance),C.__addSublanguage(ne._emitter,ne.language)}function ot(){K.subLanguage!=null?It():sn(),X=""}function kt(ne,pe){ne!==""&&(C.startScope(pe),C.addText(ne),C.endScope())}function tl(ne,pe){let Ae=1;const Ye=pe.length-1;for(;Ae<=Ye;){if(!ne._emit[Ae]){Ae++;continue}const Ke=$t.classNameAliases[ne[Ae]]||ne[Ae],Wn=pe[Ae];Ke?kt(Wn,Ke):(X=Wn,sn(),X=""),Ae++}}function ti(ne,pe){return ne.scope&&typeof ne.scope=="string"&&C.openNode($t.classNameAliases[ne.scope]||ne.scope),ne.beginScope&&(ne.beginScope._wrap?(kt(X,$t.classNameAliases[ne.beginScope._wrap]||ne.beginScope._wrap),X=""):ne.beginScope._multi&&(tl(ne.beginScope,pe),X="")),K=Object.create(ne,{parent:{value:K}}),K}function ni(ne,pe,Ae){let Ye=L(ne.endRe,Ae);if(Ye){if(ne["on:end"]){const Ke=new i(ne);ne["on:end"](pe,Ke),Ke.isMatchIgnored&&(Ye=!1)}if(Ye){for(;ne.endsParent&&ne.parent;)ne=ne.parent;return ne}}if(ne.endsWithParent)return ni(ne.parent,pe,Ae)}function Ca(ne){return K.matcher.regexIndex===0?(X+=ne[0],1):(Xe=!0,0)}function nl(ne){const pe=ne[0],Ae=ne.rule,Ye=new i(Ae),Ke=[Ae.__beforeBegin,Ae["on:begin"]];for(const Wn of Ke)if(Wn&&(Wn(ne,Ye),Ye.isMatchIgnored))return Ca(pe);return Ae.skip?X+=pe:(Ae.excludeBegin&&(X+=pe),ot(),!Ae.returnBegin&&!Ae.excludeBegin&&(X=pe)),ti(Ae,ne),Ae.returnBegin?0:pe.length}function _n(ne){const pe=ne[0],Ae=we.substring(ne.index),Ye=ni(K,ne,Ae);if(!Ye)return oe;const Ke=K;K.endScope&&K.endScope._wrap?(ot(),kt(pe,K.endScope._wrap)):K.endScope&&K.endScope._multi?(ot(),tl(K.endScope,ne)):Ke.skip?X+=pe:(Ke.returnEnd||Ke.excludeEnd||(X+=pe),ot(),Ke.excludeEnd&&(X=pe));do K.scope&&C.closeNode(),!K.skip&&!K.subLanguage&&(ye+=K.relevance),K=K.parent;while(K!==Ye.parent);return Ye.starts&&ti(Ye.starts,ne),Ke.returnEnd?0:pe.length}function ai(){const ne=[];for(let pe=K;pe!==$t;pe=pe.parent)pe.scope&&ne.unshift(pe.scope);ne.forEach(pe=>C.openNode(pe))}let Da={};function ii(ne,pe){const Ae=pe&&pe[0];if(X+=ne,Ae==null)return ot(),0;if(Da.type==="begin"&&pe.type==="end"&&Da.index===pe.index&&Ae===""){if(X+=we.slice(pe.index,pe.index+1),!Je){const Ye=new Error(`0 width match regex (${re})`);throw Ye.languageName=re,Ye.badRule=Da.rule,Ye}return 1}if(Da=pe,pe.type==="begin")return nl(pe);if(pe.type==="illegal"&&!Ge){const Ye=new Error('Illegal lexeme "'+Ae+'" for mode "'+(K.scope||"<unnamed>")+'"');throw Ye.mode=K,Ye}else if(pe.type==="end"){const Ye=_n(pe);if(Ye!==oe)return Ye}if(pe.type==="illegal"&&Ae==="")return pe.index===we.length||(X+=`
|
|
165
|
-
`),1;if(Ie>1e5&&Ie>pe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=Ae,Ae.length}const $t=hn(re);if(!$t)throw at(it.replace("{}",re)),new Error('Unknown language: "'+re+'"');const La=dn($t);let Sa="",K=rt||La;const S={},C=new me.__emitter(me);ai();let X="",ye=0,Se=0,Ie=0,Xe=!1;try{if($t.__emitTokens)$t.__emitTokens(we,C);else{for(K.matcher.considerAll();;){Ie++,Xe?Xe=!1:K.matcher.considerAll(),K.matcher.lastIndex=Se;const ne=K.matcher.exec(we);if(!ne)break;const pe=we.substring(Se,ne.index),Ae=ii(pe,ne);Se=ne.index+Ae}ii(we.substring(Se))}return C.finalize(),Sa=C.toHTML(),{language:re,value:Sa,relevance:ye,illegal:!1,_emitter:C,_top:K}}catch(ne){if(ne.message&&ne.message.includes("Illegal"))return{language:re,value:ie(we),illegal:!0,relevance:0,_illegalBy:{message:ne.message,index:Se,context:we.slice(Se-100,Se+100),mode:ne.mode,resultSoFar:Sa},_emitter:C};if(Je)return{language:re,value:ie(we),illegal:!1,relevance:0,errorRaised:ne,_emitter:C,_top:K};throw ne}}function ya(re){const we={value:ie(re),illegal:!1,relevance:0,_top:ve,_emitter:new me.__emitter(me)};return we._emitter.addText(re),we}function Ja(re,we){we=we||me.languages||Object.keys(Q);const Ge=ya(re),rt=we.filter(hn).filter(va).map(ot=>Vn(ot,re,!1));rt.unshift(Ge);const wt=rt.sort((ot,kt)=>{if(ot.relevance!==kt.relevance)return kt.relevance-ot.relevance;if(ot.language&&kt.language){if(hn(ot.language).supersetOf===kt.language)return 1;if(hn(kt.language).supersetOf===ot.language)return-1}return 0}),[Gt,sn]=wt,It=Gt;return It.secondBest=sn,It}function vn(re,we,Ge){const rt=we&&de[we]||Ge;re.classList.add("hljs"),re.classList.add(`language-${rt}`)}function Lt(re){let we=null;const Ge=Mt(re);if(ze(Ge))return;if(wn("before:highlightElement",{el:re,language:Ge}),re.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",re);return}if(re.children.length>0&&(me.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(re)),me.throwUnescapedHTML))throw new Qn("One of your code blocks includes unescaped HTML.",re.innerHTML);we=re;const rt=we.textContent,wt=Ge?Et(rt,{language:Ge,ignoreIllegals:!0}):Ja(rt);re.innerHTML=wt.value,re.dataset.highlighted="yes",vn(re,Ge,wt.language),re.result={language:wt.language,re:wt.relevance,relevance:wt.relevance},wt.secondBest&&(re.secondBest={language:wt.secondBest.language,relevance:wt.secondBest.relevance}),wn("after:highlightElement",{el:re,result:wt,text:rt})}function ln(re){me=be(me,re)}const st=()=>{Ma(),yt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Jn(){Ma(),yt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let el=!1;function Ma(){function re(){Ma()}if(document.readyState==="loading"){el||window.addEventListener("DOMContentLoaded",re,!1),el=!0;return}document.querySelectorAll(me.cssSelector).forEach(Lt)}function Wa(re,we){let Ge=null;try{Ge=we(A)}catch(rt){if(at("Language definition for '{}' could not be registered.".replace("{}",re)),Je)at(rt);else throw rt;Ge=ve}Ge.name||(Ge.name=re),Q[re]=Ge,Ge.rawDefinition=we.bind(null,A),Ge.aliases&&ua(Ge.aliases,{languageName:re})}function Ea(re){delete Q[re];for(const we of Object.keys(de))de[we]===re&&delete de[we]}function ei(){return Object.keys(Q)}function hn(re){return re=(re||"").toLowerCase(),Q[re]||Q[de[re]]}function ua(re,{languageName:we}){typeof re=="string"&&(re=[re]),re.forEach(Ge=>{de[Ge.toLowerCase()]=we})}function va(re){const we=hn(re);return we&&!we.disableAutodetect}function _a(re){re["before:highlightBlock"]&&!re["before:highlightElement"]&&(re["before:highlightElement"]=we=>{re["before:highlightBlock"](Object.assign({block:we.el},we))}),re["after:highlightBlock"]&&!re["after:highlightElement"]&&(re["after:highlightElement"]=we=>{re["after:highlightBlock"](Object.assign({block:we.el},we))})}function pt(re){_a(re),De.push(re)}function ka(re){const we=De.indexOf(re);we!==-1&&De.splice(we,1)}function wn(re,we){const Ge=re;De.forEach(function(rt){rt[Ge]&&rt[Ge](we)})}function fa(re){return yt("10.7.0","highlightBlock will be removed entirely in v12.0"),yt("10.7.0","Please use highlightElement now."),Lt(re)}Object.assign(A,{highlight:Et,highlightAuto:Ja,highlightAll:Ma,highlightElement:Lt,highlightBlock:fa,configure:ln,initHighlighting:st,initHighlightingOnLoad:Jn,registerLanguage:Wa,unregisterLanguage:Ea,listLanguages:ei,getLanguage:hn,registerAliases:ua,autoDetection:va,inherit:be,addPlugin:pt,removePlugin:ka}),A.debugMode=function(){Je=!1},A.safeMode=function(){Je=!0},A.versionString=Dt,A.regex={concat:k,lookahead:T,either:U,optional:N,anyNumberOfTimes:x};for(const re in He)typeof He[re]=="object"&&s(He[re]);return Object.assign(A,He),A},Wt=Jt({});return Wt.newInstance=()=>Jt({}),_u=Wt,Wt.HighlightJS=Wt,Wt.default=Wt,_u}var Su,Gm;function l_(){if(Gm)return Su;Gm=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/}]},E=i.inherit(g,{begin:/\(/,end:/\)/}),h=i.inherit(i.APOS_STRING_MODE,{className:"string"}),m=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),b={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[d]},{begin:/'/,end:/'/,contains:[d]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[g,m,h,E,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[g,E,m,h]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},d,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[b],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[b],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(l,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:b}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Su=s,Su}var Tu,$m;function s_(){if($m)return Tu;$m=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"}}),E={begin:/<<-?\s*(?=\w+)/,starts:{contains:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},h={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,l,d]};d.contains.push(h);const m={match:/\\"/},b={className:"string",begin:/'/,end:/'/},v={match:/\\'/},T={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}),k={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[i.inherit(i.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},R=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],U=["true","false"],$={match:/(\/[a-z._-]+)+/},L=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],le=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],q=["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"],J=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:R,literal:U,built_in:[...L,...le,"set","shopt",...q,...J]},contains:[N,i.SHEBANG(),k,T,g,E,$,h,m,b,v,l]}}return Tu=s,Tu}var Nu,Ym;function r_(){if(Ym)return Nu;Ym=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",E="("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",h=r.concat(/\batomic_/,r.either("bool","char","schar","uchar","short","ushort","int","uint","long","ulong","llong","ullong","char16_t","char32_t","wchar_t","int_least8_t","uint_least8_t","int_least16_t","uint_least16_t","int_least32_t","uint_least32_t","int_least64_t","uint_least64_t","int_fast8_t","uint_fast8_t","int_fast16_t","uint_fast16_t","int_fast32_t","uint_fast32_t","int_fast64_t","uint_fast64_t","intptr_t","uintptr_t","size_t","ptrdiff_t","intmax_t","uintmax_t"),/\b/),m={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:h}]},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})"/})]},T={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]},k=[x,N],R={className:"title",begin:r.optional(d)+i.IDENT_RE,relevance:0},U=r.optional(d)+i.IDENT_RE+"\\s*\\(",$=12,q={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"},J=[...k,m,l,i.C_BLOCK_COMMENT_MODE,T,v],ae={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:q,contains:J.concat([{begin:/\(/,end:/\)/,keywords:q,contains:J.concat(["self"]),relevance:0}]),relevance:0},M={begin:"("+E+"[\\*&\\s]+){1,"+$+"}"+U,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:q,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:q,relevance:0},{begin:U,returnBegin:!0,contains:[i.inherit(R,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,v,T,m,{begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,v,T,m]}]},m,l,i.C_BLOCK_COMMENT_MODE,...k]};return{name:"C",aliases:["h"],keywords:q,disableAutodetect:!0,illegal:"</",contains:[].concat(ae,M,J,[...k,{begin:i.IDENT_RE+"::",keywords:q},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},i.TITLE_MODE]}]),exports:{preprocessor:N,strings:v,keywords:q}}}return Nu=s,Nu}var xu,Fm;function o_(){if(Fm)return xu;Fm=1;function s(i){const r=i.regex,l=i.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),u="decltype\\(auto\\)",d="[a-zA-Z_]\\w*::",E="(?!struct)("+u+"|"+r.optional(d)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",h={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},T={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=[T,x],k={className:"title",begin:r.optional(d)+i.IDENT_RE,relevance:0},R=r.optional(d)+i.IDENT_RE+"\\s*\\(",U=12,$=["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"],le=["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"],q=["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"],M={type:L,keyword:$,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:le},Y={className:"function.dispatch",relevance:0,keywords:{_hint:q},begin:r.concat(/\b/,`(?!${$.join("|")})`,i.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},ee=[Y,...N,h,l,i.C_BLOCK_COMMENT_MODE,v,b],Z={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:M,contains:ee.concat([{begin:/\(/,end:/\)/,keywords:M,contains:ee.concat(["self"]),relevance:0}]),relevance:0},ue={className:"function",begin:"("+E+"[\\*&\\s]+){1,"+U+"}"+R,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:M,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:u,keywords:M,relevance:0},{begin:R,returnBegin:!0,contains:[k],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[b,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:M,relevance:0,contains:[l,i.C_BLOCK_COMMENT_MODE,b,v,h,{begin:/\(/,end:/\)/,keywords:M,relevance:0,contains:["self",l,i.C_BLOCK_COMMENT_MODE,b,v,h]}]},h,l,i.C_BLOCK_COMMENT_MODE,...N]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:M,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(Z,ue,Y,ee,[...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:M,contains:["self",h]},{begin:i.IDENT_RE+"::",keywords:M},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return xu=s,xu}var wu,Km;function c_(){if(Km)return wu;Km=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"],E={keyword:d.concat(g),built_in:r,literal:u},h=i.inherit(i.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),m="\\d(_*\\d)*",b="([uU][lL]?|[lL][uU]?)?",T={className:"number",variants:[{begin:"\\b0[bB]_*[01](_*[01])*"+b},{begin:"(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*"+b},{begin:"(-?)(\\b"+m+"(\\.("+m+")?)?|\\."+m+")([eE][-+]?"+m+")?"+"([fFdDmM]|[uU][lL]?|[lL][uU]?)?"}],relevance:0},x={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},N={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},k=i.inherit(N,{illegal:/\n/}),R={className:"subst",begin:/\{/,end:/\}/,keywords:E},U=i.inherit(R,{illegal:/\n/}),$={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},i.BACKSLASH_ESCAPE,U]},L={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},R]},le=i.inherit(L,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},U]});R.contains=[L,$,N,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,T,i.C_BLOCK_COMMENT_MODE],U.contains=[le,$,k,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,T,i.inherit(i.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const q={variants:[x,L,$,N,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},J={begin:"<",end:">",contains:[{beginKeywords:"in out"},h]},ae=i.IDENT_RE+"(<"+i.IDENT_RE+"(\\s*,\\s*"+i.IDENT_RE+")*>)?(\\[\\])?",M={begin:"@"+i.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:E,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"}},q,T,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},h,J,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,J,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+ae+"\\s+)+"+i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:E,contains:[{beginKeywords:l.join(" "),relevance:0},{begin:i.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[i.TITLE_MODE,J],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,relevance:0,contains:[q,T,i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},M]}}return wu=s,wu}var Au,Zm;function u_(){if(Zm)return Au;Zm=1;const s=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),E=["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 h(m){const b=m.regex,v=s(m),T={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},x="and or not only",N=/@-?\w[\w]*(-\w+)*/,k="[a-zA-Z-][a-zA-Z0-9_-]*",R=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[v.BLOCK_COMMENT,T,v.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+k,relevance:0},v.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+d.join("|")+")"},{begin:":(:)?("+g.join("|")+")"}]},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+E.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[v.BLOCK_COMMENT,v.HEXCOLOR,v.IMPORTANT,v.CSS_NUMBER_MODE,v.UNICODE_RANGE,...R,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...R,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},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"},...R,v.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b"}]}}return Au=h,Au}var Ru,Xm;function f_(){if(Xm)return Ru;Xm=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},E={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},h=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,h,/:\/\/.*?\)/),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}]},T=i.inherit(b,{contains:[]}),x=i.inherit(v,{contains:[]});b.contains.push(x),v.contains.push(T);let N=[l,m];return[b,v,T,x].forEach($=>{$.contains=$.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,m,E,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Ru=s,Ru}var Ou,Pm;function d_(){if(Pm)return Ou;Pm=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 Ou=s,Ou}var Mu,Qm;function h_(){if(Qm)return Mu;Qm=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+)*/),E={"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"]},h={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},b=[i.COMMENT("#","$",{contains:[h]}),i.COMMENT("^=begin","^=end",{contains:[h],relevance:10}),i.COMMENT("^__END__",i.MATCH_NOTHING_RE)],v={className:"subst",begin:/#\{/,end:/\}/,keywords:E},T={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])*",k={className:"number",relevance:0,variants:[{begin:`\\b(${x})(\\.(${N}))?([eE][+-]?(${N})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},R={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:E}]},ae=[T,{variants:[{match:[/class\s+/,d,/\s+<\s+/,d]},{match:[/\b(class|module)\s+/,d]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:E},{match:[/(include|extend)\s+/,d],scope:{2:"title.class"},keywords:E},{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:[R]},{begin:"::"},{className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[T,{begin:l}],relevance:0},k,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:E},{begin:"("+i.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[i.BACKSLASH_ESCAPE,v],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,b),relevance:0}].concat(m,b);v.contains=ae,R.contains=ae;const Z=[{begin:/^\s*=>/,starts:{end:"$",contains:ae}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:E,contains:ae}}];return b.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:E,illegal:/\/\*/,contains:[i.SHEBANG({binary:"ruby"})].concat(Z).concat(b).concat(ae)}}return Mu=s,Mu}var ku,Vm;function p_(){if(Vm)return ku;Vm=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 ku=s,ku}var Cu,Jm;function m_(){if(Jm)return Cu;Jm=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 Cu=s,Cu}var Du,Wm;function g_(){if(Wm)return Du;Wm=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/},E={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},h={begin:/\[/,end:/\]/,contains:[u,g,d,E,l,"self"],relevance:0},m=/[A-Za-z0-9_-]+/,b=/"(\\"|[^"])*"/,v=/'[^']*'/,T=r.either(m,b,v),x=r.concat(T,"(\\s*\\.\\s*",T,")*",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,h,g,d,E,l]}}]}}return Du=s,Du}var Lu,eg;function b_(){if(eg)return Lu;eg=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,E,h){return h===-1?"":g.replace(E,m=>u(g,E,h-1))}function d(g){const E=g.regex,h="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",m="(?:(?:\\s*\\[\\s*])+)?",b=h+"<@@@>"+m,T="(?:"+("\\?(?:\\s+(?:extends|super)\\s+"+b+")?")+"|"+b+")",x=u("(?:\\s*<\\s*"+T+"(?:\\s*,\\s*"+T+")*\\s*>)?",/<@@@>/g,2),$={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:"@"+h,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},le={className:"params",begin:/\(/,end:/\)/,keywords:$,relevance:0,contains:[g.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:$,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+/,h],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{beginKeywords:"new throw return else yield assert",relevance:0},{begin:[h,E.concat(x,m,/\s+/),h,m,/\s*/,/=(?!=)/],className:{1:"type",3:"variable",6:"operator"}},{begin:[/record/,/\s+/,h],className:{1:"keyword",3:"title.class"},contains:[le,g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE]},{begin:[h,E.concat(x,m,/\s+/),h,/\s*(?=\()/],className:{1:"type",3:"title.function"},keywords:$,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:$,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 Lu=d,Lu}var zu,tg;function y_(){if(tg)return zu;tg=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"],E=[].concat(d,l,u);function h(m){const b=m.regex,v=(Ee,{after:Re})=>{const ke="</"+Ee[0].slice(1);return Ee.input.indexOf(ke,Re)!==-1},T=s,x={begin:"<>",end:"</>"},N=/<[A-Za-z0-9\\._:-]+\s*\/>/,k={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Ee,Re)=>{const ke=Ee[0].length+Ee.index,He=Ee.input[ke];if(He==="<"||He===","){Re.ignoreMatch();return}He===">"&&(v(Ee,{after:ke})||Re.ignoreMatch());let Ze;const Le=Ee.input.substring(ke);if(Ze=Le.match(/^\s*=/)){Re.ignoreMatch();return}if((Ze=Le.match(/^\s+extends\s+/))&&Ze.index===0){Re.ignoreMatch();return}}},R={$pattern:s,keyword:i,literal:r,built_in:E,"variable.language":g},U="[0-9](_?[0-9])*",$=`\\.(${U})`,L="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",le={className:"number",variants:[{begin:`(\\b(${L})((${$})|\\.)?|(${$}))[eE][+-]?(${U})\\b`},{begin:`\\b(${L})\\b((${$})\\b|\\.)?|(${$})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},q={className:"subst",begin:"\\$\\{",end:"\\}",keywords:R,contains:[]},J={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,q],subLanguage:"xml"}},ae={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,q],subLanguage:"css"}},M={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[m.BACKSLASH_ESCAPE,q],subLanguage:"graphql"}},Y={className:"string",begin:"`",end:"`",contains:[m.BACKSLASH_ESCAPE,q]},Z={className:"comment",variants:[m.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:T+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),m.C_BLOCK_COMMENT_MODE,m.C_LINE_COMMENT_MODE]},ue=[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,J,ae,M,Y,{match:/\$\d+/},le];q.contains=ue.concat({begin:/\{/,end:/\}/,keywords:R,contains:["self"].concat(ue)});const Oe=[].concat(Z,q.contains),Ce=Oe.concat([{begin:/(\s*)\(/,end:/\)/,keywords:R,contains:["self"].concat(Oe)}]),ge={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,contains:Ce},B={variants:[{match:[/class/,/\s+/,T,/\s+/,/extends/,/\s+/,b.concat(T,"(",b.concat(/\./,T),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,T],scope:{1:"keyword",3:"title.class"}}]},te={relevance:0,match:b.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},ce={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Te={variants:[{match:[/function/,/\s+/,T,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[ge],illegal:/%/},Be={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function _(Ee){return b.concat("(?!",Ee.join("|"),")")}const D={match:b.concat(/\b/,_([...d,"super","import","await"].map(Ee=>`${Ee}\\s*\\(`)),T,b.lookahead(/\s*\(/)),className:"title.function",relevance:0},j={begin:b.concat(/\./,b.lookahead(b.concat(T,/(?![0-9A-Za-z$_(])/))),end:T,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},se={match:[/get|set/,/\s+/,T,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},ge]},fe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+m.UNDERSCORE_IDENT_RE+")\\s*=>",xe={match:[/const|var|let/,/\s+/,T,/\s*/,/=\s*/,/(async\s*)?/,b.lookahead(fe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[ge]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:R,exports:{PARAMS_CONTAINS:Ce,CLASS_REFERENCE:te},illegal:/#(?![$_A-Za-z])/,contains:[m.SHEBANG({label:"shebang",binary:"node",relevance:5}),ce,m.APOS_STRING_MODE,m.QUOTE_STRING_MODE,J,ae,M,Y,Z,{match:/\$\d+/},le,te,{scope:"attr",match:T+b.lookahead(":"),relevance:0},xe,{begin:"("+m.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[Z,m.REGEXP_MODE,{className:"function",begin:fe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:R,contains:Ce}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:x.begin,end:x.end},{match:N},{begin:k.begin,"on:begin":k.isTrulyOpeningTag,end:k.end}],subLanguage:"xml",contains:[{begin:k.begin,end:k.end,skip:!0,contains:["self"]}]}]},Te,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+m.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[ge,m.inherit(m.TITLE_MODE,{begin:T,className:"title.function"})]},{match:/\.\.\./,relevance:0},j,{match:"\\$"+T,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[ge]},D,Be,B,se,{match:/\$[(.]/}]}}return zu=h,zu}var Uu,ng;function E_(){if(ng)return Uu;ng=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"],E={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,E,i,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Uu=r,Uu}var Bu,ag;function v_(){if(ag)return Bu;ag=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"},E={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},h={className:"symbol",begin:d.UNDERSCORE_IDENT_RE+"@"},m={className:"subst",begin:/\$\{/,end:/\}/,contains:[d.C_NUMBER_MODE]},b={className:"variable",begin:"\\$"+d.UNDERSCORE_IDENT_RE},v={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[b,m]},{begin:"'",end:"'",illegal:/\n/,contains:[d.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[d.BACKSLASH_ESCAPE,b,m]}]};m.contains.push(v);const T={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,k=d.COMMENT("/\\*","\\*/",{contains:[d.C_BLOCK_COMMENT_MODE]}),R={variants:[{className:"type",begin:d.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},U=R;return U.variants[1].contains=[R],R.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,k,E,h,T,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:[R,d.C_LINE_COMMENT_MODE,k],relevance:0},d.C_LINE_COMMENT_MODE,k,T,x,v,d.C_NUMBER_MODE]},k]},{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},T,x]},v,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
166
|
-
`},N]}}return Bu=u,Bu}var Iu,ig;function __(){if(ig)return Iu;ig=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(),E=["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(),h=d.concat(g).sort().reverse();function m(b){const v=s(b),T=h,x="and or not only",N="[\\w-]+",k="("+N+"|@\\{"+N+"\\})",R=[],U=[],$=function(Oe){return{className:"string",begin:"~?"+Oe+".*?"+Oe}},L=function(Oe,Ce,ge){return{className:Oe,begin:Ce,relevance:ge}},le={$pattern:/[a-z-]+/,keyword:x,attribute:u.join(" ")},q={begin:"\\(",end:"\\)",contains:U,keywords:le,relevance:0};U.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,$("'"),$('"'),v.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},v.UNICODE_RANGE,v.HEXCOLOR,q,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 J=U.concat({begin:/\{/,end:/\}/,contains:R}),ae={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(U)},M={begin:k+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},v.CSS_VARIABLE,{className:"attribute",begin:"\\b("+E.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:U}}]},Y={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:le,returnEnd:!0,contains:U,relevance:0}},ee={className:"variable",variants:[{begin:"@"+N+"\\s*:",relevance:15},{begin:"@"+N}],starts:{end:"[;}]",returnEnd:!0,contains:J}},Z={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:k,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,ae,L("keyword","all\\b"),L("variable","@\\{"+N+"\\}"),{begin:"\\b("+l.join("|")+")\\b",className:"selector-tag"},v.CSS_NUMBER_MODE,L("selector-tag",k,0),L("selector-id","#"+k),L("selector-class","\\."+k,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:J},{begin:"!important"},v.FUNCTION_DISPATCH]},ue={begin:N+`:(:)?(${T.join("|")})`,returnBegin:!0,contains:[Z]};return R.push(b.C_LINE_COMMENT_MODE,b.C_BLOCK_COMMENT_MODE,Y,ee,ue,M,Z,ae,v.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:R}}return Iu=m,Iu}var ju,lg;function S_(){if(lg)return ju;lg=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 ju=s,ju}var Hu,sg;function T_(){if(sg)return Hu;sg=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"}},E={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,E]}}return Hu=s,Hu}var qu,rg;function N_(){if(rg)return qu;rg=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},E={begin:/->\{/,end:/\}/},h={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[h]},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,m],T=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],x=(R,U,$="\\1")=>{const L=$==="\\1"?$:r.concat($,U);return r.concat(r.concat("(?:",R,")"),U,/(?:\\.|[^\\\/])*?/,L,/(?:\\.|[^\\\/])*?/,$,u)},N=(R,U,$)=>r.concat(r.concat("(?:",R,")"),U,/(?:\\.|[^\\\/])*?/,$,u),k=[m,i.HASH_COMMENT_MODE,i.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),E,{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(...T,{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(...T,{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,h]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[i.TITLE_MODE,h,b]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return g.contains=k,E.contains=k,{name:"Perl",aliases:["pl","pm"],keywords:d,contains:k}}return qu=s,qu}var Gu,og;function x_(){if(og)return Gu;og=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_]*/,h={"variable.language":["this","super"],$pattern:l,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:l,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:h,illegal:"</",contains:[r,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.C_NUMBER_MODE,i.QUOTE_STRING_MODE,i.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[i.UNDERSCORE_TITLE_MODE]},{begin:"\\."+i.UNDERSCORE_IDENT_RE,relevance:0}]}}return Gu=s,Gu}var $u,cg;function w_(){if(cg)return $u;cg=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),E={scope:"variable",match:"\\$+"+u},h={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=i.inherit(i.APOS_STRING_MODE,{illegal:null}),v=i.inherit(i.QUOTE_STRING_MODE,{illegal:null,contains:i.QUOTE_STRING_MODE.contains.concat(m)}),T={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:i.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(ge,B)=>{B.data._beginMatch=ge[1]||ge[2]},"on:end":(ge,B)=>{B.data._beginMatch!==ge[1]&&B.ignoreMatch()}},x=i.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),N=`[
|
|
167
|
-
]`,k={scope:"string",variants:[v,b,T,x]},R={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},U=["false","null","true"],$=["__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"],q={keyword:$,literal:(ge=>{const B=[];return ge.forEach(te=>{B.push(te),te.toLowerCase()===te?B.push(te.toUpperCase()):B.push(te.toLowerCase())}),B})(U),built_in:L},J=ge=>ge.map(B=>B.replace(/\|\d+$/,"")),ae={variants:[{match:[/new/,r.concat(N,"+"),r.concat("(?!",J(L).join("\\b|"),"\\b)"),d],scope:{1:"keyword",4:"title.class"}}]},M=r.concat(u,"\\b(?!\\()"),Y={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),M],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[d,r.concat(/::/,r.lookahead(/(?!class\b)/)),M],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"}}]},ee={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},Z={relevance:0,begin:/\(/,end:/\)/,keywords:q,contains:[ee,E,Y,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,k,R,ae]},ue={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",J($).join("\\b|"),"|",J(L).join("\\b|"),"\\b)"),u,r.concat(N,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[Z]};Z.contains.push(ue);const Oe=[ee,Y,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,k,R,ae],Ce={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",...Oe]},...Oe,{scope:"meta",variants:[{match:d},{match:g}]}]};return{case_insensitive:!1,keywords:q,contains:[Ce,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}]}},h,{scope:"variable.language",match:/\$this\b/},E,ue,Y,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},ae,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},i.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:q,contains:["self",Ce,E,Y,i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE,i.HASH_COMMENT_MODE,k,R]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},i.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[i.inherit(i.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},i.UNDERSCORE_TITLE_MODE]},k,R]}}return $u=s,$u}var Yu,ug;function A_(){if(ug)return Yu;ug=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 Yu=s,Yu}var Fu,fg;function R_(){if(fg)return Fu;fg=1;function s(i){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Fu=s,Fu}var Ku,dg;function O_(){if(dg)return Ku;dg=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"],h={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},b={className:"subst",begin:/\{/,end:/\}/,keywords:h,illegal:/#/},v={begin:/\{\{/,relevance:0},T={className:"string",contains:[i.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE,m,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,m,v,b]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[i.BACKSLASH_ESCAPE,v,b]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,v,b]},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},x="[0-9](_?[0-9])*",N=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,k=`\\b|${u.join("|")}`,R={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${N}))[eE][+-]?(${x})[jJ]?(?=${k})`},{begin:`(${N})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${k})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${k})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${k})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${k})`},{begin:`\\b(${x})[jJ](?=${k})`}]},U={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:h,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},$={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:["self",m,R,T,i.HASH_COMMENT_MODE]}]};return b.contains=[T,R,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:h,illegal:/(<\/|\?)|=>/,contains:[m,R,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},T,U,i.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[$]},{variants:[{match:[/\bclass/,/\s+/,l,/\s*/,/\(\s*/,l,/\s*\)/]},{match:[/\bclass/,/\s+/,l]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[R,$,T]}]}}return Ku=s,Ku}var Zu,hg;function M_(){if(hg)return Zu;hg=1;function s(i){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Zu=s,Zu}var Xu,pg;function k_(){if(pg)return Xu;pg=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 Xu=s,Xu}var Pu,mg;function C_(){if(mg)return Pu;mg=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*\(/))},E="([ui](8|16|32|64|128|size)|f(16|32|64|128))?",h=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","raw","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],b=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],v=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f16","f32","f64","f128","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:i.IDENT_RE+"!?",type:v,keyword:h,literal:m,built_in:b},illegal:"</",contains:[i.C_LINE_COMMENT_MODE,i.COMMENT("/\\*","\\*/",{contains:["self"]}),i.inherit(i.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:"number",variants:[{begin:"\\b0b([01_]+)"+E},{begin:"\\b0o([0-7_]+)"+E},{begin:"\\b0x([A-Fa-f0-9_]+)"+E},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+E}],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 Pu=s,Pu}var Qu,gg;function D_(){if(gg)return Qu;gg=1;const s=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],l=[...i,...r],u=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),d=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),g=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),E=["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 h(m){const b=s(m),v=g,T=d,x="@[a-z-]+",N="and or not only",R={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,b.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},b.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+l.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+T.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+v.join("|")+")"},R,{begin:/\(/,end:/\)/,contains:[b.CSS_NUMBER_MODE]},b.CSS_VARIABLE,{className:"attribute",begin:"\\b("+E.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[b.BLOCK_COMMENT,R,b.HEXCOLOR,b.CSS_NUMBER_MODE,b.UNICODE_RANGE,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.IMPORTANT,b.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:x,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:N,attribute:u.join(" ")},contains:[{begin:x,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},R,m.QUOTE_STRING_MODE,m.APOS_STRING_MODE,b.HEXCOLOR,b.CSS_NUMBER_MODE]},b.FUNCTION_DISPATCH]}}return Qu=h,Qu}var Vu,bg;function L_(){if(bg)return Vu;bg=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 Vu=s,Vu}var Ju,yg;function z_(){if(yg)return Ju;yg=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"],E=["double precision","large object","with timezone","without timezone"],h=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],b=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],v=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],T=["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,k=[...b,...m].filter(J=>!v.includes(J)),R={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},U={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},$={match:r.concat(/\b/,r.either(...N),/\s*\(/),relevance:0,keywords:{built_in:N}};function L(J){return r.concat(/\b/,r.either(...J.map(ae=>ae.replace(/\s+/,"\\s+"))),/\b/)}const le={scope:"keyword",match:L(x),relevance:0};function q(J,{exceptions:ae,when:M}={}){const Y=M;return ae=ae||[],J.map(ee=>ee.match(/\|\d+$/)||ae.includes(ee)?ee:Y(ee)?`${ee}|0`:ee)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:q(k,{when:J=>J.length<3}),literal:g,type:h,built_in:T},contains:[{scope:"type",match:L(E)},le,$,R,u,d,i.C_NUMBER_MODE,i.C_BLOCK_COMMENT_MODE,l,U]}}return Ju=s,Ju}var Wu,Eg;function U_(){if(Eg)return Wu;Eg=1;function s(M){return M?typeof M=="string"?M:M.source:null}function i(M){return r("(?=",M,")")}function r(...M){return M.map(ee=>s(ee)).join("")}function l(M){const Y=M[M.length-1];return typeof Y=="object"&&Y.constructor===Object?(M.splice(M.length-1,1),Y):{}}function u(...M){return"("+(l(M).capture?"":"?:")+M.map(Z=>s(Z)).join("|")+")"}new RegExp(u(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));const d=M=>r(/\b/,M,/\w$/.test(M)?/\b/:/\B/),g=["Protocol","Type"].map(d),E=["init","self"].map(d),h=["Any","Self"],m=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],b=["false","nil","true"],v=["assignment","associativity","higherThan","left","lowerThan","none","right"],T=["#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]/),k=u(N,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),R=r(N,k,"*"),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]/),$=u(U,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),L=r(U,$,"*"),le=r(/[A-Z]/,$,"*"),q=["attached","autoclosure",r(/convention\(/,u("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,L,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],J=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function ae(M){const Y={match:/\s+/,relevance:0},ee=M.COMMENT("/\\*","\\*/",{contains:["self"]}),Z=[M.C_LINE_COMMENT_MODE,ee],ue={match:[/\./,u(...g,...E)],className:{2:"keyword"}},Oe={match:r(/\./,u(...m)),relevance:0},Ce=m.filter(oe=>typeof oe=="string").concat(["_|0"]),ge=m.filter(oe=>typeof oe!="string").concat(h).map(d),B={variants:[{className:"keyword",match:u(...ge,...E)}]},te={$pattern:u(/\b\w+/,/#\w+/),keyword:Ce.concat(T),literal:b},ce=[ue,Oe,B],Te={match:r(/\./,u(...x)),relevance:0},Be={className:"built_in",match:r(/\b/,u(...x),/(?=\()/)},_=[Te,Be],D={match:/->/,relevance:0},j={className:"operator",relevance:0,variants:[{match:R},{match:`\\.(\\.|${k})+`}]},se=[D,j],fe="([0-9]_*)+",xe="([0-9a-fA-F]_*)+",Ee={className:"number",relevance:0,variants:[{match:`\\b(${fe})(\\.(${fe}))?([eE][+-]?(${fe}))?\\b`},{match:`\\b0x(${xe})(\\.(${xe}))?([pP][+-]?(${fe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Re=(oe="")=>({className:"subst",variants:[{match:r(/\\/,oe,/[0\\tnr"']/)},{match:r(/\\/,oe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ke=(oe="")=>({className:"subst",match:r(/\\/,oe,/[\t ]*(?:[\r\n]|\r\n)/)}),He=(oe="")=>({className:"subst",label:"interpol",begin:r(/\\/,oe,/\(/),end:/\)/}),Ze=(oe="")=>({begin:r(oe,/"""/),end:r(/"""/,oe),contains:[Re(oe),ke(oe),He(oe)]}),Le=(oe="")=>({begin:r(oe,/"/),end:r(/"/,oe),contains:[Re(oe),He(oe)]}),Nt={className:"string",variants:[Ze(),Ze("#"),Ze("##"),Ze("###"),Le(),Le("#"),Le("##"),Le("###")]},Fe=[M.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[M.BACKSLASH_ESCAPE]}],On={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Fe},tt=oe=>{const ht=r(oe,/\//),Jt=r(/\//,oe);return{begin:ht,end:Jt,contains:[...Fe,{scope:"comment",begin:`#(?!.*${Jt})`,end:/$/}]}},tn={scope:"regexp",variants:[tt("###"),tt("##"),tt("#"),On]},Hn={match:r(/`/,L,/`/)},Vt={className:"variable",match:/\$\d+/},Mn={className:"variable",match:`\\$${$}+`},xn=[Hn,Vt,Mn],oa={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:J,contains:[...se,Ee,Nt]}]}},ca={scope:"keyword",match:r(/@/,u(...q),i(u(/\(/,/\s+/)))},at={scope:"meta",match:r(/@/,L)},Bt=[oa,ca,at],yt={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)/,$,"+")},{className:"type",match:le,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,i(le)),relevance:0}]},nn={begin:/</,end:/>/,keywords:te,contains:[...Z,...ce,...Bt,D,yt]};yt.contains.push(nn);const fn={match:r(L,/\s*:/),keywords:"_|0",relevance:0},kn={begin:/\(/,end:/\)/,relevance:0,keywords:te,contains:["self",fn,...Z,tn,...ce,..._,...se,Ee,Nt,...xn,...Bt,yt]},Cn={begin:/</,end:/>/,keywords:"repeat each",contains:[...Z,yt]},Dn={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}]},qn={begin:/\(/,end:/\)/,keywords:te,contains:[Dn,...Z,...ce,...se,Ee,Nt,...Bt,yt,kn],endsParent:!0,illegal:/["']/},dn={match:[/(func|macro)/,/\s+/,u(Hn.match,L,R)],className:{1:"keyword",3:"title.function"},contains:[Cn,qn,Y],illegal:[/\[/,/%/]},Ot={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Cn,qn,Y],illegal:/\[|%/},an={match:[/operator/,/\s+/,R],className:{1:"keyword",3:"title"}},Dt={begin:[/precedencegroup/,/\s+/,le],className:{1:"keyword",3:"title"},contains:[yt],keywords:[...v,...b],end:/}/},Qn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},ie={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},be={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,L,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:te,contains:[Cn,...ce,{begin:/:/,end:/\{/,keywords:te,contains:[{scope:"title.class.inherited",match:le},...ce],relevance:0}]};for(const oe of Nt.variants){const ht=oe.contains.find(Wt=>Wt.label==="interpol");ht.keywords=te;const Jt=[...ce,..._,...se,Ee,Nt,...xn];ht.contains=[...Jt,{begin:/\(/,end:/\)/,contains:["self",...Jt]}]}return{name:"Swift",keywords:te,contains:[...Z,dn,Ot,Qn,ie,be,an,Dt,{beginKeywords:"import",end:/$/,contains:[...Z],relevance:0},tn,...ce,..._,...se,Ee,Nt,...xn,...Bt,yt,kn]}}return Wu=ae,Wu}var ef,vg;function B_(){if(vg)return ef;vg=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}]},E={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[i.BACKSLASH_ESCAPE,d]},h=i.inherit(E,{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},k={begin:/\{/,end:/\}/,contains:[N],illegal:"\\n",relevance:0},R={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},k,R,g,E],$=[...U];return $.pop(),$.push(h),N.contains=$,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:U}}return ef=s,ef}var tf,_g;function I_(){if(_g)return tf;_g=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"],E=[].concat(d,l,u);function h(b){const v=b.regex,T=(Re,{after:ke})=>{const He="</"+Re[0].slice(1);return Re.input.indexOf(He,ke)!==-1},x=s,N={begin:"<>",end:"</>"},k=/<[A-Za-z0-9\\._:-]+\s*\/>/,R={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Re,ke)=>{const He=Re[0].length+Re.index,Ze=Re.input[He];if(Ze==="<"||Ze===","){ke.ignoreMatch();return}Ze===">"&&(T(Re,{after:He})||ke.ignoreMatch());let Le;const Nt=Re.input.substring(He);if(Le=Nt.match(/^\s*=/)){ke.ignoreMatch();return}if((Le=Nt.match(/^\s+extends\s+/))&&Le.index===0){ke.ignoreMatch();return}}},U={$pattern:s,keyword:i,literal:r,built_in:E,"variable.language":g},$="[0-9](_?[0-9])*",L=`\\.(${$})`,le="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",q={className:"number",variants:[{begin:`(\\b(${le})((${L})|\\.)?|(${L}))[eE][+-]?(${$})\\b`},{begin:`\\b(${le})\\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},J={className:"subst",begin:"\\$\\{",end:"\\}",keywords:U,contains:[]},ae={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,J],subLanguage:"xml"}},M={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,J],subLanguage:"css"}},Y={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[b.BACKSLASH_ESCAPE,J],subLanguage:"graphql"}},ee={className:"string",begin:"`",end:"`",contains:[b.BACKSLASH_ESCAPE,J]},ue={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]},Oe=[b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ae,M,Y,ee,{match:/\$\d+/},q];J.contains=Oe.concat({begin:/\{/,end:/\}/,keywords:U,contains:["self"].concat(Oe)});const Ce=[].concat(ue,J.contains),ge=Ce.concat([{begin:/(\s*)\(/,end:/\)/,keywords:U,contains:["self"].concat(Ce)}]),B={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:U,contains:ge},te={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"}}]},ce={relevance:0,match:v.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...l,...u]}},Te={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Be={variants:[{match:[/function/,/\s+/,x,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[B],illegal:/%/},_={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function D(Re){return v.concat("(?!",Re.join("|"),")")}const j={match:v.concat(/\b/,D([...d,"super","import","await"].map(Re=>`${Re}\\s*\\(`)),x,v.lookahead(/\s*\(/)),className:"title.function",relevance:0},se={begin:v.concat(/\./,v.lookahead(v.concat(x,/(?![0-9A-Za-z$_(])/))),end:x,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},fe={match:[/get|set/,/\s+/,x,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},B]},xe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+b.UNDERSCORE_IDENT_RE+")\\s*=>",Ee={match:[/const|var|let/,/\s+/,x,/\s*/,/=\s*/,/(async\s*)?/,v.lookahead(xe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[B]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:U,exports:{PARAMS_CONTAINS:ge,CLASS_REFERENCE:ce},illegal:/#(?![$_A-Za-z])/,contains:[b.SHEBANG({label:"shebang",binary:"node",relevance:5}),Te,b.APOS_STRING_MODE,b.QUOTE_STRING_MODE,ae,M,Y,ee,ue,{match:/\$\d+/},q,ce,{scope:"attr",match:x+v.lookahead(":"),relevance:0},Ee,{begin:"("+b.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[ue,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:ge}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:N.begin,end:N.end},{match:k},{begin:R.begin,"on:begin":R.isTrulyOpeningTag,end:R.end}],subLanguage:"xml",contains:[{begin:R.begin,end:R.end,skip:!0,contains:["self"]}]}]},Be,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+b.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[B,b.inherit(b.TITLE_MODE,{begin:x,className:"title.function"})]},{match:/\.\.\./,relevance:0},se,{match:"\\$"+x,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[B]},j,_,te,fe,{match:/\$[(.]/}]}}function m(b){const v=b.regex,T=h(b),x=s,N=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],k={begin:[/namespace/,/\s+/,b.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},R={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:N},contains:[T.exports.CLASS_REFERENCE]},U={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},$=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],L={$pattern:s,keyword:i.concat($),literal:r,built_in:E.concat(N),"variable.language":g},le={className:"meta",begin:"@"+x},q=(Y,ee,Z)=>{const ue=Y.contains.findIndex(Oe=>Oe.label===ee);if(ue===-1)throw new Error("can not find mode to replace");Y.contains.splice(ue,1,Z)};Object.assign(T.keywords,L),T.exports.PARAMS_CONTAINS.push(le);const J=T.contains.find(Y=>Y.scope==="attr"),ae=Object.assign({},J,{match:v.concat(x,v.lookahead(/\s*\?:/))});T.exports.PARAMS_CONTAINS.push([T.exports.CLASS_REFERENCE,J,ae]),T.contains=T.contains.concat([le,k,R,ae]),q(T,"shebang",b.SHEBANG()),q(T,"use_strict",U);const M=T.contains.find(Y=>Y.label==="func.def");return M.relevance=0,Object.assign(T,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),T}return tf=m,tf}var nf,Sg;function j_(){if(Sg)return nf;Sg=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}/,E=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,h=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:r.concat(/# */,r.either(g,d),/ *#/)},{begin:r.concat(/# */,h,/ *#/)},{begin:r.concat(/# */,E,/ *#/)},{begin:r.concat(/# */,r.either(g,d),/ +/,r.either(E,h),/ *#/)}]},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+:/},T=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,m,b,v,T,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 nf=s,nf}var af,Tg;function H_(){if(Tg)return af;Tg=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_]+/},E={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},h={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},b={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:u},contains:[l,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},g,E,d,i.QUOTE_STRING_MODE,m,b,h]}}return af=s,af}var lf,Ng;function q_(){if(Ng)return lf;Ng=1;var s=i_();return s.registerLanguage("xml",l_()),s.registerLanguage("bash",s_()),s.registerLanguage("c",r_()),s.registerLanguage("cpp",o_()),s.registerLanguage("csharp",c_()),s.registerLanguage("css",u_()),s.registerLanguage("markdown",f_()),s.registerLanguage("diff",d_()),s.registerLanguage("ruby",h_()),s.registerLanguage("go",p_()),s.registerLanguage("graphql",m_()),s.registerLanguage("ini",g_()),s.registerLanguage("java",b_()),s.registerLanguage("javascript",y_()),s.registerLanguage("json",E_()),s.registerLanguage("kotlin",v_()),s.registerLanguage("less",__()),s.registerLanguage("lua",S_()),s.registerLanguage("makefile",T_()),s.registerLanguage("perl",N_()),s.registerLanguage("objectivec",x_()),s.registerLanguage("php",w_()),s.registerLanguage("php-template",A_()),s.registerLanguage("plaintext",R_()),s.registerLanguage("python",O_()),s.registerLanguage("python-repl",M_()),s.registerLanguage("r",k_()),s.registerLanguage("rust",C_()),s.registerLanguage("scss",D_()),s.registerLanguage("shell",L_()),s.registerLanguage("sql",z_()),s.registerLanguage("swift",U_()),s.registerLanguage("yaml",B_()),s.registerLanguage("typescript",I_()),s.registerLanguage("vbnet",j_()),s.registerLanguage("wasm",H_()),s.HighlightJS=s,s.default=s,lf=s,lf}var G_=q_();const bb=sb(G_),$_={cjs:"javascript",cts:"typescript",mts:"typescript",toml:"ini",svelte:"xml",vue:"xml",htm:"xml",zsh:"bash",fish:"bash"},Y_=2e5,yb="http://www.w3.org/1999/xhtml";function F_(s){for(const i of s.querySelectorAll(".d2h-file-wrapper")){const r=K_(i.dataset.lang??"");if(r)for(const l of Z_(i))xg(l.filter(u=>u.kind!=="ins"),u=>u.kind==="del",r),xg(l.filter(u=>u.kind!=="del"),()=>!0,r)}}function K_(s){const i=$_[s]??a_(s);return i==="plaintext"||!bb.getLanguage(i)?null:i}function Z_(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 xg(s,i,r){if(s.filter(i).length===0)return;const u=s.map(g=>g.ctn.textContent??"").join(`
|
|
168
|
-
`);if(!u.trim()||u.length>Y_)return;const d=P_(bb.highlight(u,{language:r,ignoreIllegals:!0}).value);s.forEach((g,E)=>{const h=d[E];h===void 0||!i(g)||X_(g.ctn,h)})}function X_(s,i){const r=Hm(s);let l=i;if(r.length){const u=document.createElementNS(yb,"div");u.innerHTML=i,l=t_(r,Hm(u),s.textContent??"")}s.classList.add("hljs"),s.innerHTML=l}function P_(s){const i=document.createElementNS(yb,"div");i.innerHTML=s;const r=[],l=[];let u="";const d=g=>{if(g.nodeType===Node.TEXT_NODE){(g.textContent??"").split(`
|
|
169
|
-
`).forEach((m,b)=>{b>0&&(u+="</span>".repeat(l.length),r.push(u),u=l.join("")),u+=Q_(m)});return}const E=`<span class="${g.className}">`;u+=E,l.push(E),g.childNodes.forEach(d),l.pop(),u+="</span>"};return i.childNodes.forEach(d),r.push(u),r}function Q_(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}const V_={arrowRight:["M5 12h14","m12 5 7 7-7 7"],chevronLeft:["m15 6-6 6 6 6"],chevronRight:["m9 6 6 6-6 6"],skip:["m5 4 10 8-10 8V4Z","M19 5v14"],rerun:["M21 12a9 9 0 1 1-3-6.7","M21 4v5h-5"],zap:["M13 2 4 14h7l-1 8 9-12h-7Z"],comment:["M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"],check:["M20 6 9 17l-5-5"],edit:["M12 20h9","M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"],drop:["M3 6h18","M8 6V4h8v2","M6 6l1 14h10l1-14"],plus:["M12 5v14","M5 12h14"],send:["M22 2 11 13","M22 2 15 22l-4-9-9-4Z"],eye:["M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"],download:["M12 3v12","m7 12 5 5 5-5","M5 21h14"],external:["M14 4h6v6","M20 4 10 14","M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"],settings:["M20 7h-9","M14 17H5"],down:["M12 5v13","m6 12 6 6 6-6"],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"]},J_={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}]},W_={approve:["m8 12 3 3 5-6"],changes:["M12 8v5","M12 16h.01"]};function ft({name:s,size:i=13}){const r=[...V_[s]??[],...W_[s]??[]];return p.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:[(J_[s]??[]).map((l,u)=>p.jsx("circle",{cx:l.cx,cy:l.cy,r:l.r},u)),r.map((l,u)=>p.jsx("path",{d:l},u))]})}function e0({size:s=17}){return p.jsxs("svg",{className:"logo",width:s,height:s,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[p.jsx("circle",{cx:"6.1",cy:"8.9",r:"2.5"}),p.jsx("circle",{cx:"12",cy:"6.7",r:"2.7"}),p.jsx("circle",{cx:"17.9",cy:"8.9",r:"2.5"}),p.jsx("ellipse",{cx:"12",cy:"16.6",rx:"5.4",ry:"4.3"})]})}function Qi({children:s}){return p.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 wg(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 t0(s){if(Array.isArray(s))return s}function n0(s,i){var r=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(r!=null){var l,u,d,g,E=[],h=!0,m=!1;try{if(d=(r=r.call(s)).next,i!==0)for(;!(h=(l=d.call(r)).done)&&(E.push(l.value),E.length!==i);h=!0);}catch(b){m=!0,u=b}finally{try{if(!h&&r.return!=null&&(g=r.return(),Object(g)!==g))return}finally{if(m)throw u}}return E}}function a0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
170
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i0(s,i){return t0(s)||n0(s,i)||l0(s,i)||a0()}function l0(s,i){if(s){if(typeof s=="string")return wg(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)?wg(s,i):void 0}}const Eb=Object.entries,Ag=Object.setPrototypeOf,s0=Object.isFrozen,r0=Object.getPrototypeOf,o0=Object.getOwnPropertyDescriptor;let yn=Object.freeze,En=Object.seal,zl=Object.create,vb=typeof Reflect<"u"&&Reflect,mf=vb.apply,gf=vb.construct;yn||(yn=function(i){return i});En||(En=function(i){return i});mf||(mf=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)});gf||(gf=function(i){for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return new i(...l)});const Cl=Pt(Array.prototype.forEach),c0=Pt(Array.prototype.lastIndexOf),Rg=Pt(Array.prototype.pop),Dl=Pt(Array.prototype.push),u0=Pt(Array.prototype.splice),ki=Array.isArray,Us=Pt(String.prototype.toLowerCase),sf=Pt(String.prototype.toString),Og=Pt(String.prototype.match),Ds=Pt(String.prototype.replace),Mg=Pt(String.prototype.indexOf),f0=Pt(String.prototype.trim),d0=Pt(Number.prototype.toString),h0=Pt(Boolean.prototype.toString),kg=typeof BigInt>"u"?null:Pt(BigInt.prototype.toString),Cg=typeof Symbol>"u"?null:Pt(Symbol.prototype.toString),cn=Pt(Object.prototype.hasOwnProperty),Ls=Pt(Object.prototype.toString),on=Pt(RegExp.prototype.test),Xi=p0(TypeError);function Pt(s){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var r=arguments.length,l=new Array(r>1?r-1:0),u=1;u<r;u++)l[u-1]=arguments[u];return mf(s,i,l)}}function p0(s){return function(){for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return gf(s,r)}}function lt(s,i){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Us;if(Ag&&Ag(s,null),!ki(i))return s;let l=i.length;for(;l--;){let u=i[l];if(typeof u=="string"){const d=r(u);d!==u&&(s0(i)||(i[l]=d),u=d)}s[u]=!0}return s}function m0(s){for(let i=0;i<s.length;i++)cn(s,i)||(s[i]=null);return s}function Tn(s){const i=zl(null);for(const l of Eb(s)){var r=i0(l,2);const u=r[0],d=r[1];cn(s,u)&&(ki(d)?i[u]=m0(d):d&&typeof d=="object"&&d.constructor===Object?i[u]=Tn(d):i[u]=d)}return i}function g0(s){switch(typeof s){case"string":return s;case"number":return d0(s);case"boolean":return h0(s);case"bigint":return kg?kg(s):"0";case"symbol":return Cg?Cg(s):"Symbol()";case"undefined":return Ls(s);case"function":case"object":{if(s===null)return Ls(s);const i=s,r=ma(i,"toString");if(typeof r=="function"){const l=r(i);return typeof l=="string"?l:Ls(l)}return Ls(s)}default:return Ls(s)}}function ma(s,i){for(;s!==null;){const l=o0(s,i);if(l){if(l.get)return Pt(l.get);if(typeof l.value=="function")return Pt(l.value)}s=r0(s)}function r(){return null}return r}function b0(s){try{return on(s,""),!0}catch{return!1}}const Dg=yn(["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"]),rf=yn(["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"]),of=yn(["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"]),y0=yn(["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"]),cf=yn(["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"]),E0=yn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lg=yn(["#text"]),zg=yn(["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"]),uf=yn(["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"]),Ug=yn(["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"]),Qr=yn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),v0=En(/{{[\w\W]*|^[\w\W]*}}/g),_0=En(/<%[\w\W]*|^[\w\W]*%>/g),S0=En(/\${[\w\W]*/g),T0=En(/^data-[\-\w.\u00B7-\uFFFF]+$/),N0=En(/^aria-[\-\w]+$/),Bg=En(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x0=En(/^(?:\w+script|data):/i),w0=En(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),A0=En(/^html$/i),R0=En(/^[a-z][.\w]*(-[.\w]+)+$/i),Ig=En(/<[/\w!]/g),jg=En(/<[/\w]/g),O0=En(/<\/no(script|embed|frames)/i),M0=En(/\/>/i),Pn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},k0=function(){return typeof window>"u"?null:window},C0=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}},Hg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ri=function(i,r,l,u){return cn(i,r)&&ki(i[r])?lt(u.base?Tn(u.base):{},i[r],u.transform):l};function _b(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k0();const i=K=>_b(K);if(i.version="3.4.13",i.removed=[],!s||!s.document||s.document.nodeType!==Pn.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,E=s.Element,h=s.NodeFilter,m=s.NamedNodeMap;m===void 0&&(s.NamedNodeMap||s.MozNamedAttrMap),s.HTMLFormElement;const b=s.DOMParser,v=s.trustedTypes,T=E.prototype,x=ma(T,"cloneNode"),N=ma(T,"remove"),k=ma(T,"nextSibling"),R=ma(T,"childNodes"),U=ma(T,"parentNode"),$=ma(T,"shadowRoot"),L=ma(T,"attributes"),le=g&&g.prototype?ma(g.prototype,"nodeType"):null,q=g&&g.prototype?ma(g.prototype,"nodeName"):null,J=g&&g.prototype?ma(g.prototype,"ownerDocument"):null;if(typeof d=="function"){const K=r.createElement("template");K.content&&K.content.ownerDocument&&(r=K.content.ownerDocument)}let ae,M="",Y,ee=!1,Z=0;const ue=function(){if(Z>0)throw Xi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Oe=function(S){ue(),Z++;try{return ae.createHTML(S)}finally{Z--}},Ce=function(S){ue(),Z++;try{return ae.createScriptURL(S)}finally{Z--}},ge=function(){return ee||(Y=C0(v,u),ee=!0),Y},B=r,te=B.implementation,ce=B.createNodeIterator,Te=B.createDocumentFragment,Be=B.getElementsByTagName,_=l.importNode;let D=Hg();i.isSupported=typeof Eb=="function"&&typeof U=="function"&&te&&te.createHTMLDocument!==void 0;const j=v0,se=_0,fe=S0,xe=T0,Ee=N0,Re=x0,ke=w0,He=R0;let Ze=Bg,Le=null;const Nt=lt({},[...Dg,...rf,...of,...cf,...Lg]);let Fe=null;const On=lt({},[...zg,...uf,...Ug,...Qr]);let tt=Object.seal(zl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tn=null,Hn=null;const Vt=Object.seal(zl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Mn=!0,xn=!0,oa=!1,ca=!0,at=!1,Bt=!0,yt=!1,nn=!1,fn=null,kn=null,Cn=!1,Dn=!1,qn=!1,dn=!1,Ot=!0,an=!1;const Dt="user-content-";let Qn=!0,ie=!1,be={},oe=null;const ht=lt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Jt=null;const Wt=lt({},["audio","video","img","source","image","track"]);let A=null;const Q=lt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",De="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let it=Je,ve=!1,me=null;const ze=lt({},[de,De,Je],sf),Mt=yn(["mi","mo","mn","ms","mtext"]);let Et=lt({},Mt);const Vn=yn(["annotation-xml"]);let ya=lt({},Vn);const Ja=lt({},["title","style","font","a","script"]);let vn=null;const Lt=["application/xhtml+xml","text/html"],ln="text/html";let st=null,Jn=null;const el=r.createElement("form"),Ma=function(S){return S instanceof RegExp||S instanceof Function},Wa=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Jn&&Jn===S)return;(!S||typeof S!="object")&&(S={}),S=Tn(S),vn=Lt.indexOf(S.PARSER_MEDIA_TYPE)===-1?ln:S.PARSER_MEDIA_TYPE,st=vn==="application/xhtml+xml"?sf:Us,Le=Ri(S,"ALLOWED_TAGS",Nt,{transform:st}),Fe=Ri(S,"ALLOWED_ATTR",On,{transform:st}),me=Ri(S,"ALLOWED_NAMESPACES",ze,{transform:sf}),A=Ri(S,"ADD_URI_SAFE_ATTR",Q,{transform:st,base:Q}),Jt=Ri(S,"ADD_DATA_URI_TAGS",Wt,{transform:st,base:Wt}),oe=Ri(S,"FORBID_CONTENTS",ht,{transform:st}),tn=Ri(S,"FORBID_TAGS",Tn({}),{transform:st}),Hn=Ri(S,"FORBID_ATTR",Tn({}),{transform:st}),be=cn(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?Tn(S.USE_PROFILES):S.USE_PROFILES:!1,Mn=S.ALLOW_ARIA_ATTR!==!1,xn=S.ALLOW_DATA_ATTR!==!1,oa=S.ALLOW_UNKNOWN_PROTOCOLS||!1,ca=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,at=S.SAFE_FOR_TEMPLATES||!1,Bt=S.SAFE_FOR_XML!==!1,yt=S.WHOLE_DOCUMENT||!1,Dn=S.RETURN_DOM||!1,qn=S.RETURN_DOM_FRAGMENT||!1,dn=S.RETURN_TRUSTED_TYPE||!1,Cn=S.FORCE_BODY||!1,Ot=S.SANITIZE_DOM!==!1,an=S.SANITIZE_NAMED_PROPS||!1,Qn=S.KEEP_CONTENT!==!1,ie=S.IN_PLACE||!1,Ze=b0(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:Bg,it=typeof S.NAMESPACE=="string"?S.NAMESPACE:Je,Et=cn(S,"MATHML_TEXT_INTEGRATION_POINTS")&&S.MATHML_TEXT_INTEGRATION_POINTS&&typeof S.MATHML_TEXT_INTEGRATION_POINTS=="object"?Tn(S.MATHML_TEXT_INTEGRATION_POINTS):lt({},Mt),ya=cn(S,"HTML_INTEGRATION_POINTS")&&S.HTML_INTEGRATION_POINTS&&typeof S.HTML_INTEGRATION_POINTS=="object"?Tn(S.HTML_INTEGRATION_POINTS):lt({},Vn);const C=cn(S,"CUSTOM_ELEMENT_HANDLING")&&S.CUSTOM_ELEMENT_HANDLING&&typeof S.CUSTOM_ELEMENT_HANDLING=="object"?Tn(S.CUSTOM_ELEMENT_HANDLING):zl(null);if(tt=zl(null),cn(C,"tagNameCheck")&&Ma(C.tagNameCheck)&&(tt.tagNameCheck=C.tagNameCheck),cn(C,"attributeNameCheck")&&Ma(C.attributeNameCheck)&&(tt.attributeNameCheck=C.attributeNameCheck),cn(C,"allowCustomizedBuiltInElements")&&typeof C.allowCustomizedBuiltInElements=="boolean"&&(tt.allowCustomizedBuiltInElements=C.allowCustomizedBuiltInElements),En(tt),at&&(xn=!1),qn&&(Dn=!0),be&&(Le=lt({},Lg),Fe=zl(null),be.html===!0&&(lt(Le,Dg),lt(Fe,zg)),be.svg===!0&&(lt(Le,rf),lt(Fe,uf),lt(Fe,Qr)),be.svgFilters===!0&&(lt(Le,of),lt(Fe,uf),lt(Fe,Qr)),be.mathMl===!0&&(lt(Le,cf),lt(Fe,Ug),lt(Fe,Qr))),Vt.tagCheck=null,Vt.attributeCheck=null,cn(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?Vt.tagCheck=S.ADD_TAGS:ki(S.ADD_TAGS)&&(Le===Nt&&(Le=Tn(Le)),lt(Le,S.ADD_TAGS,st))),cn(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?Vt.attributeCheck=S.ADD_ATTR:ki(S.ADD_ATTR)&&(Fe===On&&(Fe=Tn(Fe)),lt(Fe,S.ADD_ATTR,st))),cn(S,"ADD_URI_SAFE_ATTR")&&ki(S.ADD_URI_SAFE_ATTR)&<(A,S.ADD_URI_SAFE_ATTR,st),cn(S,"FORBID_CONTENTS")&&ki(S.FORBID_CONTENTS)&&(oe===ht&&(oe=Tn(oe)),lt(oe,S.FORBID_CONTENTS,st)),cn(S,"ADD_FORBID_CONTENTS")&&ki(S.ADD_FORBID_CONTENTS)&&(oe===ht&&(oe=Tn(oe)),lt(oe,S.ADD_FORBID_CONTENTS,st)),Qn&&(Le["#text"]=!0),yt&<(Le,["html","head","body"]),Le.table&&(lt(Le,["tbody"]),delete tn.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw Xi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Xi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const X=ae;ae=S.TRUSTED_TYPES_POLICY;try{M=Oe("")}catch(ye){throw ae=X,ye}}else S.TRUSTED_TYPES_POLICY===null?(ae=void 0,M=""):(ae===void 0&&(ae=ge()),ae&&typeof M=="string"&&(M=Oe("")));yn&&yn(S),Jn=S},Ea=lt({},[...rf,...of,...y0]),ei=lt({},[...cf,...E0]),hn=function(S,C,X){return C.namespaceURI===Je?S==="svg":C.namespaceURI===de?S==="svg"&&(X==="annotation-xml"||Et[X]):!!Ea[S]},ua=function(S,C,X){return C.namespaceURI===Je?S==="math":C.namespaceURI===De?S==="math"&&ya[X]:!!ei[S]},va=function(S,C,X){return C.namespaceURI===De&&!ya[X]||C.namespaceURI===de&&!Et[X]?!1:!ei[S]&&(Ja[S]||!Ea[S])},_a=function(S){let C=U(S);(!C||!C.tagName)&&(C={namespaceURI:it,tagName:"template"});const X=Us(S.tagName),ye=Us(C.tagName);return me[S.namespaceURI]?S.namespaceURI===De?hn(X,C,ye):S.namespaceURI===de?ua(X,C,ye):S.namespaceURI===Je?va(X,C,ye):!!(vn==="application/xhtml+xml"&&me[S.namespaceURI]):!1},pt=function(S){Dl(i.removed,{element:S});try{U(S).removeChild(S)}catch{if(N(S),!U(S))throw Xi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ka=function(S){re(S);const C=R(S);if(C){const ye=[];Cl(C,Se=>{Dl(ye,Se)}),Cl(ye,Se=>{try{N(Se)}catch{}})}const X=L(S);if(X)for(let ye=X.length-1;ye>=0;--ye){const Se=X[ye],Ie=Se&&Se.name;if(typeof Ie=="string")try{S.removeAttribute(Ie)}catch{}}},wn=function(S,C){try{Dl(i.removed,{attribute:C.getAttributeNode(S),from:C})}catch{Dl(i.removed,{attribute:null,from:C})}if(C.removeAttribute(S),S==="is")if(Dn||qn)try{pt(C)}catch{}else try{C.setAttribute(S,"")}catch{}},fa=function(S){const C=L(S);if(C)for(let X=C.length-1;X>=0;--X){const ye=C[X],Se=ye&&ye.name;if(!(typeof Se!="string"||Fe[st(Se)]))try{S.removeAttribute(Se)}catch{}}},re=function(S){const C=[S];for(;C.length>0;){const X=C.pop();(le?le(X):X.nodeType)===Pn.element&&fa(X);const Se=R(X);if(Se)for(let Ie=Se.length-1;Ie>=0;--Ie)C.push(Se[Ie])}},we=function(S){if(!Bt)return;const C=[S];for(;C.length>0;){const X=C.pop(),ye=le?le(X):X.nodeType;if(ye===Pn.processingInstruction||ye===Pn.comment&&on(jg,X.data)){try{N(X)}catch{}continue}if(ye===Pn.element){const Ie=X,Xe=st(q?q(X):X.nodeName);try{Ie.hasAttribute&&Ie.hasAttribute("patchsrc")&&Ie.removeAttribute("patchsrc"),Ie.hasAttribute&&Ie.hasAttribute("for")&&Xe!=="label"&&Xe!=="output"&&Ie.removeAttribute("for")}catch{}}const Se=R(X);if(Se)for(let Ie=Se.length-1;Ie>=0;--Ie)C.push(Se[Ie])}},Ge=function(S){let C=null,X=null;if(Cn)S="<remove></remove>"+S;else{const Ie=Og(S,/^[\r\n\t ]+/);X=Ie&&Ie[0]}vn==="application/xhtml+xml"&&it===Je&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const ye=ae?Oe(S):S;if(it===Je)try{C=new b().parseFromString(ye,vn)}catch{}if(!C||!C.documentElement){C=te.createDocument(it,"template",null);try{C.documentElement.innerHTML=ve?M:ye}catch{}}const Se=C.body||C.documentElement;return S&&X&&Se.insertBefore(r.createTextNode(X),Se.childNodes[0]||null),it===Je?Be.call(C,yt?"html":"body")[0]:yt?C.documentElement:Se},rt=function(S){const C=J?J(S):S.ownerDocument;return ce.call(C||S,S,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},wt=function(S){return S=Ds(S,j," "),S=Ds(S,se," "),S=Ds(S,fe," "),S},Gt=function(S){var C;S.normalize();const X=J?J(S):S.ownerDocument,ye=ce.call(X||S,S,h.SHOW_TEXT|h.SHOW_COMMENT|h.SHOW_CDATA_SECTION|h.SHOW_PROCESSING_INSTRUCTION,null);let Se=ye.nextNode();for(;Se;)Se.data=wt(Se.data),Se=ye.nextNode();const Ie=(C=S.querySelectorAll)===null||C===void 0?void 0:C.call(S,"template");Ie&&Cl(Ie,Xe=>{It(Xe.content)&&Gt(Xe.content)})},sn=function(S){const C=q?q(S):null;return typeof C!="string"||st(C)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==L(S)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==le(S)||S.childNodes!==R(S)},It=function(S){if(!le||typeof S!="object"||S===null)return!1;try{return le(S)===Pn.documentFragment}catch{return!1}},ot=function(S){if(!le||typeof S!="object"||S===null)return!1;try{return typeof le(S)=="number"}catch{return!1}};function kt(K,S,C){K.length!==0&&Cl(K,X=>{X.call(i,S,C,Jn)})}const tl=function(S,C){return!!(Bt&&S.hasChildNodes()&&!ot(S.firstElementChild)&&on(Ig,S.textContent)&&on(Ig,S.innerHTML)||Bt&&S.namespaceURI===Je&&C==="style"&&ot(S.firstElementChild)||S.nodeType===Pn.processingInstruction||Bt&&S.nodeType===Pn.comment&&on(jg,S.data))},ti=function(S,C,X){if(!tn[C]&&ai(C)&&(tt.tagNameCheck instanceof RegExp&&on(tt.tagNameCheck,C)||tt.tagNameCheck instanceof Function&&tt.tagNameCheck(C)))return!1;if(Qn&&!oe[C]){const ye=U(S),Se=R(S);if(Se&&ye){const Ie=Se.length;for(let Xe=Ie-1;Xe>=0;--Xe){const ne=S===X?x(Se[Xe],!0):Se[Xe];ye.insertBefore(ne,k(S))}}}return pt(S),!0},ni=function(S,C,X,ye){return S.length===0?C:C===X||C===ye?Tn(C):C},Ca=function(S,C){if(kt(D.beforeSanitizeElements,S,null),S!==C&&U(S)===null)return ie&&re(S),!0;if(sn(S))return pt(S),!0;const X=st(q?q(S):S.nodeName);if(Le=ni(D.uponSanitizeElement,Le,Nt,fn),kt(D.uponSanitizeElement,S,{tagName:X,allowedTags:Le}),S!==C&&U(S)===null)return ie&&re(S),!0;if(tl(S,X))return pt(S),!0;if(tn[X]||!(Vt.tagCheck instanceof Function&&Vt.tagCheck(X))&&!Le[X]){const Se=ti(S,X,C);return Se===!1&&kt(D.afterSanitizeElements,S,null),Se}if((le?le(S):S.nodeType)===Pn.element&&!_a(S)||(X==="noscript"||X==="noembed"||X==="noframes")&&on(O0,S.innerHTML))return pt(S),!0;if(at&&S.nodeType===Pn.text){const Se=wt(S.textContent);S.textContent!==Se&&(Dl(i.removed,{element:S.cloneNode()}),S.textContent=Se)}return kt(D.afterSanitizeElements,S,null),!1},nl=function(S,C,X){if(Hn[C]||Bt&&C==="patchsrc"||Bt&&C==="for"&&S!=="label"&&S!=="output"||Ot&&(C==="id"||C==="name")&&(X in r||X in el))return!1;const ye=Fe[C]||Vt.attributeCheck instanceof Function&&Vt.attributeCheck(C,S);if(!(xn&&on(xe,C))){if(!(Mn&&on(Ee,C))){if(ye){if(!A[C]){if(!on(Ze,Ds(X,ke,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&S!=="script"&&Mg(X,"data:")===0&&Jt[S])){if(!(oa&&!on(Re,Ds(X,ke,"")))){if(X)return!1}}}}}else if(!(ai(S)&&(tt.tagNameCheck instanceof RegExp&&on(tt.tagNameCheck,S)||tt.tagNameCheck instanceof Function&&tt.tagNameCheck(S))&&(tt.attributeNameCheck instanceof RegExp&&on(tt.attributeNameCheck,C)||tt.attributeNameCheck instanceof Function&&tt.attributeNameCheck(C,S))||C==="is"&&tt.allowCustomizedBuiltInElements&&(tt.tagNameCheck instanceof RegExp&&on(tt.tagNameCheck,X)||tt.tagNameCheck instanceof Function&&tt.tagNameCheck(X))))return!1}}return!0},_n=lt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ai=function(S){return!_n[Us(S)]&&on(He,S)},Da=function(S,C,X,ye){if(ae&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!X)switch(v.getAttributeType(S,C)){case"TrustedHTML":return Oe(ye);case"TrustedScriptURL":return Ce(ye)}return ye},ii=function(S,C,X,ye){try{X?S.setAttributeNS(X,C,ye):S.setAttribute(C,ye),sn(S)?pt(S):Rg(i.removed)}catch{wn(C,S)}},$t=function(S){kt(D.beforeSanitizeAttributes,S,null);const C=S.attributes;if(!C||sn(S))return;Fe=ni(D.uponSanitizeAttribute,Fe,On,kn);const X={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Fe,forceKeepAttr:void 0};let ye=C.length;const Se=st(S.nodeName);for(;ye--;){const Ie=C[ye],Xe=Ie.name,ne=Ie.namespaceURI,pe=Ie.value,Ae=st(Xe),Ye=pe;let Ke=Xe==="value"?Ye:f0(Ye);if(X.attrName=Ae,X.attrValue=Ke,X.keepAttr=!0,X.forceKeepAttr=void 0,kt(D.uponSanitizeAttribute,S,X),Ke=X.attrValue,an&&(Ae==="id"||Ae==="name")&&Mg(Ke,Dt)!==0&&(wn(Xe,S),Ke=Dt+Ke),Bt&&on(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ke)){wn(Xe,S);continue}if(Ae==="attributename"&&Og(Ke,"href")){wn(Xe,S);continue}if(!X.forceKeepAttr){if(!X.keepAttr){wn(Xe,S);continue}if(!ca&&on(M0,Ke)){wn(Xe,S);continue}if(at&&(Ke=wt(Ke)),!nl(Se,Ae,Ke)){wn(Xe,S);continue}Ke=Da(Se,Ae,ne,Ke),Ke!==Ye&&ii(S,Xe,ne,Ke)}}kt(D.afterSanitizeAttributes,S,null)},La=function(S){let C=null;const X=rt(S);for(kt(D.beforeSanitizeShadowDOM,S,null);C=X.nextNode();)if(kt(D.uponSanitizeShadowNode,C,null),Ca(C,S),$t(C),It(C.content)&&La(C.content),(le?le(C):C.nodeType)===Pn.element){const Se=$(C);It(Se)&&(Sa(Se),La(Se))}kt(D.afterSanitizeShadowDOM,S,null)},Sa=function(S){const C=[{node:S,shadow:null}];for(;C.length>0;){const X=C.pop();if(X.shadow){La(X.shadow);continue}const ye=X.node,Ie=(le?le(ye):ye.nodeType)===Pn.element,Xe=R(ye);if(Xe)for(let ne=Xe.length-1;ne>=0;--ne)C.push({node:Xe[ne],shadow:null});if(Ie){const ne=q?q(ye):null;if(typeof ne=="string"&&st(ne)==="template"){const pe=ye.content;It(pe)&&C.push({node:pe,shadow:null})}}if(Ie){const ne=$(ye);It(ne)&&C.push({node:null,shadow:ne},{node:ne,shadow:null})}}};return i.sanitize=function(K){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,X=null,ye=null,Se=null;if(ve=!K,ve&&(K="<!-->"),typeof K!="string"&&!ot(K)&&(K=g0(K),typeof K!="string"))throw Xi("dirty is not a string, aborting");if(!i.isSupported)return K;nn?(Le=fn,Fe=kn):Wa(S),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(Le=Tn(Le)),D.uponSanitizeAttribute.length>0&&(Fe=Tn(Fe)),i.removed=[];const Ie=ie&&typeof K!="string"&&ot(K);if(Ie){we(K);const pe=q?q(K):K.nodeName;if(typeof pe=="string"){const Ae=st(pe);if(!Le[Ae]||tn[Ae])throw ka(K),Xi("root node is forbidden and cannot be sanitized in-place")}if(sn(K))throw ka(K),Xi("root node is clobbered and cannot be sanitized in-place");try{Sa(K)}catch(Ae){throw ka(K),Ae}}else if(ot(K))C=Ge("<!---->"),X=C.ownerDocument.importNode(K,!0),X.nodeType===Pn.element&&X.nodeName==="BODY"||X.nodeName==="HTML"?C=X:C.appendChild(X),Sa(X);else{if(!Dn&&!at&&!yt&&K.indexOf("<")===-1)return ae&&dn?Oe(K):K;if(C=Ge(K),!C)return Dn?null:dn?M:""}C&&Cn&&pt(C.firstChild);const Xe=Ie?K:C;try{const pe=rt(Xe);for(;ye=pe.nextNode();)Ca(ye,Xe),$t(ye),It(ye.content)&&La(ye.content)}catch(pe){throw Ie&&(ka(K),Cl(i.removed,Ae=>{Ae.element&&re(Ae.element)})),pe}if(Ie)return Cl(i.removed,pe=>{pe.element&&re(pe.element)}),at&&Gt(K),K;if(Dn){if(at&&Gt(C),qn)for(Se=Te.call(C.ownerDocument);C.firstChild;)Se.appendChild(C.firstChild);else Se=C;return(Fe.shadowroot||Fe.shadowrootmode)&&(Se=_.call(l,Se,!0)),Se}let ne=yt?C.outerHTML:C.innerHTML;return yt&&Le["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&on(A0,C.ownerDocument.doctype.name)&&(ne="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
|
|
171
|
-
`+ne),at&&(ne=wt(ne)),ae&&dn?Oe(ne):ne},i.setConfig=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Wa(K),nn=!0,fn=Le,kn=Fe},i.clearConfig=function(){Jn=null,nn=!1,fn=null,kn=null,ae=Y,M=""},i.isValidAttribute=function(K,S,C){Jn||Wa({});const X=st(K),ye=st(S);return nl(X,ye,C)},i.addHook=function(K,S){typeof S=="function"&&cn(D,K)&&Dl(D[K],S)},i.removeHook=function(K,S){if(cn(D,K)){if(S!==void 0){const C=c0(D[K],S);return C===-1?void 0:u0(D[K],C,1)[0]}return Rg(D[K])}},i.removeHooks=function(K){cn(D,K)&&(D[K]=[])},i.removeAllHooks=function(){D=Hg()},i}var D0=_b();function Cf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Wi=Cf();function Sb(s){Wi=s}var Pi={exec:()=>null};function Ll(s){let i=[];return r=>{let l=Math.max(0,Math.min(3,r-1)),u=i[l];return u||(u=s(l),i[l]=u),u}}function Ve(s,i=""){let r=typeof s=="string"?s:s.source,l={replace:(u,d)=>{let g=typeof d=="string"?d:d.source;return g=g.replace(Nn.caret,"$1"),r=r.replace(u,g),l},getRegex:()=>new RegExp(r,i)};return l}var L0=((s="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+s)}catch{return!1}})(),Nn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:s=>new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ll(s=>new RegExp(`^ {0,${s}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ll(s=>new RegExp(`^ {0,${s}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ll(s=>new RegExp(`^ {0,${s}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ll(s=>new RegExp(`^ {0,${s}}#`)),htmlBeginRegex:Ll(s=>new RegExp(`^ {0,${s}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ll(s=>new RegExp(`^ {0,${s}}>`))},z0=/^(?:[ \t]*(?:\n|$))+/,U0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,B0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,js=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,I0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Df=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Tb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Nb=Ve(Tb).replace(/bull/g,Df).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(),j0=Ve(Tb).replace(/bull/g,Df).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(),Lf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,H0=/^[^\n]+/,zf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,q0=Ve(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",zf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),G0=Ve(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Df).getRegex(),ro="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",Uf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$0=Ve("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Uf).replace("tag",ro).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xb=s=>Ve(Lf).replace("hr",js).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",ro).getRegex(),Y0=xb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),F0=xb(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),K0=Ve(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",F0).getRegex(),Bf={blockquote:K0,code:U0,def:q0,fences:B0,heading:I0,hr:js,html:$0,lheading:Nb,list:G0,newline:z0,paragraph:Y0,table:Pi,text:H0},qg=Ve("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",js).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",ro).getRegex(),Z0={...Bf,lheading:j0,table:qg,paragraph:Ve(Lf).replace("hr",js).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qg).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",ro).getRegex()},X0={...Bf,html:Ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Uf).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:Pi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ve(Lf).replace("hr",js).replace("heading",` *#{1,6} *[^
|
|
172
|
-
]`).replace("lheading",Nb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},P0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Q0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,wb=/^( {2,}|\\)\n(?!\s*$)/,V0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Va=/[\p{P}\p{S}]/u,Hl=/[\s\p{P}\p{S}]/u,Hs=/[^\s\p{P}\p{S}]/u,J0=Ve(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Hl).getRegex(),W0=/[\p{Pi}\p{Ps}"']/u,Ab=/(?!~)[\p{P}\p{S}]/u,eS=/(?!~)[\s\p{P}\p{S}]/u,tS=/(?:[^\s\p{P}\p{S}]|~)/u,nS=Ve(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",L0?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Rb=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,aS=Ve(Rb,"u").replace(/punct/g,Va).getRegex(),iS=Ve(Rb,"u").replace(/punct/g,Ab).getRegex(),lS=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,sS=Ve(lS,"u").replace(/openQuote/g,W0).replace(/punct/g,Va).getRegex(),Ob="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",rS=Ve(Ob,"gu").replace(/notPunctSpace/g,Hs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),oS=Ve(Ob,"gu").replace(/notPunctSpace/g,tS).replace(/punctSpace/g,eS).replace(/punct/g,Ab).getRegex(),cS="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",uS=Ve(cS,"gu").replace(/notPunctSpace/g,Hs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),fS=Ve("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Hs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),dS="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",hS=Ve(dS,"gu").replace(/notPunctSpace/g,Hs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),pS=Ve(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Va).getRegex(),mS="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",gS=Ve(mS,"gu").replace(/notPunctSpace/g,Hs).replace(/punctSpace/g,Hl).replace(/punct/g,Va).getRegex(),bS=Ve(/\\(punct)/,"gu").replace(/punct/g,Va).getRegex(),yS=Ve(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ES=Ve(Uf).replace("(?:-->|$)","-->").getRegex(),vS=Ve("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ES).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),no=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,_S=Ve(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",no).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Mb=Ve(/^!?\[(label)\]\[(ref)\]/).replace("label",no).replace("ref",zf).getRegex(),kb=Ve(/^!?\[(ref)\](?:\[\])?/).replace("ref",zf).getRegex(),SS=Ve("reflink|nolink(?!\\()","g").replace("reflink",Mb).replace("nolink",kb).getRegex(),Gg=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,If={_backpedal:Pi,anyPunctuation:bS,autolink:yS,blockSkip:nS,br:wb,code:Q0,del:Pi,delLDelim:Pi,delRDelim:Pi,emStrongLDelim:aS,emStrongRDelimAst:rS,emStrongRDelimUnd:fS,escape:P0,link:_S,nolink:kb,punctuation:J0,reflink:Mb,reflinkSearch:SS,tag:vS,text:V0,url:Pi},TS={...If,emStrongLDelim:sS,emStrongRDelimAst:uS,emStrongRDelimUnd:hS,link:Ve(/^!?\[(label)\]\((.*?)\)/).replace("label",no).getRegex(),reflink:Ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",no).getRegex()},bf={...If,emStrongRDelimAst:oS,emStrongLDelim:iS,delLDelim:pS,delRDelim:gS,url:Ve(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Gg).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ve(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Gg).getRegex()},NS={...bf,br:Ve(wb).replace("{2,}","*").getRegex(),text:Ve(bf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Vr={normal:Bf,gfm:Z0,pedantic:X0},zs={normal:If,gfm:bf,breaks:NS,pedantic:TS},xS={"&":"&","<":"<",">":">",'"':""","'":"'"},$g=s=>xS[s];function Ra(s,i){if(i){if(Nn.escapeTest.test(s))return s.replace(Nn.escapeReplace,$g)}else if(Nn.escapeTestNoEncode.test(s))return s.replace(Nn.escapeReplaceNoEncode,$g);return s}function Yg(s){try{s=encodeURI(s).replace(Nn.percentDecode,"%")}catch{return null}return s}function Fg(s,i){var d;let r=s.replace(Nn.findPipe,(g,E,h)=>{let m=!1,b=E;for(;--b>=0&&h[b]==="\\";)m=!m;return m?"|":" |"}),l=r.split(Nn.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(Nn.slashPipe,"|");return l}function Oi(s,i,r){let l=s.length;if(l===0)return"";let u=0;for(;u<l&&s.charAt(l-u-1)===i;)u++;return s.slice(0,l-u)}function Kg(s){let i=s.split(`
|
|
173
|
-
`),r=i.length-1;for(;r>=0&&Nn.blankLine.test(i[r]);)r--;return i.length-r<=2?s:i.slice(0,r+1).join(`
|
|
174
|
-
`)}function wS(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 AS(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 Zg(s,i,r,l,u){let d=i.href,g=i.title||null,E=s[1].replace(u.other.outputLinkReplace,"$1");l.state.inLink=!0;let h={type:s[0].charAt(0)==="!"?"image":"link",raw:r,href:d,title:g,text:E,tokens:l.inlineTokens(E)};return l.state.inLink=!1,h}function RS(s,i,r){let l=s.match(r.other.indentCodeCompensation);if(l===null)return i;let u=l[1];return i.split(`
|
|
175
|
-
`).map(d=>{let g=d.match(r.other.beginningSpace);if(g===null)return d;let[E]=g;return E.length>=u.length?d.slice(u.length):d}).join(`
|
|
176
|
-
`)}var ao=class{constructor(s){Tt(this,"options");Tt(this,"rules");Tt(this,"lexer");this.options=s||Wi}space(s){let i=this.rules.block.newline.exec(s);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(s){let i=this.rules.block.code.exec(s);if(i){let r=this.options.pedantic?i[0]:Kg(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=RS(r,i[3]||"",this.rules);return{type:"code",raw:r,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:l}}}heading(s){let i=this.rules.block.heading.exec(s);if(i){let r=i[2].trim();if(this.rules.other.endingHash.test(r)){let l=Oi(r,"#");(this.options.pedantic||!l||this.rules.other.endingSpaceChar.test(l))&&(r=l.trim())}return{type:"heading",raw:Oi(i[0],`
|
|
177
|
-
`),depth:i[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(s){let i=this.rules.block.hr.exec(s);if(i)return{type:"hr",raw:Oi(i[0],`
|
|
178
|
-
`)}}blockquote(s){let i=this.rules.block.blockquote.exec(s);if(i){let r=Oi(i[0],`
|
|
179
|
-
`).split(`
|
|
180
|
-
`),l="",u="",d=[];for(;r.length>0;){let g=!1,E=[],h;for(h=0;h<r.length;h++)if(this.rules.other.blockquoteStart.test(r[h]))E.push(r[h]),g=!0;else if(!g)E.push(r[h]);else break;r=r.slice(h);let m=E.join(`
|
|
181
|
-
`),b=m.replace(this.rules.other.blockquoteSetextReplace,`
|
|
182
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");l=l?`${l}
|
|
183
|
-
${m}`:m,u=u?`${u}
|
|
184
|
-
${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 T=d.at(-1);if((T==null?void 0:T.type)==="code")break;if((T==null?void 0:T.type)==="blockquote"){let x=T,N=r.join(`
|
|
185
|
-
`),k=x.raw+`
|
|
186
|
-
`+N.replace(this.rules.other.blockquoteSetextReplace2,""),R=this.blockquote(k);d[d.length-1]=R,l=`${l}
|
|
187
|
-
${N}`,u=u.substring(0,u.length-x.text.length)+R.text;break}else if((T==null?void 0:T.type)==="list"){let x=T,N=x.raw+`
|
|
188
|
-
`+r.join(`
|
|
189
|
-
`),k=this.list(N);d[d.length-1]=k,l=l.substring(0,l.length-T.raw.length)+k.raw,u=u.substring(0,u.length-x.raw.length)+k.raw,r=N.substring(d.at(-1).raw.length).split(`
|
|
190
|
-
`);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 h=!1,m="",b="";if(!(i=d.exec(s))||this.rules.block.hr.test(s))break;m=i[0],s=s.substring(m.length);let v=AS(i[2].split(`
|
|
191
|
-
`,1)[0],i[1].length),T=s.split(`
|
|
192
|
-
`,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(T)&&(m+=T+`
|
|
193
|
-
`,s=s.substring(T.length+1),h=!0),!h){let k=this.rules.other.nextBulletRegex(N),R=this.rules.other.hrRegex(N),U=this.rules.other.fencesBeginRegex(N),$=this.rules.other.headingBeginRegex(N),L=this.rules.other.htmlBeginRegex(N),le=this.rules.other.blockquoteBeginRegex(N);for(;s;){let q=s.split(`
|
|
194
|
-
`,1)[0],J;if(T=q,this.options.pedantic?(T=T.replace(this.rules.other.listReplaceNesting," "),J=T):J=T.replace(this.rules.other.tabCharGlobal," "),U.test(T)||$.test(T)||L.test(T)||le.test(T)||k.test(T)||R.test(T))break;if(J.search(this.rules.other.nonSpaceChar)>=N||!T.trim())b+=`
|
|
195
|
-
`+J.slice(N);else{if(x||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||U.test(v)||$.test(v)||R.test(v))break;b+=`
|
|
196
|
-
`+T}x=!T.trim(),m+=q+`
|
|
197
|
-
`,s=s.substring(q.length+1),v=J.slice(N)}}u.loose||(g?u.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(g=!0)),u.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(b),loose:!1,text:b,tokens:[]}),u.raw+=m}let E=u.items.at(-1);if(E)E.raw=E.raw.trimEnd(),E.text=E.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let h of u.items)if(this.lexer.state.top=!1,h.tokens=this.lexer.blockTokens(h.text,[]),!u.loose){let m=h.tokens.filter(v=>v.type==="space"),b=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));u.loose=b}for(let h of u.items){let m=h.tokens[0];if(h.task&&((m==null?void 0:m.type)==="text"||(m==null?void 0:m.type)==="paragraph")){h.text=h.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}let b=this.rules.other.listTaskCheckbox.exec(h.raw);if(b){let v={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};h.checked=v.checked,u.loose?h.tokens[0]&&["paragraph","text"].includes(h.tokens[0].type)&&"tokens"in h.tokens[0]&&h.tokens[0].tokens?(h.tokens[0].raw=v.raw+h.tokens[0].raw,h.tokens[0].text=v.raw+h.tokens[0].text,h.tokens[0].tokens.unshift(v)):h.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):h.tokens.unshift(v)}}else h.task&&(h.task=!1)}if(u.loose)for(let h of u.items){h.loose=!0;for(let m of h.tokens)m.type==="text"&&(m.type="paragraph")}return u}}html(s){let i=this.rules.block.html.exec(s);if(i){let r=Kg(i[0]);return{type:"html",block:!0,raw:r,pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:r}}}def(s){let i=this.rules.block.def.exec(s);if(i){let r=i[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),l=i[2]?i[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:r,raw:Oi(i[0],`
|
|
198
|
-
`),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=Fg(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(`
|
|
199
|
-
`):[],d={type:"table",raw:Oi(i[0],`
|
|
200
|
-
`),header:[],align:[],rows:[]};if(r.length===l.length){for(let E of l)this.rules.other.tableAlignRight.test(E)?d.align.push("right"):this.rules.other.tableAlignCenter.test(E)?d.align.push("center"):this.rules.other.tableAlignLeft.test(E)?d.align.push("left"):d.align.push(null);for(let E=0;E<r.length;E++)d.header.push({text:r[E],tokens:this.lexer.inline(r[E]),header:!0,align:d.align[E]});for(let E of u)d.rows.push(Fg(E,d.header.length).map((h,m)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:d.align[m]})));return d}}lheading(s){let i=this.rules.block.lheading.exec(s);if(i){let r=i[1].trim();return{type:"heading",raw:Oi(i[0],`
|
|
201
|
-
`),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)===`
|
|
202
|
-
`?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=Oi(r.slice(0,-1),"\\");if((r.length-d.length)%2===0)return}else{let d=wS(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)),Zg(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 Zg(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,E=u,h=0,m=l[0][0],b=r===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,i=i.slice(-1*s.length+u);(l=v.exec(i))!==null;){if(d=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!d)continue;if(g=[...d].length,l[3]||l[4]){E+=g;continue}else if(l[5]||l[6]){if(u%3&&!((u+g)%3)){h+=g;continue}if(b)break}if(E-=g,E>0)continue;g=Math.min(g,g+E+h);let T=[...l[0]][0].length,x=s.slice(0,u+l.index+T+g);if(Math.min(u,g)%2){let k=x.slice(1,-1);return{type:"em",raw:x,text:k,tokens:this.lexer.inlineTokens(k)}}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,E=u,h=this.rules.inline.delRDelim;for(h.lastIndex=0,i=i.slice(-1*s.length+u);(l=h.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]){E+=g;continue}if(E-=g,E>0)continue;g=Math.min(g,g+E);let m=[...l[0]][0].length,b=s.slice(0,u+l.index+m+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 yf{constructor(i){Tt(this,"tokens");Tt(this,"options");Tt(this,"state");Tt(this,"inlineQueue");Tt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=i||Wi,this.options.tokenizer=this.options.tokenizer||new ao,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:Nn,block:Vr.normal,inline:zs.normal};this.options.pedantic?(r.block=Vr.pedantic,r.inline=zs.pedantic):this.options.gfm&&(r.block=Vr.gfm,this.options.breaks?r.inline=zs.breaks:r.inline=zs.gfm),this.tokenizer.rules=r}static get rules(){return{block:Vr,inline:zs}}static lex(i,r){return new yf(r).lex(i)}static lexInline(i,r){return new yf(r).inlineTokens(i)}lex(i){i=i.replace(Nn.carriageReturn,`
|
|
203
|
-
`),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,E;this.tokenizer.lexer=this,this.options.pedantic&&(i=i.replace(Nn.tabCharGlobal," ").replace(Nn.spaceLine,""));let u=1/0;for(;i;){if(i.length<u)u=i.length;else{this.infiniteLoopError(i.charCodeAt(0));break}let h;if((g=(d=this.options.extensions)==null?void 0:d.block)!=null&&g.some(b=>(h=b.call({lexer:this},i,r))?(i=i.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.space(i)){i=i.substring(h.raw.length);let b=r.at(-1);h.raw.length===1&&b!==void 0?b.raw+=`
|
|
204
|
-
`:r.push(h);continue}if(h=this.tokenizer.code(i)){i=i.substring(h.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(`
|
|
205
|
-
`)?"":`
|
|
206
|
-
`)+h.raw,b.text+=`
|
|
207
|
-
`+h.text,this.inlineQueue.at(-1).src=b.text):r.push(h);continue}if(h=this.tokenizer.fences(i)){i=i.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.heading(i)){i=i.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.hr(i)){i=i.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.blockquote(i)){i=i.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.list(i)){i=i.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.html(i)){i=i.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.def(i)){i=i.substring(h.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(`
|
|
208
|
-
`)?"":`
|
|
209
|
-
`)+h.raw,b.text+=`
|
|
210
|
-
`+h.raw,this.inlineQueue.at(-1).src=b.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title},r.push(h));continue}if(h=this.tokenizer.table(i)){i=i.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.lheading(i)){i=i.substring(h.raw.length),r.push(h);continue}let m=i;if((E=this.options.extensions)!=null&&E.startBlock){let b=1/0,v=i.slice(1),T;this.options.extensions.startBlock.forEach(x=>{T=x.call({lexer:this},v),typeof T=="number"&&T>=0&&(b=Math.min(b,T))}),b<1/0&&b>=0&&(m=i.substring(0,b+1))}if(this.state.top&&(h=this.tokenizer.paragraph(m))){let b=r.at(-1);l&&(b==null?void 0:b.type)==="paragraph"?(b.raw+=(b.raw.endsWith(`
|
|
211
|
-
`)?"":`
|
|
212
|
-
`)+h.raw,b.text+=`
|
|
213
|
-
`+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(h),l=m.length!==i.length,i=i.substring(h.raw.length);continue}if(h=this.tokenizer.text(i)){i=i.substring(h.raw.length);let b=r.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=(b.raw.endsWith(`
|
|
214
|
-
`)?"":`
|
|
215
|
-
`)+h.raw,b.text+=`
|
|
216
|
-
`+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=b.text):r.push(h);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 E,h,m,b,v;this.tokenizer.lexer=this;let l=i;if(this.tokens.links){let T=Object.keys(this.tokens.links);T.length>0&&(l=l.replace(this.tokenizer.rules.inline.reflinkSearch,x=>T.includes(x.slice(x.lastIndexOf("[")+1,-1))?"["+"a".repeat(x.length-2)+"]":x))}l=l.replace(this.tokenizer.rules.inline.anyPunctuation,T=>"+".repeat(T.length)),l=l.replace(this.tokenizer.rules.inline.blockSkip,(T,x,N)=>{let k=N?N.length:0;return T.slice(0,k)+"["+"a".repeat(T.length-k-2)+"]"}),l=((h=(E=this.options.hooks)==null?void 0:E.emStrongMask)==null?void 0:h.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 T;if((b=(m=this.options.extensions)==null?void 0:m.inline)!=null&&b.some(N=>(T=N.call({lexer:this},i,r))?(i=i.substring(T.raw.length),r.push(T),!0):!1))continue;if(T=this.tokenizer.escape(i)){i=i.substring(T.raw.length),r.push(T);continue}if(T=this.tokenizer.tag(i)){i=i.substring(T.raw.length),r.push(T);continue}if(T=this.tokenizer.link(i)){i=i.substring(T.raw.length),r.push(T);continue}if(T=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(T.raw.length);let N=r.at(-1);T.type==="text"&&(N==null?void 0:N.type)==="text"?(N.raw+=T.raw,N.text+=T.text):r.push(T);continue}if(T=this.tokenizer.emStrong(i,l,d)){i=i.substring(T.raw.length),r.push(T);continue}if(T=this.tokenizer.codespan(i)){i=i.substring(T.raw.length),r.push(T);continue}if(T=this.tokenizer.br(i)){i=i.substring(T.raw.length),r.push(T);continue}if(T=this.tokenizer.del(i,l,d)){i=i.substring(T.raw.length),r.push(T);continue}if(T=this.tokenizer.autolink(i)){i=i.substring(T.raw.length),r.push(T);continue}if(!this.state.inLink&&(T=this.tokenizer.url(i))){i=i.substring(T.raw.length),r.push(T);continue}let x=i;if((v=this.options.extensions)!=null&&v.startInline){let N=1/0,k=i.slice(1),R;this.options.extensions.startInline.forEach(U=>{R=U.call({lexer:this},k),typeof R=="number"&&R>=0&&(N=Math.min(N,R))}),N<1/0&&N>=0&&(x=i.substring(0,N+1))}if(T=this.tokenizer.inlineText(x)){i=i.substring(T.raw.length),T.raw.slice(-1)!=="_"&&(d=T.raw.slice(-1)),u=!0;let N=r.at(-1);(N==null?void 0:N.type)==="text"?(N.raw+=T.raw,N.text+=T.text):r.push(T);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)}},io=class{constructor(s){Tt(this,"options");Tt(this,"parser");this.options=s||Wi}space(s){return""}code({text:s,lang:i,escaped:r}){var d;let l=(d=(i||"").match(Nn.notSpaceStart))==null?void 0:d[0],u=s.replace(Nn.endingNewline,"")+`
|
|
217
|
-
`;return l?'<pre><code class="language-'+Ra(l)+'">'+(r?u:Ra(u,!0))+`</code></pre>
|
|
218
|
-
`:"<pre><code>"+(r?u:Ra(u,!0))+`</code></pre>
|
|
219
|
-
`}blockquote({tokens:s}){return`<blockquote>
|
|
220
|
-
${this.parser.parse(s)}</blockquote>
|
|
221
|
-
`}html({text:s}){return s}def(s){return""}heading({tokens:s,depth:i}){return`<h${i}>${this.parser.parseInline(s)}</h${i}>
|
|
222
|
-
`}hr(s){return`<hr>
|
|
223
|
-
`}list(s){let i=s.ordered,r=s.start,l="";for(let g=0;g<s.items.length;g++){let E=s.items[g];l+=this.listitem(E)}let u=i?"ol":"ul",d=i&&r!==1?' start="'+r+'"':"";return"<"+u+d+`>
|
|
224
|
-
`+l+"</"+u+`>
|
|
225
|
-
`}listitem(s){return`<li>${this.parser.parse(s.tokens)}</li>
|
|
226
|
-
`}checkbox({checked:s}){return"<input "+(s?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:s}){return`<p>${this.parser.parseInline(s)}</p>
|
|
227
|
-
`}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>
|
|
228
|
-
<thead>
|
|
229
|
-
`+i+`</thead>
|
|
230
|
-
`+l+`</table>
|
|
231
|
-
`}tablerow({text:s}){return`<tr>
|
|
232
|
-
${s}</tr>
|
|
233
|
-
`}tablecell(s){let i=this.parser.parseInline(s.tokens),r=s.header?"th":"td";return(s.align?`<${r} align="${s.align}">`:`<${r}>`)+i+`</${r}>
|
|
234
|
-
`}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=Yg(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=Yg(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)}},jf=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 Ef{constructor(i){Tt(this,"options");Tt(this,"renderer");Tt(this,"textRenderer");this.options=i||Wi,this.options.renderer=this.options.renderer||new io,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new jf}static parse(i,r){return new Ef(r).parse(i)}static parseInline(i,r){return new Ef(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 h=g,m=this.options.extensions.renderers[h.type].call({parser:this},h);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(h.type)){r+=m||"";continue}}let E=g;switch(E.type){case"space":{r+=this.renderer.space(E);break}case"hr":{r+=this.renderer.hr(E);break}case"heading":{r+=this.renderer.heading(E);break}case"code":{r+=this.renderer.code(E);break}case"table":{r+=this.renderer.table(E);break}case"blockquote":{r+=this.renderer.blockquote(E);break}case"list":{r+=this.renderer.list(E);break}case"checkbox":{r+=this.renderer.checkbox(E);break}case"html":{r+=this.renderer.html(E);break}case"def":{r+=this.renderer.def(E);break}case"paragraph":{r+=this.renderer.paragraph(E);break}case"text":{r+=this.renderer.text(E);break}default:{let h='Token with "'+E.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}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 E=i[g];if((d=(u=this.options.extensions)==null?void 0:u.renderers)!=null&&d[E.type]){let m=this.options.extensions.renderers[E.type].call({parser:this},E);if(m!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(E.type)){l+=m||"";continue}}let h=E;switch(h.type){case"escape":{l+=r.text(h);break}case"html":{l+=r.html(h);break}case"link":{l+=r.link(h);break}case"image":{l+=r.image(h);break}case"checkbox":{l+=r.checkbox(h);break}case"strong":{l+=r.strong(h);break}case"em":{l+=r.em(h);break}case"codespan":{l+=r.codespan(h);break}case"br":{l+=r.br(h);break}case"del":{l+=r.del(h);break}case"text":{l+=r.text(h);break}default:{let m='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return l}},Wr,Bs=(Wr=class{constructor(s){Tt(this,"options");Tt(this,"block");this.options=s||Wi}preprocess(s){return s}postprocess(s){return s}processAllTokens(s){return s}emStrongMask(s){return s}provideLexer(s=this.block){return s?ga.lex:ga.lexInline}provideParser(s=this.block){return s?ba.parse:ba.parseInline}},Tt(Wr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Tt(Wr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Wr),OS=class{constructor(...s){Tt(this,"defaults",Cf());Tt(this,"options",this.setOptions);Tt(this,"parse",this.parseMarkdown(!0));Tt(this,"parseInline",this.parseMarkdown(!1));Tt(this,"Parser",ba);Tt(this,"Renderer",io);Tt(this,"TextRenderer",jf);Tt(this,"Lexer",ga);Tt(this,"Tokenizer",ao);Tt(this,"Hooks",Bs);this.use(...s)}walkTokens(s,i){var l,u;let r=[];for(let d of s)switch(r=r.concat(i.call(this,d)),d.type){case"table":{let g=d;for(let E of g.header)r=r.concat(this.walkTokens(E.tokens,i));for(let E of g.rows)for(let h of E)r=r.concat(this.walkTokens(h.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(E=>{let h=g[E].flat(1/0);r=r.concat(this.walkTokens(h,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 E=u.renderer.apply(this,g);return E===!1&&(E=d.apply(this,g)),E}: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 io(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,E=r.renderer[g],h=u[g];u[g]=(...m)=>{let b=E.apply(u,m);return b===!1&&(b=h.apply(u,m)),b||""}}l.renderer=u}if(r.tokenizer){let u=this.defaults.tokenizer||new ao(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,E=r.tokenizer[g],h=u[g];u[g]=(...m)=>{let b=E.apply(u,m);return b===!1&&(b=h.apply(u,m)),b}}l.tokenizer=u}if(r.hooks){let u=this.defaults.hooks||new Bs;for(let d in r.hooks){if(!(d in u))throw new Error(`hook '${d}' does not exist`);if(["options","block"].includes(d))continue;let g=d,E=r.hooks[g],h=u[g];Bs.passThroughHooks.has(d)?u[g]=m=>{if(this.defaults.async&&Bs.passThroughHooksRespectAsync.has(d))return(async()=>{let v=await E.call(u,m);return h.call(u,v)})();let b=E.call(u,m);return h.call(u,b)}:u[g]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await E.apply(u,m);return v===!1&&(v=await h.apply(u,m)),v})();let b=E.apply(u,m);return b===!1&&(b=h.apply(u,m)),b}}l.hooks=u}if(r.walkTokens){let u=this.defaults.walkTokens,d=r.walkTokens;l.walkTokens=function(g){let E=[];return E.push(d.call(this,g)),u&&(E=E.concat(u.call(this,g))),E}}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,E=await(u.hooks?await u.hooks.provideLexer(s):s?ga.lex:ga.lexInline)(g,u),h=u.hooks?await u.hooks.processAllTokens(E):E;u.walkTokens&&await Promise.all(this.walkTokens(h,u.walkTokens));let m=await(u.hooks?await u.hooks.provideParser(s):s?ba.parse:ba.parseInline)(h,u);return u.hooks?await u.hooks.postprocess(m):m})().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 E=(u.hooks?u.hooks.provideParser(s):s?ba.parse:ba.parseInline)(g,u);return u.hooks&&(E=u.hooks.postprocess(E)),E}catch(g){return d(g)}}}onError(s,i){return r=>{if(r.message+=`
|
|
235
|
-
Please report this to https://github.com/markedjs/marked.`,s){let l="<p>An error occurred:</p><pre>"+Ra(r.message+"",!0)+"</pre>";return i?Promise.resolve(l):l}if(i)return Promise.reject(r);throw r}}},Vi=new OS;function bt(s,i){return Vi.parse(s,i)}bt.options=bt.setOptions=function(s){return Vi.setOptions(s),bt.defaults=Vi.defaults,Sb(bt.defaults),bt};bt.getDefaults=Cf;bt.defaults=Wi;function MS(...s){return Vi.use(...s),bt.defaults=Vi.defaults,Sb(bt.defaults),bt}bt.use=MS;bt.walkTokens=function(s,i){return Vi.walkTokens(s,i)};bt.parseInline=Vi.parseInline;bt.Parser=ba;bt.parser=ba.parse;bt.Renderer=io;bt.TextRenderer=jf;bt.Lexer=ga;bt.lexer=ga.lex;bt.Tokenizer=ao;bt.Hooks=Bs;bt.parse=bt;bt.options;bt.setOptions;bt.walkTokens;bt.parseInline;ba.parse;ga.lex;bt.setOptions({gfm:!0,breaks:!1});function Ji({text:s,className:i}){const r=he.useMemo(()=>{const l=bt.parse(s??"",{async:!1});return D0.sanitize(l)},[s]);return s!=null&&s.trim()?p.jsx("div",{className:`md ${i??""}`,dangerouslySetInnerHTML:{__html:r}}):null}const kS=["inbox","awaiting","drafted"],vf=["requests","settled","sent","archived"],ff={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 Xg(s){return s.status==="awaiting"||s.status==="running"?"awaiting":s.status==="sent"?"sent":"drafted"}const Is=s=>!!s.pr.state&&s.pr.state!=="OPEN",Pg=["ready","awaiting","running","failed","reviewed","skipped","sent"];function Ul(s){return[...s].sort((i,r)=>Pg.indexOf(i.status)-Pg.indexOf(r.status)||r.updatedAt.localeCompare(i.updatedAt))}const Cb=["sent","reviewed","skipped"];function Hf(s){return Ul(s.filter(i=>!Is(i)&&!Cb.includes(i.status)))}function CS(s,i){if(!(i!=null&&i.enabled)||i.awaiting.length===0)return[];const r=new Set(Hf(s).map(u=>u.id)),l=new Set(i.awaiting.map(u=>u.id));return Ul(s.filter(u=>l.has(u.id)&&!r.has(u.id)))}const DS=(s,i)=>i.some(r=>r.id===s.id);function LS(s,i){const r=s.filter(u=>!Is(u)),l=Ul(r.filter(u=>!Cb.includes(u.status)));return{inbox:l,awaiting:l.filter(u=>Xg(u)==="awaiting"),drafted:l.filter(u=>Xg(u)==="drafted"),requests:CS(s,i),settled:Ul(r.filter(u=>u.status==="reviewed"||u.status==="skipped")),sent:Ul(r.filter(u=>u.status==="sent")),archived:Ul(s.filter(Is))}}function zS(s,i){return vf.includes(s)&&i[s].length===0?"inbox":s}function US(s){var i;return Is(s)?((i=s.pr.state)==null?void 0:i.toLowerCase())??null:s.status==="reviewed"||s.status==="skipped"?s.status:null}function BS(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 IS={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."}},jS=s=>IS[s];function HS(s){const i=qf[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.`}}const qS=(s,i)=>s.sent?HS(s.sent):jS(i);function GS(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 Db(s,i=Date.now()){const r=Math.max(0,Math.round((i-new Date(s).getTime())/1e3));return r<45?"now":r<3600?`${Math.round(r/60)}m`:r<86400?`${Math.round(r/3600)}h`:`${Math.round(r/86400)}d`}const $S={approve:"approve",comment:"comment",request_changes:"changes"},qf={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"};function YS(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 · ${qf[s.sent.event]??s.sent.event}`,tone:"sent"}:s.verdict?{label:`${s.verdict.recommendation.replace("_"," ")} ${s.verdict.confidence}`,tone:$S[s.verdict.recommendation]??"none"}:{label:"—",tone:"none"}}function df(s){return s.trusted?"ran the code":s.withSource?"read the full source":"read the diff only"}function FS(s){if(s.commentCount===0)return"no comments drafted";const i=`${s.commentCount} comment${s.commentCount===1?"":"s"} drafted`;return s.driftedCount?`${i}, ${s.driftedCount} off-diff`:i}function KS(s,i,r=Date.now()){var u,d;if(s.status==="running")return{reasoning:"Claude is reading the current head. This row updates itself when the run lands.",meta:[`started ${Db(s.updatedAt,r)} ago`,df(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 ${qf[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",df(s)]};const l=[df(s)];return 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(FS(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`),{reasoning:((d=s.verdict)==null?void 0:d.reasoning)??"This review has a draft but no verdict.",meta:l}}const Jr={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"request changes"},Qg={APPROVE:"approve",COMMENT:"comment",REQUEST_CHANGES:"changes"};function ZS(s){return(s==null?void 0:s.recommendation)==="approve"?"APPROVE":(s==null?void 0:s.recommendation)==="request_changes"?"REQUEST_CHANGES":"COMMENT"}function Lb(s,i){const r=Hv(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 zb(s){const i=s.comments.filter(u=>u.status==="dropped"),r=s.comments.filter(u=>u.status!=="dropped"),l=Lb(s.diff,r);return{inline:l,folded:r.filter(u=>!l.includes(u)),dropped:i}}function Vg(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})=>`${pb[u]} ${d} ${u}${d===1?"":"s"}`).join(" · ")}function XS(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 Jg(s){const{inline:i,folded:r}=zb(s);if(i.length===0&&r.length===0)return"no inline comments · body only";const l=[`${i.length} inline`];return r.length>0&&l.push(`${r.length} folded into the body`),l.join(" · ")}const Wg={approve:"approve",comment:"comment",request_changes:"changes"},PS={approve:"approve",comment:"comment",request_changes:"changes"};function QS(s,i){return s.status==="dropped"?"none":s.drifted?"comment":s.origin==="user"?"awaiting":i}function Ub(s,i=20){const r=document.getElementById(`c-${s}`);if(r){r.scrollIntoView({behavior:"smooth",block:"center"});return}i>0&&requestAnimationFrame(()=>Ub(s,i-1))}function VS(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 JS({patch:s,comments:i,renderComment:r}){const l=he.useMemo(()=>s.trim()?Uv(s,{drawFileList:!1,matching:"lines",outputFormat:"line-by-line"}):"",[s]),u=he.useRef(null),[d,g]=he.useState([]);if(he.useEffect(()=>{var T,x;const h=u.current;if(!h)return;h.innerHTML=l,F_(h);const m=new Map;for(const N of h.querySelectorAll(".d2h-file-wrapper")){const k=(x=(T=N.querySelector(".d2h-file-name"))==null?void 0:T.textContent)==null?void 0:x.trim();k&&m.set(k,N)}const b=[],v=new Map;for(const N of i){if(N.line==null)continue;const k=m.get(N.path);if(!k)continue;const R=Array.from(k.querySelectorAll(".d2h-diff-tbody > tr")).find(le=>{var q,J;return((J=(q=le.querySelector(".line-num2"))==null?void 0:q.textContent)==null?void 0:J.trim())===String(N.line)});if(!R)continue;const U=document.createElement("tr");U.className="inline-comment-row";const $=document.createElement("td");$.colSpan=2;const L=document.createElement("div");$.appendChild(L),U.appendChild($),(v.get(R)??R).after(U),v.set(R,U),b.push({id:N.id,el:L})}g(b)},[l,i]),!l)return p.jsx("p",{className:"muted",children:"No diff for this chapter."});const E=i.filter(h=>!d.some(m=>m.id===h.id));return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"diff",ref:u}),d.map(({id:h,el:m})=>{const b=i.find(v=>v.id===h);return b?Bv.createPortal(r(b),m,h):null}),E.map(h=>r(h))]})}function Bb({comment:s,onUpdate:i,onDelete:r,onDiscuss:l,readOnly:u,flash:d}){const[g,E]=he.useState(!1),[h,m]=he.useState(s.body),b=s.status==="approved",v=s.status==="dropped",T=s.origin==="user"?"yours":v?"dropped":b?"kept":"drafted";return p.jsxs("div",{id:`c-${s.id}`,className:`comment comment-${s.status}${d?" comment-flash":""}`,children:[p.jsxs("div",{className:"comment-head",children:[p.jsxs("span",{className:"comment-loc",children:[s.path,s.line!=null?`:${s.line}`:""]}),p.jsx("span",{className:`tag tag-${s.origin==="user"?"yours":T}`,children:T}),s.drifted&&p.jsx("span",{className:"tag tag-drift",title:"The code this comment pointed at is gone from the diff, so it can't post inline.",children:"drifted — posts in the body"}),!s.drifted&&s.originalLine!=null&&s.originalLine!==s.line&&p.jsxs("span",{className:"faint",title:"This comment followed its code to a new line.",children:["was :",s.originalLine]}),p.jsx("span",{className:"grow"}),!u&&(g?p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"btn btn-sm",onClick:()=>{i({body:h}),E(!1)},children:"save"}),p.jsx("button",{className:"btn btn-sm",onClick:()=>{m(s.body),E(!1)},children:"cancel"})]}):p.jsxs(p.Fragment,{children:[p.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:[p.jsx(ft,{name:"check"}),"keep"]}),p.jsxs("button",{className:"btn btn-sm",title:"Edit the wording",onClick:()=>E(!0),children:[p.jsx(ft,{name:"edit"}),"edit"]}),p.jsxs("button",{className:`btn btn-sm${v?" btn-drop-on":""}`,title:"Drop it — stays local, never posts",onClick:()=>i({status:v?"draft":"dropped"}),children:[p.jsx(ft,{name:"drop"}),v?"dropped":"drop"]}),l&&p.jsxs("button",{className:"btn btn-sm btn-accent",title:"Point the chat at this comment",onClick:l,children:[p.jsx(ft,{name:"comment"}),"discuss"]}),s.origin==="user"&&p.jsx("button",{className:"btn btn-sm",title:"Delete the comment you wrote",onClick:r,children:"✕"})]}))]}),g?p.jsx("textarea",{className:"comment-edit",value:h,onChange:x=>m(x.target.value),rows:Math.max(3,h.split(`
|
|
236
|
-
`).length)}):p.jsx(Ji,{className:"comment-body prose",text:Gv(s.body,s.severity??null)})]})}function WS({files:s,chapterId:i,onAdd:r}){const[l,u]=he.useState(!1),[d,g]=he.useState(s[0]??""),[E,h]=he.useState(""),[m,b]=he.useState("");return l?p.jsxs("div",{className:"add-comment",children:[p.jsxs("div",{className:"add-comment-row",children:[p.jsx("select",{value:d,onChange:v=>g(v.target.value),children:s.map(v=>p.jsx("option",{value:v,children:v},v))}),p.jsx("input",{placeholder:"line (optional)",value:E,onChange:v=>h(v.target.value.replace(/\D/g,"")),size:12})]}),p.jsx("textarea",{placeholder:"Your comment…",value:m,onChange:v=>b(v.target.value),rows:3}),p.jsxs("div",{className:"add-comment-row",children:[p.jsx("button",{className:"btn",disabled:!m.trim()||!d,onClick:()=>{r({path:d,line:E?Number(E):null,body:m.trim(),chapterId:i}),b(""),h(""),u(!1)},children:"add"}),p.jsx("button",{className:"btn",onClick:()=>u(!1),children:"cancel"})]})]}):p.jsxs("button",{className:"btn btn-dashed",onClick:()=>u(!0),children:[p.jsx(ft,{name:"plus"}),"add a comment of your own"]})}function eT({chapter:s,n:i,diff:r,comments:l,open:u,onToggle:d,onUpdateComment:g,onDeleteComment:E,onAddComment:h,onDiscuss:m,readOnly:b,anchorRef:v,flash:T}){const x=he.useMemo(()=>Iv(r,s.files),[r,s.files]),N=he.useMemo(()=>Lb(x,l),[x,l]),k=l.filter(U=>!N.includes(U)),R=U=>p.jsx(Bb,{comment:U,onUpdate:$=>g(U.id,$),onDelete:()=>E(U.id),onDiscuss:m&&(()=>m({target:"comment",id:U.id})),readOnly:b,flash:T===U.id},U.id);return p.jsxs("section",{className:"chapter",ref:v,children:[p.jsxs("header",{className:"chapter-head",onClick:d,children:[p.jsx("span",{className:"faint",children:u?"▾":"▸"}),p.jsxs("h3",{children:[i," · ",s.title]}),p.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"]}),p.jsx("span",{className:"grow"}),m&&p.jsxs("button",{className:"btn btn-sm",onClick:U=>{U.stopPropagation(),m({target:"chapter",id:s.id})},children:[p.jsx(ft,{name:"comment"}),"discuss"]})]}),u&&p.jsxs("div",{className:"chapter-body",children:[p.jsx(Ji,{className:"prose chapter-explanation",text:s.explanation}),k.map(R),p.jsx(JS,{patch:x,comments:N,renderComment:R}),!b&&s.files.length>0&&p.jsx(WS,{files:s.files,chapterId:s.id,onAdd:h})]})]})}function tT(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 _f(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";const r=i.comments.find(u=>u.id===s.id);return r?`${r.path}:${r.line??"file"}`:"a comment"}function nT({turn:s,artifact:i}){return p.jsxs("div",{className:`chat-turn chat-turn-${s.role}`,children:[p.jsx("div",{className:"chat-turn-who",children:s.role==="user"?"You":"Reviewer"}),s.refs.length>0&&p.jsx("div",{className:"chat-refs",children:s.refs.map((r,l)=>p.jsx("span",{className:"chat-ref",children:_f(r,i)},l))}),p.jsx(Ji,{className:"chat-turn-body prose",text:s.body}),s.revisions.map((r,l)=>p.jsxs("div",{className:"chat-revision",children:["↳ ",tT(r,i)]},l)),s.refused.map((r,l)=>p.jsxs("div",{className:"chat-refusal",title:r.reason,children:["⃠ left alone — ",r.reason]},l))]})}function aT({artifact:s,reviewKey:i,refs:r,onClearRefs:l,onDropRef:u,onArtifact:d,readOnly:g,inputRef:E,anchorRef:h}){const[m,b]=he.useState(""),[v,T]=he.useState(!1),[x,N]=he.useState(null),k=s.chat??[],R=s.pendingChat??null,U=R!=null&&R.error==null,$=v||U,L=(q,J,ae)=>{!q||$||(T(!0),N(null),gb(i,{message:q,refs:J}).then(M=>{d(M),ae==null||ae()}).catch(M=>N(String(M.message??M))).finally(()=>T(!1)))},le=()=>L(m.trim(),r,()=>{b(""),l()});return p.jsxs("section",{className:"card chat-panel",ref:h,children:[p.jsxs("header",{className:"card-head",children:[p.jsx("h2",{children:"talk to the reviewer"}),p.jsx("span",{className:"faint",children:"it revises the draft as you go · nothing here reaches GitHub — only send does"})]}),p.jsxs("div",{className:"card-body",children:[(k.length>0||R)&&p.jsxs("div",{className:"chat-log",children:[k.map(q=>p.jsx(nT,{turn:q,artifact:s},q.id)),R&&p.jsxs("div",{className:"chat-turn chat-turn-user chat-turn-pending",children:[p.jsx("div",{className:"chat-turn-who",children:"You"}),R.refs.length>0&&p.jsx("div",{className:"chat-refs",children:R.refs.map((q,J)=>p.jsx("span",{className:"chat-ref",children:_f(q,s)},J))}),p.jsx(Ji,{className:"chat-turn-body prose",text:R.message}),R.error?p.jsxs("div",{className:"chat-failed",children:["✕ this turn didn't finish — ",R.error,!g&&p.jsxs(p.Fragment,{children:[" ",p.jsx("button",{className:"btn btn-sm",onClick:()=>L(R.message,R.refs),children:"ask again"})," ",p.jsx("button",{className:"btn btn-sm",onClick:()=>Pv(i).then(d).catch(q=>N(String(q.message??q))),children:"dismiss"})]})]}):p.jsx("div",{className:"chat-waiting",children:R.progress.length>0?p.jsx("ol",{className:"chat-progress",children:R.progress.map((q,J)=>p.jsx("li",{className:J===R.progress.length-1?"now":void 0,children:q},J))}):"Thinking… it re-reads the code before answering."})]})]}),g?p.jsx("p",{className:"faint",children:"This review was sent — the conversation is kept as a record, but it can't continue."}):p.jsxs(p.Fragment,{children:[r.length>0&&p.jsxs("div",{className:"chat-refs chat-refs-pending",children:[p.jsx("span",{className:"faint",children:"about:"}),r.map((q,J)=>p.jsxs("button",{className:"chat-ref",onClick:()=>u(J),title:"Remove",children:[_f(q,s)," ✕"]},J))]}),p.jsx("textarea",{ref:E,className:"chat-input",rows:2,value:m,disabled:v,placeholder:k.length===0?"the summary restates the author's claims — say what you actually verified":"say more…",onChange:q=>b(q.target.value),onKeyDown:q=>{q.key==="Enter"&&(q.metaKey||q.ctrlKey)&&le()}}),p.jsxs("div",{className:"chat-actions",children:[p.jsxs("button",{className:"btn btn-dark",onClick:le,disabled:$||m.trim()==="",children:[p.jsx(ft,{name:"send"}),U?"waiting for the answer…":v?"sending…":"send message",p.jsx(Qi,{children:"⌘↵"})]}),p.jsx("span",{className:"grow"}),s.preChat&&p.jsx("button",{className:"btn btn-sm",disabled:$,title:"Put the review back the way the AI first wrote it. The conversation stays.",onClick:()=>{T(!0),Qv(i).then(d).catch(q=>N(String(q.message??q))).finally(()=>T(!1))},children:"reset the review"})]})]}),x&&p.jsx("div",{className:"error",children:x})]})]})}function iT({artifact:s,reviewKey:i,event:r,overridden:l,onPickEvent:u,sending:d,onSend:g,error:E,footer:h,next:m,onAdvance:b,anchorRef:v}){var le;const[T,x]=he.useState(null),[N,k]=he.useState(null),[R,U]=he.useState(!1),[$,L]=he.useState(!1);return he.useEffect(()=>{R&&Vv(i,r).then(q=>{x(q),k(null)}).catch(q=>k(String(q)))},[i,r,s,R]),s.sent?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"sent-strip",ref:v,children:[p.jsxs("strong",{children:["✔ sent as ",Jr[s.sent.event]]}),p.jsxs("span",{className:"faint",children:[new Date(s.sent.at).toLocaleString()," · ",Jg(s),s.sent.auto?" · auto-sent by the daemon":""]}),p.jsx("span",{className:"grow"}),s.sent.url&&p.jsxs("a",{href:s.sent.url,target:"_blank",rel:"noreferrer",children:["view on GitHub ",p.jsx(ft,{name:"external"})]}),p.jsxs("button",{className:"btn",onClick:b,children:[m?`next review: ${m.pr.repo}#${m.pr.number}`:"back to the queue",p.jsx(ft,{name:"arrowRight"})]})]}),p.jsx("div",{className:"post-actions",children:h})]}):p.jsxs("div",{className:"send-panel",ref:v,children:[p.jsxs("div",{className:"send-top",children:[p.jsx("span",{className:"lab",children:"send to github"}),p.jsx("span",{className:"grow"}),p.jsx("span",{className:"faint",children:Jg(s)}),p.jsxs("button",{className:"link",onClick:()=>U(!R),children:[p.jsx(ft,{name:"eye"}),R?"hide what gets posted":"see what gets posted"]})]}),p.jsxs("div",{className:"send-action",children:[p.jsxs("button",{className:`send-btn tone-bg-${Qg[r]}`,disabled:d,onClick:g,children:[p.jsx(ft,{name:r==="APPROVE"?"approve":r==="COMMENT"?"comment":"changes",size:15}),d?"sending…":`${Jr[r]} on ${s.id}`," ",p.jsx(Qi,{children:"s"})]}),p.jsxs("div",{className:"send-as",children:[p.jsxs("button",{className:"send-as-toggle",onClick:()=>L(!$),children:["as ",p.jsx("b",{children:Jr[r]})," ",$?"▴":"▾"]}),p.jsx("div",{className:"send-as-why",children:l?`you chose this — the verdict says ${((le=s.verdict)==null?void 0:le.recommendation.replace("_"," "))??"nothing"}`:"follows the verdict"}),$&&p.jsx("div",{className:"menu",children:["REQUEST_CHANGES","COMMENT","APPROVE"].map(q=>p.jsxs("button",{className:`menu-item${r===q?" menu-item-on":""}`,onClick:()=>{u(q),L(!1)},children:[p.jsx("span",{className:`tone-${Qg[q]}`,children:p.jsx(ft,{name:q==="APPROVE"?"approve":q==="COMMENT"?"comment":"changes"})}),p.jsx("span",{className:"grow",children:Jr[q]}),p.jsx("span",{className:"menu-check",children:r===q?"✓":""})]},q))})]})]}),E&&p.jsx("p",{className:"error",children:E}),R&&(N?p.jsx("p",{className:"error",children:N}):T?p.jsx("pre",{className:"body-preview",children:T.body}):p.jsx("p",{className:"faint",children:"building the body…"})),p.jsx("div",{className:"send-footer",children:h})]})}function lT({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",E=s.refresh,h=i!=null&&i.changed?E:null;return u?p.jsxs("div",{className:"freshness freshness-running",children:[p.jsx("strong",{children:"Re-reviewing…"})," Claude is reading the current head. This page updates itself when the run lands — it takes a few minutes."]}):!g&&!h?null:p.jsxs("div",{className:"freshness",children:[g&&p.jsxs("div",{children:[p.jsxs("strong",{children:["This PR is ",d==="MERGED"?"merged":"closed","."]})," A review can still be sent, but nobody is waiting for it."]}),h&&p.jsxs("div",{children:[p.jsx("strong",{children:"The PR moved on since this review."})," Now at"," ",p.jsx("code",{children:h.toSha.slice(0,7)}),", reviewed at"," ",p.jsx("code",{children:h.fromSha.slice(0,7)}),"."," ",h.moved>0&&p.jsxs(p.Fragment,{children:[h.moved," comment(s) followed the code. "]}),h.drifted>0&&p.jsxs(p.Fragment,{children:[h.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&&p.jsx("button",{className:"btn btn-sm",disabled:r,onClick:()=>l(),children:r?"starting…":"re-review at the new head"})]})]})}function sT({reviewKey:s}){var dn,Ot,an,Dt,Qn;const[i,r]=he.useState(null),[l,u]=he.useState(null),[d,g]=he.useState(null),[E,h]=he.useState(null),[m,b]=he.useState(!1),[v,T]=he.useState([]),[x,N]=he.useState([]),k=he.useRef(null),[R,U]=he.useState(new Set),[$,L]=he.useState(0),le=he.useRef(new Map),q=he.useRef(null),J=he.useRef(null),ae=he.useRef(null),M=he.useRef(null),Y=he.useRef(null),ee=he.useRef(null),[Z,ue]=he.useState(null),[Oe,Ce]=he.useState(!1),[ge,B]=he.useState(null),[te,ce]=he.useState(null);he.useEffect(()=>{if(!te)return;const ie=setTimeout(()=>ce(null),1800);return()=>clearTimeout(ie)},[te]);const Te=ie=>{var be,oe;N(ht=>ht.some(Jt=>Jt.target===ie.target&&Jt.id===ie.id)?ht:[...ht,ie]),(be=k.current)==null||be.scrollIntoView({behavior:"smooth",block:"center"}),(oe=k.current)==null||oe.focus()};he.useEffect(()=>{let ie=!1;return window.scrollTo({top:0}),g(null),h(null),ue(null),B(null),Im(s).then(be=>{if(!ie)return r(be),Xv(s).then(oe=>{ie||(g(oe),oe.changed&&r(oe.artifact))}).catch(oe=>!ie&&h(String(oe.message??oe)))}).catch(be=>!ie&&u(String(be))),()=>{ie=!0}},[s]),he.useEffect(()=>{kf().then(T).catch(()=>{})},[]),he.useEffect(()=>{const ie=ee.current;if(!ie)return;const be=()=>document.documentElement.style.setProperty("--top-h",`${ie.offsetHeight}px`);be();const oe=new ResizeObserver(be);return oe.observe(ie),()=>{oe.disconnect(),document.documentElement.style.removeProperty("--top-h")}},[i==null?void 0:i.id]);const Be=(i==null?void 0:i.pendingChat)!=null&&i.pendingChat.error==null;he.useEffect(()=>{if((i==null?void 0:i.status)!=="running"&&!Be)return;const ie=setInterval(()=>{Im(s).then(be=>{r(be),be.status!=="running"&&b(!1)}).catch(()=>{})},3e3);return()=>clearInterval(ie)},[i==null?void 0:i.status,Be,s]);const _=(i==null?void 0:i.sent)!=null,D=he.useMemo(()=>Hf(v),[v]),j=D.findIndex(ie=>ie.key===s),se=(j>0?D[j-1]:null)??null,fe=(j>=0&&j<D.length-1?D[j+1]:null)??null,xe=ie=>{window.location.hash=`#/r/${encodeURIComponent(ie)}`},Ee=()=>{fe?xe(fe.key):window.location.hash="#/"},Re=he.useMemo(()=>{if(!i)return[];const ie=qv(i.diff,i.chapters);return ie.length>0?[...i.chapters,{id:"__other",title:"other changes",explanation:"Files not assigned to any chapter by the AI.",files:ie}]:i.chapters},[i]),ke=ie=>{const be=Re[ie];return be?(L(ie),U(oe=>{const ht=new Set(oe);return ht.delete(be.id),ht}),be):null},He=(...ie)=>{for(const be of ie)if(be.current)return be.current.scrollIntoView({behavior:"smooth",block:"start"})},Ze=ie=>{var oe;const be=ke(ie);be&&((oe=le.current.get(be.id))==null||oe.scrollIntoView({behavior:"smooth",block:"start"}))},Le=(ie,be)=>{ke(ie),ce(be),Ub(be)},Nt=Z??ZS(i==null?void 0:i.verdict),Fe=(dn=i==null?void 0:i.verdict)==null?void 0:dn.recommendation;he.useEffect(()=>ue(null),[Fe]),he.useEffect(()=>B(null),[Nt]);const On=()=>{!i||i.sent||Oe||(Ce(!0),B(null),Jv(s,Nt).then(r).catch(ie=>B(String(ie.message??ie))).finally(()=>Ce(!1)))};if(he.useEffect(()=>{const ie=be=>{VS(be.target)||be.metaKey||be.ctrlKey||be.altKey||(be.key==="["&&se?xe(se.key):be.key==="]"&&fe?xe(fe.key):be.key==="n"?Ze(Math.min(Re.length-1,$+1)):be.key==="N"?Ze(Math.max(0,$-1)):be.key==="s"&&!_&&On())};return window.addEventListener("keydown",ie),()=>window.removeEventListener("keydown",ie)},[se==null?void 0:se.key,fe==null?void 0:fe.key,Re,$,_,Nt,i==null?void 0:i.sent,Oe]),l&&!i)return p.jsx("p",{className:"error pad",children:l});if(!i)return p.jsx("p",{className:"muted pad",children:"Loading…"});const tt=ie=>{b(!0),u(null),mb(s,ie).then(r).catch(be=>{u(String(be)),b(!1)})},tn=ie=>ie.then(r).catch(be=>u(String(be))),Hn=ie=>hf(s,{status:ie}).then(Ee).catch(be=>u(String(be))),Vt=(ie,be)=>tn(Yv(s,ie,be)),Mn=ie=>tn(Kv(s,ie)),xn=ie=>tn(Fv(s,ie)),oa=i.comments.filter(ie=>!ie.chapterId||!Re.some(be=>be.id===ie.chapterId)),{inline:ca,folded:at,dropped:Bt}=zb(i),yt=i.comments.filter(ie=>ie.status!=="dropped"&&ie.drifted).length,nn=i.verdict?Wg[i.verdict.recommendation]:"none",fn=XS(i),kn=i.pendingChat!=null&&i.pendingChat.error==null,Cn=()=>tn(gb(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}]})),Dn=(Ot=i.run)!=null&&Ot.trusted?"ran the code":(an=i.run)!=null&&an.withSource?"read the full source":i.run?"read the diff only":"no run yet",qn=ie=>{var be;return p.jsxs("button",{className:`verdict-pick${((be=i.verdict)==null?void 0:be.recommendation)===ie?` verdict-pick-on tone-${Wg[ie]}`:""}`,title:ie==="approve"?"Approve":ie==="comment"?"Comment without blocking":"Request changes",onClick:()=>tn(hf(s,{verdictRecommendation:ie})),children:[p.jsx(ft,{name:PS[ie]}),ie.replace("_"," ")]},ie)};return p.jsxs("div",{className:"review",children:[p.jsxs("div",{className:"review-top",ref:ee,children:[p.jsx("div",{className:"crumb",children:p.jsxs("div",{className:"bar-inner",children:[p.jsx("a",{href:"#/",children:"← queue"}),p.jsx("span",{className:"crumb-sep",children:"/"}),p.jsx("span",{className:"crumb-slug",children:i.id}),p.jsxs("span",{className:"walk",children:[p.jsx("button",{className:"walk-btn",disabled:!se,title:se?`[ — ${se.id}: ${se.pr.title}`:"no more reviews this way",onClick:()=>se&&xe(se.key),children:p.jsx(ft,{name:"chevronLeft"})}),p.jsx("button",{className:"walk-btn",disabled:!fe,title:fe?`] — ${fe.id}: ${fe.pr.title}`:"no more reviews this way",onClick:()=>fe&&xe(fe.key),children:p.jsx(ft,{name:"chevronRight"})})]}),j>=0&&p.jsxs("span",{className:"faint",children:[j+1," of ",D.length," awaiting"]}),p.jsx("span",{className:"faint crumb-next",children:fe?`next: ${fe.pr.title}`:j>=0?"last in the queue":""}),p.jsx("span",{className:"grow"}),p.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:p.jsx(ft,{name:"settings",size:15})})]})}),p.jsx("div",{className:"review-head",children:p.jsxs("div",{className:"wrap",children:[p.jsxs("div",{className:"review-head-top",children:[p.jsx("a",{className:"review-title",href:i.pr.url,target:"_blank",rel:"noreferrer",children:i.pr.title}),p.jsx("span",{className:"grow"}),i.verdict&&(_?p.jsxs("span",{className:`chip tone-${nn}`,children:[i.verdict.recommendation.replace("_"," ")," · ",i.verdict.confidence,"%"]}):p.jsxs("button",{className:`chip chip-btn tone-${nn}`,title:"change it, or send — both are at the foot of the page",onClick:()=>He(q,Y),children:[i.verdict.recommendation.replace("_"," ")," · ",i.verdict.confidence,"%",p.jsx(ft,{name:"down",size:12})]})),!_&&i.status!=="running"&&p.jsxs("button",{className:"btn btn-sm",disabled:m,title:i.run?"Review the current head again — this draft is replaced, your own comments are kept":"Draft a review of this PR",onClick:()=>tt(!0),children:[p.jsx(ft,{name:"rerun"}),m?"starting…":i.run?"re-review at head":"review now"]})]}),p.jsxs("div",{className:"review-head-meta",children:[p.jsx("span",{children:i.pr.author}),p.jsx("span",{className:"crumb-sep",children:"·"}),p.jsxs("span",{children:[i.pr.headRefName," → ",i.pr.baseRefName,i.pr.headSha?` · ${i.pr.headSha.slice(0,7)}`:""]}),p.jsx("span",{className:"crumb-sep",children:"·"}),p.jsxs("span",{children:[i.pr.changedFiles,"f ",p.jsxs("span",{className:"add",children:["+",i.pr.additions]})," ",p.jsxs("span",{className:"del",children:["−",i.pr.deletions]})]}),p.jsx("span",{className:"crumb-sep",children:"·"}),p.jsx("span",{title:"Whether the run read a local checkout of the PR head, or the diff alone.",children:Dn}),((Dt=i.run)==null?void 0:Dt.costUsd)!=null&&p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"crumb-sep",children:"·"}),p.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"]})]}),p.jsx("span",{className:"crumb-sep",children:"·"}),p.jsx("span",{title:"Where this review has got to: drafted, settled locally, or sent.",children:i.status})]})]})})]}),p.jsxs("div",{className:"wrap review-body",children:[p.jsxs("aside",{className:"rail",children:[p.jsxs("div",{className:"rail-jumps",children:[p.jsx("button",{className:"lab rail-lab-btn",onClick:()=>He(J),children:"summary"}),i.verdict&&p.jsx("button",{className:"lab rail-lab-btn",onClick:()=>He(ae),children:"why"}),p.jsx("button",{className:"lab rail-lab-btn",onClick:()=>{var ie;He(M),(ie=k.current)==null||ie.focus()},children:"chat"})]}),Re.length>0&&p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"lab rail-lab rail-lab-btn",onClick:()=>Ze(0),children:"changes"}),Re.map((ie,be)=>p.jsxs("div",{className:"rail-group",children:[p.jsxs("button",{className:`rail-item${R.has(ie.id)?"":" rail-item-on"}`,onClick:()=>Ze(be),children:[p.jsxs("span",{className:"grow",children:[be+1," · ",ie.title]}),p.jsxs("span",{className:"rail-count",children:[ie.files.length,"f"]})]}),i.comments.filter(oe=>oe.chapterId===ie.id).map(oe=>p.jsxs("button",{className:`rail-comment${oe.status==="dropped"?" rail-comment-dropped":""}`,title:`${oe.path}${oe.line!=null?`:${oe.line}`:""} — ${oe.body}`,onClick:()=>Le(be,oe.id),children:[p.jsx("span",{className:`rail-dot tone-${QS(oe,nn)}`,children:"●"}),p.jsxs("span",{className:"rail-comment-loc",children:[oe.path.split("/").pop(),oe.line!=null?`:${oe.drifted?"~":""}${oe.line}`:""]})]},oe.id))]},ie.id))]}),p.jsx("button",{className:`lab rail-lab-btn${Re.length>0?" rail-lab":""}`,onClick:()=>He(q,Y),children:"verdict"}),p.jsxs("div",{className:"rail-facts",children:[p.jsxs("div",{children:[i.comments.length-Bt.length," keeping · ",Bt.length," dropped"]}),p.jsxs("div",{children:[ca.length," inline · ",at.length," folded into body"]}),yt>0&&p.jsxs("div",{className:"warn",title:"The code these comments pointed at is gone from the diff.",children:[yt," drifted"]})]})]}),p.jsxs("div",{className:"main",children:[p.jsx(lT,{artifact:i,freshness:d,rerunning:m,onRerun:tt}),E&&p.jsxs("div",{className:"freshness",title:E,children:[p.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&&p.jsx("div",{className:"error",children:l}),((Qn=i.run)==null?void 0:Qn.error)&&p.jsxs("div",{className:"error",children:["Run failed: ",i.run.error]}),p.jsx("div",{className:"card card-summary",ref:J,children:p.jsxs("div",{className:"card-body",children:[p.jsx("div",{className:"lab",children:"summary"}),p.jsx(Ji,{className:"prose lead",text:i.summary||"(no summary)"}),!_&&p.jsxs("button",{className:"btn btn-sm",onClick:()=>Te({target:"summary",id:null}),children:[p.jsx(ft,{name:"comment"}),"discuss the summary"]})]})}),i.verdict&&p.jsx("div",{className:`card card-why tone-border-${nn}`,ref:ae,children:p.jsxs("div",{className:"card-body",children:[p.jsx("div",{className:"lab",children:"why"}),Vg(i)&&p.jsx("div",{className:"sev-counts",title:"Live findings by grade. Only blockers block.",children:Vg(i)}),p.jsx(Ji,{className:"prose lead",text:i.verdict.reasoning}),!_&&p.jsxs("button",{className:"btn btn-sm",onClick:()=>Te({target:"verdict",id:null}),children:[p.jsx(ft,{name:"comment"}),"discuss the verdict"]})]})}),Re.map((ie,be)=>p.jsx(eT,{chapter:ie,n:be+1,diff:i.diff,comments:i.comments.filter(oe=>oe.chapterId===ie.id),open:!R.has(ie.id),onToggle:()=>U(oe=>{const ht=new Set(oe);return ht.has(ie.id)?ht.delete(ie.id):ht.add(ie.id),ht}),onUpdateComment:Vt,onDeleteComment:Mn,onAddComment:xn,onDiscuss:_?void 0:Te,readOnly:_,flash:te,anchorRef:oe=>{oe?le.current.set(ie.id,oe):le.current.delete(ie.id)}},ie.id)),oa.length>0&&p.jsxs("section",{className:"card",children:[p.jsxs("header",{className:"card-head",children:[p.jsx("h2",{children:"unattached comments"}),p.jsx("span",{className:"faint",children:"not part of any chapter — they post in the body"})]}),p.jsx("div",{className:"card-body",children:oa.map(ie=>p.jsx(Bb,{comment:ie,onUpdate:be=>Vt(ie.id,be),onDelete:()=>Mn(ie.id),onDiscuss:_?void 0:()=>Te({target:"comment",id:ie.id}),readOnly:_},ie.id))})]})]}),p.jsxs("aside",{className:"cockpit",children:[p.jsx(aT,{artifact:i,reviewKey:s,refs:x,onClearRefs:()=>N([]),onDropRef:ie=>N(be=>be.filter((oe,ht)=>ht!==ie)),onArtifact:r,readOnly:_,inputRef:k,anchorRef:M}),p.jsxs("div",{className:"cockpit-decide",children:[!_&&fn&&p.jsxs("div",{className:"verdict-hint",children:[p.jsxs("span",{children:[p.jsx("strong",{children:fn})," — the verdict was written before those edits."]}),p.jsxs("button",{className:"btn btn-sm",onClick:Cn,disabled:kn,children:[p.jsx(ft,{name:"comment"}),kn?"the reviewer is busy…":"ask the reviewer to re-true it"]})]}),i.verdict&&!_&&p.jsxs("div",{className:"verdict-bar",ref:q,children:[p.jsx("span",{className:"lab",children:"verdict"}),["approve","comment","request_changes"].map(qn),p.jsx("span",{className:"grow"}),p.jsx("span",{className:"faint",children:"what you send follows this unless you say otherwise"})]}),p.jsx(iT,{artifact:i,reviewKey:s,event:Nt,overridden:Z!=null,onPickEvent:ue,sending:Oe,onSend:On,error:ge,next:fe,onAdvance:Ee,anchorRef:Y,footer:p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"faint",children:"not sending?"}),!_&&p.jsxs(p.Fragment,{children:[p.jsxs("button",{className:"btn btn-sm",title:fe?`Settle it locally and go to ${fe.id}`:"Settle it locally and go back to the queue",onClick:()=>Hn("reviewed"),children:[p.jsx(ft,{name:"check"}),"mark reviewed"]}),p.jsxs("button",{className:"btn btn-sm",title:fe?`Leave it and go to ${fe.id}`:"Leave it and go back to the queue",onClick:()=>Hn("skipped"),children:[p.jsx(ft,{name:"skip"}),"skip"]})]}),p.jsxs("a",{className:"btn btn-sm",href:Wv(s),children:[p.jsx(ft,{name:"download"}),"export .md"]})]})})]})]})]})]})}const eb="cerber.notify.seen",Sf="cerber.notify",rT=1e4,Ib=s=>{try{return localStorage.getItem(s)}catch{return null}},Tf=(s,i)=>{try{localStorage.setItem(s,i)}catch{}};function oT(s,i){const r=new Set(i);return Hf(s).filter(l=>!r.has(l.key))}function cT(s){return s.map(i=>i.key)}const tb=s=>`${s.pr.repo}#${s.pr.number}`;function uT(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:`${tb(u)} awaits your review`,body:`${u.pr.title} — ${u.pr.author}`,tag:i,key:u.key}}const r=s.slice(0,3).map(tb),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}}function jl(){return typeof Notification>"u"?"unsupported":Notification.permission==="denied"?"blocked":Ib(Sf)==="off"?"off":Notification.permission==="granted"?"on":"ask"}async function fT(){const s=jl();if(s==="unsupported"||s==="blocked")return s;if(s==="on")return Tf(Sf,"off"),jl();if(Tf(Sf,"on"),Notification.permission==="default")try{await Notification.requestPermission()}catch{}return jl()}function dT(s){const i=new Notification(s.title,{body:s.body,tag:s.tag,icon:"/favicon.svg"});i.onclick=()=>{window.focus(),window.location.hash=s.key?`#/r/${encodeURIComponent(s.key)}`:"#/",i.close()}}function hT(){const s=he.useRef(null);he.useEffect(()=>{let i=!0;const r=Ib(eb);if(r)try{const d=JSON.parse(r);Array.isArray(d)&&(s.current=d.filter(g=>typeof g=="string"))}catch{}const l=()=>kf().then(d=>{if(!i)return;const g=s.current;if(s.current=cT(d),Tf(eb,JSON.stringify(s.current)),!g||jl()!=="on"||document.visibilityState==="visible"&&document.hasFocus())return;const E=uT(oT(d,g));E&&dT(E)}).catch(()=>{});l();const u=setInterval(l,rT);return()=>{i=!1,clearInterval(u)}},[])}function jb(){const[s,i]=he.useState(jl);return he.useEffect(()=>{const r=()=>i(jl());return window.addEventListener("focus",r),()=>window.removeEventListener("focus",r)},[]),[s,()=>void fT().then(i)]}const eo=s=>{window.location.hash=`#/r/${encodeURIComponent(s)}`};function pT(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 mT({daemon:s}){return s!=null&&s.enabled?p.jsx("div",{className:"daemon-bar",children:p.jsxs("div",{className:"bar-inner",children:[s.pollEnabled?p.jsxs("span",{className:"daemon-live",children:[p.jsx("span",{className:"dot"}),s.repos.length>0?s.repos.join(", "):"PRs awaiting you"," · every"," ",Math.round(s.intervalMs/6e4),"m"]}):p.jsxs("span",{className:"daemon-live",children:[p.jsx("span",{className:"dot dot-off"}),"polling off (settings) — local reviews only"]}),p.jsxs("span",{children:["auto-review ",p.jsx("b",{children:s.autoReview?"on":"off"})]}),p.jsxs("span",{children:["auto-send ",p.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&&p.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:[p.jsx(ft,{name:"zap",size:12})," trusted PRs run with Bash"]}),p.jsx("span",{className:"grow"}),s.lastPollError?p.jsx("span",{className:"danger",title:s.lastPollError,children:"discovery offline — showing local reviews only"}):p.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 gT({r:s,selected:i,onSelect:r,onOpen:l,awaiting:u}){const d=YS(s),g=US(s),E=u?qS(s,u):null;return p.jsxs("div",{className:`row${i?" row-on":""}`,onClick:l,onMouseEnter:r,role:"button",tabIndex:-1,children:[p.jsx("span",{className:"col-caret",children:"›"}),p.jsxs("span",{className:"col-slug",title:`${s.pr.owner}/${s.pr.repo}#${s.pr.number}`,children:[s.pr.repo,"#",s.pr.number]}),p.jsx("span",{className:"col-author",title:s.pr.author,children:s.pr.author}),p.jsx("span",{className:"col-title",title:s.pr.title,children:s.pr.title}),s.pr.isDraft&&p.jsx("span",{className:"tag tag-draft",title:"Still a draft — its author asked for your review anyway",children:"draft"}),E&&p.jsx("span",{className:"tag tag-awaiting",title:E.title,children:E.label}),g&&p.jsx("span",{className:"tag tag-done",children:g}),p.jsx("span",{className:"col-comments",children:s.commentCount||""}),p.jsx("span",{className:"col-size",children:s.pr.changedFiles>0?p.jsxs(p.Fragment,{children:[s.pr.changedFiles,"f ",p.jsxs("span",{className:"add",children:["+",s.pr.additions]})," ",p.jsxs("span",{className:"del",children:["−",s.pr.deletions]})]}):"—"}),p.jsx("span",{className:`col-verdict tone-${d.tone}`,children:d.label}),p.jsx("span",{className:"col-age",children:Db(s.updatedAt)})]})}function nb({autoFocus:s}){const[i,r]=he.useState(""),[l,u]=he.useState(!1),[d,g]=he.useState(null),E=h=>{h.preventDefault();const m=i.trim();!m||l||(u(!0),g(null),Zv(m).then(b=>eo(b.key)).catch(b=>{g(String(b instanceof Error?b.message:b)),u(!1)}))};return p.jsxs("form",{className:"pull",onSubmit:E,children:[p.jsx(ft,{name:"plus"}),p.jsx("input",{className:"pull-input",value:i,autoFocus:s,disabled:l,onChange:h=>{r(h.target.value),d&&g(null)},placeholder:"paste a PR URL to review it","aria-label":"Review any PR by URL"}),i.trim()&&p.jsx("button",{className:"btn btn-small",type:"submit",disabled:l,children:l?"starting…":"review"}),d&&p.jsx("span",{className:"pull-error",children:d})]})}function bT({text:s}){const i=he.useRef(null),[r,l]=he.useState(!1);return he.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]),p.jsx("div",{ref:i,className:`strip-prose${r?" strip-prose-clipped":""}`,children:p.jsx(Ji,{className:"prose",text:s})})}function yT(){var ee;const[s,i]=he.useState(null),[r,l]=he.useState(null),[u,d]=he.useState(null),[g,E]=he.useState(new Set),[h,m]=he.useState("inbox"),[b,v]=he.useState(null),T=he.useRef(!0);he.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);const x=()=>{kf().then(Z=>T.current&&i(Z)).catch(Z=>T.current&&d(String(Z))),$v().then(Z=>T.current&&l(Z)).catch(()=>{})};he.useEffect(()=>{x();const Z=setInterval(x,1e4);return()=>clearInterval(Z)},[]);const N=s??[],k=he.useMemo(()=>LS(N,r),[N,r]),R=k.requests,U=zS(h,k),$=k[U];he.useEffect(()=>{U!==h&&m(U)},[U,h]);const L=$.find(Z=>Z.key===b)??$[0]??null,le=Z=>{E(ue=>new Set(ue).add(Z)),mb(Z).then(()=>x()).catch(ue=>T.current&&d(String(ue))).finally(()=>{T.current&&E(ue=>{const Oe=new Set(ue);return Oe.delete(Z),Oe})})};if(he.useEffect(()=>{const Z=ue=>{if(pT(ue.target)||ue.metaKey||ue.ctrlKey||ue.altKey)return;const Oe=$.findIndex(ge=>ge.key===(L==null?void 0:L.key)),Ce=ge=>{const B=$[Math.min($.length-1,Math.max(0,Oe+ge))];B&&v(B.key)};ue.key==="j"||ue.key==="ArrowDown"?(ue.preventDefault(),Ce(1)):ue.key==="k"||ue.key==="ArrowUp"?(ue.preventDefault(),Ce(-1)):ue.key==="Enter"&&L?eo(L.key):ue.key==="r"&&L&&L.status!=="sent"&&L.status!=="running"&&le(L.key)};return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)},[$,L==null?void 0:L.key]),u&&!s)return p.jsx("p",{className:"error",children:u});if(!s)return p.jsx("p",{className:"muted pad",children:"Loading…"});const q=$.reduce((Z,ue)=>Z+(ue.costUsd??0),0),J=L?KS(L,r):null,ae=L?g.has(L.key):!1,M=vf.filter(Z=>k[Z].length>0),Y=Z=>p.jsxs("button",{className:`tab${U===Z?" tab-on":""}${vf.includes(Z)?" tab-filed":""}${Z==="requests"?" tab-requests":""}`,title:ff[Z].title,onClick:()=>m(Z),children:[ff[Z].label," ",p.jsx("span",{className:"tab-count",children:k[Z].length})]},Z);return p.jsxs(p.Fragment,{children:[p.jsx(mT,{daemon:r}),u&&p.jsx("div",{className:"wrap",children:p.jsx("p",{className:"error",children:u})}),N.length===0?p.jsx("div",{className:"wrap",children:p.jsxs("div",{className:"empty",children:[r!=null&&r.enabled?p.jsxs("p",{children:["Inbox empty — nothing awaits your review.",r.lastPollError?" (Discovery is offline; check gh auth.)":""]}):p.jsx("p",{children:"No reviews yet."}),p.jsx(nb,{autoFocus:!0})]})}):p.jsxs("div",{className:"wrap",children:[p.jsxs("div",{className:"tabs",children:[kS.map(Y),M.length>0&&p.jsx("span",{className:"tab-split","aria-hidden":"true"}),M.map(Y),p.jsx("span",{className:"grow"}),p.jsx(nb,{}),q>0&&p.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:["≈$",q.toFixed(2)," at API rates"]})]}),p.jsxs("div",{className:"table-head",children:[p.jsx("span",{className:"col-caret"}),p.jsx("span",{className:"col-slug",children:"repo#pr"}),p.jsx("span",{className:"col-author",children:"author"}),p.jsx("span",{className:"col-title",children:"title"}),p.jsx("span",{className:"col-comments",children:"c"}),p.jsx("span",{className:"col-size",children:"size"}),p.jsx("span",{className:"col-verdict",children:"verdict"}),p.jsx("span",{className:"col-age",children:"upd"})]}),$.length===0?p.jsx("div",{className:"empty-tab",children:U==="inbox"&&R.length>0?p.jsxs(p.Fragment,{children:[p.jsx("p",{children:GS(R)}),p.jsxs("button",{className:"btn",onClick:()=>m("requests"),children:[p.jsx(ft,{name:"arrowRight"}),"show ",R.length===1?"it":`all ${R.length}`]})]}):p.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 ${ff[U].label} right now.`})}):$.map(Z=>p.jsx(gT,{r:Z,selected:Z.key===(L==null?void 0:L.key),onSelect:()=>v(Z.key),onOpen:()=>eo(Z.key),awaiting:DS(Z,R)?BS(Z,r):null},Z.key)),L&&J&&p.jsxs("div",{className:"cursor-strip",children:[p.jsxs("div",{className:"cursor-strip-body",children:[p.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}`:""]}),p.jsx(bT,{text:J.reasoning}),p.jsxs("div",{className:"cursor-strip-meta",children:[J.meta.join(" · "),((ee=L.sent)==null?void 0:ee.url)&&p.jsxs(p.Fragment,{children:[" · ",p.jsx("a",{href:L.sent.url,target:"_blank",rel:"noreferrer",children:"view on GitHub"})]})]})]}),p.jsxs("div",{className:"cursor-strip-actions",children:[p.jsxs("button",{className:"btn-primary",onClick:()=>eo(L.key),children:[p.jsx(ft,{name:"arrowRight"}),"open review ",p.jsx(Qi,{children:"↵"})]}),p.jsxs("div",{className:"cursor-strip-row",children:[p.jsxs("button",{className:"btn",disabled:L.status==="sent"||L.status==="skipped",title:"Set the local queue status to skipped. Nothing is sent.",onClick:()=>hf(L.key,{status:"skipped"}).then(x).catch(Z=>d(String(Z))),children:[p.jsx(ft,{name:"skip"}),"skip"]}),p.jsxs("button",{className:"btn",disabled:ae||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:()=>le(L.key),children:[p.jsx(ft,{name:"rerun"}),ae?"starting…":L.status==="awaiting"||L.status==="failed"?"review now":"re-review"]})]})]})]})]})]})}const ET=[{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"}],ab=s=>s instanceof Error?s.message:String(s),vT={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 _T(){const[s,i]=jb(),[r,l]=he.useState(null),[u,d]=he.useState(""),[g,E]=he.useState(null),[h,m]=he.useState(!1);he.useEffect(()=>{e_().then(l).catch(v=>E(ab(v)))},[]);const b=v=>{m(!0),E(null),v.then(l).catch(T=>E(ab(T))).finally(()=>m(!1))};return g&&!r?p.jsx("p",{className:"error",children:g}):r?p.jsxs("div",{className:"settings",children:[p.jsx("a",{href:"#/",className:"back",children:"← queue"}),p.jsx("h1",{children:"Inbox"}),p.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."}),p.jsxs("label",{className:"inbox-toggle",children:[p.jsx("input",{type:"checkbox",checked:r.daemon.poll,disabled:h,onChange:v=>b(jm({poll:v.target.checked}))})," ","poll GitHub for PRs awaiting my review (every ",r.daemon.intervalMinutes,"m)"]}),p.jsxs("label",{className:"inbox-toggle",children:[p.jsx("input",{type:"checkbox",checked:r.daemon.autoReview,disabled:h||!r.daemon.poll,onChange:v=>b(jm({autoReview:v.target.checked}))})," ","draft a review automatically (off: awaiting PRs wait for a click)"]}),p.jsxs("p",{className:"muted",children:["Interval, concurrency and a repo filter live in ",p.jsx("code",{children:r.path})," under"," ",p.jsx("code",{children:"daemon"})," — hand-editable, like everything here."]}),p.jsx("h1",{children:"Notifications"}),p.jsx("p",{children:"The cockpit spends its day as a background tab, so it tells you when a PR lands in the queue: one desktop notification per poll. A single arrival names the PR and opens that review when you click it; several landing at once fold into one notification that opens the queue. Nothing is announced while you're looking straight at the cockpit, and a PR this browser has already seen never arrives twice."}),p.jsxs("label",{className:"inbox-toggle",children:[p.jsx("input",{type:"checkbox",checked:s==="on",disabled:s==="unsupported"||s==="blocked",onChange:i})," ",vT[s]]}),p.jsxs("p",{className:"muted",children:["This one is per-browser, not per-machine: the permission belongs to this browser, so the switch lives here rather than in ",p.jsx("code",{children:r.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."]}),p.jsx("h1",{children:"Trusted PRs"}),p.jsxs("p",{children:["Every review reads the PR's code. A ",p.jsx("strong",{children:"trusted"})," review may also run it — the test that covers the change, a typecheck, ",p.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."]}),p.jsxs("p",{className:"muted",children:["Trust the people, not the code: nothing about a PR can earn it. Rules live in"," ",p.jsx("code",{children:r.path}),"."]}),p.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".'}),p.jsxs("div",{className:"trust-add",children:[p.jsx("input",{value:u,"aria-label":"Trust rule",placeholder:"@org/*, @org/team, @login, !deny",disabled:h,onChange:v=>d(v.target.value),onKeyDown:v=>{v.key==="Enter"&&!h&&u.trim()&&(b(Eu(u.trim())),d(""))}}),p.jsx("button",{className:"btn",disabled:h||!u.trim(),onClick:()=>{b(Eu(u.trim())),d("")},children:"trust"})]}),g&&p.jsx("p",{className:"error",children:g}),r.trust.length===0?p.jsx("p",{className:"muted",children:"Nobody is trusted yet — every review reads the checkout and runs nothing."}):p.jsx("table",{className:"trust-table",children:p.jsx("tbody",{children:r.trust.map(v=>p.jsxs("tr",{className:v.denies?"trust-deny":void 0,children:[p.jsx("td",{children:p.jsx("code",{children:v.rule})}),p.jsx("td",{className:"muted",children:v.explanation}),p.jsx("td",{className:"trust-actions",children:p.jsx("button",{className:"btn",disabled:h,onClick:()=>b(Eu(v.rule,!0)),children:"remove"})})]},v.rule))})}),p.jsx("h2",{children:"Rule syntax"}),p.jsx("table",{className:"trust-table",children:p.jsx("tbody",{children:ET.map(v=>p.jsxs("tr",{children:[p.jsx("td",{children:p.jsx("code",{children:v.rule})}),p.jsx("td",{className:"muted",children:v.meaning})]},v.rule))})}),p.jsxs("p",{className:"muted",children:["A trusted review is handed no GitHub credentials — no token, no ",p.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 ",p.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 ",p.jsx("code",{children:"--no-trust"})," to prevent that."]})]}):p.jsx("p",{className:"muted",children:"Loading…"})}function ib(){const s=window.location.hash,i=s.match(/^#\/r\/(.+)$/);return i?{view:"detail",key:decodeURIComponent(i[1])}:s==="#/settings"?{view:"settings"}:{view:"queue"}}const lb={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."};function ST(){const[s,i]=jb();return s==="unsupported"?null:p.jsx("button",{className:`topbar-link bell bell-${s}`,title:lb[s],"aria-label":lb[s],"aria-pressed":s==="on",onClick:i,children:p.jsx(ft,{name:s==="on"?"bell":"bellOff",size:15})})}function TT(){const[s,i]=he.useState(ib());return hT(),he.useEffect(()=>{const r=()=>i(ib());return window.addEventListener("hashchange",r),()=>window.removeEventListener("hashchange",r)},[]),s.view==="detail"?p.jsx("div",{className:"app",children:p.jsx(sT,{reviewKey:s.key})}):p.jsxs("div",{className:"app",children:[p.jsx("header",{className:"topbar",children:p.jsxs("div",{className:"bar-inner",children:[p.jsxs("a",{href:"#/",className:"brand",children:[p.jsx(e0,{}),"cerber"]}),p.jsx("span",{className:"tagline",children:"nothing reaches GitHub until you say so"}),p.jsx("span",{className:"grow"}),s.view==="queue"&&p.jsxs(p.Fragment,{children:[p.jsxs("span",{className:"hint",children:[p.jsx(Qi,{children:"j"}),p.jsx(Qi,{children:"k"}),"move"]}),p.jsxs("span",{className:"hint",children:[p.jsx(Qi,{children:"↵"}),"open"]}),p.jsxs("span",{className:"hint",children:[p.jsx(Qi,{children:"r"}),"review now"]})]}),p.jsx(ST,{}),p.jsx("a",{href:"#/settings",className:"topbar-link",title:"settings","aria-label":"settings",children:p.jsx(ft,{name:"settings",size:15})})]})}),s.view==="queue"?p.jsx(yT,{}):p.jsx(_T,{})]})}WE.createRoot(document.getElementById("root")).render(p.jsx(ZE.StrictMode,{children:p.jsx(TT,{})}));
|