diffprism 0.44.0 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,335 +0,0 @@
1
- (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function i(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();function R0(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Bc={exports:{}},yi={};/**
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 um;function k0(){if(um)return yi;um=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var p in o)p!=="key"&&(f[p]=o[p])}else f=o;return o=f.ref,{$$typeof:l,type:s,key:h,ref:o!==void 0?o:null,props:f}}return yi.Fragment=r,yi.jsx=i,yi.jsxs=i,yi}var sm;function M0(){return sm||(sm=1,Bc.exports=k0()),Bc.exports}var d=M0(),Hc={exports:{}},bi={},Gc={exports:{}},Yc={};/**
10
- * @license React
11
- * scheduler.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 cm;function D0(){return cm||(cm=1,(function(l){function r(S,L){var $=S.length;S.push(L);e:for(;0<$;){var se=$-1>>>1,re=S[se];if(0<o(re,L))S[se]=L,S[$]=re,$=se;else break e}}function i(S){return S.length===0?null:S[0]}function s(S){if(S.length===0)return null;var L=S[0],$=S.pop();if($!==L){S[0]=$;e:for(var se=0,re=S.length,E=re>>>1;se<E;){var B=2*(se+1)-1,J=S[B],ie=B+1,ge=S[ie];if(0>o(J,$))ie<re&&0>o(ge,J)?(S[se]=ge,S[ie]=$,se=ie):(S[se]=J,S[B]=$,se=B);else if(ie<re&&0>o(ge,$))S[se]=ge,S[ie]=$,se=ie;else break e}}return L}function o(S,L){var $=S.sortIndex-L.sortIndex;return $!==0?$:S.id-L.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,p=h.now();l.unstable_now=function(){return h.now()-p}}var g=[],y=[],x=1,v=null,w=3,A=!1,_=!1,O=!1,R=!1,k=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function Z(S){for(var L=i(y);L!==null;){if(L.callback===null)s(y);else if(L.startTime<=S)s(y),L.sortIndex=L.expirationTime,r(g,L);else break;L=i(y)}}function F(S){if(O=!1,Z(S),!_)if(i(g)!==null)_=!0,V||(V=!0,ne());else{var L=i(y);L!==null&&Q(F,L.startTime-S)}}var V=!1,X=-1,ee=5,te=-1;function ae(){return R?!0:!(l.unstable_now()-te<ee)}function le(){if(R=!1,V){var S=l.unstable_now();te=S;var L=!0;try{e:{_=!1,O&&(O=!1,Y(X),X=-1),A=!0;var $=w;try{t:{for(Z(S),v=i(g);v!==null&&!(v.expirationTime>S&&ae());){var se=v.callback;if(typeof se=="function"){v.callback=null,w=v.priorityLevel;var re=se(v.expirationTime<=S);if(S=l.unstable_now(),typeof re=="function"){v.callback=re,Z(S),L=!0;break t}v===i(g)&&s(g),Z(S)}else s(g);v=i(g)}if(v!==null)L=!0;else{var E=i(y);E!==null&&Q(F,E.startTime-S),L=!1}}break e}finally{v=null,w=$,A=!1}L=void 0}}finally{L?ne():V=!1}}}var ne;if(typeof T=="function")ne=function(){T(le)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,K=P.port2;P.port1.onmessage=le,ne=function(){K.postMessage(null)}}else ne=function(){k(le,0)};function Q(S,L){X=k(function(){S(l.unstable_now())},L)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(S){S.callback=null},l.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<S?Math.floor(1e3/S):5},l.unstable_getCurrentPriorityLevel=function(){return w},l.unstable_next=function(S){switch(w){case 1:case 2:case 3:var L=3;break;default:L=w}var $=w;w=L;try{return S()}finally{w=$}},l.unstable_requestPaint=function(){R=!0},l.unstable_runWithPriority=function(S,L){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var $=w;w=S;try{return L()}finally{w=$}},l.unstable_scheduleCallback=function(S,L,$){var se=l.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?se+$:se):$=se,S){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=$+re,S={id:x++,callback:L,priorityLevel:S,startTime:$,expirationTime:re,sortIndex:-1},$>se?(S.sortIndex=$,r(y,S),i(g)===null&&S===i(y)&&(O?(Y(X),X=-1):O=!0,Q(F,$-se))):(S.sortIndex=re,r(g,S),_||A||(_=!0,V||(V=!0,ne()))),S},l.unstable_shouldYield=ae,l.unstable_wrapCallback=function(S){var L=w;return function(){var $=w;w=L;try{return S.apply(this,arguments)}finally{w=$}}}})(Yc)),Yc}var om;function z0(){return om||(om=1,Gc.exports=D0()),Gc.exports}var qc={exports:{}},me={};/**
18
- * @license React
19
- * react.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 fm;function L0(){if(fm)return me;fm=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),w=Symbol.iterator;function A(E){return E===null||typeof E!="object"?null:(E=w&&E[w]||E["@@iterator"],typeof E=="function"?E:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,R={};function k(E,B,J){this.props=E,this.context=B,this.refs=R,this.updater=J||_}k.prototype.isReactComponent={},k.prototype.setState=function(E,B){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,B,"setState")},k.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Y(){}Y.prototype=k.prototype;function T(E,B,J){this.props=E,this.context=B,this.refs=R,this.updater=J||_}var Z=T.prototype=new Y;Z.constructor=T,O(Z,k.prototype),Z.isPureReactComponent=!0;var F=Array.isArray;function V(){}var X={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function te(E,B,J){var ie=J.ref;return{$$typeof:l,type:E,key:B,ref:ie!==void 0?ie:null,props:J}}function ae(E,B){return te(E.type,B,E.props)}function le(E){return typeof E=="object"&&E!==null&&E.$$typeof===l}function ne(E){var B={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return B[J]})}var P=/\/+/g;function K(E,B){return typeof E=="object"&&E!==null&&E.key!=null?ne(""+E.key):B.toString(36)}function Q(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function(B){E.status==="pending"&&(E.status="fulfilled",E.value=B)},function(B){E.status==="pending"&&(E.status="rejected",E.reason=B)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function S(E,B,J,ie,ge){var ve=typeof E;(ve==="undefined"||ve==="boolean")&&(E=null);var we=!1;if(E===null)we=!0;else switch(ve){case"bigint":case"string":case"number":we=!0;break;case"object":switch(E.$$typeof){case l:case r:we=!0;break;case x:return we=E._init,S(we(E._payload),B,J,ie,ge)}}if(we)return ge=ge(E),we=ie===""?"."+K(E,0):ie,F(ge)?(J="",we!=null&&(J=we.replace(P,"$&/")+"/"),S(ge,B,J,"",function(Jt){return Jt})):ge!=null&&(le(ge)&&(ge=ae(ge,J+(ge.key==null||E&&E.key===ge.key?"":(""+ge.key).replace(P,"$&/")+"/")+we)),B.push(ge)),1;we=0;var Fe=ie===""?".":ie+":";if(F(E))for(var Ge=0;Ge<E.length;Ge++)ie=E[Ge],ve=Fe+K(ie,Ge),we+=S(ie,B,J,ve,ge);else if(Ge=A(E),typeof Ge=="function")for(E=Ge.call(E),Ge=0;!(ie=E.next()).done;)ie=ie.value,ve=Fe+K(ie,Ge++),we+=S(ie,B,J,ve,ge);else if(ve==="object"){if(typeof E.then=="function")return S(Q(E),B,J,ie,ge);throw B=String(E),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return we}function L(E,B,J){if(E==null)return E;var ie=[],ge=0;return S(E,ie,"","",function(ve){return B.call(J,ve,ge++)}),ie}function $(E){if(E._status===-1){var B=E._result;B=B(),B.then(function(J){(E._status===0||E._status===-1)&&(E._status=1,E._result=J)},function(J){(E._status===0||E._status===-1)&&(E._status=2,E._result=J)}),E._status===-1&&(E._status=0,E._result=B)}if(E._status===1)return E._result.default;throw E._result}var se=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=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(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},re={map:L,forEach:function(E,B,J){L(E,function(){B.apply(this,arguments)},J)},count:function(E){var B=0;return L(E,function(){B++}),B},toArray:function(E){return L(E,function(B){return B})||[]},only:function(E){if(!le(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return me.Activity=v,me.Children=re,me.Component=k,me.Fragment=i,me.Profiler=o,me.PureComponent=T,me.StrictMode=s,me.Suspense=g,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,me.__COMPILER_RUNTIME={__proto__:null,c:function(E){return X.H.useMemoCache(E)}},me.cache=function(E){return function(){return E.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(E,B,J){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var ie=O({},E.props),ge=E.key;if(B!=null)for(ve in B.key!==void 0&&(ge=""+B.key),B)!ee.call(B,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&B.ref===void 0||(ie[ve]=B[ve]);var ve=arguments.length-2;if(ve===1)ie.children=J;else if(1<ve){for(var we=Array(ve),Fe=0;Fe<ve;Fe++)we[Fe]=arguments[Fe+2];ie.children=we}return te(E.type,ge,ie)},me.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},me.createElement=function(E,B,J){var ie,ge={},ve=null;if(B!=null)for(ie in B.key!==void 0&&(ve=""+B.key),B)ee.call(B,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(ge[ie]=B[ie]);var we=arguments.length-2;if(we===1)ge.children=J;else if(1<we){for(var Fe=Array(we),Ge=0;Ge<we;Ge++)Fe[Ge]=arguments[Ge+2];ge.children=Fe}if(E&&E.defaultProps)for(ie in we=E.defaultProps,we)ge[ie]===void 0&&(ge[ie]=we[ie]);return te(E,ve,ge)},me.createRef=function(){return{current:null}},me.forwardRef=function(E){return{$$typeof:p,render:E}},me.isValidElement=le,me.lazy=function(E){return{$$typeof:x,_payload:{_status:-1,_result:E},_init:$}},me.memo=function(E,B){return{$$typeof:y,type:E,compare:B===void 0?null:B}},me.startTransition=function(E){var B=X.T,J={};X.T=J;try{var ie=E(),ge=X.S;ge!==null&&ge(J,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(V,se)}catch(ve){se(ve)}finally{B!==null&&J.types!==null&&(B.types=J.types),X.T=B}},me.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},me.use=function(E){return X.H.use(E)},me.useActionState=function(E,B,J){return X.H.useActionState(E,B,J)},me.useCallback=function(E,B){return X.H.useCallback(E,B)},me.useContext=function(E){return X.H.useContext(E)},me.useDebugValue=function(){},me.useDeferredValue=function(E,B){return X.H.useDeferredValue(E,B)},me.useEffect=function(E,B){return X.H.useEffect(E,B)},me.useEffectEvent=function(E){return X.H.useEffectEvent(E)},me.useId=function(){return X.H.useId()},me.useImperativeHandle=function(E,B,J){return X.H.useImperativeHandle(E,B,J)},me.useInsertionEffect=function(E,B){return X.H.useInsertionEffect(E,B)},me.useLayoutEffect=function(E,B){return X.H.useLayoutEffect(E,B)},me.useMemo=function(E,B){return X.H.useMemo(E,B)},me.useOptimistic=function(E,B){return X.H.useOptimistic(E,B)},me.useReducer=function(E,B,J){return X.H.useReducer(E,B,J)},me.useRef=function(E){return X.H.useRef(E)},me.useState=function(E){return X.H.useState(E)},me.useSyncExternalStore=function(E,B,J){return X.H.useSyncExternalStore(E,B,J)},me.useTransition=function(){return X.H.useTransition()},me.version="19.2.4",me}var dm;function ho(){return dm||(dm=1,qc.exports=L0()),qc.exports}var Ic={exports:{}},st={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var hm;function U0(){if(hm)return st;hm=1;var l=ho();function r(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)y+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(g,y,x){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:g,containerInfo:y,implementation:x}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,st.createPortal=function(g,y){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(r(299));return f(g,y,null,x)},st.flushSync=function(g){var y=h.T,x=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=y,s.p=x,s.d.f()}},st.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(g,y))},st.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},st.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var x=y.as,v=p(x,y.crossOrigin),w=typeof y.integrity=="string"?y.integrity:void 0,A=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;x==="style"?s.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:v,integrity:w,fetchPriority:A}):x==="script"&&s.d.X(g,{crossOrigin:v,integrity:w,fetchPriority:A,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},st.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var x=p(y.as,y.crossOrigin);s.d.M(g,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(g)},st.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var x=y.as,v=p(x,y.crossOrigin);s.d.L(g,x,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},st.preloadModule=function(g,y){if(typeof g=="string")if(y){var x=p(y.as,y.crossOrigin);s.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(g)},st.requestFormReset=function(g){s.d.r(g)},st.unstable_batchedUpdates=function(g,y){return g(y)},st.useFormState=function(g,y,x){return h.H.useFormState(g,y,x)},st.useFormStatus=function(){return h.H.useHostTransitionStatus()},st.version="19.2.4",st}var gm;function B0(){if(gm)return Ic.exports;gm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),Ic.exports=U0(),Ic.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 mm;function H0(){if(mm)return bi;mm=1;var l=z0(),r=ho(),i=B0();function s(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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(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 h(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 p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var u=n.return;if(u===null)break;var c=u.alternate;if(c===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===n)return g(u),e;if(c===a)return g(u),t;c=c.sibling}throw Error(s(188))}if(n.return!==a.return)n=u,a=c;else{for(var m=!1,b=u.child;b;){if(b===n){m=!0,n=u,a=c;break}if(b===a){m=!0,a=u,n=c;break}b=b.sibling}if(!m){for(b=c.child;b;){if(b===n){m=!0,n=c,a=u;break}if(b===a){m=!0,a=c,n=u;break}b=b.sibling}if(!m)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,w=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),T=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),ae=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var P=Symbol.for("react.client.reference");function K(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===P?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case k:return"Profiler";case R:return"StrictMode";case F:return"Suspense";case V:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case T:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:K(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return K(e(t))}catch{}}return null}var Q=Array.isArray,S=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},se=[],re=-1;function E(e){return{current:e}}function B(e){0>re||(e.current=se[re],se[re]=null,re--)}function J(e,t){re++,se[re]=e.current,e.current=t}var ie=E(null),ge=E(null),ve=E(null),we=E(null);function Fe(e,t){switch(J(ve,t),J(ge,e),J(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jg(t),e=Rg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(ie),J(ie,e)}function Ge(){B(ie),B(ge),B(ve)}function Jt(e){e.memoizedState!==null&&J(we,e);var t=ie.current,n=Rg(t,e.type);t!==n&&(J(ge,e),J(ie,n))}function Pn(e){ge.current===e&&(B(ie),B(ge)),we.current===e&&(B(we),hi._currentValue=$)}var An,Nl;function Zt(e){if(An===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);An=t&&t[1]||"",Nl=-1<n.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+An+e+Nl}var Al=!1;function Ft(e,t){if(!e||Al)return"";Al=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(U){var z=U}Reflect.construct(e,[],I)}else{try{I.call()}catch(U){z=U}e.call(I.prototype)}}else{try{throw Error()}catch(U){z=U}(I=e())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(U){if(U&&z&&typeof U.stack=="string")return[U.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),m=c[0],b=c[1];if(m&&b){var N=m.split(`
44
- `),D=b.split(`
45
- `);for(u=a=0;a<N.length&&!N[a].includes("DetermineComponentFrameRoot");)a++;for(;u<D.length&&!D[u].includes("DetermineComponentFrameRoot");)u++;if(a===N.length||u===D.length)for(a=N.length-1,u=D.length-1;1<=a&&0<=u&&N[a]!==D[u];)u--;for(;1<=a&&0<=u;a--,u--)if(N[a]!==D[u]){if(a!==1||u!==1)do if(a--,u--,0>u||N[a]!==D[u]){var G=`
46
- `+N[a].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=a&&0<=u);break}}}finally{Al=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Zt(n):""}function sy(e,t){switch(e.tag){case 26:case 27:case 5:return Zt(e.type);case 16:return Zt("Lazy");case 13:return e.child!==t&&t!==null?Zt("Suspense Fallback"):Zt("Suspense");case 19:return Zt("SuspenseList");case 0:case 15:return Ft(e.type,!1);case 11:return Ft(e.type.render,!1);case 1:return Ft(e.type,!0);case 31:return Zt("Activity");default:return""}}function uf(e){try{var t="",n=null;do t+=sy(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var Nu=Object.prototype.hasOwnProperty,Au=l.unstable_scheduleCallback,wu=l.unstable_cancelCallback,cy=l.unstable_shouldYield,oy=l.unstable_requestPaint,vt=l.unstable_now,fy=l.unstable_getCurrentPriorityLevel,sf=l.unstable_ImmediatePriority,cf=l.unstable_UserBlockingPriority,ji=l.unstable_NormalPriority,dy=l.unstable_LowPriority,of=l.unstable_IdlePriority,hy=l.log,gy=l.unstable_setDisableYieldValue,wl=null,xt=null;function wn(e){if(typeof hy=="function"&&gy(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(wl,e)}catch{}}var St=Math.clz32?Math.clz32:yy,my=Math.log,py=Math.LN2;function yy(e){return e>>>=0,e===0?32:31-(my(e)/py|0)|0}var Ri=256,ki=262144,Mi=4194304;function ea(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 Di(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var u=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~c,a!==0?u=ea(a):(m&=b,m!==0?u=ea(m):n||(n=b&~e,n!==0&&(u=ea(n))))):(b=a&~c,b!==0?u=ea(b):m!==0?u=ea(m):n||(n=a&~e,n!==0&&(u=ea(n)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:u}function Tl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function by(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 ff(){var e=Mi;return Mi<<=1,(Mi&62914560)===0&&(Mi=4194304),e}function Tu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _l(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vy(e,t,n,a,u,c){var m=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 b=e.entanglements,N=e.expirationTimes,D=e.hiddenUpdates;for(n=m&~n;0<n;){var G=31-St(n),I=1<<G;b[G]=0,N[G]=-1;var z=D[G];if(z!==null)for(D[G]=null,G=0;G<z.length;G++){var U=z[G];U!==null&&(U.lane&=-536870913)}n&=~I}a!==0&&df(e,a,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function df(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-St(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function hf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-St(n),u=1<<a;u&t|e[a]&t&&(e[a]|=t),n&=~u}}function gf(e,t){var n=t&-t;return n=(n&42)!==0?1:_u(n),(n&(e.suspendedLanes|t))!==0?0:n}function _u(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 Cu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function mf(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:em(e.type))}function pf(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var Tn=Math.random().toString(36).slice(2),at="__reactFiber$"+Tn,ot="__reactProps$"+Tn,Ta="__reactContainer$"+Tn,Ou="__reactEvents$"+Tn,xy="__reactListeners$"+Tn,Sy="__reactHandles$"+Tn,yf="__reactResources$"+Tn,Cl="__reactMarker$"+Tn;function ju(e){delete e[at],delete e[ot],delete e[Ou],delete e[xy],delete e[Sy]}function _a(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ta]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bg(e);e!==null;){if(n=e[at])return n;e=Bg(e)}return t}e=n,n=e.parentNode}return null}function Ca(e){if(e=e[at]||e[Ta]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ol(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Oa(e){var t=e[yf];return t||(t=e[yf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[Cl]=!0}var bf=new Set,vf={};function ta(e,t){ja(e,t),ja(e+"Capture",t)}function ja(e,t){for(vf[e]=t,e=0;e<t.length;e++)bf.add(t[e])}var Ey=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]*$"),xf={},Sf={};function Ny(e){return Nu.call(Sf,e)?!0:Nu.call(xf,e)?!1:Ey.test(e)?Sf[e]=!0:(xf[e]=!0,!1)}function zi(e,t,n){if(Ny(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 Li(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 ln(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 kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ef(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ay(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 u=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(m){n=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ru(e){if(!e._valueTracker){var t=Ef(e)?"checked":"value";e._valueTracker=Ay(e,t,""+e[t])}}function Nf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Ef(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ui(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 wy=/[\n"\\]/g;function Mt(e){return e.replace(wy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ku(e,t,n,a,u,c,m,b){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kt(t)):e.value!==""+kt(t)&&(e.value=""+kt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Mu(e,m,kt(t)):n!=null?Mu(e,m,kt(n)):a!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+kt(b):e.removeAttribute("name")}function Af(e,t,n,a,u,c,m,b){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)){Ru(e);return}n=n!=null?""+kt(n):"",t=t!=null?""+kt(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Ru(e)}function Mu(e,t,n){t==="number"&&Ui(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ra(e,t,n,a){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&a&&(e[n].defaultSelected=!0)}else{for(n=""+kt(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function wf(e,t,n){if(t!=null&&(t=""+kt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+kt(n):""}function Tf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(Q(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=kt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Ru(e)}function ka(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ty=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 _f(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||Ty.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Cf(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(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 u in t)a=t[u],t.hasOwnProperty(u)&&n[u]!==a&&_f(e,u,a)}else for(var c in t)t.hasOwnProperty(c)&&_f(e,c,t[c])}function Du(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 _y=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"]]),Cy=/^[\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 Bi(e){return Cy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function rn(){}var zu=null;function Lu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ma=null,Da=null;function Of(e){var t=Ca(e);if(t&&(e=t.stateNode)){var n=e[ot]||null;e:switch(e=t.stateNode,t.type){case"input":if(ku(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="'+Mt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var u=a[ot]||null;if(!u)throw Error(s(90));ku(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Nf(a)}break e;case"textarea":wf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ra(e,!!n.multiple,t,!1)}}}var Uu=!1;function jf(e,t,n){if(Uu)return e(t,n);Uu=!0;try{var a=e(t);return a}finally{if(Uu=!1,(Ma!==null||Da!==null)&&(wr(),Ma&&(t=Ma,e=Da,Da=Ma=null,Of(t),e)))for(t=0;t<e.length;t++)Of(e[t])}}function jl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[ot]||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(s(231,t,typeof n));return n}var un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bu=!1;if(un)try{var Rl={};Object.defineProperty(Rl,"passive",{get:function(){Bu=!0}}),window.addEventListener("test",Rl,Rl),window.removeEventListener("test",Rl,Rl)}catch{Bu=!1}var _n=null,Hu=null,Hi=null;function Rf(){if(Hi)return Hi;var e,t=Hu,n=t.length,a,u="value"in _n?_n.value:_n.textContent,c=u.length;for(e=0;e<n&&t[e]===u[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===u[c-a];a++);return Hi=u.slice(e,1<a?1-a:void 0)}function Gi(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 Yi(){return!0}function kf(){return!1}function ft(e){function t(n,a,u,c,m){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(c):c[b]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Yi:kf,this.isPropagationStopped=kf,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=Yi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yi)},persist:function(){},isPersistent:Yi}),t}var na={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qi=ft(na),kl=v({},na,{view:0,detail:0}),Oy=ft(kl),Gu,Yu,Ml,Ii=v({},kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iu,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!==Ml&&(Ml&&e.type==="mousemove"?(Gu=e.screenX-Ml.screenX,Yu=e.screenY-Ml.screenY):Yu=Gu=0,Ml=e),Gu)},movementY:function(e){return"movementY"in e?e.movementY:Yu}}),Mf=ft(Ii),jy=v({},Ii,{dataTransfer:0}),Ry=ft(jy),ky=v({},kl,{relatedTarget:0}),qu=ft(ky),My=v({},na,{animationName:0,elapsedTime:0,pseudoElement:0}),Dy=ft(My),zy=v({},na,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ly=ft(zy),Uy=v({},na,{data:0}),Df=ft(Uy),By={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hy={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"},Gy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gy[e])?!!t[e]:!1}function Iu(){return Yy}var qy=v({},kl,{key:function(e){if(e.key){var t=By[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iu,charCode:function(e){return e.type==="keypress"?Gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Iy=ft(qy),Xy=v({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zf=ft(Xy),Zy=v({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iu}),Fy=ft(Zy),Vy=v({},na,{propertyName:0,elapsedTime:0,pseudoElement:0}),$y=ft(Vy),Ky=v({},Ii,{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}),Qy=ft(Ky),Jy=v({},na,{newState:0,oldState:0}),Wy=ft(Jy),Py=[9,13,27,32],Xu=un&&"CompositionEvent"in window,Dl=null;un&&"documentMode"in document&&(Dl=document.documentMode);var eb=un&&"TextEvent"in window&&!Dl,Lf=un&&(!Xu||Dl&&8<Dl&&11>=Dl),Uf=" ",Bf=!1;function Hf(e,t){switch(e){case"keyup":return Py.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var za=!1;function tb(e,t){switch(e){case"compositionend":return Gf(t);case"keypress":return t.which!==32?null:(Bf=!0,Uf);case"textInput":return e=t.data,e===Uf&&Bf?null:e;default:return null}}function nb(e,t){if(za)return e==="compositionend"||!Xu&&Hf(e,t)?(e=Rf(),Hi=Hu=_n=null,za=!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 Lf&&t.locale!=="ko"?null:t.data;default:return null}}var ab={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 Yf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ab[e.type]:t==="textarea"}function qf(e,t,n,a){Ma?Da?Da.push(a):Da=[a]:Ma=a,t=kr(t,"onChange"),0<t.length&&(n=new qi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var zl=null,Ll=null;function lb(e){Ag(e,0)}function Xi(e){var t=Ol(e);if(Nf(t))return e}function If(e,t){if(e==="change")return t}var Xf=!1;if(un){var Zu;if(un){var Fu="oninput"in document;if(!Fu){var Zf=document.createElement("div");Zf.setAttribute("oninput","return;"),Fu=typeof Zf.oninput=="function"}Zu=Fu}else Zu=!1;Xf=Zu&&(!document.documentMode||9<document.documentMode)}function Ff(){zl&&(zl.detachEvent("onpropertychange",Vf),Ll=zl=null)}function Vf(e){if(e.propertyName==="value"&&Xi(Ll)){var t=[];qf(t,Ll,e,Lu(e)),jf(lb,t)}}function ib(e,t,n){e==="focusin"?(Ff(),zl=t,Ll=n,zl.attachEvent("onpropertychange",Vf)):e==="focusout"&&Ff()}function rb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xi(Ll)}function ub(e,t){if(e==="click")return Xi(t)}function sb(e,t){if(e==="input"||e==="change")return Xi(t)}function cb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:cb;function Ul(e,t){if(Et(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 u=n[a];if(!Nu.call(t,u)||!Et(e[u],t[u]))return!1}return!0}function $f(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kf(e,t){var n=$f(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=$f(n)}}function Qf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ui(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=Ui(e.document)}return t}function Vu(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 ob=un&&"documentMode"in document&&11>=document.documentMode,La=null,$u=null,Bl=null,Ku=!1;function Wf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ku||La==null||La!==Ui(a)||(a=La,"selectionStart"in a&&Vu(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}),Bl&&Ul(Bl,a)||(Bl=a,a=kr($u,"onSelect"),0<a.length&&(t=new qi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=La)))}function aa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ua={animationend:aa("Animation","AnimationEnd"),animationiteration:aa("Animation","AnimationIteration"),animationstart:aa("Animation","AnimationStart"),transitionrun:aa("Transition","TransitionRun"),transitionstart:aa("Transition","TransitionStart"),transitioncancel:aa("Transition","TransitionCancel"),transitionend:aa("Transition","TransitionEnd")},Qu={},Pf={};un&&(Pf=document.createElement("div").style,"AnimationEvent"in window||(delete Ua.animationend.animation,delete Ua.animationiteration.animation,delete Ua.animationstart.animation),"TransitionEvent"in window||delete Ua.transitionend.transition);function la(e){if(Qu[e])return Qu[e];if(!Ua[e])return e;var t=Ua[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pf)return Qu[e]=t[n];return e}var ed=la("animationend"),td=la("animationiteration"),nd=la("animationstart"),fb=la("transitionrun"),db=la("transitionstart"),hb=la("transitioncancel"),ad=la("transitionend"),ld=new Map,Ju="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(" ");Ju.push("scrollEnd");function Vt(e,t){ld.set(e,t),ta(t,[e])}var Zi=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)},Dt=[],Ba=0,Wu=0;function Fi(){for(var e=Ba,t=Wu=Ba=0;t<e;){var n=Dt[t];Dt[t++]=null;var a=Dt[t];Dt[t++]=null;var u=Dt[t];Dt[t++]=null;var c=Dt[t];if(Dt[t++]=null,a!==null&&u!==null){var m=a.pending;m===null?u.next=u:(u.next=m.next,m.next=u),a.pending=u}c!==0&&id(n,u,c)}}function Vi(e,t,n,a){Dt[Ba++]=e,Dt[Ba++]=t,Dt[Ba++]=n,Dt[Ba++]=a,Wu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Pu(e,t,n,a){return Vi(e,t,n,a),$i(e)}function ia(e,t){return Vi(e,null,null,t),$i(e)}function id(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var u=!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||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-St(n),e=c.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=n|536870912),c):null}function $i(e){if(50<ri)throw ri=0,sc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ha={};function gb(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 Nt(e,t,n,a){return new gb(e,t,n,a)}function es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sn(e,t){var n=e.alternate;return n===null?(n=Nt(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 rd(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 Ki(e,t,n,a,u,c){var m=0;if(a=e,typeof e=="function")es(e)&&(m=1);else if(typeof e=="string")m=v0(e,n,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=Nt(31,n,t,u),e.elementType=te,e.lanes=c,e;case O:return ra(n.children,u,c,t);case R:m=8,u|=24;break;case k:return e=Nt(12,n,t,u|2),e.elementType=k,e.lanes=c,e;case F:return e=Nt(13,n,t,u),e.elementType=F,e.lanes=c,e;case V:return e=Nt(19,n,t,u),e.elementType=V,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:m=10;break e;case Y:m=9;break e;case Z:m=11;break e;case X:m=14;break e;case ee:m=16,a=null;break e}m=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=Nt(m,n,t,u),t.elementType=e,t.type=a,t.lanes=c,t}function ra(e,t,n,a){return e=Nt(7,e,a,t),e.lanes=n,e}function ts(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function ud(e){var t=Nt(18,null,null,0);return t.stateNode=e,t}function ns(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sd=new WeakMap;function zt(e,t){if(typeof e=="object"&&e!==null){var n=sd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:uf(t)},sd.set(e,t),t)}return{value:e,source:t,stack:uf(t)}}var Ga=[],Ya=0,Qi=null,Hl=0,Lt=[],Ut=0,Cn=null,Wt=1,Pt="";function cn(e,t){Ga[Ya++]=Hl,Ga[Ya++]=Qi,Qi=e,Hl=t}function cd(e,t,n){Lt[Ut++]=Wt,Lt[Ut++]=Pt,Lt[Ut++]=Cn,Cn=e;var a=Wt;e=Pt;var u=32-St(a)-1;a&=~(1<<u),n+=1;var c=32-St(t)+u;if(30<c){var m=u-u%5;c=(a&(1<<m)-1).toString(32),a>>=m,u-=m,Wt=1<<32-St(t)+u|n<<u|a,Pt=c+e}else Wt=1<<c|n<<u|a,Pt=e}function as(e){e.return!==null&&(cn(e,1),cd(e,1,0))}function ls(e){for(;e===Qi;)Qi=Ga[--Ya],Ga[Ya]=null,Hl=Ga[--Ya],Ga[Ya]=null;for(;e===Cn;)Cn=Lt[--Ut],Lt[Ut]=null,Pt=Lt[--Ut],Lt[Ut]=null,Wt=Lt[--Ut],Lt[Ut]=null}function od(e,t){Lt[Ut++]=Wt,Lt[Ut++]=Pt,Lt[Ut++]=Cn,Wt=t.id,Pt=t.overflow,Cn=e}var lt=null,Ue=null,Ae=!1,On=null,Bt=!1,is=Error(s(519));function jn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gl(zt(t,e)),is}function fd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[at]=e,t[ot]=a,n){case"dialog":Se("cancel",t),Se("close",t);break;case"iframe":case"object":case"embed":Se("load",t);break;case"video":case"audio":for(n=0;n<si.length;n++)Se(si[n],t);break;case"source":Se("error",t);break;case"img":case"image":case"link":Se("error",t),Se("load",t);break;case"details":Se("toggle",t);break;case"input":Se("invalid",t),Af(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Se("invalid",t);break;case"textarea":Se("invalid",t),Tf(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||Cg(t.textContent,n)?(a.popover!=null&&(Se("beforetoggle",t),Se("toggle",t)),a.onScroll!=null&&Se("scroll",t),a.onScrollEnd!=null&&Se("scrollend",t),a.onClick!=null&&(t.onclick=rn),t=!0):t=!1,t||jn(e,!0)}function dd(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:lt=lt.return}}function qa(e){if(e!==lt)return!1;if(!Ae)return dd(e),Ae=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Nc(e.type,e.memoizedProps)),n=!n),n&&Ue&&jn(e),dd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ue=Ug(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ue=Ug(e)}else t===27?(t=Ue,Xn(e.type)?(e=Cc,Cc=null,Ue=e):Ue=t):Ue=lt?Gt(e.stateNode.nextSibling):null;return!0}function ua(){Ue=lt=null,Ae=!1}function rs(){var e=On;return e!==null&&(mt===null?mt=e:mt.push.apply(mt,e),On=null),e}function Gl(e){On===null?On=[e]:On.push(e)}var us=E(null),sa=null,on=null;function Rn(e,t,n){J(us,t._currentValue),t._currentValue=n}function fn(e){e._currentValue=us.current,B(us)}function ss(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 cs(e,t,n,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var m=u.child;c=c.firstContext;e:for(;c!==null;){var b=c;c=u;for(var N=0;N<t.length;N++)if(b.context===t[N]){c.lanes|=n,b=c.alternate,b!==null&&(b.lanes|=n),ss(c.return,n,e),a||(m=null);break e}c=b.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error(s(341));m.lanes|=n,c=m.alternate,c!==null&&(c.lanes|=n),ss(m,n,e),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function Ia(e,t,n,a){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var b=u.type;Et(u.pendingProps.value,m.value)||(e!==null?e.push(b):e=[b])}}else if(u===we.current){if(m=u.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(hi):e=[hi])}u=u.return}e!==null&&cs(t,e,n,a),t.flags|=262144}function Ji(e){for(e=e.firstContext;e!==null;){if(!Et(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ca(e){sa=e,on=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function it(e){return hd(sa,e)}function Wi(e,t){return sa===null&&ca(e),hd(e,t)}function hd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},on===null){if(e===null)throw Error(s(308));on=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else on=on.next=t;return n}var mb=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()})}},pb=l.unstable_scheduleCallback,yb=l.unstable_NormalPriority,Ve={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function os(){return{controller:new mb,data:new Map,refCount:0}}function Yl(e){e.refCount--,e.refCount===0&&pb(yb,function(){e.controller.abort()})}var ql=null,fs=0,Xa=0,Za=null;function bb(e,t){if(ql===null){var n=ql=[];fs=0,Xa=gc(),Za={status:"pending",value:void 0,then:function(a){n.push(a)}}}return fs++,t.then(gd,gd),t}function gd(){if(--fs===0&&ql!==null){Za!==null&&(Za.status="fulfilled");var e=ql;ql=null,Xa=0,Za=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vb(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),a}var md=S.S;S.S=function(e,t){Wh=vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&bb(e,t),md!==null&&md(e,t)};var oa=E(null);function ds(){var e=oa.current;return e!==null?e:ze.pooledCache}function Pi(e,t){t===null?J(oa,oa.current):J(oa,t.pool)}function pd(){var e=ds();return e===null?null:{parent:Ve._currentValue,pool:e}}var Fa=Error(s(460)),hs=Error(s(474)),er=Error(s(542)),tr={then:function(){}};function yd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(rn,rn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xd(e),e;default:if(typeof t.status=="string")t.then(rn,rn);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xd(e),e}throw da=t,Fa}}function fa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(da=n,Fa):n}}var da=null;function vd(){if(da===null)throw Error(s(459));var e=da;return da=null,e}function xd(e){if(e===Fa||e===er)throw Error(s(483))}var Va=null,Il=0;function nr(e){var t=Il;return Il+=1,Va===null&&(Va=[]),bd(Va,e,t)}function Xl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ar(e,t){throw t.$$typeof===w?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Sd(e){function t(j,C){if(e){var M=j.deletions;M===null?(j.deletions=[C],j.flags|=16):M.push(C)}}function n(j,C){if(!e)return null;for(;C!==null;)t(j,C),C=C.sibling;return null}function a(j){for(var C=new Map;j!==null;)j.key!==null?C.set(j.key,j):C.set(j.index,j),j=j.sibling;return C}function u(j,C){return j=sn(j,C),j.index=0,j.sibling=null,j}function c(j,C,M){return j.index=M,e?(M=j.alternate,M!==null?(M=M.index,M<C?(j.flags|=67108866,C):M):(j.flags|=67108866,C)):(j.flags|=1048576,C)}function m(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function b(j,C,M,q){return C===null||C.tag!==6?(C=ts(M,j.mode,q),C.return=j,C):(C=u(C,M),C.return=j,C)}function N(j,C,M,q){var oe=M.type;return oe===O?G(j,C,M.props.children,q,M.key):C!==null&&(C.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===ee&&fa(oe)===C.type)?(C=u(C,M.props),Xl(C,M),C.return=j,C):(C=Ki(M.type,M.key,M.props,null,j.mode,q),Xl(C,M),C.return=j,C)}function D(j,C,M,q){return C===null||C.tag!==4||C.stateNode.containerInfo!==M.containerInfo||C.stateNode.implementation!==M.implementation?(C=ns(M,j.mode,q),C.return=j,C):(C=u(C,M.children||[]),C.return=j,C)}function G(j,C,M,q,oe){return C===null||C.tag!==7?(C=ra(M,j.mode,q,oe),C.return=j,C):(C=u(C,M),C.return=j,C)}function I(j,C,M){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=ts(""+C,j.mode,M),C.return=j,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case A:return M=Ki(C.type,C.key,C.props,null,j.mode,M),Xl(M,C),M.return=j,M;case _:return C=ns(C,j.mode,M),C.return=j,C;case ee:return C=fa(C),I(j,C,M)}if(Q(C)||ne(C))return C=ra(C,j.mode,M,null),C.return=j,C;if(typeof C.then=="function")return I(j,nr(C),M);if(C.$$typeof===T)return I(j,Wi(j,C),M);ar(j,C)}return null}function z(j,C,M,q){var oe=C!==null?C.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return oe!==null?null:b(j,C,""+M,q);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case A:return M.key===oe?N(j,C,M,q):null;case _:return M.key===oe?D(j,C,M,q):null;case ee:return M=fa(M),z(j,C,M,q)}if(Q(M)||ne(M))return oe!==null?null:G(j,C,M,q,null);if(typeof M.then=="function")return z(j,C,nr(M),q);if(M.$$typeof===T)return z(j,C,Wi(j,M),q);ar(j,M)}return null}function U(j,C,M,q,oe){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return j=j.get(M)||null,b(C,j,""+q,oe);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case A:return j=j.get(q.key===null?M:q.key)||null,N(C,j,q,oe);case _:return j=j.get(q.key===null?M:q.key)||null,D(C,j,q,oe);case ee:return q=fa(q),U(j,C,M,q,oe)}if(Q(q)||ne(q))return j=j.get(M)||null,G(C,j,q,oe,null);if(typeof q.then=="function")return U(j,C,M,nr(q),oe);if(q.$$typeof===T)return U(j,C,M,Wi(C,q),oe);ar(C,q)}return null}function ue(j,C,M,q){for(var oe=null,Te=null,ce=C,be=C=0,Ne=null;ce!==null&&be<M.length;be++){ce.index>be?(Ne=ce,ce=null):Ne=ce.sibling;var _e=z(j,ce,M[be],q);if(_e===null){ce===null&&(ce=Ne);break}e&&ce&&_e.alternate===null&&t(j,ce),C=c(_e,C,be),Te===null?oe=_e:Te.sibling=_e,Te=_e,ce=Ne}if(be===M.length)return n(j,ce),Ae&&cn(j,be),oe;if(ce===null){for(;be<M.length;be++)ce=I(j,M[be],q),ce!==null&&(C=c(ce,C,be),Te===null?oe=ce:Te.sibling=ce,Te=ce);return Ae&&cn(j,be),oe}for(ce=a(ce);be<M.length;be++)Ne=U(ce,j,be,M[be],q),Ne!==null&&(e&&Ne.alternate!==null&&ce.delete(Ne.key===null?be:Ne.key),C=c(Ne,C,be),Te===null?oe=Ne:Te.sibling=Ne,Te=Ne);return e&&ce.forEach(function(Kn){return t(j,Kn)}),Ae&&cn(j,be),oe}function de(j,C,M,q){if(M==null)throw Error(s(151));for(var oe=null,Te=null,ce=C,be=C=0,Ne=null,_e=M.next();ce!==null&&!_e.done;be++,_e=M.next()){ce.index>be?(Ne=ce,ce=null):Ne=ce.sibling;var Kn=z(j,ce,_e.value,q);if(Kn===null){ce===null&&(ce=Ne);break}e&&ce&&Kn.alternate===null&&t(j,ce),C=c(Kn,C,be),Te===null?oe=Kn:Te.sibling=Kn,Te=Kn,ce=Ne}if(_e.done)return n(j,ce),Ae&&cn(j,be),oe;if(ce===null){for(;!_e.done;be++,_e=M.next())_e=I(j,_e.value,q),_e!==null&&(C=c(_e,C,be),Te===null?oe=_e:Te.sibling=_e,Te=_e);return Ae&&cn(j,be),oe}for(ce=a(ce);!_e.done;be++,_e=M.next())_e=U(ce,j,be,_e.value,q),_e!==null&&(e&&_e.alternate!==null&&ce.delete(_e.key===null?be:_e.key),C=c(_e,C,be),Te===null?oe=_e:Te.sibling=_e,Te=_e);return e&&ce.forEach(function(j0){return t(j,j0)}),Ae&&cn(j,be),oe}function De(j,C,M,q){if(typeof M=="object"&&M!==null&&M.type===O&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case A:e:{for(var oe=M.key;C!==null;){if(C.key===oe){if(oe=M.type,oe===O){if(C.tag===7){n(j,C.sibling),q=u(C,M.props.children),q.return=j,j=q;break e}}else if(C.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===ee&&fa(oe)===C.type){n(j,C.sibling),q=u(C,M.props),Xl(q,M),q.return=j,j=q;break e}n(j,C);break}else t(j,C);C=C.sibling}M.type===O?(q=ra(M.props.children,j.mode,q,M.key),q.return=j,j=q):(q=Ki(M.type,M.key,M.props,null,j.mode,q),Xl(q,M),q.return=j,j=q)}return m(j);case _:e:{for(oe=M.key;C!==null;){if(C.key===oe)if(C.tag===4&&C.stateNode.containerInfo===M.containerInfo&&C.stateNode.implementation===M.implementation){n(j,C.sibling),q=u(C,M.children||[]),q.return=j,j=q;break e}else{n(j,C);break}else t(j,C);C=C.sibling}q=ns(M,j.mode,q),q.return=j,j=q}return m(j);case ee:return M=fa(M),De(j,C,M,q)}if(Q(M))return ue(j,C,M,q);if(ne(M)){if(oe=ne(M),typeof oe!="function")throw Error(s(150));return M=oe.call(M),de(j,C,M,q)}if(typeof M.then=="function")return De(j,C,nr(M),q);if(M.$$typeof===T)return De(j,C,Wi(j,M),q);ar(j,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,C!==null&&C.tag===6?(n(j,C.sibling),q=u(C,M),q.return=j,j=q):(n(j,C),q=ts(M,j.mode,q),q.return=j,j=q),m(j)):n(j,C)}return function(j,C,M,q){try{Il=0;var oe=De(j,C,M,q);return Va=null,oe}catch(ce){if(ce===Fa||ce===er)throw ce;var Te=Nt(29,ce,null,j.mode);return Te.lanes=q,Te.return=j,Te}finally{}}}var ha=Sd(!0),Ed=Sd(!1),kn=!1;function gs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ms(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 Mn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Dn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ce&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=$i(e),id(e,null,n),t}return Vi(e,a,t,n),$i(e)}function Zl(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,hf(e,n)}}function ps(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?u=c=m:c=c.next=m,n=n.next}while(n!==null);c===null?u=c=t:c=c.next=t}else u=c=t;n={baseState:a.baseState,firstBaseUpdate:u,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 ys=!1;function Fl(){if(ys){var e=Za;if(e!==null)throw e}}function Vl(e,t,n,a){ys=!1;var u=e.updateQueue;kn=!1;var c=u.firstBaseUpdate,m=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var N=b,D=N.next;N.next=null,m===null?c=D:m.next=D,m=N;var G=e.alternate;G!==null&&(G=G.updateQueue,b=G.lastBaseUpdate,b!==m&&(b===null?G.firstBaseUpdate=D:b.next=D,G.lastBaseUpdate=N))}if(c!==null){var I=u.baseState;m=0,G=D=N=null,b=c;do{var z=b.lane&-536870913,U=z!==b.lane;if(U?(Ee&z)===z:(a&z)===z){z!==0&&z===Xa&&(ys=!0),G!==null&&(G=G.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ue=e,de=b;z=t;var De=n;switch(de.tag){case 1:if(ue=de.payload,typeof ue=="function"){I=ue.call(De,I,z);break e}I=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=de.payload,z=typeof ue=="function"?ue.call(De,I,z):ue,z==null)break e;I=v({},I,z);break e;case 2:kn=!0}}z=b.callback,z!==null&&(e.flags|=64,U&&(e.flags|=8192),U=u.callbacks,U===null?u.callbacks=[z]:U.push(z))}else U={lane:z,tag:b.tag,payload:b.payload,callback:b.callback,next:null},G===null?(D=G=U,N=I):G=G.next=U,m|=z;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;U=b,b=U.next,U.next=null,u.lastBaseUpdate=U,u.shared.pending=null}}while(!0);G===null&&(N=I),u.baseState=N,u.firstBaseUpdate=D,u.lastBaseUpdate=G,c===null&&(u.shared.lanes=0),Hn|=m,e.lanes=m,e.memoizedState=I}}function Nd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Ad(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Nd(n[e],t)}var $a=E(null),lr=E(0);function wd(e,t){e=xn,J(lr,e),J($a,t),xn=e|t.baseLanes}function bs(){J(lr,xn),J($a,$a.current)}function vs(){xn=lr.current,B($a),B(lr)}var At=E(null),Ht=null;function zn(e){var t=e.alternate;J(Xe,Xe.current&1),J(At,e),Ht===null&&(t===null||$a.current!==null||t.memoizedState!==null)&&(Ht=e)}function xs(e){J(Xe,Xe.current),J(At,e),Ht===null&&(Ht=e)}function Td(e){e.tag===22?(J(Xe,Xe.current),J(At,e),Ht===null&&(Ht=e)):Ln()}function Ln(){J(Xe,Xe.current),J(At,At.current)}function wt(e){B(At),Ht===e&&(Ht=null),B(Xe)}var Xe=E(0);function ir(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Tc(n)||_c(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 dn=0,pe=null,ke=null,$e=null,rr=!1,Ka=!1,ga=!1,ur=0,$l=0,Qa=null,xb=0;function qe(){throw Error(s(321))}function Ss(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Et(e[n],t[n]))return!1;return!0}function Es(e,t,n,a,u,c){return dn=c,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,S.H=e===null||e.memoizedState===null?ch:Us,ga=!1,c=n(a,u),ga=!1,Ka&&(c=Cd(t,n,a,u)),_d(e),c}function _d(e){S.H=Jl;var t=ke!==null&&ke.next!==null;if(dn=0,$e=ke=pe=null,rr=!1,$l=0,Qa=null,t)throw Error(s(300));e===null||Ke||(e=e.dependencies,e!==null&&Ji(e)&&(Ke=!0))}function Cd(e,t,n,a){pe=e;var u=0;do{if(Ka&&(Qa=null),$l=0,Ka=!1,25<=u)throw Error(s(301));if(u+=1,$e=ke=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}S.H=oh,c=t(n,a)}while(Ka);return c}function Sb(){var e=S.H,t=e.useState()[0];return t=typeof t.then=="function"?Kl(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(pe.flags|=1024),t}function Ns(){var e=ur!==0;return ur=0,e}function As(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ws(e){if(rr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}rr=!1}dn=0,$e=ke=pe=null,Ka=!1,$l=ur=0,Qa=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?pe.memoizedState=$e=e:$e=$e.next=e,$e}function Ze(){if(ke===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=$e===null?pe.memoizedState:$e.next;if(t!==null)$e=t,ke=e;else{if(e===null)throw pe.alternate===null?Error(s(467)):Error(s(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},$e===null?pe.memoizedState=$e=e:$e=$e.next=e}return $e}function sr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(e){var t=$l;return $l+=1,Qa===null&&(Qa=[]),e=bd(Qa,e,t),t=pe,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,S.H=t===null||t.memoizedState===null?ch:Us),e}function cr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Kl(e);if(e.$$typeof===T)return it(e)}throw Error(s(438,String(e)))}function Ts(e){var t=null,n=pe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=pe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=sr(),pe.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]=ae;return t.index++,n}function hn(e,t){return typeof t=="function"?t(e):t}function or(e){var t=Ze();return _s(t,ke,e)}function _s(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var u=e.baseQueue,c=a.pending;if(c!==null){if(u!==null){var m=u.next;u.next=c.next,c.next=m}t.baseQueue=u=c,a.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var b=m=null,N=null,D=t,G=!1;do{var I=D.lane&-536870913;if(I!==D.lane?(Ee&I)===I:(dn&I)===I){var z=D.revertLane;if(z===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),I===Xa&&(G=!0);else if((dn&z)===z){D=D.next,z===Xa&&(G=!0);continue}else I={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},N===null?(b=N=I,m=c):N=N.next=I,pe.lanes|=z,Hn|=z;I=D.action,ga&&n(c,I),c=D.hasEagerState?D.eagerState:n(c,I)}else z={lane:I,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},N===null?(b=N=z,m=c):N=N.next=z,pe.lanes|=I,Hn|=I;D=D.next}while(D!==null&&D!==t);if(N===null?m=c:N.next=b,!Et(c,e.memoizedState)&&(Ke=!0,G&&(n=Za,n!==null)))throw n;e.memoizedState=c,e.baseState=m,e.baseQueue=N,a.lastRenderedState=c}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Cs(e){var t=Ze(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,u=n.pending,c=t.memoizedState;if(u!==null){n.pending=null;var m=u=u.next;do c=e(c,m.action),m=m.next;while(m!==u);Et(c,t.memoizedState)||(Ke=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Od(e,t,n){var a=pe,u=Ze(),c=Ae;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!Et((ke||u).memoizedState,n);if(m&&(u.memoizedState=n,Ke=!0),u=u.queue,Rs(kd.bind(null,a,u,e),[e]),u.getSnapshot!==t||m||$e!==null&&$e.memoizedState.tag&1){if(a.flags|=2048,Ja(9,{destroy:void 0},Rd.bind(null,a,u,n,t),null),ze===null)throw Error(s(349));c||(dn&127)!==0||jd(a,t,n)}return n}function jd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=pe.updateQueue,t===null?(t=sr(),pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Rd(e,t,n,a){t.value=n,t.getSnapshot=a,Md(t)&&Dd(e)}function kd(e,t,n){return n(function(){Md(t)&&Dd(e)})}function Md(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Et(e,n)}catch{return!0}}function Dd(e){var t=ia(e,2);t!==null&&pt(t,e,2)}function Os(e){var t=ct();if(typeof e=="function"){var n=e;if(e=n(),ga){wn(!0);try{n()}finally{wn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:e},t}function zd(e,t,n,a){return e.baseState=n,_s(e,ke,typeof a=="function"?a:hn)}function Eb(e,t,n,a,u){if(hr(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};S.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Ld(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Ld(e,t){var n=t.action,a=t.payload,u=e.state;if(t.isTransition){var c=S.T,m={};S.T=m;try{var b=n(u,a),N=S.S;N!==null&&N(m,b),Ud(e,t,b)}catch(D){js(e,t,D)}finally{c!==null&&m.types!==null&&(c.types=m.types),S.T=c}}else try{c=n(u,a),Ud(e,t,c)}catch(D){js(e,t,D)}}function Ud(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Bd(e,t,a)},function(a){return js(e,t,a)}):Bd(e,t,n)}function Bd(e,t,n){t.status="fulfilled",t.value=n,Hd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ld(e,n)))}function js(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Hd(t),t=t.next;while(t!==a)}e.action=null}function Hd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Gd(e,t){return t}function Yd(e,t){if(Ae){var n=ze.formState;if(n!==null){e:{var a=pe;if(Ae){if(Ue){t:{for(var u=Ue,c=Bt;u.nodeType!==8;){if(!c){u=null;break t}if(u=Gt(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ue=Gt(u.nextSibling),a=u.data==="F!";break e}}jn(a)}a=!1}a&&(t=n[0])}}return n=ct(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gd,lastRenderedState:t},n.queue=a,n=rh.bind(null,pe,a),a.dispatch=n,a=Os(!1),c=Ls.bind(null,pe,!1,a.queue),a=ct(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,n=Eb.bind(null,pe,u,c,n),u.dispatch=n,a.memoizedState=e,[t,n,!1]}function qd(e){var t=Ze();return Id(t,ke,e)}function Id(e,t,n){if(t=_s(e,t,Gd)[0],e=or(hn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Kl(t)}catch(m){throw m===Fa?er:m}else a=t;t=Ze();var u=t.queue,c=u.dispatch;return n!==t.memoizedState&&(pe.flags|=2048,Ja(9,{destroy:void 0},Nb.bind(null,u,n),null)),[a,c,e]}function Nb(e,t){e.action=t}function Xd(e){var t=Ze(),n=ke;if(n!==null)return Id(t,n,e);Ze(),t=t.memoizedState,n=Ze();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Ja(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=pe.updateQueue,t===null&&(t=sr(),pe.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 Zd(){return Ze().memoizedState}function fr(e,t,n,a){var u=ct();pe.flags|=e,u.memoizedState=Ja(1|t,{destroy:void 0},n,a===void 0?null:a)}function dr(e,t,n,a){var u=Ze();a=a===void 0?null:a;var c=u.memoizedState.inst;ke!==null&&a!==null&&Ss(a,ke.memoizedState.deps)?u.memoizedState=Ja(t,c,n,a):(pe.flags|=e,u.memoizedState=Ja(1|t,c,n,a))}function Fd(e,t){fr(8390656,8,e,t)}function Rs(e,t){dr(2048,8,e,t)}function Ab(e){pe.flags|=4;var t=pe.updateQueue;if(t===null)t=sr(),pe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Vd(e){var t=Ze().memoizedState;return Ab({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function $d(e,t){return dr(4,2,e,t)}function Kd(e,t){return dr(4,4,e,t)}function Qd(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 Jd(e,t,n){n=n!=null?n.concat([e]):null,dr(4,4,Qd.bind(null,t,e),n)}function ks(){}function Wd(e,t){var n=Ze();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Ss(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Pd(e,t){var n=Ze();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Ss(t,a[1]))return a[0];if(a=e(),ga){wn(!0);try{e()}finally{wn(!1)}}return n.memoizedState=[a,t],a}function Ms(e,t,n){return n===void 0||(dn&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=eg(),pe.lanes|=e,Hn|=e,n)}function eh(e,t,n,a){return Et(n,t)?n:$a.current!==null?(e=Ms(e,n,a),Et(e,t)||(Ke=!0),e):(dn&42)===0||(dn&1073741824)!==0&&(Ee&261930)===0?(Ke=!0,e.memoizedState=n):(e=eg(),pe.lanes|=e,Hn|=e,t)}function th(e,t,n,a,u){var c=L.p;L.p=c!==0&&8>c?c:8;var m=S.T,b={};S.T=b,Ls(e,!1,t,n);try{var N=u(),D=S.S;if(D!==null&&D(b,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var G=vb(N,a);Ql(e,t,G,Ct(e))}else Ql(e,t,a,Ct(e))}catch(I){Ql(e,t,{then:function(){},status:"rejected",reason:I},Ct())}finally{L.p=c,m!==null&&b.types!==null&&(m.types=b.types),S.T=m}}function wb(){}function Ds(e,t,n,a){if(e.tag!==5)throw Error(s(476));var u=nh(e).queue;th(e,u,t,$,n===null?wb:function(){return ah(e),n(a)})}function nh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:$},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ah(e){var t=nh(e);t.next===null&&(t=e.alternate.memoizedState),Ql(e,t.next.queue,{},Ct())}function zs(){return it(hi)}function lh(){return Ze().memoizedState}function ih(){return Ze().memoizedState}function Tb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ct();e=Mn(n);var a=Dn(t,e,n);a!==null&&(pt(a,t,n),Zl(a,t,n)),t={cache:os()},e.payload=t;return}t=t.return}}function _b(e,t,n){var a=Ct();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hr(e)?uh(t,n):(n=Pu(e,t,n,a),n!==null&&(pt(n,e,a),sh(n,t,a)))}function rh(e,t,n){var a=Ct();Ql(e,t,n,a)}function Ql(e,t,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hr(e))uh(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,b=c(m,n);if(u.hasEagerState=!0,u.eagerState=b,Et(b,m))return Vi(e,t,u,0),ze===null&&Fi(),!1}catch{}finally{}if(n=Pu(e,t,u,a),n!==null)return pt(n,e,a),sh(n,t,a),!0}return!1}function Ls(e,t,n,a){if(a={lane:2,revertLane:gc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},hr(e)){if(t)throw Error(s(479))}else t=Pu(e,n,a,2),t!==null&&pt(t,e,2)}function hr(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function uh(e,t){Ka=rr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,hf(e,n)}}var Jl={readContext:it,use:cr,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};Jl.useEffectEvent=qe;var ch={readContext:it,use:cr,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:Fd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,fr(4194308,4,Qd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fr(4194308,4,e,t)},useInsertionEffect:function(e,t){fr(4,2,e,t)},useMemo:function(e,t){var n=ct();t=t===void 0?null:t;var a=e();if(ga){wn(!0);try{e()}finally{wn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ct();if(n!==void 0){var u=n(t);if(ga){wn(!0);try{n(t)}finally{wn(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=_b.bind(null,pe,e),[a.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Os(e);var t=e.queue,n=rh.bind(null,pe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ks,useDeferredValue:function(e,t){var n=ct();return Ms(n,e,t)},useTransition:function(){var e=Os(!1);return e=th.bind(null,pe,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=pe,u=ct();if(Ae){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),ze===null)throw Error(s(349));(Ee&127)!==0||jd(a,t,n)}u.memoizedState=n;var c={value:n,getSnapshot:t};return u.queue=c,Fd(kd.bind(null,a,c,e),[e]),a.flags|=2048,Ja(9,{destroy:void 0},Rd.bind(null,a,c,n,t),null),n},useId:function(){var e=ct(),t=ze.identifierPrefix;if(Ae){var n=Pt,a=Wt;n=(a&~(1<<32-St(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ur++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=xb++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:zs,useFormState:Yd,useActionState:Yd,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ls.bind(null,pe,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ts,useCacheRefresh:function(){return ct().memoizedState=Tb.bind(null,pe)},useEffectEvent:function(e){var t=ct(),n={impl:e};return t.memoizedState=n,function(){if((Ce&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Us={readContext:it,use:cr,useCallback:Wd,useContext:it,useEffect:Rs,useImperativeHandle:Jd,useInsertionEffect:$d,useLayoutEffect:Kd,useMemo:Pd,useReducer:or,useRef:Zd,useState:function(){return or(hn)},useDebugValue:ks,useDeferredValue:function(e,t){var n=Ze();return eh(n,ke.memoizedState,e,t)},useTransition:function(){var e=or(hn)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Kl(e),t]},useSyncExternalStore:Od,useId:lh,useHostTransitionStatus:zs,useFormState:qd,useActionState:qd,useOptimistic:function(e,t){var n=Ze();return zd(n,ke,e,t)},useMemoCache:Ts,useCacheRefresh:ih};Us.useEffectEvent=Vd;var oh={readContext:it,use:cr,useCallback:Wd,useContext:it,useEffect:Rs,useImperativeHandle:Jd,useInsertionEffect:$d,useLayoutEffect:Kd,useMemo:Pd,useReducer:Cs,useRef:Zd,useState:function(){return Cs(hn)},useDebugValue:ks,useDeferredValue:function(e,t){var n=Ze();return ke===null?Ms(n,e,t):eh(n,ke.memoizedState,e,t)},useTransition:function(){var e=Cs(hn)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Kl(e),t]},useSyncExternalStore:Od,useId:lh,useHostTransitionStatus:zs,useFormState:Xd,useActionState:Xd,useOptimistic:function(e,t){var n=Ze();return ke!==null?zd(n,ke,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ts,useCacheRefresh:ih};oh.useEffectEvent=Vd;function Bs(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 Hs={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Ct(),u=Mn(a);u.payload=t,n!=null&&(u.callback=n),t=Dn(e,u,a),t!==null&&(pt(t,e,a),Zl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Ct(),u=Mn(a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Dn(e,u,a),t!==null&&(pt(t,e,a),Zl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ct(),a=Mn(n);a.tag=2,t!=null&&(a.callback=t),t=Dn(e,a,n),t!==null&&(pt(t,e,n),Zl(t,e,n))}};function fh(e,t,n,a,u,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,m):t.prototype&&t.prototype.isPureReactComponent?!Ul(n,a)||!Ul(u,c):!0}function dh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Hs.enqueueReplaceState(t,t.state,null)}function ma(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 u in e)n[u]===void 0&&(n[u]=e[u])}return n}function hh(e){Zi(e)}function gh(e){console.error(e)}function mh(e){Zi(e)}function gr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ph(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Gs(e,t,n){return n=Mn(n),n.tag=3,n.payload={element:null},n.callback=function(){gr(e,t)},n}function yh(e){return e=Mn(e),e.tag=3,e}function bh(e,t,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var c=a.value;e.payload=function(){return u(c)},e.callback=function(){ph(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){ph(t,n,a),typeof u!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var b=a.stack;this.componentDidCatch(a.value,{componentStack:b!==null?b:""})})}function Cb(e,t,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ia(t,n,u,!0),n=At.current,n!==null){switch(n.tag){case 31:case 13:return Ht===null?Tr():n.alternate===null&&Ie===0&&(Ie=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===tr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),fc(e,a,u)),!1;case 22:return n.flags|=65536,a===tr?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)),fc(e,a,u)),!1}throw Error(s(435,n.tag))}return fc(e,a,u),Tr(),!1}if(Ae)return t=At.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==is&&(e=Error(s(422),{cause:a}),Gl(zt(e,n)))):(a!==is&&(t=Error(s(423),{cause:a}),Gl(zt(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=zt(a,n),u=Gs(e.stateNode,a,u),ps(e,u),Ie!==4&&(Ie=2)),!1;var c=Error(s(520),{cause:a});if(c=zt(c,n),ii===null?ii=[c]:ii.push(c),Ie!==4&&(Ie=2),t===null)return!0;a=zt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=Gs(n.stateNode,a,e),ps(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"&&(Gn===null||!Gn.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=yh(u),bh(u,e,n,a),ps(n,u),!1}n=n.return}while(n!==null);return!1}var Ys=Error(s(461)),Ke=!1;function rt(e,t,n,a){t.child=e===null?Ed(t,null,n,a):ha(t,e.child,n,a)}function vh(e,t,n,a,u){n=n.render;var c=t.ref;if("ref"in a){var m={};for(var b in a)b!=="ref"&&(m[b]=a[b])}else m=a;return ca(t),a=Es(e,t,n,m,c,u),b=Ns(),e!==null&&!Ke?(As(e,t,u),gn(e,t,u)):(Ae&&b&&as(t),t.flags|=1,rt(e,t,a,u),t.child)}function xh(e,t,n,a,u){if(e===null){var c=n.type;return typeof c=="function"&&!es(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Sh(e,t,c,a,u)):(e=Ki(n.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ks(e,u)){var m=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ul,n(m,a)&&e.ref===t.ref)return gn(e,t,u)}return t.flags|=1,e=sn(c,a),e.ref=t.ref,e.return=t,t.child=e}function Sh(e,t,n,a,u){if(e!==null){var c=e.memoizedProps;if(Ul(c,a)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=a=c,Ks(e,u))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,gn(e,t,u)}return qs(e,t,n,a,u)}function Eh(e,t,n,a){var u=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,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~c}else a=0,t.child=null;return Nh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Pi(t,c!==null?c.cachePool:null),c!==null?wd(t,c):bs(),Td(t);else return a=t.lanes=536870912,Nh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(Pi(t,c.cachePool),wd(t,c),Ln(),t.memoizedState=null):(e!==null&&Pi(t,null),bs(),Ln());return rt(e,t,u,n),t.child}function Wl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Nh(e,t,n,a,u){var c=ds();return c=c===null?null:{parent:Ve._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Pi(t,null),bs(),Td(t),e!==null&&Ia(e,t,a,!0),t.childLanes=u,null}function mr(e,t){return t=yr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ah(e,t,n){return ha(t,e.child,null,n),e=mr(t,t.pendingProps),e.flags|=2,wt(t),t.memoizedState=null,e}function Ob(e,t,n){var a=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(a.mode==="hidden")return e=mr(t,a),t.lanes=536870912,Wl(null,e);if(xs(t),(e=Ue)?(e=Lg(e,Bt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cn!==null?{id:Wt,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},n=ud(e),n.return=t,t.child=n,lt=t,Ue=null)):e=null,e===null)throw jn(t);return t.lanes=536870912,null}return mr(t,a)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(xs(t),u)if(t.flags&256)t.flags&=-257,t=Ah(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ke||Ia(e,t,n,!1),u=(n&e.childLanes)!==0,Ke||u){if(a=ze,a!==null&&(m=gf(a,n),m!==0&&m!==c.retryLane))throw c.retryLane=m,ia(e,m),pt(a,e,m),Ys;Tr(),t=Ah(e,t,n)}else e=c.treeContext,Ue=Gt(m.nextSibling),lt=t,Ae=!0,On=null,Bt=!1,e!==null&&od(t,e),t=mr(t,a),t.flags|=4096;return t}return e=sn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function pr(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(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function qs(e,t,n,a,u){return ca(t),n=Es(e,t,n,a,void 0,u),a=Ns(),e!==null&&!Ke?(As(e,t,u),gn(e,t,u)):(Ae&&a&&as(t),t.flags|=1,rt(e,t,n,u),t.child)}function wh(e,t,n,a,u,c){return ca(t),t.updateQueue=null,n=Cd(t,a,n,u),_d(e),a=Ns(),e!==null&&!Ke?(As(e,t,c),gn(e,t,c)):(Ae&&a&&as(t),t.flags|=1,rt(e,t,n,c),t.child)}function Th(e,t,n,a,u){if(ca(t),t.stateNode===null){var c=Ha,m=n.contextType;typeof m=="object"&&m!==null&&(c=it(m)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Hs,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},gs(t),m=n.contextType,c.context=typeof m=="object"&&m!==null?it(m):Ha,c.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Bs(t,n,m,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&Hs.enqueueReplaceState(c,c.state,null),Vl(t,a,c,u),Fl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var b=t.memoizedProps,N=ma(n,b);c.props=N;var D=c.context,G=n.contextType;m=Ha,typeof G=="object"&&G!==null&&(m=it(G));var I=n.getDerivedStateFromProps;G=typeof I=="function"||typeof c.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,G||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b||D!==m)&&dh(t,c,a,m),kn=!1;var z=t.memoizedState;c.state=z,Vl(t,a,c,u),Fl(),D=t.memoizedState,b||z!==D||kn?(typeof I=="function"&&(Bs(t,n,I,a),D=t.memoizedState),(N=kn||fh(t,n,N,a,z,D,m))?(G||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=D),c.props=a,c.state=D,c.context=m,a=N):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,ms(e,t),m=t.memoizedProps,G=ma(n,m),c.props=G,I=t.pendingProps,z=c.context,D=n.contextType,N=Ha,typeof D=="object"&&D!==null&&(N=it(D)),b=n.getDerivedStateFromProps,(D=typeof b=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==I||z!==N)&&dh(t,c,a,N),kn=!1,z=t.memoizedState,c.state=z,Vl(t,a,c,u),Fl();var U=t.memoizedState;m!==I||z!==U||kn||e!==null&&e.dependencies!==null&&Ji(e.dependencies)?(typeof b=="function"&&(Bs(t,n,b,a),U=t.memoizedState),(G=kn||fh(t,n,G,a,z,U,N)||e!==null&&e.dependencies!==null&&Ji(e.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,U,N),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,U,N)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=U),c.props=a,c.state=U,c.context=N,a=G):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,pr(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=ha(t,e.child,null,u),t.child=ha(t,null,n,u)):rt(e,t,n,u),t.memoizedState=c.state,e=t.child):e=gn(e,t,u),e}function _h(e,t,n,a){return ua(),t.flags|=256,rt(e,t,n,a),t.child}var Is={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xs(e){return{baseLanes:e,cachePool:pd()}}function Zs(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=_t),e}function Ch(e,t,n){var a=t.pendingProps,u=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),m&&(u=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(u?zn(t):Ln(),(e=Ue)?(e=Lg(e,Bt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cn!==null?{id:Wt,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},n=ud(e),n.return=t,t.child=n,lt=t,Ue=null)):e=null,e===null)throw jn(t);return _c(e)?t.lanes=32:t.lanes=536870912,null}var b=a.children;return a=a.fallback,u?(Ln(),u=t.mode,b=yr({mode:"hidden",children:b},u),a=ra(a,u,n,null),b.return=t,a.return=t,b.sibling=a,t.child=b,a=t.child,a.memoizedState=Xs(n),a.childLanes=Zs(e,m,n),t.memoizedState=Is,Wl(null,a)):(zn(t),Fs(t,b))}var N=e.memoizedState;if(N!==null&&(b=N.dehydrated,b!==null)){if(c)t.flags&256?(zn(t),t.flags&=-257,t=Vs(e,t,n)):t.memoizedState!==null?(Ln(),t.child=e.child,t.flags|=128,t=null):(Ln(),b=a.fallback,u=t.mode,a=yr({mode:"visible",children:a.children},u),b=ra(b,u,n,null),b.flags|=2,a.return=t,b.return=t,a.sibling=b,t.child=a,ha(t,e.child,null,n),a=t.child,a.memoizedState=Xs(n),a.childLanes=Zs(e,m,n),t.memoizedState=Is,t=Wl(null,a));else if(zn(t),_c(b)){if(m=b.nextSibling&&b.nextSibling.dataset,m)var D=m.dgst;m=D,a=Error(s(419)),a.stack="",a.digest=m,Gl({value:a,source:null,stack:null}),t=Vs(e,t,n)}else if(Ke||Ia(e,t,n,!1),m=(n&e.childLanes)!==0,Ke||m){if(m=ze,m!==null&&(a=gf(m,n),a!==0&&a!==N.retryLane))throw N.retryLane=a,ia(e,a),pt(m,e,a),Ys;Tc(b)||Tr(),t=Vs(e,t,n)}else Tc(b)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Ue=Gt(b.nextSibling),lt=t,Ae=!0,On=null,Bt=!1,e!==null&&od(t,e),t=Fs(t,a.children),t.flags|=4096);return t}return u?(Ln(),b=a.fallback,u=t.mode,N=e.child,D=N.sibling,a=sn(N,{mode:"hidden",children:a.children}),a.subtreeFlags=N.subtreeFlags&65011712,D!==null?b=sn(D,b):(b=ra(b,u,n,null),b.flags|=2),b.return=t,a.return=t,a.sibling=b,t.child=a,Wl(null,a),a=t.child,b=e.child.memoizedState,b===null?b=Xs(n):(u=b.cachePool,u!==null?(N=Ve._currentValue,u=u.parent!==N?{parent:N,pool:N}:u):u=pd(),b={baseLanes:b.baseLanes|n,cachePool:u}),a.memoizedState=b,a.childLanes=Zs(e,m,n),t.memoizedState=Is,Wl(e.child,a)):(zn(t),n=e.child,e=n.sibling,n=sn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function Fs(e,t){return t=yr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function yr(e,t){return e=Nt(22,e,null,t),e.lanes=0,e}function Vs(e,t,n){return ha(t,e.child,null,n),e=Fs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ss(e.return,t,n)}function $s(e,t,n,a,u,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=a,m.tail=n,m.tailMode=u,m.treeForkCount=c)}function jh(e,t,n){var a=t.pendingProps,u=a.revealOrder,c=a.tail;a=a.children;var m=Xe.current,b=(m&2)!==0;if(b?(m=m&1|2,t.flags|=128):m&=1,J(Xe,m),rt(e,t,a,n),a=Ae?Hl:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oh(e,n,t);else if(e.tag===19)Oh(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(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&ir(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),$s(t,!1,u,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&ir(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}$s(t,!0,n,null,c,a);break;case"together":$s(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function gn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ia(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ks(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ji(e)))}function jb(e,t,n){switch(t.tag){case 3:Fe(t,t.stateNode.containerInfo),Rn(t,Ve,e.memoizedState.cache),ua();break;case 27:case 5:Jt(t);break;case 4:Fe(t,t.stateNode.containerInfo);break;case 10:Rn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xs(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(zn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Ch(e,t,n):(zn(t),e=gn(e,t,n),e!==null?e.sibling:null);zn(t);break;case 19:var u=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ia(e,t,n,!1),a=(n&t.childLanes)!==0),u){if(a)return jh(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),J(Xe,Xe.current),a)break;return null;case 22:return t.lanes=0,Eh(e,t,n,t.pendingProps);case 24:Rn(t,Ve,e.memoizedState.cache)}return gn(e,t,n)}function Rh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!Ks(e,n)&&(t.flags&128)===0)return Ke=!1,jb(e,t,n);Ke=(e.flags&131072)!==0}else Ke=!1,Ae&&(t.flags&1048576)!==0&&cd(t,Hl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=fa(t.elementType),t.type=e,typeof e=="function")es(e)?(a=ma(e,a),t.tag=1,t=Th(null,t,e,a,n)):(t.tag=0,t=qs(null,t,e,a,n));else{if(e!=null){var u=e.$$typeof;if(u===Z){t.tag=11,t=vh(null,t,e,a,n);break e}else if(u===X){t.tag=14,t=xh(null,t,e,a,n);break e}}throw t=K(e)||e,Error(s(306,t,""))}}return t;case 0:return qs(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,u=ma(a,t.pendingProps),Th(e,t,a,u,n);case 3:e:{if(Fe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var c=t.memoizedState;u=c.element,ms(e,t),Vl(t,a,null,n);var m=t.memoizedState;if(a=m.cache,Rn(t,Ve,a),a!==c.cache&&cs(t,[Ve],n,!0),Fl(),a=m.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=_h(e,t,a,n);break e}else if(a!==u){u=zt(Error(s(424)),t),Gl(u),t=_h(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(Ue=Gt(e.firstChild),lt=t,Ae=!0,On=null,Bt=!0,n=Ed(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ua(),a===u){t=gn(e,t,n);break e}rt(e,t,a,n)}t=t.child}return t;case 26:return pr(e,t),e===null?(n=qg(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ae||(n=t.type,e=t.pendingProps,a=Mr(ve.current).createElement(n),a[at]=t,a[ot]=e,ut(a,n,e),Pe(a),t.stateNode=a):t.memoizedState=qg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Jt(t),e===null&&Ae&&(a=t.stateNode=Hg(t.type,t.pendingProps,ve.current),lt=t,Bt=!0,u=Ue,Xn(t.type)?(Cc=u,Ue=Gt(a.firstChild)):Ue=u),rt(e,t,t.pendingProps.children,n),pr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((u=a=Ue)&&(a=r0(a,t.type,t.pendingProps,Bt),a!==null?(t.stateNode=a,lt=t,Ue=Gt(a.firstChild),Bt=!1,u=!0):u=!1),u||jn(t)),Jt(t),u=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,a=c.children,Nc(u,c)?a=null:m!==null&&Nc(u,m)&&(t.flags|=32),t.memoizedState!==null&&(u=Es(e,t,Sb,null,null,n),hi._currentValue=u),pr(e,t),rt(e,t,a,n),t.child;case 6:return e===null&&Ae&&((e=n=Ue)&&(n=u0(n,t.pendingProps,Bt),n!==null?(t.stateNode=n,lt=t,Ue=null,e=!0):e=!1),e||jn(t)),null;case 13:return Ch(e,t,n);case 4:return Fe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ha(t,null,a,n):rt(e,t,a,n),t.child;case 11:return vh(e,t,t.type,t.pendingProps,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Rn(t,t.type,a.value),rt(e,t,a.children,n),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,ca(t),u=it(u),a=a(u),t.flags|=1,rt(e,t,a,n),t.child;case 14:return xh(e,t,t.type,t.pendingProps,n);case 15:return Sh(e,t,t.type,t.pendingProps,n);case 19:return jh(e,t,n);case 31:return Ob(e,t,n);case 22:return Eh(e,t,n,t.pendingProps);case 24:return ca(t),a=it(Ve),e===null?(u=ds(),u===null&&(u=ze,c=os(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),t.memoizedState={parent:a,cache:u},gs(t),Rn(t,Ve,u)):((e.lanes&n)!==0&&(ms(e,t),Vl(t,null,null,n),Fl()),u=e.memoizedState,c=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Rn(t,Ve,a)):(a=c.cache,Rn(t,Ve,a),a!==u.cache&&cs(t,[Ve],n,!0))),rt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function mn(e){e.flags|=4}function Qs(e,t,n,a,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(lg())e.flags|=8192;else throw da=tr,hs}else e.flags&=-16777217}function kh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Vg(t))if(lg())e.flags|=8192;else throw da=tr,hs}function br(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ff():536870912,e.lanes|=t,tl|=t)}function Pl(e,t){if(!Ae)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 Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Rb(e,t,n){var a=t.pendingProps;switch(ls(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fn(Ve),Ge(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(qa(t)?mn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rs())),Be(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(mn(t),c!==null?(Be(t),kh(t,c)):(Be(t),Qs(t,u,null,a,n))):c?c!==e.memoizedState?(mn(t),Be(t),kh(t,c)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&mn(t),Be(t),Qs(t,u,e,a,n)),null;case 27:if(Pn(t),n=ve.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&mn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Be(t),null}e=ie.current,qa(t)?fd(t):(e=Hg(u,a,n),t.stateNode=e,mn(t))}return Be(t),null;case 5:if(Pn(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&mn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Be(t),null}if(c=ie.current,qa(t))fd(t);else{var m=Mr(ve.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?m.createElement("select",{is:a.is}):m.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?m.createElement(u,{is:a.is}):m.createElement(u)}}c[at]=t,c[ot]=a;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(ut(c,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&mn(t)}}return Be(t),Qs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&mn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ve.current,qa(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,u=lt,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Cg(e.nodeValue,n)),e||jn(t,!0)}else e=Mr(e).createTextNode(a),e[at]=t,t.stateNode=e}return Be(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=qa(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[at]=t}else ua(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else n=rs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(wt(t),t):(wt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Be(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=qa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[at]=t}else ua(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),u=!1}else u=rs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(wt(t),t):(wt(t),null)}return wt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==u&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),br(t,t.updateQueue),Be(t),null);case 4:return Ge(),e===null&&bc(t.stateNode.containerInfo),Be(t),null;case 10:return fn(t.type),Be(t),null;case 19:if(B(Xe),a=t.memoizedState,a===null)return Be(t),null;if(u=(t.flags&128)!==0,c=a.rendering,c===null)if(u)Pl(a,!1);else{if(Ie!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=ir(e),c!==null){for(t.flags|=128,Pl(a,!1),e=c.updateQueue,t.updateQueue=e,br(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)rd(n,e),n=n.sibling;return J(Xe,Xe.current&1|2),Ae&&cn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&vt()>Nr&&(t.flags|=128,u=!0,Pl(a,!1),t.lanes=4194304)}else{if(!u)if(e=ir(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,br(t,e),Pl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Ae)return Be(t),null}else 2*vt()-a.renderingStartTime>Nr&&n!==536870912&&(t.flags|=128,u=!0,Pl(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=vt(),e.sibling=null,n=Xe.current,J(Xe,u?n&1|2:n&1),Ae&&cn(t,a.treeForkCount),e):(Be(t),null);case 22:case 23:return wt(t),vs(),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&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),n=t.updateQueue,n!==null&&br(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&&B(oa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fn(Ve),Be(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function kb(e,t){switch(ls(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(Ve),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pn(t),null;case 31:if(t.memoizedState!==null){if(wt(t),t.alternate===null)throw Error(s(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Xe),null;case 4:return Ge(),null;case 10:return fn(t.type),null;case 22:case 23:return wt(t),vs(),e!==null&&B(oa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fn(Ve),null;case 25:return null;default:return null}}function Mh(e,t){switch(ls(t),t.tag){case 3:fn(Ve),Ge();break;case 26:case 27:case 5:Pn(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&wt(t);break;case 13:wt(t);break;case 19:B(Xe);break;case 10:fn(t.type);break;case 22:case 23:wt(t),vs(),e!==null&&B(oa);break;case 24:fn(Ve)}}function ei(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){a=void 0;var c=n.create,m=n.inst;a=c(),m.destroy=a}n=n.next}while(n!==u)}}catch(b){je(t,t.return,b)}}function Un(e,t,n){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var c=u.next;a=c;do{if((a.tag&e)===e){var m=a.inst,b=m.destroy;if(b!==void 0){m.destroy=void 0,u=t;var N=n,D=b;try{D()}catch(G){je(u,N,G)}}}a=a.next}while(a!==c)}}catch(G){je(t,t.return,G)}}function Dh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ad(t,n)}catch(a){je(e,e.return,a)}}}function zh(e,t,n){n.props=ma(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){je(e,t,a)}}function ti(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(u){je(e,t,u)}}function en(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){je(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){je(e,t,u)}else n.current=null}function Lh(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(u){je(e,e.return,u)}}function Js(e,t,n){try{var a=e.stateNode;e0(a,e.type,n,t),a[ot]=t}catch(u){je(e,e.return,u)}}function Uh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xn(e.type)||e.tag===4}function Ws(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uh(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&&Xn(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 Ps(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=rn));else if(a!==4&&(a===27&&Xn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ps(e,t,n),e=e.sibling;e!==null;)Ps(e,t,n),e=e.sibling}function vr(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&&Xn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(vr(e,t,n),e=e.sibling;e!==null;)vr(e,t,n),e=e.sibling}function Bh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ut(t,a,n),t[at]=e,t[ot]=n}catch(c){je(e,e.return,c)}}var pn=!1,Qe=!1,ec=!1,Hh=typeof WeakSet=="function"?WeakSet:Set,et=null;function Mb(e,t){if(e=e.containerInfo,Sc=Gr,e=Jf(e),Vu(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 u=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var m=0,b=-1,N=-1,D=0,G=0,I=e,z=null;t:for(;;){for(var U;I!==n||u!==0&&I.nodeType!==3||(b=m+u),I!==c||a!==0&&I.nodeType!==3||(N=m+a),I.nodeType===3&&(m+=I.nodeValue.length),(U=I.firstChild)!==null;)z=I,I=U;for(;;){if(I===e)break t;if(z===n&&++D===u&&(b=m),z===c&&++G===a&&(N=m),(U=I.nextSibling)!==null)break;I=z,z=I.parentNode}I=U}n=b===-1||N===-1?null:{start:b,end:N}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ec={focusedElem:e,selectionRange:n},Gr=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,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++)u=e[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,u=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var ue=ma(n.type,u);e=a.getSnapshotBeforeUpdate(ue,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(de){je(n,n.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)wc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function Gh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:bn(e,n),a&4&&ei(5,n);break;case 1:if(bn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){je(n,n.return,m)}else{var u=ma(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){je(n,n.return,m)}}a&64&&Dh(n),a&512&&ti(n,n.return);break;case 3:if(bn(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{Ad(e,t)}catch(m){je(n,n.return,m)}}break;case 27:t===null&&a&4&&Bh(n);case 26:case 5:bn(e,n),t===null&&a&4&&Lh(n),a&512&&ti(n,n.return);break;case 12:bn(e,n);break;case 31:bn(e,n),a&4&&Ih(e,n);break;case 13:bn(e,n),a&4&&Xh(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qb.bind(null,n),s0(e,n))));break;case 22:if(a=n.memoizedState!==null||pn,!a){t=t!==null&&t.memoizedState!==null||Qe,u=pn;var c=Qe;pn=a,(Qe=t)&&!c?vn(e,n,(n.subtreeFlags&8772)!==0):bn(e,n),pn=u,Qe=c}break;case 30:break;default:bn(e,n)}}function Yh(e){var t=e.alternate;t!==null&&(e.alternate=null,Yh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ju(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 Ye=null,dt=!1;function yn(e,t,n){for(n=n.child;n!==null;)qh(e,t,n),n=n.sibling}function qh(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(wl,n)}catch{}switch(n.tag){case 26:Qe||en(n,t),yn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qe||en(n,t);var a=Ye,u=dt;Xn(n.type)&&(Ye=n.stateNode,dt=!1),yn(e,t,n),oi(n.stateNode),Ye=a,dt=u;break;case 5:Qe||en(n,t);case 6:if(a=Ye,u=dt,Ye=null,yn(e,t,n),Ye=a,dt=u,Ye!==null)if(dt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(n.stateNode)}catch(c){je(n,t,c)}else try{Ye.removeChild(n.stateNode)}catch(c){je(n,t,c)}break;case 18:Ye!==null&&(dt?(e=Ye,Dg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),cl(e)):Dg(Ye,n.stateNode));break;case 4:a=Ye,u=dt,Ye=n.stateNode.containerInfo,dt=!0,yn(e,t,n),Ye=a,dt=u;break;case 0:case 11:case 14:case 15:Un(2,n,t),Qe||Un(4,n,t),yn(e,t,n);break;case 1:Qe||(en(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&zh(n,t,a)),yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:Qe=(a=Qe)||n.memoizedState!==null,yn(e,t,n),Qe=a;break;default:yn(e,t,n)}}function Ih(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{cl(e)}catch(n){je(t,t.return,n)}}}function Xh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{cl(e)}catch(n){je(t,t.return,n)}}function Db(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hh),t;default:throw Error(s(435,e.tag))}}function xr(e,t){var n=Db(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var u=Ib.bind(null,e,a);a.then(u,u)}})}function ht(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],c=e,m=t,b=m;e:for(;b!==null;){switch(b.tag){case 27:if(Xn(b.type)){Ye=b.stateNode,dt=!1;break e}break;case 5:Ye=b.stateNode,dt=!1;break e;case 3:case 4:Ye=b.stateNode.containerInfo,dt=!0;break e}b=b.return}if(Ye===null)throw Error(s(160));qh(c,m,u),Ye=null,dt=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Zh(t,e),t=t.sibling}var $t=null;function Zh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ht(t,e),gt(e),a&4&&(Un(3,e,e.return),ei(3,e),Un(5,e,e.return));break;case 1:ht(t,e),gt(e),a&512&&(Qe||n===null||en(n,n.return)),a&64&&pn&&(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 u=$t;if(ht(t,e),gt(e),a&512&&(Qe||n===null||en(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,u=u.ownerDocument||u;t:switch(a){case"title":c=u.getElementsByTagName("title")[0],(!c||c[Cl]||c[at]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(a),u.head.insertBefore(c,u.querySelector("head > title"))),ut(c,a,n),c[at]=e,Pe(c),a=c;break e;case"link":var m=Zg("link","href",u).get(a+(n.href||""));if(m){for(var b=0;b<m.length;b++)if(c=m[b],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)){m.splice(b,1);break t}}c=u.createElement(a),ut(c,a,n),u.head.appendChild(c);break;case"meta":if(m=Zg("meta","content",u).get(a+(n.content||""))){for(b=0;b<m.length;b++)if(c=m[b],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)){m.splice(b,1);break t}}c=u.createElement(a),ut(c,a,n),u.head.appendChild(c);break;default:throw Error(s(468,a))}c[at]=e,Pe(c),a=c}e.stateNode=a}else Fg(u,e.type,e.stateNode);else e.stateNode=Xg(u,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?Fg(u,e.type,e.stateNode):Xg(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Js(e,e.memoizedProps,n.memoizedProps)}break;case 27:ht(t,e),gt(e),a&512&&(Qe||n===null||en(n,n.return)),n!==null&&a&4&&Js(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ht(t,e),gt(e),a&512&&(Qe||n===null||en(n,n.return)),e.flags&32){u=e.stateNode;try{ka(u,"")}catch(ue){je(e,e.return,ue)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,Js(e,u,n!==null?n.memoizedProps:u)),a&1024&&(ec=!0);break;case 6:if(ht(t,e),gt(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ue){je(e,e.return,ue)}}break;case 3:if(Lr=null,u=$t,$t=Dr(t.containerInfo),ht(t,e),$t=u,gt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{cl(t.containerInfo)}catch(ue){je(e,e.return,ue)}ec&&(ec=!1,Fh(e));break;case 4:a=$t,$t=Dr(e.stateNode.containerInfo),ht(t,e),gt(e),$t=a;break;case 12:ht(t,e),gt(e);break;case 31:ht(t,e),gt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,xr(e,a)));break;case 13:ht(t,e),gt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Er=vt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,xr(e,a)));break;case 22:u=e.memoizedState!==null;var N=n!==null&&n.memoizedState!==null,D=pn,G=Qe;if(pn=D||u,Qe=G||N,ht(t,e),Qe=G,pn=D,gt(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||N||pn||Qe||pa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){N=n=t;try{if(c=N.stateNode,u)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{b=N.stateNode;var I=N.memoizedProps.style,z=I!=null&&I.hasOwnProperty("display")?I.display:null;b.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(ue){je(N,N.return,ue)}}}else if(t.tag===6){if(n===null){N=t;try{N.stateNode.nodeValue=u?"":N.memoizedProps}catch(ue){je(N,N.return,ue)}}}else if(t.tag===18){if(n===null){N=t;try{var U=N.stateNode;u?zg(U,!0):zg(N.stateNode,!1)}catch(ue){je(N,N.return,ue)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,xr(e,n))));break;case 19:ht(t,e),gt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,xr(e,a)));break;case 30:break;case 21:break;default:ht(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Uh(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,c=Ws(e);vr(e,c,u);break;case 5:var m=n.stateNode;n.flags&32&&(ka(m,""),n.flags&=-33);var b=Ws(e);vr(e,b,m);break;case 3:case 4:var N=n.stateNode.containerInfo,D=Ws(e);Ps(e,D,N);break;default:throw Error(s(161))}}catch(G){je(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Fh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Gh(e,t.alternate,t),t=t.sibling}function pa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Un(4,t,t.return),pa(t);break;case 1:en(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&zh(t,t.return,n),pa(t);break;case 27:oi(t.stateNode);case 26:case 5:en(t,t.return),pa(t);break;case 22:t.memoizedState===null&&pa(t);break;case 30:pa(t);break;default:pa(t)}e=e.sibling}}function vn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:vn(u,c,n),ei(4,c);break;case 1:if(vn(u,c,n),a=c,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(D){je(a,a.return,D)}if(a=c,u=a.updateQueue,u!==null){var b=a.stateNode;try{var N=u.shared.hiddenCallbacks;if(N!==null)for(u.shared.hiddenCallbacks=null,u=0;u<N.length;u++)Nd(N[u],b)}catch(D){je(a,a.return,D)}}n&&m&64&&Dh(c),ti(c,c.return);break;case 27:Bh(c);case 26:case 5:vn(u,c,n),n&&a===null&&m&4&&Lh(c),ti(c,c.return);break;case 12:vn(u,c,n);break;case 31:vn(u,c,n),n&&m&4&&Ih(u,c);break;case 13:vn(u,c,n),n&&m&4&&Xh(u,c);break;case 22:c.memoizedState===null&&vn(u,c,n),ti(c,c.return);break;case 30:break;default:vn(u,c,n)}t=t.sibling}}function tc(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&&Yl(n))}function nc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yl(e))}function Kt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Vh(e,t,n,a),t=t.sibling}function Vh(e,t,n,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(e,t,n,a),u&2048&&ei(9,t);break;case 1:Kt(e,t,n,a);break;case 3:Kt(e,t,n,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yl(e)));break;case 12:if(u&2048){Kt(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,b=c.onPostCommit;typeof b=="function"&&b(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){je(t,t.return,N)}}else Kt(e,t,n,a);break;case 31:Kt(e,t,n,a);break;case 13:Kt(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?Kt(e,t,n,a):ni(e,t):c._visibility&2?Kt(e,t,n,a):(c._visibility|=2,Wa(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),u&2048&&tc(m,t);break;case 24:Kt(e,t,n,a),u&2048&&nc(t.alternate,t);break;default:Kt(e,t,n,a)}}function Wa(e,t,n,a,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,b=n,N=a,D=m.flags;switch(m.tag){case 0:case 11:case 15:Wa(c,m,b,N,u),ei(8,m);break;case 23:break;case 22:var G=m.stateNode;m.memoizedState!==null?G._visibility&2?Wa(c,m,b,N,u):ni(c,m):(G._visibility|=2,Wa(c,m,b,N,u)),u&&D&2048&&tc(m.alternate,m);break;case 24:Wa(c,m,b,N,u),u&&D&2048&&nc(m.alternate,m);break;default:Wa(c,m,b,N,u)}t=t.sibling}}function ni(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,u=a.flags;switch(a.tag){case 22:ni(n,a),u&2048&&tc(a.alternate,a);break;case 24:ni(n,a),u&2048&&nc(a.alternate,a);break;default:ni(n,a)}t=t.sibling}}var ai=8192;function Pa(e,t,n){if(e.subtreeFlags&ai)for(e=e.child;e!==null;)$h(e,t,n),e=e.sibling}function $h(e,t,n){switch(e.tag){case 26:Pa(e,t,n),e.flags&ai&&e.memoizedState!==null&&x0(n,$t,e.memoizedState,e.memoizedProps);break;case 5:Pa(e,t,n);break;case 3:case 4:var a=$t;$t=Dr(e.stateNode.containerInfo),Pa(e,t,n),$t=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ai,ai=16777216,Pa(e,t,n),ai=a):Pa(e,t,n));break;default:Pa(e,t,n)}}function Kh(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 li(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];et=a,Jh(a,e)}Kh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qh(e),e=e.sibling}function Qh(e){switch(e.tag){case 0:case 11:case 15:li(e),e.flags&2048&&Un(9,e,e.return);break;case 3:li(e);break;case 12:li(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Sr(e)):li(e);break;default:li(e)}}function Sr(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];et=a,Jh(a,e)}Kh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Un(8,t,t.return),Sr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Sr(t));break;default:Sr(t)}e=e.sibling}}function Jh(e,t){for(;et!==null;){var n=et;switch(n.tag){case 0:case 11:case 15:Un(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:Yl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,et=a;else e:for(n=e;et!==null;){a=et;var u=a.sibling,c=a.return;if(Yh(a),a===n){et=null;break e}if(u!==null){u.return=c,et=u;break e}et=c}}}var zb={getCacheForType:function(e){var t=it(Ve),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return it(Ve).controller.signal}},Lb=typeof WeakMap=="function"?WeakMap:Map,Ce=0,ze=null,xe=null,Ee=0,Oe=0,Tt=null,Bn=!1,el=!1,ac=!1,xn=0,Ie=0,Hn=0,ya=0,lc=0,_t=0,tl=0,ii=null,mt=null,ic=!1,Er=0,Wh=0,Nr=1/0,Ar=null,Gn=null,We=0,Yn=null,nl=null,Sn=0,rc=0,uc=null,Ph=null,ri=0,sc=null;function Ct(){return(Ce&2)!==0&&Ee!==0?Ee&-Ee:S.T!==null?gc():mf()}function eg(){if(_t===0)if((Ee&536870912)===0||Ae){var e=ki;ki<<=1,(ki&3932160)===0&&(ki=262144),_t=e}else _t=536870912;return e=At.current,e!==null&&(e.flags|=32),_t}function pt(e,t,n){(e===ze&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(al(e,0),qn(e,Ee,_t,!1)),_l(e,n),((Ce&2)===0||e!==ze)&&(e===ze&&((Ce&2)===0&&(ya|=n),Ie===4&&qn(e,Ee,_t,!1)),tn(e))}function tg(e,t,n){if((Ce&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Tl(e,t),u=a?Hb(e,t):oc(e,t,!0),c=a;do{if(u===0){el&&!a&&qn(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Ub(n)){u=oc(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var b=e;u=ii;var N=b.current.memoizedState.isDehydrated;if(N&&(al(b,m).flags|=256),m=oc(b,m,!1),m!==2){if(ac&&!N){b.errorRecoveryDisabledLanes|=c,ya|=c,u=4;break e}c=mt,mt=u,c!==null&&(mt===null?mt=c:mt.push.apply(mt,c))}u=m}if(c=!1,u!==2)continue}}if(u===1){al(e,0),qn(e,t,0,!0);break}e:{switch(a=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:qn(a,t,_t,!Bn);break e;case 2:mt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Er+300-vt(),10<u)){if(qn(a,t,_t,!Bn),Di(a,0,!0)!==0)break e;Sn=t,a.timeoutHandle=kg(ng.bind(null,a,n,mt,Ar,ic,t,_t,ya,tl,Bn,c,"Throttled",-0,0),u);break e}ng(a,n,mt,Ar,ic,t,_t,ya,tl,Bn,c,null,-0,0)}}break}while(!0);tn(e)}function ng(e,t,n,a,u,c,m,b,N,D,G,I,z,U){if(e.timeoutHandle=-1,I=t.subtreeFlags,I&8192||(I&16785408)===16785408){I={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rn},$h(t,c,I);var ue=(c&62914560)===c?Er-vt():(c&4194048)===c?Wh-vt():0;if(ue=S0(I,ue),ue!==null){Sn=c,e.cancelPendingCommit=ue(og.bind(null,e,t,c,n,a,u,m,b,N,G,I,null,z,U)),qn(e,c,m,!D);return}}og(e,t,c,n,a,u,m,b,N)}function Ub(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 u=n[a],c=u.getSnapshot;u=u.value;try{if(!Et(c(),u))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 qn(e,t,n,a){t&=~lc,t&=~ya,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var c=31-St(u),m=1<<c;a[c]=-1,u&=~m}n!==0&&df(e,n,t)}function wr(){return(Ce&6)===0?(ui(0),!1):!0}function cc(){if(xe!==null){if(Oe===0)var e=xe.return;else e=xe,on=sa=null,ws(e),Va=null,Il=0,e=xe;for(;e!==null;)Mh(e.alternate,e),e=e.return;xe=null}}function al(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,a0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sn=0,cc(),ze=e,xe=n=sn(e.current,null),Ee=t,Oe=0,Tt=null,Bn=!1,el=Tl(e,t),ac=!1,tl=_t=lc=ya=Hn=Ie=0,mt=ii=null,ic=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-St(a),c=1<<u;t|=e[u],a&=~c}return xn=t,Fi(),n}function ag(e,t){pe=null,S.H=Jl,t===Fa||t===er?(t=vd(),Oe=3):t===hs?(t=vd(),Oe=4):Oe=t===Ys?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Tt=t,xe===null&&(Ie=1,gr(e,zt(t,e.current)))}function lg(){var e=At.current;return e===null?!0:(Ee&4194048)===Ee?Ht===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===Ht:!1}function ig(){var e=S.H;return S.H=Jl,e===null?Jl:e}function rg(){var e=S.A;return S.A=zb,e}function Tr(){Ie=4,Bn||(Ee&4194048)!==Ee&&At.current!==null||(el=!0),(Hn&134217727)===0&&(ya&134217727)===0||ze===null||qn(ze,Ee,_t,!1)}function oc(e,t,n){var a=Ce;Ce|=2;var u=ig(),c=rg();(ze!==e||Ee!==t)&&(Ar=null,al(e,t)),t=!1;var m=Ie;e:do try{if(Oe!==0&&xe!==null){var b=xe,N=Tt;switch(Oe){case 8:cc(),m=6;break e;case 3:case 2:case 9:case 6:At.current===null&&(t=!0);var D=Oe;if(Oe=0,Tt=null,ll(e,b,N,D),n&&el){m=0;break e}break;default:D=Oe,Oe=0,Tt=null,ll(e,b,N,D)}}Bb(),m=Ie;break}catch(G){ag(e,G)}while(!0);return t&&e.shellSuspendCounter++,on=sa=null,Ce=a,S.H=u,S.A=c,xe===null&&(ze=null,Ee=0,Fi()),m}function Bb(){for(;xe!==null;)ug(xe)}function Hb(e,t){var n=Ce;Ce|=2;var a=ig(),u=rg();ze!==e||Ee!==t?(Ar=null,Nr=vt()+500,al(e,t)):el=Tl(e,t);e:do try{if(Oe!==0&&xe!==null){t=xe;var c=Tt;t:switch(Oe){case 1:Oe=0,Tt=null,ll(e,t,c,1);break;case 2:case 9:if(yd(c)){Oe=0,Tt=null,sg(t);break}t=function(){Oe!==2&&Oe!==9||ze!==e||(Oe=7),tn(e)},c.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:yd(c)?(Oe=0,Tt=null,sg(t)):(Oe=0,Tt=null,ll(e,t,c,7));break;case 5:var m=null;switch(xe.tag){case 26:m=xe.memoizedState;case 5:case 27:var b=xe;if(m?Vg(m):b.stateNode.complete){Oe=0,Tt=null;var N=b.sibling;if(N!==null)xe=N;else{var D=b.return;D!==null?(xe=D,_r(D)):xe=null}break t}}Oe=0,Tt=null,ll(e,t,c,5);break;case 6:Oe=0,Tt=null,ll(e,t,c,6);break;case 8:cc(),Ie=6;break e;default:throw Error(s(462))}}Gb();break}catch(G){ag(e,G)}while(!0);return on=sa=null,S.H=a,S.A=u,Ce=n,xe!==null?0:(ze=null,Ee=0,Fi(),Ie)}function Gb(){for(;xe!==null&&!cy();)ug(xe)}function ug(e){var t=Rh(e.alternate,e,xn);e.memoizedProps=e.pendingProps,t===null?_r(e):xe=t}function sg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=wh(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=wh(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:ws(t);default:Mh(n,t),t=xe=rd(t,xn),t=Rh(n,t,xn)}e.memoizedProps=e.pendingProps,t===null?_r(e):xe=t}function ll(e,t,n,a){on=sa=null,ws(t),Va=null,Il=0;var u=t.return;try{if(Cb(e,u,t,n,Ee)){Ie=1,gr(e,zt(n,e.current)),xe=null;return}}catch(c){if(u!==null)throw xe=u,c;Ie=1,gr(e,zt(n,e.current)),xe=null;return}t.flags&32768?(Ae||a===1?e=!0:el||(Ee&536870912)!==0?e=!1:(Bn=e=!0,(a===2||a===9||a===3||a===6)&&(a=At.current,a!==null&&a.tag===13&&(a.flags|=16384))),cg(t,e)):_r(t)}function _r(e){var t=e;do{if((t.flags&32768)!==0){cg(t,Bn);return}e=t.return;var n=Rb(t.alternate,t,xn);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Ie===0&&(Ie=5)}function cg(e,t){do{var n=kb(e.alternate,e);if(n!==null){n.flags&=32767,xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=n}while(e!==null);Ie=6,xe=null}function og(e,t,n,a,u,c,m,b,N){e.cancelPendingCommit=null;do Cr();while(We!==0);if((Ce&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Wu,vy(e,n,c,m,b,N),e===ze&&(xe=ze=null,Ee=0),nl=t,Yn=e,Sn=n,rc=c,uc=u,Ph=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Xb(ji,function(){return mg(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=S.T,S.T=null,u=L.p,L.p=2,m=Ce,Ce|=4;try{Mb(e,t,n)}finally{Ce=m,L.p=u,S.T=a}}We=1,fg(),dg(),hg()}}function fg(){if(We===1){We=0;var e=Yn,t=nl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=S.T,S.T=null;var a=L.p;L.p=2;var u=Ce;Ce|=4;try{Zh(t,e);var c=Ec,m=Jf(e.containerInfo),b=c.focusedElem,N=c.selectionRange;if(m!==b&&b&&b.ownerDocument&&Qf(b.ownerDocument.documentElement,b)){if(N!==null&&Vu(b)){var D=N.start,G=N.end;if(G===void 0&&(G=D),"selectionStart"in b)b.selectionStart=D,b.selectionEnd=Math.min(G,b.value.length);else{var I=b.ownerDocument||document,z=I&&I.defaultView||window;if(z.getSelection){var U=z.getSelection(),ue=b.textContent.length,de=Math.min(N.start,ue),De=N.end===void 0?de:Math.min(N.end,ue);!U.extend&&de>De&&(m=De,De=de,de=m);var j=Kf(b,de),C=Kf(b,De);if(j&&C&&(U.rangeCount!==1||U.anchorNode!==j.node||U.anchorOffset!==j.offset||U.focusNode!==C.node||U.focusOffset!==C.offset)){var M=I.createRange();M.setStart(j.node,j.offset),U.removeAllRanges(),de>De?(U.addRange(M),U.extend(C.node,C.offset)):(M.setEnd(C.node,C.offset),U.addRange(M))}}}}for(I=[],U=b;U=U.parentNode;)U.nodeType===1&&I.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<I.length;b++){var q=I[b];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Gr=!!Sc,Ec=Sc=null}finally{Ce=u,L.p=a,S.T=n}}e.current=t,We=2}}function dg(){if(We===2){We=0;var e=Yn,t=nl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=S.T,S.T=null;var a=L.p;L.p=2;var u=Ce;Ce|=4;try{Gh(e,t.alternate,t)}finally{Ce=u,L.p=a,S.T=n}}We=3}}function hg(){if(We===4||We===3){We=0,oy();var e=Yn,t=nl,n=Sn,a=Ph;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,nl=Yn=null,gg(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Gn=null),Cu(n),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(wl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=S.T,u=L.p,L.p=2,S.T=null;try{for(var c=e.onRecoverableError,m=0;m<a.length;m++){var b=a[m];c(b.value,{componentStack:b.stack})}}finally{S.T=t,L.p=u}}(Sn&3)!==0&&Cr(),tn(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===sc?ri++:(ri=0,sc=e):ri=0,ui(0)}}function gg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yl(t)))}function Cr(){return fg(),dg(),hg(),mg()}function mg(){if(We!==5)return!1;var e=Yn,t=rc;rc=0;var n=Cu(Sn),a=S.T,u=L.p;try{L.p=32>n?32:n,S.T=null,n=uc,uc=null;var c=Yn,m=Sn;if(We=0,nl=Yn=null,Sn=0,(Ce&6)!==0)throw Error(s(331));var b=Ce;if(Ce|=4,Qh(c.current),Vh(c,c.current,m,n),Ce=b,ui(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(wl,c)}catch{}return!0}finally{L.p=u,S.T=a,gg(e,t)}}function pg(e,t,n){t=zt(n,t),t=Gs(e.stateNode,t,2),e=Dn(e,t,2),e!==null&&(_l(e,2),tn(e))}function je(e,t,n){if(e.tag===3)pg(e,e,n);else for(;t!==null;){if(t.tag===3){pg(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Gn===null||!Gn.has(a))){e=zt(n,e),n=yh(2),a=Dn(t,n,2),a!==null&&(bh(n,a,t,e),_l(a,2),tn(a));break}}t=t.return}}function fc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Lb;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(n)||(ac=!0,u.add(n),e=Yb.bind(null,e,t,n),t.then(e,e))}function Yb(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ze===e&&(Ee&n)===n&&(Ie===4||Ie===3&&(Ee&62914560)===Ee&&300>vt()-Er?(Ce&2)===0&&al(e,0):lc|=n,tl===Ee&&(tl=0)),tn(e)}function yg(e,t){t===0&&(t=ff()),e=ia(e,t),e!==null&&(_l(e,t),tn(e))}function qb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yg(e,n)}function Ib(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),yg(e,n)}function Xb(e,t){return Au(e,t)}var Or=null,il=null,dc=!1,jr=!1,hc=!1,In=0;function tn(e){e!==il&&e.next===null&&(il===null?Or=il=e:il=il.next=e),jr=!0,dc||(dc=!0,Fb())}function ui(e,t){if(!hc&&jr){hc=!0;do for(var n=!1,a=Or;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var c=0;else{var m=a.suspendedLanes,b=a.pingedLanes;c=(1<<31-St(42|e)+1)-1,c&=u&~(m&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Sg(a,c))}else c=Ee,c=Di(a,a===ze?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Tl(a,c)||(n=!0,Sg(a,c));a=a.next}while(n);hc=!1}}function Zb(){bg()}function bg(){jr=dc=!1;var e=0;In!==0&&n0()&&(e=In);for(var t=vt(),n=null,a=Or;a!==null;){var u=a.next,c=vg(a,t);c===0?(a.next=null,n===null?Or=u:n.next=u,u===null&&(il=n)):(n=a,(e!==0||(c&3)!==0)&&(jr=!0)),a=u}We!==0&&We!==5||ui(e),In!==0&&(In=0)}function vg(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-St(c),b=1<<m,N=u[m];N===-1?((b&n)===0||(b&a)!==0)&&(u[m]=by(b,t)):N<=t&&(e.expiredLanes|=b),c&=~b}if(t=ze,n=Ee,n=Di(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&wu(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Tl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&wu(a),Cu(n)){case 2:case 8:n=cf;break;case 32:n=ji;break;case 268435456:n=of;break;default:n=ji}return a=xg.bind(null,e),n=Au(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&wu(a),e.callbackPriority=2,e.callbackNode=null,2}function xg(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Cr()&&e.callbackNode!==n)return null;var a=Ee;return a=Di(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(tg(e,a,t),vg(e,vt()),e.callbackNode!=null&&e.callbackNode===n?xg.bind(null,e):null)}function Sg(e,t){if(Cr())return null;tg(e,t,!0)}function Fb(){l0(function(){(Ce&6)!==0?Au(sf,Zb):bg()})}function gc(){if(In===0){var e=Xa;e===0&&(e=Ri,Ri<<=1,(Ri&261888)===0&&(Ri=256)),In=e}return In}function Eg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Bi(""+e)}function Ng(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 Vb(e,t,n,a,u){if(t==="submit"&&n&&n.stateNode===u){var c=Eg((u[ot]||null).action),m=a.submitter;m&&(t=(t=m[ot]||null)?Eg(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var b=new qi("action","action",null,a,u);e.push({event:b,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(In!==0){var N=m?Ng(u,m):new FormData(u);Ds(n,{pending:!0,data:N,method:u.method,action:c},null,N)}}else typeof c=="function"&&(b.preventDefault(),N=m?Ng(u,m):new FormData(u),Ds(n,{pending:!0,data:N,method:u.method,action:c},c,N))},currentTarget:u}]})}}for(var mc=0;mc<Ju.length;mc++){var pc=Ju[mc],$b=pc.toLowerCase(),Kb=pc[0].toUpperCase()+pc.slice(1);Vt($b,"on"+Kb)}Vt(ed,"onAnimationEnd"),Vt(td,"onAnimationIteration"),Vt(nd,"onAnimationStart"),Vt("dblclick","onDoubleClick"),Vt("focusin","onFocus"),Vt("focusout","onBlur"),Vt(fb,"onTransitionRun"),Vt(db,"onTransitionStart"),Vt(hb,"onTransitionCancel"),Vt(ad,"onTransitionEnd"),ja("onMouseEnter",["mouseout","mouseover"]),ja("onMouseLeave",["mouseout","mouseover"]),ja("onPointerEnter",["pointerout","pointerover"]),ja("onPointerLeave",["pointerout","pointerover"]),ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var si="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(" "),Qb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(si));function Ag(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],u=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var m=a.length-1;0<=m;m--){var b=a[m],N=b.instance,D=b.currentTarget;if(b=b.listener,N!==c&&u.isPropagationStopped())break e;c=b,u.currentTarget=D;try{c(u)}catch(G){Zi(G)}u.currentTarget=null,c=N}else for(m=0;m<a.length;m++){if(b=a[m],N=b.instance,D=b.currentTarget,b=b.listener,N!==c&&u.isPropagationStopped())break e;c=b,u.currentTarget=D;try{c(u)}catch(G){Zi(G)}u.currentTarget=null,c=N}}}}function Se(e,t){var n=t[Ou];n===void 0&&(n=t[Ou]=new Set);var a=e+"__bubble";n.has(a)||(wg(t,e,2,!1),n.add(a))}function yc(e,t,n){var a=0;t&&(a|=4),wg(n,e,a,t)}var Rr="_reactListening"+Math.random().toString(36).slice(2);function bc(e){if(!e[Rr]){e[Rr]=!0,bf.forEach(function(n){n!=="selectionchange"&&(Qb.has(n)||yc(n,!1,e),yc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Rr]||(t[Rr]=!0,yc("selectionchange",!1,t))}}function wg(e,t,n,a){switch(em(t)){case 2:var u=A0;break;case 8:u=w0;break;default:u=Mc}n=u.bind(null,t,n,e),u=void 0,!Bu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function vc(e,t,n,a,u){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var b=a.stateNode.containerInfo;if(b===u)break;if(m===4)for(m=a.return;m!==null;){var N=m.tag;if((N===3||N===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;b!==null;){if(m=_a(b),m===null)return;if(N=m.tag,N===5||N===6||N===26||N===27){a=c=m;continue e}b=b.parentNode}}a=a.return}jf(function(){var D=c,G=Lu(n),I=[];e:{var z=ld.get(e);if(z!==void 0){var U=qi,ue=e;switch(e){case"keypress":if(Gi(n)===0)break e;case"keydown":case"keyup":U=Iy;break;case"focusin":ue="focus",U=qu;break;case"focusout":ue="blur",U=qu;break;case"beforeblur":case"afterblur":U=qu;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":U=Mf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Ry;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Fy;break;case ed:case td:case nd:U=Dy;break;case ad:U=$y;break;case"scroll":case"scrollend":U=Oy;break;case"wheel":U=Qy;break;case"copy":case"cut":case"paste":U=Ly;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=zf;break;case"toggle":case"beforetoggle":U=Wy}var de=(t&4)!==0,De=!de&&(e==="scroll"||e==="scrollend"),j=de?z!==null?z+"Capture":null:z;de=[];for(var C=D,M;C!==null;){var q=C;if(M=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||M===null||j===null||(q=jl(C,j),q!=null&&de.push(ci(C,q,M))),De)break;C=C.return}0<de.length&&(z=new U(z,ue,null,n,G),I.push({event:z,listeners:de}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",z&&n!==zu&&(ue=n.relatedTarget||n.fromElement)&&(_a(ue)||ue[Ta]))break e;if((U||z)&&(z=G.window===G?G:(z=G.ownerDocument)?z.defaultView||z.parentWindow:window,U?(ue=n.relatedTarget||n.toElement,U=D,ue=ue?_a(ue):null,ue!==null&&(De=f(ue),de=ue.tag,ue!==De||de!==5&&de!==27&&de!==6)&&(ue=null)):(U=null,ue=D),U!==ue)){if(de=Mf,q="onMouseLeave",j="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(de=zf,q="onPointerLeave",j="onPointerEnter",C="pointer"),De=U==null?z:Ol(U),M=ue==null?z:Ol(ue),z=new de(q,C+"leave",U,n,G),z.target=De,z.relatedTarget=M,q=null,_a(G)===D&&(de=new de(j,C+"enter",ue,n,G),de.target=M,de.relatedTarget=De,q=de),De=q,U&&ue)t:{for(de=Jb,j=U,C=ue,M=0,q=j;q;q=de(q))M++;q=0;for(var oe=C;oe;oe=de(oe))q++;for(;0<M-q;)j=de(j),M--;for(;0<q-M;)C=de(C),q--;for(;M--;){if(j===C||C!==null&&j===C.alternate){de=j;break t}j=de(j),C=de(C)}de=null}else de=null;U!==null&&Tg(I,z,U,de,!1),ue!==null&&De!==null&&Tg(I,De,ue,de,!0)}}e:{if(z=D?Ol(D):window,U=z.nodeName&&z.nodeName.toLowerCase(),U==="select"||U==="input"&&z.type==="file")var Te=If;else if(Yf(z))if(Xf)Te=sb;else{Te=rb;var ce=ib}else U=z.nodeName,!U||U.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?D&&Du(D.elementType)&&(Te=If):Te=ub;if(Te&&(Te=Te(e,D))){qf(I,Te,n,G);break e}ce&&ce(e,z,D),e==="focusout"&&D&&z.type==="number"&&D.memoizedProps.value!=null&&Mu(z,"number",z.value)}switch(ce=D?Ol(D):window,e){case"focusin":(Yf(ce)||ce.contentEditable==="true")&&(La=ce,$u=D,Bl=null);break;case"focusout":Bl=$u=La=null;break;case"mousedown":Ku=!0;break;case"contextmenu":case"mouseup":case"dragend":Ku=!1,Wf(I,n,G);break;case"selectionchange":if(ob)break;case"keydown":case"keyup":Wf(I,n,G)}var be;if(Xu)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else za?Hf(e,n)&&(Ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ne="onCompositionStart");Ne&&(Lf&&n.locale!=="ko"&&(za||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&za&&(be=Rf()):(_n=G,Hu="value"in _n?_n.value:_n.textContent,za=!0)),ce=kr(D,Ne),0<ce.length&&(Ne=new Df(Ne,e,null,n,G),I.push({event:Ne,listeners:ce}),be?Ne.data=be:(be=Gf(n),be!==null&&(Ne.data=be)))),(be=eb?tb(e,n):nb(e,n))&&(Ne=kr(D,"onBeforeInput"),0<Ne.length&&(ce=new Df("onBeforeInput","beforeinput",null,n,G),I.push({event:ce,listeners:Ne}),ce.data=be)),Vb(I,e,D,n,G)}Ag(I,t)})}function ci(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kr(e,t){for(var n=t+"Capture",a=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=jl(e,n),u!=null&&a.unshift(ci(e,u,c)),u=jl(e,t),u!=null&&a.push(ci(e,u,c))),e.tag===3)return a;e=e.return}return[]}function Jb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Tg(e,t,n,a,u){for(var c=t._reactName,m=[];n!==null&&n!==a;){var b=n,N=b.alternate,D=b.stateNode;if(b=b.tag,N!==null&&N===a)break;b!==5&&b!==26&&b!==27||D===null||(N=D,u?(D=jl(n,c),D!=null&&m.unshift(ci(n,D,N))):u||(D=jl(n,c),D!=null&&m.push(ci(n,D,N)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var Wb=/\r\n?/g,Pb=/\u0000|\uFFFD/g;function _g(e){return(typeof e=="string"?e:""+e).replace(Wb,`
49
- `).replace(Pb,"")}function Cg(e,t){return t=_g(t),_g(e)===t}function Me(e,t,n,a,u,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ka(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ka(e,""+a);break;case"className":Li(e,"class",a);break;case"tabIndex":Li(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Li(e,n,a);break;case"style":Cf(e,a,c);break;case"data":if(t!=="object"){Li(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=Bi(""+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"&&Me(e,t,"name",u.name,u,null),Me(e,t,"formEncType",u.formEncType,u,null),Me(e,t,"formMethod",u.formMethod,u,null),Me(e,t,"formTarget",u.formTarget,u,null)):(Me(e,t,"encType",u.encType,u,null),Me(e,t,"method",u.method,u,null),Me(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Bi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=rn);break;case"onScroll":a!=null&&Se("scroll",e);break;case"onScrollEnd":a!=null&&Se("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(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=Bi(""+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":Se("beforetoggle",e),Se("toggle",e),zi(e,"popover",a);break;case"xlinkActuate":ln(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ln(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ln(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ln(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ln(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ln(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ln(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ln(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ln(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":zi(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=_y.get(n)||n,zi(e,n,a))}}function xc(e,t,n,a,u,c){switch(n){case"style":Cf(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ka(e,a):(typeof a=="number"||typeof a=="bigint")&&ka(e,""+a);break;case"onScroll":a!=null&&Se("scroll",e);break;case"onScrollEnd":a!=null&&Se("scrollend",e);break;case"onClick":a!=null&&(e.onclick=rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),c=e[ot]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,u);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):zi(e,n,a)}}}function ut(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",e),Se("load",e);var a=!1,u=!1,c;for(c in n)if(n.hasOwnProperty(c)){var m=n[c];if(m!=null)switch(c){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,c,m,n,null)}}u&&Me(e,t,"srcSet",n.srcSet,n,null),a&&Me(e,t,"src",n.src,n,null);return;case"input":Se("invalid",e);var b=c=m=u=null,N=null,D=null;for(a in n)if(n.hasOwnProperty(a)){var G=n[a];if(G!=null)switch(a){case"name":u=G;break;case"type":m=G;break;case"checked":N=G;break;case"defaultChecked":D=G;break;case"value":c=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:Me(e,t,a,G,n,null)}}Af(e,c,b,N,D,m,u,!1);return;case"select":Se("invalid",e),a=m=c=null;for(u in n)if(n.hasOwnProperty(u)&&(b=n[u],b!=null))switch(u){case"value":c=b;break;case"defaultValue":m=b;break;case"multiple":a=b;default:Me(e,t,u,b,n,null)}t=c,n=m,e.multiple=!!a,t!=null?Ra(e,!!a,t,!1):n!=null&&Ra(e,!!a,n,!0);return;case"textarea":Se("invalid",e),c=u=a=null;for(m in n)if(n.hasOwnProperty(m)&&(b=n[m],b!=null))switch(m){case"value":a=b;break;case"defaultValue":u=b;break;case"children":c=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(91));break;default:Me(e,t,m,b,n,null)}Tf(e,a,u,c);return;case"option":for(N in n)if(n.hasOwnProperty(N)&&(a=n[N],a!=null))switch(N){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Me(e,t,N,a,n,null)}return;case"dialog":Se("beforetoggle",e),Se("toggle",e),Se("cancel",e),Se("close",e);break;case"iframe":case"object":Se("load",e);break;case"video":case"audio":for(a=0;a<si.length;a++)Se(si[a],e);break;case"image":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"embed":case"source":case"link":Se("error",e),Se("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(D in n)if(n.hasOwnProperty(D)&&(a=n[D],a!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,D,a,n,null)}return;default:if(Du(t)){for(G in n)n.hasOwnProperty(G)&&(a=n[G],a!==void 0&&xc(e,t,G,a,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(a=n[b],a!=null&&Me(e,t,b,a,n,null))}function e0(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 u=null,c=null,m=null,b=null,N=null,D=null,G=null;for(U in n){var I=n[U];if(n.hasOwnProperty(U)&&I!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":N=I;default:a.hasOwnProperty(U)||Me(e,t,U,null,a,I)}}for(var z in a){var U=a[z];if(I=n[z],a.hasOwnProperty(z)&&(U!=null||I!=null))switch(z){case"type":c=U;break;case"name":u=U;break;case"checked":D=U;break;case"defaultChecked":G=U;break;case"value":m=U;break;case"defaultValue":b=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:U!==I&&Me(e,t,z,U,a,I)}}ku(e,m,b,N,D,G,c,u);return;case"select":U=m=b=z=null;for(c in n)if(N=n[c],n.hasOwnProperty(c)&&N!=null)switch(c){case"value":break;case"multiple":U=N;default:a.hasOwnProperty(c)||Me(e,t,c,null,a,N)}for(u in a)if(c=a[u],N=n[u],a.hasOwnProperty(u)&&(c!=null||N!=null))switch(u){case"value":z=c;break;case"defaultValue":b=c;break;case"multiple":m=c;default:c!==N&&Me(e,t,u,c,a,N)}t=b,n=m,a=U,z!=null?Ra(e,!!n,z,!1):!!a!=!!n&&(t!=null?Ra(e,!!n,t,!0):Ra(e,!!n,n?[]:"",!1));return;case"textarea":U=z=null;for(b in n)if(u=n[b],n.hasOwnProperty(b)&&u!=null&&!a.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Me(e,t,b,null,a,u)}for(m in a)if(u=a[m],c=n[m],a.hasOwnProperty(m)&&(u!=null||c!=null))switch(m){case"value":z=u;break;case"defaultValue":U=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&Me(e,t,m,u,a,c)}wf(e,z,U);return;case"option":for(var ue in n)if(z=n[ue],n.hasOwnProperty(ue)&&z!=null&&!a.hasOwnProperty(ue))switch(ue){case"selected":e.selected=!1;break;default:Me(e,t,ue,null,a,z)}for(N in a)if(z=a[N],U=n[N],a.hasOwnProperty(N)&&z!==U&&(z!=null||U!=null))switch(N){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Me(e,t,N,z,a,U)}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 de in n)z=n[de],n.hasOwnProperty(de)&&z!=null&&!a.hasOwnProperty(de)&&Me(e,t,de,null,a,z);for(D in a)if(z=a[D],U=n[D],a.hasOwnProperty(D)&&z!==U&&(z!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:Me(e,t,D,z,a,U)}return;default:if(Du(t)){for(var De in n)z=n[De],n.hasOwnProperty(De)&&z!==void 0&&!a.hasOwnProperty(De)&&xc(e,t,De,void 0,a,z);for(G in a)z=a[G],U=n[G],!a.hasOwnProperty(G)||z===U||z===void 0&&U===void 0||xc(e,t,G,z,a,U);return}}for(var j in n)z=n[j],n.hasOwnProperty(j)&&z!=null&&!a.hasOwnProperty(j)&&Me(e,t,j,null,a,z);for(I in a)z=a[I],U=n[I],!a.hasOwnProperty(I)||z===U||z==null&&U==null||Me(e,t,I,z,a,U)}function Og(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function t0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var u=n[a],c=u.transferSize,m=u.initiatorType,b=u.duration;if(c&&b&&Og(m)){for(m=0,b=u.responseEnd,a+=1;a<n.length;a++){var N=n[a],D=N.startTime;if(D>b)break;var G=N.transferSize,I=N.initiatorType;G&&Og(I)&&(N=N.responseEnd,m+=G*(N<b?1:(b-D)/(N-D)))}if(--a,t+=8*(c+m)/(u.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 Sc=null,Ec=null;function Mr(e){return e.nodeType===9?e:e.ownerDocument}function jg(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 Rg(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 Nc(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 Ac=null;function n0(){var e=window.event;return e&&e.type==="popstate"?e===Ac?!1:(Ac=e,!0):(Ac=null,!1)}var kg=typeof setTimeout=="function"?setTimeout:void 0,a0=typeof clearTimeout=="function"?clearTimeout:void 0,Mg=typeof Promise=="function"?Promise:void 0,l0=typeof queueMicrotask=="function"?queueMicrotask:typeof Mg<"u"?function(e){return Mg.resolve(null).then(e).catch(i0)}:kg;function i0(e){setTimeout(function(){throw e})}function Xn(e){return e==="head"}function Dg(e,t){var n=t,a=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(u),cl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")oi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,oi(n);for(var c=n.firstChild;c;){var m=c.nextSibling,b=c.nodeName;c[Cl]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=m}}else n==="body"&&oi(e.ownerDocument.body);n=u}while(n);cl(t)}function zg(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function wc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":wc(n),ju(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function r0(e,t,n,a){for(;e.nodeType===1;){var u=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Cl])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!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function u0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Gt(e.nextSibling),e===null))return null;return e}function Lg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gt(e.nextSibling),e===null))return null;return e}function Tc(e){return e.data==="$?"||e.data==="$~"}function _c(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function s0(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 Gt(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 Cc=null;function Ug(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Gt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Bg(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 Hg(e,t,n){switch(t=Mr(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function oi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ju(e)}var Yt=new Map,Gg=new Set;function Dr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var En=L.d;L.d={f:c0,r:o0,D:f0,C:d0,L:h0,m:g0,X:p0,S:m0,M:y0};function c0(){var e=En.f(),t=wr();return e||t}function o0(e){var t=Ca(e);t!==null&&t.tag===5&&t.type==="form"?ah(t):En.r(e)}var rl=typeof document>"u"?null:document;function Yg(e,t,n){var a=rl;if(a&&typeof t=="string"&&t){var u=Mt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Gg.has(u)||(Gg.add(u),e={rel:e,crossOrigin:n,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),ut(t,"link",e),Pe(t),a.head.appendChild(t)))}}function f0(e){En.D(e),Yg("dns-prefetch",e,null)}function d0(e,t){En.C(e,t),Yg("preconnect",e,t)}function h0(e,t,n){En.L(e,t,n);var a=rl;if(a&&e&&t){var u='link[rel="preload"][as="'+Mt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Mt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Mt(n.imageSizes)+'"]')):u+='[href="'+Mt(e)+'"]';var c=u;switch(t){case"style":c=ul(e);break;case"script":c=sl(e)}Yt.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Yt.set(c,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(fi(c))||t==="script"&&a.querySelector(di(c))||(t=a.createElement("link"),ut(t,"link",e),Pe(t),a.head.appendChild(t)))}}function g0(e,t){En.m(e,t);var n=rl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Mt(a)+'"][href="'+Mt(e)+'"]',c=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=sl(e)}if(!Yt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Yt.set(c,e),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(di(c)))return}a=n.createElement("link"),ut(a,"link",e),Pe(a),n.head.appendChild(a)}}}function m0(e,t,n){En.S(e,t,n);var a=rl;if(a&&e){var u=Oa(a).hoistableStyles,c=ul(e);t=t||"default";var m=u.get(c);if(!m){var b={loading:0,preload:null};if(m=a.querySelector(fi(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Yt.get(c))&&Oc(e,n);var N=m=a.createElement("link");Pe(N),ut(N,"link",e),N._p=new Promise(function(D,G){N.onload=D,N.onerror=G}),N.addEventListener("load",function(){b.loading|=1}),N.addEventListener("error",function(){b.loading|=2}),b.loading|=4,zr(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:b},u.set(c,m)}}}function p0(e,t){En.X(e,t);var n=rl;if(n&&e){var a=Oa(n).hoistableScripts,u=sl(e),c=a.get(u);c||(c=n.querySelector(di(u)),c||(e=v({src:e,async:!0},t),(t=Yt.get(u))&&jc(e,t),c=n.createElement("script"),Pe(c),ut(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function y0(e,t){En.M(e,t);var n=rl;if(n&&e){var a=Oa(n).hoistableScripts,u=sl(e),c=a.get(u);c||(c=n.querySelector(di(u)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Yt.get(u))&&jc(e,t),c=n.createElement("script"),Pe(c),ut(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function qg(e,t,n,a){var u=(u=ve.current)?Dr(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ul(n.href),n=Oa(u).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=ul(n.href);var c=Oa(u).hoistableStyles,m=c.get(e);if(m||(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=u.querySelector(fi(e)))&&!c._p&&(m.instance=c,m.state.loading=5),Yt.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},Yt.set(e,n),c||b0(u,e,n,m.state))),t&&a===null)throw Error(s(528,""));return m}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=sl(n),n=Oa(u).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(s(444,e))}}function ul(e){return'href="'+Mt(e)+'"'}function fi(e){return'link[rel="stylesheet"]['+e+"]"}function Ig(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function b0(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}),ut(t,"link",n),Pe(t),e.head.appendChild(t))}function sl(e){return'[src="'+Mt(e)+'"]'}function di(e){return"script[async]"+e}function Xg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Mt(n.href)+'"]');if(a)return t.instance=a,Pe(a),a;var u=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Pe(a),ut(a,"style",u),zr(a,n.precedence,e),t.instance=a;case"stylesheet":u=ul(n.href);var c=e.querySelector(fi(u));if(c)return t.state.loading|=4,t.instance=c,Pe(c),c;a=Ig(n),(u=Yt.get(u))&&Oc(a,u),c=(e.ownerDocument||e).createElement("link"),Pe(c);var m=c;return m._p=new Promise(function(b,N){m.onload=b,m.onerror=N}),ut(c,"link",a),t.state.loading|=4,zr(c,n.precedence,e),t.instance=c;case"script":return c=sl(n.src),(u=e.querySelector(di(c)))?(t.instance=u,Pe(u),u):(a=n,(u=Yt.get(c))&&(a=v({},n),jc(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),Pe(u),ut(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,zr(a,n.precedence,e));return t.instance}function zr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,c=u,m=0;m<a.length;m++){var b=a[m];if(b.dataset.precedence===t)c=b;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Lr=null;function Zg(e,t,n){if(Lr===null){var a=new Map,u=Lr=new Map;u.set(n,a)}else u=Lr,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var c=n[u];if(!(c[Cl]||c[at]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var b=a.get(m);b?b.push(c):a.set(m,[c])}}return a}function Fg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function v0(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 Vg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function x0(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 u=ul(a.href),c=t.querySelector(fi(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ur.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,Pe(c);return}c=t.ownerDocument||t,a=Ig(a),(u=Yt.get(u))&&Oc(a,u),c=c.createElement("link"),Pe(c);var m=c;m._p=new Promise(function(b,N){m.onload=b,m.onerror=N}),ut(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=Ur.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Rc=0;function S0(e,t){return e.stylesheets&&e.count===0&&Hr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Hr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Rc===0&&(Rc=62500*t0());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Hr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Rc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Ur(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Hr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Br=null;function Hr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Br=new Map,t.forEach(E0,e),Br=null,Ur.call(e))}function E0(e,t){if(!(t.state.loading&4)){var n=Br.get(e);if(n)var a=n.get(null);else{n=new Map,Br.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var m=u[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}u=t.instance,m=u.getAttribute("data-precedence"),c=n.get(m)||a,c===a&&n.set(null,u),n.set(m,u),this.count++,a=Ur.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var hi={$$typeof:T,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function N0(e,t,n,a,u,c,m,b,N){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=Tu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tu(0),this.hiddenUpdates=Tu(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function $g(e,t,n,a,u,c,m,b,N,D,G,I){return e=new N0(e,t,n,m,N,D,G,I,b),t=1,c===!0&&(t|=24),c=Nt(3,null,null,t),e.current=c,c.stateNode=e,t=os(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},gs(c),e}function Kg(e){return e?(e=Ha,e):Ha}function Qg(e,t,n,a,u,c){u=Kg(u),a.context===null?a.context=u:a.pendingContext=u,a=Mn(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=Dn(e,a,t),n!==null&&(pt(n,e,t),Zl(n,e,t))}function Jg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function kc(e,t){Jg(e,t),(e=e.alternate)&&Jg(e,t)}function Wg(e){if(e.tag===13||e.tag===31){var t=ia(e,67108864);t!==null&&pt(t,e,67108864),kc(e,67108864)}}function Pg(e){if(e.tag===13||e.tag===31){var t=Ct();t=_u(t);var n=ia(e,t);n!==null&&pt(n,e,t),kc(e,t)}}var Gr=!0;function A0(e,t,n,a){var u=S.T;S.T=null;var c=L.p;try{L.p=2,Mc(e,t,n,a)}finally{L.p=c,S.T=u}}function w0(e,t,n,a){var u=S.T;S.T=null;var c=L.p;try{L.p=8,Mc(e,t,n,a)}finally{L.p=c,S.T=u}}function Mc(e,t,n,a){if(Gr){var u=Dc(a);if(u===null)vc(e,t,a,Yr,n),tm(e,a);else if(_0(u,e,t,n,a))a.stopPropagation();else if(tm(e,a),t&4&&-1<T0.indexOf(e)){for(;u!==null;){var c=Ca(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=ea(c.pendingLanes);if(m!==0){var b=c;for(b.pendingLanes|=2,b.entangledLanes|=2;m;){var N=1<<31-St(m);b.entanglements[1]|=N,m&=~N}tn(c),(Ce&6)===0&&(Nr=vt()+500,ui(0))}}break;case 31:case 13:b=ia(c,2),b!==null&&pt(b,c,2),wr(),kc(c,2)}if(c=Dc(a),c===null&&vc(e,t,a,Yr,n),c===u)break;u=c}u!==null&&a.stopPropagation()}else vc(e,t,a,null,n)}}function Dc(e){return e=Lu(e),zc(e)}var Yr=null;function zc(e){if(Yr=null,e=_a(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=p(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 em(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fy()){case sf:return 2;case cf:return 8;case ji:case dy:return 32;case of:return 268435456;default:return 32}default:return 32}}var Lc=!1,Zn=null,Fn=null,Vn=null,gi=new Map,mi=new Map,$n=[],T0="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 tm(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Fn=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":gi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mi.delete(t.pointerId)}}function pi(e,t,n,a,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[u]},t!==null&&(t=Ca(t),t!==null&&Wg(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function _0(e,t,n,a,u){switch(t){case"focusin":return Zn=pi(Zn,e,t,n,a,u),!0;case"dragenter":return Fn=pi(Fn,e,t,n,a,u),!0;case"mouseover":return Vn=pi(Vn,e,t,n,a,u),!0;case"pointerover":var c=u.pointerId;return gi.set(c,pi(gi.get(c)||null,e,t,n,a,u)),!0;case"gotpointercapture":return c=u.pointerId,mi.set(c,pi(mi.get(c)||null,e,t,n,a,u)),!0}return!1}function nm(e){var t=_a(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,pf(e.priority,function(){Pg(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,pf(e.priority,function(){Pg(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 qr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Dc(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);zu=a,n.target.dispatchEvent(a),zu=null}else return t=Ca(n),t!==null&&Wg(t),e.blockedOn=n,!1;t.shift()}return!0}function am(e,t,n){qr(e)&&n.delete(t)}function C0(){Lc=!1,Zn!==null&&qr(Zn)&&(Zn=null),Fn!==null&&qr(Fn)&&(Fn=null),Vn!==null&&qr(Vn)&&(Vn=null),gi.forEach(am),mi.forEach(am)}function Ir(e,t){e.blockedOn===t&&(e.blockedOn=null,Lc||(Lc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,C0)))}var Xr=null;function lm(e){Xr!==e&&(Xr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Xr===e&&(Xr=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(zc(a||n)===null)continue;break}var c=Ca(n);c!==null&&(e.splice(t,3),t-=3,Ds(c,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function cl(e){function t(N){return Ir(N,e)}Zn!==null&&Ir(Zn,e),Fn!==null&&Ir(Fn,e),Vn!==null&&Ir(Vn,e),gi.forEach(t),mi.forEach(t);for(var n=0;n<$n.length;n++){var a=$n[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<$n.length&&(n=$n[0],n.blockedOn===null);)nm(n),n.blockedOn===null&&$n.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],c=n[a+1],m=u[ot]||null;if(typeof c=="function")m||lm(n);else if(m){var b=null;if(c&&c.hasAttribute("formAction")){if(u=c,m=c[ot]||null)b=m.formAction;else if(zc(u)!==null)continue}else b=m.action;typeof b=="function"?n[a+1]=b:(n.splice(a,3),a-=3),lm(n)}}}function im(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return u=m})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=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,u=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),u!==null&&(u(),u=null)}}}function Uc(e){this._internalRoot=e}Zr.prototype.render=Uc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Ct();Qg(n,a,e,t,null,null)},Zr.prototype.unmount=Uc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qg(e.current,2,null,e,null,null),wr(),t[Ta]=null}};function Zr(e){this._internalRoot=e}Zr.prototype.unstable_scheduleHydration=function(e){if(e){var t=mf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$n.length&&t!==0&&t<$n[n].priority;n++);$n.splice(n,0,e),n===0&&nm(e)}};var rm=r.version;if(rm!=="19.2.4")throw Error(s(527,rm,"19.2.4"));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var O0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:S,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fr.isDisabled&&Fr.supportsFiber)try{wl=Fr.inject(O0),xt=Fr}catch{}}return bi.createRoot=function(e,t){if(!o(e))throw Error(s(299));var n=!1,a="",u=hh,c=gh,m=mh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=$g(e,1,!1,null,null,n,a,null,u,c,m,im),e[Ta]=t.current,bc(e),new Uc(t)},bi.hydrateRoot=function(e,t,n){if(!o(e))throw Error(s(299));var a=!1,u="",c=hh,m=gh,b=mh,N=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(N=n.formState)),t=$g(e,1,!0,t,n??null,a,u,N,c,m,b,im),t.context=Kg(null),n=t.current,a=Ct(),a=_u(a),u=Mn(a),u.callback=null,Dn(n,u,a),n=a,t.current.lanes=n,_l(t,n),tn(t),e[Ta]=t.current,bc(e),new Zr(t)},bi.version="19.2.4",bi}var pm;function G0(){if(pm)return Hc.exports;pm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),Hc.exports=H0(),Hc.exports}var Y0=G0(),H=ho();const Vr=R0(H),ym=l=>{let r;const i=new Set,s=(y,x)=>{const v=typeof y=="function"?y(r):y;if(!Object.is(v,r)){const w=r;r=x??(typeof v!="object"||v===null)?v:Object.assign({},r,v),i.forEach(A=>A(r,w))}},o=()=>r,p={setState:s,getState:o,getInitialState:()=>g,subscribe:y=>(i.add(y),()=>i.delete(y))},g=r=l(s,o,p);return p},q0=(l=>l?ym(l):ym),I0=l=>l;function X0(l,r=I0){const i=Vr.useSyncExternalStore(l.subscribe,Vr.useCallback(()=>r(l.getState()),[l,r]),Vr.useCallback(()=>r(l.getInitialState()),[l,r]));return Vr.useDebugValue(i),i}const bm=l=>{const r=q0(l),i=s=>X0(r,s);return Object.assign(i,r),i},Z0=(l=>l?bm(l):bm);function jt(l){return l.stage?`${l.stage}:${l.path}`:l.path}function Xc(l){return l.startsWith("staged:")?l.slice(7):l.startsWith("unstaged:")?l.slice(9):l}const Zc=["unreviewed","reviewed","approved","needs_changes"],bt=Z0((l,r)=>({reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,connectionStatus:"connecting",viewMode:"unified",fileStatuses:{},comments:[],activeCommentKey:null,draftComment:null,theme:localStorage.getItem("diffprism-theme")??"dark",isWatchMode:!1,watchSubmitted:!1,hasUnreviewedChanges:!0,focusedHunkIndex:null,hunkCount:0,compareRef:null,annotations:[],showHotkeyGuide:!1,showWorkflowTips:!1,isServerMode:!1,sessions:[],activeSessionId:null,initReview:i=>{const s=i.diffSet.files.length>0?jt(i.diffSet.files[0]):null,o={};for(const f of i.diffSet.files)o[jt(f)]="unreviewed";l({reviewId:i.reviewId,diffSet:i.diffSet,rawDiff:i.rawDiff,briefing:i.briefing,metadata:i.metadata,selectedFile:s,fileStatuses:o,comments:[],annotations:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,isWatchMode:i.watchMode??!1,watchSubmitted:!1,hasUnreviewedChanges:!0,activeSessionId:i.reviewId})},selectFile:i=>{l({selectedFile:i,focusedHunkIndex:null,hunkCount:0})},setConnectionStatus:i=>{l({connectionStatus:i})},setViewMode:i=>{l({viewMode:i})},setFileStatus:(i,s)=>{l(o=>({fileStatuses:{...o.fileStatuses,[i]:s}}))},cycleFileStatus:i=>{const s=r().fileStatuses[i]??"unreviewed",f=(Zc.indexOf(s)+1)%Zc.length;l(h=>({fileStatuses:{...h.fileStatuses,[i]:Zc[f]}}))},addComment:i=>{l(s=>({comments:[...s.comments,i]}))},updateComment:(i,s)=>{l(o=>({comments:o.comments.map((f,h)=>h===i?s:f)}))},deleteComment:i=>{l(s=>({comments:s.comments.filter((o,f)=>f!==i)}))},setActiveCommentKey:i=>{l({activeCommentKey:i}),i===null&&l({draftComment:null})},setDraftComment:i=>{l({draftComment:i})},saveDraftComment:()=>{const{draftComment:i}=r();i&&i.body.trim()&&l(s=>({comments:[...s.comments,{file:i.file,line:i.line,body:i.body.trim(),type:i.type}],draftComment:null,activeCommentKey:null}))},toggleHotkeyGuide:()=>{l(i=>({showHotkeyGuide:!i.showHotkeyGuide}))},toggleWorkflowTips:()=>{l(i=>({showWorkflowTips:!i.showWorkflowTips}))},toggleTheme:()=>{const i=r().theme==="dark"?"light":"dark";localStorage.setItem("diffprism-theme",i),l({theme:i})},updateDiff:i=>{const s=r(),{changedFiles:o}=i,f={};for(const p of i.diffSet.files){const g=jt(p);o.includes(g)?f[g]="unreviewed":f[g]=s.fileStatuses[g]??"unreviewed"}let{selectedFile:h}=s;h&&!i.diffSet.files.some(p=>jt(p)===h)&&(h=i.diffSet.files.length>0?jt(i.diffSet.files[0]):null),l({diffSet:i.diffSet,rawDiff:i.rawDiff,briefing:i.briefing,fileStatuses:f,selectedFile:h,focusedHunkIndex:null,hunkCount:0,hasUnreviewedChanges:!0})},updateContext:i=>{const s=r();s.metadata&&l({metadata:{...s.metadata,...i.reasoning!==void 0&&{reasoning:i.reasoning},...i.title!==void 0&&{title:i.title},...i.description!==void 0&&{description:i.description}}})},setWatchSubmitted:i=>{l({watchSubmitted:i,...i&&{hasUnreviewedChanges:!1}})},setServerMode:i=>{l({isServerMode:i})},setSessions:i=>{l({sessions:i})},addSession:i=>{l(s=>s.sessions.some(o=>o.id===i.id)?s:{sessions:[...s.sessions,i]})},updateSession:i=>{l(s=>{const o=s.sessions.findIndex(h=>h.id===i.id);if(o===-1)return s;const f=[...s.sessions];return f[o]=i,{sessions:f}})},removeSession:i=>{l(s=>{const o=s.sessions.filter(f=>f.id!==i);return s.activeSessionId===i?{sessions:o,reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,fileStatuses:{},comments:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,activeSessionId:null,watchSubmitted:!1,hasUnreviewedChanges:!0}:{sessions:o}})},navigateHunk:i=>{const{focusedHunkIndex:s,hunkCount:o}=r();o!==0&&l(s===null?{focusedHunkIndex:i==="next"?0:o-1}:i==="next"?{focusedHunkIndex:Math.min(s+1,o-1)}:{focusedHunkIndex:Math.max(s-1,0)})},setHunkCount:i=>{l({hunkCount:i,focusedHunkIndex:null})},setFocusedHunkIndex:i=>{l({focusedHunkIndex:i})},setCompareRef:i=>{l({compareRef:i})},addAnnotation:i=>{l(s=>{const o={annotations:[...s.annotations,i]};if(i.type==="warning"&&i.sessionId){const f=s.sessions.findIndex(h=>h.id===i.sessionId);if(f!==-1){const h=[...s.sessions];h[f]={...h[f],needsAttention:!0},o.sessions=h}}return o})},dismissAnnotation:i=>{l(h=>({annotations:h.annotations.map(p=>p.id===i?{...p,dismissed:!0}:p)}));const o=new URLSearchParams(window.location.search).get("httpPort"),f=r().reviewId;o&&f&&fetch(`http://localhost:${o}/api/reviews/${f}/annotations/${i}/dismiss`,{method:"POST"}).catch(()=>{})},clearSessionAttention:i=>{l(s=>{const o=s.sessions.findIndex(h=>h.id===i);if(o===-1)return s;const f=[...s.sessions];return f[o]={...f[o],needsAttention:!1},{sessions:f}})},selectSession:i=>{l({activeSessionId:i})},clearReview:()=>{l({reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,fileStatuses:{},comments:[],annotations:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,activeSessionId:null,watchSubmitted:!1,hasUnreviewedChanges:!0})}}));function F0(l){const r=H.useRef(null),i=H.useRef(l==null?void 0:l.onSessionAdded);i.current=l==null?void 0:l.onSessionAdded;const s=H.useRef(l==null?void 0:l.onSessionUpdated);s.current=l==null?void 0:l.onSessionUpdated;const o=H.useRef(l==null?void 0:l.onDiffUpdated);o.current=l==null?void 0:l.onDiffUpdated;const f=H.useRef(l==null?void 0:l.onAnnotationAdded);f.current=l==null?void 0:l.onAnnotationAdded;const{connectionStatus:h,setConnectionStatus:p,initReview:g,updateDiff:y,updateContext:x,setServerMode:v,setSessions:w,addSession:A,updateSession:_,removeSession:O,addAnnotation:R,dismissAnnotation:k}=bt();H.useEffect(()=>{const F=new URLSearchParams(window.location.search),V=F.get("wsPort"),X=F.get("serverMode")==="true",ee=F.get("sessionId");if(!V){console.warn("No wsPort query parameter found"),p("disconnected");return}X&&v(!0);const te=ee?`ws://localhost:${V}?sessionId=${ee}`:`ws://localhost:${V}`,ae=new WebSocket(te);return r.current=ae,ae.addEventListener("open",()=>{p("connected")}),ae.addEventListener("message",le=>{var ne,P,K,Q;try{const S=JSON.parse(le.data);if(S.type==="review:init")g(S.payload);else if(S.type==="diff:update"){y(S.payload);const L=S.payload;(ne=o.current)==null||ne.call(o,L.diffSet.files.length)}else S.type==="diff:error"?console.error("Diff error:",S.payload.error):S.type==="context:update"?x(S.payload):S.type==="session:list"?w(S.payload):S.type==="session:added"?(A(S.payload),window.focus(),(P=i.current)==null||P.call(i,S.payload)):S.type==="session:updated"?(_(S.payload),(K=s.current)==null||K.call(s,S.payload)):S.type==="session:removed"?O(S.payload.sessionId):S.type==="annotation:added"?(R(S.payload),(Q=f.current)==null||Q.call(f,S.payload)):S.type==="annotation:dismissed"&&k(S.payload.annotationId)}catch(S){console.error("Failed to parse WebSocket message:",S)}}),ae.addEventListener("close",()=>{p("disconnected")}),ae.addEventListener("error",()=>{p("disconnected")}),()=>{ae.close(),r.current=null}},[p,g,y,x,v,w,A,_,O,R,k]);const Y=H.useCallback(F=>{const V=r.current;if(!V||V.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const X={type:"review:submit",payload:F};V.send(JSON.stringify(X))},[]),T=H.useCallback(F=>{const V=r.current;if(!V||V.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const X={type:"session:select",payload:{sessionId:F}};V.send(JSON.stringify(X))},[]),Z=H.useCallback(F=>{const V=r.current;if(!V||V.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const X={type:"session:close",payload:{sessionId:F}};V.send(JSON.stringify(X))},[]);return{sendResult:Y,selectSession:T,closeSession:Z,connectionStatus:h}}const hp="diffprism-notifications";function V0(){try{return localStorage.getItem(hp)!=="disabled"}catch{return!0}}function vm(l){try{localStorage.setItem(hp,l?"enabled":"disabled")}catch{}}function $0(l){const r=H.useRef(l==null?void 0:l.onSessionSelect);H.useEffect(()=>{r.current=l==null?void 0:l.onSessionSelect},[l==null?void 0:l.onSessionSelect]);const i=typeof globalThis.Notification<"u",[s,o]=H.useState(()=>i?Notification.permission:"denied"),[f,h]=H.useState(V0),p=H.useCallback(async()=>{if(!i)return"denied";const O=await Notification.requestPermission();return o(O),O},[i]);H.useEffect(()=>{if(!i||!f||Notification.permission!=="default")return;const _=()=>{document.removeEventListener("click",_,!0),p()};return document.addEventListener("click",_,!0),()=>document.removeEventListener("click",_,!0)},[i,f,p]);const g=H.useCallback(async()=>{if(!i||s==="denied")return;if(s==="default"){await p()==="granted"&&(h(!0),vm(!0));return}const _=!f;h(_),vm(_)},[i,s,f,p]),y=H.useCallback(async(_,O,R,k)=>{if(!i||document.hasFocus()||!f)return;let Y=s;if(Y==="default"&&(Y=await p()),Y!=="granted")return;const T=new Notification(_,{body:O,icon:"/favicon.svg",tag:R});T.onclick=()=>{window.focus(),k==null||k(),T.close()}},[i,f,s,p]),x=H.useCallback(async _=>{const O=_.title||"New Review Ready",R=[];_.branch&&R.push(_.branch),R.push(`${_.fileCount} file${_.fileCount!==1?"s":""}, +${_.additions} -${_.deletions}`),await y(O,R.join(" · "),_.id,()=>{var k;(k=r.current)==null||k.call(r,_.id)})},[y]),v=H.useCallback(async _=>{_.status==="submitted"&&await y("Review Submitted",_.title||`${_.fileCount} files reviewed`,`submitted-${_.id}`,()=>{var O;(O=r.current)==null||O.call(r,_.id)})},[y]),w=H.useCallback(async _=>{await y("Diff Updated",`${_} file${_!==1?"s":""} changed`,"diff-update")},[y]),A=H.useCallback(async _=>{await y(`Annotation from ${_.source.agent}`,`${_.file}:${_.line} — ${_.body.slice(0,100)}`,`annotation-${_.id}`)},[y]);return{permission:s,enabled:f,toggle:g,notifyNewSession:x,notifySessionUpdated:v,notifyDiffUpdated:w,notifyAnnotationAdded:A}}/**
50
- * @license lucide-react v0.469.0 - ISC
51
- *
52
- * This source code is licensed under the ISC license.
53
- * See the LICENSE file in the root directory of this source tree.
54
- */const K0=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gp=(...l)=>l.filter((r,i,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===i).join(" ").trim();/**
55
- * @license lucide-react v0.469.0 - ISC
56
- *
57
- * This source code is licensed under the ISC license.
58
- * See the LICENSE file in the root directory of this source tree.
59
- */var Q0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
60
- * @license lucide-react v0.469.0 - ISC
61
- *
62
- * This source code is licensed under the ISC license.
63
- * See the LICENSE file in the root directory of this source tree.
64
- */const J0=H.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:f,iconNode:h,...p},g)=>H.createElement("svg",{ref:g,...Q0,width:r,height:r,stroke:l,strokeWidth:s?Number(i)*24/Number(r):i,className:gp("lucide",o),...p},[...h.map(([y,x])=>H.createElement(y,x)),...Array.isArray(f)?f:[f]]));/**
65
- * @license lucide-react v0.469.0 - ISC
66
- *
67
- * This source code is licensed under the ISC license.
68
- * See the LICENSE file in the root directory of this source tree.
69
- */const he=(l,r)=>{const i=H.forwardRef(({className:s,...o},f)=>H.createElement(J0,{ref:f,iconNode:r,className:gp(`lucide-${K0(l)}`,s),...o}));return i.displayName=`${l}`,i};/**
70
- * @license lucide-react v0.469.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */const W0=he("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
75
- * @license lucide-react v0.469.0 - ISC
76
- *
77
- * This source code is licensed under the ISC license.
78
- * See the LICENSE file in the root directory of this source tree.
79
- */const P0=he("BellOff",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]);/**
80
- * @license lucide-react v0.469.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */const ev=he("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
85
- * @license lucide-react v0.469.0 - ISC
86
- *
87
- * This source code is licensed under the ISC license.
88
- * See the LICENSE file in the root directory of this source tree.
89
- */const mp=he("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
90
- * @license lucide-react v0.469.0 - ISC
91
- *
92
- * This source code is licensed under the ISC license.
93
- * See the LICENSE file in the root directory of this source tree.
94
- */const tv=he("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
95
- * @license lucide-react v0.469.0 - ISC
96
- *
97
- * This source code is licensed under the ISC license.
98
- * See the LICENSE file in the root directory of this source tree.
99
- */const Wc=he("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
100
- * @license lucide-react v0.469.0 - ISC
101
- *
102
- * This source code is licensed under the ISC license.
103
- * See the LICENSE file in the root directory of this source tree.
104
- */const su=he("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
105
- * @license lucide-react v0.469.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */const nv=he("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
110
- * @license lucide-react v0.469.0 - ISC
111
- *
112
- * This source code is licensed under the ISC license.
113
- * See the LICENSE file in the root directory of this source tree.
114
- */const go=he("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
115
- * @license lucide-react v0.469.0 - ISC
116
- *
117
- * This source code is licensed under the ISC license.
118
- * See the LICENSE file in the root directory of this source tree.
119
- */const Sa=he("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
120
- * @license lucide-react v0.469.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */const av=he("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
125
- * @license lucide-react v0.469.0 - ISC
126
- *
127
- * This source code is licensed under the ISC license.
128
- * See the LICENSE file in the root directory of this source tree.
129
- */const mo=he("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
130
- * @license lucide-react v0.469.0 - ISC
131
- *
132
- * This source code is licensed under the ISC license.
133
- * See the LICENSE file in the root directory of this source tree.
134
- */const lv=he("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
135
- * @license lucide-react v0.469.0 - ISC
136
- *
137
- * This source code is licensed under the ISC license.
138
- * See the LICENSE file in the root directory of this source tree.
139
- */const iv=he("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
140
- * @license lucide-react v0.469.0 - ISC
141
- *
142
- * This source code is licensed under the ISC license.
143
- * See the LICENSE file in the root directory of this source tree.
144
- */const rv=he("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
145
- * @license lucide-react v0.469.0 - ISC
146
- *
147
- * This source code is licensed under the ISC license.
148
- * See the LICENSE file in the root directory of this source tree.
149
- */const uv=he("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
150
- * @license lucide-react v0.469.0 - ISC
151
- *
152
- * This source code is licensed under the ISC license.
153
- * See the LICENSE file in the root directory of this source tree.
154
- */const sv=he("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
155
- * @license lucide-react v0.469.0 - ISC
156
- *
157
- * This source code is licensed under the ISC license.
158
- * See the LICENSE file in the root directory of this source tree.
159
- */const cv=he("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
160
- * @license lucide-react v0.469.0 - ISC
161
- *
162
- * This source code is licensed under the ISC license.
163
- * See the LICENSE file in the root directory of this source tree.
164
- */const po=he("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
165
- * @license lucide-react v0.469.0 - ISC
166
- *
167
- * This source code is licensed under the ISC license.
168
- * See the LICENSE file in the root directory of this source tree.
169
- */const bl=he("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
170
- * @license lucide-react v0.469.0 - ISC
171
- *
172
- * This source code is licensed under the ISC license.
173
- * See the LICENSE file in the root directory of this source tree.
174
- */const ov=he("FileMinus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}]]);/**
175
- * @license lucide-react v0.469.0 - ISC
176
- *
177
- * This source code is licensed under the ISC license.
178
- * See the LICENSE file in the root directory of this source tree.
179
- */const fv=he("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]);/**
180
- * @license lucide-react v0.469.0 - ISC
181
- *
182
- * This source code is licensed under the ISC license.
183
- * See the LICENSE file in the root directory of this source tree.
184
- */const dv=he("FilePlus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);/**
185
- * @license lucide-react v0.469.0 - ISC
186
- *
187
- * This source code is licensed under the ISC license.
188
- * See the LICENSE file in the root directory of this source tree.
189
- */const xm=he("FlaskConical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
190
- * @license lucide-react v0.469.0 - ISC
191
- *
192
- * This source code is licensed under the ISC license.
193
- * See the LICENSE file in the root directory of this source tree.
194
- */const va=he("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
195
- * @license lucide-react v0.469.0 - ISC
196
- *
197
- * This source code is licensed under the ISC license.
198
- * See the LICENSE file in the root directory of this source tree.
199
- */const hv=he("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
200
- * @license lucide-react v0.469.0 - ISC
201
- *
202
- * This source code is licensed under the ISC license.
203
- * See the LICENSE file in the root directory of this source tree.
204
- */const Sm=he("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
205
- * @license lucide-react v0.469.0 - ISC
206
- *
207
- * This source code is licensed under the ISC license.
208
- * See the LICENSE file in the root directory of this source tree.
209
- */const Jn=he("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
210
- * @license lucide-react v0.469.0 - ISC
211
- *
212
- * This source code is licensed under the ISC license.
213
- * See the LICENSE file in the root directory of this source tree.
214
- */const Em=he("GitCommitHorizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/**
215
- * @license lucide-react v0.469.0 - ISC
216
- *
217
- * This source code is licensed under the ISC license.
218
- * See the LICENSE file in the root directory of this source tree.
219
- */const yo=he("GitPullRequest",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);/**
220
- * @license lucide-react v0.469.0 - ISC
221
- *
222
- * This source code is licensed under the ISC license.
223
- * See the LICENSE file in the root directory of this source tree.
224
- */const bo=he("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
225
- * @license lucide-react v0.469.0 - ISC
226
- *
227
- * This source code is licensed under the ISC license.
228
- * See the LICENSE file in the root directory of this source tree.
229
- */const Nm=he("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
230
- * @license lucide-react v0.469.0 - ISC
231
- *
232
- * This source code is licensed under the ISC license.
233
- * See the LICENSE file in the root directory of this source tree.
234
- */const Am=he("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
235
- * @license lucide-react v0.469.0 - ISC
236
- *
237
- * This source code is licensed under the ISC license.
238
- * See the LICENSE file in the root directory of this source tree.
239
- */const gv=he("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
240
- * @license lucide-react v0.469.0 - ISC
241
- *
242
- * This source code is licensed under the ISC license.
243
- * See the LICENSE file in the root directory of this source tree.
244
- */const wm=he("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
245
- * @license lucide-react v0.469.0 - ISC
246
- *
247
- * This source code is licensed under the ISC license.
248
- * See the LICENSE file in the root directory of this source tree.
249
- */const mv=he("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
250
- * @license lucide-react v0.469.0 - ISC
251
- *
252
- * This source code is licensed under the ISC license.
253
- * See the LICENSE file in the root directory of this source tree.
254
- */const pp=he("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
255
- * @license lucide-react v0.469.0 - ISC
256
- *
257
- * This source code is licensed under the ISC license.
258
- * See the LICENSE file in the root directory of this source tree.
259
- */const pv=he("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
260
- * @license lucide-react v0.469.0 - ISC
261
- *
262
- * This source code is licensed under the ISC license.
263
- * See the LICENSE file in the root directory of this source tree.
264
- */const yv=he("Rows2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]);/**
265
- * @license lucide-react v0.469.0 - ISC
266
- *
267
- * This source code is licensed under the ISC license.
268
- * See the LICENSE file in the root directory of this source tree.
269
- */const Tm=he("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
270
- * @license lucide-react v0.469.0 - ISC
271
- *
272
- * This source code is licensed under the ISC license.
273
- * See the LICENSE file in the root directory of this source tree.
274
- */const bv=he("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
275
- * @license lucide-react v0.469.0 - ISC
276
- *
277
- * This source code is licensed under the ISC license.
278
- * See the LICENSE file in the root directory of this source tree.
279
- */const $r=he("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
280
- * @license lucide-react v0.469.0 - ISC
281
- *
282
- * This source code is licensed under the ISC license.
283
- * See the LICENSE file in the root directory of this source tree.
284
- */const vv=he("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
285
- * @license lucide-react v0.469.0 - ISC
286
- *
287
- * This source code is licensed under the ISC license.
288
- * See the LICENSE file in the root directory of this source tree.
289
- */const xv=he("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
290
- * @license lucide-react v0.469.0 - ISC
291
- *
292
- * This source code is licensed under the ISC license.
293
- * See the LICENSE file in the root directory of this source tree.
294
- */const Sv=he("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
295
- * @license lucide-react v0.469.0 - ISC
296
- *
297
- * This source code is licensed under the ISC license.
298
- * See the LICENSE file in the root directory of this source tree.
299
- */const Si=he("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
300
- * @license lucide-react v0.469.0 - ISC
301
- *
302
- * This source code is licensed under the ISC license.
303
- * See the LICENSE file in the root directory of this source tree.
304
- */const cu=he("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Ev(){const l=H.useMemo(()=>new URLSearchParams(window.location.search).get("httpPort"),[]),r=l!==null,i=H.useCallback(async o=>{if(!l)return null;try{const f=await fetch(`http://localhost:${l}/api/reviews/${o}/refs`);return f.ok?await f.json():null}catch{return null}},[l]),s=H.useCallback(async(o,f)=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const h=await fetch(`http://localhost:${l}/api/reviews/${o}/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ref:f})});return h.ok?{ok:!0}:{ok:!1,error:(await h.json().catch(()=>({}))).error??"Comparison failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]);return{isAvailable:r,fetchRefs:i,compareAgainst:s}}function Nv(){const[l,r]=H.useState(!1),[i,s]=H.useState(null),[o,f]=H.useState(!1),[h,p]=H.useState(!1),[g,y]=H.useState(null),[x,v]=H.useState(""),[w,A]=H.useState("branches"),_=H.useRef(null),O=H.useRef(null),{activeSessionId:R,compareRef:k,setCompareRef:Y,metadata:T}=bt(),{isAvailable:Z,fetchRefs:F,compareAgainst:V}=Ev(),X=k??"working copy",ee=H.useCallback(async()=>{if(!R)return;r(!0),v(""),y(null),f(!0);const S=await F(R);s(S),f(!1)},[R,F]),te=H.useCallback(async S=>{if(!R)return;p(!0),y(null);const L=await V(R,S);L.ok?(Y(S),r(!1)):y(L.error??"Comparison failed"),p(!1)},[R,V,Y]),ae=H.useCallback(async()=>{if(!R)return;p(!0),y(null);const S=await V(R,"working-copy");S.ok?(Y(null),r(!1)):y(S.error??"Reset failed"),p(!1)},[R,V,Y]);H.useEffect(()=>{if(!l)return;function S(L){_.current&&!_.current.contains(L.target)&&r(!1)}return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[l]),H.useEffect(()=>{if(!l)return;function S(L){L.key==="Escape"&&r(!1)}return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[l]),H.useEffect(()=>{l&&O.current&&O.current.focus()},[l]);const le=!!(T!=null&&T.githubPr);if(!Z||le)return T!=null&&T.currentBranch?d.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs bg-neutral/15 text-neutral border border-neutral/30 font-mono",children:[d.jsx(Jn,{className:"w-3 h-3"}),T.currentBranch]}):null;const ne=x.toLowerCase(),P=(i==null?void 0:i.branches.local.filter(S=>S.toLowerCase().includes(ne)))??[],K=(i==null?void 0:i.branches.remote.filter(S=>S.toLowerCase().includes(ne)))??[],Q=(i==null?void 0:i.commits.filter(S=>S.shortHash.toLowerCase().includes(ne)||S.subject.toLowerCase().includes(ne)||S.author.toLowerCase().includes(ne)))??[];return d.jsxs("div",{className:"relative",ref:_,children:[d.jsxs("button",{onClick:()=>l?r(!1):ee(),disabled:h,className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs bg-neutral/15 text-neutral border border-neutral/30 font-mono hover:bg-neutral/25 transition-colors cursor-pointer disabled:opacity-50",title:"Compare against a different ref",children:[h?d.jsx(Nm,{className:"w-3 h-3 animate-spin"}):d.jsx(Jn,{className:"w-3 h-3"}),d.jsx("span",{className:"max-w-[180px] truncate",children:X}),d.jsx(su,{className:"w-3 h-3"})]}),l&&d.jsxs("div",{className:"absolute top-full mt-1 right-0 z-50 w-80 bg-surface border border-border rounded-lg shadow-lg overflow-hidden",children:[d.jsx("div",{className:"p-2 border-b border-border",children:d.jsx("input",{ref:O,type:"text",value:x,onChange:S=>v(S.target.value),placeholder:"Filter branches or commits...",className:"w-full px-2 py-1.5 text-xs bg-background border border-border rounded text-text-primary placeholder:text-text-secondary focus:outline-none focus:border-accent"})}),d.jsxs("div",{className:"flex border-b border-border",children:[d.jsxs("button",{onClick:()=>A("branches"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors cursor-pointer ${w==="branches"?"text-accent border-b-2 border-accent":"text-text-secondary hover:text-text-primary"}`,children:[d.jsx(Jn,{className:"w-3 h-3 inline mr-1"}),"Branches"]}),d.jsxs("button",{onClick:()=>A("commits"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors cursor-pointer ${w==="commits"?"text-accent border-b-2 border-accent":"text-text-secondary hover:text-text-primary"}`,children:[d.jsx(Em,{className:"w-3 h-3 inline mr-1"}),"Commits"]})]}),g&&d.jsxs("div",{className:"px-3 py-2 flex items-center gap-2 bg-danger/10 border-b border-danger/20 text-danger text-xs",children:[d.jsx(Sa,{className:"w-3.5 h-3.5 flex-shrink-0"}),d.jsx("span",{children:g})]}),d.jsx("div",{className:"max-h-64 overflow-y-auto",children:o?d.jsxs("div",{className:"flex items-center justify-center py-6",children:[d.jsx(Nm,{className:"w-4 h-4 animate-spin text-text-secondary"}),d.jsx("span",{className:"ml-2 text-xs text-text-secondary",children:"Loading refs..."})]}):w==="branches"?d.jsxs("div",{children:[P.length>0&&d.jsxs("div",{children:[d.jsx("div",{className:"px-3 py-1.5 text-[10px] font-medium uppercase tracking-wide text-text-secondary bg-background/50",children:"Local"}),P.map(S=>d.jsxs("button",{onClick:()=>te(S),className:`w-full px-3 py-1.5 text-xs text-left flex items-center gap-2 hover:bg-text-primary/5 transition-colors cursor-pointer ${k===S?"bg-accent/10 text-accent":"text-text-primary"}`,children:[d.jsx(Jn,{className:"w-3 h-3 flex-shrink-0 text-text-secondary"}),d.jsx("span",{className:"font-mono truncate",children:S}),S===(i==null?void 0:i.currentBranch)&&d.jsx("span",{className:"ml-auto text-[10px] text-text-secondary",children:"current"})]},S))]}),K.length>0&&d.jsxs("div",{children:[d.jsx("div",{className:"px-3 py-1.5 text-[10px] font-medium uppercase tracking-wide text-text-secondary bg-background/50",children:"Remote"}),K.map(S=>d.jsxs("button",{onClick:()=>te(S),className:`w-full px-3 py-1.5 text-xs text-left flex items-center gap-2 hover:bg-text-primary/5 transition-colors cursor-pointer ${k===S?"bg-accent/10 text-accent":"text-text-primary"}`,children:[d.jsx(Jn,{className:"w-3 h-3 flex-shrink-0 text-text-secondary"}),d.jsx("span",{className:"font-mono truncate",children:S})]},S))]}),P.length===0&&K.length===0&&d.jsx("div",{className:"px-3 py-4 text-xs text-text-secondary text-center",children:"No branches found"})]}):d.jsx("div",{children:Q.length>0?Q.map(S=>d.jsxs("button",{onClick:()=>te(S.hash),className:`w-full px-3 py-1.5 text-xs text-left flex items-start gap-2 hover:bg-text-primary/5 transition-colors cursor-pointer ${k===S.hash?"bg-accent/10 text-accent":"text-text-primary"}`,children:[d.jsx(Em,{className:"w-3 h-3 flex-shrink-0 mt-0.5 text-text-secondary"}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"font-mono text-accent",children:S.shortHash}),d.jsx("span",{className:"truncate",children:S.subject})]}),d.jsxs("div",{className:"text-[10px] text-text-secondary mt-0.5",children:[S.author," · ",Av(S.date)]})]})]},S.hash)):d.jsx("div",{className:"px-3 py-4 text-xs text-text-secondary text-center",children:"No commits found"})})}),k&&d.jsx("div",{className:"border-t border-border p-2",children:d.jsxs("button",{onClick:ae,className:"w-full px-2 py-1.5 text-xs text-text-secondary hover:text-text-primary flex items-center justify-center gap-1.5 rounded hover:bg-text-primary/5 transition-colors cursor-pointer",children:[d.jsx(pv,{className:"w-3 h-3"}),"Reset to working copy"]})})]})]})}function Av(l){const r=new Date(l),s=new Date().getTime()-r.getTime(),o=Math.floor(s/1e3),f=Math.floor(o/60),h=Math.floor(f/60),p=Math.floor(h/24);return o<60?"just now":f<60?`${f}m ago`:h<24?`${h}h ago`:p<30?`${p}d ago`:r.toLocaleDateString()}const _m={pending:"bg-warning/20 text-warning border border-warning/30",in_review:"bg-accent/20 text-accent border border-accent/30",changes_requested:"bg-danger/20 text-danger border border-danger/30",approved:"bg-success/20 text-success border border-success/30",approved_with_comments:"bg-success/20 text-success border border-success/30",dismissed:"bg-neutral/20 text-neutral border border-neutral/30",submitted:"bg-success/20 text-success border border-success/30"},wv={must_fix:"bg-danger/15 text-danger border-danger/30",suggestion:"bg-warning/15 text-warning border-warning/30",question:"bg-info/15 text-info border-info/30",nitpick:"bg-neutral/15 text-neutral border-neutral/30"},Tv={added:"bg-success/15 text-success border-success/30",modified:"bg-warning/15 text-warning border-warning/30",deleted:"bg-danger/15 text-danger border-danger/30",renamed:"bg-accent/15 text-accent border-accent/30"},_v={added:"text-success",modified:"text-warning",deleted:"text-danger",renamed:"text-accent"},Cv={reviewed:"text-info",approved:"text-success",needs_changes:"text-warning"},iu={security:"text-danger",performance:"text-perf",convention:"text-info",correctness:"text-warning",complexity:"text-accent","test-coverage":"text-info",documentation:"text-neutral",other:"text-neutral"},Cm={security:"bg-danger/15 text-danger border-danger/30",performance:"bg-perf/15 text-perf border-perf/30",convention:"bg-info/15 text-info border-info/30",correctness:"bg-warning/15 text-warning border-warning/30",complexity:"bg-accent/15 text-accent border-accent/30","test-coverage":"bg-info/15 text-info border-info/30",documentation:"bg-neutral/15 text-neutral border-neutral/30",other:"bg-neutral/15 text-neutral border-neutral/30"},Kr={approve:"bg-success/15 text-success border border-success/30 hover:bg-success/25 hover:border-success/50",reject:"bg-danger/15 text-danger border border-danger/30 hover:bg-danger/25 hover:border-danger/50",comment:"bg-info/15 text-info border border-info/30 hover:bg-info/25 hover:border-info/50",dismiss:"bg-neutral/15 text-neutral border border-neutral/30 hover:bg-neutral/25 hover:border-neutral/50"},Qn={security:"bg-danger/15 text-danger border border-danger/30",breaking:"bg-danger/15 text-danger border border-danger/30",modules:"bg-info/15 text-info border border-info/30",deps:"bg-warning/15 text-warning border border-warning/30",complexity:"bg-perf/15 text-perf border border-perf/30",coverage:"bg-warning/15 text-warning border border-warning/30",patterns:"bg-accent/15 text-accent border border-accent/30"},ol={security:"text-danger",breaking:"text-danger",deps:"text-warning",complexity:"text-perf",coverage:"text-warning",patterns:"text-accent"},Ov={staged:"bg-success/20 text-success border-success/30",unstaged:"bg-warning/20 text-warning border-warning/30"},jv={critical:"bg-danger/15 text-danger border border-danger/30",warning:"bg-warning/15 text-warning border border-warning/30"},Rv={critical:"text-danger",warning:"text-warning"};function kv(){const[l,r]=H.useState(!1),{briefing:i,metadata:s,isServerMode:o,clearReview:f}=bt();if(!i)return null;const{impact:h,verification:p,complexity:g,testCoverage:y,patterns:x}=i,v=h.breakingChanges.length>0,w=h.newDependencies.length>0,A=h.affectedModules.length,_=(g==null?void 0:g.filter(T=>T.score>=5))??[],O=(y==null?void 0:y.filter(T=>T.testFile===null))??[],R=(x==null?void 0:x.filter(T=>T.severity))??[],k=(x==null?void 0:x.filter(T=>!T.severity))??[],Y=k.length;return d.jsxs("div",{className:"bg-surface border-b border-border flex-shrink-0",children:[d.jsxs("div",{className:"flex items-center",children:[o&&d.jsx("button",{onClick:f,className:"px-3 py-2.5 text-text-secondary hover:text-text-primary transition-colors cursor-pointer border-r border-border",title:"Back to sessions",children:d.jsx(W0,{className:"w-4 h-4"})}),d.jsxs("button",{onClick:()=>r(!l),className:"flex-1 px-4 py-2.5 flex items-center gap-3 cursor-pointer hover:bg-text-primary/5 transition-colors",children:[d.jsx("span",{className:"text-text-primary text-sm flex-1 text-left truncate",children:i.summary}),d.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[R.length>0&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-semibold ${Qn.security}`,children:[d.jsx($r,{className:"w-3 h-3"}),R.length," security flag",R.length!==1?"s":""]}),A>0&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Qn.modules}`,children:[d.jsx(va,{className:"w-3 h-3"}),A," module",A!==1?"s":""]}),v&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Qn.breaking}`,children:[d.jsx(Si,{className:"w-3 h-3"}),"breaking"]}),w&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Qn.deps}`,children:[d.jsx(wm,{className:"w-3 h-3"}),h.newDependencies.length," new dep",h.newDependencies.length!==1?"s":""]}),_.length>0&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Qn.complexity}`,children:[d.jsx(Sm,{className:"w-3 h-3"}),_.length," complex"]}),O.length>0&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Qn.coverage}`,children:[d.jsx($r,{className:"w-3 h-3"}),O.length," untested"]}),Y>0&&d.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Qn.patterns}`,children:[d.jsx(Tm,{className:"w-3 h-3"}),Y," pattern",Y!==1?"s":""]}),l?d.jsx(go,{className:"w-4 h-4 text-text-secondary"}):d.jsx(su,{className:"w-4 h-4 text-text-secondary"})]})]}),d.jsx("div",{className:"px-3 py-2.5 border-l border-border flex-shrink-0",children:d.jsx(Nv,{})})]}),(s==null?void 0:s.githubPr)&&d.jsxs("div",{className:"px-4 py-2 border-t border-border/50 flex items-center gap-3 text-xs",children:[d.jsx(yo,{className:"w-3.5 h-3.5 text-accent flex-shrink-0"}),d.jsxs("span",{className:"text-text-primary font-medium truncate",children:[s.githubPr.owner,"/",s.githubPr.repo,"#",s.githubPr.number]}),d.jsxs("span",{className:"text-text-secondary",children:["by ",s.githubPr.author]}),d.jsxs("span",{className:"text-text-secondary font-mono",children:[s.githubPr.baseBranch," ← ",s.githubPr.headBranch]}),d.jsxs("a",{href:s.githubPr.url,target:"_blank",rel:"noopener noreferrer",className:"ml-auto flex items-center gap-1 text-accent hover:text-accent/80 transition-colors flex-shrink-0",children:["View on GitHub",d.jsx(sv,{className:"w-3 h-3"})]})]}),l&&d.jsxs("div",{className:"px-4 pb-3 grid grid-cols-2 gap-x-6 gap-y-3 border-t border-border/50 pt-3",children:[R.length>0&&d.jsxs("div",{className:"col-span-2",children:[d.jsxs("h4",{className:`${ol.security} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[d.jsx($r,{className:"w-3.5 h-3.5"}),"Security Flags"]}),d.jsx("ul",{className:"space-y-0.5",children:R.map((T,Z)=>d.jsxs("li",{className:"text-xs",children:[d.jsx("span",{className:`inline-block px-1 py-0.5 rounded text-[10px] font-medium uppercase mr-1.5 ${jv[T.severity??"warning"]}`,children:T.pattern.replace("_"," ")}),d.jsx("span",{className:`text-[10px] font-medium uppercase mr-1.5 ${Rv[T.severity??"warning"]}`,children:T.severity}),d.jsxs("span",{className:"font-mono text-text-secondary",children:[T.file,":",T.line]}),d.jsxs("span",{className:"text-text-secondary ml-1 truncate",children:["— ",T.content]})]},`${T.file}:${T.line}:${Z}`))})]}),h.affectedModules.length>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[d.jsx(va,{className:"w-3.5 h-3.5"}),"Affected Modules"]}),d.jsx("ul",{className:"space-y-0.5",children:h.affectedModules.map(T=>d.jsx("li",{className:"text-text-primary text-xs font-mono",children:T},T))})]}),h.affectedTests.length>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[d.jsx(xm,{className:"w-3.5 h-3.5"}),"Affected Tests"]}),d.jsx("ul",{className:"space-y-0.5",children:h.affectedTests.map(T=>d.jsx("li",{className:"text-text-primary text-xs font-mono truncate",children:T},T))})]}),v&&d.jsxs("div",{children:[d.jsxs("h4",{className:`${ol.breaking} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[d.jsx(Si,{className:"w-3.5 h-3.5"}),"Breaking Changes"]}),d.jsx("ul",{className:"space-y-0.5",children:h.breakingChanges.map(T=>d.jsx("li",{className:"text-danger text-xs",children:T},T))})]}),w&&d.jsxs("div",{children:[d.jsxs("h4",{className:`${ol.deps} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[d.jsx(wm,{className:"w-3.5 h-3.5"}),"New Dependencies"]}),d.jsx("ul",{className:"space-y-0.5",children:h.newDependencies.map(T=>d.jsx("li",{className:"text-text-primary text-xs font-mono",children:T},T))})]}),_.length>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:`${ol.complexity} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[d.jsx(Sm,{className:"w-3.5 h-3.5"}),"High Complexity"]}),d.jsx("ul",{className:"space-y-0.5",children:_.map(T=>d.jsxs("li",{className:"text-text-primary text-xs",children:[d.jsx("span",{className:"font-mono",children:T.path}),d.jsxs("span",{className:"text-perf ml-1",children:["(",T.score,"/10)"]}),T.factors.length>0&&d.jsxs("span",{className:"text-text-secondary ml-1",children:["— ",T.factors.join(", ")]})]},T.path))})]}),O.length>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:`${ol.coverage} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[d.jsx($r,{className:"w-3.5 h-3.5"}),"Missing Test Changes"]}),d.jsx("ul",{className:"space-y-0.5",children:O.map(T=>d.jsx("li",{className:"text-text-primary text-xs font-mono",children:T.sourceFile},T.sourceFile))})]}),k.length>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:`${ol.patterns} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[d.jsx(Tm,{className:"w-3.5 h-3.5"}),"Pattern Flags"]}),d.jsx("ul",{className:"space-y-0.5",children:k.map((T,Z)=>d.jsxs("li",{className:"text-xs",children:[d.jsx("span",{className:`inline-block px-1 py-0.5 rounded text-[10px] font-medium uppercase mr-1.5 ${Qn.patterns}`,children:T.pattern}),d.jsxs("span",{className:"font-mono text-text-secondary",children:[T.file,T.line>0?`:${T.line}`:""]}),T.line>0&&d.jsxs("span",{className:"text-text-secondary ml-1 truncate",children:["— ",T.content]})]},`${T.file}:${T.line}:${Z}`))})]}),d.jsxs("div",{children:[d.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[d.jsx(xm,{className:"w-3.5 h-3.5"}),"Verification"]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Fc,{label:"Tests",value:p.testsPass}),d.jsx(Fc,{label:"Types",value:p.typeCheck}),d.jsx(Fc,{label:"Lint",value:p.lintClean})]})]})]})]})}function Fc({label:l,value:r}){return r===null?d.jsxs("span",{className:"text-text-secondary text-xs",children:[l,": ",d.jsx("span",{className:"font-mono",children:"—"})]}):d.jsxs("span",{className:`text-xs ${r?"text-success":"text-danger"}`,children:[l,": ",d.jsx("span",{className:"font-mono",children:r?"pass":"fail"})]})}function Mv(){const[l,r]=H.useState(!1),{metadata:i}=bt();return i!=null&&i.reasoning?d.jsxs("div",{className:"bg-surface border-b border-border flex-shrink-0",children:[d.jsxs("button",{onClick:()=>r(!l),className:"w-full px-4 py-2.5 flex items-center gap-3 cursor-pointer hover:bg-text-primary/5 transition-colors",children:[d.jsx(tv,{className:"w-4 h-4 text-accent flex-shrink-0"}),d.jsx("span",{className:"text-text-primary text-sm flex-1 text-left truncate",children:"Agent Reasoning"}),l?d.jsx(go,{className:"w-4 h-4 text-text-secondary"}):d.jsx(su,{className:"w-4 h-4 text-text-secondary"})]}),l&&d.jsx("div",{className:"px-4 pb-3 border-t border-border/50 pt-3",children:d.jsx("p",{className:"text-text-secondary text-sm whitespace-pre-wrap",children:i.reasoning})})]}):null}const Dv={added:"A",modified:"M",deleted:"D",renamed:"R"};function zv(l){return{label:Dv[l],className:Tv[l]}}const Lv={added:dv,deleted:ov,modified:fv,renamed:bl};function Uv(l){const r=Lv[l]??bl;return d.jsx(r,{className:`w-4 h-4 flex-shrink-0 ${_v[l]}`})}const Bv={reviewed:po,approved:av,needs_changes:Sa};function Hv(l){const r=Bv[l];return r?d.jsx(r,{className:`w-3.5 h-3.5 flex-shrink-0 ${Cv[l]}`}):null}function Gv(l){const r=l.split("/");return r[r.length-1]}function Yv(l){const r=l.split("/");return r.length<=1?"":r.slice(0,-1).join("/")}function qv({onSubmit:l}){const{diffSet:r,selectedFile:i,selectFile:s,fileStatuses:o,cycleFileStatus:f,toggleHotkeyGuide:h,comments:p,navigateHunk:g,setFileStatus:y,briefing:x}=bt(),[v,w]=H.useState({}),[A,_]=H.useState(!1),O=H.useRef(null),R=H.useMemo(()=>r?r.files.some(K=>K.stage!==void 0):!1,[r]),{stagedFiles:k,unstagedFiles:Y}=H.useMemo(()=>r?R?{stagedFiles:r.files.filter(K=>K.stage==="staged"),unstagedFiles:r.files.filter(K=>K.stage==="unstaged")}:{stagedFiles:[],unstagedFiles:[]}:{stagedFiles:[],unstagedFiles:[]},[r,R]),T=H.useMemo(()=>{if(!r||!(x!=null&&x.triage))return null;const{critical:K,notable:Q,mechanical:S}=x.triage;if(!(K.length>0||S.length>0))return null;const $=new Set(K.map(J=>J.file)),se=new Set(S.map(J=>J.file)),re=[],E=[],B=[];for(const J of r.files)$.has(J.path)?re.push(J):se.has(J.path)?B.push(J):E.push(J);return{criticalFiles:re,notableFiles:E,mechanicalFiles:B}},[r,x]),Z=T!==null&&!R,F=H.useMemo(()=>{if(!r)return[];if(Z&&T){const Q=[];return v["triage-critical"]||Q.push(...T.criticalFiles),v["triage-notable"]||Q.push(...T.notableFiles),v["triage-mechanical"]||Q.push(...T.mechanicalFiles),Q}if(!R)return r.files;const K=[];return v.staged||K.push(...k),v.unstaged||K.push(...Y),K},[r,R,k,Y,v,Z,T]),V=H.useCallback(K=>{if(F.length===0)return;const Q=F.findIndex(L=>jt(L)===i);let S;Q===-1?S=0:K==="up"?S=Q>0?Q-1:Q:S=Q<F.length-1?Q+1:Q,s(jt(F[S]))},[F,i,s]);H.useEffect(()=>{function K(Q){const S=Q.target.tagName;S==="INPUT"||S==="TEXTAREA"||(Q.key==="ArrowUp"||Q.key==="k"?(Q.preventDefault(),V("up")):Q.key==="ArrowDown"||Q.key==="j"?(Q.preventDefault(),V("down")):Q.key==="s"?(Q.preventDefault(),i&&f(i)):Q.key==="?"?(Q.preventDefault(),h()):Q.key==="n"?(Q.preventDefault(),g("next")):Q.key==="p"?(Q.preventDefault(),g("prev")):Q.key==="c"&&(Q.preventDefault(),document.dispatchEvent(new CustomEvent("diffprism:open-comment"))))}return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[V,i,f,h,g]),H.useEffect(()=>{if(!A)return;function K(Q){O.current&&!O.current.contains(Q.target)&&_(!1)}return document.addEventListener("mousedown",K),()=>document.removeEventListener("mousedown",K)},[A]);const X=H.useCallback(K=>{const Q=Object.values(o).some(S=>S!=="unreviewed");l({decision:"approved",comments:p,fileStatuses:Q?o:void 0,postReviewAction:K}),_(!1)},[o,p,l]),ee=H.useCallback(()=>{if(T)for(const K of T.mechanicalFiles)y(jt(K),"approved")},[T,y]);if(!r)return null;const te=r.files.reduce((K,Q)=>K+Q.additions,0),ae=r.files.reduce((K,Q)=>K+Q.deletions,0),le=K=>{w(Q=>({...Q,[K]:!Q[K]}))},ne=K=>{const Q=jt(K),S=Q===i,L=zv(K.status),$=Yv(K.path);return d.jsxs("button",{onClick:()=>s(Q),className:`
305
- w-full text-left px-3 py-2 flex items-center gap-2
306
- transition-colors duration-100 cursor-pointer group
307
- ${S?"bg-accent/10 border-l-2 border-accent":"border-l-2 border-transparent hover:bg-text-primary/5"}
308
- `,children:[Uv(K.status),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("div",{className:`text-sm truncate ${S?"text-text-primary":"text-text-secondary"} group-hover:text-text-primary`,children:Gv(K.path)}),$&&d.jsx("div",{className:"text-xs text-text-secondary truncate",children:$})]}),d.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(()=>{const se=o[Q]??"unreviewed",re=Hv(se);return d.jsx("button",{onClick:E=>{E.stopPropagation(),f(Q)},className:`p-0.5 rounded hover:bg-text-primary/10 transition-colors cursor-pointer ${re?"":"opacity-0 group-hover:opacity-40"}`,title:re?`Status: ${se} (click to cycle)`:"Mark as reviewed (click to cycle)",children:re??d.jsx(po,{className:"w-3.5 h-3.5 text-text-secondary"})})})(),K.additions>0&&d.jsxs("span",{className:"text-success text-xs font-mono",children:["+",K.additions]}),K.deletions>0&&d.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",K.deletions]}),d.jsx("span",{className:`
309
- text-[10px] font-bold px-1.5 py-0.5 rounded border
310
- ${L.className}
311
- `,children:L.label})]})]},Q)},P=(K,Q,S)=>{const L=v[Q]??!1,$=S.reduce((re,E)=>re+E.additions,0),se=S.reduce((re,E)=>re+E.deletions,0);return d.jsxs("button",{onClick:()=>le(Q),className:"w-full text-left px-3 py-1.5 flex items-center gap-2 hover:bg-text-primary/5 cursor-pointer",children:[L?d.jsx(nv,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}):d.jsx(su,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}),d.jsxs("span",{className:"text-text-secondary text-xs font-semibold uppercase tracking-wide",children:[K," (",S.length,")"]}),d.jsxs("div",{className:"flex items-center gap-2 ml-auto flex-shrink-0",children:[$>0&&d.jsxs("span",{className:"text-success text-xs font-mono",children:["+",$]}),se>0&&d.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",se]})]})]},`section-${Q}`)};return d.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-surface border-r border-border",children:[d.jsxs("div",{className:"px-4 py-3 border-b border-border",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h2",{className:"text-text-primary text-sm font-semibold",children:"Files"}),d.jsxs("div",{className:"relative",ref:O,children:[d.jsx("button",{onClick:()=>_(K=>!K),className:"p-1 rounded hover:bg-text-primary/10 transition-colors cursor-pointer text-text-secondary hover:text-text-primary",title:"Quick actions",children:d.jsx(uv,{className:"w-4 h-4"})}),A&&d.jsxs("div",{className:"absolute right-0 top-full mt-1 w-52 bg-surface border border-border rounded-lg shadow-lg z-50 py-1",children:[d.jsxs("button",{onClick:()=>X("commit"),className:"w-full text-left px-3 py-2 text-sm text-text-primary hover:bg-text-primary/10 flex items-center gap-2 cursor-pointer transition-colors",children:[d.jsx(Wc,{className:"w-4 h-4 text-success"}),"Approve & Commit"]}),d.jsxs("button",{onClick:()=>X("commit_and_pr"),className:"w-full text-left px-3 py-2 text-sm text-text-primary hover:bg-text-primary/10 flex items-center gap-2 cursor-pointer transition-colors",children:[d.jsx(yo,{className:"w-4 h-4 text-info"}),"Approve, Commit & PR"]})]})]})]}),d.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[d.jsxs("span",{className:"text-text-secondary text-xs",children:[r.files.length," file",r.files.length!==1?"s":""]}),te>0&&d.jsxs("span",{className:"text-success text-xs font-mono",children:["+",te]}),ae>0&&d.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",ae]})]})]}),d.jsx("div",{className:"flex-1 overflow-y-auto py-1",children:Z&&T?d.jsxs(d.Fragment,{children:[T.criticalFiles.length>0&&d.jsxs(d.Fragment,{children:[P("Critical","triage-critical",T.criticalFiles),!v["triage-critical"]&&T.criticalFiles.map(ne)]}),T.notableFiles.length>0&&d.jsxs(d.Fragment,{children:[P("Notable","triage-notable",T.notableFiles),!v["triage-notable"]&&T.notableFiles.map(ne)]}),T.mechanicalFiles.length>0&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex items-center",children:[d.jsx("div",{className:"flex-1",children:P("Mechanical","triage-mechanical",T.mechanicalFiles)}),d.jsx("button",{onClick:ee,className:"mr-3 text-[10px] font-medium text-success hover:text-success/80 cursor-pointer px-1.5 py-0.5 rounded border border-success/30 hover:bg-success/10",children:"Approve all"})]}),!v["triage-mechanical"]&&T.mechanicalFiles.map(ne)]})]}):R?d.jsxs(d.Fragment,{children:[k.length>0&&d.jsxs(d.Fragment,{children:[P("Staged Changes","staged",k),!v.staged&&k.map(ne)]}),Y.length>0&&d.jsxs(d.Fragment,{children:[P("Changes","unstaged",Y),!v.unstaged&&Y.map(ne)]})]}):r.files.map(ne)})]})}function Om(l,r){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);r&&(s=s.filter((function(o){return Object.getOwnPropertyDescriptor(l,o).enumerable}))),i.push.apply(i,s)}return i}function Re(l){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Om(Object(i),!0).forEach((function(s){Pc(l,s,i[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):Om(Object(i)).forEach((function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(i,s))}))}return l}function Pc(l,r,i){return(r=(function(s){var o=(function(f,h){if(typeof f!="object"||f===null)return f;var p=f[Symbol.toPrimitive];if(p!==void 0){var g=p.call(f,h);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(f)})(s,"string");return typeof o=="symbol"?o:String(o)})(r))in l?Object.defineProperty(l,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[r]=i,l}function Wn(l,r){if(l==null)return{};var i,s,o=(function(h,p){if(h==null)return{};var g,y,x={},v=Object.keys(h);for(y=0;y<v.length;y++)g=v[y],p.indexOf(g)>=0||(x[g]=h[g]);return x})(l,r);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);for(s=0;s<f.length;s++)i=f[s],r.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(l,i)&&(o[i]=l[i])}return o}function nt(l,r){return yp(l)||(function(i,s){var o=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(o!=null){var f,h,p,g,y=[],x=!0,v=!1;try{if(p=(o=o.call(i)).next,s===0){if(Object(o)!==o)return;x=!1}else for(;!(x=(f=p.call(o)).done)&&(y.push(f.value),y.length!==s);x=!0);}catch(w){v=!0,h=w}finally{try{if(!x&&o.return!=null&&(g=o.return(),Object(g)!==g))return}finally{if(v)throw h}}return y}})(l,r)||ou(l,r)||vp()}function Iv(l){return yp(l)||bp(l)||ou(l)||vp()}function ml(l){return(function(r){if(Array.isArray(r))return eo(r)})(l)||bp(l)||ou(l)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
312
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function yp(l){if(Array.isArray(l))return l}function bp(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function ou(l,r){if(l){if(typeof l=="string")return eo(l,r);var i=Object.prototype.toString.call(l).slice(8,-1);return i==="Object"&&l.constructor&&(i=l.constructor.name),i==="Map"||i==="Set"?Array.from(l):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?eo(l,r):void 0}}function eo(l,r){(r==null||r>l.length)&&(r=l.length);for(var i=0,s=new Array(r);i<r;i++)s[i]=l[i];return s}function vp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
313
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vo(l,r){var i=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!i){if(Array.isArray(l)||(i=ou(l))||r){i&&(l=i);var s=0,o=function(){};return{s:o,n:function(){return s>=l.length?{done:!0}:{done:!1,value:l[s++]}},e:function(g){throw g},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
314
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f,h=!0,p=!1;return{s:function(){i=i.call(l)},n:function(){var g=i.next();return h=g.done,g},e:function(g){p=!0,f=g},f:function(){try{h||i.return==null||i.return()}finally{if(p)throw f}}}}var Qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ti(l,r){return l(r={exports:{}},r.exports),r.exports}var Rt=Ti((function(l){/*!
315
- Copyright (c) 2018 Jed Watson.
316
- Licensed under the MIT License (MIT), see
317
- http://jedwatson.github.io/classnames
318
- */(function(){var r={}.hasOwnProperty;function i(){for(var s=[],o=0;o<arguments.length;o++){var f=arguments[o];if(f){var h=typeof f;if(h==="string"||h==="number")s.push(f);else if(Array.isArray(f)){if(f.length){var p=i.apply(null,f);p&&s.push(p)}}else if(h==="object"){if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]")){s.push(f.toString());continue}for(var g in f)r.call(f,g)&&f[g]&&s.push(g)}}}return s.join(" ")}l.exports?(i.default=i,l.exports=i):window.classNames=i})()})),yt={hunkClassName:"",lineClassName:"",gutterClassName:"",codeClassName:"",monotonous:!1,gutterType:"default",viewType:"split",widgets:{},hideGutter:!1,selectedChanges:[],generateAnchorID:function(){},generateLineClassName:function(){},renderGutter:function(l){var r=l.renderDefault;return(0,l.wrapInAnchor)(r())},codeEvents:{},gutterEvents:{}},xp=H.createContext(yt),Xv=xp.Provider,Zv=function(){return H.useContext(xp)},Fv=Ti((function(l,r){(function(i){function s(f){var h=f.slice(11),p=null,g=null;switch(h.indexOf('"')){case-1:p=(v=h.split(" "))[0].slice(2),g=v[1].slice(2);break;case 0:var y=h.indexOf('"',2);p=h.slice(3,y);var x=h.indexOf('"',y+1);g=x<0?h.slice(y+4):h.slice(x+3,-1);break;default:var v;p=(v=h.split(" "))[0].slice(2),g=v[1].slice(3,-1)}return{oldPath:p,newPath:g}}var o={parse:function(f){for(var h,p,g,y,x,v=[],w=2,A=f.split(`
319
- `),_=A.length,O=0;O<_;){var R=A[O];if(R.indexOf("diff --git")===0){h={hunks:[],oldEndingNewLine:!0,newEndingNewLine:!0,oldPath:(x=s(R)).oldPath,newPath:x.newPath},v.push(h);var k,Y=null;e:for(;k=A[++O];){var T=k.indexOf(" "),Z=T>-1?k.slice(0,T):Z;switch(Z){case"diff":O--;break e;case"deleted":case"new":var F=k.slice(T+1);F.indexOf("file mode")===0&&(h[Z==="new"?"newMode":"oldMode"]=F.slice(10));break;case"similarity":h.similarity=parseInt(k.split(" ")[2],10);break;case"index":var V=k.slice(T+1).split(" "),X=V[0].split("..");h.oldRevision=X[0],h.newRevision=X[1],V[1]&&(h.oldMode=h.newMode=V[1]);break;case"copy":case"rename":var ee=k.slice(T+1);ee.indexOf("from")===0?h.oldPath=ee.slice(5):h.newPath=ee.slice(3),Y=Z;break;case"---":var te=k.slice(T+1),ae=A[++O].slice(4);te==="/dev/null"?(ae=ae.slice(2),Y="add"):ae==="/dev/null"?(te=te.slice(2),Y="delete"):(Y="modify",te=te.slice(2),ae=ae.slice(2)),te&&(h.oldPath=te),ae&&(h.newPath=ae),w=5;break e}}h.type=Y||"modify"}else if(R.indexOf("Binary")===0)h.isBinary=!0,h.type=R.indexOf("/dev/null and")>=0?"add":R.indexOf("and /dev/null")>=0?"delete":"modify",w=2,h=null;else if(w===5)if(R.indexOf("@@")===0){var le=/^@@\s+-([0-9]+)(,([0-9]+))?\s+\+([0-9]+)(,([0-9]+))?/.exec(R);p={content:R,oldStart:le[1]-0,newStart:le[4]-0,oldLines:le[3]-0||1,newLines:le[6]-0||1,changes:[]},h.hunks.push(p),g=p.oldStart,y=p.newStart}else{var ne=R.slice(0,1),P={content:R.slice(1)};switch(ne){case"+":P.type="insert",P.isInsert=!0,P.lineNumber=y,y++;break;case"-":P.type="delete",P.isDelete=!0,P.lineNumber=g,g++;break;case" ":P.type="normal",P.isNormal=!0,P.oldLineNumber=g,P.newLineNumber=y,g++,y++;break;case"\\":var K=p.changes[p.changes.length-1];K.isDelete||(h.newEndingNewLine=!1),K.isInsert||(h.oldEndingNewLine=!1)}P.type&&p.changes.push(P)}O++}return v}};l.exports=o})()}));function Ea(l){return l.type==="insert"}function Qt(l){return l.type==="delete"}function xa(l){return l.type==="normal"}function Vv(l,r){var i=r.nearbySequences==="zip"?(function(s){var o=s.reduce((function(f,h,p){var g=nt(f,3),y=g[0],x=g[1],v=g[2];return x?Ea(h)&&v>=0?(y.splice(v+1,0,h),[y,h,v+2]):(y.push(h),[y,h,Qt(h)&&Qt(x)?v:p]):(y.push(h),[y,h,Qt(h)?p:-1])}),[[],null,-1]);return nt(o,1)[0]})(l.changes):l.changes;return Re(Re({},l),{},{isPlain:!1,changes:i})}function $v(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(function(s){if(s.startsWith("diff --git"))return s;var o=s.indexOf(`
320
- `),f=s.indexOf(`
321
- `,o+1),h=s.slice(0,o),p=s.slice(o+1,f),g=h.split(" ").slice(1,-3).join(" "),y=p.split(" ").slice(1,-3).join(" ");return["diff --git a/".concat(g," b/").concat(y),"index 1111111..2222222 100644","--- a/".concat(g),"+++ b/".concat(y),s.slice(f+1)].join(`
322
- `)})(l.trimStart());return Fv.parse(i).map((function(s){return(function(o,f){var h=o.hunks.map((function(p){return Vv(p,f)}));return Re(Re({},o),{},{hunks:h})})(s,r)}))}function Kv(l){return l[0]}function Qv(l){return l[l.length-1]}function to(l){return["".concat(l,"Start"),"".concat(l,"Lines")]}function Ei(l){return l==="old"?function(r){return Ea(r)?-1:xa(r)?r.oldLineNumber:r.lineNumber}:function(r){return Qt(r)?-1:xa(r)?r.newLineNumber:r.lineNumber}}function Sp(l,r){return function(i,s){var o=i[l],f=o+i[r];return s>=o&&s<f}}function Jv(l,r){return function(i,s,o){var f=i[l]+i[r],h=s[l];return o>=f&&o<h}}function Ep(l){var r=Ei(l),i=(function(s){var o=nt(to(s),2),f=Sp(o[0],o[1]);return function(h,p){return h.find((function(g){return f(g,p)}))}})(l);return function(s,o){var f=i(s,o);if(f)return f.changes.find((function(h){return r(h)===o}))}}function xo(l){var r=l==="old"?"new":"old",i=nt(to(l),2),s=i[0],o=i[1],f=nt(to(r),2),h=f[0],p=f[1],g=Ei(l),y=Ei(r),x=Sp(s,o),v=Jv(s,o);return function(w,A){var _=Kv(w);if(A<_[s]){var O=_[s]-A;return _[h]-O}var R=Qv(w);if(R[s]+R[o]<=A){var k=A-R[s]-R[o];return R[h]+R[p]+k}for(var Y=0;Y<w.length;Y++){var T=w[Y],Z=w[Y+1];if(x(T,A)){var F=T.changes.findIndex((function(le){return g(le)===A})),V=T.changes[F];if(xa(V))return y(V);var X=Qt(V)?F+1:F-1,ee=T.changes[X];if(!ee)return-1;var te=Ea(V)?"delete":"insert";return ee.type===te?y(ee):-1}if(v(T,Z,A)){var ae=A-T[s]-T[o];return T[h]+T[p]+ae}}throw new Error("Unexpected line position ".concat(A))}}var Wv=function(){this.__data__=[],this.size=0},Np=function(l,r){return l===r||l!=l&&r!=r},fu=function(l,r){for(var i=l.length;i--;)if(Np(l[i][0],r))return i;return-1},Pv=Array.prototype.splice,e1=function(l){var r=this.__data__,i=fu(r,l);return!(i<0)&&(i==r.length-1?r.pop():Pv.call(r,i,1),--this.size,!0)},t1=function(l){var r=this.__data__,i=fu(r,l);return i<0?void 0:r[i][1]},n1=function(l){return fu(this.__data__,l)>-1},a1=function(l,r){var i=this.__data__,s=fu(i,l);return s<0?(++this.size,i.push([l,r])):i[s][1]=r,this};function fl(l){var r=-1,i=l==null?0:l.length;for(this.clear();++r<i;){var s=l[r];this.set(s[0],s[1])}}fl.prototype.clear=Wv,fl.prototype.delete=e1,fl.prototype.get=t1,fl.prototype.has=n1,fl.prototype.set=a1;var du=fl,l1=function(){this.__data__=new du,this.size=0},i1=function(l){var r=this.__data__,i=r.delete(l);return this.size=r.size,i},r1=function(l){return this.__data__.get(l)},u1=function(l){return this.__data__.has(l)},Ap=typeof Qr=="object"&&Qr&&Qr.Object===Object&&Qr,s1=typeof self=="object"&&self&&self.Object===Object&&self,Nn=Ap||s1||Function("return this")(),nn=Nn.Symbol,wp=Object.prototype,c1=wp.hasOwnProperty,o1=wp.toString,vi=nn?nn.toStringTag:void 0,f1=function(l){var r=c1.call(l,vi),i=l[vi];try{l[vi]=void 0;var s=!0}catch{}var o=o1.call(l);return s&&(r?l[vi]=i:delete l[vi]),o},d1=Object.prototype.toString,h1=function(l){return d1.call(l)},jm=nn?nn.toStringTag:void 0,vl=function(l){return l==null?l===void 0?"[object Undefined]":"[object Null]":jm&&jm in Object(l)?f1(l):h1(l)},So=function(l){var r=typeof l;return l!=null&&(r=="object"||r=="function")},Tp=function(l){if(!So(l))return!1;var r=vl(l);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"},Vc=Nn["__core-js_shared__"],Rm=(function(){var l=/[^.]+$/.exec(Vc&&Vc.keys&&Vc.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),g1=function(l){return!!Rm&&Rm in l},m1=Function.prototype.toString,Na=function(l){if(l!=null){try{return m1.call(l)}catch{}try{return l+""}catch{}}return""},p1=/^\[object .+?Constructor\]$/,y1=Function.prototype,b1=Object.prototype,v1=y1.toString,x1=b1.hasOwnProperty,S1=RegExp("^"+v1.call(x1).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E1=function(l){return!(!So(l)||g1(l))&&(Tp(l)?S1:p1).test(Na(l))},N1=function(l,r){return l==null?void 0:l[r]},Aa=function(l,r){var i=N1(l,r);return E1(i)?i:void 0},Ni=Aa(Nn,"Map"),Ai=Aa(Object,"create"),A1=function(){this.__data__=Ai?Ai(null):{},this.size=0},w1=function(l){var r=this.has(l)&&delete this.__data__[l];return this.size-=r?1:0,r},T1=Object.prototype.hasOwnProperty,_1=function(l){var r=this.__data__;if(Ai){var i=r[l];return i==="__lodash_hash_undefined__"?void 0:i}return T1.call(r,l)?r[l]:void 0},C1=Object.prototype.hasOwnProperty,O1=function(l){var r=this.__data__;return Ai?r[l]!==void 0:C1.call(r,l)},j1=function(l,r){var i=this.__data__;return this.size+=this.has(l)?0:1,i[l]=Ai&&r===void 0?"__lodash_hash_undefined__":r,this};function dl(l){var r=-1,i=l==null?0:l.length;for(this.clear();++r<i;){var s=l[r];this.set(s[0],s[1])}}dl.prototype.clear=A1,dl.prototype.delete=w1,dl.prototype.get=_1,dl.prototype.has=O1,dl.prototype.set=j1;var km=dl,R1=function(){this.size=0,this.__data__={hash:new km,map:new(Ni||du),string:new km}},k1=function(l){var r=typeof l;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?l!=="__proto__":l===null},hu=function(l,r){var i=l.__data__;return k1(r)?i[typeof r=="string"?"string":"hash"]:i.map},M1=function(l){var r=hu(this,l).delete(l);return this.size-=r?1:0,r},D1=function(l){return hu(this,l).get(l)},z1=function(l){return hu(this,l).has(l)},L1=function(l,r){var i=hu(this,l),s=i.size;return i.set(l,r),this.size+=i.size==s?0:1,this};function hl(l){var r=-1,i=l==null?0:l.length;for(this.clear();++r<i;){var s=l[r];this.set(s[0],s[1])}}hl.prototype.clear=R1,hl.prototype.delete=M1,hl.prototype.get=D1,hl.prototype.has=z1,hl.prototype.set=L1;var gu=hl,U1=function(l,r){var i=this.__data__;if(i instanceof du){var s=i.__data__;if(!Ni||s.length<199)return s.push([l,r]),this.size=++i.size,this;i=this.__data__=new gu(s)}return i.set(l,r),this.size=i.size,this};function gl(l){var r=this.__data__=new du(l);this.size=r.size}gl.prototype.clear=l1,gl.prototype.delete=i1,gl.prototype.get=r1,gl.prototype.has=u1,gl.prototype.set=U1;var nu=gl,B1=function(l){return this.__data__.set(l,"__lodash_hash_undefined__"),this},H1=function(l){return this.__data__.has(l)};function au(l){var r=-1,i=l==null?0:l.length;for(this.__data__=new gu;++r<i;)this.add(l[r])}au.prototype.add=au.prototype.push=B1,au.prototype.has=H1;var G1=au,Y1=function(l,r){for(var i=-1,s=l==null?0:l.length;++i<s;)if(r(l[i],i,l))return!0;return!1},q1=function(l,r){return l.has(r)},_p=function(l,r,i,s,o,f){var h=1&i,p=l.length,g=r.length;if(p!=g&&!(h&&g>p))return!1;var y=f.get(l),x=f.get(r);if(y&&x)return y==r&&x==l;var v=-1,w=!0,A=2&i?new G1:void 0;for(f.set(l,r),f.set(r,l);++v<p;){var _=l[v],O=r[v];if(s)var R=h?s(O,_,v,r,l,f):s(_,O,v,l,r,f);if(R!==void 0){if(R)continue;w=!1;break}if(A){if(!Y1(r,(function(k,Y){if(!q1(A,Y)&&(_===k||o(_,k,i,s,f)))return A.push(Y)}))){w=!1;break}}else if(_!==O&&!o(_,O,i,s,f)){w=!1;break}}return f.delete(l),f.delete(r),w},Mm=Nn.Uint8Array,I1=function(l){var r=-1,i=Array(l.size);return l.forEach((function(s,o){i[++r]=[o,s]})),i},X1=function(l){var r=-1,i=Array(l.size);return l.forEach((function(s){i[++r]=s})),i},Dm=nn?nn.prototype:void 0,$c=Dm?Dm.valueOf:void 0,Z1=function(l,r,i,s,o,f,h){switch(i){case"[object DataView]":if(l.byteLength!=r.byteLength||l.byteOffset!=r.byteOffset)return!1;l=l.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(l.byteLength!=r.byteLength||!f(new Mm(l),new Mm(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Np(+l,+r);case"[object Error]":return l.name==r.name&&l.message==r.message;case"[object RegExp]":case"[object String]":return l==r+"";case"[object Map]":var p=I1;case"[object Set]":var g=1&s;if(p||(p=X1),l.size!=r.size&&!g)return!1;var y=h.get(l);if(y)return y==r;s|=2,h.set(l,r);var x=_p(p(l),p(r),s,o,f,h);return h.delete(l),x;case"[object Symbol]":if($c)return $c.call(l)==$c.call(r)}return!1},Cp=function(l,r){for(var i=-1,s=r.length,o=l.length;++i<s;)l[o+i]=r[i];return l},It=Array.isArray,F1=function(l,r,i){var s=r(l);return It(l)?s:Cp(s,i(l))},V1=function(l,r){for(var i=-1,s=l==null?0:l.length,o=0,f=[];++i<s;){var h=l[i];r(h,i,l)&&(f[o++]=h)}return f},$1=function(){return[]},K1=Object.prototype.propertyIsEnumerable,zm=Object.getOwnPropertySymbols,Q1=zm?function(l){return l==null?[]:(l=Object(l),V1(zm(l),(function(r){return K1.call(l,r)})))}:$1,J1=function(l,r){for(var i=-1,s=Array(l);++i<l;)s[i]=r(i);return s},yl=function(l){return l!=null&&typeof l=="object"},Lm=function(l){return yl(l)&&vl(l)=="[object Arguments]"},Op=Object.prototype,W1=Op.hasOwnProperty,P1=Op.propertyIsEnumerable,Eo=Lm((function(){return arguments})())?Lm:function(l){return yl(l)&&W1.call(l,"callee")&&!P1.call(l,"callee")},ex=function(){return!1},no=Ti((function(l,r){var i=r&&!r.nodeType&&r,s=i&&l&&!l.nodeType&&l,o=s&&s.exports===i?Nn.Buffer:void 0,f=(o?o.isBuffer:void 0)||ex;l.exports=f})),tx=/^(?:0|[1-9]\d*)$/,jp=function(l,r){var i=typeof l;return!!(r=r??9007199254740991)&&(i=="number"||i!="symbol"&&tx.test(l))&&l>-1&&l%1==0&&l<r},No=function(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=9007199254740991},He={};He["[object Float32Array]"]=He["[object Float64Array]"]=He["[object Int8Array]"]=He["[object Int16Array]"]=He["[object Int32Array]"]=He["[object Uint8Array]"]=He["[object Uint8ClampedArray]"]=He["[object Uint16Array]"]=He["[object Uint32Array]"]=!0,He["[object Arguments]"]=He["[object Array]"]=He["[object ArrayBuffer]"]=He["[object Boolean]"]=He["[object DataView]"]=He["[object Date]"]=He["[object Error]"]=He["[object Function]"]=He["[object Map]"]=He["[object Number]"]=He["[object Object]"]=He["[object RegExp]"]=He["[object Set]"]=He["[object String]"]=He["[object WeakMap]"]=!1;var nx=function(l){return yl(l)&&No(l.length)&&!!He[vl(l)]},ax=function(l){return function(r){return l(r)}},Um=Ti((function(l,r){var i=r&&!r.nodeType&&r,s=i&&l&&!l.nodeType&&l,o=s&&s.exports===i&&Ap.process,f=(function(){try{var h=s&&s.require&&s.require("util").types;return h||o&&o.binding&&o.binding("util")}catch{}})();l.exports=f})),Bm=Um&&Um.isTypedArray,Rp=Bm?ax(Bm):nx,lx=Object.prototype.hasOwnProperty,ix=function(l,r){var i=It(l),s=!i&&Eo(l),o=!i&&!s&&no(l),f=!i&&!s&&!o&&Rp(l),h=i||s||o||f,p=h?J1(l.length,String):[],g=p.length;for(var y in l)!lx.call(l,y)||h&&(y=="length"||o&&(y=="offset"||y=="parent")||f&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||jp(y,g))||p.push(y);return p},rx=Object.prototype,ux=function(l){var r=l&&l.constructor;return l===(typeof r=="function"&&r.prototype||rx)},sx=(function(l,r){return function(i){return l(r(i))}})(Object.keys,Object),cx=Object.prototype.hasOwnProperty,ox=function(l){if(!ux(l))return sx(l);var r=[];for(var i in Object(l))cx.call(l,i)&&i!="constructor"&&r.push(i);return r},Ao=function(l){return l!=null&&No(l.length)&&!Tp(l)},wo=function(l){return Ao(l)?ix(l):ox(l)},Hm=function(l){return F1(l,wo,Q1)},fx=Object.prototype.hasOwnProperty,dx=function(l,r,i,s,o,f){var h=1&i,p=Hm(l),g=p.length;if(g!=Hm(r).length&&!h)return!1;for(var y=g;y--;){var x=p[y];if(!(h?x in r:fx.call(r,x)))return!1}var v=f.get(l),w=f.get(r);if(v&&w)return v==r&&w==l;var A=!0;f.set(l,r),f.set(r,l);for(var _=h;++y<g;){var O=l[x=p[y]],R=r[x];if(s)var k=h?s(R,O,x,r,l,f):s(O,R,x,l,r,f);if(!(k===void 0?O===R||o(O,R,i,s,f):k)){A=!1;break}_||(_=x=="constructor")}if(A&&!_){var Y=l.constructor,T=r.constructor;Y==T||!("constructor"in l)||!("constructor"in r)||typeof Y=="function"&&Y instanceof Y&&typeof T=="function"&&T instanceof T||(A=!1)}return f.delete(l),f.delete(r),A},ao=Aa(Nn,"DataView"),lo=Aa(Nn,"Promise"),io=Aa(Nn,"Set"),ro=Aa(Nn,"WeakMap"),hx=Na(ao),gx=Na(Ni),mx=Na(lo),px=Na(io),yx=Na(ro),ba=vl;(ao&&ba(new ao(new ArrayBuffer(1)))!="[object DataView]"||Ni&&ba(new Ni)!="[object Map]"||lo&&ba(lo.resolve())!="[object Promise]"||io&&ba(new io)!="[object Set]"||ro&&ba(new ro)!="[object WeakMap]")&&(ba=function(l){var r=vl(l),i=r=="[object Object]"?l.constructor:void 0,s=i?Na(i):"";if(s)switch(s){case hx:return"[object DataView]";case gx:return"[object Map]";case mx:return"[object Promise]";case px:return"[object Set]";case yx:return"[object WeakMap]"}return r});var Gm=ba,Jr="[object Object]",Ym=Object.prototype.hasOwnProperty,bx=function(l,r,i,s,o,f){var h=It(l),p=It(r),g=h?"[object Array]":Gm(l),y=p?"[object Array]":Gm(r),x=(g=g=="[object Arguments]"?Jr:g)==Jr,v=(y=y=="[object Arguments]"?Jr:y)==Jr,w=g==y;if(w&&no(l)){if(!no(r))return!1;h=!0,x=!1}if(w&&!x)return f||(f=new nu),h||Rp(l)?_p(l,r,i,s,o,f):Z1(l,r,g,i,s,o,f);if(!(1&i)){var A=x&&Ym.call(l,"__wrapped__"),_=v&&Ym.call(r,"__wrapped__");if(A||_){var O=A?l.value():l,R=_?r.value():r;return f||(f=new nu),o(O,R,i,s,f)}}return!!w&&(f||(f=new nu),dx(l,r,i,s,o,f))},mu=function l(r,i,s,o,f){return r===i||(r==null||i==null||!yl(r)&&!yl(i)?r!=r&&i!=i:bx(r,i,s,o,l,f))},vx=function(l,r,i,s){var o=i.length,f=o;if(l==null)return!f;for(l=Object(l);o--;){var h=i[o];if(h[2]?h[1]!==l[h[0]]:!(h[0]in l))return!1}for(;++o<f;){var p=(h=i[o])[0],g=l[p],y=h[1];if(h[2]){if(g===void 0&&!(p in l))return!1}else{var x=new nu,v;if(!(v===void 0?mu(y,g,3,s,x):v))return!1}}return!0},kp=function(l){return l==l&&!So(l)},xx=function(l){for(var r=wo(l),i=r.length;i--;){var s=r[i],o=l[s];r[i]=[s,o,kp(o)]}return r},Mp=function(l,r){return function(i){return i!=null&&i[l]===r&&(r!==void 0||l in Object(i))}},Sx=function(l){var r=xx(l);return r.length==1&&r[0][2]?Mp(r[0][0],r[0][1]):function(i){return i===l||vx(i,l,r)}},To=function(l){return typeof l=="symbol"||yl(l)&&vl(l)=="[object Symbol]"},Ex=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nx=/^\w*$/,_o=function(l,r){if(It(l))return!1;var i=typeof l;return!(i!="number"&&i!="symbol"&&i!="boolean"&&l!=null&&!To(l))||Nx.test(l)||!Ex.test(l)||r!=null&&l in Object(r)};function Co(l,r){if(typeof l!="function"||r!=null&&typeof r!="function")throw new TypeError("Expected a function");var i=function(){var s=arguments,o=r?r.apply(this,s):s[0],f=i.cache;if(f.has(o))return f.get(o);var h=l.apply(this,s);return i.cache=f.set(o,h)||f,h};return i.cache=new(Co.Cache||gu),i}Co.Cache=gu;var Ax=Co,wx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tx=/\\(\\)?/g,_x=(function(l){var r=Ax(l,(function(s){return i.size===500&&i.clear(),s})),i=r.cache;return r})((function(l){var r=[];return l.charCodeAt(0)===46&&r.push(""),l.replace(wx,(function(i,s,o,f){r.push(o?f.replace(Tx,"$1"):s||i)})),r})),Dp=function(l,r){for(var i=-1,s=l==null?0:l.length,o=Array(s);++i<s;)o[i]=r(l[i],i,l);return o},qm=nn?nn.prototype:void 0,Im=qm?qm.toString:void 0,Cx=function l(r){if(typeof r=="string")return r;if(It(r))return Dp(r,l)+"";if(To(r))return Im?Im.call(r):"";var i=r+"";return i=="0"&&1/r==-1/0?"-0":i},Ox=function(l){return l==null?"":Cx(l)},zp=function(l,r){return It(l)?l:_o(l,r)?[l]:_x(Ox(l))},pu=function(l){if(typeof l=="string"||To(l))return l;var r=l+"";return r=="0"&&1/l==-1/0?"-0":r},Lp=function(l,r){for(var i=0,s=(r=zp(r,l)).length;l!=null&&i<s;)l=l[pu(r[i++])];return i&&i==s?l:void 0},jx=function(l,r,i){var s=l==null?void 0:Lp(l,r);return s===void 0?i:s},Rx=function(l,r){return l!=null&&r in Object(l)},kx=function(l,r,i){for(var s=-1,o=(r=zp(r,l)).length,f=!1;++s<o;){var h=pu(r[s]);if(!(f=l!=null&&i(l,h)))break;l=l[h]}return f||++s!=o?f:!!(o=l==null?0:l.length)&&No(o)&&jp(h,o)&&(It(l)||Eo(l))},Mx=function(l,r){return l!=null&&kx(l,r,Rx)},Dx=function(l,r){return _o(l)&&kp(r)?Mp(pu(l),r):function(i){var s=jx(i,l);return s===void 0&&s===r?Mx(i,l):mu(r,s,3)}},zx=function(l){return l},Lx=function(l){return function(r){return r==null?void 0:r[l]}},Ux=function(l){return function(r){return Lp(r,l)}},Bx=function(l){return _o(l)?Lx(pu(l)):Ux(l)},Oo=function(l){return typeof l=="function"?l:l==null?zx:typeof l=="object"?It(l)?Dx(l[0],l[1]):Sx(l):Bx(l)};function qt(l){if(!l)throw new Error("change is not provided");if(xa(l))return"N".concat(l.oldLineNumber);var r=Ea(l)?"I":"D";return"".concat(r).concat(l.lineNumber)}xo("old");var yu=Ei("old"),bu=Ei("new");Ep("old");Ep("new");xo("new");xo("old");var Xm=(function(){try{var l=Aa(Object,"defineProperty");return l({},"",{}),l}catch{}})(),Up=function(l,r,i){r=="__proto__"&&Xm?Xm(l,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):l[r]=i},Hx=function(l){return function(r,i,s){for(var o=-1,f=Object(r),h=s(r),p=h.length;p--;){var g=h[++o];if(i(f[g],g,f)===!1)break}return r}},Gx=Hx(),Bp=function(l,r){return l&&Gx(l,r,wo)},Hp=function(l,r){var i={};return r=Oo(r),Bp(l,(function(s,o,f){Up(i,o,r(s,o,f))})),i},Yx=["changeKey","text","tokens","renderToken"],Zm=function l(r,i){var s=r.type,o=r.value,f=r.markType,h=r.properties,p=r.className,g=r.children,y=function(v){return d.jsx("span",{className:v,children:o||g&&g.map(l)},i)};switch(s){case"text":return o;case"mark":return y("diff-code-mark diff-code-mark-".concat(f));case"edit":return y("diff-code-edit");default:var x=h&&h.className;return y(Rt(p||x))}};function qx(l){if(!Array.isArray(l))return!0;if(l.length>1)return!1;if(l.length===1){var r=nt(l,1)[0];return r.type==="text"&&!r.value}return!0}function Ix(l){var r=l.changeKey,i=l.text,s=l.tokens,o=l.renderToken,f=Wn(l,Yx),h=o?function(p,g){return o(p,Zm,g)}:Zm;return d.jsx("td",Re(Re({},f),{},{"data-change-key":r,children:s?qx(s)?" ":s.map(h):i||" "}))}var Gp=H.memo(Ix);function Yp(l,r){return function(){var i=r==="old"?yu(l):bu(l);return i===-1?void 0:i}}function qp(l,r){return function(i){return l&&i?d.jsx("a",{href:r?"#"+r:void 0,children:i}):i}}function ru(l,r){return r?function(i){l(),r(i)}:l}function Fm(l,r,i,s){return H.useMemo((function(){var o=Hp(l,(function(f){return function(h){return f&&f(r,h)}}));return o.onMouseEnter=ru(i,o.onMouseEnter),o.onMouseLeave=ru(s,o.onMouseLeave),o}),[l,i,s,r])}function Vm(l,r,i,s,o,f,h,p,g){var y={change:r,side:s,inHoverState:p,renderDefault:Yp(r,s),wrapInAnchor:qp(o,f)};return d.jsx("td",Re(Re({className:l},h),{},{"data-change-key":i,children:g(y)}))}function Xx(l){var r,i,s,o=l.change,f=l.selected,h=l.tokens,p=l.className,g=l.generateLineClassName,y=l.gutterClassName,x=l.codeClassName,v=l.gutterEvents,w=l.codeEvents,A=l.hideGutter,_=l.gutterAnchor,O=l.generateAnchorID,R=l.renderToken,k=l.renderGutter,Y=o.type,T=o.content,Z=qt(o),F=(r=nt(H.useState(!1),2),i=r[0],s=r[1],[i,H.useCallback((function(){return s(!0)}),[]),H.useCallback((function(){return s(!1)}),[])]),V=nt(F,3),X=V[0],ee=V[1],te=V[2],ae=H.useMemo((function(){return{change:o}}),[o]),le=Fm(v,ae,ee,te),ne=Fm(w,ae,ee,te),P=O(o),K=g({changes:[o],defaultGenerate:function(){return p}}),Q=Rt("diff-gutter","diff-gutter-".concat(Y),y,{"diff-gutter-selected":f}),S=Rt("diff-code","diff-code-".concat(Y),x,{"diff-code-selected":f});return d.jsxs("tr",{id:P,className:Rt("diff-line",K),children:[!A&&Vm(Q,o,Z,"old",_,P,le,X,k),!A&&Vm(Q,o,Z,"new",_,P,le,X,k),d.jsx(Gp,Re({className:S,changeKey:Z,text:T,tokens:h,renderToken:R},ne))]})}var Zx=H.memo(Xx);function Fx(l){var r=l.hideGutter,i=l.element;return d.jsx("tr",{className:"diff-widget",children:d.jsx("td",{colSpan:r?1:3,className:"diff-widget-content",children:i})})}var Vx=["hideGutter","selectedChanges","tokens","lineClassName"],$x=["hunk","widgets","className"];function Kx(l){var r=l.hunk,i=l.widgets,s=l.className,o=Wn(l,$x),f=(function(h,p){return h.reduce((function(g,y){var x=qt(y);g.push(["change",x,y]);var v=p[x];return v&&g.push(["widget",x,v]),g}),[])})(r.changes,i);return d.jsx("tbody",{className:Rt("diff-hunk",s),children:f.map((function(h){return(function(p,g){var y=nt(p,3),x=y[0],v=y[1],w=y[2],A=g.hideGutter,_=g.selectedChanges,O=g.tokens,R=g.lineClassName,k=Wn(g,Vx);if(x==="change"){var Y=Qt(w)?"old":"new",T=Qt(w)?yu(w):bu(w),Z=O?O[Y][T-1]:null;return d.jsx(Zx,Re({className:R,change:w,hideGutter:A,selected:_.includes(v),tokens:Z},k),"change".concat(v))}return x==="widget"?d.jsx(Fx,{hideGutter:A,element:w},"widget".concat(v)):null})(h,o)}))})}var Ip=0;function Wr(l,r,i,s){var o=H.useCallback((function(){return r(l)}),[l,r]),f=H.useCallback((function(){return r("")}),[r]);return H.useMemo((function(){var h=Hp(s,(function(p){return function(g){return p&&p({side:l,change:i},g)}}));return h.onMouseEnter=ru(o,h.onMouseEnter),h.onMouseLeave=ru(f,h.onMouseLeave),h}),[i,s,o,l,f])}function Kc(l){var r=l.change,i=l.side,s=l.selected,o=l.tokens,f=l.gutterClassName,h=l.codeClassName,p=l.gutterEvents,g=l.codeEvents,y=l.anchorID,x=l.gutterAnchor,v=l.gutterAnchorTarget,w=l.hideGutter,A=l.hover,_=l.renderToken,O=l.renderGutter;if(!r){var R=Rt("diff-gutter","diff-gutter-omit",f),k=Rt("diff-code","diff-code-omit",h);return[!w&&d.jsx("td",{className:R},"gutter"),d.jsx("td",{className:k},"code")]}var Y=r.type,T=r.content,Z=qt(r),F=i===Ip?"old":"new",V=Re({id:y||void 0,className:Rt("diff-gutter","diff-gutter-".concat(Y),Pc({"diff-gutter-selected":s},"diff-line-hover-"+F,A),f),children:O({change:r,side:F,inHoverState:A,renderDefault:Yp(r,F),wrapInAnchor:qp(x,v)})},p),X=Rt("diff-code","diff-code-".concat(Y),Pc({"diff-code-selected":s},"diff-line-hover-"+F,A),h);return[!w&&d.jsx("td",Re(Re({},V),{},{"data-change-key":Z}),"gutter"),d.jsx(Gp,Re({className:X,changeKey:Z,text:T,tokens:o,renderToken:_},g),"code")]}function Qx(l){var r=l.className,i=l.oldChange,s=l.newChange,o=l.oldSelected,f=l.newSelected,h=l.oldTokens,p=l.newTokens,g=l.monotonous,y=l.gutterClassName,x=l.codeClassName,v=l.gutterEvents,w=l.codeEvents,A=l.hideGutter,_=l.generateAnchorID,O=l.generateLineClassName,R=l.gutterAnchor,k=l.renderToken,Y=l.renderGutter,T=nt(H.useState(""),2),Z=T[0],F=T[1],V=Wr("old",F,i,v),X=Wr("new",F,s,v),ee=Wr("old",F,i,w),te=Wr("new",F,s,w),ae=i&&_(i),le=s&&_(s),ne=O({changes:[i,s],defaultGenerate:function(){return r}}),P={monotonous:g,hideGutter:A,gutterClassName:y,codeClassName:x,gutterEvents:v,codeEvents:w,renderToken:k,renderGutter:Y},K=Re(Re({},P),{},{change:i,side:Ip,selected:o,tokens:h,gutterEvents:V,codeEvents:ee,anchorID:ae,gutterAnchor:R,gutterAnchorTarget:ae,hover:Z==="old"}),Q=Re(Re({},P),{},{change:s,side:1,selected:f,tokens:p,gutterEvents:X,codeEvents:te,anchorID:i===s?null:le,gutterAnchor:R,gutterAnchorTarget:i===s?ae:le,hover:Z==="new"});if(g)return d.jsx("tr",{className:Rt("diff-line",ne),children:Kc(i?K:Q)});var S=(function(L,$){return L&&!$?"diff-line-old-only":!L&&$?"diff-line-new-only":L===$?"diff-line-normal":"diff-line-compare"})(i,s);return d.jsxs("tr",{className:Rt("diff-line",S,ne),children:[Kc(K),Kc(Q)]})}var Jx=H.memo(Qx);function Wx(l){var r=l.hideGutter,i=l.oldElement,s=l.newElement;return l.monotonous?d.jsx("tr",{className:"diff-widget",children:d.jsx("td",{colSpan:r?1:2,className:"diff-widget-content",children:i||s})}):i===s?d.jsx("tr",{className:"diff-widget",children:d.jsx("td",{colSpan:r?2:4,className:"diff-widget-content",children:i})}):d.jsxs("tr",{className:"diff-widget",children:[d.jsx("td",{colSpan:r?1:2,className:"diff-widget-content",children:i}),d.jsx("td",{colSpan:r?1:2,className:"diff-widget-content",children:s})]})}var Px=["selectedChanges","monotonous","hideGutter","tokens","lineClassName"],eS=["hunk","widgets","className"];function Pr(l,r){return(l?qt(l):"00")+(r?qt(r):"00")}function tS(l){var r=l.hunk,i=l.widgets,s=l.className,o=Wn(l,eS),f=(function(h,p){for(var g=function(k){if(!k)return null;var Y=qt(k);return p[Y]||null},y=[],x=0;x<h.length;x++){var v=h[x];if(xa(v))y.push(["change",Pr(v,v),v,v]);else if(Qt(v)){var w=h[x+1];w&&Ea(w)?(x+=1,y.push(["change",Pr(v,w),v,w])):y.push(["change",Pr(v,null),v,null])}else y.push(["change",Pr(null,v),null,v]);var A=y[y.length-1],_=g(A[2]),O=g(A[3]);if(_||O){var R=A[1];y.push(["widget",R,_,O])}}return y})(r.changes,i);return d.jsx("tbody",{className:Rt("diff-hunk",s),children:f.map((function(h){return(function(p,g){var y=nt(p,4),x=y[0],v=y[1],w=y[2],A=y[3],_=g.selectedChanges,O=g.monotonous,R=g.hideGutter,k=g.tokens,Y=g.lineClassName,T=Wn(g,Px);if(x==="change"){var Z=!!w&&_.includes(qt(w)),F=!!A&&_.includes(qt(A)),V=w&&k?k.old[yu(w)-1]:null,X=A&&k?k.new[bu(A)-1]:null;return d.jsx(Jx,Re({className:Y,oldChange:w,newChange:A,monotonous:O,hideGutter:R,oldSelected:Z,newSelected:F,oldTokens:V,newTokens:X},T),"change".concat(v))}return x==="widget"?d.jsx(Wx,{monotonous:O,hideGutter:R,oldElement:w,newElement:A},"widget".concat(v)):null})(h,o)}))})}var nS=["gutterType","hunkClassName"];function Xp(l){var r=l.hunk,i=Zv(),s=i.gutterType,o=i.hunkClassName,f=Wn(i,nS),h=s==="none",p=s==="anchor",g=f.viewType==="unified"?Kx:tS;return d.jsx(g,Re(Re({},f),{},{hunk:r,hideGutter:h,gutterAnchor:p,className:o}))}function aS(){}function $m(l,r){var i=r?"auto":"none";l instanceof HTMLElement&&l.style.userSelect!==i&&(l.style.userSelect=i)}function lS(l){return l.map((function(r){return d.jsx(Xp,{hunk:r},(function(i){return"-".concat(i.oldStart,",").concat(i.oldLines," +").concat(i.newStart,",").concat(i.newLines)})(r))}))}function iS(l){var r=l.diffType,i=l.hunks,s=l.optimizeSelection,o=l.className,f=l.hunkClassName,h=f===void 0?yt.hunkClassName:f,p=l.lineClassName,g=p===void 0?yt.lineClassName:p,y=l.generateLineClassName,x=y===void 0?yt.generateLineClassName:y,v=l.gutterClassName,w=v===void 0?yt.gutterClassName:v,A=l.codeClassName,_=A===void 0?yt.codeClassName:A,O=l.gutterType,R=O===void 0?yt.gutterType:O,k=l.viewType,Y=k===void 0?yt.viewType:k,T=l.gutterEvents,Z=T===void 0?yt.gutterEvents:T,F=l.codeEvents,V=F===void 0?yt.codeEvents:F,X=l.generateAnchorID,ee=X===void 0?yt.generateAnchorID:X,te=l.selectedChanges,ae=te===void 0?yt.selectedChanges:te,le=l.widgets,ne=le===void 0?yt.widgets:le,P=l.renderGutter,K=P===void 0?yt.renderGutter:P,Q=l.tokens,S=l.renderToken,L=l.children,$=L===void 0?lS:L,se=H.useRef(null),re=H.useCallback((function(ve){var we=ve.target;if(ve.button===0){var Fe=(function(Zt,Al){for(var Ft=Zt;Ft&&Ft!==document.documentElement&&!Ft.classList.contains(Al);)Ft=Ft.parentElement;return Ft===document.documentElement?null:Ft})(we,"diff-code");if(Fe&&Fe.parentElement){var Ge=window.getSelection();Ge&&Ge.removeAllRanges();var Jt=ml(Fe.parentElement.children).indexOf(Fe);if(Jt===1||Jt===3){var Pn,An=vo(se.current?se.current.querySelectorAll(".diff-line"):[]);try{for(An.s();!(Pn=An.n()).done;){var Nl=Pn.value.children;$m(Nl[1],Jt===1),$m(Nl[3],Jt===3)}}catch(Zt){An.e(Zt)}finally{An.f()}}}}}),[]),E=R==="none",B=r==="add"||r==="delete",J=Y==="split"&&!B&&s?re:aS,ie=H.useMemo((function(){return d.jsxs("colgroup",Y==="unified"?{children:[!E&&d.jsx("col",{className:"diff-gutter-col"}),!E&&d.jsx("col",{className:"diff-gutter-col"}),d.jsx("col",{})]}:B?{children:[!E&&d.jsx("col",{className:"diff-gutter-col"}),d.jsx("col",{})]}:{children:[!E&&d.jsx("col",{className:"diff-gutter-col"}),d.jsx("col",{}),!E&&d.jsx("col",{className:"diff-gutter-col"}),d.jsx("col",{})]})}),[Y,B,E]),ge=H.useMemo((function(){return{hunkClassName:h,lineClassName:g,generateLineClassName:x,gutterClassName:w,codeClassName:_,monotonous:B,hideGutter:E,viewType:Y,gutterType:R,codeEvents:V,gutterEvents:Z,generateAnchorID:ee,selectedChanges:ae,widgets:ne,renderGutter:K,tokens:Q,renderToken:S}}),[_,V,ee,w,Z,R,E,h,g,x,B,K,S,ae,Q,Y,ne]);return d.jsx(Xv,{value:ge,children:d.jsxs("table",{ref:se,className:Rt("diff","diff-".concat(Y),o),onMouseDown:J,children:[ie,$(i)]})})}var rS=H.memo(iS),uS=function(l,r,i,s){for(var o=-1,f=l==null?0:l.length;++o<f;){var h=l[o];r(s,h,i(h),l)}return s},sS=function(l,r){return function(i,s){if(i==null)return i;if(!Ao(i))return l(i,s);for(var o=i.length,f=-1,h=Object(i);++f<o&&s(h[f],f,h)!==!1;);return i}},Zp=sS(Bp),cS=function(l,r,i,s){return Zp(l,(function(o,f,h){r(s,o,i(o),h)})),s},oS=function(l,r){return function(i,s){var o=It(i)?uS:cS,f=r?r():{};return o(i,l,Oo(s),f)}},fS=oS((function(l,r,i){Up(l,i,r)})),Km=nn?nn.isConcatSpreadable:void 0,dS=function(l){return It(l)||Eo(l)||!!(Km&&l&&l[Km])},hS=function(r,i,s,o,f){var h=-1,p=r.length;for(s||(s=dS),f||(f=[]);++h<p;){var g=r[h];s(g)?Cp(f,g):f[f.length]=g}return f},gS=function(l,r){var i=-1,s=Ao(l)?Array(l.length):[];return Zp(l,(function(o,f,h){s[++i]=r(o,f,h)})),s},mS=function(l,r){return(It(l)?Dp:gS)(l,Oo(r))},pS=function(l,r){return hS(mS(l,r))};function yS(l,r){var i=r.newStart,s=r.changes.reduce((function(o,f){var h=nt(o,2),p=h[0],g=h[1];return Qt(f)?(p.splice(g,1),[p,g]):(Ea(f)&&p.splice(g,0,f.content),[p,g+1])}),[l,i-1]);return nt(s,1)[0]}function Qm(l,r,i){if(!l.length)return[];var s=r==="old"?yu:bu,o=fS(l,s),f=s(l[l.length-1]);return Array.from({length:f}).map((function(h,p){return i(o[p+1])}))}function bS(l){var r=(function(h){return pS(h,(function(p){return p.changes})).reduce((function(p,g){var y=nt(p,2),x=y[0],v=y[1];return xa(g)?(x.push(g),v.push(g)):Qt(g)?x.push(g):v.push(g),[x,v]}),[[],[]])})(l),i=nt(r,2),s=i[0],o=i[1],f=function(h){return h?h.content:""};return[Qm(s,"old",f).join(`
323
- `),Qm(o,"new",f).join(`
324
- `)]}function eu(l){return{type:"root",children:l}}function vS(l,r){if(r.oldSource){var i=(function(g,y){return y.reduce(yS,g.split(`
325
- `)).join(`
326
- `)})(r.oldSource,l),s=r.highlight?function(g){return r.refractor.highlight(g,r.language)}:function(g){return[{type:"text",value:g}]};return[eu(s(r.oldSource)),eu(s(i))]}var o=nt(bS(l),2),f=o[0],h=o[1],p=r.highlight?function(g){return eu(r.refractor.highlight(g,r.language))}:function(g){return eu([{type:"text",value:g}])};return[p(f),p(h)]}function Fp(l){return l.map((function(r){return Re({},r)}))}function xS(l,r){return[].concat(ml(Fp(l.slice(0,-1))),[r])}function SS(l){var r=l[l.length-1];if(r.type==="text")return r;throw new Error("Invalid token path with leaf of type ".concat(r.type))}var ES=["children"];function Vp(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(l.children){var s=l.children,o=Wn(l,ES);i.push(o);var f,h=vo(s);try{for(h.s();!(f=h.n()).done;)Vp(f.value,r,i)}catch(p){h.e(p)}finally{h.f()}i.pop()}else r.push(Fp([].concat(ml(i.slice(1)),[l])));return r}function NS(l){return l.reduce((function(r,i){var s=r[r.length-1],o=(function(g){var y=SS(g);return y.value.includes(`
327
- `)?y.value.split(`
328
- `).map((function(x){return xS(g,Re(Re({},y),{},{value:x}))})):[g]})(i),f=Iv(o),h=f[0],p=f.slice(1);return[].concat(ml(r.slice(0,-1)),[[].concat(ml(s),[h])],ml(p.map((function(g){return[g]}))))}),[[]])}function Jm(l){return NS(Vp(l))}var AS=function(l,r,i){var s=(i=typeof i=="function"?i:void 0)?i(l,r):void 0;return s===void 0?mu(l,r,void 0,i):!!s},wS=function(l,r){return mu(l,r)},TS=function(l){var r=l==null?0:l.length;return r?l[r-1]:void 0};function _S(l,r){if(!l.children)throw new Error("parent node missing children property");var i,s,o=TS(l.children);return o&&(s=r,(i=o).type===s.type&&(i.type==="text"||i.children&&s.children&&AS(i,s,(function(f,h,p){return p==="chlidren"||wS(f,h)}))))?l.children[l.children.length-1]=(function(f,h){return"value"in f&&"value"in h?Re(Re({},f),{},{value:"".concat(f.value).concat(h.value)}):f})(o,r):l.children.push(r),l.children[l.children.length-1]}function Wm(l){var r,i={type:"root",children:[]},s=vo(l);try{var o=function(){var f=r.value;f.reduce((function(h,p,g){return _S(h,g===f.length-1?Re({},p):Re(Re({},p),{},{children:[]}))}),i)};for(s.s();!(r=s.n()).done;)o()}catch(f){s.e(f)}finally{s.f()}return i}var jo=Ti((function(l){var r=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};r.Diff=function(i,s){return[i,s]},r.prototype.diff_main=function(i,s,o,f){f===void 0&&(f=this.Diff_Timeout<=0?Number.MAX_VALUE:new Date().getTime()+1e3*this.Diff_Timeout);var h=f;if(i==null||s==null)throw new Error("Null input. (diff_main)");if(i==s)return i?[new r.Diff(0,i)]:[];o===void 0&&(o=!0);var p=o,g=this.diff_commonPrefix(i,s),y=i.substring(0,g);i=i.substring(g),s=s.substring(g),g=this.diff_commonSuffix(i,s);var x=i.substring(i.length-g);i=i.substring(0,i.length-g),s=s.substring(0,s.length-g);var v=this.diff_compute_(i,s,p,h);return y&&v.unshift(new r.Diff(0,y)),x&&v.push(new r.Diff(0,x)),this.diff_cleanupMerge(v),v},r.prototype.diff_compute_=function(i,s,o,f){var h;if(!i)return[new r.Diff(1,s)];if(!s)return[new r.Diff(-1,i)];var p=i.length>s.length?i:s,g=i.length>s.length?s:i,y=p.indexOf(g);if(y!=-1)return h=[new r.Diff(1,p.substring(0,y)),new r.Diff(0,g),new r.Diff(1,p.substring(y+g.length))],i.length>s.length&&(h[0][0]=h[2][0]=-1),h;if(g.length==1)return[new r.Diff(-1,i),new r.Diff(1,s)];var x=this.diff_halfMatch_(i,s);if(x){var v=x[0],w=x[1],A=x[2],_=x[3],O=x[4],R=this.diff_main(v,A,o,f),k=this.diff_main(w,_,o,f);return R.concat([new r.Diff(0,O)],k)}return o&&i.length>100&&s.length>100?this.diff_lineMode_(i,s,f):this.diff_bisect_(i,s,f)},r.prototype.diff_lineMode_=function(i,s,o){var f=this.diff_linesToChars_(i,s);i=f.chars1,s=f.chars2;var h=f.lineArray,p=this.diff_main(i,s,!1,o);this.diff_charsToLines_(p,h),this.diff_cleanupSemantic(p),p.push(new r.Diff(0,""));for(var g=0,y=0,x=0,v="",w="";g<p.length;){switch(p[g][0]){case 1:x++,w+=p[g][1];break;case-1:y++,v+=p[g][1];break;case 0:if(y>=1&&x>=1){p.splice(g-y-x,y+x),g=g-y-x;for(var A=this.diff_main(v,w,!1,o),_=A.length-1;_>=0;_--)p.splice(g,0,A[_]);g+=A.length}x=0,y=0,v="",w=""}g++}return p.pop(),p},r.prototype.diff_bisect_=function(i,s,o){for(var f=i.length,h=s.length,p=Math.ceil((f+h)/2),g=p,y=2*p,x=new Array(y),v=new Array(y),w=0;w<y;w++)x[w]=-1,v[w]=-1;x[g+1]=0,v[g+1]=0;for(var A=f-h,_=A%2!=0,O=0,R=0,k=0,Y=0,T=0;T<p&&!(new Date().getTime()>o);T++){for(var Z=-T+O;Z<=T-R;Z+=2){for(var F=g+Z,V=(le=Z==-T||Z!=T&&x[F-1]<x[F+1]?x[F+1]:x[F-1]+1)-Z;le<f&&V<h&&i.charAt(le)==s.charAt(V);)le++,V++;if(x[F]=le,le>f)R+=2;else if(V>h)O+=2;else if(_&&(te=g+A-Z)>=0&&te<y&&v[te]!=-1&&le>=(ee=f-v[te]))return this.diff_bisectSplit_(i,s,le,V,o)}for(var X=-T+k;X<=T-Y;X+=2){for(var ee,te=g+X,ae=(ee=X==-T||X!=T&&v[te-1]<v[te+1]?v[te+1]:v[te-1]+1)-X;ee<f&&ae<h&&i.charAt(f-ee-1)==s.charAt(h-ae-1);)ee++,ae++;if(v[te]=ee,ee>f)Y+=2;else if(ae>h)k+=2;else if(!_&&(F=g+A-X)>=0&&F<y&&x[F]!=-1){var le;if(V=g+(le=x[F])-F,le>=(ee=f-ee))return this.diff_bisectSplit_(i,s,le,V,o)}}}return[new r.Diff(-1,i),new r.Diff(1,s)]},r.prototype.diff_bisectSplit_=function(i,s,o,f,h){var p=i.substring(0,o),g=s.substring(0,f),y=i.substring(o),x=s.substring(f),v=this.diff_main(p,g,!1,h),w=this.diff_main(y,x,!1,h);return v.concat(w)},r.prototype.diff_linesToChars_=function(i,s){var o=[],f={};function h(y){for(var x="",v=0,w=-1,A=o.length;w<y.length-1;){(w=y.indexOf(`
329
- `,v))==-1&&(w=y.length-1);var _=y.substring(v,w+1);(f.hasOwnProperty?f.hasOwnProperty(_):f[_]!==void 0)?x+=String.fromCharCode(f[_]):(A==p&&(_=y.substring(v),w=y.length),x+=String.fromCharCode(A),f[_]=A,o[A++]=_),v=w+1}return x}o[0]="";var p=4e4,g=h(i);return p=65535,{chars1:g,chars2:h(s),lineArray:o}},r.prototype.diff_charsToLines_=function(i,s){for(var o=0;o<i.length;o++){for(var f=i[o][1],h=[],p=0;p<f.length;p++)h[p]=s[f.charCodeAt(p)];i[o][1]=h.join("")}},r.prototype.diff_commonPrefix=function(i,s){if(!i||!s||i.charAt(0)!=s.charAt(0))return 0;for(var o=0,f=Math.min(i.length,s.length),h=f,p=0;o<h;)i.substring(p,h)==s.substring(p,h)?p=o=h:f=h,h=Math.floor((f-o)/2+o);return h},r.prototype.diff_commonSuffix=function(i,s){if(!i||!s||i.charAt(i.length-1)!=s.charAt(s.length-1))return 0;for(var o=0,f=Math.min(i.length,s.length),h=f,p=0;o<h;)i.substring(i.length-h,i.length-p)==s.substring(s.length-h,s.length-p)?p=o=h:f=h,h=Math.floor((f-o)/2+o);return h},r.prototype.diff_commonOverlap_=function(i,s){var o=i.length,f=s.length;if(o==0||f==0)return 0;o>f?i=i.substring(o-f):o<f&&(s=s.substring(0,o));var h=Math.min(o,f);if(i==s)return h;for(var p=0,g=1;;){var y=i.substring(h-g),x=s.indexOf(y);if(x==-1)return p;g+=x,x!=0&&i.substring(h-g)!=s.substring(0,g)||(p=g,g++)}},r.prototype.diff_halfMatch_=function(i,s){if(this.Diff_Timeout<=0)return null;var o=i.length>s.length?i:s,f=i.length>s.length?s:i;if(o.length<4||2*f.length<o.length)return null;var h=this;function p(O,R,k){for(var Y,T,Z,F,V=O.substring(k,k+Math.floor(O.length/4)),X=-1,ee="";(X=R.indexOf(V,X+1))!=-1;){var te=h.diff_commonPrefix(O.substring(k),R.substring(X)),ae=h.diff_commonSuffix(O.substring(0,k),R.substring(0,X));ee.length<ae+te&&(ee=R.substring(X-ae,X)+R.substring(X,X+te),Y=O.substring(0,k-ae),T=O.substring(k+te),Z=R.substring(0,X-ae),F=R.substring(X+te))}return 2*ee.length>=O.length?[Y,T,Z,F,ee]:null}var g,y,x,v,w,A=p(o,f,Math.ceil(o.length/4)),_=p(o,f,Math.ceil(o.length/2));return A||_?(g=_?A&&A[4].length>_[4].length?A:_:A,i.length>s.length?(y=g[0],x=g[1],v=g[2],w=g[3]):(v=g[0],w=g[1],y=g[2],x=g[3]),[y,x,v,w,g[4]]):null},r.prototype.diff_cleanupSemantic=function(i){for(var s=!1,o=[],f=0,h=null,p=0,g=0,y=0,x=0,v=0;p<i.length;)i[p][0]==0?(o[f++]=p,g=x,y=v,x=0,v=0,h=i[p][1]):(i[p][0]==1?x+=i[p][1].length:v+=i[p][1].length,h&&h.length<=Math.max(g,y)&&h.length<=Math.max(x,v)&&(i.splice(o[f-1],0,new r.Diff(-1,h)),i[o[f-1]+1][0]=1,f--,p=--f>0?o[f-1]:-1,g=0,y=0,x=0,v=0,h=null,s=!0)),p++;for(s&&this.diff_cleanupMerge(i),this.diff_cleanupSemanticLossless(i),p=1;p<i.length;){if(i[p-1][0]==-1&&i[p][0]==1){var w=i[p-1][1],A=i[p][1],_=this.diff_commonOverlap_(w,A),O=this.diff_commonOverlap_(A,w);_>=O?(_>=w.length/2||_>=A.length/2)&&(i.splice(p,0,new r.Diff(0,A.substring(0,_))),i[p-1][1]=w.substring(0,w.length-_),i[p+1][1]=A.substring(_),p++):(O>=w.length/2||O>=A.length/2)&&(i.splice(p,0,new r.Diff(0,w.substring(0,O))),i[p-1][0]=1,i[p-1][1]=A.substring(0,A.length-O),i[p+1][0]=-1,i[p+1][1]=w.substring(O),p++),p++}p++}},r.prototype.diff_cleanupSemanticLossless=function(i){function s(O,R){if(!O||!R)return 6;var k=O.charAt(O.length-1),Y=R.charAt(0),T=k.match(r.nonAlphaNumericRegex_),Z=Y.match(r.nonAlphaNumericRegex_),F=T&&k.match(r.whitespaceRegex_),V=Z&&Y.match(r.whitespaceRegex_),X=F&&k.match(r.linebreakRegex_),ee=V&&Y.match(r.linebreakRegex_),te=X&&O.match(r.blanklineEndRegex_),ae=ee&&R.match(r.blanklineStartRegex_);return te||ae?5:X||ee?4:T&&!F&&V?3:F||V?2:T||Z?1:0}for(var o=1;o<i.length-1;){if(i[o-1][0]==0&&i[o+1][0]==0){var f=i[o-1][1],h=i[o][1],p=i[o+1][1],g=this.diff_commonSuffix(f,h);if(g){var y=h.substring(h.length-g);f=f.substring(0,f.length-g),h=y+h.substring(0,h.length-g),p=y+p}for(var x=f,v=h,w=p,A=s(f,h)+s(h,p);h.charAt(0)===p.charAt(0);){f+=h.charAt(0),h=h.substring(1)+p.charAt(0),p=p.substring(1);var _=s(f,h)+s(h,p);_>=A&&(A=_,x=f,v=h,w=p)}i[o-1][1]!=x&&(x?i[o-1][1]=x:(i.splice(o-1,1),o--),i[o][1]=v,w?i[o+1][1]=w:(i.splice(o+1,1),o--))}o++}},r.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,r.whitespaceRegex_=/\s/,r.linebreakRegex_=/[\r\n]/,r.blanklineEndRegex_=/\n\r?\n$/,r.blanklineStartRegex_=/^\r?\n\r?\n/,r.prototype.diff_cleanupEfficiency=function(i){for(var s=!1,o=[],f=0,h=null,p=0,g=!1,y=!1,x=!1,v=!1;p<i.length;)i[p][0]==0?(i[p][1].length<this.Diff_EditCost&&(x||v)?(o[f++]=p,g=x,y=v,h=i[p][1]):(f=0,h=null),x=v=!1):(i[p][0]==-1?v=!0:x=!0,h&&(g&&y&&x&&v||h.length<this.Diff_EditCost/2&&g+y+x+v==3)&&(i.splice(o[f-1],0,new r.Diff(-1,h)),i[o[f-1]+1][0]=1,f--,h=null,g&&y?(x=v=!0,f=0):(p=--f>0?o[f-1]:-1,x=v=!1),s=!0)),p++;s&&this.diff_cleanupMerge(i)},r.prototype.diff_cleanupMerge=function(i){i.push(new r.Diff(0,""));for(var s,o=0,f=0,h=0,p="",g="";o<i.length;)switch(i[o][0]){case 1:h++,g+=i[o][1],o++;break;case-1:f++,p+=i[o][1],o++;break;case 0:f+h>1?(f!==0&&h!==0&&((s=this.diff_commonPrefix(g,p))!==0&&(o-f-h>0&&i[o-f-h-1][0]==0?i[o-f-h-1][1]+=g.substring(0,s):(i.splice(0,0,new r.Diff(0,g.substring(0,s))),o++),g=g.substring(s),p=p.substring(s)),(s=this.diff_commonSuffix(g,p))!==0&&(i[o][1]=g.substring(g.length-s)+i[o][1],g=g.substring(0,g.length-s),p=p.substring(0,p.length-s))),o-=f+h,i.splice(o,f+h),p.length&&(i.splice(o,0,new r.Diff(-1,p)),o++),g.length&&(i.splice(o,0,new r.Diff(1,g)),o++),o++):o!==0&&i[o-1][0]==0?(i[o-1][1]+=i[o][1],i.splice(o,1)):o++,h=0,f=0,p="",g=""}i[i.length-1][1]===""&&i.pop();var y=!1;for(o=1;o<i.length-1;)i[o-1][0]==0&&i[o+1][0]==0&&(i[o][1].substring(i[o][1].length-i[o-1][1].length)==i[o-1][1]?(i[o][1]=i[o-1][1]+i[o][1].substring(0,i[o][1].length-i[o-1][1].length),i[o+1][1]=i[o-1][1]+i[o+1][1],i.splice(o-1,1),y=!0):i[o][1].substring(0,i[o+1][1].length)==i[o+1][1]&&(i[o-1][1]+=i[o+1][1],i[o][1]=i[o][1].substring(i[o+1][1].length)+i[o+1][1],i.splice(o+1,1),y=!0)),o++;y&&this.diff_cleanupMerge(i)},r.prototype.diff_xIndex=function(i,s){var o,f=0,h=0,p=0,g=0;for(o=0;o<i.length&&(i[o][0]!==1&&(f+=i[o][1].length),i[o][0]!==-1&&(h+=i[o][1].length),!(f>s));o++)p=f,g=h;return i.length!=o&&i[o][0]===-1?g:g+(s-p)},r.prototype.diff_prettyHtml=function(i){for(var s=[],o=/&/g,f=/</g,h=/>/g,p=/\n/g,g=0;g<i.length;g++){var y=i[g][0],x=i[g][1].replace(o,"&amp;").replace(f,"&lt;").replace(h,"&gt;").replace(p,"&para;<br>");switch(y){case 1:s[g]='<ins style="background:#e6ffe6;">'+x+"</ins>";break;case-1:s[g]='<del style="background:#ffe6e6;">'+x+"</del>";break;case 0:s[g]="<span>"+x+"</span>"}}return s.join("")},r.prototype.diff_text1=function(i){for(var s=[],o=0;o<i.length;o++)i[o][0]!==1&&(s[o]=i[o][1]);return s.join("")},r.prototype.diff_text2=function(i){for(var s=[],o=0;o<i.length;o++)i[o][0]!==-1&&(s[o]=i[o][1]);return s.join("")},r.prototype.diff_levenshtein=function(i){for(var s=0,o=0,f=0,h=0;h<i.length;h++){var p=i[h][0],g=i[h][1];switch(p){case 1:o+=g.length;break;case-1:f+=g.length;break;case 0:s+=Math.max(o,f),o=0,f=0}}return s+=Math.max(o,f)},r.prototype.diff_toDelta=function(i){for(var s=[],o=0;o<i.length;o++)switch(i[o][0]){case 1:s[o]="+"+encodeURI(i[o][1]);break;case-1:s[o]="-"+i[o][1].length;break;case 0:s[o]="="+i[o][1].length}return s.join(" ").replace(/%20/g," ")},r.prototype.diff_fromDelta=function(i,s){for(var o=[],f=0,h=0,p=s.split(/\t/g),g=0;g<p.length;g++){var y=p[g].substring(1);switch(p[g].charAt(0)){case"+":try{o[f++]=new r.Diff(1,decodeURI(y))}catch{throw new Error("Illegal escape in diff_fromDelta: "+y)}break;case"-":case"=":var x=parseInt(y,10);if(isNaN(x)||x<0)throw new Error("Invalid number in diff_fromDelta: "+y);var v=i.substring(h,h+=x);p[g].charAt(0)=="="?o[f++]=new r.Diff(0,v):o[f++]=new r.Diff(-1,v);break;default:if(p[g])throw new Error("Invalid diff operation in diff_fromDelta: "+p[g])}}if(h!=i.length)throw new Error("Delta length ("+h+") does not equal source text length ("+i.length+").");return o},r.prototype.match_main=function(i,s,o){if(i==null||s==null||o==null)throw new Error("Null input. (match_main)");return o=Math.max(0,Math.min(o,i.length)),i==s?0:i.length?i.substring(o,o+s.length)==s?o:this.match_bitap_(i,s,o):-1},r.prototype.match_bitap_=function(i,s,o){if(s.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var f=this.match_alphabet_(s),h=this;function p(V,X){var ee=V/s.length,te=Math.abs(o-X);return h.Match_Distance?ee+te/h.Match_Distance:te?1:ee}var g=this.Match_Threshold,y=i.indexOf(s,o);y!=-1&&(g=Math.min(p(0,y),g),(y=i.lastIndexOf(s,o+s.length))!=-1&&(g=Math.min(p(0,y),g)));var x,v,w=1<<s.length-1;y=-1;for(var A,_=s.length+i.length,O=0;O<s.length;O++){for(x=0,v=_;x<v;)p(O,o+v)<=g?x=v:_=v,v=Math.floor((_-x)/2+x);_=v;var R=Math.max(1,o-v+1),k=Math.min(o+v,i.length)+s.length,Y=Array(k+2);Y[k+1]=(1<<O)-1;for(var T=k;T>=R;T--){var Z=f[i.charAt(T-1)];if(Y[T]=O===0?(Y[T+1]<<1|1)&Z:(Y[T+1]<<1|1)&Z|(A[T+1]|A[T])<<1|1|A[T+1],Y[T]&w){var F=p(O,T-1);if(F<=g){if(g=F,!((y=T-1)>o))break;R=Math.max(1,2*o-y)}}}if(p(O+1,o)>g)break;A=Y}return y},r.prototype.match_alphabet_=function(i){for(var s={},o=0;o<i.length;o++)s[i.charAt(o)]=0;for(o=0;o<i.length;o++)s[i.charAt(o)]|=1<<i.length-o-1;return s},r.prototype.patch_addContext_=function(i,s){if(s.length!=0){if(i.start2===null)throw Error("patch not initialized");for(var o=s.substring(i.start2,i.start2+i.length1),f=0;s.indexOf(o)!=s.lastIndexOf(o)&&o.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)f+=this.Patch_Margin,o=s.substring(i.start2-f,i.start2+i.length1+f);f+=this.Patch_Margin;var h=s.substring(i.start2-f,i.start2);h&&i.diffs.unshift(new r.Diff(0,h));var p=s.substring(i.start2+i.length1,i.start2+i.length1+f);p&&i.diffs.push(new r.Diff(0,p)),i.start1-=h.length,i.start2-=h.length,i.length1+=h.length+p.length,i.length2+=h.length+p.length}},r.prototype.patch_make=function(i,s,o){var f,h;if(typeof i=="string"&&typeof s=="string"&&o===void 0)f=i,(h=this.diff_main(f,s,!0)).length>2&&(this.diff_cleanupSemantic(h),this.diff_cleanupEfficiency(h));else if(i&&typeof i=="object"&&s===void 0&&o===void 0)h=i,f=this.diff_text1(h);else if(typeof i=="string"&&s&&typeof s=="object"&&o===void 0)f=i,h=s;else{if(typeof i!="string"||typeof s!="string"||!o||typeof o!="object")throw new Error("Unknown call format to patch_make.");f=i,h=o}if(h.length===0)return[];for(var p=[],g=new r.patch_obj,y=0,x=0,v=0,w=f,A=f,_=0;_<h.length;_++){var O=h[_][0],R=h[_][1];switch(y||O===0||(g.start1=x,g.start2=v),O){case 1:g.diffs[y++]=h[_],g.length2+=R.length,A=A.substring(0,v)+R+A.substring(v);break;case-1:g.length1+=R.length,g.diffs[y++]=h[_],A=A.substring(0,v)+A.substring(v+R.length);break;case 0:R.length<=2*this.Patch_Margin&&y&&h.length!=_+1?(g.diffs[y++]=h[_],g.length1+=R.length,g.length2+=R.length):R.length>=2*this.Patch_Margin&&y&&(this.patch_addContext_(g,w),p.push(g),g=new r.patch_obj,y=0,w=A,x=v)}O!==1&&(x+=R.length),O!==-1&&(v+=R.length)}return y&&(this.patch_addContext_(g,w),p.push(g)),p},r.prototype.patch_deepCopy=function(i){for(var s=[],o=0;o<i.length;o++){var f=i[o],h=new r.patch_obj;h.diffs=[];for(var p=0;p<f.diffs.length;p++)h.diffs[p]=new r.Diff(f.diffs[p][0],f.diffs[p][1]);h.start1=f.start1,h.start2=f.start2,h.length1=f.length1,h.length2=f.length2,s[o]=h}return s},r.prototype.patch_apply=function(i,s){if(i.length==0)return[s,[]];i=this.patch_deepCopy(i);var o=this.patch_addPadding(i);s=o+s+o,this.patch_splitMax(i);for(var f=0,h=[],p=0;p<i.length;p++){var g,y,x=i[p].start2+f,v=this.diff_text1(i[p].diffs),w=-1;if(v.length>this.Match_MaxBits?(g=this.match_main(s,v.substring(0,this.Match_MaxBits),x))!=-1&&((w=this.match_main(s,v.substring(v.length-this.Match_MaxBits),x+v.length-this.Match_MaxBits))==-1||g>=w)&&(g=-1):g=this.match_main(s,v,x),g==-1)h[p]=!1,f-=i[p].length2-i[p].length1;else if(h[p]=!0,f=g-x,v==(y=w==-1?s.substring(g,g+v.length):s.substring(g,w+this.Match_MaxBits)))s=s.substring(0,g)+this.diff_text2(i[p].diffs)+s.substring(g+v.length);else{var A=this.diff_main(v,y,!1);if(v.length>this.Match_MaxBits&&this.diff_levenshtein(A)/v.length>this.Patch_DeleteThreshold)h[p]=!1;else{this.diff_cleanupSemanticLossless(A);for(var _,O=0,R=0;R<i[p].diffs.length;R++){var k=i[p].diffs[R];k[0]!==0&&(_=this.diff_xIndex(A,O)),k[0]===1?s=s.substring(0,g+_)+k[1]+s.substring(g+_):k[0]===-1&&(s=s.substring(0,g+_)+s.substring(g+this.diff_xIndex(A,O+k[1].length))),k[0]!==-1&&(O+=k[1].length)}}}}return[s=s.substring(o.length,s.length-o.length),h]},r.prototype.patch_addPadding=function(i){for(var s=this.Patch_Margin,o="",f=1;f<=s;f++)o+=String.fromCharCode(f);for(f=0;f<i.length;f++)i[f].start1+=s,i[f].start2+=s;var h=i[0],p=h.diffs;if(p.length==0||p[0][0]!=0)p.unshift(new r.Diff(0,o)),h.start1-=s,h.start2-=s,h.length1+=s,h.length2+=s;else if(s>p[0][1].length){var g=s-p[0][1].length;p[0][1]=o.substring(p[0][1].length)+p[0][1],h.start1-=g,h.start2-=g,h.length1+=g,h.length2+=g}return(p=(h=i[i.length-1]).diffs).length==0||p[p.length-1][0]!=0?(p.push(new r.Diff(0,o)),h.length1+=s,h.length2+=s):s>p[p.length-1][1].length&&(g=s-p[p.length-1][1].length,p[p.length-1][1]+=o.substring(0,g),h.length1+=g,h.length2+=g),o},r.prototype.patch_splitMax=function(i){for(var s=this.Match_MaxBits,o=0;o<i.length;o++)if(!(i[o].length1<=s)){var f=i[o];i.splice(o--,1);for(var h=f.start1,p=f.start2,g="";f.diffs.length!==0;){var y=new r.patch_obj,x=!0;for(y.start1=h-g.length,y.start2=p-g.length,g!==""&&(y.length1=y.length2=g.length,y.diffs.push(new r.Diff(0,g)));f.diffs.length!==0&&y.length1<s-this.Patch_Margin;){var v=f.diffs[0][0],w=f.diffs[0][1];v===1?(y.length2+=w.length,p+=w.length,y.diffs.push(f.diffs.shift()),x=!1):v===-1&&y.diffs.length==1&&y.diffs[0][0]==0&&w.length>2*s?(y.length1+=w.length,h+=w.length,x=!1,y.diffs.push(new r.Diff(v,w)),f.diffs.shift()):(w=w.substring(0,s-y.length1-this.Patch_Margin),y.length1+=w.length,h+=w.length,v===0?(y.length2+=w.length,p+=w.length):x=!1,y.diffs.push(new r.Diff(v,w)),w==f.diffs[0][1]?f.diffs.shift():f.diffs[0][1]=f.diffs[0][1].substring(w.length))}g=(g=this.diff_text2(y.diffs)).substring(g.length-this.Patch_Margin);var A=this.diff_text1(f.diffs).substring(0,this.Patch_Margin);A!==""&&(y.length1+=A.length,y.length2+=A.length,y.diffs.length!==0&&y.diffs[y.diffs.length-1][0]===0?y.diffs[y.diffs.length-1][1]+=A:y.diffs.push(new r.Diff(0,A))),x||i.splice(++o,0,y)}}},r.prototype.patch_toText=function(i){for(var s=[],o=0;o<i.length;o++)s[o]=i[o];return s.join("")},r.prototype.patch_fromText=function(i){var s=[];if(!i)return s;for(var o=i.split(`
330
- `),f=0,h=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;f<o.length;){var p=o[f].match(h);if(!p)throw new Error("Invalid patch string: "+o[f]);var g=new r.patch_obj;for(s.push(g),g.start1=parseInt(p[1],10),p[2]===""?(g.start1--,g.length1=1):p[2]=="0"?g.length1=0:(g.start1--,g.length1=parseInt(p[2],10)),g.start2=parseInt(p[3],10),p[4]===""?(g.start2--,g.length2=1):p[4]=="0"?g.length2=0:(g.start2--,g.length2=parseInt(p[4],10)),f++;f<o.length;){var y=o[f].charAt(0);try{var x=decodeURI(o[f].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+x)}if(y=="-")g.diffs.push(new r.Diff(-1,x));else if(y=="+")g.diffs.push(new r.Diff(1,x));else if(y==" ")g.diffs.push(new r.Diff(0,x));else{if(y=="@")break;if(y!=="")throw new Error('Invalid patch mode "'+y+'" in: '+x)}f++}}return s},(r.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var i,s=["@@ -"+(this.length1===0?this.start1+",0":this.length1==1?this.start1+1:this.start1+1+","+this.length1)+" +"+(this.length2===0?this.start2+",0":this.length2==1?this.start2+1:this.start2+1+","+this.length2)+` @@
331
- `],o=0;o<this.diffs.length;o++){switch(this.diffs[o][0]){case 1:i="+";break;case-1:i="-";break;case 0:i=" "}s[o+1]=i+encodeURI(this.diffs[o][1])+`
332
- `}return s.join("").replace(/%20/g," ")},l.exports=r,l.exports.diff_match_patch=r,l.exports.DIFF_DELETE=-1,l.exports.DIFF_INSERT=1,l.exports.DIFF_EQUAL=0}));jo.DIFF_EQUAL;jo.DIFF_DELETE;jo.DIFF_INSERT;var CS=["enhancers"],OS=function(l){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.enhancers,o=s===void 0?[]:s,f=nt(vS(l,Wn(i,CS)),2),h=f[0],p=f[1],g=[Jm(h),Jm(p)],y=(r=[g[0],g[1]],o.reduce((function(O,R){return R(O)}),r)),x=nt(y,2),v=x[0],w=x[1],A=[v.map(Wm),w.map(Wm)],_=A[1];return{old:A[0].map((function(O){var R;return(R=O.children)!==null&&R!==void 0?R:[]})),new:_.map((function(O){var R;return(R=O.children)!==null&&R!==void 0?R:[]}))}};an.displayName="clike";an.aliases=[];function an(l){l.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}_i.displayName="c";_i.aliases=[];function _i(l){l.register(an),l.languages.c=l.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),l.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),l.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},l.languages.c.string],char:l.languages.c.char,comment:l.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:l.languages.c}}}}),l.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete l.languages.c.boolean}vu.displayName="cpp";vu.aliases=[];function vu(l){l.register(_i),(function(r){var i=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,s=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return i.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return i.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:i,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return s})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])})(l)}Ro.displayName="arduino";Ro.aliases=["ino"];function Ro(l){l.register(vu),l.languages.arduino=l.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),l.languages.ino=l.languages.arduino}ko.displayName="bash";ko.aliases=["sh","shell"];function ko(l){(function(r){var i="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",s={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:s,environment:{pattern:RegExp("\\$"+i),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+i),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+i),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:s}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+i),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},s.inside=r.languages.bash;for(var f=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],h=o.variable[1].inside,p=0;p<f.length;p++)h[f[p]]=r.languages.bash[f[p]];r.languages.sh=r.languages.bash,r.languages.shell=r.languages.bash})(l)}Mo.displayName="csharp";Mo.aliases=["cs","dotnet"];function Mo(l){l.register(an),(function(r){function i(re,E){return re.replace(/<<(\d+)>>/g,function(B,J){return"(?:"+E[+J]+")"})}function s(re,E,B){return RegExp(i(re,E),"")}function o(re,E){for(var B=0;B<E;B++)re=re.replace(/<<self>>/g,function(){return"(?:"+re+")"});return re.replace(/<<self>>/g,"[^\\s\\S]")}var f={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function h(re){return"\\b(?:"+re.trim().replace(/ /g,"|")+")\\b"}var p=h(f.typeDeclaration),g=RegExp(h(f.type+" "+f.typeDeclaration+" "+f.contextual+" "+f.other)),y=h(f.typeDeclaration+" "+f.contextual+" "+f.other),x=h(f.type+" "+f.typeDeclaration+" "+f.other),v=o(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),w=o(/\((?:[^()]|<<self>>)*\)/.source,2),A=/@?\b[A-Za-z_]\w*\b/.source,_=i(/<<0>>(?:\s*<<1>>)?/.source,[A,v]),O=i(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[y,_]),R=/\[\s*(?:,\s*)*\]/.source,k=i(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[O,R]),Y=i(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[v,w,R]),T=i(/\(<<0>>+(?:,<<0>>+)+\)/.source,[Y]),Z=i(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[T,O,R]),F={keyword:g,punctuation:/[<>()?,.:[\]]/},V=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,X=/"(?:\\.|[^\\"\r\n])*"/.source,ee=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;r.languages.csharp=r.languages.extend("clike",{string:[{pattern:s(/(^|[^$\\])<<0>>/.source,[ee]),lookbehind:!0,greedy:!0},{pattern:s(/(^|[^@$\\])<<0>>/.source,[X]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:s(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[O]),lookbehind:!0,inside:F},{pattern:s(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[A,Z]),lookbehind:!0,inside:F},{pattern:s(/(\busing\s+)<<0>>(?=\s*=)/.source,[A]),lookbehind:!0},{pattern:s(/(\b<<0>>\s+)<<1>>/.source,[p,_]),lookbehind:!0,inside:F},{pattern:s(/(\bcatch\s*\(\s*)<<0>>/.source,[O]),lookbehind:!0,inside:F},{pattern:s(/(\bwhere\s+)<<0>>/.source,[A]),lookbehind:!0},{pattern:s(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[k]),lookbehind:!0,inside:F},{pattern:s(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[Z,x,A]),inside:F}],keyword:g,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),r.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),r.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:s(/([(,]\s*)<<0>>(?=\s*:)/.source,[A]),lookbehind:!0,alias:"punctuation"}}),r.languages.insertBefore("csharp","class-name",{namespace:{pattern:s(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[A]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:s(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[w]),lookbehind:!0,alias:"class-name",inside:F},"return-type":{pattern:s(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[Z,O]),inside:F,alias:"class-name"},"constructor-invocation":{pattern:s(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[Z]),lookbehind:!0,inside:F,alias:"class-name"},"generic-method":{pattern:s(/<<0>>\s*<<1>>(?=\s*\()/.source,[A,v]),inside:{function:s(/^<<0>>/.source,[A]),generic:{pattern:RegExp(v),alias:"class-name",inside:F}}},"type-list":{pattern:s(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[p,_,A,Z,g.source,w,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:s(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[_,w]),lookbehind:!0,greedy:!0,inside:r.languages.csharp},keyword:g,"class-name":{pattern:RegExp(Z),greedy:!0,inside:F},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var te=X+"|"+V,ae=i(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[te]),le=o(i(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ae]),2),ne=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,P=i(/<<0>>(?:\s*\(<<1>>*\))?/.source,[O,le]);r.languages.insertBefore("csharp","class-name",{attribute:{pattern:s(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[ne,P]),lookbehind:!0,greedy:!0,inside:{target:{pattern:s(/^<<0>>(?=\s*:)/.source,[ne]),alias:"keyword"},"attribute-arguments":{pattern:s(/\(<<0>>*\)/.source,[le]),inside:r.languages.csharp},"class-name":{pattern:RegExp(O),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var K=/:[^}\r\n]+/.source,Q=o(i(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ae]),2),S=i(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Q,K]),L=o(i(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[te]),2),$=i(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,K]);function se(re,E){return{interpolation:{pattern:s(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[re]),lookbehind:!0,inside:{"format-string":{pattern:s(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[E,K]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:r.languages.csharp}}},string:/[\s\S]+/}}r.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:s(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[S]),lookbehind:!0,greedy:!0,inside:se(S,Q)},{pattern:s(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[$]),lookbehind:!0,greedy:!0,inside:se($,L)}],char:{pattern:RegExp(V),greedy:!0}}),r.languages.dotnet=r.languages.cs=r.languages.csharp})(l)}Ci.displayName="markup";Ci.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Ci(l){l.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},l.languages.markup.tag.inside["attr-value"].inside.entity=l.languages.markup.entity,l.languages.markup.doctype.inside["internal-subset"].inside=l.languages.markup,l.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(l.languages.markup.tag,"addInlined",{value:function(i,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:l.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var f={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};f["language-"+s]={pattern:/[\s\S]+/,inside:l.languages[s]};var h={};h[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:f},l.languages.insertBefore("markup","cdata",h)}}),Object.defineProperty(l.languages.markup.tag,"addAttribute",{value:function(r,i){l.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:l.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),l.languages.html=l.languages.markup,l.languages.mathml=l.languages.markup,l.languages.svg=l.languages.markup,l.languages.xml=l.languages.extend("markup",{}),l.languages.ssml=l.languages.xml,l.languages.atom=l.languages.xml,l.languages.rss=l.languages.xml}xl.displayName="css";xl.aliases=[];function xl(l){(function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var s=r.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(l)}Do.displayName="diff";Do.aliases=[];function Do(l){(function(r){r.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var i={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(i).forEach(function(s){var o=i[s],f=[];/^\w+$/.test(s)||f.push(/\w+/.exec(s)[0]),s==="diff"&&f.push("bold"),r.languages.diff[s]={pattern:RegExp("^(?:["+o+`].*(?:\r
333
- ?|
334
- |(?![\\s\\S])))+`,"m"),alias:f,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(s)[0]}}}}),Object.defineProperty(r.languages.diff,"PREFIXES",{value:i})})(l)}zo.displayName="go";zo.aliases=[];function zo(l){l.register(an),l.languages.go=l.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),l.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete l.languages.go["class-name"]}Lo.displayName="ini";Lo.aliases=[];function Lo(l){l.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}Uo.displayName="java";Uo.aliases=[];function Uo(l){l.register(an),(function(r){var i=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,s=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+s+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};r.languages.java=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+s+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+s+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:i,function:[r.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),r.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),r.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:i,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+s+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+s+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return i.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(l)}Bo.displayName="regex";Bo.aliases=[];function Bo(l){(function(r){var i={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},f={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},h="(?:[^\\\\-]|"+s.source+")",p=RegExp(h+"-"+h),g={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};r.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:p,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":i,"char-set":f,escape:s}},"special-escape":i,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":g}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":g}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(l)}xu.displayName="javascript";xu.aliases=["js"];function xu(l){l.register(an),l.languages.javascript=l.languages.extend("clike",{"class-name":[l.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),l.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,l.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:l.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:l.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:l.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:l.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:l.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),l.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:l.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),l.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),l.languages.markup&&(l.languages.markup.tag.addInlined("script","javascript"),l.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),l.languages.js=l.languages.javascript}Ho.displayName="json";Ho.aliases=["webmanifest"];function Ho(l){l.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},l.languages.webmanifest=l.languages.json}Go.displayName="kotlin";Go.aliases=["kt","kts"];function Go(l){l.register(an),(function(r){r.languages.kotlin=r.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete r.languages.kotlin["class-name"];var i={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:r.languages.kotlin}};r.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:i},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:i},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete r.languages.kotlin.string,r.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),r.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),r.languages.kt=r.languages.kotlin,r.languages.kts=r.languages.kotlin})(l)}Yo.displayName="less";Yo.aliases=[];function Yo(l){l.register(xl),l.languages.less=l.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),l.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}qo.displayName="lua";qo.aliases=[];function qo(l){l.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}Io.displayName="makefile";Io.aliases=[];function Io(l){l.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Xo.displayName="yaml";Xo.aliases=["yml"];function Xo(l){(function(r){var i=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+s.source+"(?:[ ]+"+i.source+")?|"+i.source+"(?:[ ]+"+s.source+")?)",f=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),h=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function p(g,y){y=(y||"").replace(/m/g,"")+"m";var x=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return g});return RegExp(x,y)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+f+"|"+h+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(h),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:i,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml})(l)}Zo.displayName="markdown";Zo.aliases=["md"];function Zo(l){l.register(Ci),(function(r){var i=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(p){return p=p.replace(/<inner>/g,function(){return i}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,f=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),h=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;r.languages.markdown=r.languages.extend("markup",{}),r.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+f+h+"(?:"+f+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+f+h+")(?:"+f+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+f+")"+h+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+f+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:r.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(g){p!==g&&(r.languages.markdown[p].inside.content.inside[g]=r.languages.markdown[g])})}),r.hooks.add("after-tokenize",function(p){if(p.language!=="markdown"&&p.language!=="md")return;function g(y){if(!(!y||typeof y=="string"))for(var x=0,v=y.length;x<v;x++){var w=y[x];if(w.type!=="code"){g(w.content);continue}var A=w.content[1],_=w.content[3];if(A&&_&&A.type==="code-language"&&_.type==="code-block"&&typeof A.content=="string"){var O=A.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");O=(/[a-z][\w-]*/i.exec(O)||[""])[0].toLowerCase();var R="language-"+O;_.alias?typeof _.alias=="string"?_.alias=[_.alias,R]:_.alias.push(R):_.alias=[R]}}}g(p.tokens)}),r.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var g="",y=0,x=p.classes.length;y<x;y++){var v=p.classes[y],w=/language-(.+)/.exec(v);if(w){g=w[1];break}}var A=r.languages[g];if(A)p.content=r.highlight(p.content.value,A,g);else if(g&&g!=="none"&&r.plugins.autoloader){var _="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);p.attributes.id=_,r.plugins.autoloader.loadLanguages(g,function(){var O=document.getElementById(_);O&&(O.innerHTML=r.highlight(O.textContent,r.languages[g],g))})}}}),RegExp(r.languages.markup.tag.pattern.source,"gi"),r.languages.md=r.languages.markdown})(l)}Fo.displayName="objectivec";Fo.aliases=["objc"];function Fo(l){l.register(_i),l.languages.objectivec=l.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete l.languages.objectivec["class-name"],l.languages.objc=l.languages.objectivec}Vo.displayName="perl";Vo.aliases=[];function Vo(l){(function(r){var i=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;r.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,i].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,i].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,i+/\s*/.source+i].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(l)}Su.displayName="markup-templating";Su.aliases=[];function Su(l){l.register(Ci),(function(r){function i(s,o){return"___"+s.toUpperCase()+o+"___"}Object.defineProperties(r.languages["markup-templating"]={},{buildPlaceholders:{value:function(s,o,f,h){if(s.language===o){var p=s.tokenStack=[];s.code=s.code.replace(f,function(g){if(typeof h=="function"&&!h(g))return g;for(var y=p.length,x;s.code.indexOf(x=i(o,y))!==-1;)++y;return p[y]=g,x}),s.grammar=r.languages.markup}}},tokenizePlaceholders:{value:function(s,o){if(s.language!==o||!s.tokenStack)return;s.grammar=r.languages[o];var f=0,h=Object.keys(s.tokenStack);function p(g){for(var y=0;y<g.length&&!(f>=h.length);y++){var x=g[y];if(typeof x=="string"||x.content&&typeof x.content=="string"){var v=h[f],w=s.tokenStack[v],A=typeof x=="string"?x:x.content,_=i(o,v),O=A.indexOf(_);if(O>-1){++f;var R=A.substring(0,O),k=new r.Token(o,r.tokenize(w,s.grammar),"language-"+o,w),Y=A.substring(O+_.length),T=[];R&&T.push.apply(T,p([R])),T.push(k),Y&&T.push.apply(T,p([Y])),typeof x=="string"?g.splice.apply(g,[y,1].concat(T)):x.content=T}}else x.content&&p(x.content)}return g}p(s.tokens)}}})})(l)}$o.displayName="php";$o.aliases=[];function $o(l){l.register(Su),(function(r){var i=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,s=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,f=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,h=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:i,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:s,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:f,punctuation:h};var p={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},g=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:p}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:p}}];r.languages.insertBefore("php","variable",{string:g,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:i,string:g,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:s,number:o,operator:f,punctuation:h}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(y){if(/<\?/.test(y.code)){var x=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(y,"php",x)}}),r.hooks.add("after-tokenize",function(y){r.languages["markup-templating"].tokenizePlaceholders(y,"php")})})(l)}Ko.displayName="python";Ko.aliases=["py"];function Ko(l){l.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},l.languages.python["string-interpolation"].inside.interpolation.inside.rest=l.languages.python,l.languages.py=l.languages.python}Qo.displayName="r";Qo.aliases=[];function Qo(l){l.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Jo.displayName="ruby";Jo.aliases=["rb"];function Jo(l){l.register(an),(function(r){r.languages.ruby=r.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),r.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var i={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:r.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete r.languages.ruby.function;var s="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;r.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+s+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:i,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:i,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),r.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+s),greedy:!0,inside:{interpolation:i,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:i,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:i,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+s),greedy:!0,inside:{interpolation:i,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:i,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete r.languages.ruby.string,r.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),r.languages.rb=r.languages.ruby})(l)}Wo.displayName="rust";Wo.aliases=[];function Wo(l){(function(r){for(var i=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)i=i.replace(/<self>/g,function(){return i});i=i.replace(/<self>/g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+i),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string})(l)}Po.displayName="sass";Po.aliases=[];function Po(l){l.register(xl),(function(r){r.languages.sass=r.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),r.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete r.languages.sass.atrule;var i=/\$[-\w]+|#\{\$[-\w]+\}/,s=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];r.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:i,operator:s}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:i,operator:s,important:r.languages.sass.important}}}),delete r.languages.sass.property,delete r.languages.sass.important,r.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(l)}ef.displayName="scss";ef.aliases=[];function ef(l){l.register(xl),l.languages.scss=l.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),l.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),l.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),l.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),l.languages.scss.atrule.inside.rest=l.languages.scss}tf.displayName="sql";tf.aliases=[];function tf(l){l.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}nf.displayName="swift";nf.aliases=[];function nf(l){l.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},l.languages.swift["string-literal"].forEach(function(r){r.inside.interpolation.inside=l.languages.swift})}af.displayName="typescript";af.aliases=["ts"];function af(l){l.register(xu),(function(r){r.languages.typescript=r.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var i=r.languages.extend("typescript",{});delete i["class-name"],r.languages.typescript["class-name"].inside=i,r.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:i}}}}),r.languages.ts=r.languages.typescript})(l)}Eu.displayName="basic";Eu.aliases=[];function Eu(l){l.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}lf.displayName="vbnet";lf.aliases=[];function lf(l){l.register(Eu),l.languages.vbnet=l.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class Oi{constructor(r,i,s){this.property=r,this.normal=i,s&&(this.space=s)}}Oi.prototype.property={};Oi.prototype.normal={};Oi.prototype.space=null;function $p(l,r){const i={},s={};let o=-1;for(;++o<l.length;)Object.assign(i,l[o].property),Object.assign(s,l[o].normal);return new Oi(i,s,r)}function wi(l){return l.toLowerCase()}class Xt{constructor(r,i){this.property=r,this.attribute=i}}Xt.prototype.space=null;Xt.prototype.boolean=!1;Xt.prototype.booleanish=!1;Xt.prototype.overloadedBoolean=!1;Xt.prototype.number=!1;Xt.prototype.commaSeparated=!1;Xt.prototype.spaceSeparated=!1;Xt.prototype.commaOrSpaceSeparated=!1;Xt.prototype.mustUseProperty=!1;Xt.prototype.defined=!1;let jS=0;const ye=wa(),Je=wa(),Kp=wa(),W=wa(),Le=wa(),pl=wa(),Ot=wa();function wa(){return 2**++jS}const uo=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:Je,commaOrSpaceSeparated:Ot,commaSeparated:pl,number:W,overloadedBoolean:Kp,spaceSeparated:Le},Symbol.toStringTag,{value:"Module"})),Qc=Object.keys(uo);class rf extends Xt{constructor(r,i,s,o){let f=-1;if(super(r,i),Pm(this,"space",o),typeof s=="number")for(;++f<Qc.length;){const h=Qc[f];Pm(this,Qc[f],(s&uo[h])===uo[h])}}}rf.prototype.defined=!0;function Pm(l,r,i){i&&(l[r]=i)}const RS={}.hasOwnProperty;function Sl(l){const r={},i={};let s;for(s in l.properties)if(RS.call(l.properties,s)){const o=l.properties[s],f=new rf(s,l.transform(l.attributes||{},s),o,l.space);l.mustUseProperty&&l.mustUseProperty.includes(s)&&(f.mustUseProperty=!0),r[s]=f,i[wi(s)]=s,i[wi(f.attribute)]=s}return new Oi(r,i,l.space)}const Qp=Sl({space:"xlink",transform(l,r){return"xlink:"+r.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Jp=Sl({space:"xml",transform(l,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Wp(l,r){return r in l?l[r]:r}function Pp(l,r){return Wp(l,r.toLowerCase())}const ey=Sl({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Pp,properties:{xmlns:null,xmlnsXLink:null}}),ty=Sl({transform(l,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Je,ariaAutoComplete:null,ariaBusy:Je,ariaChecked:Je,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Le,ariaCurrent:null,ariaDescribedBy:Le,ariaDetails:null,ariaDisabled:Je,ariaDropEffect:Le,ariaErrorMessage:null,ariaExpanded:Je,ariaFlowTo:Le,ariaGrabbed:Je,ariaHasPopup:null,ariaHidden:Je,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Le,ariaLevel:W,ariaLive:null,ariaModal:Je,ariaMultiLine:Je,ariaMultiSelectable:Je,ariaOrientation:null,ariaOwns:Le,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:Je,ariaReadOnly:Je,ariaRelevant:null,ariaRequired:Je,ariaRoleDescription:Le,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:Je,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null}}),kS=Sl({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Pp,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pl,acceptCharset:Le,accessKey:Le,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:Le,autoFocus:ye,autoPlay:ye,blocking:Le,capture:null,charSet:null,checked:ye,cite:null,className:Le,cols:W,colSpan:null,content:null,contentEditable:Je,controls:ye,controlsList:Le,coords:W|pl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:Kp,draggable:Je,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:Le,height:W,hidden:ye,high:W,href:null,hrefLang:null,htmlFor:Le,httpEquiv:Le,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:Le,itemRef:Le,itemScope:ye,itemType:Le,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ye,optimum:W,pattern:null,ping:Le,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:Le,required:ye,reversed:ye,rows:W,rowSpan:W,sandbox:Le,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:Je,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:Je,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Le,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:Je,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:W,security:null,unselectable:null}}),MS=Sl({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Wp,properties:{about:Ot,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:Le,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:pl,g2:pl,glyphName:pl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Ot,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Le,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ot,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ot,rev:Ot,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ot,requiredFeatures:Ot,requiredFonts:Ot,requiredFormats:Ot,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Ot,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ot,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ot,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),DS=/^data[-\w.:]+$/i,ep=/-[a-z]/g,zS=/[A-Z]/g;function LS(l,r){const i=wi(r);let s=r,o=Xt;if(i in l.normal)return l.property[l.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&DS.test(r)){if(r.charAt(4)==="-"){const f=r.slice(5).replace(ep,BS);s="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=r.slice(4);if(!ep.test(f)){let h=f.replace(zS,US);h.charAt(0)!=="-"&&(h="-"+h),r="data"+h}}o=rf}return new o(s,r)}function US(l){return"-"+l.toLowerCase()}function BS(l){return l.charAt(1).toUpperCase()}const HS=$p([Jp,Qp,ey,ty,kS],"html");$p([Jp,Qp,ey,ty,MS],"svg");const tp=/[#.]/g;function GS(l,r){const i=l||"",s={};let o=0,f,h;for(;o<i.length;){tp.lastIndex=o;const p=tp.exec(i),g=i.slice(o,p?p.index:i.length);g&&(f?f==="#"?s.id=g:Array.isArray(s.className)?s.className.push(g):s.className=[g]:h=g,o+=g.length),p&&(f=p[0],o++)}return{type:"element",tagName:h||r||"div",properties:s,children:[]}}function np(l){const r=String(l||"").trim();return r?r.split(/[ \t\n\r\f]+/g):[]}function ap(l){const r=[],i=String(l||"");let s=i.indexOf(","),o=0,f=!1;for(;!f;){s===-1&&(s=i.length,f=!0);const h=i.slice(o,s).trim();(h||!f)&&r.push(h),o=s+1,s=i.indexOf(",",o)}return r}const YS=new Set(["menu","submit","reset","button"]),ny={}.hasOwnProperty;function qS(l,r,i){return(function(o,f,...h){let p=-1,g;if(o==null)g={type:"root",children:[]},h.unshift(f);else if(g=GS(o,r),g.tagName=g.tagName.toLowerCase(),IS(f,g.tagName)){let y;for(y in f)ny.call(f,y)&&XS(l,g.properties,y,f[y])}else h.unshift(f);for(;++p<h.length;)so(g.children,h[p]);return g.type==="element"&&g.tagName==="template"&&(g.content={type:"root",children:g.children},g.children=[]),g})}function IS(l,r){return l==null||typeof l!="object"||Array.isArray(l)?!1:r==="input"||!l.type||typeof l.type!="string"?!0:"children"in l&&Array.isArray(l.children)?!1:r==="button"?YS.has(l.type.toLowerCase()):!("value"in l)}function XS(l,r,i,s){const o=LS(l,i);let f=-1,h;if(s!=null){if(typeof s=="number"){if(Number.isNaN(s))return;h=s}else typeof s=="boolean"?h=s:typeof s=="string"?o.spaceSeparated?h=np(s):o.commaSeparated?h=ap(s):o.commaOrSpaceSeparated?h=np(ap(s).join(" ")):h=lp(o,o.property,s):Array.isArray(s)?h=s.concat():h=o.property==="style"?ZS(s):String(s);if(Array.isArray(h)){const p=[];for(;++f<h.length;)p[f]=lp(o,o.property,h[f]);h=p}o.property==="className"&&Array.isArray(r.className)&&(h=r.className.concat(h)),r[o.property]=h}}function so(l,r){let i=-1;if(r!=null)if(typeof r=="string"||typeof r=="number")l.push({type:"text",value:String(r)});else if(Array.isArray(r))for(;++i<r.length;)so(l,r[i]);else if(typeof r=="object"&&"type"in r)r.type==="root"?so(l,r.children):l.push(r);else throw new Error("Expected node, nodes, or string, got `"+r+"`")}function lp(l,r,i){if(typeof i=="string"){if(l.number&&i&&!Number.isNaN(Number(i)))return Number(i);if((l.boolean||l.overloadedBoolean)&&(i===""||wi(i)===wi(r)))return!0}return i}function ZS(l){const r=[];let i;for(i in l)ny.call(l,i)&&r.push([i,l[i]].join(": "));return r.join("; ")}const FS=qS(HS,"div"),VS=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],ip={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function ay(l){const r=typeof l=="string"?l.charCodeAt(0):l;return r>=48&&r<=57}function $S(l){const r=typeof l=="string"?l.charCodeAt(0):l;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}function KS(l){const r=typeof l=="string"?l.charCodeAt(0):l;return r>=97&&r<=122||r>=65&&r<=90}function rp(l){return KS(l)||ay(l)}const up=document.createElement("i");function sp(l){const r="&"+l+";";up.innerHTML=r;const i=up.textContent;return i.charCodeAt(i.length-1)===59&&l!=="semi"||i===r?!1:i}const QS=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function JS(l,r){const i={},s=typeof i.additional=="string"?i.additional.charCodeAt(0):i.additional,o=[];let f=0,h=-1,p="",g,y;i.position&&("start"in i.position||"indent"in i.position?(y=i.position.indent,g=i.position.start):g=i.position);let x=(g?g.line:0)||1,v=(g?g.column:0)||1,w=_(),A;for(f--;++f<=l.length;)if(A===10&&(v=(y?y[h]:0)||1),A=l.charCodeAt(f),A===38){const k=l.charCodeAt(f+1);if(k===9||k===10||k===12||k===32||k===38||k===60||Number.isNaN(k)||s&&k===s){p+=String.fromCharCode(A),v++;continue}const Y=f+1;let T=Y,Z=Y,F;if(k===35){Z=++T;const P=l.charCodeAt(Z);P===88||P===120?(F="hexadecimal",Z=++T):F="decimal"}else F="named";let V="",X="",ee="";const te=F==="named"?rp:F==="decimal"?ay:$S;for(Z--;++Z<=l.length;){const P=l.charCodeAt(Z);if(!te(P))break;ee+=String.fromCharCode(P),F==="named"&&VS.includes(ee)&&(V=ee,X=sp(ee))}let ae=l.charCodeAt(Z)===59;if(ae){Z++;const P=F==="named"?sp(ee):!1;P&&(V=ee,X=P)}let le=1+Z-Y,ne="";if(!(!ae&&i.nonTerminated===!1))if(!ee)F!=="named"&&O(4,le);else if(F==="named"){if(ae&&!X)O(5,1);else if(V!==ee&&(Z=T+V.length,le=1+Z-T,ae=!1),!ae){const P=V?1:3;if(i.attribute){const K=l.charCodeAt(Z);K===61?(O(P,le),X=""):rp(K)?X="":O(P,le)}else O(P,le)}ne=X}else{ae||O(2,le);let P=Number.parseInt(ee,F==="hexadecimal"?16:10);if(WS(P))O(7,le),ne="�";else if(P in ip)O(6,le),ne=ip[P];else{let K="";PS(P)&&O(6,le),P>65535&&(P-=65536,K+=String.fromCharCode(P>>>10|55296),P=56320|P&1023),ne=K+String.fromCharCode(P)}}if(ne){R(),w=_(),f=Z-1,v+=Z-Y+1,o.push(ne);const P=_();P.offset++,i.reference&&i.reference.call(i.referenceContext||void 0,ne,{start:w,end:P},l.slice(Y-1,Z)),w=P}else ee=l.slice(Y-1,Z),p+=ee,v+=ee.length,f=Z-1}else A===10&&(x++,h++,v=0),Number.isNaN(A)?R():(p+=String.fromCharCode(A),v++);return o.join("");function _(){return{line:x,column:v,offset:f+((g?g.offset:0)||0)}}function O(k,Y){let T;i.warning&&(T=_(),T.column+=Y,T.offset+=Y,i.warning.call(i.warningContext||void 0,QS[k],T,k))}function R(){p&&(o.push(p),i.text&&i.text.call(i.textContext||void 0,p,{start:w,end:_()}),p="")}}function WS(l){return l>=55296&&l<=57343||l>1114111}function PS(l){return l>=1&&l<=8||l===11||l>=13&&l<=31||l>=127&&l<=159||l>=64976&&l<=65007||(l&65535)===65535||(l&65535)===65534}var eE=0,tu={},tt={util:{type:function(l){return Object.prototype.toString.call(l).slice(8,-1)},objId:function(l){return l.__id||Object.defineProperty(l,"__id",{value:++eE}),l.__id},clone:function l(r,i){i=i||{};var s,o;switch(tt.util.type(r)){case"Object":if(o=tt.util.objId(r),i[o])return i[o];s={},i[o]=s;for(var f in r)r.hasOwnProperty(f)&&(s[f]=l(r[f],i));return s;case"Array":return o=tt.util.objId(r),i[o]?i[o]:(s=[],i[o]=s,r.forEach(function(h,p){s[p]=l(h,i)}),s);default:return r}}},languages:{plain:tu,plaintext:tu,text:tu,txt:tu,extend:function(l,r){var i=tt.util.clone(tt.languages[l]);for(var s in r)i[s]=r[s];return i},insertBefore:function(l,r,i,s){s=s||tt.languages;var o=s[l],f={};for(var h in o)if(o.hasOwnProperty(h)){if(h==r)for(var p in i)i.hasOwnProperty(p)&&(f[p]=i[p]);i.hasOwnProperty(h)||(f[h]=o[h])}var g=s[l];return s[l]=f,tt.languages.DFS(tt.languages,function(y,x){x===g&&y!=l&&(this[y]=f)}),f},DFS:function l(r,i,s,o){o=o||{};var f=tt.util.objId;for(var h in r)if(r.hasOwnProperty(h)){i.call(r,h,r[h],s||h);var p=r[h],g=tt.util.type(p);g==="Object"&&!o[f(p)]?(o[f(p)]=!0,l(p,i,null,o)):g==="Array"&&!o[f(p)]&&(o[f(p)]=!0,l(p,i,h,o))}}},plugins:{},highlight:function(l,r,i){var s={code:l,grammar:r,language:i};if(tt.hooks.run("before-tokenize",s),!s.grammar)throw new Error('The language "'+s.language+'" has no grammar.');return s.tokens=tt.tokenize(s.code,s.grammar),tt.hooks.run("after-tokenize",s),xi.stringify(tt.util.encode(s.tokens),s.language)},tokenize:function(l,r){var i=r.rest;if(i){for(var s in i)r[s]=i[s];delete r.rest}var o=new tE;return lu(o,o.head,l),ly(l,o,r,o.head,0),aE(o)},hooks:{all:{},add:function(l,r){var i=tt.hooks.all;i[l]=i[l]||[],i[l].push(r)},run:function(l,r){var i=tt.hooks.all[l];if(!(!i||!i.length))for(var s=0,o;o=i[s++];)o(r)}},Token:xi};function xi(l,r,i,s){this.type=l,this.content=r,this.alias=i,this.length=(s||"").length|0}function cp(l,r,i,s){l.lastIndex=r;var o=l.exec(i);if(o&&s&&o[1]){var f=o[1].length;o.index+=f,o[0]=o[0].slice(f)}return o}function ly(l,r,i,s,o,f){for(var h in i)if(!(!i.hasOwnProperty(h)||!i[h])){var p=i[h];p=Array.isArray(p)?p:[p];for(var g=0;g<p.length;++g){if(f&&f.cause==h+","+g)return;var y=p[g],x=y.inside,v=!!y.lookbehind,w=!!y.greedy,A=y.alias;if(w&&!y.pattern.global){var _=y.pattern.toString().match(/[imsuy]*$/)[0];y.pattern=RegExp(y.pattern.source,_+"g")}for(var O=y.pattern||y,R=s.next,k=o;R!==r.tail&&!(f&&k>=f.reach);k+=R.value.length,R=R.next){var Y=R.value;if(r.length>l.length)return;if(!(Y instanceof xi)){var T=1,Z;if(w){if(Z=cp(O,k,l,v),!Z||Z.index>=l.length)break;var ee=Z.index,F=Z.index+Z[0].length,V=k;for(V+=R.value.length;ee>=V;)R=R.next,V+=R.value.length;if(V-=R.value.length,k=V,R.value instanceof xi)continue;for(var X=R;X!==r.tail&&(V<F||typeof X.value=="string");X=X.next)T++,V+=X.value.length;T--,Y=l.slice(k,V),Z.index-=k}else if(Z=cp(O,0,Y,v),!Z)continue;var ee=Z.index,te=Z[0],ae=Y.slice(0,ee),le=Y.slice(ee+te.length),ne=k+Y.length;f&&ne>f.reach&&(f.reach=ne);var P=R.prev;ae&&(P=lu(r,P,ae),k+=ae.length),nE(r,P,T);var K=new xi(h,x?tt.tokenize(te,x):te,A,te);if(R=lu(r,P,K),le&&lu(r,R,le),T>1){var Q={cause:h+","+g,reach:ne};ly(l,r,i,R.prev,k,Q),f&&Q.reach>f.reach&&(f.reach=Q.reach)}}}}}}function tE(){var l={value:null,prev:null,next:null},r={value:null,prev:l,next:null};l.next=r,this.head=l,this.tail=r,this.length=0}function lu(l,r,i){var s=r.next,o={value:i,prev:r,next:s};return r.next=o,s.prev=o,l.length++,o}function nE(l,r,i){for(var s=r.next,o=0;o<i&&s!==l.tail;o++)s=s.next;r.next=s,s.prev=r,l.length-=o}function aE(l){for(var r=[],i=l.head.next;i!==l.tail;)r.push(i.value),i=i.next;return r}const iy=tt,El={}.hasOwnProperty;function ry(){}ry.prototype=iy;const fe=new ry;fe.highlight=lE;fe.register=iE;fe.alias=rE;fe.registered=uE;fe.listLanguages=sE;fe.util.encode=cE;fe.Token.stringify=co;function lE(l,r){if(typeof l!="string")throw new TypeError("Expected `string` for `value`, got `"+l+"`");let i,s;if(r&&typeof r=="object")i=r;else{if(s=r,typeof s!="string")throw new TypeError("Expected `string` for `name`, got `"+s+"`");if(El.call(fe.languages,s))i=fe.languages[s];else throw new Error("Unknown language: `"+s+"` is not registered")}return{type:"root",children:iy.highlight.call(fe,l,i,s)}}function iE(l){if(typeof l!="function"||!l.displayName)throw new Error("Expected `function` for `syntax`, got `"+l+"`");El.call(fe.languages,l.displayName)||l(fe)}function rE(l,r){const i=fe.languages;let s={};typeof l=="string"?r&&(s[l]=r):s=l;let o;for(o in s)if(El.call(s,o)){const f=s[o],h=typeof f=="string"?[f]:f;let p=-1;for(;++p<h.length;)i[h[p]]=i[o]}}function uE(l){if(typeof l!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+l+"`");return El.call(fe.languages,l)}function sE(){const l=fe.languages,r=[];let i;for(i in l)El.call(l,i)&&typeof l[i]=="object"&&r.push(i);return r}function co(l,r){if(typeof l=="string")return{type:"text",value:l};if(Array.isArray(l)){const s=[];let o=-1;for(;++o<l.length;)l[o]!==null&&l[o]!==void 0&&l[o]!==""&&s.push(co(l[o],r));return s}const i={attributes:{},classes:["token",l.type],content:co(l.content,r),language:r,tag:"span",type:l.type};return l.alias&&i.classes.push(...typeof l.alias=="string"?[l.alias]:l.alias),fe.hooks.run("wrap",i),FS(i.tag+"."+i.classes.join("."),oE(i.attributes),i.content)}function cE(l){return l}function oE(l){let r;for(r in l)El.call(l,r)&&(l[r]=JS(l[r]));return l}fe.register(an);fe.register(_i);fe.register(vu);fe.register(Ro);fe.register(ko);fe.register(Mo);fe.register(Ci);fe.register(xl);fe.register(Do);fe.register(zo);fe.register(Lo);fe.register(Uo);fe.register(Bo);fe.register(xu);fe.register(Ho);fe.register(Go);fe.register(Yo);fe.register(qo);fe.register(Io);fe.register(Xo);fe.register(Zo);fe.register(Fo);fe.register(Vo);fe.register(Su);fe.register($o);fe.register(Ko);fe.register(Qo);fe.register(Jo);fe.register(Wo);fe.register(Po);fe.register(ef);fe.register(tf);fe.register(nf);fe.register(af);fe.register(Eu);fe.register(lf);const fE=[{value:"suggestion",label:"Suggestion"},{value:"must_fix",label:"Must Fix"},{value:"question",label:"Question"},{value:"nitpick",label:"Nitpick"}];function oo({onSave:l,onCancel:r,initialBody:i="",initialType:s="suggestion",file:o,line:f}){const[h,p]=H.useState(i),[g,y]=H.useState(s),x=H.useRef(null),v=bt(O=>O.setDraftComment);H.useEffect(()=>{var O;(O=x.current)==null||O.focus()},[]),H.useEffect(()=>{o!==void 0&&f!==void 0&&(h.trim()?v({body:h,type:g,file:o,line:f}):v(null))},[h,g,o,f,v]);function w(){h.trim()&&(v(null),l(h.trim(),g))}function A(){v(null),r()}function _(O){(O.metaKey||O.ctrlKey)&&O.key==="Enter"?(O.preventDefault(),w()):O.key==="Escape"&&(O.preventDefault(),A())}return d.jsxs("div",{className:"p-3 space-y-2",onKeyDown:_,children:[d.jsx("textarea",{ref:x,value:h,onChange:O=>p(O.target.value),placeholder:"Write a comment...",rows:3,className:"w-full bg-background border border-border rounded px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent"}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("select",{value:g,onChange:O=>y(O.target.value),className:"bg-background border border-border rounded px-2 py-1.5 text-text-primary text-xs focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",children:fE.map(O=>d.jsx("option",{value:O.value,children:O.label},O.value))}),d.jsx("div",{className:"flex-1"}),d.jsx("button",{onClick:A,className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"}),d.jsx("button",{onClick:w,disabled:!h.trim(),className:"px-3 py-1.5 text-xs font-medium rounded bg-accent/20 text-accent border border-accent/30 hover:bg-accent/30 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Save"})]})]})}const dE={must_fix:"Must Fix",suggestion:"Suggestion",question:"Question",nitpick:"Nitpick"};function hE({comments:l,isFormOpen:r,file:i,line:s,onAdd:o,onUpdate:f,onDelete:h,onOpenForm:p,onCloseForm:g}){const[y,x]=H.useState(null);return d.jsxs("div",{className:"border-t border-border bg-surface",children:[l.map(({comment:v,index:w})=>y===w?d.jsx(oo,{initialBody:v.body,initialType:v.type,file:i,line:s,onSave:(A,_)=>{f(w,A,_),x(null)},onCancel:()=>x(null)},w):d.jsxs("div",{className:"px-3 py-2 border-b border-border/50 group/comment",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx("span",{className:`text-[10px] font-bold px-1.5 py-0.5 rounded border ${wv[v.type]}`,children:dE[v.type]}),d.jsxs("span",{className:"text-text-secondary text-[10px] font-mono",children:[i,":",s]}),d.jsx("div",{className:"flex-1"}),d.jsx("button",{onClick:()=>x(w),className:"opacity-0 group-hover/comment:opacity-100 p-0.5 text-text-secondary hover:text-text-primary transition-all cursor-pointer",title:"Edit comment",children:d.jsx(mv,{className:"w-3 h-3"})}),d.jsx("button",{onClick:()=>h(w),className:"opacity-0 group-hover/comment:opacity-100 p-0.5 text-text-secondary hover:text-danger transition-all cursor-pointer",title:"Delete comment",children:d.jsx(Sv,{className:"w-3 h-3"})})]}),d.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap",children:v.body})]},w)),r&&y===null&&d.jsx(oo,{file:i,line:s,onSave:(v,w)=>{o(v,w),g()},onCancel:g}),!r&&l.length>0&&y===null&&d.jsxs("button",{onClick:p,className:"flex items-center gap-1 px-3 py-1.5 text-xs text-text-secondary hover:text-accent transition-colors cursor-pointer",children:[d.jsx(pp,{className:"w-3 h-3"}),"Add comment"]})]})}const gE={finding:Sa,suggestion:bo,question:mo,warning:Si};function mE({annotations:l,onDismiss:r}){return l.length===0?null:d.jsxs("div",{className:"border-t border-border bg-surface",children:[d.jsxs("div",{className:"px-3 py-1.5 flex items-center gap-1.5 border-b border-border/50",children:[d.jsx(mp,{className:"w-3 h-3 text-text-secondary"}),d.jsxs("span",{className:"text-[10px] font-semibold text-text-secondary uppercase tracking-wide",children:["Agent ",l.length===1?"Annotation":`Annotations (${l.length})`]})]}),l.map(i=>{const s=gE[i.type]??Sa,o=iu[i.category]??iu.other,f=Cm[i.category]??Cm.other;return d.jsxs("div",{className:"px-3 py-2 border-b border-border/50 group/annotation",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx(s,{className:`w-3.5 h-3.5 flex-shrink-0 ${o}`}),d.jsx("span",{className:`text-[10px] font-bold px-1.5 py-0.5 rounded border ${f}`,children:i.category}),d.jsx("span",{className:"text-text-secondary text-[10px]",children:i.source.agent}),d.jsx("div",{className:"flex-1"}),d.jsx("button",{onClick:()=>r(i.id),className:"opacity-0 group-hover/annotation:opacity-100 p-0.5 rounded hover:bg-text-primary/10 text-text-secondary transition-all cursor-pointer flex-shrink-0",title:"Dismiss",children:d.jsx(cu,{className:"w-3 h-3"})})]}),d.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap",children:i.body})]},i.id)})]})}function pE(){const{theme:l,toggleTheme:r}=bt();return d.jsx("button",{onClick:r,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:`Switch to ${l==="dark"?"light":"dark"} mode`,children:l==="dark"?d.jsx(vv,{className:"w-4 h-4"}):d.jsx(gv,{className:"w-4 h-4"})})}const op={highlight(l,r){return fe.highlight(l,r).children},registered(l){return fe.registered(l)}};function yE(l){return{typescript:"typescript",ts:"typescript",tsx:"tsx",javascript:"javascript",js:"javascript",jsx:"jsx",json:"json",css:"css",html:"markup",xml:"markup",markdown:"markdown",md:"markdown",python:"python",py:"python",rust:"rust",rs:"rust",go:"go",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",ruby:"ruby",rb:"ruby",php:"php",shell:"bash",bash:"bash",sh:"bash",yaml:"yaml",yml:"yaml",toml:"toml",sql:"sql",graphql:"graphql",scss:"scss",sass:"sass",less:"less",swift:"swift",kotlin:"kotlin",scala:"scala",lua:"lua",r:"r",perl:"perl",diff:"diff"}[l.toLowerCase()]??null}function fo(l){return Ea(l)||Qt(l)?l.lineNumber:xa(l)?l.newLineNumber:0}function bE(l,r){const i={};for(const s of l)for(const o of s.changes){const f=fo(o),h=`${r}:${f}`;i[h]||(i[h]=qt(o))}return i}function vE(l,r,i=0){const s=/^diff --git /gm,o=[];let f;for(;(f=s.exec(l))!==null;)o.push(f.index);let h=0;for(let p=0;p<o.length;p++){const g=o[p],y=p+1<o.length?o[p+1]:l.length,x=l.slice(g,y);if(x.includes(`a/${r}`)||x.includes(`b/${r}`)){if(h===i)return x;h++}}return null}function xE(){const{diffSet:l,rawDiff:r,selectedFile:i,viewMode:s,setViewMode:o,comments:f,activeCommentKey:h,addComment:p,updateComment:g,deleteComment:y,setActiveCommentKey:x,toggleHotkeyGuide:v,toggleWorkflowTips:w,focusedHunkIndex:A,setHunkCount:_,annotations:O,dismissAnnotation:R}=bt(),k=H.useMemo(()=>!l||!i?null:l.files.find(S=>jt(S)===i)??null,[l,i]),Y=H.useMemo(()=>{if(!r||!i||!l)return null;const S=Xc(i);let L=0;for(const $ of l.files){if(jt($)===i)break;$.path===S&&L++}return vE(r,S,L)},[r,i,l]),T=H.useMemo(()=>{if(!Y)return[];try{return $v(Y)}catch{return[]}},[Y]),Z=H.useMemo(()=>{if(T.length===0||!k)return;const S=yE(k.language);if(S){try{if(!op.registered(S))return}catch{return}try{const L={refractor:op,highlight:!0,language:S};return OS(T[0].hunks,L)}catch{return}}},[T,k,s]),F=H.useMemo(()=>T.length===0||!i?{}:bE(T[0].hunks,i),[T,i]),V=H.useMemo(()=>{if(T.length===0)return{};const S={};for(const L of T[0].hunks)for(const $ of L.changes)S[qt($)]=fo($);return S},[T]),X=H.useMemo(()=>i?f.map((S,L)=>({comment:S,index:L})).filter(S=>S.comment.file===i):[],[f,i]),ee=H.useMemo(()=>{if(!i)return[];const S=Xc(i);return O.filter(L=>L.file===S&&!L.dismissed)},[O,i]),te=H.useMemo(()=>{const S=new Map;for(const L of ee)S.has(L.line)||S.set(L.line,[]),S.get(L.line).push(L);return S},[ee]),ae=H.useMemo(()=>({onClick({change:S}){if(!S)return;const L=qt(S);x(h===L?null:L)}}),[h,x]),le=H.useCallback(({change:S,inHoverState:L,renderDefault:$})=>{const se=fo(S),re=i&&X.some(B=>B.comment.line===se),E=te.has(se);return L?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"diff-gutter-add-comment",children:"+"}),$()]}):re?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"diff-comment-indicator"}),$()]}):E?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"diff-annotation-indicator"}),$()]}):$()},[i,X,te]),ne=H.useMemo(()=>{if(!i)return{};const S={},L=new Map;for(const se of X){const re=se.comment.line;L.has(re)||L.set(re,[]),L.get(re).push(se)}const $=new Set([...L.keys(),...te.keys()]);for(const se of $){const re=F[`${i}:${se}`];if(!re)continue;const E=L.get(se),B=te.get(se);S[re]=d.jsxs(d.Fragment,{children:[B&&B.length>0&&d.jsx(mE,{annotations:B,onDismiss:R}),E&&E.length>0&&d.jsx(hE,{comments:E,isFormOpen:h===re,file:i,line:se,onAdd:(J,ie)=>{p({file:i,line:se,body:J,type:ie})},onUpdate:(J,ie,ge)=>{g(J,{file:i,line:se,body:ie,type:ge})},onDelete:y,onOpenForm:()=>x(re),onCloseForm:()=>x(null)})]})}if(h&&!S[h]){const se=V[h];se!==void 0&&(S[h]=d.jsx("div",{className:"border-t border-border bg-surface",children:d.jsx(oo,{file:i,line:se,onSave:(re,E)=>{p({file:i,line:se,body:re,type:E}),x(null)},onCancel:()=>x(null)})}))}return S},[i,X,ee,te,h,F,V,p,g,y,R,x]),P=H.useRef(null);if(H.useEffect(()=>{var S;_(((S=T[0])==null?void 0:S.hunks.length)??0)},[T,_]),H.useEffect(()=>{const S=P.current;if(!S||A===null)return;const L=S.querySelectorAll("tbody.diff-hunk");L.forEach($=>$.classList.remove("diff-hunk-focused")),L[A]&&(L[A].scrollIntoView({behavior:"smooth",block:"center"}),L[A].classList.add("diff-hunk-focused"))},[A]),H.useEffect(()=>{function S(){if(A===null||T.length===0||!i)return;const L=T[0].hunks[A];if(!L||L.changes.length===0)return;const $=L.changes[0],se=qt($);x(se)}return document.addEventListener("diffprism:open-comment",S),()=>document.removeEventListener("diffprism:open-comment",S)},[A,T,i,x]),!i||!l)return d.jsx("div",{className:"flex-1 flex items-center justify-center bg-background",children:d.jsxs("div",{className:"text-center",children:[d.jsx(bl,{className:"w-12 h-12 text-text-secondary/40 mx-auto mb-3"}),d.jsx("p",{className:"text-text-secondary text-sm",children:"Select a file to view changes"})]})});const K=Xc(i);if(k!=null&&k.binary)return d.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[d.jsx(Jc,{path:K,stage:k==null?void 0:k.stage}),d.jsx("div",{className:"flex-1 flex items-center justify-center",children:d.jsx("div",{className:"text-center",children:d.jsx("p",{className:"text-text-secondary text-sm",children:"Binary file — cannot display diff"})})})]});if(T.length===0)return d.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[d.jsx(Jc,{path:K,stage:k==null?void 0:k.stage}),d.jsx("div",{className:"flex-1 flex items-center justify-center",children:d.jsx("div",{className:"text-center",children:d.jsx("p",{className:"text-text-secondary text-sm",children:"No diff content available for this file"})})})]});const Q=T[0];return d.jsxs("div",{className:"flex-1 flex flex-col bg-background min-h-0",children:[d.jsx(Jc,{path:K,stage:k==null?void 0:k.stage,additions:k==null?void 0:k.additions,deletions:k==null?void 0:k.deletions,viewMode:s,onViewModeChange:o,onToggleHotkeyGuide:v,onToggleWorkflowTips:w}),d.jsx("div",{ref:P,className:"flex-1 overflow-auto",children:d.jsx(rS,{viewType:s,diffType:Q.type,hunks:Q.hunks,tokens:Z,widgets:ne,gutterEvents:ae,renderGutter:le,children:S=>S.map(L=>d.jsx(Xp,{hunk:L},L.content))})})]})}function Jc({path:l,stage:r,additions:i,deletions:s,viewMode:o,onViewModeChange:f,onToggleHotkeyGuide:h,onToggleWorkflowTips:p}){return d.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5 bg-surface border-b border-border flex-shrink-0",children:[d.jsx(bl,{className:"w-4 h-4 text-text-secondary flex-shrink-0"}),d.jsx("span",{className:"text-text-primary text-sm font-mono truncate",children:l}),r&&d.jsx("span",{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded border ${Ov[r]}`,children:r==="staged"?"Staged":"Unstaged"}),d.jsxs("div",{className:"flex items-center gap-2 ml-auto flex-shrink-0",children:[i!==void 0&&i>0&&d.jsxs("span",{className:"text-success text-xs font-mono",children:["+",i]}),s!==void 0&&s>0&&d.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",s]}),o&&f&&d.jsxs("div",{className:"flex items-center rounded border border-border ml-2",children:[d.jsx("button",{onClick:()=>f("unified"),className:`p-1 ${o==="unified"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Unified view",children:d.jsx(yv,{className:"w-3.5 h-3.5"})}),d.jsx("button",{onClick:()=>f("split"),className:`p-1 ${o==="split"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Split view",children:d.jsx(rv,{className:"w-3.5 h-3.5"})})]}),p&&d.jsx("button",{onClick:p,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:"Workflow tips",children:d.jsx(bo,{className:"w-4 h-4"})}),h&&d.jsx("button",{onClick:h,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:"Keyboard shortcuts (?)",children:d.jsx(mo,{className:"w-4 h-4"})}),d.jsx(pE,{})]})]})}function SE({onSubmit:l,onDismiss:r,isWatchMode:i,watchSubmitted:s,hasUnreviewedChanges:o}){const[f,h]=H.useState(""),[p,g]=H.useState(!1),[y,x]=H.useState(null),{diffSet:v,fileStatuses:w,comments:A,metadata:_,draftComment:O,saveDraftComment:R,setActiveCommentKey:k,setDraftComment:Y}=bt(),T=!!(_!=null&&_.githubPr),Z=(v==null?void 0:v.files.reduce((ne,P)=>ne+P.additions,0))??0,F=(v==null?void 0:v.files.reduce((ne,P)=>ne+P.deletions,0))??0,V=(v==null?void 0:v.files.length)??0,X=!!(O&&O.body.trim());function ee(ne){const P=Object.values(w).some(K=>K!=="unreviewed");l({decision:ne,comments:bt.getState().comments,fileStatuses:P?w:void 0,summary:f.trim()||void 0,postToGithub:T&&p?!0:void 0})}function te(ne){if(X){x(ne);return}ee(ne)}function ae(){y&&(R(),ee(y),x(null))}function le(){y&&(Y(null),k(null),ee(y),x(null))}return i&&s&&!o?d.jsx("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Wc,{className:"w-4 h-4 text-success"}),d.jsx("span",{className:"text-sm text-success font-medium",children:"Review submitted"}),d.jsxs("span",{className:"relative flex h-2 w-2 ml-2",children:[d.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-success opacity-75"}),d.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-success"})]}),d.jsx("span",{className:"text-xs text-text-secondary",children:"Watching for changes..."})]})}):d.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:[i&&s&&o&&d.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-accent",children:[d.jsxs("span",{className:"relative flex h-2 w-2",children:[d.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-info opacity-75"}),d.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-info"})]}),"New changes detected"]}),d.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[d.jsxs("span",{className:"text-text-secondary text-xs",children:[V," file",V!==1?"s":""," changed"]}),Z>0&&d.jsxs("span",{className:"text-success text-xs font-mono",children:["+",Z]}),F>0&&d.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",F]}),A.length>0&&d.jsxs("span",{className:"flex items-center gap-1 text-accent text-xs",children:[d.jsx(Am,{className:"w-3 h-3"}),A.length," comment",A.length!==1?"s":""]})]}),d.jsx("textarea",{value:f,onChange:ne=>h(ne.target.value),placeholder:"Leave a summary comment (optional)...",rows:3,className:"w-full bg-background border border-border rounded-lg px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent mb-3"}),y&&d.jsxs("div",{className:"flex items-center gap-3 mb-3 px-3 py-2.5 rounded-lg bg-warning/10 border border-warning/30",children:[d.jsx(Si,{className:"w-4 h-4 text-warning flex-shrink-0"}),d.jsx("span",{className:"text-sm text-text-primary",children:"You have an unsaved comment. Save it before submitting?"}),d.jsx("div",{className:"flex-1"}),d.jsx("button",{onClick:ae,className:"px-3 py-1.5 text-xs font-medium rounded bg-accent/20 text-accent border border-accent/30 hover:bg-accent/30 transition-colors cursor-pointer",children:"Save & Submit"}),d.jsx("button",{onClick:le,className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Discard & Submit"}),d.jsx("button",{onClick:()=>x(null),className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("button",{onClick:()=>te("approved"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${Kr.approve}`,children:[d.jsx(Wc,{className:"w-4 h-4"}),"Approve"]}),d.jsxs("button",{onClick:()=>te("changes_requested"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${Kr.reject}`,children:[d.jsx(cu,{className:"w-4 h-4"}),"Request Changes"]}),d.jsxs("button",{onClick:()=>te("approved_with_comments"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${Kr.comment}`,children:[d.jsx(Am,{className:"w-4 h-4"}),"Approve with Comments"]}),r&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-px h-6 bg-border"}),d.jsxs("button",{onClick:r,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${Kr.dismiss}`,children:[d.jsx(lv,{className:"w-4 h-4"}),"Dismiss"]})]}),T&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-px h-6 bg-border"}),d.jsxs("label",{className:"flex items-center gap-2 text-sm text-text-secondary cursor-pointer select-none",children:[d.jsx("input",{type:"checkbox",checked:p,onChange:ne=>g(ne.target.checked),className:"rounded border-border accent-accent"}),d.jsx(yo,{className:"w-3.5 h-3.5 text-accent"}),"Post to GitHub"]})]})]})]})}const EE=navigator.platform.toUpperCase().includes("MAC"),NE=EE?"⌘":"Ctrl",AE=[{keys:["j","↓"],action:"Next file"},{keys:["k","↑"],action:"Previous file"},{keys:["s"],action:"Cycle file status"},{keys:["n"],action:"Next hunk"},{keys:["p"],action:"Previous hunk"},{keys:["c"],action:"Comment on hunk"},{keys:[`${NE} + Enter`],action:"Save comment"},{keys:["Esc"],action:"Cancel comment / Close guide"},{keys:["?"],action:"Toggle this guide"}];function wE(){const{showHotkeyGuide:l,toggleHotkeyGuide:r}=bt();return H.useEffect(()=>{if(!l)return;function i(s){(s.key==="Escape"||s.key==="?")&&(s.preventDefault(),s.stopPropagation(),r())}return document.addEventListener("keydown",i,!0),()=>document.removeEventListener("keydown",i,!0)},[l,r]),l?d.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:r,children:d.jsxs("div",{className:"bg-surface border border-border rounded-lg shadow-xl p-6 max-w-sm w-full mx-4",onClick:i=>i.stopPropagation(),children:[d.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Keyboard Shortcuts"}),d.jsx("div",{className:"space-y-2",children:AE.map(i=>d.jsxs("div",{className:"flex items-center justify-between gap-4",children:[d.jsx("span",{className:"text-text-secondary text-sm",children:i.action}),d.jsx("div",{className:"flex items-center gap-1.5",children:i.keys.map((s,o)=>d.jsxs("span",{className:"flex items-center gap-1.5",children:[o>0&&d.jsx("span",{className:"text-text-secondary/50 text-xs",children:"/"}),d.jsx("kbd",{className:"px-1.5 py-0.5 text-xs font-mono rounded border border-border bg-background text-text-primary",children:s})]},s))})]},i.action))})]})}):null}const TE={navigation:"Navigation",review:"Review Workflow",commenting:"Commenting",general:"General"},_E=["navigation","review","commenting","general"],CE=[{id:"nav-files",text:"Navigate between files in the sidebar",shortcut:"j / k",category:"navigation"},{id:"nav-hunks",text:"Jump between changed hunks within a file",shortcut:"n / p",category:"navigation"},{id:"nav-select",text:"Click any file in the sidebar to view its diff",category:"navigation"},{id:"review-status",text:"Cycle a file's review status (unreviewed → reviewed → approved → needs changes)",shortcut:"s",category:"review"},{id:"review-split",text:"Toggle between unified and split (side-by-side) diff views from the toolbar",category:"review"},{id:"review-briefing",text:"Check the briefing bar at the top for a summary of changes, risk indicators, and file stats",category:"review"},{id:"comment-gutter",text:"Click a line's gutter (the + icon on hover) to add an inline comment",category:"commenting"},{id:"comment-hunk",text:"Quickly comment on the focused hunk",shortcut:"c",category:"commenting"},{id:"comment-save",text:"Save a comment from the inline form",shortcut:"Cmd/Ctrl + Enter",category:"commenting"},{id:"general-hotkeys",text:"Open the full keyboard shortcuts reference anytime",shortcut:"?",category:"general"},{id:"general-theme",text:"Toggle between dark and light mode from the toolbar",category:"general"}],fp="diffprism-tips-seen";function OE(){const{showWorkflowTips:l,toggleWorkflowTips:r}=bt();if(H.useEffect(()=>{localStorage.getItem(fp)||(localStorage.setItem(fp,"1"),r())},[]),H.useEffect(()=>{if(!l)return;function s(o){o.key==="Escape"&&(o.preventDefault(),o.stopPropagation(),r())}return document.addEventListener("keydown",s,!0),()=>document.removeEventListener("keydown",s,!0)},[l,r]),!l)return null;const i=new Map;for(const s of CE)i.has(s.category)||i.set(s.category,[]),i.get(s.category).push(s);return d.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:r,children:d.jsxs("div",{className:"bg-surface border border-border rounded-lg shadow-xl p-6 max-w-md w-full mx-4 max-h-[80vh] overflow-y-auto",onClick:s=>s.stopPropagation(),children:[d.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Workflow Tips"}),d.jsx("div",{className:"space-y-4",children:_E.map(s=>{const o=i.get(s);return!o||o.length===0?null:d.jsxs("div",{children:[d.jsx("h3",{className:"text-text-secondary text-xs font-semibold uppercase tracking-wider mb-2",children:TE[s]}),d.jsx("div",{className:"space-y-1.5",children:o.map(f=>d.jsxs("div",{className:"flex items-start justify-between gap-3",children:[d.jsx("span",{className:"text-text-secondary text-sm leading-snug",children:f.text}),f.shortcut&&d.jsx("kbd",{className:"flex-shrink-0 px-1.5 py-0.5 text-xs font-mono rounded border border-border bg-background text-text-primary whitespace-nowrap",children:f.shortcut})]},f.id))})]},s)})}),d.jsxs("div",{className:"mt-5 flex items-center justify-between",children:[d.jsx("span",{className:"text-text-secondary/60 text-xs",children:"Reopen anytime from the toolbar"}),d.jsx("button",{onClick:r,className:"px-3 py-1.5 text-sm font-medium rounded bg-accent text-white hover:bg-accent/90 transition-colors cursor-pointer",children:"Got it"})]})]})})}const jE={finding:Sa,suggestion:bo,question:mo,warning:Si};function RE({body:l}){const[r,i]=H.useState(!1),s=l.length>120||l.includes(`
335
- `),o=H.useCallback(f=>{f.stopPropagation(),i(h=>!h)},[]);return s?r?d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-text-primary whitespace-pre-wrap",children:l}),d.jsx("button",{onClick:o,className:"text-[10px] text-accent hover:underline mt-0.5 cursor-pointer",children:"Show less"})]}):d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-text-primary truncate",children:l}),d.jsx("button",{onClick:o,className:"text-[10px] text-accent hover:underline mt-0.5 cursor-pointer",children:"Show more"})]}):d.jsx("p",{className:"text-xs text-text-primary",children:l})}function kE({annotations:l,onDismiss:r,onNavigate:i}){const[s,o]=H.useState(!1),f=H.useMemo(()=>{const p=s?l:l.filter(y=>!y.dismissed),g=new Map;for(const y of p){const x=y.source.agent;g.has(x)||g.set(x,[]),g.get(x).push(y)}return g},[l,s]),h=l.filter(p=>!p.dismissed).length;return l.length===0?null:d.jsxs("div",{className:"border-t border-border flex-shrink-0 max-h-[40%] overflow-hidden flex flex-col",children:[d.jsxs("div",{className:"px-4 py-2 flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(mp,{className:"w-4 h-4 text-text-secondary"}),d.jsxs("span",{className:"text-xs font-semibold text-text-secondary uppercase tracking-wide",children:["Agent Annotations (",h,")"]})]}),l.some(p=>p.dismissed)&&d.jsxs("button",{onClick:()=>o(!s),className:"flex items-center gap-1 text-xs text-text-secondary hover:text-text-primary cursor-pointer",children:[s?d.jsx(cv,{className:"w-3 h-3"}):d.jsx(po,{className:"w-3 h-3"}),s?"Hide dismissed":"Show dismissed"]})]}),d.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:Array.from(f.entries()).map(([p,g])=>d.jsxs("div",{className:"border-t border-border/50",children:[d.jsxs("div",{className:"px-4 py-1.5 flex items-center gap-2",children:[d.jsx("span",{className:"text-xs font-medium text-accent",children:p}),d.jsxs("span",{className:"text-xs text-text-secondary",children:["(",g.length,")"]})]}),g.map(y=>{const x=jE[y.type]??Sa,v=iu[y.category]??iu.other;return d.jsxs("div",{className:`px-4 py-2 flex items-start gap-2 hover:bg-text-primary/5 cursor-pointer group ${y.dismissed?"opacity-40":""}`,onClick:()=>i(y.file),children:[d.jsx(x,{className:`w-3.5 h-3.5 mt-0.5 flex-shrink-0 ${v}`}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[d.jsxs("span",{className:"text-xs text-text-secondary font-mono truncate",children:[y.file,":",y.line]}),d.jsx("span",{className:`text-[10px] font-semibold uppercase ${v}`,children:y.category})]}),d.jsx(RE,{body:y.body})]}),!y.dismissed&&d.jsx("button",{onClick:w=>{w.stopPropagation(),r(y.id)},className:"p-0.5 rounded hover:bg-text-primary/10 text-text-secondary opacity-0 group-hover:opacity-100 cursor-pointer flex-shrink-0",title:"Dismiss",children:d.jsx(cu,{className:"w-3 h-3"})})]},y.id)})]},p))})]})}function uy({onSubmit:l,onDismiss:r,isWatchMode:i,watchSubmitted:s,hasUnreviewedChanges:o}){const{annotations:f,dismissAnnotation:h,selectFile:p,diffSet:g}=bt(),y=x=>{if(!g)return;if(g.files.find(A=>jt(A)===x)){p(x);return}const w=g.files.find(A=>A.path===x);w&&p(jt(w))};return d.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[d.jsx(kv,{}),d.jsx(Mv,{}),d.jsxs("div",{className:"flex flex-1 min-h-0",children:[d.jsxs("div",{className:"w-[280px] flex-shrink-0 flex flex-col overflow-hidden",children:[d.jsx("div",{className:"flex-1 min-h-0",children:d.jsx(qv,{onSubmit:l})}),d.jsx(kE,{annotations:f,onDismiss:h,onNavigate:y})]}),d.jsx(xE,{})]}),d.jsx(SE,{onSubmit:l,onDismiss:r,isWatchMode:i,watchSubmitted:s,hasUnreviewedChanges:o}),d.jsx(wE,{}),d.jsx(OE,{})]})}function ME(l){const i=Date.now()-l,s=Math.floor(i/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;const o=Math.floor(s/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function DE(l){const r=l.split("/");return r[r.length-1]||l}const dp={pending:"Pending",in_review:"In Review",changes_requested:"Changes Req.",approved:"Approved",approved_with_comments:"Approved",dismissed:"Dismissed",submitted:"Submitted"};function zE(l){const{status:r,decision:i}=l,s=r==="submitted"?i??"submitted":r,o=_m[s]??_m.submitted,f=dp[s]??dp.submitted;return d.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded ${o}`,children:f})}function LE({sessions:l,activeSessionId:r,onSelect:i,onClose:s,onOpenProject:o}){return d.jsxs("div",{className:"flex flex-col h-full bg-surface border-r border-border",children:[d.jsxs("div",{className:"px-3 py-3 border-b border-border flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-text-primary text-xs font-semibold uppercase tracking-wider",children:"Sessions"}),d.jsxs("span",{className:"text-text-secondary text-[10px]",children:[l.length," session",l.length!==1?"s":""]})]}),o&&d.jsx("button",{onClick:o,className:"p-1 rounded hover:bg-border/50 text-text-secondary hover:text-text-primary transition-colors",title:"Open project",children:d.jsx(pp,{className:"w-3.5 h-3.5"})})]}),d.jsx("div",{className:"flex-1 overflow-y-auto",children:l.length===0?d.jsx("div",{className:"flex flex-col items-center justify-center h-full px-4 text-center",children:d.jsx("p",{className:"text-text-secondary text-xs",children:"No sessions yet. Reviews will appear here automatically."})}):d.jsx("div",{className:"py-1",children:l.map(f=>{const h=f.id===r,p=f.source==="manual";return d.jsxs("div",{className:`group relative px-3 py-2.5 cursor-pointer border-l-2 transition-colors ${h?"bg-accent/10 border-l-accent":f.needsAttention?"bg-warning/5 border-l-warning hover:bg-warning/10":"border-l-transparent hover:bg-border/20"}`,onClick:()=>i(f.id),role:"button",tabIndex:0,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&i(f.id)},children:[d.jsx("button",{onClick:g=>{g.stopPropagation(),s(f.id)},className:"absolute top-1.5 right-1.5 p-0.5 rounded hover:bg-border/50 text-text-secondary hover:text-text-primary transition-colors opacity-0 group-hover:opacity-100",style:{opacity:h?1:void 0},title:"Dismiss session",children:d.jsx(cu,{className:"w-3 h-3"})}),d.jsxs("div",{className:"flex items-start justify-between gap-1.5 mb-1 pr-7",children:[d.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 flex-1",children:[f.needsAttention&&d.jsx(Sa,{className:"w-3.5 h-3.5 text-warning flex-shrink-0 animate-pulse"}),p&&d.jsx(va,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}),d.jsx("span",{className:"text-text-primary text-xs font-medium truncate",children:f.title||DE(f.projectPath)})]}),d.jsx("div",{className:"flex-shrink-0",children:zE(f)})]}),f.reasoning&&d.jsx("p",{className:"text-text-secondary text-[11px] leading-tight mb-1 line-clamp-2",children:f.reasoning}),d.jsxs("div",{className:"flex items-center gap-2 text-[10px] text-text-secondary",children:[f.branch&&d.jsxs("span",{className:"flex items-center gap-0.5 truncate",children:[d.jsx(Jn,{className:"w-2.5 h-2.5"}),f.branch]}),d.jsxs("span",{className:"flex items-center gap-0.5 ml-auto flex-shrink-0",children:[d.jsx(iv,{className:"w-2.5 h-2.5"}),ME(f.createdAt)]})]}),d.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-[10px]",children:[d.jsxs("span",{className:"text-text-secondary",children:[f.fileCount," file",f.fileCount!==1?"s":""]}),f.additions>0&&d.jsxs("span",{className:"text-success font-mono",children:["+",f.additions]}),f.deletions>0&&d.jsxs("span",{className:"text-danger font-mono",children:["-",f.deletions]})]})]},f.id)})})})]})}function UE({permission:l,enabled:r,onToggle:i}){const s=l==="denied",o=l==="granted"&&r,f=s?"Notifications blocked by browser":o?"Notifications on":"Enable notifications";return d.jsx("button",{onClick:i,disabled:s,className:`p-1.5 rounded transition-colors cursor-pointer ${s?"text-text-secondary/50 cursor-not-allowed":o?"text-accent hover:text-accent/80":"text-text-secondary hover:text-text-primary"}`,title:f,children:o?d.jsx(ev,{className:"w-4 h-4"}):d.jsx(P0,{className:"w-4 h-4"})})}const BE=[{value:"working-copy",label:"Working Copy"},{value:"unstaged",label:"Unstaged"},{value:"staged",label:"Staged"}];function uu(){return new URLSearchParams(window.location.search).get("httpPort")}function HE(l){const[r,i]=H.useState(null),[s,o]=H.useState(!1),f=H.useCallback(async h=>{const p=uu();if(p){o(!0);try{const g=h?`?path=${encodeURIComponent(h)}`:"",y=await fetch(`http://localhost:${p}/api/fs/list${g}`);if(y.ok){const x=await y.json();i(x)}}catch{}finally{o(!1)}}},[]);return H.useEffect(()=>{f(l)},[f,l]),{listing:r,loadingDir:s,fetchDir:f}}function GE({onSuccess:l}){const[r,i]=H.useState(),[s,o]=H.useState("working-copy"),[f,h]=H.useState(!1),[p,g]=H.useState(null),{listing:y,loadingDir:x,fetchDir:v}=HE(r);H.useEffect(()=>{const A=uu();A&&fetch(`http://localhost:${A}/api/status`).then(_=>_.json()).then(_=>{const O=_;O.cwd&&i(O.cwd)}).catch(()=>{})},[]);const w=H.useCallback(async A=>{const _=uu();if(_){h(!0),g(null);try{const O=await fetch(`http://localhost:${_}/api/projects/open`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectPath:A,diffRef:s})}),R=await O.json();O.ok?l==null||l():g(R.error??"Failed to open project")}catch{g("Could not connect to server")}finally{h(!1)}}},[s,l]);return d.jsxs("div",{className:"space-y-3",children:[y&&d.jsxs("div",{className:"flex items-center gap-1 text-text-secondary text-[11px] font-mono truncate min-h-[20px]",children:[y.parentPath&&d.jsx("button",{onClick:()=>v(y.parentPath),className:"p-0.5 rounded hover:bg-border/50 hover:text-text-primary transition-colors flex-shrink-0",title:"Go up",children:d.jsx(go,{className:"w-3 h-3"})}),d.jsx("span",{className:"truncate",children:y.path}),y.isGitRepo&&d.jsx(Jn,{className:"w-3 h-3 text-success flex-shrink-0 ml-1"})]}),(y==null?void 0:y.isGitRepo)&&d.jsxs("button",{onClick:()=>w(y.path),disabled:f,className:"w-full bg-accent/15 text-accent text-xs font-medium rounded px-3 py-2 hover:bg-accent/25 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center justify-center gap-1.5",children:[d.jsx(va,{className:"w-3.5 h-3.5"}),f?"Opening...":`Open ${y.path.split("/").pop()}`]}),d.jsx("div",{className:"border border-border rounded max-h-[280px] overflow-y-auto",children:x?d.jsx("div",{className:"px-3 py-4 text-text-secondary text-xs text-center",children:"Loading..."}):(y==null?void 0:y.dirs.length)===0?d.jsx("div",{className:"px-3 py-4 text-text-secondary text-xs text-center",children:"No subdirectories"}):y==null?void 0:y.dirs.map(A=>d.jsxs("button",{onClick:()=>{g(null),A.isGitRepo,v(A.path)},onDoubleClick:()=>{A.isGitRepo&&w(A.path)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-left hover:bg-border/30 transition-colors group",children:[d.jsx(hv,{className:`w-3.5 h-3.5 flex-shrink-0 ${A.isGitRepo?"text-accent":"text-text-secondary"}`}),d.jsx("span",{className:"text-text-primary text-xs truncate flex-1",children:A.name}),A.isGitRepo&&d.jsx(Jn,{className:"w-3 h-3 text-success flex-shrink-0"})]},A.path))}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-text-secondary text-xs mb-1",children:"Diff scope"}),d.jsx("select",{value:s,onChange:A=>o(A.target.value),className:"w-full bg-background border border-border rounded px-3 py-1.5 text-text-primary text-xs focus:outline-none focus:border-accent",children:BE.map(A=>d.jsx("option",{value:A.value,children:A.label},A.value))})]}),p&&d.jsx("p",{className:"text-danger text-xs",children:p})]})}function YE({sessions:l,activeSessionId:r,hasDiffLoaded:i,onSelectSession:s,onCloseSession:o,onSubmit:f,onDismiss:h,notificationPermission:p,notificationsEnabled:g,onToggleNotifications:y}){const[x,v]=H.useState(!1);return d.jsxs("div",{className:"h-screen flex bg-background",children:[d.jsxs("div",{className:"w-[260px] flex-shrink-0 flex flex-col",children:[d.jsx(LE,{sessions:l,activeSessionId:r,onSelect:s,onClose:o,onOpenProject:()=>v(!0)}),y&&p&&d.jsx("div",{className:"px-3 py-2 border-t border-border border-r border-r-border bg-surface",children:d.jsx(UE,{permission:p,enabled:g??!1,onToggle:y})})]}),d.jsx("div",{className:"flex-1 min-w-0",children:i?d.jsx(uy,{onSubmit:f,onDismiss:h,isWatchMode:!0,watchSubmitted:!1,hasUnreviewedChanges:!0}):x?d.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:d.jsxs("div",{className:"max-w-sm w-full",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[d.jsx(va,{className:"w-5 h-5 text-accent"}),d.jsx("h2",{className:"text-text-primary text-lg font-semibold",children:"Open Project"})]}),d.jsx("div",{className:"bg-surface border border-border rounded-lg p-5",children:d.jsx(GE,{onSuccess:()=>v(!1)})}),d.jsx("button",{onClick:()=>v(!1),className:"mt-3 text-text-secondary text-xs hover:text-text-primary transition-colors",children:"Cancel"})]})}):d.jsx(qE,{hasAnySessions:l.length>0,onOpenProject:()=>v(!0)})})]})}function qE({hasAnySessions:l,onOpenProject:r}){return l?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-8",children:[d.jsx("div",{className:"w-14 h-14 rounded-full bg-surface border border-border flex items-center justify-center mb-4",children:d.jsx(bl,{className:"w-7 h-7 text-text-secondary"})}),d.jsx("h2",{className:"text-text-primary text-lg font-semibold mb-2",children:"Select a session"}),d.jsx("p",{className:"text-text-secondary text-sm max-w-sm mb-4",children:"Click a session in the sidebar to view its diff, annotations, and submit your review."}),d.jsxs("button",{onClick:r,className:"flex items-center gap-1.5 text-accent text-xs font-medium hover:text-accent/80 transition-colors",children:[d.jsx(va,{className:"w-3.5 h-3.5"}),"Open Project"]})]}):d.jsx(IE,{onOpenProject:r})}function IE({onOpenProject:l}){const[r,i]=H.useState(null);H.useEffect(()=>{const o=uu();o&&fetch(`http://localhost:${o}/api/status`).then(f=>f.json()).then(f=>{i(f)}).catch(()=>{})},[]);const s=o=>{if(o<60)return`${Math.floor(o)}s`;if(o<3600)return`${Math.floor(o/60)}m ${Math.floor(o%60)}s`;const f=Math.floor(o/3600),h=Math.floor(o%3600/60);return`${f}h ${h}m`};return d.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:d.jsxs("div",{className:"max-w-md w-full",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-text-primary text-2xl font-bold mb-1",children:"DiffPrism"}),d.jsx("p",{className:"text-text-secondary text-sm",children:"Code review for AI-generated changes"})]}),d.jsxs("button",{onClick:l,className:"w-full flex items-center justify-center gap-2 bg-accent/15 text-accent text-sm font-medium rounded-lg px-4 py-3 hover:bg-accent/25 transition-colors mb-4",children:[d.jsx(va,{className:"w-4 h-4"}),"Open Project"]}),d.jsxs("div",{className:"bg-surface border border-border rounded-lg p-6",children:[d.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Getting Started"}),d.jsxs("div",{className:"mb-5",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx(xv,{className:"w-4 h-4 text-text-secondary"}),d.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"From the terminal"})]}),d.jsxs("div",{className:"space-y-1.5 pl-6",children:[d.jsx("code",{className:"block text-accent text-xs",children:"$ diffprism review"}),d.jsx("code",{className:"block text-accent text-xs",children:"$ diffprism review --staged"})]})]}),d.jsxs("div",{className:"mb-5",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx(bl,{className:"w-4 h-4 text-text-secondary"}),d.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"From Claude Code"})]}),d.jsxs("p",{className:"text-text-secondary text-xs pl-6",children:["Type ",d.jsx("code",{className:"text-accent",children:"/review"})," or use the"," ",d.jsx("code",{className:"text-accent",children:"open_review"})," MCP tool"]})]}),d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx(bv,{className:"w-4 h-4 text-text-secondary"}),d.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"First time?"})]}),d.jsxs("div",{className:"pl-6",children:[d.jsx("code",{className:"block text-accent text-xs mb-1",children:"$ diffprism setup"}),d.jsx("p",{className:"text-text-secondary text-xs",children:"Configures Claude Code integration in one command"})]})]})]}),r&&d.jsxs("p",{className:"text-text-secondary text-xs text-center mt-4",children:["Server running · PID ",r.pid," · up ",s(r.uptime)]})]})})}function XE(){const{permission:l,enabled:r,toggle:i,notifyNewSession:s,notifySessionUpdated:o,notifyDiffUpdated:f,notifyAnnotationAdded:h}=$0({onSessionSelect:Q}),{sendResult:p,selectSession:g,closeSession:y,connectionStatus:x}=F0({onSessionAdded:s,onSessionUpdated:o,onDiffUpdated:f,onAnnotationAdded:h}),{diffSet:v,metadata:w,theme:A,isWatchMode:_,watchSubmitted:O,hasUnreviewedChanges:R,setWatchSubmitted:k,isServerMode:Y,sessions:T,activeSessionId:Z,selectSession:F,removeSession:V,clearReview:X,clearSessionAttention:ee}=bt(),[te,ae]=H.useState(!1),[le,ne]=H.useState(3);H.useEffect(()=>{const $=document.documentElement;A==="dark"?$.classList.add("dark"):$.classList.remove("dark")},[A]);function P($){p($),Y?X():_?k(!0):ae(!0)}function K(){p({decision:"dismissed",comments:[]}),Y&&Z?(V(Z),y(Z)):_?k(!0):ae(!0)}function Q($){F($),ee($),g($)}function S($){V($),y($)}const L=H.useCallback(()=>{window.close()},[]);return H.useEffect(()=>{if(!te||_||Y)return;if(le<=0){L();return}const $=setTimeout(()=>{ne(se=>se-1)},1e3);return()=>clearTimeout($)},[te,le,L,_,Y]),te?d.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"w-16 h-16 rounded-full bg-success/15 border border-success/30 flex items-center justify-center mx-auto mb-4",children:d.jsx("svg",{className:"w-8 h-8 text-success",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),d.jsx("h1",{className:"text-text-primary text-xl font-semibold mb-2",children:"Review Submitted"}),d.jsxs("p",{className:"text-text-secondary text-sm",children:["Closing in ",le,"s..."]})]})}):Y?x==="disconnected"?d.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"w-12 h-12 rounded-full bg-danger/15 border border-danger/30 flex items-center justify-center mx-auto mb-4",children:d.jsx("svg",{className:"w-6 h-6 text-danger",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),d.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),d.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server."})]})}):d.jsx(YE,{sessions:T,activeSessionId:Z,hasDiffLoaded:!!v,onSelectSession:Q,onCloseSession:S,onSubmit:P,onDismiss:K,notificationPermission:l,notificationsEnabled:r,onToggleNotifications:i}):v?d.jsx(uy,{onSubmit:P,onDismiss:K,isWatchMode:_||Y,watchSubmitted:O,hasUnreviewedChanges:R}):d.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:d.jsx("div",{className:"text-center",children:x==="disconnected"?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-12 h-12 rounded-full bg-danger/15 border border-danger/30 flex items-center justify-center mx-auto mb-4",children:d.jsx("svg",{className:"w-6 h-6 text-danger",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),d.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),d.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server. Please check the terminal and try again."})]}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"mb-4 flex justify-center",children:d.jsx("div",{className:"w-8 h-8 border-2 border-accent/30 border-t-accent rounded-full animate-spin"})}),d.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:x==="connecting"?"Connecting...":"Waiting for review data..."}),d.jsx("p",{className:"text-text-secondary text-sm",children:(w==null?void 0:w.title)??"Loading review..."})]})})})}Y0.createRoot(document.getElementById("root")).render(d.jsx(XE,{}));