diffprism 1.3.3 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/bin.js +7 -5
- package/dist/{chunk-4PXCENR6.js → chunk-6P6QJPWT.js} +2 -2
- package/dist/{chunk-3GMPE2ZR.js → chunk-GGK6TIQZ.js} +22 -0
- package/dist/{chunk-EPU4F7WT.js → chunk-RFDSC6MC.js} +1 -1
- package/dist/{chunk-UWIDAULW.js → chunk-SCQFIDIK.js} +46 -33
- package/dist/{demo-WOT5AZBP.js → demo-GHOE7YNU.js} +3 -3
- package/dist/mcp-server.js +5 -5
- package/dist/{src-DNNNQ2RD.js → src-LLACFIIT.js} +2 -2
- package/dist/{src-OZQ32NDN.js → src-XT4XP6TC.js} +3 -1
- package/package.json +1 -1
- package/ui-dist/assets/index-C_mA2r7X.js +350 -0
- package/ui-dist/assets/index-DrWM7I5e.css +1 -0
- package/ui-dist/index.html +2 -2
- package/ui-dist/assets/index-BulxhOr3.css +0 -1
- package/ui-dist/assets/index-DPjdYQ0h.js +0 -345
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(o){if(o.ep)return;o.ep=!0;const d=r(o);fetch(o.href,d)}})();function B0(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Ic={exports:{}},Er={};/**
|
|
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 hm;function H0(){if(hm)return Er;hm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(s,o,d){var h=null;if(d!==void 0&&(h=""+d),o.key!==void 0&&(h=""+o.key),"key"in o){d={};for(var m in o)m!=="key"&&(d[m]=o[m])}else d=o;return o=d.ref,{$$typeof:l,type:s,key:h,ref:o!==void 0?o:null,props:d}}return Er.Fragment=i,Er.jsx=r,Er.jsxs=r,Er}var gm;function G0(){return gm||(gm=1,Ic.exports=H0()),Ic.exports}var f=G0(),Xc={exports:{}},Nr={},Fc={exports:{}},Zc={};/**
|
|
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 mm;function Y0(){return mm||(mm=1,(function(l){function i(R,z){var le=R.length;R.push(z);e:for(;0<le;){var se=le-1>>>1,ue=R[se];if(0<o(ue,z))R[se]=z,R[le]=ue,le=se;else break e}}function r(R){return R.length===0?null:R[0]}function s(R){if(R.length===0)return null;var z=R[0],le=R.pop();if(le!==z){R[0]=le;e:for(var se=0,ue=R.length,N=ue>>>1;se<N;){var I=2*(se+1)-1,W=R[I],H=I+1,te=R[H];if(0>o(W,le))H<ue&&0>o(te,W)?(R[se]=te,R[H]=le,se=H):(R[se]=W,R[I]=le,se=I);else if(H<ue&&0>o(te,le))R[se]=te,R[H]=le,se=H;else break e}}return z}function o(R,z){var le=R.sortIndex-z.sortIndex;return le!==0?le:R.id-z.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var h=Date,m=h.now();l.unstable_now=function(){return h.now()-m}}var g=[],y=[],b=1,x=null,S=3,E=!1,A=!1,C=!1,_=!1,B=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function $(R){for(var z=r(y);z!==null;){if(z.callback===null)s(y);else if(z.startTime<=R)s(y),z.sortIndex=z.expirationTime,i(g,z);else break;z=r(y)}}function q(R){if(C=!1,$(R),!A)if(r(g)!==null)A=!0,Z||(Z=!0,fe());else{var z=r(y);z!==null&&Q(q,z.startTime-R)}}var Z=!1,G=-1,O=5,ae=-1;function ee(){return _?!0:!(l.unstable_now()-ae<O)}function ie(){if(_=!1,Z){var R=l.unstable_now();ae=R;var z=!0;try{e:{A=!1,C&&(C=!1,X(G),G=-1),E=!0;var le=S;try{t:{for($(R),x=r(g);x!==null&&!(x.expirationTime>R&&ee());){var se=x.callback;if(typeof se=="function"){x.callback=null,S=x.priorityLevel;var ue=se(x.expirationTime<=R);if(R=l.unstable_now(),typeof ue=="function"){x.callback=ue,$(R),z=!0;break t}x===r(g)&&s(g),$(R)}else s(g);x=r(g)}if(x!==null)z=!0;else{var N=r(y);N!==null&&Q(q,N.startTime-R),z=!1}}break e}finally{x=null,S=le,E=!1}z=void 0}}finally{z?fe():Z=!1}}}var fe;if(typeof k=="function")fe=function(){k(ie)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,J=ne.port2;ne.port1.onmessage=ie,fe=function(){J.postMessage(null)}}else fe=function(){B(ie,0)};function Q(R,z){G=B(function(){R(l.unstable_now())},z)}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(R){R.callback=null},l.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<R?Math.floor(1e3/R):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_next=function(R){switch(S){case 1:case 2:case 3:var z=3;break;default:z=S}var le=S;S=z;try{return R()}finally{S=le}},l.unstable_requestPaint=function(){_=!0},l.unstable_runWithPriority=function(R,z){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var le=S;S=R;try{return z()}finally{S=le}},l.unstable_scheduleCallback=function(R,z,le){var se=l.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?se+le:se):le=se,R){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=le+ue,R={id:b++,callback:z,priorityLevel:R,startTime:le,expirationTime:ue,sortIndex:-1},le>se?(R.sortIndex=le,i(y,R),r(g)===null&&R===r(y)&&(C?(X(G),G=-1):C=!0,Q(q,le-se))):(R.sortIndex=ue,i(g,R),A||E||(A=!0,Z||(Z=!0,fe()))),R},l.unstable_shouldYield=ee,l.unstable_wrapCallback=function(R){var z=S;return function(){var le=S;S=z;try{return R.apply(this,arguments)}finally{S=le}}}})(Zc)),Zc}var pm;function q0(){return pm||(pm=1,Fc.exports=Y0()),Fc.exports}var $c={exports:{}},be={};/**
|
|
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 ym;function I0(){if(ym)return be;ym=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function E(N){return N===null||typeof N!="object"?null:(N=S&&N[S]||N["@@iterator"],typeof N=="function"?N:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function B(N,I,W){this.props=N,this.context=I,this.refs=_,this.updater=W||A}B.prototype.isReactComponent={},B.prototype.setState=function(N,I){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,I,"setState")},B.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function X(){}X.prototype=B.prototype;function k(N,I,W){this.props=N,this.context=I,this.refs=_,this.updater=W||A}var $=k.prototype=new X;$.constructor=k,C($,B.prototype),$.isPureReactComponent=!0;var q=Array.isArray;function Z(){}var G={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function ae(N,I,W){var H=W.ref;return{$$typeof:l,type:N,key:I,ref:H!==void 0?H:null,props:W}}function ee(N,I){return ae(N.type,I,N.props)}function ie(N){return typeof N=="object"&&N!==null&&N.$$typeof===l}function fe(N){var I={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(W){return I[W]})}var ne=/\/+/g;function J(N,I){return typeof N=="object"&&N!==null&&N.key!=null?fe(""+N.key):I.toString(36)}function Q(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(Z,Z):(N.status="pending",N.then(function(I){N.status==="pending"&&(N.status="fulfilled",N.value=I)},function(I){N.status==="pending"&&(N.status="rejected",N.reason=I)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function R(N,I,W,H,te){var ce=typeof N;(ce==="undefined"||ce==="boolean")&&(N=null);var Ee=!1;if(N===null)Ee=!0;else switch(ce){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(N.$$typeof){case l:case i:Ee=!0;break;case b:return Ee=N._init,R(Ee(N._payload),I,W,H,te)}}if(Ee)return te=te(N),Ee=H===""?"."+J(N,0):H,q(te)?(W="",Ee!=null&&(W=Ee.replace(ne,"$&/")+"/"),R(te,I,W,"",function(Be){return Be})):te!=null&&(ie(te)&&(te=ee(te,W+(te.key==null||N&&N.key===te.key?"":(""+te.key).replace(ne,"$&/")+"/")+Ee)),I.push(te)),1;Ee=0;var pe=H===""?".":H+":";if(q(N))for(var ye=0;ye<N.length;ye++)H=N[ye],ce=pe+J(H,ye),Ee+=R(H,I,W,ce,te);else if(ye=E(N),typeof ye=="function")for(N=ye.call(N),ye=0;!(H=N.next()).done;)H=H.value,ce=pe+J(H,ye++),Ee+=R(H,I,W,ce,te);else if(ce==="object"){if(typeof N.then=="function")return R(Q(N),I,W,H,te);throw I=String(N),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function z(N,I,W){if(N==null)return N;var H=[],te=0;return R(N,H,"","",function(ce){return I.call(W,ce,te++)}),H}function le(N){if(N._status===-1){var I=N._result;I=I(),I.then(function(W){(N._status===0||N._status===-1)&&(N._status=1,N._result=W)},function(W){(N._status===0||N._status===-1)&&(N._status=2,N._result=W)}),N._status===-1&&(N._status=0,N._result=I)}if(N._status===1)return N._result.default;throw N._result}var se=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ue={map:z,forEach:function(N,I,W){z(N,function(){I.apply(this,arguments)},W)},count:function(N){var I=0;return z(N,function(){I++}),I},toArray:function(N){return z(N,function(I){return I})||[]},only:function(N){if(!ie(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return be.Activity=x,be.Children=ue,be.Component=B,be.Fragment=r,be.Profiler=o,be.PureComponent=k,be.StrictMode=s,be.Suspense=g,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,be.__COMPILER_RUNTIME={__proto__:null,c:function(N){return G.H.useMemoCache(N)}},be.cache=function(N){return function(){return N.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(N,I,W){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var H=C({},N.props),te=N.key;if(I!=null)for(ce in I.key!==void 0&&(te=""+I.key),I)!O.call(I,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&I.ref===void 0||(H[ce]=I[ce]);var ce=arguments.length-2;if(ce===1)H.children=W;else if(1<ce){for(var Ee=Array(ce),pe=0;pe<ce;pe++)Ee[pe]=arguments[pe+2];H.children=Ee}return ae(N.type,te,H)},be.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:d,_context:N},N},be.createElement=function(N,I,W){var H,te={},ce=null;if(I!=null)for(H in I.key!==void 0&&(ce=""+I.key),I)O.call(I,H)&&H!=="key"&&H!=="__self"&&H!=="__source"&&(te[H]=I[H]);var Ee=arguments.length-2;if(Ee===1)te.children=W;else if(1<Ee){for(var pe=Array(Ee),ye=0;ye<Ee;ye++)pe[ye]=arguments[ye+2];te.children=pe}if(N&&N.defaultProps)for(H in Ee=N.defaultProps,Ee)te[H]===void 0&&(te[H]=Ee[H]);return ae(N,ce,te)},be.createRef=function(){return{current:null}},be.forwardRef=function(N){return{$$typeof:m,render:N}},be.isValidElement=ie,be.lazy=function(N){return{$$typeof:b,_payload:{_status:-1,_result:N},_init:le}},be.memo=function(N,I){return{$$typeof:y,type:N,compare:I===void 0?null:I}},be.startTransition=function(N){var I=G.T,W={};G.T=W;try{var H=N(),te=G.S;te!==null&&te(W,H),typeof H=="object"&&H!==null&&typeof H.then=="function"&&H.then(Z,se)}catch(ce){se(ce)}finally{I!==null&&W.types!==null&&(I.types=W.types),G.T=I}},be.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},be.use=function(N){return G.H.use(N)},be.useActionState=function(N,I,W){return G.H.useActionState(N,I,W)},be.useCallback=function(N,I){return G.H.useCallback(N,I)},be.useContext=function(N){return G.H.useContext(N)},be.useDebugValue=function(){},be.useDeferredValue=function(N,I){return G.H.useDeferredValue(N,I)},be.useEffect=function(N,I){return G.H.useEffect(N,I)},be.useEffectEvent=function(N){return G.H.useEffectEvent(N)},be.useId=function(){return G.H.useId()},be.useImperativeHandle=function(N,I,W){return G.H.useImperativeHandle(N,I,W)},be.useInsertionEffect=function(N,I){return G.H.useInsertionEffect(N,I)},be.useLayoutEffect=function(N,I){return G.H.useLayoutEffect(N,I)},be.useMemo=function(N,I){return G.H.useMemo(N,I)},be.useOptimistic=function(N,I){return G.H.useOptimistic(N,I)},be.useReducer=function(N,I,W){return G.H.useReducer(N,I,W)},be.useRef=function(N){return G.H.useRef(N)},be.useState=function(N){return G.H.useState(N)},be.useSyncExternalStore=function(N,I,W){return G.H.useSyncExternalStore(N,I,W)},be.useTransition=function(){return G.H.useTransition()},be.version="19.2.4",be}var bm;function yo(){return bm||(bm=1,$c.exports=I0()),$c.exports}var Vc={exports:{}},dt={};/**
|
|
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 vm;function X0(){if(vm)return dt;vm=1;var l=yo();function i(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}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 r(){}var s={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(g,y,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:g,containerInfo:y,implementation:b}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,dt.createPortal=function(g,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return d(g,y,null,b)},dt.flushSync=function(g){var y=h.T,b=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=y,s.p=b,s.d.f()}},dt.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))},dt.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},dt.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var b=y.as,x=m(b,y.crossOrigin),S=typeof y.integrity=="string"?y.integrity:void 0,E=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?s.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:E}):b==="script"&&s.d.X(g,{crossOrigin:x,integrity:S,fetchPriority:E,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},dt.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=m(y.as,y.crossOrigin);s.d.M(g,{crossOrigin:b,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)},dt.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,x=m(b,y.crossOrigin);s.d.L(g,b,{crossOrigin:x,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})}},dt.preloadModule=function(g,y){if(typeof g=="string")if(y){var b=m(y.as,y.crossOrigin);s.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(g)},dt.requestFormReset=function(g){s.d.r(g)},dt.unstable_batchedUpdates=function(g,y){return g(y)},dt.useFormState=function(g,y,b){return h.H.useFormState(g,y,b)},dt.useFormStatus=function(){return h.H.useHostTransitionStatus()},dt.version="19.2.4",dt}var xm;function F0(){if(xm)return Vc.exports;xm=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(i){console.error(i)}}return l(),Vc.exports=X0(),Vc.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 Sm;function Z0(){if(Sm)return Nr;Sm=1;var l=q0(),i=yo(),r=F0();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 d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function 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 m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(d(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=d(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 p=!1,v=u.child;v;){if(v===n){p=!0,n=u,a=c;break}if(v===a){p=!0,a=u,n=c;break}v=v.sibling}if(!p){for(v=c.child;v;){if(v===n){p=!0,n=c,a=u;break}if(v===a){p=!0,a=c,n=u;break}v=v.sibling}if(!p)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 b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),k=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function J(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case B:return"Profiler";case _:return"StrictMode";case q:return"Suspense";case Z:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case k:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return t=e.displayName||null,t!==null?t:J(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return J(e(t))}catch{}}return null}var Q=Array.isArray,R=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},se=[],ue=-1;function N(e){return{current:e}}function I(e){0>ue||(e.current=se[ue],se[ue]=null,ue--)}function W(e,t){ue++,se[ue]=e.current,e.current=t}var H=N(null),te=N(null),ce=N(null),Ee=N(null);function pe(e,t){switch(W(ce,t),W(te,e),W(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Lg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Lg(t),e=Ug(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}I(H),W(H,e)}function ye(){I(H),I(te),I(ce)}function Be(e){e.memoizedState!==null&&W(Ee,e);var t=H.current,n=Ug(t,e.type);t!==n&&(W(te,e),W(H,n))}function Qt(e){te.current===e&&(I(H),I(te)),Ee.current===e&&(I(Ee),br._currentValue=le)}var tt,ft;function Et(e){if(tt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);tt=t&&t[1]||"",ft=-1<n.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+tt+e+ft}var Ol=!1;function Jt(e,t){if(!e||Ol)return"";Ol=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(Y){var U=Y}Reflect.construct(e,[],K)}else{try{K.call()}catch(Y){U=Y}e.call(K.prototype)}}else{try{throw Error()}catch(Y){U=Y}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(Y){if(Y&&U&&typeof Y.stack=="string")return[Y.stack,U.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(),p=c[0],v=c[1];if(p&&v){var w=p.split(`
|
|
44
|
-
`),D=v.split(`
|
|
45
|
-
`);for(u=a=0;a<w.length&&!w[a].includes("DetermineComponentFrameRoot");)a++;for(;u<D.length&&!D[u].includes("DetermineComponentFrameRoot");)u++;if(a===w.length||u===D.length)for(a=w.length-1,u=D.length-1;1<=a&&0<=u&&w[a]!==D[u];)u--;for(;1<=a&&0<=u;a--,u--)if(w[a]!==D[u]){if(a!==1||u!==1)do if(a--,u--,0>u||w[a]!==D[u]){var F=`
|
|
46
|
-
`+w[a].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=a&&0<=u);break}}}finally{Ol=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Et(n):""}function my(e,t){switch(e.tag){case 26:case 27:case 5:return Et(e.type);case 16:return Et("Lazy");case 13:return e.child!==t&&t!==null?Et("Suspense Fallback"):Et("Suspense");case 19:return Et("SuspenseList");case 0:case 15:return Jt(e.type,!1);case 11:return Jt(e.type.render,!1);case 1:return Jt(e.type,!0);case 31:return Et("Activity");default:return""}}function hf(e){try{var t="",n=null;do t+=my(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var _s=Object.prototype.hasOwnProperty,Os=l.unstable_scheduleCallback,js=l.unstable_cancelCallback,py=l.unstable_shouldYield,yy=l.unstable_requestPaint,Nt=l.unstable_now,by=l.unstable_getCurrentPriorityLevel,gf=l.unstable_ImmediatePriority,mf=l.unstable_UserBlockingPriority,Lr=l.unstable_NormalPriority,vy=l.unstable_LowPriority,pf=l.unstable_IdlePriority,xy=l.log,Sy=l.unstable_setDisableYieldValue,jl=null,wt=null;function _n(e){if(typeof xy=="function"&&Sy(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(jl,e)}catch{}}var At=Math.clz32?Math.clz32:wy,Ey=Math.log,Ny=Math.LN2;function wy(e){return e>>>=0,e===0?32:31-(Ey(e)/Ny|0)|0}var Ur=256,Br=262144,Hr=4194304;function aa(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 Gr(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var u=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~c,a!==0?u=aa(a):(p&=v,p!==0?u=aa(p):n||(n=v&~e,n!==0&&(u=aa(n))))):(v=a&~c,v!==0?u=aa(v):p!==0?u=aa(p):n||(n=a&~e,n!==0&&(u=aa(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 kl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ay(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 yf(){var e=Hr;return Hr<<=1,(Hr&62914560)===0&&(Hr=4194304),e}function ks(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ty(e,t,n,a,u,c){var p=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 v=e.entanglements,w=e.expirationTimes,D=e.hiddenUpdates;for(n=p&~n;0<n;){var F=31-At(n),K=1<<F;v[F]=0,w[F]=-1;var U=D[F];if(U!==null)for(D[F]=null,F=0;F<U.length;F++){var Y=U[F];Y!==null&&(Y.lane&=-536870913)}n&=~K}a!==0&&bf(e,a,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function bf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-At(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function vf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-At(n),u=1<<a;u&t|e[a]&t&&(e[a]|=t),n&=~u}}function xf(e,t){var n=t&-t;return n=(n&42)!==0?1:Rs(n),(n&(e.suspendedLanes|t))!==0?0:n}function Rs(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 Ms(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Sf(){var e=z.p;return e!==0?e:(e=window.event,e===void 0?32:im(e.type))}function Ef(e,t){var n=z.p;try{return z.p=e,t()}finally{z.p=n}}var On=Math.random().toString(36).slice(2),it="__reactFiber$"+On,gt="__reactProps$"+On,Oa="__reactContainer$"+On,Ds="__reactEvents$"+On,Cy="__reactListeners$"+On,_y="__reactHandles$"+On,Nf="__reactResources$"+On,Ml="__reactMarker$"+On;function zs(e){delete e[it],delete e[gt],delete e[Ds],delete e[Cy],delete e[_y]}function ja(e){var t=e[it];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Oa]||n[it]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xg(e);e!==null;){if(n=e[it])return n;e=Xg(e)}return t}e=n,n=e.parentNode}return null}function ka(e){if(e=e[it]||e[Oa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Dl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ra(e){var t=e[Nf];return t||(t=e[Nf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Ml]=!0}var wf=new Set,Af={};function la(e,t){Ma(e,t),Ma(e+"Capture",t)}function Ma(e,t){for(Af[e]=t,e=0;e<t.length;e++)wf.add(t[e])}var Oy=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]*$"),Tf={},Cf={};function jy(e){return _s.call(Cf,e)?!0:_s.call(Tf,e)?!1:Oy.test(e)?Cf[e]=!0:(Tf[e]=!0,!1)}function Yr(e,t,n){if(jy(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 qr(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 un(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _f(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ky(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(p){n=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ls(e){if(!e._valueTracker){var t=_f(e)?"checked":"value";e._valueTracker=ky(e,t,""+e[t])}}function Of(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=_f(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ir(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 Ry=/[\n"\\]/g;function Bt(e){return e.replace(Ry,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Us(e,t,n,a,u,c,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Bs(e,p,Ut(t)):n!=null?Bs(e,p,Ut(n)):a!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Ut(v):e.removeAttribute("name")}function jf(e,t,n,a,u,c,p,v){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)){Ls(e);return}n=n!=null?""+Ut(n):"",t=t!=null?""+Ut(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Ls(e)}function Bs(e,t,n){t==="number"&&Ir(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Da(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=""+Ut(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 kf(e,t,n){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ut(n):""}function Rf(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=Ut(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Ls(e)}function za(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var My=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 Mf(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||My.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Df(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&&Mf(e,u,a)}else for(var c in t)t.hasOwnProperty(c)&&Mf(e,c,t[c])}function Hs(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 Dy=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"]]),zy=/^[\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 Xr(e){return zy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function cn(){}var Gs=null;function Ys(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var La=null,Ua=null;function zf(e){var t=ka(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Us(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="'+Bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var u=a[gt]||null;if(!u)throw Error(s(90));Us(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&&Of(a)}break e;case"textarea":kf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Da(e,!!n.multiple,t,!1)}}}var qs=!1;function Lf(e,t,n){if(qs)return e(t,n);qs=!0;try{var a=e(t);return a}finally{if(qs=!1,(La!==null||Ua!==null)&&(ki(),La&&(t=La,e=Ua,Ua=La=null,zf(t),e)))for(t=0;t<e.length;t++)zf(e[t])}}function zl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[gt]||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 on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Is=!1;if(on)try{var Ll={};Object.defineProperty(Ll,"passive",{get:function(){Is=!0}}),window.addEventListener("test",Ll,Ll),window.removeEventListener("test",Ll,Ll)}catch{Is=!1}var jn=null,Xs=null,Fr=null;function Uf(){if(Fr)return Fr;var e,t=Xs,n=t.length,a,u="value"in jn?jn.value:jn.textContent,c=u.length;for(e=0;e<n&&t[e]===u[e];e++);var p=n-e;for(a=1;a<=p&&t[n-a]===u[c-a];a++);return Fr=u.slice(e,1<a?1-a:void 0)}function Zr(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 $r(){return!0}function Bf(){return!1}function mt(e){function t(n,a,u,c,p){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?$r:Bf,this.isPropagationStopped=Bf,this}return x(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=$r)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$r)},persist:function(){},isPersistent:$r}),t}var ra={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vr=mt(ra),Ul=x({},ra,{view:0,detail:0}),Ly=mt(Ul),Fs,Zs,Bl,Kr=x({},Ul,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vs,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!==Bl&&(Bl&&e.type==="mousemove"?(Fs=e.screenX-Bl.screenX,Zs=e.screenY-Bl.screenY):Zs=Fs=0,Bl=e),Fs)},movementY:function(e){return"movementY"in e?e.movementY:Zs}}),Hf=mt(Kr),Uy=x({},Kr,{dataTransfer:0}),By=mt(Uy),Hy=x({},Ul,{relatedTarget:0}),$s=mt(Hy),Gy=x({},ra,{animationName:0,elapsedTime:0,pseudoElement:0}),Yy=mt(Gy),qy=x({},ra,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Iy=mt(qy),Xy=x({},ra,{data:0}),Gf=mt(Xy),Fy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zy={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"},$y={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$y[e])?!!t[e]:!1}function Vs(){return Vy}var Ky=x({},Ul,{key:function(e){if(e.key){var t=Fy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vs,charCode:function(e){return e.type==="keypress"?Zr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qy=mt(Ky),Jy=x({},Kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yf=mt(Jy),Wy=x({},Ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vs}),Py=mt(Wy),eb=x({},ra,{propertyName:0,elapsedTime:0,pseudoElement:0}),tb=mt(eb),nb=x({},Kr,{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}),ab=mt(nb),lb=x({},ra,{newState:0,oldState:0}),rb=mt(lb),ib=[9,13,27,32],Ks=on&&"CompositionEvent"in window,Hl=null;on&&"documentMode"in document&&(Hl=document.documentMode);var sb=on&&"TextEvent"in window&&!Hl,qf=on&&(!Ks||Hl&&8<Hl&&11>=Hl),If=" ",Xf=!1;function Ff(e,t){switch(e){case"keyup":return ib.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ba=!1;function ub(e,t){switch(e){case"compositionend":return Zf(t);case"keypress":return t.which!==32?null:(Xf=!0,If);case"textInput":return e=t.data,e===If&&Xf?null:e;default:return null}}function cb(e,t){if(Ba)return e==="compositionend"||!Ks&&Ff(e,t)?(e=Uf(),Fr=Xs=jn=null,Ba=!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 qf&&t.locale!=="ko"?null:t.data;default:return null}}var ob={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 $f(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ob[e.type]:t==="textarea"}function Vf(e,t,n,a){La?Ua?Ua.push(a):Ua=[a]:La=a,t=Bi(t,"onChange"),0<t.length&&(n=new Vr("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Gl=null,Yl=null;function fb(e){jg(e,0)}function Qr(e){var t=Dl(e);if(Of(t))return e}function Kf(e,t){if(e==="change")return t}var Qf=!1;if(on){var Qs;if(on){var Js="oninput"in document;if(!Js){var Jf=document.createElement("div");Jf.setAttribute("oninput","return;"),Js=typeof Jf.oninput=="function"}Qs=Js}else Qs=!1;Qf=Qs&&(!document.documentMode||9<document.documentMode)}function Wf(){Gl&&(Gl.detachEvent("onpropertychange",Pf),Yl=Gl=null)}function Pf(e){if(e.propertyName==="value"&&Qr(Yl)){var t=[];Vf(t,Yl,e,Ys(e)),Lf(fb,t)}}function db(e,t,n){e==="focusin"?(Wf(),Gl=t,Yl=n,Gl.attachEvent("onpropertychange",Pf)):e==="focusout"&&Wf()}function hb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qr(Yl)}function gb(e,t){if(e==="click")return Qr(t)}function mb(e,t){if(e==="input"||e==="change")return Qr(t)}function pb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:pb;function ql(e,t){if(Tt(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(!_s.call(t,u)||!Tt(e[u],t[u]))return!1}return!0}function ed(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function td(e,t){var n=ed(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=ed(n)}}function nd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ad(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ir(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=Ir(e.document)}return t}function Ws(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 yb=on&&"documentMode"in document&&11>=document.documentMode,Ha=null,Ps=null,Il=null,eu=!1;function ld(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;eu||Ha==null||Ha!==Ir(a)||(a=Ha,"selectionStart"in a&&Ws(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}),Il&&ql(Il,a)||(Il=a,a=Bi(Ps,"onSelect"),0<a.length&&(t=new Vr("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ha)))}function ia(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ga={animationend:ia("Animation","AnimationEnd"),animationiteration:ia("Animation","AnimationIteration"),animationstart:ia("Animation","AnimationStart"),transitionrun:ia("Transition","TransitionRun"),transitionstart:ia("Transition","TransitionStart"),transitioncancel:ia("Transition","TransitionCancel"),transitionend:ia("Transition","TransitionEnd")},tu={},rd={};on&&(rd=document.createElement("div").style,"AnimationEvent"in window||(delete Ga.animationend.animation,delete Ga.animationiteration.animation,delete Ga.animationstart.animation),"TransitionEvent"in window||delete Ga.transitionend.transition);function sa(e){if(tu[e])return tu[e];if(!Ga[e])return e;var t=Ga[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rd)return tu[e]=t[n];return e}var id=sa("animationend"),sd=sa("animationiteration"),ud=sa("animationstart"),bb=sa("transitionrun"),vb=sa("transitionstart"),xb=sa("transitioncancel"),cd=sa("transitionend"),od=new Map,nu="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(" ");nu.push("scrollEnd");function Wt(e,t){od.set(e,t),la(t,[e])}var Jr=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)},Ht=[],Ya=0,au=0;function Wr(){for(var e=Ya,t=au=Ya=0;t<e;){var n=Ht[t];Ht[t++]=null;var a=Ht[t];Ht[t++]=null;var u=Ht[t];Ht[t++]=null;var c=Ht[t];if(Ht[t++]=null,a!==null&&u!==null){var p=a.pending;p===null?u.next=u:(u.next=p.next,p.next=u),a.pending=u}c!==0&&fd(n,u,c)}}function Pr(e,t,n,a){Ht[Ya++]=e,Ht[Ya++]=t,Ht[Ya++]=n,Ht[Ya++]=a,au|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function lu(e,t,n,a){return Pr(e,t,n,a),ei(e)}function ua(e,t){return Pr(e,null,null,t),ei(e)}function fd(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-At(n),e=c.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=n|536870912),c):null}function ei(e){if(50<fr)throw fr=0,hc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var qa={};function Sb(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 Ct(e,t,n,a){return new Sb(e,t,n,a)}function ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fn(e,t){var n=e.alternate;return n===null?(n=Ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function dd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ti(e,t,n,a,u,c){var p=0;if(a=e,typeof e=="function")ru(e)&&(p=1);else if(typeof e=="string")p=T0(e,n,H.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Ct(31,n,t,u),e.elementType=ae,e.lanes=c,e;case C:return ca(n.children,u,c,t);case _:p=8,u|=24;break;case B:return e=Ct(12,n,t,u|2),e.elementType=B,e.lanes=c,e;case q:return e=Ct(13,n,t,u),e.elementType=q,e.lanes=c,e;case Z:return e=Ct(19,n,t,u),e.elementType=Z,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:p=10;break e;case X:p=9;break e;case $:p=11;break e;case G:p=14;break e;case O:p=16,a=null;break e}p=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=Ct(p,n,t,u),t.elementType=e,t.type=a,t.lanes=c,t}function ca(e,t,n,a){return e=Ct(7,e,a,t),e.lanes=n,e}function iu(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function hd(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function su(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gd=new WeakMap;function Gt(e,t){if(typeof e=="object"&&e!==null){var n=gd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:hf(t)},gd.set(e,t),t)}return{value:e,source:t,stack:hf(t)}}var Ia=[],Xa=0,ni=null,Xl=0,Yt=[],qt=0,kn=null,tn=1,nn="";function dn(e,t){Ia[Xa++]=Xl,Ia[Xa++]=ni,ni=e,Xl=t}function md(e,t,n){Yt[qt++]=tn,Yt[qt++]=nn,Yt[qt++]=kn,kn=e;var a=tn;e=nn;var u=32-At(a)-1;a&=~(1<<u),n+=1;var c=32-At(t)+u;if(30<c){var p=u-u%5;c=(a&(1<<p)-1).toString(32),a>>=p,u-=p,tn=1<<32-At(t)+u|n<<u|a,nn=c+e}else tn=1<<c|n<<u|a,nn=e}function uu(e){e.return!==null&&(dn(e,1),md(e,1,0))}function cu(e){for(;e===ni;)ni=Ia[--Xa],Ia[Xa]=null,Xl=Ia[--Xa],Ia[Xa]=null;for(;e===kn;)kn=Yt[--qt],Yt[qt]=null,nn=Yt[--qt],Yt[qt]=null,tn=Yt[--qt],Yt[qt]=null}function pd(e,t){Yt[qt++]=tn,Yt[qt++]=nn,Yt[qt++]=kn,tn=t.id,nn=t.overflow,kn=e}var st=null,Ge=null,Ce=!1,Rn=null,It=!1,ou=Error(s(519));function Mn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fl(Gt(t,e)),ou}function yd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[it]=e,t[gt]=a,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<hr.length;n++)we(hr[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),jf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Rf(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||Dg(t.textContent,n)?(a.popover!=null&&(we("beforetoggle",t),we("toggle",t)),a.onScroll!=null&&we("scroll",t),a.onScrollEnd!=null&&we("scrollend",t),a.onClick!=null&&(t.onclick=cn),t=!0):t=!1,t||Mn(e,!0)}function bd(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:It=!1;return;case 27:case 3:It=!0;return;default:st=st.return}}function Fa(e){if(e!==st)return!1;if(!Ce)return bd(e),Ce=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||_c(e.type,e.memoizedProps)),n=!n),n&&Ge&&Mn(e),bd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Ig(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ge=Ig(e)}else t===27?(t=Ge,$n(e.type)?(e=Mc,Mc=null,Ge=e):Ge=t):Ge=st?Ft(e.stateNode.nextSibling):null;return!0}function oa(){Ge=st=null,Ce=!1}function fu(){var e=Rn;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),Rn=null),e}function Fl(e){Rn===null?Rn=[e]:Rn.push(e)}var du=N(null),fa=null,hn=null;function Dn(e,t,n){W(du,t._currentValue),t._currentValue=n}function gn(e){e._currentValue=du.current,I(du)}function hu(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 gu(e,t,n,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var p=u.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=u;for(var w=0;w<t.length;w++)if(v.context===t[w]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),hu(c.return,n,e),a||(p=null);break e}c=v.next}}else if(u.tag===18){if(p=u.return,p===null)throw Error(s(341));p.lanes|=n,c=p.alternate,c!==null&&(c.lanes|=n),hu(p,n,e),p=null}else p=u.child;if(p!==null)p.return=u;else for(p=u;p!==null;){if(p===e){p=null;break}if(u=p.sibling,u!==null){u.return=p.return,p=u;break}p=p.return}u=p}}function Za(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 p=u.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var v=u.type;Tt(u.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(u===Ee.current){if(p=u.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(br):e=[br])}u=u.return}e!==null&&gu(t,e,n,a),t.flags|=262144}function ai(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function da(e){fa=e,hn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return vd(fa,e)}function li(e,t){return fa===null&&da(e),vd(e,t)}function vd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},hn===null){if(e===null)throw Error(s(308));hn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hn=hn.next=t;return n}var Eb=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()})}},Nb=l.unstable_scheduleCallback,wb=l.unstable_NormalPriority,Ke={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mu(){return{controller:new Eb,data:new Map,refCount:0}}function Zl(e){e.refCount--,e.refCount===0&&Nb(wb,function(){e.controller.abort()})}var $l=null,pu=0,$a=0,Va=null;function Ab(e,t){if($l===null){var n=$l=[];pu=0,$a=vc(),Va={status:"pending",value:void 0,then:function(a){n.push(a)}}}return pu++,t.then(xd,xd),t}function xd(){if(--pu===0&&$l!==null){Va!==null&&(Va.status="fulfilled");var e=$l;$l=null,$a=0,Va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Tb(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 Sd=R.S;R.S=function(e,t){lg=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ab(e,t),Sd!==null&&Sd(e,t)};var ha=N(null);function yu(){var e=ha.current;return e!==null?e:Ue.pooledCache}function ri(e,t){t===null?W(ha,ha.current):W(ha,t.pool)}function Ed(){var e=yu();return e===null?null:{parent:Ke._currentValue,pool:e}}var Ka=Error(s(460)),bu=Error(s(474)),ii=Error(s(542)),si={then:function(){}};function Nd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(cn,cn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Td(e),e;default:if(typeof t.status=="string")t.then(cn,cn);else{if(e=Ue,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,Td(e),e}throw ma=t,Ka}}function ga(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ma=n,Ka):n}}var ma=null;function Ad(){if(ma===null)throw Error(s(459));var e=ma;return ma=null,e}function Td(e){if(e===Ka||e===ii)throw Error(s(483))}var Qa=null,Vl=0;function ui(e){var t=Vl;return Vl+=1,Qa===null&&(Qa=[]),wd(Qa,e,t)}function Kl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ci(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Cd(e){function t(j,T){if(e){var M=j.deletions;M===null?(j.deletions=[T],j.flags|=16):M.push(T)}}function n(j,T){if(!e)return null;for(;T!==null;)t(j,T),T=T.sibling;return null}function a(j){for(var T=new Map;j!==null;)j.key!==null?T.set(j.key,j):T.set(j.index,j),j=j.sibling;return T}function u(j,T){return j=fn(j,T),j.index=0,j.sibling=null,j}function c(j,T,M){return j.index=M,e?(M=j.alternate,M!==null?(M=M.index,M<T?(j.flags|=67108866,T):M):(j.flags|=67108866,T)):(j.flags|=1048576,T)}function p(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function v(j,T,M,V){return T===null||T.tag!==6?(T=iu(M,j.mode,V),T.return=j,T):(T=u(T,M),T.return=j,T)}function w(j,T,M,V){var de=M.type;return de===C?F(j,T,M.props.children,V,M.key):T!==null&&(T.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===O&&ga(de)===T.type)?(T=u(T,M.props),Kl(T,M),T.return=j,T):(T=ti(M.type,M.key,M.props,null,j.mode,V),Kl(T,M),T.return=j,T)}function D(j,T,M,V){return T===null||T.tag!==4||T.stateNode.containerInfo!==M.containerInfo||T.stateNode.implementation!==M.implementation?(T=su(M,j.mode,V),T.return=j,T):(T=u(T,M.children||[]),T.return=j,T)}function F(j,T,M,V,de){return T===null||T.tag!==7?(T=ca(M,j.mode,V,de),T.return=j,T):(T=u(T,M),T.return=j,T)}function K(j,T,M){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=iu(""+T,j.mode,M),T.return=j,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case E:return M=ti(T.type,T.key,T.props,null,j.mode,M),Kl(M,T),M.return=j,M;case A:return T=su(T,j.mode,M),T.return=j,T;case O:return T=ga(T),K(j,T,M)}if(Q(T)||fe(T))return T=ca(T,j.mode,M,null),T.return=j,T;if(typeof T.then=="function")return K(j,ui(T),M);if(T.$$typeof===k)return K(j,li(j,T),M);ci(j,T)}return null}function U(j,T,M,V){var de=T!==null?T.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return de!==null?null:v(j,T,""+M,V);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case E:return M.key===de?w(j,T,M,V):null;case A:return M.key===de?D(j,T,M,V):null;case O:return M=ga(M),U(j,T,M,V)}if(Q(M)||fe(M))return de!==null?null:F(j,T,M,V,null);if(typeof M.then=="function")return U(j,T,ui(M),V);if(M.$$typeof===k)return U(j,T,li(j,M),V);ci(j,M)}return null}function Y(j,T,M,V,de){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return j=j.get(M)||null,v(T,j,""+V,de);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case E:return j=j.get(V.key===null?M:V.key)||null,w(T,j,V,de);case A:return j=j.get(V.key===null?M:V.key)||null,D(T,j,V,de);case O:return V=ga(V),Y(j,T,M,V,de)}if(Q(V)||fe(V))return j=j.get(M)||null,F(T,j,V,de,null);if(typeof V.then=="function")return Y(j,T,M,ui(V),de);if(V.$$typeof===k)return Y(j,T,M,li(T,V),de);ci(T,V)}return null}function re(j,T,M,V){for(var de=null,_e=null,oe=T,Se=T=0,Te=null;oe!==null&&Se<M.length;Se++){oe.index>Se?(Te=oe,oe=null):Te=oe.sibling;var Oe=U(j,oe,M[Se],V);if(Oe===null){oe===null&&(oe=Te);break}e&&oe&&Oe.alternate===null&&t(j,oe),T=c(Oe,T,Se),_e===null?de=Oe:_e.sibling=Oe,_e=Oe,oe=Te}if(Se===M.length)return n(j,oe),Ce&&dn(j,Se),de;if(oe===null){for(;Se<M.length;Se++)oe=K(j,M[Se],V),oe!==null&&(T=c(oe,T,Se),_e===null?de=oe:_e.sibling=oe,_e=oe);return Ce&&dn(j,Se),de}for(oe=a(oe);Se<M.length;Se++)Te=Y(oe,j,Se,M[Se],V),Te!==null&&(e&&Te.alternate!==null&&oe.delete(Te.key===null?Se:Te.key),T=c(Te,T,Se),_e===null?de=Te:_e.sibling=Te,_e=Te);return e&&oe.forEach(function(Wn){return t(j,Wn)}),Ce&&dn(j,Se),de}function ge(j,T,M,V){if(M==null)throw Error(s(151));for(var de=null,_e=null,oe=T,Se=T=0,Te=null,Oe=M.next();oe!==null&&!Oe.done;Se++,Oe=M.next()){oe.index>Se?(Te=oe,oe=null):Te=oe.sibling;var Wn=U(j,oe,Oe.value,V);if(Wn===null){oe===null&&(oe=Te);break}e&&oe&&Wn.alternate===null&&t(j,oe),T=c(Wn,T,Se),_e===null?de=Wn:_e.sibling=Wn,_e=Wn,oe=Te}if(Oe.done)return n(j,oe),Ce&&dn(j,Se),de;if(oe===null){for(;!Oe.done;Se++,Oe=M.next())Oe=K(j,Oe.value,V),Oe!==null&&(T=c(Oe,T,Se),_e===null?de=Oe:_e.sibling=Oe,_e=Oe);return Ce&&dn(j,Se),de}for(oe=a(oe);!Oe.done;Se++,Oe=M.next())Oe=Y(oe,j,Se,Oe.value,V),Oe!==null&&(e&&Oe.alternate!==null&&oe.delete(Oe.key===null?Se:Oe.key),T=c(Oe,T,Se),_e===null?de=Oe:_e.sibling=Oe,_e=Oe);return e&&oe.forEach(function(U0){return t(j,U0)}),Ce&&dn(j,Se),de}function Le(j,T,M,V){if(typeof M=="object"&&M!==null&&M.type===C&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case E:e:{for(var de=M.key;T!==null;){if(T.key===de){if(de=M.type,de===C){if(T.tag===7){n(j,T.sibling),V=u(T,M.props.children),V.return=j,j=V;break e}}else if(T.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===O&&ga(de)===T.type){n(j,T.sibling),V=u(T,M.props),Kl(V,M),V.return=j,j=V;break e}n(j,T);break}else t(j,T);T=T.sibling}M.type===C?(V=ca(M.props.children,j.mode,V,M.key),V.return=j,j=V):(V=ti(M.type,M.key,M.props,null,j.mode,V),Kl(V,M),V.return=j,j=V)}return p(j);case A:e:{for(de=M.key;T!==null;){if(T.key===de)if(T.tag===4&&T.stateNode.containerInfo===M.containerInfo&&T.stateNode.implementation===M.implementation){n(j,T.sibling),V=u(T,M.children||[]),V.return=j,j=V;break e}else{n(j,T);break}else t(j,T);T=T.sibling}V=su(M,j.mode,V),V.return=j,j=V}return p(j);case O:return M=ga(M),Le(j,T,M,V)}if(Q(M))return re(j,T,M,V);if(fe(M)){if(de=fe(M),typeof de!="function")throw Error(s(150));return M=de.call(M),ge(j,T,M,V)}if(typeof M.then=="function")return Le(j,T,ui(M),V);if(M.$$typeof===k)return Le(j,T,li(j,M),V);ci(j,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,T!==null&&T.tag===6?(n(j,T.sibling),V=u(T,M),V.return=j,j=V):(n(j,T),V=iu(M,j.mode,V),V.return=j,j=V),p(j)):n(j,T)}return function(j,T,M,V){try{Vl=0;var de=Le(j,T,M,V);return Qa=null,de}catch(oe){if(oe===Ka||oe===ii)throw oe;var _e=Ct(29,oe,null,j.mode);return _e.lanes=V,_e.return=j,_e}finally{}}}var pa=Cd(!0),_d=Cd(!1),zn=!1;function vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xu(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 Ln(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Un(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(je&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=ei(e),fd(e,null,n),t}return Pr(e,a,t,n),ei(e)}function Ql(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,vf(e,n)}}function Su(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 p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?u=c=p:c=c.next=p,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 Eu=!1;function Jl(){if(Eu){var e=Va;if(e!==null)throw e}}function Wl(e,t,n,a){Eu=!1;var u=e.updateQueue;zn=!1;var c=u.firstBaseUpdate,p=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var w=v,D=w.next;w.next=null,p===null?c=D:p.next=D,p=w;var F=e.alternate;F!==null&&(F=F.updateQueue,v=F.lastBaseUpdate,v!==p&&(v===null?F.firstBaseUpdate=D:v.next=D,F.lastBaseUpdate=w))}if(c!==null){var K=u.baseState;p=0,F=D=w=null,v=c;do{var U=v.lane&-536870913,Y=U!==v.lane;if(Y?(Ae&U)===U:(a&U)===U){U!==0&&U===$a&&(Eu=!0),F!==null&&(F=F.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var re=e,ge=v;U=t;var Le=n;switch(ge.tag){case 1:if(re=ge.payload,typeof re=="function"){K=re.call(Le,K,U);break e}K=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=ge.payload,U=typeof re=="function"?re.call(Le,K,U):re,U==null)break e;K=x({},K,U);break e;case 2:zn=!0}}U=v.callback,U!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=u.callbacks,Y===null?u.callbacks=[U]:Y.push(U))}else Y={lane:U,tag:v.tag,payload:v.payload,callback:v.callback,next:null},F===null?(D=F=Y,w=K):F=F.next=Y,p|=U;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;Y=v,v=Y.next,Y.next=null,u.lastBaseUpdate=Y,u.shared.pending=null}}while(!0);F===null&&(w=K),u.baseState=w,u.firstBaseUpdate=D,u.lastBaseUpdate=F,c===null&&(u.shared.lanes=0),qn|=p,e.lanes=p,e.memoizedState=K}}function Od(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function jd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Od(n[e],t)}var Ja=N(null),oi=N(0);function kd(e,t){e=Nn,W(oi,e),W(Ja,t),Nn=e|t.baseLanes}function Nu(){W(oi,Nn),W(Ja,Ja.current)}function wu(){Nn=oi.current,I(Ja),I(oi)}var _t=N(null),Xt=null;function Bn(e){var t=e.alternate;W(Ze,Ze.current&1),W(_t,e),Xt===null&&(t===null||Ja.current!==null||t.memoizedState!==null)&&(Xt=e)}function Au(e){W(Ze,Ze.current),W(_t,e),Xt===null&&(Xt=e)}function Rd(e){e.tag===22?(W(Ze,Ze.current),W(_t,e),Xt===null&&(Xt=e)):Hn()}function Hn(){W(Ze,Ze.current),W(_t,_t.current)}function Ot(e){I(_t),Xt===e&&(Xt=null),I(Ze)}var Ze=N(0);function fi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||kc(n)||Rc(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 mn=0,ve=null,De=null,Qe=null,di=!1,Wa=!1,ya=!1,hi=0,Pl=0,Pa=null,Cb=0;function Xe(){throw Error(s(321))}function Tu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tt(e[n],t[n]))return!1;return!0}function Cu(e,t,n,a,u,c){return mn=c,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?mh:qu,ya=!1,c=n(a,u),ya=!1,Wa&&(c=Dd(t,n,a,u)),Md(e),c}function Md(e){R.H=nr;var t=De!==null&&De.next!==null;if(mn=0,Qe=De=ve=null,di=!1,Pl=0,Pa=null,t)throw Error(s(300));e===null||Je||(e=e.dependencies,e!==null&&ai(e)&&(Je=!0))}function Dd(e,t,n,a){ve=e;var u=0;do{if(Wa&&(Pa=null),Pl=0,Wa=!1,25<=u)throw Error(s(301));if(u+=1,Qe=De=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}R.H=ph,c=t(n,a)}while(Wa);return c}function _b(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?er(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ve.flags|=1024),t}function _u(){var e=hi!==0;return hi=0,e}function Ou(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ju(e){if(di){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}di=!1}mn=0,Qe=De=ve=null,Wa=!1,Pl=hi=0,Pa=null}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ve.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function $e(){if(De===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Qe===null?ve.memoizedState:Qe.next;if(t!==null)Qe=t,De=e;else{if(e===null)throw ve.alternate===null?Error(s(467)):Error(s(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Qe===null?ve.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function er(e){var t=Pl;return Pl+=1,Pa===null&&(Pa=[]),e=wd(Pa,e,t),t=ve,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?mh:qu),e}function mi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return er(e);if(e.$$typeof===k)return ut(e)}throw Error(s(438,String(e)))}function ku(e){var t=null,n=ve.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ve.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=gi(),ve.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ee;return t.index++,n}function pn(e,t){return typeof t=="function"?t(e):t}function pi(e){var t=$e();return Ru(t,De,e)}function Ru(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 p=u.next;u.next=c.next,c.next=p}t.baseQueue=u=c,a.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var v=p=null,w=null,D=t,F=!1;do{var K=D.lane&-536870913;if(K!==D.lane?(Ae&K)===K:(mn&K)===K){var U=D.revertLane;if(U===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),K===$a&&(F=!0);else if((mn&U)===U){D=D.next,U===$a&&(F=!0);continue}else K={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},w===null?(v=w=K,p=c):w=w.next=K,ve.lanes|=U,qn|=U;K=D.action,ya&&n(c,K),c=D.hasEagerState?D.eagerState:n(c,K)}else U={lane:K,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},w===null?(v=w=U,p=c):w=w.next=U,ve.lanes|=K,qn|=K;D=D.next}while(D!==null&&D!==t);if(w===null?p=c:w.next=v,!Tt(c,e.memoizedState)&&(Je=!0,F&&(n=Va,n!==null)))throw n;e.memoizedState=c,e.baseState=p,e.baseQueue=w,a.lastRenderedState=c}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Mu(e){var t=$e(),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 p=u=u.next;do c=e(c,p.action),p=p.next;while(p!==u);Tt(c,t.memoizedState)||(Je=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function zd(e,t,n){var a=ve,u=$e(),c=Ce;if(c){if(n===void 0)throw Error(s(407));n=n()}else n=t();var p=!Tt((De||u).memoizedState,n);if(p&&(u.memoizedState=n,Je=!0),u=u.queue,Lu(Bd.bind(null,a,u,e),[e]),u.getSnapshot!==t||p||Qe!==null&&Qe.memoizedState.tag&1){if(a.flags|=2048,el(9,{destroy:void 0},Ud.bind(null,a,u,n,t),null),Ue===null)throw Error(s(349));c||(mn&127)!==0||Ld(a,t,n)}return n}function Ld(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t=gi(),ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ud(e,t,n,a){t.value=n,t.getSnapshot=a,Hd(t)&&Gd(e)}function Bd(e,t,n){return n(function(){Hd(t)&&Gd(e)})}function Hd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function Gd(e){var t=ua(e,2);t!==null&&xt(t,e,2)}function Du(e){var t=ht();if(typeof e=="function"){var n=e;if(e=n(),ya){_n(!0);try{n()}finally{_n(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:e},t}function Yd(e,t,n,a){return e.baseState=n,Ru(e,De,typeof a=="function"?a:pn)}function Ob(e,t,n,a,u){if(vi(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(p){c.listeners.push(p)}};R.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,qd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function qd(e,t){var n=t.action,a=t.payload,u=e.state;if(t.isTransition){var c=R.T,p={};R.T=p;try{var v=n(u,a),w=R.S;w!==null&&w(p,v),Id(e,t,v)}catch(D){zu(e,t,D)}finally{c!==null&&p.types!==null&&(c.types=p.types),R.T=c}}else try{c=n(u,a),Id(e,t,c)}catch(D){zu(e,t,D)}}function Id(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Xd(e,t,a)},function(a){return zu(e,t,a)}):Xd(e,t,n)}function Xd(e,t,n){t.status="fulfilled",t.value=n,Fd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,qd(e,n)))}function zu(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Fd(t),t=t.next;while(t!==a)}e.action=null}function Fd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zd(e,t){return t}function $d(e,t){if(Ce){var n=Ue.formState;if(n!==null){e:{var a=ve;if(Ce){if(Ge){t:{for(var u=Ge,c=It;u.nodeType!==8;){if(!c){u=null;break t}if(u=Ft(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ge=Ft(u.nextSibling),a=u.data==="F!";break e}}Mn(a)}a=!1}a&&(t=n[0])}}return n=ht(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zd,lastRenderedState:t},n.queue=a,n=dh.bind(null,ve,a),a.dispatch=n,a=Du(!1),c=Yu.bind(null,ve,!1,a.queue),a=ht(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,n=Ob.bind(null,ve,u,c,n),u.dispatch=n,a.memoizedState=e,[t,n,!1]}function Vd(e){var t=$e();return Kd(t,De,e)}function Kd(e,t,n){if(t=Ru(e,t,Zd)[0],e=pi(pn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=er(t)}catch(p){throw p===Ka?ii:p}else a=t;t=$e();var u=t.queue,c=u.dispatch;return n!==t.memoizedState&&(ve.flags|=2048,el(9,{destroy:void 0},jb.bind(null,u,n),null)),[a,c,e]}function jb(e,t){e.action=t}function Qd(e){var t=$e(),n=De;if(n!==null)return Kd(t,n,e);$e(),t=t.memoizedState,n=$e();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function el(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ve.updateQueue,t===null&&(t=gi(),ve.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 Jd(){return $e().memoizedState}function yi(e,t,n,a){var u=ht();ve.flags|=e,u.memoizedState=el(1|t,{destroy:void 0},n,a===void 0?null:a)}function bi(e,t,n,a){var u=$e();a=a===void 0?null:a;var c=u.memoizedState.inst;De!==null&&a!==null&&Tu(a,De.memoizedState.deps)?u.memoizedState=el(t,c,n,a):(ve.flags|=e,u.memoizedState=el(1|t,c,n,a))}function Wd(e,t){yi(8390656,8,e,t)}function Lu(e,t){bi(2048,8,e,t)}function kb(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=gi(),ve.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Pd(e){var t=$e().memoizedState;return kb({ref:t,nextImpl:e}),function(){if((je&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function eh(e,t){return bi(4,2,e,t)}function th(e,t){return bi(4,4,e,t)}function nh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ah(e,t,n){n=n!=null?n.concat([e]):null,bi(4,4,nh.bind(null,t,e),n)}function Uu(){}function lh(e,t){var n=$e();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Tu(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function rh(e,t){var n=$e();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Tu(t,a[1]))return a[0];if(a=e(),ya){_n(!0);try{e()}finally{_n(!1)}}return n.memoizedState=[a,t],a}function Bu(e,t,n){return n===void 0||(mn&1073741824)!==0&&(Ae&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ig(),ve.lanes|=e,qn|=e,n)}function ih(e,t,n,a){return Tt(n,t)?n:Ja.current!==null?(e=Bu(e,n,a),Tt(e,t)||(Je=!0),e):(mn&42)===0||(mn&1073741824)!==0&&(Ae&261930)===0?(Je=!0,e.memoizedState=n):(e=ig(),ve.lanes|=e,qn|=e,t)}function sh(e,t,n,a,u){var c=z.p;z.p=c!==0&&8>c?c:8;var p=R.T,v={};R.T=v,Yu(e,!1,t,n);try{var w=u(),D=R.S;if(D!==null&&D(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var F=Tb(w,a);tr(e,t,F,Rt(e))}else tr(e,t,a,Rt(e))}catch(K){tr(e,t,{then:function(){},status:"rejected",reason:K},Rt())}finally{z.p=c,p!==null&&v.types!==null&&(p.types=v.types),R.T=p}}function Rb(){}function Hu(e,t,n,a){if(e.tag!==5)throw Error(s(476));var u=uh(e).queue;sh(e,u,t,le,n===null?Rb:function(){return ch(e),n(a)})}function uh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ch(e){var t=uh(e);t.next===null&&(t=e.alternate.memoizedState),tr(e,t.next.queue,{},Rt())}function Gu(){return ut(br)}function oh(){return $e().memoizedState}function fh(){return $e().memoizedState}function Mb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Rt();e=Ln(n);var a=Un(t,e,n);a!==null&&(xt(a,t,n),Ql(a,t,n)),t={cache:mu()},e.payload=t;return}t=t.return}}function Db(e,t,n){var a=Rt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},vi(e)?hh(t,n):(n=lu(e,t,n,a),n!==null&&(xt(n,e,a),gh(n,t,a)))}function dh(e,t,n){var a=Rt();tr(e,t,n,a)}function tr(e,t,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(vi(e))hh(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,v=c(p,n);if(u.hasEagerState=!0,u.eagerState=v,Tt(v,p))return Pr(e,t,u,0),Ue===null&&Wr(),!1}catch{}finally{}if(n=lu(e,t,u,a),n!==null)return xt(n,e,a),gh(n,t,a),!0}return!1}function Yu(e,t,n,a){if(a={lane:2,revertLane:vc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},vi(e)){if(t)throw Error(s(479))}else t=lu(e,n,a,2),t!==null&&xt(t,e,2)}function vi(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function hh(e,t){Wa=di=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,vf(e,n)}}var nr={readContext:ut,use:mi,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};nr.useEffectEvent=Xe;var mh={readContext:ut,use:mi,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:Wd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,yi(4194308,4,nh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){yi(4,2,e,t)},useMemo:function(e,t){var n=ht();t=t===void 0?null:t;var a=e();if(ya){_n(!0);try{e()}finally{_n(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ht();if(n!==void 0){var u=n(t);if(ya){_n(!0);try{n(t)}finally{_n(!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=Db.bind(null,ve,e),[a.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Du(e);var t=e.queue,n=dh.bind(null,ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Uu,useDeferredValue:function(e,t){var n=ht();return Bu(n,e,t)},useTransition:function(){var e=Du(!1);return e=sh.bind(null,ve,e.queue,!0,!1),ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ve,u=ht();if(Ce){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Ue===null)throw Error(s(349));(Ae&127)!==0||Ld(a,t,n)}u.memoizedState=n;var c={value:n,getSnapshot:t};return u.queue=c,Wd(Bd.bind(null,a,c,e),[e]),a.flags|=2048,el(9,{destroy:void 0},Ud.bind(null,a,c,n,t),null),n},useId:function(){var e=ht(),t=Ue.identifierPrefix;if(Ce){var n=nn,a=tn;n=(a&~(1<<32-At(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=hi++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Cb++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Gu,useFormState:$d,useActionState:$d,useOptimistic:function(e){var t=ht();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Yu.bind(null,ve,!0,n),n.dispatch=t,[e,t]},useMemoCache:ku,useCacheRefresh:function(){return ht().memoizedState=Mb.bind(null,ve)},useEffectEvent:function(e){var t=ht(),n={impl:e};return t.memoizedState=n,function(){if((je&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},qu={readContext:ut,use:mi,useCallback:lh,useContext:ut,useEffect:Lu,useImperativeHandle:ah,useInsertionEffect:eh,useLayoutEffect:th,useMemo:rh,useReducer:pi,useRef:Jd,useState:function(){return pi(pn)},useDebugValue:Uu,useDeferredValue:function(e,t){var n=$e();return ih(n,De.memoizedState,e,t)},useTransition:function(){var e=pi(pn)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:er(e),t]},useSyncExternalStore:zd,useId:oh,useHostTransitionStatus:Gu,useFormState:Vd,useActionState:Vd,useOptimistic:function(e,t){var n=$e();return Yd(n,De,e,t)},useMemoCache:ku,useCacheRefresh:fh};qu.useEffectEvent=Pd;var ph={readContext:ut,use:mi,useCallback:lh,useContext:ut,useEffect:Lu,useImperativeHandle:ah,useInsertionEffect:eh,useLayoutEffect:th,useMemo:rh,useReducer:Mu,useRef:Jd,useState:function(){return Mu(pn)},useDebugValue:Uu,useDeferredValue:function(e,t){var n=$e();return De===null?Bu(n,e,t):ih(n,De.memoizedState,e,t)},useTransition:function(){var e=Mu(pn)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:er(e),t]},useSyncExternalStore:zd,useId:oh,useHostTransitionStatus:Gu,useFormState:Qd,useActionState:Qd,useOptimistic:function(e,t){var n=$e();return De!==null?Yd(n,De,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ku,useCacheRefresh:fh};ph.useEffectEvent=Pd;function Iu(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xu={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Rt(),u=Ln(a);u.payload=t,n!=null&&(u.callback=n),t=Un(e,u,a),t!==null&&(xt(t,e,a),Ql(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Rt(),u=Ln(a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Un(e,u,a),t!==null&&(xt(t,e,a),Ql(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rt(),a=Ln(n);a.tag=2,t!=null&&(a.callback=t),t=Un(e,a,n),t!==null&&(xt(t,e,n),Ql(t,e,n))}};function yh(e,t,n,a,u,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,p):t.prototype&&t.prototype.isPureReactComponent?!ql(n,a)||!ql(u,c):!0}function bh(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&&Xu.enqueueReplaceState(t,t.state,null)}function ba(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=x({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}function vh(e){Jr(e)}function xh(e){console.error(e)}function Sh(e){Jr(e)}function xi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Eh(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 Fu(e,t,n){return n=Ln(n),n.tag=3,n.payload={element:null},n.callback=function(){xi(e,t)},n}function Nh(e){return e=Ln(e),e.tag=3,e}function wh(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(){Eh(t,n,a)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Eh(t,n,a),typeof u!="function"&&(In===null?In=new Set([this]):In.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function zb(e,t,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Za(t,n,u,!0),n=_t.current,n!==null){switch(n.tag){case 31:case 13:return Xt===null?Ri():n.alternate===null&&Fe===0&&(Fe=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===si?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),pc(e,a,u)),!1;case 22:return n.flags|=65536,a===si?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)),pc(e,a,u)),!1}throw Error(s(435,n.tag))}return pc(e,a,u),Ri(),!1}if(Ce)return t=_t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==ou&&(e=Error(s(422),{cause:a}),Fl(Gt(e,n)))):(a!==ou&&(t=Error(s(423),{cause:a}),Fl(Gt(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=Gt(a,n),u=Fu(e.stateNode,a,u),Su(e,u),Fe!==4&&(Fe=2)),!1;var c=Error(s(520),{cause:a});if(c=Gt(c,n),or===null?or=[c]:or.push(c),Fe!==4&&(Fe=2),t===null)return!0;a=Gt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=Fu(n.stateNode,a,e),Su(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"&&(In===null||!In.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Nh(u),wh(u,e,n,a),Su(n,u),!1}n=n.return}while(n!==null);return!1}var Zu=Error(s(461)),Je=!1;function ct(e,t,n,a){t.child=e===null?_d(t,null,n,a):pa(t,e.child,n,a)}function Ah(e,t,n,a,u){n=n.render;var c=t.ref;if("ref"in a){var p={};for(var v in a)v!=="ref"&&(p[v]=a[v])}else p=a;return da(t),a=Cu(e,t,n,p,c,u),v=_u(),e!==null&&!Je?(Ou(e,t,u),yn(e,t,u)):(Ce&&v&&uu(t),t.flags|=1,ct(e,t,a,u),t.child)}function Th(e,t,n,a,u){if(e===null){var c=n.type;return typeof c=="function"&&!ru(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Ch(e,t,c,a,u)):(e=ti(n.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!ec(e,u)){var p=c.memoizedProps;if(n=n.compare,n=n!==null?n:ql,n(p,a)&&e.ref===t.ref)return yn(e,t,u)}return t.flags|=1,e=fn(c,a),e.ref=t.ref,e.return=t,t.child=e}function Ch(e,t,n,a,u){if(e!==null){var c=e.memoizedProps;if(ql(c,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=c,ec(e,u))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,yn(e,t,u)}return $u(e,t,n,a,u)}function _h(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 Oh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ri(t,c!==null?c.cachePool:null),c!==null?kd(t,c):Nu(),Rd(t);else return a=t.lanes=536870912,Oh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(ri(t,c.cachePool),kd(t,c),Hn(),t.memoizedState=null):(e!==null&&ri(t,null),Nu(),Hn());return ct(e,t,u,n),t.child}function ar(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Oh(e,t,n,a,u){var c=yu();return c=c===null?null:{parent:Ke._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ri(t,null),Nu(),Rd(t),e!==null&&Za(e,t,a,!0),t.childLanes=u,null}function Si(e,t){return t=Ni({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function jh(e,t,n){return pa(t,e.child,null,n),e=Si(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function Lb(e,t,n){var a=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(a.mode==="hidden")return e=Si(t,a),t.lanes=536870912,ar(null,e);if(Au(t),(e=Ge)?(e=qg(e,It),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:tn,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},n=hd(e),n.return=t,t.child=n,st=t,Ge=null)):e=null,e===null)throw Mn(t);return t.lanes=536870912,null}return Si(t,a)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(Au(t),u)if(t.flags&256)t.flags&=-257,t=jh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Je||Za(e,t,n,!1),u=(n&e.childLanes)!==0,Je||u){if(a=Ue,a!==null&&(p=xf(a,n),p!==0&&p!==c.retryLane))throw c.retryLane=p,ua(e,p),xt(a,e,p),Zu;Ri(),t=jh(e,t,n)}else e=c.treeContext,Ge=Ft(p.nextSibling),st=t,Ce=!0,Rn=null,It=!1,e!==null&&pd(t,e),t=Si(t,a),t.flags|=4096;return t}return e=fn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ei(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 $u(e,t,n,a,u){return da(t),n=Cu(e,t,n,a,void 0,u),a=_u(),e!==null&&!Je?(Ou(e,t,u),yn(e,t,u)):(Ce&&a&&uu(t),t.flags|=1,ct(e,t,n,u),t.child)}function kh(e,t,n,a,u,c){return da(t),t.updateQueue=null,n=Dd(t,a,n,u),Md(e),a=_u(),e!==null&&!Je?(Ou(e,t,c),yn(e,t,c)):(Ce&&a&&uu(t),t.flags|=1,ct(e,t,n,c),t.child)}function Rh(e,t,n,a,u){if(da(t),t.stateNode===null){var c=qa,p=n.contextType;typeof p=="object"&&p!==null&&(c=ut(p)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Xu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},vu(t),p=n.contextType,c.context=typeof p=="object"&&p!==null?ut(p):qa,c.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Iu(t,n,p,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Xu.enqueueReplaceState(c,c.state,null),Wl(t,a,c,u),Jl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,w=ba(n,v);c.props=w;var D=c.context,F=n.contextType;p=qa,typeof F=="object"&&F!==null&&(p=ut(F));var K=n.getDerivedStateFromProps;F=typeof K=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,F||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||D!==p)&&bh(t,c,a,p),zn=!1;var U=t.memoizedState;c.state=U,Wl(t,a,c,u),Jl(),D=t.memoizedState,v||U!==D||zn?(typeof K=="function"&&(Iu(t,n,K,a),D=t.memoizedState),(w=zn||yh(t,n,w,a,U,D,p))?(F||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=p,a=w):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,xu(e,t),p=t.memoizedProps,F=ba(n,p),c.props=F,K=t.pendingProps,U=c.context,D=n.contextType,w=qa,typeof D=="object"&&D!==null&&(w=ut(D)),v=n.getDerivedStateFromProps,(D=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==K||U!==w)&&bh(t,c,a,w),zn=!1,U=t.memoizedState,c.state=U,Wl(t,a,c,u),Jl();var Y=t.memoizedState;p!==K||U!==Y||zn||e!==null&&e.dependencies!==null&&ai(e.dependencies)?(typeof v=="function"&&(Iu(t,n,v,a),Y=t.memoizedState),(F=zn||yh(t,n,F,a,U,Y,w)||e!==null&&e.dependencies!==null&&ai(e.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,Y,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,Y,w)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=Y),c.props=a,c.state=Y,c.context=w,a=F):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Ei(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=pa(t,e.child,null,u),t.child=pa(t,null,n,u)):ct(e,t,n,u),t.memoizedState=c.state,e=t.child):e=yn(e,t,u),e}function Mh(e,t,n,a){return oa(),t.flags|=256,ct(e,t,n,a),t.child}var Vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ku(e){return{baseLanes:e,cachePool:Ed()}}function Qu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=kt),e}function Dh(e,t,n){var a=t.pendingProps,u=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),p&&(u=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(u?Bn(t):Hn(),(e=Ge)?(e=qg(e,It),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:tn,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},n=hd(e),n.return=t,t.child=n,st=t,Ge=null)):e=null,e===null)throw Mn(t);return Rc(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,u?(Hn(),u=t.mode,v=Ni({mode:"hidden",children:v},u),a=ca(a,u,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=Ku(n),a.childLanes=Qu(e,p,n),t.memoizedState=Vu,ar(null,a)):(Bn(t),Ju(t,v))}var w=e.memoizedState;if(w!==null&&(v=w.dehydrated,v!==null)){if(c)t.flags&256?(Bn(t),t.flags&=-257,t=Wu(e,t,n)):t.memoizedState!==null?(Hn(),t.child=e.child,t.flags|=128,t=null):(Hn(),v=a.fallback,u=t.mode,a=Ni({mode:"visible",children:a.children},u),v=ca(v,u,n,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,pa(t,e.child,null,n),a=t.child,a.memoizedState=Ku(n),a.childLanes=Qu(e,p,n),t.memoizedState=Vu,t=ar(null,a));else if(Bn(t),Rc(v)){if(p=v.nextSibling&&v.nextSibling.dataset,p)var D=p.dgst;p=D,a=Error(s(419)),a.stack="",a.digest=p,Fl({value:a,source:null,stack:null}),t=Wu(e,t,n)}else if(Je||Za(e,t,n,!1),p=(n&e.childLanes)!==0,Je||p){if(p=Ue,p!==null&&(a=xf(p,n),a!==0&&a!==w.retryLane))throw w.retryLane=a,ua(e,a),xt(p,e,a),Zu;kc(v)||Ri(),t=Wu(e,t,n)}else kc(v)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Ge=Ft(v.nextSibling),st=t,Ce=!0,Rn=null,It=!1,e!==null&&pd(t,e),t=Ju(t,a.children),t.flags|=4096);return t}return u?(Hn(),v=a.fallback,u=t.mode,w=e.child,D=w.sibling,a=fn(w,{mode:"hidden",children:a.children}),a.subtreeFlags=w.subtreeFlags&65011712,D!==null?v=fn(D,v):(v=ca(v,u,n,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,ar(null,a),a=t.child,v=e.child.memoizedState,v===null?v=Ku(n):(u=v.cachePool,u!==null?(w=Ke._currentValue,u=u.parent!==w?{parent:w,pool:w}:u):u=Ed(),v={baseLanes:v.baseLanes|n,cachePool:u}),a.memoizedState=v,a.childLanes=Qu(e,p,n),t.memoizedState=Vu,ar(e.child,a)):(Bn(t),n=e.child,e=n.sibling,n=fn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function Ju(e,t){return t=Ni({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ni(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function Wu(e,t,n){return pa(t,e.child,null,n),e=Ju(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),hu(e.return,t,n)}function Pu(e,t,n,a,u,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=a,p.tail=n,p.tailMode=u,p.treeForkCount=c)}function Lh(e,t,n){var a=t.pendingProps,u=a.revealOrder,c=a.tail;a=a.children;var p=Ze.current,v=(p&2)!==0;if(v?(p=p&1|2,t.flags|=128):p&=1,W(Ze,p),ct(e,t,a,n),a=Ce?Xl:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zh(e,n,t);else if(e.tag===19)zh(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&&fi(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),Pu(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&&fi(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}Pu(t,!0,n,null,c,a);break;case"together":Pu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Za(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=fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ec(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ai(e)))}function Ub(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Dn(t,Ke,e.memoizedState.cache),oa();break;case 27:case 5:Be(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Dn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Au(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Bn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Dh(e,t,n):(Bn(t),e=yn(e,t,n),e!==null?e.sibling:null);Bn(t);break;case 19:var u=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Za(e,t,n,!1),a=(n&t.childLanes)!==0),u){if(a)return Lh(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),W(Ze,Ze.current),a)break;return null;case 22:return t.lanes=0,_h(e,t,n,t.pendingProps);case 24:Dn(t,Ke,e.memoizedState.cache)}return yn(e,t,n)}function Uh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!ec(e,n)&&(t.flags&128)===0)return Je=!1,Ub(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,Ce&&(t.flags&1048576)!==0&&md(t,Xl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ga(t.elementType),t.type=e,typeof e=="function")ru(e)?(a=ba(e,a),t.tag=1,t=Rh(null,t,e,a,n)):(t.tag=0,t=$u(null,t,e,a,n));else{if(e!=null){var u=e.$$typeof;if(u===$){t.tag=11,t=Ah(null,t,e,a,n);break e}else if(u===G){t.tag=14,t=Th(null,t,e,a,n);break e}}throw t=J(e)||e,Error(s(306,t,""))}}return t;case 0:return $u(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,u=ba(a,t.pendingProps),Rh(e,t,a,u,n);case 3:e:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var c=t.memoizedState;u=c.element,xu(e,t),Wl(t,a,null,n);var p=t.memoizedState;if(a=p.cache,Dn(t,Ke,a),a!==c.cache&&gu(t,[Ke],n,!0),Jl(),a=p.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Mh(e,t,a,n);break e}else if(a!==u){u=Gt(Error(s(424)),t),Fl(u),t=Mh(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(Ge=Ft(e.firstChild),st=t,Ce=!0,Rn=null,It=!0,n=_d(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(oa(),a===u){t=yn(e,t,n);break e}ct(e,t,a,n)}t=t.child}return t;case 26:return Ei(e,t),e===null?(n=Vg(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ce||(n=t.type,e=t.pendingProps,a=Hi(ce.current).createElement(n),a[it]=t,a[gt]=e,ot(a,n,e),nt(a),t.stateNode=a):t.memoizedState=Vg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Be(t),e===null&&Ce&&(a=t.stateNode=Fg(t.type,t.pendingProps,ce.current),st=t,It=!0,u=Ge,$n(t.type)?(Mc=u,Ge=Ft(a.firstChild)):Ge=u),ct(e,t,t.pendingProps.children,n),Ei(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((u=a=Ge)&&(a=h0(a,t.type,t.pendingProps,It),a!==null?(t.stateNode=a,st=t,Ge=Ft(a.firstChild),It=!1,u=!0):u=!1),u||Mn(t)),Be(t),u=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,a=c.children,_c(u,c)?a=null:p!==null&&_c(u,p)&&(t.flags|=32),t.memoizedState!==null&&(u=Cu(e,t,_b,null,null,n),br._currentValue=u),Ei(e,t),ct(e,t,a,n),t.child;case 6:return e===null&&Ce&&((e=n=Ge)&&(n=g0(n,t.pendingProps,It),n!==null?(t.stateNode=n,st=t,Ge=null,e=!0):e=!1),e||Mn(t)),null;case 13:return Dh(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=pa(t,null,a,n):ct(e,t,a,n),t.child;case 11:return Ah(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Dn(t,t.type,a.value),ct(e,t,a.children,n),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,da(t),u=ut(u),a=a(u),t.flags|=1,ct(e,t,a,n),t.child;case 14:return Th(e,t,t.type,t.pendingProps,n);case 15:return Ch(e,t,t.type,t.pendingProps,n);case 19:return Lh(e,t,n);case 31:return Lb(e,t,n);case 22:return _h(e,t,n,t.pendingProps);case 24:return da(t),a=ut(Ke),e===null?(u=yu(),u===null&&(u=Ue,c=mu(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),t.memoizedState={parent:a,cache:u},vu(t),Dn(t,Ke,u)):((e.lanes&n)!==0&&(xu(e,t),Wl(t,null,null,n),Jl()),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),Dn(t,Ke,a)):(a=c.cache,Dn(t,Ke,a),a!==u.cache&&gu(t,[Ke],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function bn(e){e.flags|=4}function tc(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(og())e.flags|=8192;else throw ma=si,bu}else e.flags&=-16777217}function Bh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Pg(t))if(og())e.flags|=8192;else throw ma=si,bu}function wi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yf():536870912,e.lanes|=t,ll|=t)}function lr(e,t){if(!Ce)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 Ye(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 Bb(e,t,n){var a=t.pendingProps;switch(cu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),gn(Ke),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Fa(t)?bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fu())),Ye(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(bn(t),c!==null?(Ye(t),Bh(t,c)):(Ye(t),tc(t,u,null,a,n))):c?c!==e.memoizedState?(bn(t),Ye(t),Bh(t,c)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&bn(t),Ye(t),tc(t,u,e,a,n)),null;case 27:if(Qt(t),n=ce.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&bn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}e=H.current,Fa(t)?yd(t):(e=Fg(u,a,n),t.stateNode=e,bn(t))}return Ye(t),null;case 5:if(Qt(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&bn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ye(t),null}if(c=H.current,Fa(t))yd(t);else{var p=Hi(ce.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?p.createElement("select",{is:a.is}):p.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?p.createElement(u,{is:a.is}):p.createElement(u)}}c[it]=t,c[gt]=a;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(ot(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&&bn(t)}}return Ye(t),tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&bn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ce.current,Fa(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,u=st,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[it]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Dg(e.nodeValue,n)),e||Mn(t,!0)}else e=Hi(e).createTextNode(a),e[it]=t,t.stateNode=e}return Ye(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Fa(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[it]=t}else oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else n=fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ye(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Fa(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[it]=t}else oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),u=!1}else u=fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(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),wi(t,t.updateQueue),Ye(t),null);case 4:return ye(),e===null&&Nc(t.stateNode.containerInfo),Ye(t),null;case 10:return gn(t.type),Ye(t),null;case 19:if(I(Ze),a=t.memoizedState,a===null)return Ye(t),null;if(u=(t.flags&128)!==0,c=a.rendering,c===null)if(u)lr(a,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=fi(e),c!==null){for(t.flags|=128,lr(a,!1),e=c.updateQueue,t.updateQueue=e,wi(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)dd(n,e),n=n.sibling;return W(Ze,Ze.current&1|2),Ce&&dn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Nt()>Oi&&(t.flags|=128,u=!0,lr(a,!1),t.lanes=4194304)}else{if(!u)if(e=fi(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,wi(t,e),lr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Ce)return Ye(t),null}else 2*Nt()-a.renderingStartTime>Oi&&n!==536870912&&(t.flags|=128,u=!0,lr(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=Nt(),e.sibling=null,n=Ze.current,W(Ze,u?n&1|2:n&1),Ce&&dn(t,a.treeForkCount),e):(Ye(t),null);case 22:case 23:return Ot(t),wu(),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&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),n=t.updateQueue,n!==null&&wi(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&&I(ha),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),gn(Ke),Ye(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Hb(e,t){switch(cu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gn(Ke),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Qt(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(s(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I(Ze),null;case 4:return ye(),null;case 10:return gn(t.type),null;case 22:case 23:return Ot(t),wu(),e!==null&&I(ha),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gn(Ke),null;case 25:return null;default:return null}}function Hh(e,t){switch(cu(t),t.tag){case 3:gn(Ke),ye();break;case 26:case 27:case 5:Qt(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:I(Ze);break;case 10:gn(t.type);break;case 22:case 23:Ot(t),wu(),e!==null&&I(ha);break;case 24:gn(Ke)}}function rr(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,p=n.inst;a=c(),p.destroy=a}n=n.next}while(n!==u)}}catch(v){Re(t,t.return,v)}}function Gn(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 p=a.inst,v=p.destroy;if(v!==void 0){p.destroy=void 0,u=t;var w=n,D=v;try{D()}catch(F){Re(u,w,F)}}}a=a.next}while(a!==c)}}catch(F){Re(t,t.return,F)}}function Gh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{jd(t,n)}catch(a){Re(e,e.return,a)}}}function Yh(e,t,n){n.props=ba(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Re(e,t,a)}}function ir(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){Re(e,t,u)}}function an(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Re(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){Re(e,t,u)}else n.current=null}function qh(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){Re(e,e.return,u)}}function nc(e,t,n){try{var a=e.stateNode;s0(a,e.type,n,t),a[gt]=t}catch(u){Re(e,e.return,u)}}function Ih(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$n(e.type)||e.tag===4}function ac(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ih(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&&$n(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 lc(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=cn));else if(a!==4&&(a===27&&$n(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}function Ai(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&&$n(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ai(e,t,n),e=e.sibling;e!==null;)Ai(e,t,n),e=e.sibling}function Xh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ot(t,a,n),t[it]=e,t[gt]=n}catch(c){Re(e,e.return,c)}}var vn=!1,We=!1,rc=!1,Fh=typeof WeakSet=="function"?WeakSet:Set,at=null;function Gb(e,t){if(e=e.containerInfo,Tc=Zi,e=ad(e),Ws(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 p=0,v=-1,w=-1,D=0,F=0,K=e,U=null;t:for(;;){for(var Y;K!==n||u!==0&&K.nodeType!==3||(v=p+u),K!==c||a!==0&&K.nodeType!==3||(w=p+a),K.nodeType===3&&(p+=K.nodeValue.length),(Y=K.firstChild)!==null;)U=K,K=Y;for(;;){if(K===e)break t;if(U===n&&++D===u&&(v=p),U===c&&++F===a&&(w=p),(Y=K.nextSibling)!==null)break;K=U,U=K.parentNode}K=Y}n=v===-1||w===-1?null:{start:v,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cc={focusedElem:e,selectionRange:n},Zi=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,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 re=ba(n.type,u);e=a.getSnapshotBeforeUpdate(re,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(ge){Re(n,n.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)jc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":jc(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,at=e;break}at=t.return}}function Zh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(e,n),a&4&&rr(5,n);break;case 1:if(Sn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Re(n,n.return,p)}else{var u=ba(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Re(n,n.return,p)}}a&64&&Gh(n),a&512&&ir(n,n.return);break;case 3:if(Sn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{jd(e,t)}catch(p){Re(n,n.return,p)}}break;case 27:t===null&&a&4&&Xh(n);case 26:case 5:Sn(e,n),t===null&&a&4&&qh(n),a&512&&ir(n,n.return);break;case 12:Sn(e,n);break;case 31:Sn(e,n),a&4&&Kh(e,n);break;case 13:Sn(e,n),a&4&&Qh(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Kb.bind(null,n),m0(e,n))));break;case 22:if(a=n.memoizedState!==null||vn,!a){t=t!==null&&t.memoizedState!==null||We,u=vn;var c=We;vn=a,(We=t)&&!c?En(e,n,(n.subtreeFlags&8772)!==0):Sn(e,n),vn=u,We=c}break;case 30:break;default:Sn(e,n)}}function $h(e){var t=e.alternate;t!==null&&(e.alternate=null,$h(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zs(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 Ie=null,pt=!1;function xn(e,t,n){for(n=n.child;n!==null;)Vh(e,t,n),n=n.sibling}function Vh(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(jl,n)}catch{}switch(n.tag){case 26:We||an(n,t),xn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:We||an(n,t);var a=Ie,u=pt;$n(n.type)&&(Ie=n.stateNode,pt=!1),xn(e,t,n),mr(n.stateNode),Ie=a,pt=u;break;case 5:We||an(n,t);case 6:if(a=Ie,u=pt,Ie=null,xn(e,t,n),Ie=a,pt=u,Ie!==null)if(pt)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(n.stateNode)}catch(c){Re(n,t,c)}else try{Ie.removeChild(n.stateNode)}catch(c){Re(n,t,c)}break;case 18:Ie!==null&&(pt?(e=Ie,Gg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),dl(e)):Gg(Ie,n.stateNode));break;case 4:a=Ie,u=pt,Ie=n.stateNode.containerInfo,pt=!0,xn(e,t,n),Ie=a,pt=u;break;case 0:case 11:case 14:case 15:Gn(2,n,t),We||Gn(4,n,t),xn(e,t,n);break;case 1:We||(an(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Yh(n,t,a)),xn(e,t,n);break;case 21:xn(e,t,n);break;case 22:We=(a=We)||n.memoizedState!==null,xn(e,t,n),We=a;break;default:xn(e,t,n)}}function Kh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{dl(e)}catch(n){Re(t,t.return,n)}}}function Qh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{dl(e)}catch(n){Re(t,t.return,n)}}function Yb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Fh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Fh),t;default:throw Error(s(435,e.tag))}}function Ti(e,t){var n=Yb(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var u=Qb.bind(null,e,a);a.then(u,u)}})}function yt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],c=e,p=t,v=p;e:for(;v!==null;){switch(v.tag){case 27:if($n(v.type)){Ie=v.stateNode,pt=!1;break e}break;case 5:Ie=v.stateNode,pt=!1;break e;case 3:case 4:Ie=v.stateNode.containerInfo,pt=!0;break e}v=v.return}if(Ie===null)throw Error(s(160));Vh(c,p,u),Ie=null,pt=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Jh(t,e),t=t.sibling}var Pt=null;function Jh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),bt(e),a&4&&(Gn(3,e,e.return),rr(3,e),Gn(5,e,e.return));break;case 1:yt(t,e),bt(e),a&512&&(We||n===null||an(n,n.return)),a&64&&vn&&(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=Pt;if(yt(t,e),bt(e),a&512&&(We||n===null||an(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[Ml]||c[it]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(a),u.head.insertBefore(c,u.querySelector("head > title"))),ot(c,a,n),c[it]=e,nt(c),a=c;break e;case"link":var p=Jg("link","href",u).get(a+(n.href||""));if(p){for(var v=0;v<p.length;v++)if(c=p[v],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)){p.splice(v,1);break t}}c=u.createElement(a),ot(c,a,n),u.head.appendChild(c);break;case"meta":if(p=Jg("meta","content",u).get(a+(n.content||""))){for(v=0;v<p.length;v++)if(c=p[v],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)){p.splice(v,1);break t}}c=u.createElement(a),ot(c,a,n),u.head.appendChild(c);break;default:throw Error(s(468,a))}c[it]=e,nt(c),a=c}e.stateNode=a}else Wg(u,e.type,e.stateNode);else e.stateNode=Qg(u,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?Wg(u,e.type,e.stateNode):Qg(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&nc(e,e.memoizedProps,n.memoizedProps)}break;case 27:yt(t,e),bt(e),a&512&&(We||n===null||an(n,n.return)),n!==null&&a&4&&nc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yt(t,e),bt(e),a&512&&(We||n===null||an(n,n.return)),e.flags&32){u=e.stateNode;try{za(u,"")}catch(re){Re(e,e.return,re)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,nc(e,u,n!==null?n.memoizedProps:u)),a&1024&&(rc=!0);break;case 6:if(yt(t,e),bt(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(re){Re(e,e.return,re)}}break;case 3:if(qi=null,u=Pt,Pt=Gi(t.containerInfo),yt(t,e),Pt=u,bt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{dl(t.containerInfo)}catch(re){Re(e,e.return,re)}rc&&(rc=!1,Wh(e));break;case 4:a=Pt,Pt=Gi(e.stateNode.containerInfo),yt(t,e),bt(e),Pt=a;break;case 12:yt(t,e),bt(e);break;case 31:yt(t,e),bt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ti(e,a)));break;case 13:yt(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_i=Nt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ti(e,a)));break;case 22:u=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,D=vn,F=We;if(vn=D||u,We=F||w,yt(t,e),We=F,vn=D,bt(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||w||vn||We||va(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){w=n=t;try{if(c=w.stateNode,u)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{v=w.stateNode;var K=w.memoizedProps.style,U=K!=null&&K.hasOwnProperty("display")?K.display:null;v.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(re){Re(w,w.return,re)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=u?"":w.memoizedProps}catch(re){Re(w,w.return,re)}}}else if(t.tag===18){if(n===null){w=t;try{var Y=w.stateNode;u?Yg(Y,!0):Yg(w.stateNode,!1)}catch(re){Re(w,w.return,re)}}}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,Ti(e,n))));break;case 19:yt(t,e),bt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ti(e,a)));break;case 30:break;case 21:break;default:yt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Ih(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,c=ac(e);Ai(e,c,u);break;case 5:var p=n.stateNode;n.flags&32&&(za(p,""),n.flags&=-33);var v=ac(e);Ai(e,v,p);break;case 3:case 4:var w=n.stateNode.containerInfo,D=ac(e);lc(e,D,w);break;default:throw Error(s(161))}}catch(F){Re(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Wh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Zh(e,t.alternate,t),t=t.sibling}function va(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gn(4,t,t.return),va(t);break;case 1:an(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Yh(t,t.return,n),va(t);break;case 27:mr(t.stateNode);case 26:case 5:an(t,t.return),va(t);break;case 22:t.memoizedState===null&&va(t);break;case 30:va(t);break;default:va(t)}e=e.sibling}}function En(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:En(u,c,n),rr(4,c);break;case 1:if(En(u,c,n),a=c,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(D){Re(a,a.return,D)}if(a=c,u=a.updateQueue,u!==null){var v=a.stateNode;try{var w=u.shared.hiddenCallbacks;if(w!==null)for(u.shared.hiddenCallbacks=null,u=0;u<w.length;u++)Od(w[u],v)}catch(D){Re(a,a.return,D)}}n&&p&64&&Gh(c),ir(c,c.return);break;case 27:Xh(c);case 26:case 5:En(u,c,n),n&&a===null&&p&4&&qh(c),ir(c,c.return);break;case 12:En(u,c,n);break;case 31:En(u,c,n),n&&p&4&&Kh(u,c);break;case 13:En(u,c,n),n&&p&4&&Qh(u,c);break;case 22:c.memoizedState===null&&En(u,c,n),ir(c,c.return);break;case 30:break;default:En(u,c,n)}t=t.sibling}}function ic(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&&Zl(n))}function sc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zl(e))}function en(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ph(e,t,n,a),t=t.sibling}function Ph(e,t,n,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:en(e,t,n,a),u&2048&&rr(9,t);break;case 1:en(e,t,n,a);break;case 3:en(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&&Zl(e)));break;case 12:if(u&2048){en(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,v=c.onPostCommit;typeof v=="function"&&v(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Re(t,t.return,w)}}else en(e,t,n,a);break;case 31:en(e,t,n,a);break;case 13:en(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?en(e,t,n,a):sr(e,t):c._visibility&2?en(e,t,n,a):(c._visibility|=2,tl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),u&2048&&ic(p,t);break;case 24:en(e,t,n,a),u&2048&&sc(t.alternate,t);break;default:en(e,t,n,a)}}function tl(e,t,n,a,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,v=n,w=a,D=p.flags;switch(p.tag){case 0:case 11:case 15:tl(c,p,v,w,u),rr(8,p);break;case 23:break;case 22:var F=p.stateNode;p.memoizedState!==null?F._visibility&2?tl(c,p,v,w,u):sr(c,p):(F._visibility|=2,tl(c,p,v,w,u)),u&&D&2048&&ic(p.alternate,p);break;case 24:tl(c,p,v,w,u),u&&D&2048&&sc(p.alternate,p);break;default:tl(c,p,v,w,u)}t=t.sibling}}function sr(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:sr(n,a),u&2048&&ic(a.alternate,a);break;case 24:sr(n,a),u&2048&&sc(a.alternate,a);break;default:sr(n,a)}t=t.sibling}}var ur=8192;function nl(e,t,n){if(e.subtreeFlags&ur)for(e=e.child;e!==null;)eg(e,t,n),e=e.sibling}function eg(e,t,n){switch(e.tag){case 26:nl(e,t,n),e.flags&ur&&e.memoizedState!==null&&C0(n,Pt,e.memoizedState,e.memoizedProps);break;case 5:nl(e,t,n);break;case 3:case 4:var a=Pt;Pt=Gi(e.stateNode.containerInfo),nl(e,t,n),Pt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ur,ur=16777216,nl(e,t,n),ur=a):nl(e,t,n));break;default:nl(e,t,n)}}function tg(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 cr(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];at=a,ag(a,e)}tg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ng(e),e=e.sibling}function ng(e){switch(e.tag){case 0:case 11:case 15:cr(e),e.flags&2048&&Gn(9,e,e.return);break;case 3:cr(e);break;case 12:cr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ci(e)):cr(e);break;default:cr(e)}}function Ci(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];at=a,ag(a,e)}tg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gn(8,t,t.return),Ci(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ci(t));break;default:Ci(t)}e=e.sibling}}function ag(e,t){for(;at!==null;){var n=at;switch(n.tag){case 0:case 11:case 15:Gn(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:Zl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,at=a;else e:for(n=e;at!==null;){a=at;var u=a.sibling,c=a.return;if($h(a),a===n){at=null;break e}if(u!==null){u.return=c,at=u;break e}at=c}}}var qb={getCacheForType:function(e){var t=ut(Ke),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ut(Ke).controller.signal}},Ib=typeof WeakMap=="function"?WeakMap:Map,je=0,Ue=null,Ne=null,Ae=0,ke=0,jt=null,Yn=!1,al=!1,uc=!1,Nn=0,Fe=0,qn=0,xa=0,cc=0,kt=0,ll=0,or=null,vt=null,oc=!1,_i=0,lg=0,Oi=1/0,ji=null,In=null,et=0,Xn=null,rl=null,wn=0,fc=0,dc=null,rg=null,fr=0,hc=null;function Rt(){return(je&2)!==0&&Ae!==0?Ae&-Ae:R.T!==null?vc():Sf()}function ig(){if(kt===0)if((Ae&536870912)===0||Ce){var e=Br;Br<<=1,(Br&3932160)===0&&(Br=262144),kt=e}else kt=536870912;return e=_t.current,e!==null&&(e.flags|=32),kt}function xt(e,t,n){(e===Ue&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(il(e,0),Fn(e,Ae,kt,!1)),Rl(e,n),((je&2)===0||e!==Ue)&&(e===Ue&&((je&2)===0&&(xa|=n),Fe===4&&Fn(e,Ae,kt,!1)),ln(e))}function sg(e,t,n){if((je&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||kl(e,t),u=a?Zb(e,t):mc(e,t,!0),c=a;do{if(u===0){al&&!a&&Fn(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Xb(n)){u=mc(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var v=e;u=or;var w=v.current.memoizedState.isDehydrated;if(w&&(il(v,p).flags|=256),p=mc(v,p,!1),p!==2){if(uc&&!w){v.errorRecoveryDisabledLanes|=c,xa|=c,u=4;break e}c=vt,vt=u,c!==null&&(vt===null?vt=c:vt.push.apply(vt,c))}u=p}if(c=!1,u!==2)continue}}if(u===1){il(e,0),Fn(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:Fn(a,t,kt,!Yn);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=_i+300-Nt(),10<u)){if(Fn(a,t,kt,!Yn),Gr(a,0,!0)!==0)break e;wn=t,a.timeoutHandle=Bg(ug.bind(null,a,n,vt,ji,oc,t,kt,xa,ll,Yn,c,"Throttled",-0,0),u);break e}ug(a,n,vt,ji,oc,t,kt,xa,ll,Yn,c,null,-0,0)}}break}while(!0);ln(e)}function ug(e,t,n,a,u,c,p,v,w,D,F,K,U,Y){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cn},eg(t,c,K);var re=(c&62914560)===c?_i-Nt():(c&4194048)===c?lg-Nt():0;if(re=_0(K,re),re!==null){wn=c,e.cancelPendingCommit=re(pg.bind(null,e,t,c,n,a,u,p,v,w,F,K,null,U,Y)),Fn(e,c,p,!D);return}}pg(e,t,c,n,a,u,p,v,w)}function Xb(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(!Tt(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 Fn(e,t,n,a){t&=~cc,t&=~xa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var c=31-At(u),p=1<<c;a[c]=-1,u&=~p}n!==0&&bf(e,n,t)}function ki(){return(je&6)===0?(dr(0),!1):!0}function gc(){if(Ne!==null){if(ke===0)var e=Ne.return;else e=Ne,hn=fa=null,ju(e),Qa=null,Vl=0,e=Ne;for(;e!==null;)Hh(e.alternate,e),e=e.return;Ne=null}}function il(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,o0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),wn=0,gc(),Ue=e,Ne=n=fn(e.current,null),Ae=t,ke=0,jt=null,Yn=!1,al=kl(e,t),uc=!1,ll=kt=cc=xa=qn=Fe=0,vt=or=null,oc=!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-At(a),c=1<<u;t|=e[u],a&=~c}return Nn=t,Wr(),n}function cg(e,t){ve=null,R.H=nr,t===Ka||t===ii?(t=Ad(),ke=3):t===bu?(t=Ad(),ke=4):ke=t===Zu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,Ne===null&&(Fe=1,xi(e,Gt(t,e.current)))}function og(){var e=_t.current;return e===null?!0:(Ae&4194048)===Ae?Xt===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===Xt:!1}function fg(){var e=R.H;return R.H=nr,e===null?nr:e}function dg(){var e=R.A;return R.A=qb,e}function Ri(){Fe=4,Yn||(Ae&4194048)!==Ae&&_t.current!==null||(al=!0),(qn&134217727)===0&&(xa&134217727)===0||Ue===null||Fn(Ue,Ae,kt,!1)}function mc(e,t,n){var a=je;je|=2;var u=fg(),c=dg();(Ue!==e||Ae!==t)&&(ji=null,il(e,t)),t=!1;var p=Fe;e:do try{if(ke!==0&&Ne!==null){var v=Ne,w=jt;switch(ke){case 8:gc(),p=6;break e;case 3:case 2:case 9:case 6:_t.current===null&&(t=!0);var D=ke;if(ke=0,jt=null,sl(e,v,w,D),n&&al){p=0;break e}break;default:D=ke,ke=0,jt=null,sl(e,v,w,D)}}Fb(),p=Fe;break}catch(F){cg(e,F)}while(!0);return t&&e.shellSuspendCounter++,hn=fa=null,je=a,R.H=u,R.A=c,Ne===null&&(Ue=null,Ae=0,Wr()),p}function Fb(){for(;Ne!==null;)hg(Ne)}function Zb(e,t){var n=je;je|=2;var a=fg(),u=dg();Ue!==e||Ae!==t?(ji=null,Oi=Nt()+500,il(e,t)):al=kl(e,t);e:do try{if(ke!==0&&Ne!==null){t=Ne;var c=jt;t:switch(ke){case 1:ke=0,jt=null,sl(e,t,c,1);break;case 2:case 9:if(Nd(c)){ke=0,jt=null,gg(t);break}t=function(){ke!==2&&ke!==9||Ue!==e||(ke=7),ln(e)},c.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:Nd(c)?(ke=0,jt=null,gg(t)):(ke=0,jt=null,sl(e,t,c,7));break;case 5:var p=null;switch(Ne.tag){case 26:p=Ne.memoizedState;case 5:case 27:var v=Ne;if(p?Pg(p):v.stateNode.complete){ke=0,jt=null;var w=v.sibling;if(w!==null)Ne=w;else{var D=v.return;D!==null?(Ne=D,Mi(D)):Ne=null}break t}}ke=0,jt=null,sl(e,t,c,5);break;case 6:ke=0,jt=null,sl(e,t,c,6);break;case 8:gc(),Fe=6;break e;default:throw Error(s(462))}}$b();break}catch(F){cg(e,F)}while(!0);return hn=fa=null,R.H=a,R.A=u,je=n,Ne!==null?0:(Ue=null,Ae=0,Wr(),Fe)}function $b(){for(;Ne!==null&&!py();)hg(Ne)}function hg(e){var t=Uh(e.alternate,e,Nn);e.memoizedProps=e.pendingProps,t===null?Mi(e):Ne=t}function gg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=kh(n,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=kh(n,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:ju(t);default:Hh(n,t),t=Ne=dd(t,Nn),t=Uh(n,t,Nn)}e.memoizedProps=e.pendingProps,t===null?Mi(e):Ne=t}function sl(e,t,n,a){hn=fa=null,ju(t),Qa=null,Vl=0;var u=t.return;try{if(zb(e,u,t,n,Ae)){Fe=1,xi(e,Gt(n,e.current)),Ne=null;return}}catch(c){if(u!==null)throw Ne=u,c;Fe=1,xi(e,Gt(n,e.current)),Ne=null;return}t.flags&32768?(Ce||a===1?e=!0:al||(Ae&536870912)!==0?e=!1:(Yn=e=!0,(a===2||a===9||a===3||a===6)&&(a=_t.current,a!==null&&a.tag===13&&(a.flags|=16384))),mg(t,e)):Mi(t)}function Mi(e){var t=e;do{if((t.flags&32768)!==0){mg(t,Yn);return}e=t.return;var n=Bb(t.alternate,t,Nn);if(n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);Fe===0&&(Fe=5)}function mg(e,t){do{var n=Hb(e.alternate,e);if(n!==null){n.flags&=32767,Ne=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=n}while(e!==null);Fe=6,Ne=null}function pg(e,t,n,a,u,c,p,v,w){e.cancelPendingCommit=null;do Di();while(et!==0);if((je&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=au,Ty(e,n,c,p,v,w),e===Ue&&(Ne=Ue=null,Ae=0),rl=t,Xn=e,wn=n,fc=c,dc=u,rg=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Jb(Lr,function(){return Sg(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null,u=z.p,z.p=2,p=je,je|=4;try{Gb(e,t,n)}finally{je=p,z.p=u,R.T=a}}et=1,yg(),bg(),vg()}}function yg(){if(et===1){et=0;var e=Xn,t=rl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var a=z.p;z.p=2;var u=je;je|=4;try{Jh(t,e);var c=Cc,p=ad(e.containerInfo),v=c.focusedElem,w=c.selectionRange;if(p!==v&&v&&v.ownerDocument&&nd(v.ownerDocument.documentElement,v)){if(w!==null&&Ws(v)){var D=w.start,F=w.end;if(F===void 0&&(F=D),"selectionStart"in v)v.selectionStart=D,v.selectionEnd=Math.min(F,v.value.length);else{var K=v.ownerDocument||document,U=K&&K.defaultView||window;if(U.getSelection){var Y=U.getSelection(),re=v.textContent.length,ge=Math.min(w.start,re),Le=w.end===void 0?ge:Math.min(w.end,re);!Y.extend&&ge>Le&&(p=Le,Le=ge,ge=p);var j=td(v,ge),T=td(v,Le);if(j&&T&&(Y.rangeCount!==1||Y.anchorNode!==j.node||Y.anchorOffset!==j.offset||Y.focusNode!==T.node||Y.focusOffset!==T.offset)){var M=K.createRange();M.setStart(j.node,j.offset),Y.removeAllRanges(),ge>Le?(Y.addRange(M),Y.extend(T.node,T.offset)):(M.setEnd(T.node,T.offset),Y.addRange(M))}}}}for(K=[],Y=v;Y=Y.parentNode;)Y.nodeType===1&&K.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<K.length;v++){var V=K[v];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Zi=!!Tc,Cc=Tc=null}finally{je=u,z.p=a,R.T=n}}e.current=t,et=2}}function bg(){if(et===2){et=0;var e=Xn,t=rl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var a=z.p;z.p=2;var u=je;je|=4;try{Zh(e,t.alternate,t)}finally{je=u,z.p=a,R.T=n}}et=3}}function vg(){if(et===4||et===3){et=0,yy();var e=Xn,t=rl,n=wn,a=rg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,rl=Xn=null,xg(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(In=null),Ms(n),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(jl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=R.T,u=z.p,z.p=2,R.T=null;try{for(var c=e.onRecoverableError,p=0;p<a.length;p++){var v=a[p];c(v.value,{componentStack:v.stack})}}finally{R.T=t,z.p=u}}(wn&3)!==0&&Di(),ln(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===hc?fr++:(fr=0,hc=e):fr=0,dr(0)}}function xg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zl(t)))}function Di(){return yg(),bg(),vg(),Sg()}function Sg(){if(et!==5)return!1;var e=Xn,t=fc;fc=0;var n=Ms(wn),a=R.T,u=z.p;try{z.p=32>n?32:n,R.T=null,n=dc,dc=null;var c=Xn,p=wn;if(et=0,rl=Xn=null,wn=0,(je&6)!==0)throw Error(s(331));var v=je;if(je|=4,ng(c.current),Ph(c,c.current,p,n),je=v,dr(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(jl,c)}catch{}return!0}finally{z.p=u,R.T=a,xg(e,t)}}function Eg(e,t,n){t=Gt(n,t),t=Fu(e.stateNode,t,2),e=Un(e,t,2),e!==null&&(Rl(e,2),ln(e))}function Re(e,t,n){if(e.tag===3)Eg(e,e,n);else for(;t!==null;){if(t.tag===3){Eg(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(In===null||!In.has(a))){e=Gt(n,e),n=Nh(2),a=Un(t,n,2),a!==null&&(wh(n,a,t,e),Rl(a,2),ln(a));break}}t=t.return}}function pc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Ib;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)||(uc=!0,u.add(n),e=Vb.bind(null,e,t,n),t.then(e,e))}function Vb(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ue===e&&(Ae&n)===n&&(Fe===4||Fe===3&&(Ae&62914560)===Ae&&300>Nt()-_i?(je&2)===0&&il(e,0):cc|=n,ll===Ae&&(ll=0)),ln(e)}function Ng(e,t){t===0&&(t=yf()),e=ua(e,t),e!==null&&(Rl(e,t),ln(e))}function Kb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ng(e,n)}function Qb(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),Ng(e,n)}function Jb(e,t){return Os(e,t)}var zi=null,ul=null,yc=!1,Li=!1,bc=!1,Zn=0;function ln(e){e!==ul&&e.next===null&&(ul===null?zi=ul=e:ul=ul.next=e),Li=!0,yc||(yc=!0,Pb())}function dr(e,t){if(!bc&&Li){bc=!0;do for(var n=!1,a=zi;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var c=0;else{var p=a.suspendedLanes,v=a.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=u&~(p&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Cg(a,c))}else c=Ae,c=Gr(a,a===Ue?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||kl(a,c)||(n=!0,Cg(a,c));a=a.next}while(n);bc=!1}}function Wb(){wg()}function wg(){Li=yc=!1;var e=0;Zn!==0&&c0()&&(e=Zn);for(var t=Nt(),n=null,a=zi;a!==null;){var u=a.next,c=Ag(a,t);c===0?(a.next=null,n===null?zi=u:n.next=u,u===null&&(ul=n)):(n=a,(e!==0||(c&3)!==0)&&(Li=!0)),a=u}et!==0&&et!==5||dr(e),Zn!==0&&(Zn=0)}function Ag(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-At(c),v=1<<p,w=u[p];w===-1?((v&n)===0||(v&a)!==0)&&(u[p]=Ay(v,t)):w<=t&&(e.expiredLanes|=v),c&=~v}if(t=Ue,n=Ae,n=Gr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&js(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||kl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&js(a),Ms(n)){case 2:case 8:n=mf;break;case 32:n=Lr;break;case 268435456:n=pf;break;default:n=Lr}return a=Tg.bind(null,e),n=Os(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&js(a),e.callbackPriority=2,e.callbackNode=null,2}function Tg(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Di()&&e.callbackNode!==n)return null;var a=Ae;return a=Gr(e,e===Ue?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(sg(e,a,t),Ag(e,Nt()),e.callbackNode!=null&&e.callbackNode===n?Tg.bind(null,e):null)}function Cg(e,t){if(Di())return null;sg(e,t,!0)}function Pb(){f0(function(){(je&6)!==0?Os(gf,Wb):wg()})}function vc(){if(Zn===0){var e=$a;e===0&&(e=Ur,Ur<<=1,(Ur&261888)===0&&(Ur=256)),Zn=e}return Zn}function _g(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xr(""+e)}function Og(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 e0(e,t,n,a,u){if(t==="submit"&&n&&n.stateNode===u){var c=_g((u[gt]||null).action),p=a.submitter;p&&(t=(t=p[gt]||null)?_g(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var v=new Vr("action","action",null,a,u);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Zn!==0){var w=p?Og(u,p):new FormData(u);Hu(n,{pending:!0,data:w,method:u.method,action:c},null,w)}}else typeof c=="function"&&(v.preventDefault(),w=p?Og(u,p):new FormData(u),Hu(n,{pending:!0,data:w,method:u.method,action:c},c,w))},currentTarget:u}]})}}for(var xc=0;xc<nu.length;xc++){var Sc=nu[xc],t0=Sc.toLowerCase(),n0=Sc[0].toUpperCase()+Sc.slice(1);Wt(t0,"on"+n0)}Wt(id,"onAnimationEnd"),Wt(sd,"onAnimationIteration"),Wt(ud,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(bb,"onTransitionRun"),Wt(vb,"onTransitionStart"),Wt(xb,"onTransitionCancel"),Wt(cd,"onTransitionEnd"),Ma("onMouseEnter",["mouseout","mouseover"]),Ma("onMouseLeave",["mouseout","mouseover"]),Ma("onPointerEnter",["pointerout","pointerover"]),Ma("onPointerLeave",["pointerout","pointerover"]),la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),la("onBeforeInput",["compositionend","keypress","textInput","paste"]),la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hr="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(" "),a0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hr));function jg(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 p=a.length-1;0<=p;p--){var v=a[p],w=v.instance,D=v.currentTarget;if(v=v.listener,w!==c&&u.isPropagationStopped())break e;c=v,u.currentTarget=D;try{c(u)}catch(F){Jr(F)}u.currentTarget=null,c=w}else for(p=0;p<a.length;p++){if(v=a[p],w=v.instance,D=v.currentTarget,v=v.listener,w!==c&&u.isPropagationStopped())break e;c=v,u.currentTarget=D;try{c(u)}catch(F){Jr(F)}u.currentTarget=null,c=w}}}}function we(e,t){var n=t[Ds];n===void 0&&(n=t[Ds]=new Set);var a=e+"__bubble";n.has(a)||(kg(t,e,2,!1),n.add(a))}function Ec(e,t,n){var a=0;t&&(a|=4),kg(n,e,a,t)}var Ui="_reactListening"+Math.random().toString(36).slice(2);function Nc(e){if(!e[Ui]){e[Ui]=!0,wf.forEach(function(n){n!=="selectionchange"&&(a0.has(n)||Ec(n,!1,e),Ec(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ui]||(t[Ui]=!0,Ec("selectionchange",!1,t))}}function kg(e,t,n,a){switch(im(t)){case 2:var u=k0;break;case 8:u=R0;break;default:u=Bc}n=u.bind(null,t,n,e),u=void 0,!Is||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 wc(e,t,n,a,u){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var p=a.tag;if(p===3||p===4){var v=a.stateNode.containerInfo;if(v===u)break;if(p===4)for(p=a.return;p!==null;){var w=p.tag;if((w===3||w===4)&&p.stateNode.containerInfo===u)return;p=p.return}for(;v!==null;){if(p=ja(v),p===null)return;if(w=p.tag,w===5||w===6||w===26||w===27){a=c=p;continue e}v=v.parentNode}}a=a.return}Lf(function(){var D=c,F=Ys(n),K=[];e:{var U=od.get(e);if(U!==void 0){var Y=Vr,re=e;switch(e){case"keypress":if(Zr(n)===0)break e;case"keydown":case"keyup":Y=Qy;break;case"focusin":re="focus",Y=$s;break;case"focusout":re="blur",Y=$s;break;case"beforeblur":case"afterblur":Y=$s;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":Y=Hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=By;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Py;break;case id:case sd:case ud:Y=Yy;break;case cd:Y=tb;break;case"scroll":case"scrollend":Y=Ly;break;case"wheel":Y=ab;break;case"copy":case"cut":case"paste":Y=Iy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Yf;break;case"toggle":case"beforetoggle":Y=rb}var ge=(t&4)!==0,Le=!ge&&(e==="scroll"||e==="scrollend"),j=ge?U!==null?U+"Capture":null:U;ge=[];for(var T=D,M;T!==null;){var V=T;if(M=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||M===null||j===null||(V=zl(T,j),V!=null&&ge.push(gr(T,V,M))),Le)break;T=T.return}0<ge.length&&(U=new Y(U,re,null,n,F),K.push({event:U,listeners:ge}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",U&&n!==Gs&&(re=n.relatedTarget||n.fromElement)&&(ja(re)||re[Oa]))break e;if((Y||U)&&(U=F.window===F?F:(U=F.ownerDocument)?U.defaultView||U.parentWindow:window,Y?(re=n.relatedTarget||n.toElement,Y=D,re=re?ja(re):null,re!==null&&(Le=d(re),ge=re.tag,re!==Le||ge!==5&&ge!==27&&ge!==6)&&(re=null)):(Y=null,re=D),Y!==re)){if(ge=Hf,V="onMouseLeave",j="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Yf,V="onPointerLeave",j="onPointerEnter",T="pointer"),Le=Y==null?U:Dl(Y),M=re==null?U:Dl(re),U=new ge(V,T+"leave",Y,n,F),U.target=Le,U.relatedTarget=M,V=null,ja(F)===D&&(ge=new ge(j,T+"enter",re,n,F),ge.target=M,ge.relatedTarget=Le,V=ge),Le=V,Y&&re)t:{for(ge=l0,j=Y,T=re,M=0,V=j;V;V=ge(V))M++;V=0;for(var de=T;de;de=ge(de))V++;for(;0<M-V;)j=ge(j),M--;for(;0<V-M;)T=ge(T),V--;for(;M--;){if(j===T||T!==null&&j===T.alternate){ge=j;break t}j=ge(j),T=ge(T)}ge=null}else ge=null;Y!==null&&Rg(K,U,Y,ge,!1),re!==null&&Le!==null&&Rg(K,Le,re,ge,!0)}}e:{if(U=D?Dl(D):window,Y=U.nodeName&&U.nodeName.toLowerCase(),Y==="select"||Y==="input"&&U.type==="file")var _e=Kf;else if($f(U))if(Qf)_e=mb;else{_e=hb;var oe=db}else Y=U.nodeName,!Y||Y.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?D&&Hs(D.elementType)&&(_e=Kf):_e=gb;if(_e&&(_e=_e(e,D))){Vf(K,_e,n,F);break e}oe&&oe(e,U,D),e==="focusout"&&D&&U.type==="number"&&D.memoizedProps.value!=null&&Bs(U,"number",U.value)}switch(oe=D?Dl(D):window,e){case"focusin":($f(oe)||oe.contentEditable==="true")&&(Ha=oe,Ps=D,Il=null);break;case"focusout":Il=Ps=Ha=null;break;case"mousedown":eu=!0;break;case"contextmenu":case"mouseup":case"dragend":eu=!1,ld(K,n,F);break;case"selectionchange":if(yb)break;case"keydown":case"keyup":ld(K,n,F)}var Se;if(Ks)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Ba?Ff(e,n)&&(Te="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Te="onCompositionStart");Te&&(qf&&n.locale!=="ko"&&(Ba||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Ba&&(Se=Uf()):(jn=F,Xs="value"in jn?jn.value:jn.textContent,Ba=!0)),oe=Bi(D,Te),0<oe.length&&(Te=new Gf(Te,e,null,n,F),K.push({event:Te,listeners:oe}),Se?Te.data=Se:(Se=Zf(n),Se!==null&&(Te.data=Se)))),(Se=sb?ub(e,n):cb(e,n))&&(Te=Bi(D,"onBeforeInput"),0<Te.length&&(oe=new Gf("onBeforeInput","beforeinput",null,n,F),K.push({event:oe,listeners:Te}),oe.data=Se)),e0(K,e,D,n,F)}jg(K,t)})}function gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bi(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=zl(e,n),u!=null&&a.unshift(gr(e,u,c)),u=zl(e,t),u!=null&&a.push(gr(e,u,c))),e.tag===3)return a;e=e.return}return[]}function l0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rg(e,t,n,a,u){for(var c=t._reactName,p=[];n!==null&&n!==a;){var v=n,w=v.alternate,D=v.stateNode;if(v=v.tag,w!==null&&w===a)break;v!==5&&v!==26&&v!==27||D===null||(w=D,u?(D=zl(n,c),D!=null&&p.unshift(gr(n,D,w))):u||(D=zl(n,c),D!=null&&p.push(gr(n,D,w)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var r0=/\r\n?/g,i0=/\u0000|\uFFFD/g;function Mg(e){return(typeof e=="string"?e:""+e).replace(r0,`
|
|
49
|
-
`).replace(i0,"")}function Dg(e,t){return t=Mg(t),Mg(e)===t}function ze(e,t,n,a,u,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||za(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&za(e,""+a);break;case"className":qr(e,"class",a);break;case"tabIndex":qr(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":qr(e,n,a);break;case"style":Df(e,a,c);break;case"data":if(t!=="object"){qr(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=Xr(""+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"&&ze(e,t,"name",u.name,u,null),ze(e,t,"formEncType",u.formEncType,u,null),ze(e,t,"formMethod",u.formMethod,u,null),ze(e,t,"formTarget",u.formTarget,u,null)):(ze(e,t,"encType",u.encType,u,null),ze(e,t,"method",u.method,u,null),ze(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xr(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=cn);break;case"onScroll":a!=null&&we("scroll",e);break;case"onScrollEnd":a!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(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=Xr(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":we("beforetoggle",e),we("toggle",e),Yr(e,"popover",a);break;case"xlinkActuate":un(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":un(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":un(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":un(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":un(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":un(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":un(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":un(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":un(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Yr(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=Dy.get(n)||n,Yr(e,n,a))}}function Ac(e,t,n,a,u,c){switch(n){case"style":Df(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"?za(e,a):(typeof a=="number"||typeof a=="bigint")&&za(e,""+a);break;case"onScroll":a!=null&&we("scroll",e);break;case"onScrollEnd":a!=null&&we("scrollend",e);break;case"onClick":a!=null&&(e.onclick=cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Af.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[gt]||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,""):Yr(e,n,a)}}}function ot(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var a=!1,u=!1,c;for(c in n)if(n.hasOwnProperty(c)){var p=n[c];if(p!=null)switch(c){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ze(e,t,c,p,n,null)}}u&&ze(e,t,"srcSet",n.srcSet,n,null),a&&ze(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var v=c=p=u=null,w=null,D=null;for(a in n)if(n.hasOwnProperty(a)){var F=n[a];if(F!=null)switch(a){case"name":u=F;break;case"type":p=F;break;case"checked":w=F;break;case"defaultChecked":D=F;break;case"value":c=F;break;case"defaultValue":v=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,t));break;default:ze(e,t,a,F,n,null)}}jf(e,c,v,w,D,p,u,!1);return;case"select":we("invalid",e),a=p=c=null;for(u in n)if(n.hasOwnProperty(u)&&(v=n[u],v!=null))switch(u){case"value":c=v;break;case"defaultValue":p=v;break;case"multiple":a=v;default:ze(e,t,u,v,n,null)}t=c,n=p,e.multiple=!!a,t!=null?Da(e,!!a,t,!1):n!=null&&Da(e,!!a,n,!0);return;case"textarea":we("invalid",e),c=u=a=null;for(p in n)if(n.hasOwnProperty(p)&&(v=n[p],v!=null))switch(p){case"value":a=v;break;case"defaultValue":u=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:ze(e,t,p,v,n,null)}Rf(e,a,u,c);return;case"option":for(w in n)if(n.hasOwnProperty(w)&&(a=n[w],a!=null))switch(w){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ze(e,t,w,a,n,null)}return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(a=0;a<hr.length;a++)we(hr[a],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in n)if(n.hasOwnProperty(D)&&(a=n[D],a!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ze(e,t,D,a,n,null)}return;default:if(Hs(t)){for(F in n)n.hasOwnProperty(F)&&(a=n[F],a!==void 0&&Ac(e,t,F,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&ze(e,t,v,a,n,null))}function s0(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,p=null,v=null,w=null,D=null,F=null;for(Y in n){var K=n[Y];if(n.hasOwnProperty(Y)&&K!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":w=K;default:a.hasOwnProperty(Y)||ze(e,t,Y,null,a,K)}}for(var U in a){var Y=a[U];if(K=n[U],a.hasOwnProperty(U)&&(Y!=null||K!=null))switch(U){case"type":c=Y;break;case"name":u=Y;break;case"checked":D=Y;break;case"defaultChecked":F=Y;break;case"value":p=Y;break;case"defaultValue":v=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(s(137,t));break;default:Y!==K&&ze(e,t,U,Y,a,K)}}Us(e,p,v,w,D,F,c,u);return;case"select":Y=p=v=U=null;for(c in n)if(w=n[c],n.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":Y=w;default:a.hasOwnProperty(c)||ze(e,t,c,null,a,w)}for(u in a)if(c=a[u],w=n[u],a.hasOwnProperty(u)&&(c!=null||w!=null))switch(u){case"value":U=c;break;case"defaultValue":v=c;break;case"multiple":p=c;default:c!==w&&ze(e,t,u,c,a,w)}t=v,n=p,a=Y,U!=null?Da(e,!!n,U,!1):!!a!=!!n&&(t!=null?Da(e,!!n,t,!0):Da(e,!!n,n?[]:"",!1));return;case"textarea":Y=U=null;for(v in n)if(u=n[v],n.hasOwnProperty(v)&&u!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:ze(e,t,v,null,a,u)}for(p in a)if(u=a[p],c=n[p],a.hasOwnProperty(p)&&(u!=null||c!=null))switch(p){case"value":U=u;break;case"defaultValue":Y=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&ze(e,t,p,u,a,c)}kf(e,U,Y);return;case"option":for(var re in n)if(U=n[re],n.hasOwnProperty(re)&&U!=null&&!a.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:ze(e,t,re,null,a,U)}for(w in a)if(U=a[w],Y=n[w],a.hasOwnProperty(w)&&U!==Y&&(U!=null||Y!=null))switch(w){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:ze(e,t,w,U,a,Y)}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 ge in n)U=n[ge],n.hasOwnProperty(ge)&&U!=null&&!a.hasOwnProperty(ge)&&ze(e,t,ge,null,a,U);for(D in a)if(U=a[D],Y=n[D],a.hasOwnProperty(D)&&U!==Y&&(U!=null||Y!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:ze(e,t,D,U,a,Y)}return;default:if(Hs(t)){for(var Le in n)U=n[Le],n.hasOwnProperty(Le)&&U!==void 0&&!a.hasOwnProperty(Le)&&Ac(e,t,Le,void 0,a,U);for(F in a)U=a[F],Y=n[F],!a.hasOwnProperty(F)||U===Y||U===void 0&&Y===void 0||Ac(e,t,F,U,a,Y);return}}for(var j in n)U=n[j],n.hasOwnProperty(j)&&U!=null&&!a.hasOwnProperty(j)&&ze(e,t,j,null,a,U);for(K in a)U=a[K],Y=n[K],!a.hasOwnProperty(K)||U===Y||U==null&&Y==null||ze(e,t,K,U,a,Y)}function zg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function u0(){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,p=u.initiatorType,v=u.duration;if(c&&v&&zg(p)){for(p=0,v=u.responseEnd,a+=1;a<n.length;a++){var w=n[a],D=w.startTime;if(D>v)break;var F=w.transferSize,K=w.initiatorType;F&&zg(K)&&(w=w.responseEnd,p+=F*(w<v?1:(v-D)/(w-D)))}if(--a,t+=8*(c+p)/(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 Tc=null,Cc=null;function Hi(e){return e.nodeType===9?e:e.ownerDocument}function Lg(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 Ug(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 _c(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 Oc=null;function c0(){var e=window.event;return e&&e.type==="popstate"?e===Oc?!1:(Oc=e,!0):(Oc=null,!1)}var Bg=typeof setTimeout=="function"?setTimeout:void 0,o0=typeof clearTimeout=="function"?clearTimeout:void 0,Hg=typeof Promise=="function"?Promise:void 0,f0=typeof queueMicrotask=="function"?queueMicrotask:typeof Hg<"u"?function(e){return Hg.resolve(null).then(e).catch(d0)}:Bg;function d0(e){setTimeout(function(){throw e})}function $n(e){return e==="head"}function Gg(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),dl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")mr(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,mr(n);for(var c=n.firstChild;c;){var p=c.nextSibling,v=c.nodeName;c[Ml]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=p}}else n==="body"&&mr(e.ownerDocument.body);n=u}while(n);dl(t)}function Yg(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 jc(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":jc(n),zs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function h0(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[Ml])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=Ft(e.nextSibling),e===null)break}return null}function g0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ft(e.nextSibling),e===null))return null;return e}function qg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ft(e.nextSibling),e===null))return null;return e}function kc(e){return e.data==="$?"||e.data==="$~"}function Rc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function m0(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 Ft(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 Mc=null;function Ig(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Ft(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Xg(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 Fg(e,t,n){switch(t=Hi(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 mr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zs(e)}var Zt=new Map,Zg=new Set;function Gi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var An=z.d;z.d={f:p0,r:y0,D:b0,C:v0,L:x0,m:S0,X:N0,S:E0,M:w0};function p0(){var e=An.f(),t=ki();return e||t}function y0(e){var t=ka(e);t!==null&&t.tag===5&&t.type==="form"?ch(t):An.r(e)}var cl=typeof document>"u"?null:document;function $g(e,t,n){var a=cl;if(a&&typeof t=="string"&&t){var u=Bt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Zg.has(u)||(Zg.add(u),e={rel:e,crossOrigin:n,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),ot(t,"link",e),nt(t),a.head.appendChild(t)))}}function b0(e){An.D(e),$g("dns-prefetch",e,null)}function v0(e,t){An.C(e,t),$g("preconnect",e,t)}function x0(e,t,n){An.L(e,t,n);var a=cl;if(a&&e&&t){var u='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Bt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Bt(n.imageSizes)+'"]')):u+='[href="'+Bt(e)+'"]';var c=u;switch(t){case"style":c=ol(e);break;case"script":c=fl(e)}Zt.has(c)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zt.set(c,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(pr(c))||t==="script"&&a.querySelector(yr(c))||(t=a.createElement("link"),ot(t,"link",e),nt(t),a.head.appendChild(t)))}}function S0(e,t){An.m(e,t);var n=cl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Bt(a)+'"][href="'+Bt(e)+'"]',c=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=fl(e)}if(!Zt.has(c)&&(e=x({rel:"modulepreload",href:e},t),Zt.set(c,e),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(yr(c)))return}a=n.createElement("link"),ot(a,"link",e),nt(a),n.head.appendChild(a)}}}function E0(e,t,n){An.S(e,t,n);var a=cl;if(a&&e){var u=Ra(a).hoistableStyles,c=ol(e);t=t||"default";var p=u.get(c);if(!p){var v={loading:0,preload:null};if(p=a.querySelector(pr(c)))v.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zt.get(c))&&Dc(e,n);var w=p=a.createElement("link");nt(w),ot(w,"link",e),w._p=new Promise(function(D,F){w.onload=D,w.onerror=F}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Yi(p,t,a)}p={type:"stylesheet",instance:p,count:1,state:v},u.set(c,p)}}}function N0(e,t){An.X(e,t);var n=cl;if(n&&e){var a=Ra(n).hoistableScripts,u=fl(e),c=a.get(u);c||(c=n.querySelector(yr(u)),c||(e=x({src:e,async:!0},t),(t=Zt.get(u))&&zc(e,t),c=n.createElement("script"),nt(c),ot(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function w0(e,t){An.M(e,t);var n=cl;if(n&&e){var a=Ra(n).hoistableScripts,u=fl(e),c=a.get(u);c||(c=n.querySelector(yr(u)),c||(e=x({src:e,async:!0,type:"module"},t),(t=Zt.get(u))&&zc(e,t),c=n.createElement("script"),nt(c),ot(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function Vg(e,t,n,a){var u=(u=ce.current)?Gi(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=ol(n.href),n=Ra(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=ol(n.href);var c=Ra(u).hoistableStyles,p=c.get(e);if(p||(u=u.ownerDocument||u,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=u.querySelector(pr(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Zt.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},Zt.set(e,n),c||A0(u,e,n,p.state))),t&&a===null)throw Error(s(528,""));return p}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=fl(n),n=Ra(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 ol(e){return'href="'+Bt(e)+'"'}function pr(e){return'link[rel="stylesheet"]['+e+"]"}function Kg(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function A0(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}),ot(t,"link",n),nt(t),e.head.appendChild(t))}function fl(e){return'[src="'+Bt(e)+'"]'}function yr(e){return"script[async]"+e}function Qg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Bt(n.href)+'"]');if(a)return t.instance=a,nt(a),a;var u=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),ot(a,"style",u),Yi(a,n.precedence,e),t.instance=a;case"stylesheet":u=ol(n.href);var c=e.querySelector(pr(u));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=Kg(n),(u=Zt.get(u))&&Dc(a,u),c=(e.ownerDocument||e).createElement("link"),nt(c);var p=c;return p._p=new Promise(function(v,w){p.onload=v,p.onerror=w}),ot(c,"link",a),t.state.loading|=4,Yi(c,n.precedence,e),t.instance=c;case"script":return c=fl(n.src),(u=e.querySelector(yr(c)))?(t.instance=u,nt(u),u):(a=n,(u=Zt.get(c))&&(a=x({},n),zc(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),nt(u),ot(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,Yi(a,n.precedence,e));return t.instance}function Yi(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,p=0;p<a.length;p++){var v=a[p];if(v.dataset.precedence===t)c=v;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 Dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var qi=null;function Jg(e,t,n){if(qi===null){var a=new Map,u=qi=new Map;u.set(n,a)}else u=qi,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[Ml]||c[it]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var v=a.get(p);v?v.push(c):a.set(p,[c])}}return a}function Wg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function T0(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 Pg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function C0(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=ol(a.href),c=t.querySelector(pr(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ii.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,nt(c);return}c=t.ownerDocument||t,a=Kg(a),(u=Zt.get(u))&&Dc(a,u),c=c.createElement("link"),nt(c);var p=c;p._p=new Promise(function(v,w){p.onload=v,p.onerror=w}),ot(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=Ii.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Lc=0;function _0(e,t){return e.stylesheets&&e.count===0&&Fi(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Fi(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Lc===0&&(Lc=62500*u0());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Fi(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Lc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Ii(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xi=null;function Fi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xi=new Map,t.forEach(O0,e),Xi=null,Ii.call(e))}function O0(e,t){if(!(t.state.loading&4)){var n=Xi.get(e);if(n)var a=n.get(null);else{n=new Map,Xi.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var p=u[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),a=p)}a&&n.set(null,a)}u=t.instance,p=u.getAttribute("data-precedence"),c=n.get(p)||a,c===a&&n.set(null,u),n.set(p,u),this.count++,a=Ii.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 br={$$typeof:k,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function j0(e,t,n,a,u,c,p,v,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ks(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ks(0),this.hiddenUpdates=ks(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function em(e,t,n,a,u,c,p,v,w,D,F,K){return e=new j0(e,t,n,p,w,D,F,K,v),t=1,c===!0&&(t|=24),c=Ct(3,null,null,t),e.current=c,c.stateNode=e,t=mu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},vu(c),e}function tm(e){return e?(e=qa,e):qa}function nm(e,t,n,a,u,c){u=tm(u),a.context===null?a.context=u:a.pendingContext=u,a=Ln(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=Un(e,a,t),n!==null&&(xt(n,e,t),Ql(n,e,t))}function am(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Uc(e,t){am(e,t),(e=e.alternate)&&am(e,t)}function lm(e){if(e.tag===13||e.tag===31){var t=ua(e,67108864);t!==null&&xt(t,e,67108864),Uc(e,67108864)}}function rm(e){if(e.tag===13||e.tag===31){var t=Rt();t=Rs(t);var n=ua(e,t);n!==null&&xt(n,e,t),Uc(e,t)}}var Zi=!0;function k0(e,t,n,a){var u=R.T;R.T=null;var c=z.p;try{z.p=2,Bc(e,t,n,a)}finally{z.p=c,R.T=u}}function R0(e,t,n,a){var u=R.T;R.T=null;var c=z.p;try{z.p=8,Bc(e,t,n,a)}finally{z.p=c,R.T=u}}function Bc(e,t,n,a){if(Zi){var u=Hc(a);if(u===null)wc(e,t,a,$i,n),sm(e,a);else if(D0(u,e,t,n,a))a.stopPropagation();else if(sm(e,a),t&4&&-1<M0.indexOf(e)){for(;u!==null;){var c=ka(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=aa(c.pendingLanes);if(p!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var w=1<<31-At(p);v.entanglements[1]|=w,p&=~w}ln(c),(je&6)===0&&(Oi=Nt()+500,dr(0))}}break;case 31:case 13:v=ua(c,2),v!==null&&xt(v,c,2),ki(),Uc(c,2)}if(c=Hc(a),c===null&&wc(e,t,a,$i,n),c===u)break;u=c}u!==null&&a.stopPropagation()}else wc(e,t,a,null,n)}}function Hc(e){return e=Ys(e),Gc(e)}var $i=null;function Gc(e){if($i=null,e=ja(e),e!==null){var t=d(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=m(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 $i=e,null}function im(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(by()){case gf:return 2;case mf:return 8;case Lr:case vy:return 32;case pf:return 268435456;default:return 32}default:return 32}}var Yc=!1,Vn=null,Kn=null,Qn=null,vr=new Map,xr=new Map,Jn=[],M0="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 sm(e,t){switch(e){case"focusin":case"focusout":Vn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":vr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xr.delete(t.pointerId)}}function Sr(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=ka(t),t!==null&&lm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function D0(e,t,n,a,u){switch(t){case"focusin":return Vn=Sr(Vn,e,t,n,a,u),!0;case"dragenter":return Kn=Sr(Kn,e,t,n,a,u),!0;case"mouseover":return Qn=Sr(Qn,e,t,n,a,u),!0;case"pointerover":var c=u.pointerId;return vr.set(c,Sr(vr.get(c)||null,e,t,n,a,u)),!0;case"gotpointercapture":return c=u.pointerId,xr.set(c,Sr(xr.get(c)||null,e,t,n,a,u)),!0}return!1}function um(e){var t=ja(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Ef(e.priority,function(){rm(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,Ef(e.priority,function(){rm(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 Vi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hc(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Gs=a,n.target.dispatchEvent(a),Gs=null}else return t=ka(n),t!==null&&lm(t),e.blockedOn=n,!1;t.shift()}return!0}function cm(e,t,n){Vi(e)&&n.delete(t)}function z0(){Yc=!1,Vn!==null&&Vi(Vn)&&(Vn=null),Kn!==null&&Vi(Kn)&&(Kn=null),Qn!==null&&Vi(Qn)&&(Qn=null),vr.forEach(cm),xr.forEach(cm)}function Ki(e,t){e.blockedOn===t&&(e.blockedOn=null,Yc||(Yc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,z0)))}var Qi=null;function om(e){Qi!==e&&(Qi=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Qi===e&&(Qi=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(Gc(a||n)===null)continue;break}var c=ka(n);c!==null&&(e.splice(t,3),t-=3,Hu(c,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function dl(e){function t(w){return Ki(w,e)}Vn!==null&&Ki(Vn,e),Kn!==null&&Ki(Kn,e),Qn!==null&&Ki(Qn,e),vr.forEach(t),xr.forEach(t);for(var n=0;n<Jn.length;n++){var a=Jn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)um(n),n.blockedOn===null&&Jn.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],p=u[gt]||null;if(typeof c=="function")p||om(n);else if(p){var v=null;if(c&&c.hasAttribute("formAction")){if(u=c,p=c[gt]||null)v=p.formAction;else if(Gc(u)!==null)continue}else v=p.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),om(n)}}}function fm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return u=p})},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 qc(e){this._internalRoot=e}Ji.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Rt();nm(n,a,e,t,null,null)},Ji.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nm(e.current,2,null,e,null,null),ki(),t[Oa]=null}};function Ji(e){this._internalRoot=e}Ji.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Jn.length&&t!==0&&t<Jn[n].priority;n++);Jn.splice(n,0,e),n===0&&um(e)}};var dm=i.version;if(dm!=="19.2.4")throw Error(s(527,dm,"19.2.4"));z.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?b(e):null,e=e===null?null:e.stateNode,e};var L0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wi.isDisabled&&Wi.supportsFiber)try{jl=Wi.inject(L0),wt=Wi}catch{}}return Nr.createRoot=function(e,t){if(!o(e))throw Error(s(299));var n=!1,a="",u=vh,c=xh,p=Sh;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&&(p=t.onRecoverableError)),t=em(e,1,!1,null,null,n,a,null,u,c,p,fm),e[Oa]=t.current,Nc(e),new qc(t)},Nr.hydrateRoot=function(e,t,n){if(!o(e))throw Error(s(299));var a=!1,u="",c=vh,p=xh,v=Sh,w=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&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(w=n.formState)),t=em(e,1,!0,t,n??null,a,u,w,c,p,v,fm),t.context=tm(null),n=t.current,a=Rt(),a=Rs(a),u=Ln(a),u.callback=null,Un(n,u,a),n=a,t.current.lanes=n,Rl(t,n),ln(t),e[Oa]=t.current,Nc(e),new Ji(t)},Nr.version="19.2.4",Nr}var Em;function $0(){if(Em)return Xc.exports;Em=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(i){console.error(i)}}return l(),Xc.exports=Z0(),Xc.exports}var V0=$0(),L=yo();const Pi=B0(L),Nm=l=>{let i;const r=new Set,s=(y,b)=>{const x=typeof y=="function"?y(i):y;if(!Object.is(x,i)){const S=i;i=b??(typeof x!="object"||x===null)?x:Object.assign({},i,x),r.forEach(E=>E(i,S))}},o=()=>i,m={setState:s,getState:o,getInitialState:()=>g,subscribe:y=>(r.add(y),()=>r.delete(y))},g=i=l(s,o,m);return m},K0=(l=>l?Nm(l):Nm),Q0=l=>l;function J0(l,i=Q0){const r=Pi.useSyncExternalStore(l.subscribe,Pi.useCallback(()=>i(l.getState()),[l,i]),Pi.useCallback(()=>i(l.getInitialState()),[l,i]));return Pi.useDebugValue(r),r}const wm=l=>{const i=K0(l),r=s=>J0(i,s);return Object.assign(r,i),r},W0=(l=>l?wm(l):wm);function Dt(l){return l.stage?`${l.stage}:${l.path}`:l.path}function hl(l){return l.startsWith("staged:")?l.slice(7):l.startsWith("unstaged:")?l.slice(9):l}const Kc=["unreviewed","reviewed","approved","needs_changes"],Ve=W0((l,i)=>({reviewId:null,diffSet:null,rawDiff:null,briefing:null,metadata:null,selectedFile:null,connectionStatus:"connecting",viewMode:"unified",fileStatuses:{},comments:[],activeCommentKey:null,focusedAnnotationId: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:r=>{const s=r.diffSet.files.length>0?Dt(r.diffSet.files[0]):null,o={};for(const d of r.diffSet.files)o[Dt(d)]="unreviewed";l({reviewId:r.reviewId,diffSet:r.diffSet,rawDiff:r.rawDiff,briefing:r.briefing,metadata:r.metadata,selectedFile:s,fileStatuses:o,comments:[],annotations:[],activeCommentKey:null,draftComment:null,focusedHunkIndex:null,hunkCount:0,compareRef:null,isWatchMode:r.watchMode??!1,watchSubmitted:!1,hasUnreviewedChanges:!0,activeSessionId:r.reviewId})},selectFile:r=>{l({selectedFile:r,focusedHunkIndex:null,hunkCount:0})},setConnectionStatus:r=>{l({connectionStatus:r})},setViewMode:r=>{l({viewMode:r})},setFileStatus:(r,s)=>{l(o=>({fileStatuses:{...o.fileStatuses,[r]:s}}))},cycleFileStatus:r=>{const s=i().fileStatuses[r]??"unreviewed",d=(Kc.indexOf(s)+1)%Kc.length;l(h=>({fileStatuses:{...h.fileStatuses,[r]:Kc[d]}}))},addComment:r=>{l(s=>({comments:[...s.comments,r]}))},updateComment:(r,s)=>{l(o=>({comments:o.comments.map((d,h)=>h===r?s:d)}))},deleteComment:r=>{l(s=>({comments:s.comments.filter((o,d)=>d!==r)}))},focusAnnotation:r=>{l({focusedAnnotationId:r})},setActiveCommentKey:r=>{l({activeCommentKey:r}),r===null&&l({draftComment:null})},setDraftComment:r=>{l({draftComment:r})},saveDraftComment:()=>{const{draftComment:r}=i();r&&r.body.trim()&&l(s=>({comments:[...s.comments,{file:r.file,line:r.line,body:r.body.trim(),type:r.type}],draftComment:null,activeCommentKey:null}))},toggleHotkeyGuide:()=>{l(r=>({showHotkeyGuide:!r.showHotkeyGuide}))},toggleWorkflowTips:()=>{l(r=>({showWorkflowTips:!r.showWorkflowTips}))},toggleTheme:()=>{const r=i().theme==="dark"?"light":"dark";localStorage.setItem("diffprism-theme",r),l({theme:r})},updateDiff:r=>{const s=i(),{changedFiles:o}=r,d={};for(const m of r.diffSet.files){const g=Dt(m);o.includes(g)?d[g]="unreviewed":d[g]=s.fileStatuses[g]??"unreviewed"}let{selectedFile:h}=s;h&&!r.diffSet.files.some(m=>Dt(m)===h)&&(h=r.diffSet.files.length>0?Dt(r.diffSet.files[0]):null),l({diffSet:r.diffSet,rawDiff:r.rawDiff,briefing:r.briefing,fileStatuses:d,selectedFile:h,focusedHunkIndex:null,hunkCount:0,hasUnreviewedChanges:!0})},updateContext:r=>{const s=i();s.metadata&&l({metadata:{...s.metadata,...r.reasoning!==void 0&&{reasoning:r.reasoning},...r.title!==void 0&&{title:r.title},...r.description!==void 0&&{description:r.description}}})},setWatchSubmitted:r=>{l({watchSubmitted:r,...r&&{hasUnreviewedChanges:!1}})},setServerMode:r=>{l({isServerMode:r})},setSessions:r=>{l({sessions:r})},addSession:r=>{l(s=>s.sessions.some(o=>o.id===r.id)?s:{sessions:[...s.sessions,r]})},updateSession:r=>{l(s=>{const o=s.sessions.findIndex(h=>h.id===r.id);if(o===-1)return s;const d=[...s.sessions];return d[o]=r,{sessions:d}})},removeSession:r=>{l(s=>{const o=s.sessions.filter(d=>d.id!==r);return s.activeSessionId===r?{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:r=>{const{focusedHunkIndex:s,hunkCount:o}=i();o!==0&&l(s===null?{focusedHunkIndex:r==="next"?0:o-1}:r==="next"?{focusedHunkIndex:Math.min(s+1,o-1)}:{focusedHunkIndex:Math.max(s-1,0)})},setHunkCount:r=>{l({hunkCount:r,focusedHunkIndex:null})},setFocusedHunkIndex:r=>{l({focusedHunkIndex:r})},setCompareRef:r=>{l({compareRef:r})},addAnnotation:r=>{l(s=>({annotations:[...s.annotations,r]}))},updateAnnotation:r=>{l(s=>({annotations:s.annotations.map(o=>o.id===r.id?r:o)}))},applyAnnotationDismissed:r=>{l(s=>({annotations:s.annotations.map(o=>o.id===r?{...o,dismissed:!0}:o)}))},dismissAnnotation:r=>{i().applyAnnotationDismissed(r);const o=new URLSearchParams(window.location.search).get("httpPort"),d=i().reviewId;o&&d&&fetch(`http://localhost:${o}/api/reviews/${d}/annotations/${r}/dismiss`,{method:"POST"}).catch(()=>{})},selectSession:r=>{l({activeSessionId:r})},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})}})),P0=1e3;function ev(l){const i=L.useRef(null),r=L.useRef(l==null?void 0:l.onSessionAdded);r.current=l==null?void 0:l.onSessionAdded;const s=L.useRef(l==null?void 0:l.onSessionUpdated);s.current=l==null?void 0:l.onSessionUpdated;const o=L.useRef(l==null?void 0:l.onDiffUpdated);o.current=l==null?void 0:l.onDiffUpdated;const d=L.useRef(l==null?void 0:l.onAnnotationAdded);d.current=l==null?void 0:l.onAnnotationAdded;const{connectionStatus:h,setConnectionStatus:m,initReview:g,updateDiff:y,updateContext:b,setServerMode:x,setSessions:S,addSession:E,updateSession:A,removeSession:C,addAnnotation:_,applyAnnotationDismissed:B,updateAnnotation:X}=Ve();L.useEffect(()=>{const Z=new URLSearchParams(window.location.search),G=Z.get("wsPort"),O=Z.get("serverMode")==="true",ae=Z.get("sessionId");if(!G){console.warn("No wsPort query parameter found"),m("disconnected");return}O&&x(!0);const ee=ae?`ws://localhost:${G}?sessionId=${ae}`:`ws://localhost:${G}`,ie=se=>{var ue,N,I,W;try{const H=JSON.parse(se.data);if(H.type==="review:init")g(H.payload);else if(H.type==="diff:update"){y(H.payload);const te=H.payload;(ue=o.current)==null||ue.call(o,te.diffSet.files.length)}else H.type==="diff:error"?console.error("Diff error:",H.payload.error):H.type==="context:update"?b(H.payload):H.type==="session:list"?S(H.payload):H.type==="session:added"?(E(H.payload),window.focus(),(N=r.current)==null||N.call(r,H.payload)):H.type==="session:updated"?(A(H.payload),(I=s.current)==null||I.call(s,H.payload)):H.type==="session:removed"?C(H.payload.sessionId):H.type==="annotation:added"?(_(H.payload),(W=d.current)==null||W.call(d,H.payload)):H.type==="annotation:dismissed"?B(H.payload.annotationId):H.type==="annotation:updated"&&X(H.payload)}catch(H){console.error("Failed to parse WebSocket message:",H)}},fe=Z.get("httpPort");let ne=!1,J=null,Q=null,R=!1;const z=async()=>{if(!fe)return null;try{const se=await fetch(`http://localhost:${fe}/api/status`);return se.ok?(await se.json()).pid:(console.warn(`DiffPrism server status returned ${se.status}`),null)}catch(se){return console.warn("Could not read DiffPrism server status:",se),null}},le=()=>{const se=new WebSocket(ee);i.current=se,se.addEventListener("open",async()=>{m("connected");const ue=R;R=!0;const N=await z();if(ue&&Q!==null&&N!==null&&N!==Q){window.location.reload();return}if(N!==null&&(Q=N),ue){const I=Ve.getState().activeSessionId;I&&se.send(JSON.stringify({type:"session:select",payload:{sessionId:I}}))}}),se.addEventListener("message",ie),se.addEventListener("close",()=>{m("disconnected"),ne||(J=setTimeout(le,P0))}),se.addEventListener("error",()=>{m("disconnected")})};return le(),()=>{var se;ne=!0,J&&clearTimeout(J),(se=i.current)==null||se.close(),i.current=null}},[m,g,y,b,x,S,E,A,C,_,B,X]);const k=L.useCallback(Z=>{const G=i.current;if(!G||G.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const O={type:"review:submit",payload:Z};G.send(JSON.stringify(O))},[]),$=L.useCallback(Z=>{const G=i.current;if(!G||G.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const O={type:"session:select",payload:{sessionId:Z}};G.send(JSON.stringify(O))},[]),q=L.useCallback(Z=>{const G=i.current;if(!G||G.readyState!==WebSocket.OPEN){console.error("WebSocket is not connected");return}const O={type:"session:close",payload:{sessionId:Z}};G.send(JSON.stringify(O))},[]);return{sendResult:k,selectSession:$,closeSession:q,connectionStatus:h}}const bp="diffprism-notifications";function tv(){try{return localStorage.getItem(bp)!=="disabled"}catch{return!0}}function Am(l){try{localStorage.setItem(bp,l?"enabled":"disabled")}catch{}}function nv(l){const i=L.useRef(l==null?void 0:l.onSessionSelect);L.useEffect(()=>{i.current=l==null?void 0:l.onSessionSelect},[l==null?void 0:l.onSessionSelect]);const r=typeof globalThis.Notification<"u",[s,o]=L.useState(()=>r?Notification.permission:"denied"),[d,h]=L.useState(tv),m=L.useCallback(async()=>{if(!r)return"denied";const C=await Notification.requestPermission();return o(C),C},[r]);L.useEffect(()=>{if(!r||!d||Notification.permission!=="default")return;const A=()=>{document.removeEventListener("click",A,!0),m()};return document.addEventListener("click",A,!0),()=>document.removeEventListener("click",A,!0)},[r,d,m]);const g=L.useCallback(async()=>{if(!r||s==="denied")return;if(s==="default"){await m()==="granted"&&(h(!0),Am(!0));return}const A=!d;h(A),Am(A)},[r,s,d,m]),y=L.useCallback(async(A,C,_,B)=>{if(!r||document.hasFocus()||!d)return;let X=s;if(X==="default"&&(X=await m()),X!=="granted")return;const k=new Notification(A,{body:C,icon:"/favicon.svg",tag:_});k.onclick=()=>{window.focus(),B==null||B(),k.close()}},[r,d,s,m]),b=L.useCallback(async A=>{const C=A.title||"New Review Ready",_=[];A.branch&&_.push(A.branch),_.push(`${A.fileCount} file${A.fileCount!==1?"s":""}, +${A.additions} -${A.deletions}`),await y(C,_.join(" · "),A.id,()=>{var B;(B=i.current)==null||B.call(i,A.id)})},[y]),x=L.useCallback(async A=>{A.status==="submitted"&&await y("Review Submitted",A.title||`${A.fileCount} files reviewed`,`submitted-${A.id}`,()=>{var C;(C=i.current)==null||C.call(i,A.id)})},[y]),S=L.useCallback(async A=>{await y("Diff Updated",`${A} file${A!==1?"s":""} changed`,"diff-update")},[y]),E=L.useCallback(async A=>{await y(`Annotation from ${A.source.agent}`,`${A.file}:${A.line} — ${A.body.slice(0,100)}`,`annotation-${A.id}`)},[y]);return{permission:s,enabled:d,toggle:g,notifyNewSession:b,notifySessionUpdated:x,notifyDiffUpdated:S,notifyAnnotationAdded:E}}function av(){const l=Ve(o=>o.selectedFile),i=Ve(o=>o.activeSessionId),r=Ve(o=>o.reviewId),s=L.useRef(null);L.useEffect(()=>{const o=i??r;if(!o)return;const d=new URLSearchParams(window.location.search).get("httpPort");if(!d)return;const h=`${o}:${l}`;h!==s.current&&(s.current=h,fetch(`http://localhost:${d}/api/reviews/${o}/focus`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:l})}).catch(()=>{}))},[l,i,r])}/**
|
|
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 lv=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vp=(...l)=>l.filter((i,r,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===r).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 rv={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 iv=L.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:o="",children:d,iconNode:h,...m},g)=>L.createElement("svg",{ref:g,...rv,width:i,height:i,stroke:l,strokeWidth:s?Number(r)*24/Number(i):r,className:vp("lucide",o),...m},[...h.map(([y,b])=>L.createElement(y,b)),...Array.isArray(d)?d:[d]]));/**
|
|
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 me=(l,i)=>{const r=L.forwardRef(({className:s,...o},d)=>L.createElement(iv,{ref:d,iconNode:i,className:vp(`lucide-${lv(l)}`,s),...o}));return r.displayName=`${l}`,r};/**
|
|
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 sv=me("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 uv=me("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 cv=me("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 bo=me("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 ov=me("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 Tr=me("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 gs=me("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 fv=me("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 vo=me("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 wa=me("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 dv=me("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 xo=me("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 xp=me("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 hv=me("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 gv=me("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 mv=me("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 So=me("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 pv=me("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 Eo=me("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 wl=me("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 yv=me("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 bv=me("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 vv=me("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 Tm=me("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 Ea=me("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 xv=me("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 Cm=me("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 Tn=me("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 _m=me("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 ta=me("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 No=me("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 no=me("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 Sl=me("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 Sv=me("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 Om=me("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 Ev=me("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 Sp=me("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 Nv=me("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
|
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 wv=me("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"}]]);/**
|
|
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 Av=me("Rows2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]);/**
|
|
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 jm=me("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
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 Tv=me("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"}]]);/**
|
|
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 es=me("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"}]]);/**
|
|
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 Cv=me("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"}]]);/**
|
|
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 _v=me("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
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 Ov=me("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"}]]);/**
|
|
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 El=me("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"}]]);/**
|
|
305
|
-
* @license lucide-react v0.469.0 - ISC
|
|
306
|
-
*
|
|
307
|
-
* This source code is licensed under the ISC license.
|
|
308
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
-
*/const jv=me("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
310
|
-
* @license lucide-react v0.469.0 - ISC
|
|
311
|
-
*
|
|
312
|
-
* This source code is licensed under the ISC license.
|
|
313
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
-
*/const kr=me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function wo(){const l=L.useMemo(()=>new URLSearchParams(window.location.search).get("httpPort"),[]),i=l!==null,r=L.useCallback(async y=>{if(!l)return null;try{const b=await fetch(`http://localhost:${l}/api/reviews/${y}/refs`);return b.ok?await b.json():null}catch{return null}},[l]),s=L.useCallback(async(y,b)=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const x=await fetch(`http://localhost:${l}/api/reviews/${y}/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ref:b})});return x.ok?{ok:!0}:{ok:!1,error:(await x.json().catch(()=>({}))).error??"Comparison failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]),o=L.useCallback(async y=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const b=await fetch(`http://localhost:${l}/api/reviews/${y}/compare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reset:!0})});return b.ok?{ok:!0}:{ok:!1,error:(await b.json().catch(()=>({}))).error??"Reset failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]),d=L.useCallback(async(y,b)=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const x=await fetch(`http://localhost:${l}${y}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});return x.ok?{ok:!0}:{ok:!1,error:(await x.json().catch(()=>({}))).error??"Request failed"}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]),h=L.useCallback((y,b)=>d(`/api/reviews/${y}/annotations`,{...b,type:"question",category:"other",author:"reviewer",source:{agent:"reviewer",tool:"dashboard"}}),[d]),m=L.useCallback((y,b,x)=>d(`/api/reviews/${y}/annotations/${b}/replies`,{author:"reviewer",body:x}),[d]),g=L.useCallback(async(y,b)=>{if(!l)return{ok:!1,error:"Not connected to server"};try{const x=await fetch(`http://localhost:${l}/api/reviews/${y}/github-review`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)}),S=await x.json().catch(()=>({}));return x.ok&&S.url?{ok:!0,url:S.url}:{ok:!1,error:S.error??`Server returned ${x.status}`}}catch{return{ok:!1,error:"Failed to connect to server"}}},[l]);return{isAvailable:i,fetchRefs:r,compareAgainst:s,resetCompare:o,startThread:h,replyToThread:m,submitPrReview:g}}function kv(){const[l,i]=L.useState(!1),[r,s]=L.useState(null),[o,d]=L.useState(!1),[h,m]=L.useState(!1),[g,y]=L.useState(null),[b,x]=L.useState(""),[S,E]=L.useState("branches"),A=L.useRef(null),C=L.useRef(null),{activeSessionId:_,compareRef:B,setCompareRef:X,metadata:k}=Ve(),{isAvailable:$,fetchRefs:q,compareAgainst:Z,resetCompare:G}=wo(),O=B??"working copy",ae=L.useCallback(async()=>{if(!_)return;i(!0),x(""),y(null),d(!0);const z=await q(_);s(z),d(!1)},[_,q]),ee=L.useCallback(async z=>{if(!_)return;m(!0),y(null);const le=await Z(_,z);le.ok?(X(z),i(!1)):y(le.error??"Comparison failed"),m(!1)},[_,Z,X]),ie=L.useCallback(async()=>{if(!_)return;m(!0),y(null);const z=await G(_);z.ok?(X(null),i(!1)):y(z.error??"Reset failed"),m(!1)},[_,G,X]);L.useEffect(()=>{if(!l)return;function z(le){A.current&&!A.current.contains(le.target)&&i(!1)}return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[l]),L.useEffect(()=>{if(!l)return;function z(le){le.key==="Escape"&&i(!1)}return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[l]),L.useEffect(()=>{l&&C.current&&C.current.focus()},[l]);const fe=!!(k!=null&&k.githubPr);if(!$||fe)return k!=null&&k.currentBranch?f.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:[f.jsx(Tn,{className:"w-3 h-3"}),k.currentBranch]}):null;const ne=b.toLowerCase(),J=(r==null?void 0:r.branches.local.filter(z=>z.toLowerCase().includes(ne)))??[],Q=(r==null?void 0:r.branches.remote.filter(z=>z.toLowerCase().includes(ne)))??[],R=(r==null?void 0:r.commits.filter(z=>z.shortHash.toLowerCase().includes(ne)||z.subject.toLowerCase().includes(ne)||z.author.toLowerCase().includes(ne)))??[];return f.jsxs("div",{className:"relative",ref:A,children:[f.jsxs("button",{onClick:()=>l?i(!1):ae(),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?f.jsx(no,{className:"w-3 h-3 animate-spin"}):f.jsx(Tn,{className:"w-3 h-3"}),f.jsx("span",{className:"max-w-[180px] truncate",children:O}),f.jsx(gs,{className:"w-3 h-3"})]}),l&&f.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:[f.jsx("div",{className:"p-2 border-b border-border",children:f.jsx("input",{ref:C,type:"text",value:b,onChange:z=>x(z.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"})}),f.jsxs("div",{className:"flex border-b border-border",children:[f.jsxs("button",{onClick:()=>E("branches"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors cursor-pointer ${S==="branches"?"text-accent border-b-2 border-accent":"text-text-secondary hover:text-text-primary"}`,children:[f.jsx(Tn,{className:"w-3 h-3 inline mr-1"}),"Branches"]}),f.jsxs("button",{onClick:()=>E("commits"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors cursor-pointer ${S==="commits"?"text-accent border-b-2 border-accent":"text-text-secondary hover:text-text-primary"}`,children:[f.jsx(_m,{className:"w-3 h-3 inline mr-1"}),"Commits"]})]}),g&&f.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:[f.jsx(wa,{className:"w-3.5 h-3.5 flex-shrink-0"}),f.jsx("span",{children:g})]}),f.jsx("div",{className:"max-h-64 overflow-y-auto",children:o?f.jsxs("div",{className:"flex items-center justify-center py-6",children:[f.jsx(no,{className:"w-4 h-4 animate-spin text-text-secondary"}),f.jsx("span",{className:"ml-2 text-xs text-text-secondary",children:"Loading refs..."})]}):S==="branches"?f.jsxs("div",{children:[J.length>0&&f.jsxs("div",{children:[f.jsx("div",{className:"px-3 py-1.5 text-[10px] font-medium uppercase tracking-wide text-text-secondary bg-background/50",children:"Local"}),J.map(z=>f.jsxs("button",{onClick:()=>ee(z),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 ${B===z?"bg-accent/10 text-accent":"text-text-primary"}`,children:[f.jsx(Tn,{className:"w-3 h-3 flex-shrink-0 text-text-secondary"}),f.jsx("span",{className:"font-mono truncate",children:z}),z===(r==null?void 0:r.currentBranch)&&f.jsx("span",{className:"ml-auto text-[10px] text-text-secondary",children:"current"})]},z))]}),Q.length>0&&f.jsxs("div",{children:[f.jsx("div",{className:"px-3 py-1.5 text-[10px] font-medium uppercase tracking-wide text-text-secondary bg-background/50",children:"Remote"}),Q.map(z=>f.jsxs("button",{onClick:()=>ee(z),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 ${B===z?"bg-accent/10 text-accent":"text-text-primary"}`,children:[f.jsx(Tn,{className:"w-3 h-3 flex-shrink-0 text-text-secondary"}),f.jsx("span",{className:"font-mono truncate",children:z})]},z))]}),J.length===0&&Q.length===0&&f.jsx("div",{className:"px-3 py-4 text-xs text-text-secondary text-center",children:"No branches found"})]}):f.jsx("div",{children:R.length>0?R.map(z=>f.jsxs("button",{onClick:()=>ee(z.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 ${B===z.hash?"bg-accent/10 text-accent":"text-text-primary"}`,children:[f.jsx(_m,{className:"w-3 h-3 flex-shrink-0 mt-0.5 text-text-secondary"}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-mono text-accent",children:z.shortHash}),f.jsx("span",{className:"truncate",children:z.subject})]}),f.jsxs("div",{className:"text-[10px] text-text-secondary mt-0.5",children:[z.author," · ",Rv(z.date)]})]})]},z.hash)):f.jsx("div",{className:"px-3 py-4 text-xs text-text-secondary text-center",children:"No commits found"})})}),B&&f.jsx("div",{className:"border-t border-border p-2",children:f.jsxs("button",{onClick:ie,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:[f.jsx(wv,{className:"w-3 h-3"}),"Reset to working copy"]})})]})]})}function Rv(l){const i=new Date(l),s=new Date().getTime()-i.getTime(),o=Math.floor(s/1e3),d=Math.floor(o/60),h=Math.floor(d/60),m=Math.floor(h/24);return o<60?"just now":d<60?`${d}m ago`:h<24?`${h}h ago`:m<30?`${m}d ago`:i.toLocaleDateString()}const km={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"},Mv={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"},Dv={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"},zv={added:"text-success",modified:"text-warning",deleted:"text-danger",renamed:"text-accent"},Lv={reviewed:"text-info",approved:"text-success",needs_changes:"text-warning"},os={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"},Rm={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"},ea={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"},Pn={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"},gl={security:"text-danger",breaking:"text-danger",deps:"text-warning",complexity:"text-perf",coverage:"text-warning",patterns:"text-accent"},Uv={staged:"bg-success/20 text-success border-success/30",unstaged:"bg-warning/20 text-warning border-warning/30"},Bv={critical:"bg-danger/15 text-danger border border-danger/30",warning:"bg-warning/15 text-warning border border-warning/30"},Hv={critical:"text-danger",warning:"text-warning"};function Gv(){const[l,i]=L.useState(!1),{briefing:r,metadata:s,isServerMode:o,clearReview:d,sessions:h,activeSessionId:m}=Ve(),g=h.find(O=>O.id===m),y=g==null?void 0:g.branch,b=g!=null&&g.projectPath?g.projectPath.split("/").filter(Boolean).pop():void 0;if(!r)return null;const{impact:x,verification:S,complexity:E,testCoverage:A,patterns:C}=r,_=x.breakingChanges.length>0,B=x.newDependencies.length>0,X=x.affectedModules.length,k=(E==null?void 0:E.filter(O=>O.score>=5))??[],$=(A==null?void 0:A.filter(O=>O.testFile===null))??[],q=(C==null?void 0:C.filter(O=>O.severity))??[],Z=(C==null?void 0:C.filter(O=>!O.severity))??[],G=Z.length;return f.jsxs("div",{className:"bg-surface border-b border-border flex-shrink-0",children:[f.jsxs("div",{className:"flex items-center",children:[o&&f.jsx("button",{onClick:d,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:f.jsx(sv,{className:"w-4 h-4"})}),f.jsxs("button",{onClick:()=>i(!l),className:"flex-1 px-4 py-2.5 flex items-center gap-3 cursor-pointer hover:bg-text-primary/5 transition-colors",children:[f.jsx("span",{className:"text-text-primary text-sm flex-1 text-left truncate",children:r.summary}),f.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(y||b)&&f.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs bg-text-primary/5 text-text-secondary max-w-[22rem]",title:g==null?void 0:g.projectPath,children:[f.jsx(Tn,{className:"w-3 h-3 flex-shrink-0"}),b&&f.jsx("span",{className:"truncate",children:b}),b&&y&&f.jsx("span",{className:"opacity-40",children:"/"}),y&&f.jsx("span",{className:"truncate",children:y})]}),q.length>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-semibold ${Pn.security}`,children:[f.jsx(es,{className:"w-3 h-3"}),q.length," security flag",q.length!==1?"s":""]}),X>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Pn.modules}`,children:[f.jsx(Ea,{className:"w-3 h-3"}),X," module",X!==1?"s":""]}),_&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Pn.breaking}`,children:[f.jsx(El,{className:"w-3 h-3"}),"breaking"]}),B&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Pn.deps}`,children:[f.jsx(Om,{className:"w-3 h-3"}),x.newDependencies.length," new dep",x.newDependencies.length!==1?"s":""]}),k.length>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Pn.complexity}`,children:[f.jsx(Cm,{className:"w-3 h-3"}),k.length," complex"]}),$.length>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Pn.coverage}`,children:[f.jsx(es,{className:"w-3 h-3"}),$.length," untested"]}),G>0&&f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs ${Pn.patterns}`,children:[f.jsx(jm,{className:"w-3 h-3"}),G," pattern",G!==1?"s":""]}),l?f.jsx(vo,{className:"w-4 h-4 text-text-secondary"}):f.jsx(gs,{className:"w-4 h-4 text-text-secondary"})]})]}),f.jsx("div",{className:"px-3 py-2.5 border-l border-border flex-shrink-0",children:f.jsx(kv,{})})]}),(s==null?void 0:s.githubPr)&&f.jsxs("div",{className:"px-4 py-2 border-t border-border/50 flex items-center gap-3 text-xs",children:[f.jsx(ta,{className:"w-3.5 h-3.5 text-accent flex-shrink-0"}),f.jsxs("span",{className:"text-text-primary font-medium truncate",children:[s.githubPr.owner,"/",s.githubPr.repo,"#",s.githubPr.number]}),f.jsxs("span",{className:"text-text-secondary",children:["by ",s.githubPr.author]}),f.jsxs("span",{className:"text-text-secondary font-mono",children:[s.githubPr.baseBranch," ← ",s.githubPr.headBranch]}),f.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",f.jsx(So,{className:"w-3 h-3"})]})]}),l&&f.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:[q.length>0&&f.jsxs("div",{className:"col-span-2",children:[f.jsxs("h4",{className:`${gl.security} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(es,{className:"w-3.5 h-3.5"}),"Security Flags"]}),f.jsx("ul",{className:"space-y-0.5",children:q.map((O,ae)=>f.jsxs("li",{className:"text-xs",children:[f.jsx("span",{className:`inline-block px-1 py-0.5 rounded text-[10px] font-medium uppercase mr-1.5 ${Bv[O.severity??"warning"]}`,children:O.pattern.replace("_"," ")}),f.jsx("span",{className:`text-[10px] font-medium uppercase mr-1.5 ${Hv[O.severity??"warning"]}`,children:O.severity}),f.jsxs("span",{className:"font-mono text-text-secondary",children:[O.file,":",O.line]}),f.jsxs("span",{className:"text-text-secondary ml-1 truncate",children:["— ",O.content]})]},`${O.file}:${O.line}:${ae}`))})]}),x.affectedModules.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[f.jsx(Ea,{className:"w-3.5 h-3.5"}),"Affected Modules"]}),f.jsx("ul",{className:"space-y-0.5",children:x.affectedModules.map(O=>f.jsx("li",{className:"text-text-primary text-xs font-mono",children:O},O))})]}),x.affectedTests.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[f.jsx(Tm,{className:"w-3.5 h-3.5"}),"Affected Tests"]}),f.jsx("ul",{className:"space-y-0.5",children:x.affectedTests.map(O=>f.jsx("li",{className:"text-text-primary text-xs font-mono truncate",children:O},O))})]}),_&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${gl.breaking} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(El,{className:"w-3.5 h-3.5"}),"Breaking Changes"]}),f.jsx("ul",{className:"space-y-0.5",children:x.breakingChanges.map(O=>f.jsx("li",{className:"text-danger text-xs",children:O},O))})]}),B&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${gl.deps} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(Om,{className:"w-3.5 h-3.5"}),"New Dependencies"]}),f.jsx("ul",{className:"space-y-0.5",children:x.newDependencies.map(O=>f.jsx("li",{className:"text-text-primary text-xs font-mono",children:O},O))})]}),k.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${gl.complexity} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(Cm,{className:"w-3.5 h-3.5"}),"High Complexity"]}),f.jsx("ul",{className:"space-y-0.5",children:k.map(O=>f.jsxs("li",{className:"text-text-primary text-xs",children:[f.jsx("span",{className:"font-mono",children:O.path}),f.jsxs("span",{className:"text-perf ml-1",children:["(",O.score,"/10)"]}),O.factors.length>0&&f.jsxs("span",{className:"text-text-secondary ml-1",children:["— ",O.factors.join(", ")]})]},O.path))})]}),$.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${gl.coverage} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(es,{className:"w-3.5 h-3.5"}),"Missing Test Changes"]}),f.jsx("ul",{className:"space-y-0.5",children:$.map(O=>f.jsx("li",{className:"text-text-primary text-xs font-mono",children:O.sourceFile},O.sourceFile))})]}),Z.length>0&&f.jsxs("div",{children:[f.jsxs("h4",{className:`${gl.patterns} text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5`,children:[f.jsx(jm,{className:"w-3.5 h-3.5"}),"Pattern Flags"]}),f.jsx("ul",{className:"space-y-0.5",children:Z.map((O,ae)=>f.jsxs("li",{className:"text-xs",children:[f.jsx("span",{className:`inline-block px-1 py-0.5 rounded text-[10px] font-medium uppercase mr-1.5 ${Pn.patterns}`,children:O.pattern}),f.jsxs("span",{className:"font-mono text-text-secondary",children:[O.file,O.line>0?`:${O.line}`:""]}),O.line>0&&f.jsxs("span",{className:"text-text-secondary ml-1 truncate",children:["— ",O.content]})]},`${O.file}:${O.line}:${ae}`))})]}),f.jsxs("div",{children:[f.jsxs("h4",{className:"text-text-secondary text-xs font-medium uppercase tracking-wide mb-1 flex items-center gap-1.5",children:[f.jsx(Tm,{className:"w-3.5 h-3.5"}),"Verification"]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Qc,{label:"Tests",value:S.testsPass}),f.jsx(Qc,{label:"Types",value:S.typeCheck}),f.jsx(Qc,{label:"Lint",value:S.lintClean})]})]})]})]})}function Qc({label:l,value:i}){return i===null?f.jsxs("span",{className:"text-text-secondary text-xs",children:[l,": ",f.jsx("span",{className:"font-mono",children:"—"})]}):f.jsxs("span",{className:`text-xs ${i?"text-success":"text-danger"}`,children:[l,": ",f.jsx("span",{className:"font-mono",children:i?"pass":"fail"})]})}function Yv(){const[l,i]=L.useState(!1),{metadata:r}=Ve();return r!=null&&r.reasoning?f.jsxs("div",{className:"bg-surface border-b border-border flex-shrink-0",children:[f.jsxs("button",{onClick:()=>i(!l),className:"w-full px-4 py-2.5 flex items-center gap-3 cursor-pointer hover:bg-text-primary/5 transition-colors",children:[f.jsx(ov,{className:"w-4 h-4 text-accent flex-shrink-0"}),f.jsx("span",{className:"text-text-primary text-sm flex-1 text-left truncate",children:"Agent Reasoning"}),l?f.jsx(vo,{className:"w-4 h-4 text-text-secondary"}):f.jsx(gs,{className:"w-4 h-4 text-text-secondary"})]}),l&&f.jsx("div",{className:"px-4 pb-3 border-t border-border/50 pt-3",children:f.jsx("p",{className:"text-text-secondary text-sm whitespace-pre-wrap",children:r.reasoning})})]}):null}const qv={added:"A",modified:"M",deleted:"D",renamed:"R"};function Iv(l){return{label:qv[l],className:Dv[l]}}const Xv={added:vv,deleted:yv,modified:bv,renamed:wl};function Fv(l){const i=Xv[l]??wl;return f.jsx(i,{className:`w-4 h-4 flex-shrink-0 ${zv[l]}`})}const Zv={reviewed:Eo,approved:dv,needs_changes:wa};function $v(l){const i=Zv[l];return i?f.jsx(i,{className:`w-3.5 h-3.5 flex-shrink-0 ${Lv[l]}`}):null}function Vv(l){const i=l.split("/");return i[i.length-1]}function Kv(l){const i=l.split("/");return i.length<=1?"":i.slice(0,-1).join("/")}function Qv({onSubmit:l}){const{diffSet:i,selectedFile:r,selectFile:s,fileStatuses:o,cycleFileStatus:d,toggleHotkeyGuide:h,comments:m,navigateHunk:g,setFileStatus:y,briefing:b}=Ve(),[x,S]=L.useState({}),[E,A]=L.useState(!1),C=L.useRef(null),_=L.useMemo(()=>i?i.files.some(J=>J.stage!==void 0):!1,[i]),{stagedFiles:B,unstagedFiles:X}=L.useMemo(()=>i?_?{stagedFiles:i.files.filter(J=>J.stage==="staged"),unstagedFiles:i.files.filter(J=>J.stage==="unstaged")}:{stagedFiles:[],unstagedFiles:[]}:{stagedFiles:[],unstagedFiles:[]},[i,_]),k=L.useMemo(()=>{if(!i||!(b!=null&&b.triage))return null;const{critical:J,notable:Q,mechanical:R}=b.triage;if(!(J.length>0||R.length>0))return null;const le=new Set(J.map(W=>W.file)),se=new Set(R.map(W=>W.file)),ue=[],N=[],I=[];for(const W of i.files)le.has(W.path)?ue.push(W):se.has(W.path)?I.push(W):N.push(W);return{criticalFiles:ue,notableFiles:N,mechanicalFiles:I}},[i,b]),$=k!==null&&!_,q=L.useMemo(()=>{if(!i)return[];if($&&k){const Q=[];return x["triage-critical"]||Q.push(...k.criticalFiles),x["triage-notable"]||Q.push(...k.notableFiles),x["triage-mechanical"]||Q.push(...k.mechanicalFiles),Q}if(!_)return i.files;const J=[];return x.staged||J.push(...B),x.unstaged||J.push(...X),J},[i,_,B,X,x,$,k]),Z=L.useCallback(J=>{if(q.length===0)return;const Q=q.findIndex(z=>Dt(z)===r);let R;Q===-1?R=0:J==="up"?R=Q>0?Q-1:Q:R=Q<q.length-1?Q+1:Q,s(Dt(q[R]))},[q,r,s]);L.useEffect(()=>{function J(Q){const R=Q.target.tagName;R==="INPUT"||R==="TEXTAREA"||(Q.key==="ArrowUp"||Q.key==="k"?(Q.preventDefault(),Z("up")):Q.key==="ArrowDown"||Q.key==="j"?(Q.preventDefault(),Z("down")):Q.key==="s"?(Q.preventDefault(),r&&d(r)):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",J),()=>document.removeEventListener("keydown",J)},[Z,r,d,h,g]),L.useEffect(()=>{if(!E)return;function J(Q){C.current&&!C.current.contains(Q.target)&&A(!1)}return document.addEventListener("mousedown",J),()=>document.removeEventListener("mousedown",J)},[E]);const G=L.useCallback(J=>{const Q=Object.values(o).some(R=>R!=="unreviewed");l({decision:"approved",comments:m,fileStatuses:Q?o:void 0,postReviewAction:J}),A(!1)},[o,m,l]),O=L.useCallback(()=>{if(k)for(const J of k.mechanicalFiles)y(Dt(J),"approved")},[k,y]);if(!i)return null;const ae=i.files.reduce((J,Q)=>J+Q.additions,0),ee=i.files.reduce((J,Q)=>J+Q.deletions,0),ie=J=>{S(Q=>({...Q,[J]:!Q[J]}))},fe=J=>{const Q=Dt(J),R=Q===r,z=Iv(J.status),le=Kv(J.path);return f.jsxs("button",{onClick:()=>s(Q),className:`
|
|
315
|
-
w-full text-left px-3 py-2 flex items-center gap-2
|
|
316
|
-
transition-colors duration-100 cursor-pointer group
|
|
317
|
-
${R?"bg-accent/10 border-l-2 border-accent":"border-l-2 border-transparent hover:bg-text-primary/5"}
|
|
318
|
-
`,children:[Fv(J.status),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("div",{className:`text-sm truncate ${R?"text-text-primary":"text-text-secondary"} group-hover:text-text-primary`,children:Vv(J.path)}),le&&f.jsx("div",{className:"text-xs text-text-secondary truncate",children:le})]}),f.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(()=>{const se=o[Q]??"unreviewed",ue=$v(se);return f.jsx("button",{onClick:N=>{N.stopPropagation(),d(Q)},className:`p-0.5 rounded hover:bg-text-primary/10 transition-colors cursor-pointer ${ue?"":"opacity-0 group-hover:opacity-40"}`,title:ue?`Status: ${se} (click to cycle)`:"Mark as reviewed (click to cycle)",children:ue??f.jsx(Eo,{className:"w-3.5 h-3.5 text-text-secondary"})})})(),J.additions>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",J.additions]}),J.deletions>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",J.deletions]}),f.jsx("span",{className:`
|
|
319
|
-
text-[10px] font-bold px-1.5 py-0.5 rounded border
|
|
320
|
-
${z.className}
|
|
321
|
-
`,children:z.label})]})]},Q)},ne=(J,Q,R)=>{const z=x[Q]??!1,le=R.reduce((ue,N)=>ue+N.additions,0),se=R.reduce((ue,N)=>ue+N.deletions,0);return f.jsxs("button",{onClick:()=>ie(Q),className:"w-full text-left px-3 py-1.5 flex items-center gap-2 hover:bg-text-primary/5 cursor-pointer",children:[z?f.jsx(fv,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}):f.jsx(gs,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}),f.jsxs("span",{className:"text-text-secondary text-xs font-semibold uppercase tracking-wide",children:[J," (",R.length,")"]}),f.jsxs("div",{className:"flex items-center gap-2 ml-auto flex-shrink-0",children:[le>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",le]}),se>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",se]})]})]},`section-${Q}`)};return f.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-surface border-r border-border",children:[f.jsxs("div",{className:"px-4 py-3 border-b border-border",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h2",{className:"text-text-primary text-sm font-semibold",children:"Files"}),f.jsxs("div",{className:"relative",ref:C,children:[f.jsx("button",{onClick:()=>A(J=>!J),className:"p-1 rounded hover:bg-text-primary/10 transition-colors cursor-pointer text-text-secondary hover:text-text-primary",title:"Quick actions",children:f.jsx(mv,{className:"w-4 h-4"})}),E&&f.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:[f.jsxs("button",{onClick:()=>G("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:[f.jsx(Tr,{className:"w-4 h-4 text-success"}),"Approve & Commit"]}),f.jsxs("button",{onClick:()=>G("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:[f.jsx(ta,{className:"w-4 h-4 text-info"}),"Approve, Commit & PR"]})]})]})]}),f.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[f.jsxs("span",{className:"text-text-secondary text-xs",children:[i.files.length," file",i.files.length!==1?"s":""]}),ae>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",ae]}),ee>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",ee]})]})]}),f.jsx("div",{className:"flex-1 overflow-y-auto py-1",children:$&&k?f.jsxs(f.Fragment,{children:[k.criticalFiles.length>0&&f.jsxs(f.Fragment,{children:[ne("Critical","triage-critical",k.criticalFiles),!x["triage-critical"]&&k.criticalFiles.map(fe)]}),k.notableFiles.length>0&&f.jsxs(f.Fragment,{children:[ne("Notable","triage-notable",k.notableFiles),!x["triage-notable"]&&k.notableFiles.map(fe)]}),k.mechanicalFiles.length>0&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("div",{className:"flex-1",children:ne("Mechanical","triage-mechanical",k.mechanicalFiles)}),f.jsx("button",{onClick:O,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"})]}),!x["triage-mechanical"]&&k.mechanicalFiles.map(fe)]})]}):_?f.jsxs(f.Fragment,{children:[B.length>0&&f.jsxs(f.Fragment,{children:[ne("Staged Changes","staged",B),!x.staged&&B.map(fe)]}),X.length>0&&f.jsxs(f.Fragment,{children:[ne("Changes","unstaged",X),!x.unstaged&&X.map(fe)]})]}):i.files.map(fe)})]})}function Mm(l,i){var r=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);i&&(s=s.filter((function(o){return Object.getOwnPropertyDescriptor(l,o).enumerable}))),r.push.apply(r,s)}return r}function Me(l){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Mm(Object(r),!0).forEach((function(s){ao(l,s,r[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(r)):Mm(Object(r)).forEach((function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(r,s))}))}return l}function ao(l,i,r){return(i=(function(s){var o=(function(d,h){if(typeof d!="object"||d===null)return d;var m=d[Symbol.toPrimitive];if(m!==void 0){var g=m.call(d,h);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(d)})(s,"string");return typeof o=="symbol"?o:String(o)})(i))in l?Object.defineProperty(l,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):l[i]=r,l}function na(l,i){if(l==null)return{};var r,s,o=(function(h,m){if(h==null)return{};var g,y,b={},x=Object.keys(h);for(y=0;y<x.length;y++)g=x[y],m.indexOf(g)>=0||(b[g]=h[g]);return b})(l,i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);for(s=0;s<d.length;s++)r=d[s],i.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(l,r)&&(o[r]=l[r])}return o}function rt(l,i){return Ep(l)||(function(r,s){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var d,h,m,g,y=[],b=!0,x=!1;try{if(m=(o=o.call(r)).next,s===0){if(Object(o)!==o)return;b=!1}else for(;!(b=(d=m.call(o)).done)&&(y.push(d.value),y.length!==s);b=!0);}catch(S){x=!0,h=S}finally{try{if(!b&&o.return!=null&&(g=o.return(),Object(g)!==g))return}finally{if(x)throw h}}return y}})(l,i)||ms(l,i)||wp()}function Jv(l){return Ep(l)||Np(l)||ms(l)||wp()}function vl(l){return(function(i){if(Array.isArray(i))return lo(i)})(l)||Np(l)||ms(l)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
322
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Ep(l){if(Array.isArray(l))return l}function Np(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function ms(l,i){if(l){if(typeof l=="string")return lo(l,i);var r=Object.prototype.toString.call(l).slice(8,-1);return r==="Object"&&l.constructor&&(r=l.constructor.name),r==="Map"||r==="Set"?Array.from(l):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lo(l,i):void 0}}function lo(l,i){(i==null||i>l.length)&&(i=l.length);for(var r=0,s=new Array(i);r<i;r++)s[r]=l[r];return s}function wp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
323
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ao(l,i){var r=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!r){if(Array.isArray(l)||(r=ms(l))||i){r&&(l=r);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.
|
|
324
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,m=!1;return{s:function(){r=r.call(l)},n:function(){var g=r.next();return h=g.done,g},e:function(g){m=!0,d=g},f:function(){try{h||r.return==null||r.return()}finally{if(m)throw d}}}}var ts=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rr(l,i){return l(i={exports:{}},i.exports),i.exports}var zt=Rr((function(l){/*!
|
|
325
|
-
Copyright (c) 2018 Jed Watson.
|
|
326
|
-
Licensed under the MIT License (MIT), see
|
|
327
|
-
http://jedwatson.github.io/classnames
|
|
328
|
-
*/(function(){var i={}.hasOwnProperty;function r(){for(var s=[],o=0;o<arguments.length;o++){var d=arguments[o];if(d){var h=typeof d;if(h==="string"||h==="number")s.push(d);else if(Array.isArray(d)){if(d.length){var m=r.apply(null,d);m&&s.push(m)}}else if(h==="object"){if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]")){s.push(d.toString());continue}for(var g in d)i.call(d,g)&&d[g]&&s.push(g)}}}return s.join(" ")}l.exports?(r.default=r,l.exports=r):window.classNames=r})()})),St={hunkClassName:"",lineClassName:"",gutterClassName:"",codeClassName:"",monotonous:!1,gutterType:"default",viewType:"split",widgets:{},hideGutter:!1,selectedChanges:[],generateAnchorID:function(){},generateLineClassName:function(){},renderGutter:function(l){var i=l.renderDefault;return(0,l.wrapInAnchor)(i())},codeEvents:{},gutterEvents:{}},Ap=L.createContext(St),Wv=Ap.Provider,Pv=function(){return L.useContext(Ap)},e1=Rr((function(l,i){(function(r){function s(d){var h=d.slice(11),m=null,g=null;switch(h.indexOf('"')){case-1:m=(x=h.split(" "))[0].slice(2),g=x[1].slice(2);break;case 0:var y=h.indexOf('"',2);m=h.slice(3,y);var b=h.indexOf('"',y+1);g=b<0?h.slice(y+4):h.slice(b+3,-1);break;default:var x;m=(x=h.split(" "))[0].slice(2),g=x[1].slice(3,-1)}return{oldPath:m,newPath:g}}var o={parse:function(d){for(var h,m,g,y,b,x=[],S=2,E=d.split(`
|
|
329
|
-
`),A=E.length,C=0;C<A;){var _=E[C];if(_.indexOf("diff --git")===0){h={hunks:[],oldEndingNewLine:!0,newEndingNewLine:!0,oldPath:(b=s(_)).oldPath,newPath:b.newPath},x.push(h);var B,X=null;e:for(;B=E[++C];){var k=B.indexOf(" "),$=k>-1?B.slice(0,k):$;switch($){case"diff":C--;break e;case"deleted":case"new":var q=B.slice(k+1);q.indexOf("file mode")===0&&(h[$==="new"?"newMode":"oldMode"]=q.slice(10));break;case"similarity":h.similarity=parseInt(B.split(" ")[2],10);break;case"index":var Z=B.slice(k+1).split(" "),G=Z[0].split("..");h.oldRevision=G[0],h.newRevision=G[1],Z[1]&&(h.oldMode=h.newMode=Z[1]);break;case"copy":case"rename":var O=B.slice(k+1);O.indexOf("from")===0?h.oldPath=O.slice(5):h.newPath=O.slice(3),X=$;break;case"---":var ae=B.slice(k+1),ee=E[++C].slice(4);ae==="/dev/null"?(ee=ee.slice(2),X="add"):ee==="/dev/null"?(ae=ae.slice(2),X="delete"):(X="modify",ae=ae.slice(2),ee=ee.slice(2)),ae&&(h.oldPath=ae),ee&&(h.newPath=ee),S=5;break e}}h.type=X||"modify"}else if(_.indexOf("Binary")===0)h.isBinary=!0,h.type=_.indexOf("/dev/null and")>=0?"add":_.indexOf("and /dev/null")>=0?"delete":"modify",S=2,h=null;else if(S===5)if(_.indexOf("@@")===0){var ie=/^@@\s+-([0-9]+)(,([0-9]+))?\s+\+([0-9]+)(,([0-9]+))?/.exec(_);m={content:_,oldStart:ie[1]-0,newStart:ie[4]-0,oldLines:ie[3]-0||1,newLines:ie[6]-0||1,changes:[]},h.hunks.push(m),g=m.oldStart,y=m.newStart}else{var fe=_.slice(0,1),ne={content:_.slice(1)};switch(fe){case"+":ne.type="insert",ne.isInsert=!0,ne.lineNumber=y,y++;break;case"-":ne.type="delete",ne.isDelete=!0,ne.lineNumber=g,g++;break;case" ":ne.type="normal",ne.isNormal=!0,ne.oldLineNumber=g,ne.newLineNumber=y,g++,y++;break;case"\\":var J=m.changes[m.changes.length-1];J.isDelete||(h.newEndingNewLine=!1),J.isInsert||(h.oldEndingNewLine=!1)}ne.type&&m.changes.push(ne)}C++}return x}};l.exports=o})()}));function Aa(l){return l.type==="insert"}function $t(l){return l.type==="delete"}function Na(l){return l.type==="normal"}function t1(l,i){var r=i.nearbySequences==="zip"?(function(s){var o=s.reduce((function(d,h,m){var g=rt(d,3),y=g[0],b=g[1],x=g[2];return b?Aa(h)&&x>=0?(y.splice(x+1,0,h),[y,h,x+2]):(y.push(h),[y,h,$t(h)&&$t(b)?x:m]):(y.push(h),[y,h,$t(h)?m:-1])}),[[],null,-1]);return rt(o,1)[0]})(l.changes):l.changes;return Me(Me({},l),{},{isPlain:!1,changes:r})}function n1(l){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(function(s){if(s.startsWith("diff --git"))return s;var o=s.indexOf(`
|
|
330
|
-
`),d=s.indexOf(`
|
|
331
|
-
`,o+1),h=s.slice(0,o),m=s.slice(o+1,d),g=h.split(" ").slice(1,-3).join(" "),y=m.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(d+1)].join(`
|
|
332
|
-
`)})(l.trimStart());return e1.parse(r).map((function(s){return(function(o,d){var h=o.hunks.map((function(m){return t1(m,d)}));return Me(Me({},o),{},{hunks:h})})(s,i)}))}function a1(l){return l[0]}function l1(l){return l[l.length-1]}function ro(l){return["".concat(l,"Start"),"".concat(l,"Lines")]}function Cr(l){return l==="old"?function(i){return Aa(i)?-1:Na(i)?i.oldLineNumber:i.lineNumber}:function(i){return $t(i)?-1:Na(i)?i.newLineNumber:i.lineNumber}}function Tp(l,i){return function(r,s){var o=r[l],d=o+r[i];return s>=o&&s<d}}function r1(l,i){return function(r,s,o){var d=r[l]+r[i],h=s[l];return o>=d&&o<h}}function Cp(l){var i=Cr(l),r=(function(s){var o=rt(ro(s),2),d=Tp(o[0],o[1]);return function(h,m){return h.find((function(g){return d(g,m)}))}})(l);return function(s,o){var d=r(s,o);if(d)return d.changes.find((function(h){return i(h)===o}))}}function To(l){var i=l==="old"?"new":"old",r=rt(ro(l),2),s=r[0],o=r[1],d=rt(ro(i),2),h=d[0],m=d[1],g=Cr(l),y=Cr(i),b=Tp(s,o),x=r1(s,o);return function(S,E){var A=a1(S);if(E<A[s]){var C=A[s]-E;return A[h]-C}var _=l1(S);if(_[s]+_[o]<=E){var B=E-_[s]-_[o];return _[h]+_[m]+B}for(var X=0;X<S.length;X++){var k=S[X],$=S[X+1];if(b(k,E)){var q=k.changes.findIndex((function(ie){return g(ie)===E})),Z=k.changes[q];if(Na(Z))return y(Z);var G=$t(Z)?q+1:q-1,O=k.changes[G];if(!O)return-1;var ae=Aa(Z)?"delete":"insert";return O.type===ae?y(O):-1}if(x(k,$,E)){var ee=E-k[s]-k[o];return k[h]+k[m]+ee}}throw new Error("Unexpected line position ".concat(E))}}var i1=function(){this.__data__=[],this.size=0},_p=function(l,i){return l===i||l!=l&&i!=i},ps=function(l,i){for(var r=l.length;r--;)if(_p(l[r][0],i))return r;return-1},s1=Array.prototype.splice,u1=function(l){var i=this.__data__,r=ps(i,l);return!(r<0)&&(r==i.length-1?i.pop():s1.call(i,r,1),--this.size,!0)},c1=function(l){var i=this.__data__,r=ps(i,l);return r<0?void 0:i[r][1]},o1=function(l){return ps(this.__data__,l)>-1},f1=function(l,i){var r=this.__data__,s=ps(r,l);return s<0?(++this.size,r.push([l,i])):r[s][1]=i,this};function ml(l){var i=-1,r=l==null?0:l.length;for(this.clear();++i<r;){var s=l[i];this.set(s[0],s[1])}}ml.prototype.clear=i1,ml.prototype.delete=u1,ml.prototype.get=c1,ml.prototype.has=o1,ml.prototype.set=f1;var ys=ml,d1=function(){this.__data__=new ys,this.size=0},h1=function(l){var i=this.__data__,r=i.delete(l);return this.size=i.size,r},g1=function(l){return this.__data__.get(l)},m1=function(l){return this.__data__.has(l)},Op=typeof ts=="object"&&ts&&ts.Object===Object&&ts,p1=typeof self=="object"&&self&&self.Object===Object&&self,Cn=Op||p1||Function("return this")(),rn=Cn.Symbol,jp=Object.prototype,y1=jp.hasOwnProperty,b1=jp.toString,wr=rn?rn.toStringTag:void 0,v1=function(l){var i=y1.call(l,wr),r=l[wr];try{l[wr]=void 0;var s=!0}catch{}var o=b1.call(l);return s&&(i?l[wr]=r:delete l[wr]),o},x1=Object.prototype.toString,S1=function(l){return x1.call(l)},Dm=rn?rn.toStringTag:void 0,Al=function(l){return l==null?l===void 0?"[object Undefined]":"[object Null]":Dm&&Dm in Object(l)?v1(l):S1(l)},Co=function(l){var i=typeof l;return l!=null&&(i=="object"||i=="function")},kp=function(l){if(!Co(l))return!1;var i=Al(l);return i=="[object Function]"||i=="[object GeneratorFunction]"||i=="[object AsyncFunction]"||i=="[object Proxy]"},Jc=Cn["__core-js_shared__"],zm=(function(){var l=/[^.]+$/.exec(Jc&&Jc.keys&&Jc.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),E1=function(l){return!!zm&&zm in l},N1=Function.prototype.toString,Ta=function(l){if(l!=null){try{return N1.call(l)}catch{}try{return l+""}catch{}}return""},w1=/^\[object .+?Constructor\]$/,A1=Function.prototype,T1=Object.prototype,C1=A1.toString,_1=T1.hasOwnProperty,O1=RegExp("^"+C1.call(_1).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j1=function(l){return!(!Co(l)||E1(l))&&(kp(l)?O1:w1).test(Ta(l))},k1=function(l,i){return l==null?void 0:l[i]},Ca=function(l,i){var r=k1(l,i);return j1(r)?r:void 0},_r=Ca(Cn,"Map"),Or=Ca(Object,"create"),R1=function(){this.__data__=Or?Or(null):{},this.size=0},M1=function(l){var i=this.has(l)&&delete this.__data__[l];return this.size-=i?1:0,i},D1=Object.prototype.hasOwnProperty,z1=function(l){var i=this.__data__;if(Or){var r=i[l];return r==="__lodash_hash_undefined__"?void 0:r}return D1.call(i,l)?i[l]:void 0},L1=Object.prototype.hasOwnProperty,U1=function(l){var i=this.__data__;return Or?i[l]!==void 0:L1.call(i,l)},B1=function(l,i){var r=this.__data__;return this.size+=this.has(l)?0:1,r[l]=Or&&i===void 0?"__lodash_hash_undefined__":i,this};function pl(l){var i=-1,r=l==null?0:l.length;for(this.clear();++i<r;){var s=l[i];this.set(s[0],s[1])}}pl.prototype.clear=R1,pl.prototype.delete=M1,pl.prototype.get=z1,pl.prototype.has=U1,pl.prototype.set=B1;var Lm=pl,H1=function(){this.size=0,this.__data__={hash:new Lm,map:new(_r||ys),string:new Lm}},G1=function(l){var i=typeof l;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?l!=="__proto__":l===null},bs=function(l,i){var r=l.__data__;return G1(i)?r[typeof i=="string"?"string":"hash"]:r.map},Y1=function(l){var i=bs(this,l).delete(l);return this.size-=i?1:0,i},q1=function(l){return bs(this,l).get(l)},I1=function(l){return bs(this,l).has(l)},X1=function(l,i){var r=bs(this,l),s=r.size;return r.set(l,i),this.size+=r.size==s?0:1,this};function yl(l){var i=-1,r=l==null?0:l.length;for(this.clear();++i<r;){var s=l[i];this.set(s[0],s[1])}}yl.prototype.clear=H1,yl.prototype.delete=Y1,yl.prototype.get=q1,yl.prototype.has=I1,yl.prototype.set=X1;var vs=yl,F1=function(l,i){var r=this.__data__;if(r instanceof ys){var s=r.__data__;if(!_r||s.length<199)return s.push([l,i]),this.size=++r.size,this;r=this.__data__=new vs(s)}return r.set(l,i),this.size=r.size,this};function bl(l){var i=this.__data__=new ys(l);this.size=i.size}bl.prototype.clear=d1,bl.prototype.delete=h1,bl.prototype.get=g1,bl.prototype.has=m1,bl.prototype.set=F1;var ss=bl,Z1=function(l){return this.__data__.set(l,"__lodash_hash_undefined__"),this},$1=function(l){return this.__data__.has(l)};function us(l){var i=-1,r=l==null?0:l.length;for(this.__data__=new vs;++i<r;)this.add(l[i])}us.prototype.add=us.prototype.push=Z1,us.prototype.has=$1;var V1=us,K1=function(l,i){for(var r=-1,s=l==null?0:l.length;++r<s;)if(i(l[r],r,l))return!0;return!1},Q1=function(l,i){return l.has(i)},Rp=function(l,i,r,s,o,d){var h=1&r,m=l.length,g=i.length;if(m!=g&&!(h&&g>m))return!1;var y=d.get(l),b=d.get(i);if(y&&b)return y==i&&b==l;var x=-1,S=!0,E=2&r?new V1:void 0;for(d.set(l,i),d.set(i,l);++x<m;){var A=l[x],C=i[x];if(s)var _=h?s(C,A,x,i,l,d):s(A,C,x,l,i,d);if(_!==void 0){if(_)continue;S=!1;break}if(E){if(!K1(i,(function(B,X){if(!Q1(E,X)&&(A===B||o(A,B,r,s,d)))return E.push(X)}))){S=!1;break}}else if(A!==C&&!o(A,C,r,s,d)){S=!1;break}}return d.delete(l),d.delete(i),S},Um=Cn.Uint8Array,J1=function(l){var i=-1,r=Array(l.size);return l.forEach((function(s,o){r[++i]=[o,s]})),r},W1=function(l){var i=-1,r=Array(l.size);return l.forEach((function(s){r[++i]=s})),r},Bm=rn?rn.prototype:void 0,Wc=Bm?Bm.valueOf:void 0,P1=function(l,i,r,s,o,d,h){switch(r){case"[object DataView]":if(l.byteLength!=i.byteLength||l.byteOffset!=i.byteOffset)return!1;l=l.buffer,i=i.buffer;case"[object ArrayBuffer]":return!(l.byteLength!=i.byteLength||!d(new Um(l),new Um(i)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _p(+l,+i);case"[object Error]":return l.name==i.name&&l.message==i.message;case"[object RegExp]":case"[object String]":return l==i+"";case"[object Map]":var m=J1;case"[object Set]":var g=1&s;if(m||(m=W1),l.size!=i.size&&!g)return!1;var y=h.get(l);if(y)return y==i;s|=2,h.set(l,i);var b=Rp(m(l),m(i),s,o,d,h);return h.delete(l),b;case"[object Symbol]":if(Wc)return Wc.call(l)==Wc.call(i)}return!1},Mp=function(l,i){for(var r=-1,s=i.length,o=l.length;++r<s;)l[o+r]=i[r];return l},Vt=Array.isArray,ex=function(l,i,r){var s=i(l);return Vt(l)?s:Mp(s,r(l))},tx=function(l,i){for(var r=-1,s=l==null?0:l.length,o=0,d=[];++r<s;){var h=l[r];i(h,r,l)&&(d[o++]=h)}return d},nx=function(){return[]},ax=Object.prototype.propertyIsEnumerable,Hm=Object.getOwnPropertySymbols,lx=Hm?function(l){return l==null?[]:(l=Object(l),tx(Hm(l),(function(i){return ax.call(l,i)})))}:nx,rx=function(l,i){for(var r=-1,s=Array(l);++r<l;)s[r]=i(r);return s},Nl=function(l){return l!=null&&typeof l=="object"},Gm=function(l){return Nl(l)&&Al(l)=="[object Arguments]"},Dp=Object.prototype,ix=Dp.hasOwnProperty,sx=Dp.propertyIsEnumerable,_o=Gm((function(){return arguments})())?Gm:function(l){return Nl(l)&&ix.call(l,"callee")&&!sx.call(l,"callee")},ux=function(){return!1},io=Rr((function(l,i){var r=i&&!i.nodeType&&i,s=r&&l&&!l.nodeType&&l,o=s&&s.exports===r?Cn.Buffer:void 0,d=(o?o.isBuffer:void 0)||ux;l.exports=d})),cx=/^(?:0|[1-9]\d*)$/,zp=function(l,i){var r=typeof l;return!!(i=i??9007199254740991)&&(r=="number"||r!="symbol"&&cx.test(l))&&l>-1&&l%1==0&&l<i},Oo=function(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=9007199254740991},qe={};qe["[object Float32Array]"]=qe["[object Float64Array]"]=qe["[object Int8Array]"]=qe["[object Int16Array]"]=qe["[object Int32Array]"]=qe["[object Uint8Array]"]=qe["[object Uint8ClampedArray]"]=qe["[object Uint16Array]"]=qe["[object Uint32Array]"]=!0,qe["[object Arguments]"]=qe["[object Array]"]=qe["[object ArrayBuffer]"]=qe["[object Boolean]"]=qe["[object DataView]"]=qe["[object Date]"]=qe["[object Error]"]=qe["[object Function]"]=qe["[object Map]"]=qe["[object Number]"]=qe["[object Object]"]=qe["[object RegExp]"]=qe["[object Set]"]=qe["[object String]"]=qe["[object WeakMap]"]=!1;var ox=function(l){return Nl(l)&&Oo(l.length)&&!!qe[Al(l)]},fx=function(l){return function(i){return l(i)}},Ym=Rr((function(l,i){var r=i&&!i.nodeType&&i,s=r&&l&&!l.nodeType&&l,o=s&&s.exports===r&&Op.process,d=(function(){try{var h=s&&s.require&&s.require("util").types;return h||o&&o.binding&&o.binding("util")}catch{}})();l.exports=d})),qm=Ym&&Ym.isTypedArray,Lp=qm?fx(qm):ox,dx=Object.prototype.hasOwnProperty,hx=function(l,i){var r=Vt(l),s=!r&&_o(l),o=!r&&!s&&io(l),d=!r&&!s&&!o&&Lp(l),h=r||s||o||d,m=h?rx(l.length,String):[],g=m.length;for(var y in l)!dx.call(l,y)||h&&(y=="length"||o&&(y=="offset"||y=="parent")||d&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||zp(y,g))||m.push(y);return m},gx=Object.prototype,mx=function(l){var i=l&&l.constructor;return l===(typeof i=="function"&&i.prototype||gx)},px=(function(l,i){return function(r){return l(i(r))}})(Object.keys,Object),yx=Object.prototype.hasOwnProperty,bx=function(l){if(!mx(l))return px(l);var i=[];for(var r in Object(l))yx.call(l,r)&&r!="constructor"&&i.push(r);return i},jo=function(l){return l!=null&&Oo(l.length)&&!kp(l)},ko=function(l){return jo(l)?hx(l):bx(l)},Im=function(l){return ex(l,ko,lx)},vx=Object.prototype.hasOwnProperty,xx=function(l,i,r,s,o,d){var h=1&r,m=Im(l),g=m.length;if(g!=Im(i).length&&!h)return!1;for(var y=g;y--;){var b=m[y];if(!(h?b in i:vx.call(i,b)))return!1}var x=d.get(l),S=d.get(i);if(x&&S)return x==i&&S==l;var E=!0;d.set(l,i),d.set(i,l);for(var A=h;++y<g;){var C=l[b=m[y]],_=i[b];if(s)var B=h?s(_,C,b,i,l,d):s(C,_,b,l,i,d);if(!(B===void 0?C===_||o(C,_,r,s,d):B)){E=!1;break}A||(A=b=="constructor")}if(E&&!A){var X=l.constructor,k=i.constructor;X==k||!("constructor"in l)||!("constructor"in i)||typeof X=="function"&&X instanceof X&&typeof k=="function"&&k instanceof k||(E=!1)}return d.delete(l),d.delete(i),E},so=Ca(Cn,"DataView"),uo=Ca(Cn,"Promise"),co=Ca(Cn,"Set"),oo=Ca(Cn,"WeakMap"),Sx=Ta(so),Ex=Ta(_r),Nx=Ta(uo),wx=Ta(co),Ax=Ta(oo),Sa=Al;(so&&Sa(new so(new ArrayBuffer(1)))!="[object DataView]"||_r&&Sa(new _r)!="[object Map]"||uo&&Sa(uo.resolve())!="[object Promise]"||co&&Sa(new co)!="[object Set]"||oo&&Sa(new oo)!="[object WeakMap]")&&(Sa=function(l){var i=Al(l),r=i=="[object Object]"?l.constructor:void 0,s=r?Ta(r):"";if(s)switch(s){case Sx:return"[object DataView]";case Ex:return"[object Map]";case Nx:return"[object Promise]";case wx:return"[object Set]";case Ax:return"[object WeakMap]"}return i});var Xm=Sa,ns="[object Object]",Fm=Object.prototype.hasOwnProperty,Tx=function(l,i,r,s,o,d){var h=Vt(l),m=Vt(i),g=h?"[object Array]":Xm(l),y=m?"[object Array]":Xm(i),b=(g=g=="[object Arguments]"?ns:g)==ns,x=(y=y=="[object Arguments]"?ns:y)==ns,S=g==y;if(S&&io(l)){if(!io(i))return!1;h=!0,b=!1}if(S&&!b)return d||(d=new ss),h||Lp(l)?Rp(l,i,r,s,o,d):P1(l,i,g,r,s,o,d);if(!(1&r)){var E=b&&Fm.call(l,"__wrapped__"),A=x&&Fm.call(i,"__wrapped__");if(E||A){var C=E?l.value():l,_=A?i.value():i;return d||(d=new ss),o(C,_,r,s,d)}}return!!S&&(d||(d=new ss),xx(l,i,r,s,o,d))},xs=function l(i,r,s,o,d){return i===r||(i==null||r==null||!Nl(i)&&!Nl(r)?i!=i&&r!=r:Tx(i,r,s,o,l,d))},Cx=function(l,i,r,s){var o=r.length,d=o;if(l==null)return!d;for(l=Object(l);o--;){var h=r[o];if(h[2]?h[1]!==l[h[0]]:!(h[0]in l))return!1}for(;++o<d;){var m=(h=r[o])[0],g=l[m],y=h[1];if(h[2]){if(g===void 0&&!(m in l))return!1}else{var b=new ss,x;if(!(x===void 0?xs(y,g,3,s,b):x))return!1}}return!0},Up=function(l){return l==l&&!Co(l)},_x=function(l){for(var i=ko(l),r=i.length;r--;){var s=i[r],o=l[s];i[r]=[s,o,Up(o)]}return i},Bp=function(l,i){return function(r){return r!=null&&r[l]===i&&(i!==void 0||l in Object(r))}},Ox=function(l){var i=_x(l);return i.length==1&&i[0][2]?Bp(i[0][0],i[0][1]):function(r){return r===l||Cx(r,l,i)}},Ro=function(l){return typeof l=="symbol"||Nl(l)&&Al(l)=="[object Symbol]"},jx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kx=/^\w*$/,Mo=function(l,i){if(Vt(l))return!1;var r=typeof l;return!(r!="number"&&r!="symbol"&&r!="boolean"&&l!=null&&!Ro(l))||kx.test(l)||!jx.test(l)||i!=null&&l in Object(i)};function Do(l,i){if(typeof l!="function"||i!=null&&typeof i!="function")throw new TypeError("Expected a function");var r=function(){var s=arguments,o=i?i.apply(this,s):s[0],d=r.cache;if(d.has(o))return d.get(o);var h=l.apply(this,s);return r.cache=d.set(o,h)||d,h};return r.cache=new(Do.Cache||vs),r}Do.Cache=vs;var Rx=Do,Mx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dx=/\\(\\)?/g,zx=(function(l){var i=Rx(l,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i})((function(l){var i=[];return l.charCodeAt(0)===46&&i.push(""),l.replace(Mx,(function(r,s,o,d){i.push(o?d.replace(Dx,"$1"):s||r)})),i})),Hp=function(l,i){for(var r=-1,s=l==null?0:l.length,o=Array(s);++r<s;)o[r]=i(l[r],r,l);return o},Zm=rn?rn.prototype:void 0,$m=Zm?Zm.toString:void 0,Lx=function l(i){if(typeof i=="string")return i;if(Vt(i))return Hp(i,l)+"";if(Ro(i))return $m?$m.call(i):"";var r=i+"";return r=="0"&&1/i==-1/0?"-0":r},Ux=function(l){return l==null?"":Lx(l)},Gp=function(l,i){return Vt(l)?l:Mo(l,i)?[l]:zx(Ux(l))},Ss=function(l){if(typeof l=="string"||Ro(l))return l;var i=l+"";return i=="0"&&1/l==-1/0?"-0":i},Yp=function(l,i){for(var r=0,s=(i=Gp(i,l)).length;l!=null&&r<s;)l=l[Ss(i[r++])];return r&&r==s?l:void 0},Bx=function(l,i,r){var s=l==null?void 0:Yp(l,i);return s===void 0?r:s},Hx=function(l,i){return l!=null&&i in Object(l)},Gx=function(l,i,r){for(var s=-1,o=(i=Gp(i,l)).length,d=!1;++s<o;){var h=Ss(i[s]);if(!(d=l!=null&&r(l,h)))break;l=l[h]}return d||++s!=o?d:!!(o=l==null?0:l.length)&&Oo(o)&&zp(h,o)&&(Vt(l)||_o(l))},Yx=function(l,i){return l!=null&&Gx(l,i,Hx)},qx=function(l,i){return Mo(l)&&Up(i)?Bp(Ss(l),i):function(r){var s=Bx(r,l);return s===void 0&&s===i?Yx(r,l):xs(i,s,3)}},Ix=function(l){return l},Xx=function(l){return function(i){return i==null?void 0:i[l]}},Fx=function(l){return function(i){return Yp(i,l)}},Zx=function(l){return Mo(l)?Xx(Ss(l)):Fx(l)},zo=function(l){return typeof l=="function"?l:l==null?Ix:typeof l=="object"?Vt(l)?qx(l[0],l[1]):Ox(l):Zx(l)};function Lt(l){if(!l)throw new Error("change is not provided");if(Na(l))return"N".concat(l.oldLineNumber);var i=Aa(l)?"I":"D";return"".concat(i).concat(l.lineNumber)}To("old");var Es=Cr("old"),Ns=Cr("new");Cp("old");Cp("new");To("new");To("old");var Vm=(function(){try{var l=Ca(Object,"defineProperty");return l({},"",{}),l}catch{}})(),qp=function(l,i,r){i=="__proto__"&&Vm?Vm(l,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):l[i]=r},$x=function(l){return function(i,r,s){for(var o=-1,d=Object(i),h=s(i),m=h.length;m--;){var g=h[++o];if(r(d[g],g,d)===!1)break}return i}},Vx=$x(),Ip=function(l,i){return l&&Vx(l,i,ko)},Xp=function(l,i){var r={};return i=zo(i),Ip(l,(function(s,o,d){qp(r,o,i(s,o,d))})),r},Kx=["changeKey","text","tokens","renderToken"],Km=function l(i,r){var s=i.type,o=i.value,d=i.markType,h=i.properties,m=i.className,g=i.children,y=function(x){return f.jsx("span",{className:x,children:o||g&&g.map(l)},r)};switch(s){case"text":return o;case"mark":return y("diff-code-mark diff-code-mark-".concat(d));case"edit":return y("diff-code-edit");default:var b=h&&h.className;return y(zt(m||b))}};function Qx(l){if(!Array.isArray(l))return!0;if(l.length>1)return!1;if(l.length===1){var i=rt(l,1)[0];return i.type==="text"&&!i.value}return!0}function Jx(l){var i=l.changeKey,r=l.text,s=l.tokens,o=l.renderToken,d=na(l,Kx),h=o?function(m,g){return o(m,Km,g)}:Km;return f.jsx("td",Me(Me({},d),{},{"data-change-key":i,children:s?Qx(s)?" ":s.map(h):r||" "}))}var Fp=L.memo(Jx);function Zp(l,i){return function(){var r=i==="old"?Es(l):Ns(l);return r===-1?void 0:r}}function $p(l,i){return function(r){return l&&r?f.jsx("a",{href:i?"#"+i:void 0,children:r}):r}}function fs(l,i){return i?function(r){l(),i(r)}:l}function Qm(l,i,r,s){return L.useMemo((function(){var o=Xp(l,(function(d){return function(h){return d&&d(i,h)}}));return o.onMouseEnter=fs(r,o.onMouseEnter),o.onMouseLeave=fs(s,o.onMouseLeave),o}),[l,r,s,i])}function Jm(l,i,r,s,o,d,h,m,g){var y={change:i,side:s,inHoverState:m,renderDefault:Zp(i,s),wrapInAnchor:$p(o,d)};return f.jsx("td",Me(Me({className:l},h),{},{"data-change-key":r,children:g(y)}))}function Wx(l){var i,r,s,o=l.change,d=l.selected,h=l.tokens,m=l.className,g=l.generateLineClassName,y=l.gutterClassName,b=l.codeClassName,x=l.gutterEvents,S=l.codeEvents,E=l.hideGutter,A=l.gutterAnchor,C=l.generateAnchorID,_=l.renderToken,B=l.renderGutter,X=o.type,k=o.content,$=Lt(o),q=(i=rt(L.useState(!1),2),r=i[0],s=i[1],[r,L.useCallback((function(){return s(!0)}),[]),L.useCallback((function(){return s(!1)}),[])]),Z=rt(q,3),G=Z[0],O=Z[1],ae=Z[2],ee=L.useMemo((function(){return{change:o}}),[o]),ie=Qm(x,ee,O,ae),fe=Qm(S,ee,O,ae),ne=C(o),J=g({changes:[o],defaultGenerate:function(){return m}}),Q=zt("diff-gutter","diff-gutter-".concat(X),y,{"diff-gutter-selected":d}),R=zt("diff-code","diff-code-".concat(X),b,{"diff-code-selected":d});return f.jsxs("tr",{id:ne,className:zt("diff-line",J),children:[!E&&Jm(Q,o,$,"old",A,ne,ie,G,B),!E&&Jm(Q,o,$,"new",A,ne,ie,G,B),f.jsx(Fp,Me({className:R,changeKey:$,text:k,tokens:h,renderToken:_},fe))]})}var Px=L.memo(Wx);function eS(l){var i=l.hideGutter,r=l.element;return f.jsx("tr",{className:"diff-widget",children:f.jsx("td",{colSpan:i?1:3,className:"diff-widget-content",children:r})})}var tS=["hideGutter","selectedChanges","tokens","lineClassName"],nS=["hunk","widgets","className"];function aS(l){var i=l.hunk,r=l.widgets,s=l.className,o=na(l,nS),d=(function(h,m){return h.reduce((function(g,y){var b=Lt(y);g.push(["change",b,y]);var x=m[b];return x&&g.push(["widget",b,x]),g}),[])})(i.changes,r);return f.jsx("tbody",{className:zt("diff-hunk",s),children:d.map((function(h){return(function(m,g){var y=rt(m,3),b=y[0],x=y[1],S=y[2],E=g.hideGutter,A=g.selectedChanges,C=g.tokens,_=g.lineClassName,B=na(g,tS);if(b==="change"){var X=$t(S)?"old":"new",k=$t(S)?Es(S):Ns(S),$=C?C[X][k-1]:null;return f.jsx(Px,Me({className:_,change:S,hideGutter:E,selected:A.includes(x),tokens:$},B),"change".concat(x))}return b==="widget"?f.jsx(eS,{hideGutter:E,element:S},"widget".concat(x)):null})(h,o)}))})}var Vp=0;function as(l,i,r,s){var o=L.useCallback((function(){return i(l)}),[l,i]),d=L.useCallback((function(){return i("")}),[i]);return L.useMemo((function(){var h=Xp(s,(function(m){return function(g){return m&&m({side:l,change:r},g)}}));return h.onMouseEnter=fs(o,h.onMouseEnter),h.onMouseLeave=fs(d,h.onMouseLeave),h}),[r,s,o,l,d])}function Pc(l){var i=l.change,r=l.side,s=l.selected,o=l.tokens,d=l.gutterClassName,h=l.codeClassName,m=l.gutterEvents,g=l.codeEvents,y=l.anchorID,b=l.gutterAnchor,x=l.gutterAnchorTarget,S=l.hideGutter,E=l.hover,A=l.renderToken,C=l.renderGutter;if(!i){var _=zt("diff-gutter","diff-gutter-omit",d),B=zt("diff-code","diff-code-omit",h);return[!S&&f.jsx("td",{className:_},"gutter"),f.jsx("td",{className:B},"code")]}var X=i.type,k=i.content,$=Lt(i),q=r===Vp?"old":"new",Z=Me({id:y||void 0,className:zt("diff-gutter","diff-gutter-".concat(X),ao({"diff-gutter-selected":s},"diff-line-hover-"+q,E),d),children:C({change:i,side:q,inHoverState:E,renderDefault:Zp(i,q),wrapInAnchor:$p(b,x)})},m),G=zt("diff-code","diff-code-".concat(X),ao({"diff-code-selected":s},"diff-line-hover-"+q,E),h);return[!S&&f.jsx("td",Me(Me({},Z),{},{"data-change-key":$}),"gutter"),f.jsx(Fp,Me({className:G,changeKey:$,text:k,tokens:o,renderToken:A},g),"code")]}function lS(l){var i=l.className,r=l.oldChange,s=l.newChange,o=l.oldSelected,d=l.newSelected,h=l.oldTokens,m=l.newTokens,g=l.monotonous,y=l.gutterClassName,b=l.codeClassName,x=l.gutterEvents,S=l.codeEvents,E=l.hideGutter,A=l.generateAnchorID,C=l.generateLineClassName,_=l.gutterAnchor,B=l.renderToken,X=l.renderGutter,k=rt(L.useState(""),2),$=k[0],q=k[1],Z=as("old",q,r,x),G=as("new",q,s,x),O=as("old",q,r,S),ae=as("new",q,s,S),ee=r&&A(r),ie=s&&A(s),fe=C({changes:[r,s],defaultGenerate:function(){return i}}),ne={monotonous:g,hideGutter:E,gutterClassName:y,codeClassName:b,gutterEvents:x,codeEvents:S,renderToken:B,renderGutter:X},J=Me(Me({},ne),{},{change:r,side:Vp,selected:o,tokens:h,gutterEvents:Z,codeEvents:O,anchorID:ee,gutterAnchor:_,gutterAnchorTarget:ee,hover:$==="old"}),Q=Me(Me({},ne),{},{change:s,side:1,selected:d,tokens:m,gutterEvents:G,codeEvents:ae,anchorID:r===s?null:ie,gutterAnchor:_,gutterAnchorTarget:r===s?ee:ie,hover:$==="new"});if(g)return f.jsx("tr",{className:zt("diff-line",fe),children:Pc(r?J:Q)});var R=(function(z,le){return z&&!le?"diff-line-old-only":!z&&le?"diff-line-new-only":z===le?"diff-line-normal":"diff-line-compare"})(r,s);return f.jsxs("tr",{className:zt("diff-line",R,fe),children:[Pc(J),Pc(Q)]})}var rS=L.memo(lS);function iS(l){var i=l.hideGutter,r=l.oldElement,s=l.newElement;return l.monotonous?f.jsx("tr",{className:"diff-widget",children:f.jsx("td",{colSpan:i?1:2,className:"diff-widget-content",children:r||s})}):r===s?f.jsx("tr",{className:"diff-widget",children:f.jsx("td",{colSpan:i?2:4,className:"diff-widget-content",children:r})}):f.jsxs("tr",{className:"diff-widget",children:[f.jsx("td",{colSpan:i?1:2,className:"diff-widget-content",children:r}),f.jsx("td",{colSpan:i?1:2,className:"diff-widget-content",children:s})]})}var sS=["selectedChanges","monotonous","hideGutter","tokens","lineClassName"],uS=["hunk","widgets","className"];function ls(l,i){return(l?Lt(l):"00")+(i?Lt(i):"00")}function cS(l){var i=l.hunk,r=l.widgets,s=l.className,o=na(l,uS),d=(function(h,m){for(var g=function(B){if(!B)return null;var X=Lt(B);return m[X]||null},y=[],b=0;b<h.length;b++){var x=h[b];if(Na(x))y.push(["change",ls(x,x),x,x]);else if($t(x)){var S=h[b+1];S&&Aa(S)?(b+=1,y.push(["change",ls(x,S),x,S])):y.push(["change",ls(x,null),x,null])}else y.push(["change",ls(null,x),null,x]);var E=y[y.length-1],A=g(E[2]),C=g(E[3]);if(A||C){var _=E[1];y.push(["widget",_,A,C])}}return y})(i.changes,r);return f.jsx("tbody",{className:zt("diff-hunk",s),children:d.map((function(h){return(function(m,g){var y=rt(m,4),b=y[0],x=y[1],S=y[2],E=y[3],A=g.selectedChanges,C=g.monotonous,_=g.hideGutter,B=g.tokens,X=g.lineClassName,k=na(g,sS);if(b==="change"){var $=!!S&&A.includes(Lt(S)),q=!!E&&A.includes(Lt(E)),Z=S&&B?B.old[Es(S)-1]:null,G=E&&B?B.new[Ns(E)-1]:null;return f.jsx(rS,Me({className:X,oldChange:S,newChange:E,monotonous:C,hideGutter:_,oldSelected:$,newSelected:q,oldTokens:Z,newTokens:G},k),"change".concat(x))}return b==="widget"?f.jsx(iS,{monotonous:C,hideGutter:_,oldElement:S,newElement:E},"widget".concat(x)):null})(h,o)}))})}var oS=["gutterType","hunkClassName"];function Kp(l){var i=l.hunk,r=Pv(),s=r.gutterType,o=r.hunkClassName,d=na(r,oS),h=s==="none",m=s==="anchor",g=d.viewType==="unified"?aS:cS;return f.jsx(g,Me(Me({},d),{},{hunk:i,hideGutter:h,gutterAnchor:m,className:o}))}function fS(){}function Wm(l,i){var r=i?"auto":"none";l instanceof HTMLElement&&l.style.userSelect!==r&&(l.style.userSelect=r)}function dS(l){return l.map((function(i){return f.jsx(Kp,{hunk:i},(function(r){return"-".concat(r.oldStart,",").concat(r.oldLines," +").concat(r.newStart,",").concat(r.newLines)})(i))}))}function hS(l){var i=l.diffType,r=l.hunks,s=l.optimizeSelection,o=l.className,d=l.hunkClassName,h=d===void 0?St.hunkClassName:d,m=l.lineClassName,g=m===void 0?St.lineClassName:m,y=l.generateLineClassName,b=y===void 0?St.generateLineClassName:y,x=l.gutterClassName,S=x===void 0?St.gutterClassName:x,E=l.codeClassName,A=E===void 0?St.codeClassName:E,C=l.gutterType,_=C===void 0?St.gutterType:C,B=l.viewType,X=B===void 0?St.viewType:B,k=l.gutterEvents,$=k===void 0?St.gutterEvents:k,q=l.codeEvents,Z=q===void 0?St.codeEvents:q,G=l.generateAnchorID,O=G===void 0?St.generateAnchorID:G,ae=l.selectedChanges,ee=ae===void 0?St.selectedChanges:ae,ie=l.widgets,fe=ie===void 0?St.widgets:ie,ne=l.renderGutter,J=ne===void 0?St.renderGutter:ne,Q=l.tokens,R=l.renderToken,z=l.children,le=z===void 0?dS:z,se=L.useRef(null),ue=L.useCallback((function(ce){var Ee=ce.target;if(ce.button===0){var pe=(function(Et,Ol){for(var Jt=Et;Jt&&Jt!==document.documentElement&&!Jt.classList.contains(Ol);)Jt=Jt.parentElement;return Jt===document.documentElement?null:Jt})(Ee,"diff-code");if(pe&&pe.parentElement){var ye=window.getSelection();ye&&ye.removeAllRanges();var Be=vl(pe.parentElement.children).indexOf(pe);if(Be===1||Be===3){var Qt,tt=Ao(se.current?se.current.querySelectorAll(".diff-line"):[]);try{for(tt.s();!(Qt=tt.n()).done;){var ft=Qt.value.children;Wm(ft[1],Be===1),Wm(ft[3],Be===3)}}catch(Et){tt.e(Et)}finally{tt.f()}}}}}),[]),N=_==="none",I=i==="add"||i==="delete",W=X==="split"&&!I&&s?ue:fS,H=L.useMemo((function(){return f.jsxs("colgroup",X==="unified"?{children:[!N&&f.jsx("col",{className:"diff-gutter-col"}),!N&&f.jsx("col",{className:"diff-gutter-col"}),f.jsx("col",{})]}:I?{children:[!N&&f.jsx("col",{className:"diff-gutter-col"}),f.jsx("col",{})]}:{children:[!N&&f.jsx("col",{className:"diff-gutter-col"}),f.jsx("col",{}),!N&&f.jsx("col",{className:"diff-gutter-col"}),f.jsx("col",{})]})}),[X,I,N]),te=L.useMemo((function(){return{hunkClassName:h,lineClassName:g,generateLineClassName:b,gutterClassName:S,codeClassName:A,monotonous:I,hideGutter:N,viewType:X,gutterType:_,codeEvents:Z,gutterEvents:$,generateAnchorID:O,selectedChanges:ee,widgets:fe,renderGutter:J,tokens:Q,renderToken:R}}),[A,Z,O,S,$,_,N,h,g,b,I,J,R,ee,Q,X,fe]);return f.jsx(Wv,{value:te,children:f.jsxs("table",{ref:se,className:zt("diff","diff-".concat(X),o),onMouseDown:W,children:[H,le(r)]})})}var gS=L.memo(hS),mS=function(l,i,r,s){for(var o=-1,d=l==null?0:l.length;++o<d;){var h=l[o];i(s,h,r(h),l)}return s},pS=function(l,i){return function(r,s){if(r==null)return r;if(!jo(r))return l(r,s);for(var o=r.length,d=-1,h=Object(r);++d<o&&s(h[d],d,h)!==!1;);return r}},Qp=pS(Ip),yS=function(l,i,r,s){return Qp(l,(function(o,d,h){i(s,o,r(o),h)})),s},bS=function(l,i){return function(r,s){var o=Vt(r)?mS:yS,d=i?i():{};return o(r,l,zo(s),d)}},vS=bS((function(l,i,r){qp(l,r,i)})),Pm=rn?rn.isConcatSpreadable:void 0,xS=function(l){return Vt(l)||_o(l)||!!(Pm&&l&&l[Pm])},SS=function(i,r,s,o,d){var h=-1,m=i.length;for(s||(s=xS),d||(d=[]);++h<m;){var g=i[h];s(g)?Mp(d,g):d[d.length]=g}return d},ES=function(l,i){var r=-1,s=jo(l)?Array(l.length):[];return Qp(l,(function(o,d,h){s[++r]=i(o,d,h)})),s},NS=function(l,i){return(Vt(l)?Hp:ES)(l,zo(i))},wS=function(l,i){return SS(NS(l,i))};function AS(l,i){var r=i.newStart,s=i.changes.reduce((function(o,d){var h=rt(o,2),m=h[0],g=h[1];return $t(d)?(m.splice(g,1),[m,g]):(Aa(d)&&m.splice(g,0,d.content),[m,g+1])}),[l,r-1]);return rt(s,1)[0]}function ep(l,i,r){if(!l.length)return[];var s=i==="old"?Es:Ns,o=vS(l,s),d=s(l[l.length-1]);return Array.from({length:d}).map((function(h,m){return r(o[m+1])}))}function TS(l){var i=(function(h){return wS(h,(function(m){return m.changes})).reduce((function(m,g){var y=rt(m,2),b=y[0],x=y[1];return Na(g)?(b.push(g),x.push(g)):$t(g)?b.push(g):x.push(g),[b,x]}),[[],[]])})(l),r=rt(i,2),s=r[0],o=r[1],d=function(h){return h?h.content:""};return[ep(s,"old",d).join(`
|
|
333
|
-
`),ep(o,"new",d).join(`
|
|
334
|
-
`)]}function rs(l){return{type:"root",children:l}}function CS(l,i){if(i.oldSource){var r=(function(g,y){return y.reduce(AS,g.split(`
|
|
335
|
-
`)).join(`
|
|
336
|
-
`)})(i.oldSource,l),s=i.highlight?function(g){return i.refractor.highlight(g,i.language)}:function(g){return[{type:"text",value:g}]};return[rs(s(i.oldSource)),rs(s(r))]}var o=rt(TS(l),2),d=o[0],h=o[1],m=i.highlight?function(g){return rs(i.refractor.highlight(g,i.language))}:function(g){return rs([{type:"text",value:g}])};return[m(d),m(h)]}function Jp(l){return l.map((function(i){return Me({},i)}))}function _S(l,i){return[].concat(vl(Jp(l.slice(0,-1))),[i])}function OS(l){var i=l[l.length-1];if(i.type==="text")return i;throw new Error("Invalid token path with leaf of type ".concat(i.type))}var jS=["children"];function Wp(l){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(l.children){var s=l.children,o=na(l,jS);r.push(o);var d,h=Ao(s);try{for(h.s();!(d=h.n()).done;)Wp(d.value,i,r)}catch(m){h.e(m)}finally{h.f()}r.pop()}else i.push(Jp([].concat(vl(r.slice(1)),[l])));return i}function kS(l){return l.reduce((function(i,r){var s=i[i.length-1],o=(function(g){var y=OS(g);return y.value.includes(`
|
|
337
|
-
`)?y.value.split(`
|
|
338
|
-
`).map((function(b){return _S(g,Me(Me({},y),{},{value:b}))})):[g]})(r),d=Jv(o),h=d[0],m=d.slice(1);return[].concat(vl(i.slice(0,-1)),[[].concat(vl(s),[h])],vl(m.map((function(g){return[g]}))))}),[[]])}function tp(l){return kS(Wp(l))}var RS=function(l,i,r){var s=(r=typeof r=="function"?r:void 0)?r(l,i):void 0;return s===void 0?xs(l,i,void 0,r):!!s},MS=function(l,i){return xs(l,i)},DS=function(l){var i=l==null?0:l.length;return i?l[i-1]:void 0};function zS(l,i){if(!l.children)throw new Error("parent node missing children property");var r,s,o=DS(l.children);return o&&(s=i,(r=o).type===s.type&&(r.type==="text"||r.children&&s.children&&RS(r,s,(function(d,h,m){return m==="chlidren"||MS(d,h)}))))?l.children[l.children.length-1]=(function(d,h){return"value"in d&&"value"in h?Me(Me({},d),{},{value:"".concat(d.value).concat(h.value)}):d})(o,i):l.children.push(i),l.children[l.children.length-1]}function np(l){var i,r={type:"root",children:[]},s=Ao(l);try{var o=function(){var d=i.value;d.reduce((function(h,m,g){return zS(h,g===d.length-1?Me({},m):Me(Me({},m),{},{children:[]}))}),r)};for(s.s();!(i=s.n()).done;)o()}catch(d){s.e(d)}finally{s.f()}return r}var Lo=Rr((function(l){var i=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};i.Diff=function(r,s){return[r,s]},i.prototype.diff_main=function(r,s,o,d){d===void 0&&(d=this.Diff_Timeout<=0?Number.MAX_VALUE:new Date().getTime()+1e3*this.Diff_Timeout);var h=d;if(r==null||s==null)throw new Error("Null input. (diff_main)");if(r==s)return r?[new i.Diff(0,r)]:[];o===void 0&&(o=!0);var m=o,g=this.diff_commonPrefix(r,s),y=r.substring(0,g);r=r.substring(g),s=s.substring(g),g=this.diff_commonSuffix(r,s);var b=r.substring(r.length-g);r=r.substring(0,r.length-g),s=s.substring(0,s.length-g);var x=this.diff_compute_(r,s,m,h);return y&&x.unshift(new i.Diff(0,y)),b&&x.push(new i.Diff(0,b)),this.diff_cleanupMerge(x),x},i.prototype.diff_compute_=function(r,s,o,d){var h;if(!r)return[new i.Diff(1,s)];if(!s)return[new i.Diff(-1,r)];var m=r.length>s.length?r:s,g=r.length>s.length?s:r,y=m.indexOf(g);if(y!=-1)return h=[new i.Diff(1,m.substring(0,y)),new i.Diff(0,g),new i.Diff(1,m.substring(y+g.length))],r.length>s.length&&(h[0][0]=h[2][0]=-1),h;if(g.length==1)return[new i.Diff(-1,r),new i.Diff(1,s)];var b=this.diff_halfMatch_(r,s);if(b){var x=b[0],S=b[1],E=b[2],A=b[3],C=b[4],_=this.diff_main(x,E,o,d),B=this.diff_main(S,A,o,d);return _.concat([new i.Diff(0,C)],B)}return o&&r.length>100&&s.length>100?this.diff_lineMode_(r,s,d):this.diff_bisect_(r,s,d)},i.prototype.diff_lineMode_=function(r,s,o){var d=this.diff_linesToChars_(r,s);r=d.chars1,s=d.chars2;var h=d.lineArray,m=this.diff_main(r,s,!1,o);this.diff_charsToLines_(m,h),this.diff_cleanupSemantic(m),m.push(new i.Diff(0,""));for(var g=0,y=0,b=0,x="",S="";g<m.length;){switch(m[g][0]){case 1:b++,S+=m[g][1];break;case-1:y++,x+=m[g][1];break;case 0:if(y>=1&&b>=1){m.splice(g-y-b,y+b),g=g-y-b;for(var E=this.diff_main(x,S,!1,o),A=E.length-1;A>=0;A--)m.splice(g,0,E[A]);g+=E.length}b=0,y=0,x="",S=""}g++}return m.pop(),m},i.prototype.diff_bisect_=function(r,s,o){for(var d=r.length,h=s.length,m=Math.ceil((d+h)/2),g=m,y=2*m,b=new Array(y),x=new Array(y),S=0;S<y;S++)b[S]=-1,x[S]=-1;b[g+1]=0,x[g+1]=0;for(var E=d-h,A=E%2!=0,C=0,_=0,B=0,X=0,k=0;k<m&&!(new Date().getTime()>o);k++){for(var $=-k+C;$<=k-_;$+=2){for(var q=g+$,Z=(ie=$==-k||$!=k&&b[q-1]<b[q+1]?b[q+1]:b[q-1]+1)-$;ie<d&&Z<h&&r.charAt(ie)==s.charAt(Z);)ie++,Z++;if(b[q]=ie,ie>d)_+=2;else if(Z>h)C+=2;else if(A&&(ae=g+E-$)>=0&&ae<y&&x[ae]!=-1&&ie>=(O=d-x[ae]))return this.diff_bisectSplit_(r,s,ie,Z,o)}for(var G=-k+B;G<=k-X;G+=2){for(var O,ae=g+G,ee=(O=G==-k||G!=k&&x[ae-1]<x[ae+1]?x[ae+1]:x[ae-1]+1)-G;O<d&&ee<h&&r.charAt(d-O-1)==s.charAt(h-ee-1);)O++,ee++;if(x[ae]=O,O>d)X+=2;else if(ee>h)B+=2;else if(!A&&(q=g+E-G)>=0&&q<y&&b[q]!=-1){var ie;if(Z=g+(ie=b[q])-q,ie>=(O=d-O))return this.diff_bisectSplit_(r,s,ie,Z,o)}}}return[new i.Diff(-1,r),new i.Diff(1,s)]},i.prototype.diff_bisectSplit_=function(r,s,o,d,h){var m=r.substring(0,o),g=s.substring(0,d),y=r.substring(o),b=s.substring(d),x=this.diff_main(m,g,!1,h),S=this.diff_main(y,b,!1,h);return x.concat(S)},i.prototype.diff_linesToChars_=function(r,s){var o=[],d={};function h(y){for(var b="",x=0,S=-1,E=o.length;S<y.length-1;){(S=y.indexOf(`
|
|
339
|
-
`,x))==-1&&(S=y.length-1);var A=y.substring(x,S+1);(d.hasOwnProperty?d.hasOwnProperty(A):d[A]!==void 0)?b+=String.fromCharCode(d[A]):(E==m&&(A=y.substring(x),S=y.length),b+=String.fromCharCode(E),d[A]=E,o[E++]=A),x=S+1}return b}o[0]="";var m=4e4,g=h(r);return m=65535,{chars1:g,chars2:h(s),lineArray:o}},i.prototype.diff_charsToLines_=function(r,s){for(var o=0;o<r.length;o++){for(var d=r[o][1],h=[],m=0;m<d.length;m++)h[m]=s[d.charCodeAt(m)];r[o][1]=h.join("")}},i.prototype.diff_commonPrefix=function(r,s){if(!r||!s||r.charAt(0)!=s.charAt(0))return 0;for(var o=0,d=Math.min(r.length,s.length),h=d,m=0;o<h;)r.substring(m,h)==s.substring(m,h)?m=o=h:d=h,h=Math.floor((d-o)/2+o);return h},i.prototype.diff_commonSuffix=function(r,s){if(!r||!s||r.charAt(r.length-1)!=s.charAt(s.length-1))return 0;for(var o=0,d=Math.min(r.length,s.length),h=d,m=0;o<h;)r.substring(r.length-h,r.length-m)==s.substring(s.length-h,s.length-m)?m=o=h:d=h,h=Math.floor((d-o)/2+o);return h},i.prototype.diff_commonOverlap_=function(r,s){var o=r.length,d=s.length;if(o==0||d==0)return 0;o>d?r=r.substring(o-d):o<d&&(s=s.substring(0,o));var h=Math.min(o,d);if(r==s)return h;for(var m=0,g=1;;){var y=r.substring(h-g),b=s.indexOf(y);if(b==-1)return m;g+=b,b!=0&&r.substring(h-g)!=s.substring(0,g)||(m=g,g++)}},i.prototype.diff_halfMatch_=function(r,s){if(this.Diff_Timeout<=0)return null;var o=r.length>s.length?r:s,d=r.length>s.length?s:r;if(o.length<4||2*d.length<o.length)return null;var h=this;function m(C,_,B){for(var X,k,$,q,Z=C.substring(B,B+Math.floor(C.length/4)),G=-1,O="";(G=_.indexOf(Z,G+1))!=-1;){var ae=h.diff_commonPrefix(C.substring(B),_.substring(G)),ee=h.diff_commonSuffix(C.substring(0,B),_.substring(0,G));O.length<ee+ae&&(O=_.substring(G-ee,G)+_.substring(G,G+ae),X=C.substring(0,B-ee),k=C.substring(B+ae),$=_.substring(0,G-ee),q=_.substring(G+ae))}return 2*O.length>=C.length?[X,k,$,q,O]:null}var g,y,b,x,S,E=m(o,d,Math.ceil(o.length/4)),A=m(o,d,Math.ceil(o.length/2));return E||A?(g=A?E&&E[4].length>A[4].length?E:A:E,r.length>s.length?(y=g[0],b=g[1],x=g[2],S=g[3]):(x=g[0],S=g[1],y=g[2],b=g[3]),[y,b,x,S,g[4]]):null},i.prototype.diff_cleanupSemantic=function(r){for(var s=!1,o=[],d=0,h=null,m=0,g=0,y=0,b=0,x=0;m<r.length;)r[m][0]==0?(o[d++]=m,g=b,y=x,b=0,x=0,h=r[m][1]):(r[m][0]==1?b+=r[m][1].length:x+=r[m][1].length,h&&h.length<=Math.max(g,y)&&h.length<=Math.max(b,x)&&(r.splice(o[d-1],0,new i.Diff(-1,h)),r[o[d-1]+1][0]=1,d--,m=--d>0?o[d-1]:-1,g=0,y=0,b=0,x=0,h=null,s=!0)),m++;for(s&&this.diff_cleanupMerge(r),this.diff_cleanupSemanticLossless(r),m=1;m<r.length;){if(r[m-1][0]==-1&&r[m][0]==1){var S=r[m-1][1],E=r[m][1],A=this.diff_commonOverlap_(S,E),C=this.diff_commonOverlap_(E,S);A>=C?(A>=S.length/2||A>=E.length/2)&&(r.splice(m,0,new i.Diff(0,E.substring(0,A))),r[m-1][1]=S.substring(0,S.length-A),r[m+1][1]=E.substring(A),m++):(C>=S.length/2||C>=E.length/2)&&(r.splice(m,0,new i.Diff(0,S.substring(0,C))),r[m-1][0]=1,r[m-1][1]=E.substring(0,E.length-C),r[m+1][0]=-1,r[m+1][1]=S.substring(C),m++),m++}m++}},i.prototype.diff_cleanupSemanticLossless=function(r){function s(C,_){if(!C||!_)return 6;var B=C.charAt(C.length-1),X=_.charAt(0),k=B.match(i.nonAlphaNumericRegex_),$=X.match(i.nonAlphaNumericRegex_),q=k&&B.match(i.whitespaceRegex_),Z=$&&X.match(i.whitespaceRegex_),G=q&&B.match(i.linebreakRegex_),O=Z&&X.match(i.linebreakRegex_),ae=G&&C.match(i.blanklineEndRegex_),ee=O&&_.match(i.blanklineStartRegex_);return ae||ee?5:G||O?4:k&&!q&&Z?3:q||Z?2:k||$?1:0}for(var o=1;o<r.length-1;){if(r[o-1][0]==0&&r[o+1][0]==0){var d=r[o-1][1],h=r[o][1],m=r[o+1][1],g=this.diff_commonSuffix(d,h);if(g){var y=h.substring(h.length-g);d=d.substring(0,d.length-g),h=y+h.substring(0,h.length-g),m=y+m}for(var b=d,x=h,S=m,E=s(d,h)+s(h,m);h.charAt(0)===m.charAt(0);){d+=h.charAt(0),h=h.substring(1)+m.charAt(0),m=m.substring(1);var A=s(d,h)+s(h,m);A>=E&&(E=A,b=d,x=h,S=m)}r[o-1][1]!=b&&(b?r[o-1][1]=b:(r.splice(o-1,1),o--),r[o][1]=x,S?r[o+1][1]=S:(r.splice(o+1,1),o--))}o++}},i.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,i.whitespaceRegex_=/\s/,i.linebreakRegex_=/[\r\n]/,i.blanklineEndRegex_=/\n\r?\n$/,i.blanklineStartRegex_=/^\r?\n\r?\n/,i.prototype.diff_cleanupEfficiency=function(r){for(var s=!1,o=[],d=0,h=null,m=0,g=!1,y=!1,b=!1,x=!1;m<r.length;)r[m][0]==0?(r[m][1].length<this.Diff_EditCost&&(b||x)?(o[d++]=m,g=b,y=x,h=r[m][1]):(d=0,h=null),b=x=!1):(r[m][0]==-1?x=!0:b=!0,h&&(g&&y&&b&&x||h.length<this.Diff_EditCost/2&&g+y+b+x==3)&&(r.splice(o[d-1],0,new i.Diff(-1,h)),r[o[d-1]+1][0]=1,d--,h=null,g&&y?(b=x=!0,d=0):(m=--d>0?o[d-1]:-1,b=x=!1),s=!0)),m++;s&&this.diff_cleanupMerge(r)},i.prototype.diff_cleanupMerge=function(r){r.push(new i.Diff(0,""));for(var s,o=0,d=0,h=0,m="",g="";o<r.length;)switch(r[o][0]){case 1:h++,g+=r[o][1],o++;break;case-1:d++,m+=r[o][1],o++;break;case 0:d+h>1?(d!==0&&h!==0&&((s=this.diff_commonPrefix(g,m))!==0&&(o-d-h>0&&r[o-d-h-1][0]==0?r[o-d-h-1][1]+=g.substring(0,s):(r.splice(0,0,new i.Diff(0,g.substring(0,s))),o++),g=g.substring(s),m=m.substring(s)),(s=this.diff_commonSuffix(g,m))!==0&&(r[o][1]=g.substring(g.length-s)+r[o][1],g=g.substring(0,g.length-s),m=m.substring(0,m.length-s))),o-=d+h,r.splice(o,d+h),m.length&&(r.splice(o,0,new i.Diff(-1,m)),o++),g.length&&(r.splice(o,0,new i.Diff(1,g)),o++),o++):o!==0&&r[o-1][0]==0?(r[o-1][1]+=r[o][1],r.splice(o,1)):o++,h=0,d=0,m="",g=""}r[r.length-1][1]===""&&r.pop();var y=!1;for(o=1;o<r.length-1;)r[o-1][0]==0&&r[o+1][0]==0&&(r[o][1].substring(r[o][1].length-r[o-1][1].length)==r[o-1][1]?(r[o][1]=r[o-1][1]+r[o][1].substring(0,r[o][1].length-r[o-1][1].length),r[o+1][1]=r[o-1][1]+r[o+1][1],r.splice(o-1,1),y=!0):r[o][1].substring(0,r[o+1][1].length)==r[o+1][1]&&(r[o-1][1]+=r[o+1][1],r[o][1]=r[o][1].substring(r[o+1][1].length)+r[o+1][1],r.splice(o+1,1),y=!0)),o++;y&&this.diff_cleanupMerge(r)},i.prototype.diff_xIndex=function(r,s){var o,d=0,h=0,m=0,g=0;for(o=0;o<r.length&&(r[o][0]!==1&&(d+=r[o][1].length),r[o][0]!==-1&&(h+=r[o][1].length),!(d>s));o++)m=d,g=h;return r.length!=o&&r[o][0]===-1?g:g+(s-m)},i.prototype.diff_prettyHtml=function(r){for(var s=[],o=/&/g,d=/</g,h=/>/g,m=/\n/g,g=0;g<r.length;g++){var y=r[g][0],b=r[g][1].replace(o,"&").replace(d,"<").replace(h,">").replace(m,"¶<br>");switch(y){case 1:s[g]='<ins style="background:#e6ffe6;">'+b+"</ins>";break;case-1:s[g]='<del style="background:#ffe6e6;">'+b+"</del>";break;case 0:s[g]="<span>"+b+"</span>"}}return s.join("")},i.prototype.diff_text1=function(r){for(var s=[],o=0;o<r.length;o++)r[o][0]!==1&&(s[o]=r[o][1]);return s.join("")},i.prototype.diff_text2=function(r){for(var s=[],o=0;o<r.length;o++)r[o][0]!==-1&&(s[o]=r[o][1]);return s.join("")},i.prototype.diff_levenshtein=function(r){for(var s=0,o=0,d=0,h=0;h<r.length;h++){var m=r[h][0],g=r[h][1];switch(m){case 1:o+=g.length;break;case-1:d+=g.length;break;case 0:s+=Math.max(o,d),o=0,d=0}}return s+=Math.max(o,d)},i.prototype.diff_toDelta=function(r){for(var s=[],o=0;o<r.length;o++)switch(r[o][0]){case 1:s[o]="+"+encodeURI(r[o][1]);break;case-1:s[o]="-"+r[o][1].length;break;case 0:s[o]="="+r[o][1].length}return s.join(" ").replace(/%20/g," ")},i.prototype.diff_fromDelta=function(r,s){for(var o=[],d=0,h=0,m=s.split(/\t/g),g=0;g<m.length;g++){var y=m[g].substring(1);switch(m[g].charAt(0)){case"+":try{o[d++]=new i.Diff(1,decodeURI(y))}catch{throw new Error("Illegal escape in diff_fromDelta: "+y)}break;case"-":case"=":var b=parseInt(y,10);if(isNaN(b)||b<0)throw new Error("Invalid number in diff_fromDelta: "+y);var x=r.substring(h,h+=b);m[g].charAt(0)=="="?o[d++]=new i.Diff(0,x):o[d++]=new i.Diff(-1,x);break;default:if(m[g])throw new Error("Invalid diff operation in diff_fromDelta: "+m[g])}}if(h!=r.length)throw new Error("Delta length ("+h+") does not equal source text length ("+r.length+").");return o},i.prototype.match_main=function(r,s,o){if(r==null||s==null||o==null)throw new Error("Null input. (match_main)");return o=Math.max(0,Math.min(o,r.length)),r==s?0:r.length?r.substring(o,o+s.length)==s?o:this.match_bitap_(r,s,o):-1},i.prototype.match_bitap_=function(r,s,o){if(s.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var d=this.match_alphabet_(s),h=this;function m(Z,G){var O=Z/s.length,ae=Math.abs(o-G);return h.Match_Distance?O+ae/h.Match_Distance:ae?1:O}var g=this.Match_Threshold,y=r.indexOf(s,o);y!=-1&&(g=Math.min(m(0,y),g),(y=r.lastIndexOf(s,o+s.length))!=-1&&(g=Math.min(m(0,y),g)));var b,x,S=1<<s.length-1;y=-1;for(var E,A=s.length+r.length,C=0;C<s.length;C++){for(b=0,x=A;b<x;)m(C,o+x)<=g?b=x:A=x,x=Math.floor((A-b)/2+b);A=x;var _=Math.max(1,o-x+1),B=Math.min(o+x,r.length)+s.length,X=Array(B+2);X[B+1]=(1<<C)-1;for(var k=B;k>=_;k--){var $=d[r.charAt(k-1)];if(X[k]=C===0?(X[k+1]<<1|1)&$:(X[k+1]<<1|1)&$|(E[k+1]|E[k])<<1|1|E[k+1],X[k]&S){var q=m(C,k-1);if(q<=g){if(g=q,!((y=k-1)>o))break;_=Math.max(1,2*o-y)}}}if(m(C+1,o)>g)break;E=X}return y},i.prototype.match_alphabet_=function(r){for(var s={},o=0;o<r.length;o++)s[r.charAt(o)]=0;for(o=0;o<r.length;o++)s[r.charAt(o)]|=1<<r.length-o-1;return s},i.prototype.patch_addContext_=function(r,s){if(s.length!=0){if(r.start2===null)throw Error("patch not initialized");for(var o=s.substring(r.start2,r.start2+r.length1),d=0;s.indexOf(o)!=s.lastIndexOf(o)&&o.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)d+=this.Patch_Margin,o=s.substring(r.start2-d,r.start2+r.length1+d);d+=this.Patch_Margin;var h=s.substring(r.start2-d,r.start2);h&&r.diffs.unshift(new i.Diff(0,h));var m=s.substring(r.start2+r.length1,r.start2+r.length1+d);m&&r.diffs.push(new i.Diff(0,m)),r.start1-=h.length,r.start2-=h.length,r.length1+=h.length+m.length,r.length2+=h.length+m.length}},i.prototype.patch_make=function(r,s,o){var d,h;if(typeof r=="string"&&typeof s=="string"&&o===void 0)d=r,(h=this.diff_main(d,s,!0)).length>2&&(this.diff_cleanupSemantic(h),this.diff_cleanupEfficiency(h));else if(r&&typeof r=="object"&&s===void 0&&o===void 0)h=r,d=this.diff_text1(h);else if(typeof r=="string"&&s&&typeof s=="object"&&o===void 0)d=r,h=s;else{if(typeof r!="string"||typeof s!="string"||!o||typeof o!="object")throw new Error("Unknown call format to patch_make.");d=r,h=o}if(h.length===0)return[];for(var m=[],g=new i.patch_obj,y=0,b=0,x=0,S=d,E=d,A=0;A<h.length;A++){var C=h[A][0],_=h[A][1];switch(y||C===0||(g.start1=b,g.start2=x),C){case 1:g.diffs[y++]=h[A],g.length2+=_.length,E=E.substring(0,x)+_+E.substring(x);break;case-1:g.length1+=_.length,g.diffs[y++]=h[A],E=E.substring(0,x)+E.substring(x+_.length);break;case 0:_.length<=2*this.Patch_Margin&&y&&h.length!=A+1?(g.diffs[y++]=h[A],g.length1+=_.length,g.length2+=_.length):_.length>=2*this.Patch_Margin&&y&&(this.patch_addContext_(g,S),m.push(g),g=new i.patch_obj,y=0,S=E,b=x)}C!==1&&(b+=_.length),C!==-1&&(x+=_.length)}return y&&(this.patch_addContext_(g,S),m.push(g)),m},i.prototype.patch_deepCopy=function(r){for(var s=[],o=0;o<r.length;o++){var d=r[o],h=new i.patch_obj;h.diffs=[];for(var m=0;m<d.diffs.length;m++)h.diffs[m]=new i.Diff(d.diffs[m][0],d.diffs[m][1]);h.start1=d.start1,h.start2=d.start2,h.length1=d.length1,h.length2=d.length2,s[o]=h}return s},i.prototype.patch_apply=function(r,s){if(r.length==0)return[s,[]];r=this.patch_deepCopy(r);var o=this.patch_addPadding(r);s=o+s+o,this.patch_splitMax(r);for(var d=0,h=[],m=0;m<r.length;m++){var g,y,b=r[m].start2+d,x=this.diff_text1(r[m].diffs),S=-1;if(x.length>this.Match_MaxBits?(g=this.match_main(s,x.substring(0,this.Match_MaxBits),b))!=-1&&((S=this.match_main(s,x.substring(x.length-this.Match_MaxBits),b+x.length-this.Match_MaxBits))==-1||g>=S)&&(g=-1):g=this.match_main(s,x,b),g==-1)h[m]=!1,d-=r[m].length2-r[m].length1;else if(h[m]=!0,d=g-b,x==(y=S==-1?s.substring(g,g+x.length):s.substring(g,S+this.Match_MaxBits)))s=s.substring(0,g)+this.diff_text2(r[m].diffs)+s.substring(g+x.length);else{var E=this.diff_main(x,y,!1);if(x.length>this.Match_MaxBits&&this.diff_levenshtein(E)/x.length>this.Patch_DeleteThreshold)h[m]=!1;else{this.diff_cleanupSemanticLossless(E);for(var A,C=0,_=0;_<r[m].diffs.length;_++){var B=r[m].diffs[_];B[0]!==0&&(A=this.diff_xIndex(E,C)),B[0]===1?s=s.substring(0,g+A)+B[1]+s.substring(g+A):B[0]===-1&&(s=s.substring(0,g+A)+s.substring(g+this.diff_xIndex(E,C+B[1].length))),B[0]!==-1&&(C+=B[1].length)}}}}return[s=s.substring(o.length,s.length-o.length),h]},i.prototype.patch_addPadding=function(r){for(var s=this.Patch_Margin,o="",d=1;d<=s;d++)o+=String.fromCharCode(d);for(d=0;d<r.length;d++)r[d].start1+=s,r[d].start2+=s;var h=r[0],m=h.diffs;if(m.length==0||m[0][0]!=0)m.unshift(new i.Diff(0,o)),h.start1-=s,h.start2-=s,h.length1+=s,h.length2+=s;else if(s>m[0][1].length){var g=s-m[0][1].length;m[0][1]=o.substring(m[0][1].length)+m[0][1],h.start1-=g,h.start2-=g,h.length1+=g,h.length2+=g}return(m=(h=r[r.length-1]).diffs).length==0||m[m.length-1][0]!=0?(m.push(new i.Diff(0,o)),h.length1+=s,h.length2+=s):s>m[m.length-1][1].length&&(g=s-m[m.length-1][1].length,m[m.length-1][1]+=o.substring(0,g),h.length1+=g,h.length2+=g),o},i.prototype.patch_splitMax=function(r){for(var s=this.Match_MaxBits,o=0;o<r.length;o++)if(!(r[o].length1<=s)){var d=r[o];r.splice(o--,1);for(var h=d.start1,m=d.start2,g="";d.diffs.length!==0;){var y=new i.patch_obj,b=!0;for(y.start1=h-g.length,y.start2=m-g.length,g!==""&&(y.length1=y.length2=g.length,y.diffs.push(new i.Diff(0,g)));d.diffs.length!==0&&y.length1<s-this.Patch_Margin;){var x=d.diffs[0][0],S=d.diffs[0][1];x===1?(y.length2+=S.length,m+=S.length,y.diffs.push(d.diffs.shift()),b=!1):x===-1&&y.diffs.length==1&&y.diffs[0][0]==0&&S.length>2*s?(y.length1+=S.length,h+=S.length,b=!1,y.diffs.push(new i.Diff(x,S)),d.diffs.shift()):(S=S.substring(0,s-y.length1-this.Patch_Margin),y.length1+=S.length,h+=S.length,x===0?(y.length2+=S.length,m+=S.length):b=!1,y.diffs.push(new i.Diff(x,S)),S==d.diffs[0][1]?d.diffs.shift():d.diffs[0][1]=d.diffs[0][1].substring(S.length))}g=(g=this.diff_text2(y.diffs)).substring(g.length-this.Patch_Margin);var E=this.diff_text1(d.diffs).substring(0,this.Patch_Margin);E!==""&&(y.length1+=E.length,y.length2+=E.length,y.diffs.length!==0&&y.diffs[y.diffs.length-1][0]===0?y.diffs[y.diffs.length-1][1]+=E:y.diffs.push(new i.Diff(0,E))),b||r.splice(++o,0,y)}}},i.prototype.patch_toText=function(r){for(var s=[],o=0;o<r.length;o++)s[o]=r[o];return s.join("")},i.prototype.patch_fromText=function(r){var s=[];if(!r)return s;for(var o=r.split(`
|
|
340
|
-
`),d=0,h=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;d<o.length;){var m=o[d].match(h);if(!m)throw new Error("Invalid patch string: "+o[d]);var g=new i.patch_obj;for(s.push(g),g.start1=parseInt(m[1],10),m[2]===""?(g.start1--,g.length1=1):m[2]=="0"?g.length1=0:(g.start1--,g.length1=parseInt(m[2],10)),g.start2=parseInt(m[3],10),m[4]===""?(g.start2--,g.length2=1):m[4]=="0"?g.length2=0:(g.start2--,g.length2=parseInt(m[4],10)),d++;d<o.length;){var y=o[d].charAt(0);try{var b=decodeURI(o[d].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+b)}if(y=="-")g.diffs.push(new i.Diff(-1,b));else if(y=="+")g.diffs.push(new i.Diff(1,b));else if(y==" ")g.diffs.push(new i.Diff(0,b));else{if(y=="@")break;if(y!=="")throw new Error('Invalid patch mode "'+y+'" in: '+b)}d++}}return s},(i.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var r,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)+` @@
|
|
341
|
-
`],o=0;o<this.diffs.length;o++){switch(this.diffs[o][0]){case 1:r="+";break;case-1:r="-";break;case 0:r=" "}s[o+1]=r+encodeURI(this.diffs[o][1])+`
|
|
342
|
-
`}return s.join("").replace(/%20/g," ")},l.exports=i,l.exports.diff_match_patch=i,l.exports.DIFF_DELETE=-1,l.exports.DIFF_INSERT=1,l.exports.DIFF_EQUAL=0}));Lo.DIFF_EQUAL;Lo.DIFF_DELETE;Lo.DIFF_INSERT;var LS=["enhancers"],US=function(l){var i,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.enhancers,o=s===void 0?[]:s,d=rt(CS(l,na(r,LS)),2),h=d[0],m=d[1],g=[tp(h),tp(m)],y=(i=[g[0],g[1]],o.reduce((function(C,_){return _(C)}),i)),b=rt(y,2),x=b[0],S=b[1],E=[x.map(np),S.map(np)],A=E[1];return{old:E[0].map((function(C){var _;return(_=C.children)!==null&&_!==void 0?_:[]})),new:A.map((function(C){var _;return(_=C.children)!==null&&_!==void 0?_:[]}))}};const BS=[{value:"suggestion",label:"Suggestion"},{value:"must_fix",label:"Must Fix"},{value:"question",label:"Question"},{value:"nitpick",label:"Nitpick"}];function ds({onSave:l,onAsk:i,onCancel:r,initialBody:s="",initialType:o="suggestion",file:d,line:h}){const[m,g]=L.useState(s),[y,b]=L.useState(o),[x,S]=L.useState(!1),[E,A]=L.useState(null),C=L.useRef(null),_=Ve(q=>q.setDraftComment);L.useEffect(()=>{var q;(q=C.current)==null||q.focus()},[]),L.useEffect(()=>{d!==void 0&&h!==void 0&&(m.trim()?_({body:m,type:y,file:d,line:h}):_(null))},[m,y,d,h,_]);function B(){m.trim()&&(_(null),l(m.trim(),y))}async function X(){if(!i||!m.trim())return;S(!0),A(null);const q=await i(m.trim());S(!1),q.ok?(_(null),r()):A(q.error??"Could not ask the agent")}function k(){_(null),r()}function $(q){(q.metaKey||q.ctrlKey)&&q.key==="Enter"?(q.preventDefault(),B()):q.key==="Escape"&&(q.preventDefault(),k())}return f.jsxs("div",{className:"p-3 space-y-2",onKeyDown:$,children:[f.jsx("textarea",{ref:C,value:m,onChange:q=>g(q.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"}),E&&f.jsx("p",{role:"alert",className:"text-xs text-danger",children:E}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("select",{value:y,onChange:q=>b(q.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:BS.map(q=>f.jsx("option",{value:q.value,children:q.label},q.value))}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{onClick:k,className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"}),i&&f.jsx("button",{onClick:X,disabled:!m.trim()||x,title:"Start a thread the agent answers while you review, instead of a comment sent with your decision",className:"px-3 py-1.5 text-xs font-medium rounded text-text-secondary border border-border hover:text-text-primary hover:border-accent/40 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:x?"Asking…":"Ask agent now"}),f.jsx("button",{onClick:B,disabled:!m.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 HS={must_fix:"Must Fix",suggestion:"Suggestion",question:"Question",nitpick:"Nitpick"};function GS({comments:l,isFormOpen:i,file:r,line:s,onAdd:o,onAsk:d,onUpdate:h,onDelete:m,onOpenForm:g,onCloseForm:y}){const[b,x]=L.useState(null);return f.jsxs("div",{className:"border-t border-border bg-surface",children:[l.map(({comment:S,index:E})=>b===E?f.jsx(ds,{initialBody:S.body,initialType:S.type,file:r,line:s,onSave:(A,C)=>{h(E,A,C),x(null)},onCancel:()=>x(null)},E):f.jsxs("div",{className:"px-3 py-2 border-b border-border/50 group/comment",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[f.jsx("span",{className:`text-[10px] font-bold px-1.5 py-0.5 rounded border ${Mv[S.type]}`,children:HS[S.type]}),f.jsxs("span",{className:"text-text-secondary text-[10px] font-mono",children:[r,":",s]}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{onClick:()=>x(E),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:f.jsx(Ev,{className:"w-3 h-3"})}),f.jsx("button",{onClick:()=>m(E),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:f.jsx(Ov,{className:"w-3 h-3"})})]}),f.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap",children:S.body})]},E)),i&&b===null&&f.jsx(ds,{file:r,line:s,onSave:(S,E)=>{o(S,E),y()},onAsk:d,onCancel:y}),!i&&l.length>0&&b===null&&f.jsxs("button",{onClick:g,className:"flex items-center gap-1 px-3 py-1.5 text-xs text-text-secondary hover:text-accent transition-colors cursor-pointer",children:[f.jsx(Sp,{className:"w-3 h-3"}),"Add comment"]})]})}function YS(l){const i=l.replies??[];return i.length>0?i[i.length-1].author:l.author??"agent"}function Pp(l){return!l.dismissed&&YS(l)==="reviewer"}function fo({placeholder:l,submitLabel:i,onSubmit:r,onCancel:s}){const[o,d]=L.useState(""),[h,m]=L.useState(!1),[g,y]=L.useState(null),b=L.useRef(null);L.useEffect(()=>{var S;(S=b.current)==null||S.focus()},[]);async function x(){if(!o.trim()||h)return;m(!0),y(null);const S=await r(o.trim());m(!1),S.ok?d(""):y(S.error??"Couldn't send")}return f.jsxs("div",{className:"px-3 py-2 space-y-1.5",children:[f.jsx("textarea",{ref:b,value:o,onChange:S=>d(S.target.value),onKeyDown:S=>{S.key==="Enter"&&(S.metaKey||S.ctrlKey)?(S.preventDefault(),x()):S.key==="Escape"&&s&&(S.preventDefault(),s())},placeholder:l,rows:2,className:"w-full bg-background border border-border rounded px-2 py-1.5 text-text-primary text-sm focus:outline-none focus:border-accent resize-y"}),g&&f.jsx("p",{className:"text-danger text-xs",children:g}),f.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s&&f.jsx("button",{onClick:s,className:"px-2 py-1 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"}),f.jsx("button",{onClick:()=>void x(),disabled:!o.trim()||h,className:"px-2.5 py-1 text-xs rounded bg-accent/15 text-accent hover:bg-accent/25 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:h?"Sending…":i})]})]})}const qS={finding:wa,suggestion:No,question:xo,warning:El};function ey({author:l,agent:i}){return l==="reviewer"?f.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-semibold text-accent",children:[f.jsx(jv,{className:"w-3 h-3"}),"You"]}):f.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] text-text-secondary",children:[f.jsx(bo,{className:"w-3 h-3"}),i??"agent"]})}function IS({reply:l}){return f.jsxs("div",{className:"pl-3 ml-1.5 border-l border-border/70 py-1",children:[f.jsx(ey,{author:l.author,agent:l.agent}),f.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap mt-0.5",children:l.body})]})}function XS({annotations:l,onDismiss:i,onReply:r}){const[s,o]=L.useState(null);if(l.length===0)return null;const d=l.some(h=>{var m;return(h.author??"agent")==="reviewer"||(((m=h.replies)==null?void 0:m.length)??0)>0});return f.jsxs("div",{className:"border-t border-border bg-surface",children:[f.jsxs("div",{className:"px-3 py-1.5 flex items-center gap-1.5 border-b border-border/50",children:[d?f.jsx(Sl,{className:"w-3 h-3 text-text-secondary"}):f.jsx(bo,{className:"w-3 h-3 text-text-secondary"}),f.jsx("span",{className:"text-[10px] font-semibold text-text-secondary uppercase tracking-wide",children:d?`Discussion${l.length>1?` (${l.length})`:""}`:`Agent ${l.length===1?"Annotation":`Annotations (${l.length})`}`})]}),l.map(h=>{const m=h.author??"agent",g=qS[h.type]??wa,y=os[h.category]??os.other,b=Rm[h.category]??Rm.other,x=h.replies??[];return f.jsxs("div",{"data-annotation-id":h.id,className:"px-3 py-2 border-b border-border/50 group/annotation",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m==="agent"?f.jsxs(f.Fragment,{children:[f.jsx(g,{className:`w-3.5 h-3.5 flex-shrink-0 ${y}`}),f.jsx("span",{className:`text-[10px] font-bold px-1.5 py-0.5 rounded border ${b}`,children:h.category}),f.jsx("span",{className:"text-text-secondary text-[10px]",children:h.source.agent})]}):f.jsx(ey,{author:"reviewer"}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{onClick:()=>i(h.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:f.jsx(kr,{className:"w-3 h-3"})})]}),f.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap",children:h.body}),x.length>0&&f.jsx("div",{className:"mt-1.5 space-y-0.5",children:x.map(S=>f.jsx(IS,{reply:S},S.id))}),Pp(h)&&f.jsx("p",{className:"mt-1.5 text-[11px] text-text-secondary italic",children:"Waiting for the agent to reply."}),r&&(s===h.id?f.jsx("div",{className:"-mx-3",children:f.jsx(fo,{placeholder:"Reply…",submitLabel:"Reply",onSubmit:async S=>{const E=await r(h.id,S);return E.ok&&o(null),E},onCancel:()=>o(null)})}):f.jsx("button",{onClick:()=>o(h.id),className:"mt-1 text-[11px] text-text-secondary hover:text-accent transition-colors cursor-pointer",children:"Reply"}))]},h.id)})]})}function FS(l){const i=Ve(s=>s.focusedAnnotationId),r=Ve(s=>s.focusAnnotation);L.useEffect(()=>{if(!i)return;const s=document.querySelector(`[data-annotation-id="${i}"]`);s&&(s.scrollIntoView({behavior:"smooth",block:"center"}),r(null))},[i,r,l])}sn.displayName="clike";sn.aliases=[];function sn(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:/[{}[\];(),.:]/}}Mr.displayName="c";Mr.aliases=[];function Mr(l){l.register(sn),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}ws.displayName="cpp";ws.aliases=[];function ws(l){l.register(Mr),(function(i){var r=/\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 r.source});i.languages.cpp=i.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.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:r,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/}),i.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}}),i.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:i.languages.cpp}}}}),i.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),i.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:i.languages.extend("cpp",{})}}),i.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},i.languages.cpp["base-clause"])})(l)}Uo.displayName="arduino";Uo.aliases=["ino"];function Uo(l){l.register(ws),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}Bo.displayName="bash";Bo.aliases=["sh","shell"];function Bo(l){(function(i){var r="\\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("\\$"+r),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("(\\{)"+r),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})/};i.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;|&]|[<>]\\()"+r),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("\\$?"+r),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=i.languages.bash;for(var d=["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,m=0;m<d.length;m++)h[d[m]]=i.languages.bash[d[m]];i.languages.sh=i.languages.bash,i.languages.shell=i.languages.bash})(l)}Ho.displayName="csharp";Ho.aliases=["cs","dotnet"];function Ho(l){l.register(sn),(function(i){function r(ue,N){return ue.replace(/<<(\d+)>>/g,function(I,W){return"(?:"+N[+W]+")"})}function s(ue,N,I){return RegExp(r(ue,N),"")}function o(ue,N){for(var I=0;I<N;I++)ue=ue.replace(/<<self>>/g,function(){return"(?:"+ue+")"});return ue.replace(/<<self>>/g,"[^\\s\\S]")}var d={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(ue){return"\\b(?:"+ue.trim().replace(/ /g,"|")+")\\b"}var m=h(d.typeDeclaration),g=RegExp(h(d.type+" "+d.typeDeclaration+" "+d.contextual+" "+d.other)),y=h(d.typeDeclaration+" "+d.contextual+" "+d.other),b=h(d.type+" "+d.typeDeclaration+" "+d.other),x=o(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),S=o(/\((?:[^()]|<<self>>)*\)/.source,2),E=/@?\b[A-Za-z_]\w*\b/.source,A=r(/<<0>>(?:\s*<<1>>)?/.source,[E,x]),C=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[y,A]),_=/\[\s*(?:,\s*)*\]/.source,B=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[C,_]),X=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[x,S,_]),k=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[X]),$=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,C,_]),q={keyword:g,punctuation:/[<>()?,.:[\]]/},Z=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,G=/"(?:\\.|[^\\"\r\n])*"/.source,O=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;i.languages.csharp=i.languages.extend("clike",{string:[{pattern:s(/(^|[^$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0},{pattern:s(/(^|[^@$\\])<<0>>/.source,[G]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:s(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[C]),lookbehind:!0,inside:q},{pattern:s(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[E,$]),lookbehind:!0,inside:q},{pattern:s(/(\busing\s+)<<0>>(?=\s*=)/.source,[E]),lookbehind:!0},{pattern:s(/(\b<<0>>\s+)<<1>>/.source,[m,A]),lookbehind:!0,inside:q},{pattern:s(/(\bcatch\s*\(\s*)<<0>>/.source,[C]),lookbehind:!0,inside:q},{pattern:s(/(\bwhere\s+)<<0>>/.source,[E]),lookbehind:!0},{pattern:s(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[B]),lookbehind:!0,inside:q},{pattern:s(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[$,b,E]),inside:q}],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:/\?\.?|::|[{}[\];(),.:]/}),i.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),i.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:s(/([(,]\s*)<<0>>(?=\s*:)/.source,[E]),lookbehind:!0,alias:"punctuation"}}),i.languages.insertBefore("csharp","class-name",{namespace:{pattern:s(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[E]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:s(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[S]),lookbehind:!0,alias:"class-name",inside:q},"return-type":{pattern:s(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[$,C]),inside:q,alias:"class-name"},"constructor-invocation":{pattern:s(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[$]),lookbehind:!0,inside:q,alias:"class-name"},"generic-method":{pattern:s(/<<0>>\s*<<1>>(?=\s*\()/.source,[E,x]),inside:{function:s(/^<<0>>/.source,[E]),generic:{pattern:RegExp(x),alias:"class-name",inside:q}}},"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,[m,A,E,$,g.source,S,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:s(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[A,S]),lookbehind:!0,greedy:!0,inside:i.languages.csharp},keyword:g,"class-name":{pattern:RegExp($),greedy:!0,inside:q},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 ae=G+"|"+Z,ee=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[ae]),ie=o(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ee]),2),fe=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ne=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[C,ie]);i.languages.insertBefore("csharp","class-name",{attribute:{pattern:s(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[fe,ne]),lookbehind:!0,greedy:!0,inside:{target:{pattern:s(/^<<0>>(?=\s*:)/.source,[fe]),alias:"keyword"},"attribute-arguments":{pattern:s(/\(<<0>>*\)/.source,[ie]),inside:i.languages.csharp},"class-name":{pattern:RegExp(C),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var J=/:[^}\r\n]+/.source,Q=o(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[ee]),2),R=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Q,J]),z=o(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[ae]),2),le=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[z,J]);function se(ue,N){return{interpolation:{pattern:s(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ue]),lookbehind:!0,inside:{"format-string":{pattern:s(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[N,J]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:i.languages.csharp}}},string:/[\s\S]+/}}i.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:s(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[R]),lookbehind:!0,greedy:!0,inside:se(R,Q)},{pattern:s(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[le]),lookbehind:!0,greedy:!0,inside:se(le,z)}],char:{pattern:RegExp(Z),greedy:!0}}),i.languages.dotnet=i.languages.cs=i.languages.csharp})(l)}Dr.displayName="markup";Dr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Dr(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(i){i.type==="entity"&&(i.attributes.title=i.content.value.replace(/&/,"&"))}),Object.defineProperty(l.languages.markup.tag,"addInlined",{value:function(r,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:l.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var d={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};d["language-"+s]={pattern:/[\s\S]+/,inside:l.languages[s]};var h={};h[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:d},l.languages.insertBefore("markup","cdata",h)}}),Object.defineProperty(l.languages.markup.tag,"addAttribute",{value:function(i,r){l.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\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:[r,"language-"+r],inside:l.languages[r]},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}Tl.displayName="css";Tl.aliases=[];function Tl(l){(function(i){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.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\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,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:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var s=i.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(l)}Go.displayName="diff";Go.aliases=[];function Go(l){(function(i){i.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(s){var o=r[s],d=[];/^\w+$/.test(s)||d.push(/\w+/.exec(s)[0]),s==="diff"&&d.push("bold"),i.languages.diff[s]={pattern:RegExp("^(?:["+o+`].*(?:\r
|
|
343
|
-
?|
|
|
344
|
-
|(?![\\s\\S])))+`,"m"),alias:d,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(s)[0]}}}}),Object.defineProperty(i.languages.diff,"PREFIXES",{value:r})})(l)}Yo.displayName="go";Yo.aliases=[];function Yo(l){l.register(sn),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"]}qo.displayName="ini";qo.aliases=[];function qo(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:/=/}}Io.displayName="java";Io.aliases=[];function Io(l){l.register(sn),(function(i){var r=/\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:/\./}};i.languages.java=i.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:r,function:[i.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/}),i.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),i.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:r,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 r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(l)}Xo.displayName="regex";Xo.aliases=[];function Xo(l){(function(i){var r={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"},d={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},h="(?:[^\\\\-]|"+s.source+")",m=RegExp(h+"-"+h),g={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};i.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:m,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":d,escape:s}},"special-escape":r,"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)}As.displayName="javascript";As.aliases=["js"];function As(l){l.register(sn),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}Fo.displayName="json";Fo.aliases=["webmanifest"];function Fo(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}Zo.displayName="kotlin";Zo.aliases=["kt","kts"];function Zo(l){l.register(sn),(function(i){i.languages.kotlin=i.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 i.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:i.languages.kotlin}};i.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete i.languages.kotlin.string,i.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),i.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),i.languages.kt=i.languages.kotlin,i.languages.kts=i.languages.kotlin})(l)}$o.displayName="less";$o.aliases=[];function $o(l){l.register(Tl),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"}})}Vo.displayName="lua";Vo.aliases=[];function Vo(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:/[\[\](){},;]|\.+|:+/}}Ko.displayName="makefile";Ko.aliases=[];function Ko(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:/[:;(){}]/}}Qo.displayName="yaml";Qo.aliases=["yml"];function Qo(l){(function(i){var r=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+s.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+s.source+")?)",d=/(?:[^\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 m(g,y){y=(y||"").replace(/m/g,"")+"m";var b=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return g});return RegExp(b,y)}i.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"(?:"+d+"|"+h+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:m(/\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:m(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:m(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:m(h),lookbehind:!0,greedy:!0},number:{pattern:m(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},i.languages.yml=i.languages.yaml})(l)}Jo.displayName="markdown";Jo.aliases=["md"];function Jo(l){l.register(Dr),(function(i){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(m){return m=m.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+m+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,d=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),h=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;i.languages.markdown=i.languages.extend("markup",{}),i.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:i.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+d+h+"(?:"+d+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+d+h+")(?:"+d+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:i.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+d+")"+h+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+d+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:i.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(m){["url","bold","italic","strike","code-snippet"].forEach(function(g){m!==g&&(i.languages.markdown[m].inside.content.inside[g]=i.languages.markdown[g])})}),i.hooks.add("after-tokenize",function(m){if(m.language!=="markdown"&&m.language!=="md")return;function g(y){if(!(!y||typeof y=="string"))for(var b=0,x=y.length;b<x;b++){var S=y[b];if(S.type!=="code"){g(S.content);continue}var E=S.content[1],A=S.content[3];if(E&&A&&E.type==="code-language"&&A.type==="code-block"&&typeof E.content=="string"){var C=E.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");C=(/[a-z][\w-]*/i.exec(C)||[""])[0].toLowerCase();var _="language-"+C;A.alias?typeof A.alias=="string"?A.alias=[A.alias,_]:A.alias.push(_):A.alias=[_]}}}g(m.tokens)}),i.hooks.add("wrap",function(m){if(m.type==="code-block"){for(var g="",y=0,b=m.classes.length;y<b;y++){var x=m.classes[y],S=/language-(.+)/.exec(x);if(S){g=S[1];break}}var E=i.languages[g];if(E)m.content=i.highlight(m.content.value,E,g);else if(g&&g!=="none"&&i.plugins.autoloader){var A="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);m.attributes.id=A,i.plugins.autoloader.loadLanguages(g,function(){var C=document.getElementById(A);C&&(C.innerHTML=i.highlight(C.textContent,i.languages[g],g))})}}}),RegExp(i.languages.markup.tag.pattern.source,"gi"),i.languages.md=i.languages.markdown})(l)}Wo.displayName="objectivec";Wo.aliases=["objc"];function Wo(l){l.register(Mr),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}Po.displayName="perl";Po.aliases=[];function Po(l){(function(i){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;i.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,r].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,r].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,r+/\s*/.source+r].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)}Ts.displayName="markup-templating";Ts.aliases=[];function Ts(l){l.register(Dr),(function(i){function r(s,o){return"___"+s.toUpperCase()+o+"___"}Object.defineProperties(i.languages["markup-templating"]={},{buildPlaceholders:{value:function(s,o,d,h){if(s.language===o){var m=s.tokenStack=[];s.code=s.code.replace(d,function(g){if(typeof h=="function"&&!h(g))return g;for(var y=m.length,b;s.code.indexOf(b=r(o,y))!==-1;)++y;return m[y]=g,b}),s.grammar=i.languages.markup}}},tokenizePlaceholders:{value:function(s,o){if(s.language!==o||!s.tokenStack)return;s.grammar=i.languages[o];var d=0,h=Object.keys(s.tokenStack);function m(g){for(var y=0;y<g.length&&!(d>=h.length);y++){var b=g[y];if(typeof b=="string"||b.content&&typeof b.content=="string"){var x=h[d],S=s.tokenStack[x],E=typeof b=="string"?b:b.content,A=r(o,x),C=E.indexOf(A);if(C>-1){++d;var _=E.substring(0,C),B=new i.Token(o,i.tokenize(S,s.grammar),"language-"+o,S),X=E.substring(C+A.length),k=[];_&&k.push.apply(k,m([_])),k.push(B),X&&k.push.apply(k,m([X])),typeof b=="string"?g.splice.apply(g,[y,1].concat(k)):b.content=k}}else b.content&&m(b.content)}return g}m(s.tokens)}}})})(l)}ef.displayName="php";ef.aliases=[];function ef(l){l.register(Ts),(function(i){var r=/\/\*[\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,d=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,h=/[{}\[\](),:;]/;i.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:r,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:d,punctuation:h};var m={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:i.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:m}},{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:m}}];i.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:r,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:d,punctuation:h}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),i.hooks.add("before-tokenize",function(y){if(/<\?/.test(y.code)){var b=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;i.languages["markup-templating"].buildPlaceholders(y,"php",b)}}),i.hooks.add("after-tokenize",function(y){i.languages["markup-templating"].tokenizePlaceholders(y,"php")})})(l)}tf.displayName="python";tf.aliases=["py"];function tf(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://,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}nf.displayName="r";nf.aliases=[];function nf(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:/[(){}\[\],;]/}}af.displayName="ruby";af.aliases=["rb"];function af(l){l.register(sn),(function(i){i.languages.ruby=i.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:/[(){}[\].,;]/}),i.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:i.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete i.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;i.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+s+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,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:/\./}}}),i.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+s),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,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:r,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:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete i.languages.ruby.string,i.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)/}),i.languages.rb=i.languages.ruby})(l)}lf.displayName="rust";lf.aliases=[];function lf(l){(function(i){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),i.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},i.languages.rust["closure-params"].inside.rest=i.languages.rust,i.languages.rust.attribute.inside.string=i.languages.rust.string})(l)}rf.displayName="sass";rf.aliases=[];function rf(l){l.register(Tl),(function(i){i.languages.sass=i.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),i.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete i.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,s=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];i.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:s}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:s,important:i.languages.sass.important}}}),delete i.languages.sass.property,delete i.languages.sass.important,i.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)}sf.displayName="scss";sf.aliases=[];function sf(l){l.register(Tl),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}uf.displayName="sql";uf.aliases=[];function uf(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:/[;[\]()`,.]/}}cf.displayName="swift";cf.aliases=[];function cf(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(i){i.inside.interpolation.inside=l.languages.swift})}of.displayName="typescript";of.aliases=["ts"];function of(l){l.register(As),(function(i){i.languages.typescript=i.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/}),i.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 i.languages.typescript.parameter,delete i.languages.typescript["literal-property"];var r=i.languages.extend("typescript",{});delete r["class-name"],i.languages.typescript["class-name"].inside=r,i.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:r}}}}),i.languages.ts=i.languages.typescript})(l)}Cs.displayName="basic";Cs.aliases=[];function Cs(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:/[,;:()]/}}ff.displayName="vbnet";ff.aliases=[];function ff(l){l.register(Cs),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 zr{constructor(i,r,s){this.property=i,this.normal=r,s&&(this.space=s)}}zr.prototype.property={};zr.prototype.normal={};zr.prototype.space=null;function ty(l,i){const r={},s={};let o=-1;for(;++o<l.length;)Object.assign(r,l[o].property),Object.assign(s,l[o].normal);return new zr(r,s,i)}function jr(l){return l.toLowerCase()}class Kt{constructor(i,r){this.property=i,this.attribute=r}}Kt.prototype.space=null;Kt.prototype.boolean=!1;Kt.prototype.booleanish=!1;Kt.prototype.overloadedBoolean=!1;Kt.prototype.number=!1;Kt.prototype.commaSeparated=!1;Kt.prototype.spaceSeparated=!1;Kt.prototype.commaOrSpaceSeparated=!1;Kt.prototype.mustUseProperty=!1;Kt.prototype.defined=!1;let ZS=0;const xe=_a(),Pe=_a(),ny=_a(),P=_a(),He=_a(),xl=_a(),Mt=_a();function _a(){return 2**++ZS}const ho=Object.freeze(Object.defineProperty({__proto__:null,boolean:xe,booleanish:Pe,commaOrSpaceSeparated:Mt,commaSeparated:xl,number:P,overloadedBoolean:ny,spaceSeparated:He},Symbol.toStringTag,{value:"Module"})),eo=Object.keys(ho);class df extends Kt{constructor(i,r,s,o){let d=-1;if(super(i,r),ap(this,"space",o),typeof s=="number")for(;++d<eo.length;){const h=eo[d];ap(this,eo[d],(s&ho[h])===ho[h])}}}df.prototype.defined=!0;function ap(l,i,r){r&&(l[i]=r)}const $S={}.hasOwnProperty;function Cl(l){const i={},r={};let s;for(s in l.properties)if($S.call(l.properties,s)){const o=l.properties[s],d=new df(s,l.transform(l.attributes||{},s),o,l.space);l.mustUseProperty&&l.mustUseProperty.includes(s)&&(d.mustUseProperty=!0),i[s]=d,r[jr(s)]=s,r[jr(d.attribute)]=s}return new zr(i,r,l.space)}const ay=Cl({space:"xlink",transform(l,i){return"xlink:"+i.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ly=Cl({space:"xml",transform(l,i){return"xml:"+i.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ry(l,i){return i in l?l[i]:i}function iy(l,i){return ry(l,i.toLowerCase())}const sy=Cl({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:iy,properties:{xmlns:null,xmlnsXLink:null}}),uy=Cl({transform(l,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:P,ariaColIndex:P,ariaColSpan:P,ariaControls:He,ariaCurrent:null,ariaDescribedBy:He,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:He,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:He,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:He,ariaLevel:P,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:He,ariaPlaceholder:null,ariaPosInSet:P,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:He,ariaRowCount:P,ariaRowIndex:P,ariaRowSpan:P,ariaSelected:Pe,ariaSetSize:P,ariaSort:null,ariaValueMax:P,ariaValueMin:P,ariaValueNow:P,ariaValueText:null,role:null}}),VS=Cl({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:iy,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xl,acceptCharset:He,accessKey:He,action:null,allow:null,allowFullScreen:xe,allowPaymentRequest:xe,allowUserMedia:xe,alt:null,as:null,async:xe,autoCapitalize:null,autoComplete:He,autoFocus:xe,autoPlay:xe,blocking:He,capture:null,charSet:null,checked:xe,cite:null,className:He,cols:P,colSpan:null,content:null,contentEditable:Pe,controls:xe,controlsList:He,coords:P|xl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xe,defer:xe,dir:null,dirName:null,disabled:xe,download:ny,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xe,formTarget:null,headers:He,height:P,hidden:xe,high:P,href:null,hrefLang:null,htmlFor:He,httpEquiv:He,id:null,imageSizes:null,imageSrcSet:null,inert:xe,inputMode:null,integrity:null,is:null,isMap:xe,itemId:null,itemProp:He,itemRef:He,itemScope:xe,itemType:He,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xe,low:P,manifest:null,max:null,maxLength:P,media:null,method:null,min:null,minLength:P,multiple:xe,muted:xe,name:null,nonce:null,noModule:xe,noValidate:xe,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:xe,optimum:P,pattern:null,ping:He,placeholder:null,playsInline:xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xe,referrerPolicy:null,rel:He,required:xe,reversed:xe,rows:P,rowSpan:P,sandbox:He,scope:null,scoped:xe,seamless:xe,selected:xe,shadowRootClonable:xe,shadowRootDelegatesFocus:xe,shadowRootMode:null,shape:null,size:P,sizes:null,slot:null,span:P,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:P,step:null,style:null,tabIndex:P,target:null,title:null,translate:null,type:null,typeMustMatch:xe,useMap:null,value:Pe,width:P,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:He,axis:null,background:null,bgColor:null,border:P,borderColor:null,bottomMargin:P,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xe,declare:xe,event:null,face:null,frame:null,frameBorder:null,hSpace:P,leftMargin:P,link:null,longDesc:null,lowSrc:null,marginHeight:P,marginWidth:P,noResize:xe,noHref:xe,noShade:xe,noWrap:xe,object:null,profile:null,prompt:null,rev:null,rightMargin:P,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:P,valueType:null,version:null,vAlign:null,vLink:null,vSpace:P,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xe,disableRemotePlayback:xe,prefix:null,property:null,results:P,security:null,unselectable:null}}),KS=Cl({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:ry,properties:{about:Mt,accentHeight:P,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:P,amplitude:P,arabicForm:null,ascent:P,attributeName:null,attributeType:null,azimuth:P,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:P,by:null,calcMode:null,capHeight:P,className:He,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:P,diffuseConstant:P,direction:null,display:null,dur:null,divisor:P,dominantBaseline:null,download:xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:P,enableBackground:null,end:null,event:null,exponent:P,externalResourcesRequired:null,fill:null,fillOpacity:P,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:xl,g2:xl,glyphName:xl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:P,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:P,horizOriginX:P,horizOriginY:P,id:null,ideographic:P,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:P,k:P,k1:P,k2:P,k3:P,k4:P,kernelMatrix:Mt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:P,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:P,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:P,overlineThickness:P,paintOrder:null,panose1:null,path:null,pathLength:P,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:He,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:P,pointsAtY:P,pointsAtZ:P,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Mt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Mt,rev:Mt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Mt,requiredFeatures:Mt,requiredFonts:Mt,requiredFormats:Mt,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:P,specularExponent:P,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:P,strikethroughThickness:P,string:null,stroke:null,strokeDashArray:Mt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:P,strokeOpacity:P,strokeWidth:null,style:null,surfaceScale:P,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Mt,tabIndex:P,tableValues:null,target:null,targetX:P,targetY:P,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Mt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:P,underlineThickness:P,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:P,values:null,vAlphabetic:P,vMathematical:P,vectorEffect:null,vHanging:P,vIdeographic:P,version:null,vertAdvY:P,vertOriginX:P,vertOriginY:P,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:P,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),QS=/^data[-\w.:]+$/i,lp=/-[a-z]/g,JS=/[A-Z]/g;function WS(l,i){const r=jr(i);let s=i,o=Kt;if(r in l.normal)return l.property[l.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&QS.test(i)){if(i.charAt(4)==="-"){const d=i.slice(5).replace(lp,eE);s="data"+d.charAt(0).toUpperCase()+d.slice(1)}else{const d=i.slice(4);if(!lp.test(d)){let h=d.replace(JS,PS);h.charAt(0)!=="-"&&(h="-"+h),i="data"+h}}o=df}return new o(s,i)}function PS(l){return"-"+l.toLowerCase()}function eE(l){return l.charAt(1).toUpperCase()}const tE=ty([ly,ay,sy,uy,VS],"html");ty([ly,ay,sy,uy,KS],"svg");const rp=/[#.]/g;function nE(l,i){const r=l||"",s={};let o=0,d,h;for(;o<r.length;){rp.lastIndex=o;const m=rp.exec(r),g=r.slice(o,m?m.index:r.length);g&&(d?d==="#"?s.id=g:Array.isArray(s.className)?s.className.push(g):s.className=[g]:h=g,o+=g.length),m&&(d=m[0],o++)}return{type:"element",tagName:h||i||"div",properties:s,children:[]}}function ip(l){const i=String(l||"").trim();return i?i.split(/[ \t\n\r\f]+/g):[]}function sp(l){const i=[],r=String(l||"");let s=r.indexOf(","),o=0,d=!1;for(;!d;){s===-1&&(s=r.length,d=!0);const h=r.slice(o,s).trim();(h||!d)&&i.push(h),o=s+1,s=r.indexOf(",",o)}return i}const aE=new Set(["menu","submit","reset","button"]),cy={}.hasOwnProperty;function lE(l,i,r){return(function(o,d,...h){let m=-1,g;if(o==null)g={type:"root",children:[]},h.unshift(d);else if(g=nE(o,i),g.tagName=g.tagName.toLowerCase(),rE(d,g.tagName)){let y;for(y in d)cy.call(d,y)&&iE(l,g.properties,y,d[y])}else h.unshift(d);for(;++m<h.length;)go(g.children,h[m]);return g.type==="element"&&g.tagName==="template"&&(g.content={type:"root",children:g.children},g.children=[]),g})}function rE(l,i){return l==null||typeof l!="object"||Array.isArray(l)?!1:i==="input"||!l.type||typeof l.type!="string"?!0:"children"in l&&Array.isArray(l.children)?!1:i==="button"?aE.has(l.type.toLowerCase()):!("value"in l)}function iE(l,i,r,s){const o=WS(l,r);let d=-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=ip(s):o.commaSeparated?h=sp(s):o.commaOrSpaceSeparated?h=ip(sp(s).join(" ")):h=up(o,o.property,s):Array.isArray(s)?h=s.concat():h=o.property==="style"?sE(s):String(s);if(Array.isArray(h)){const m=[];for(;++d<h.length;)m[d]=up(o,o.property,h[d]);h=m}o.property==="className"&&Array.isArray(i.className)&&(h=i.className.concat(h)),i[o.property]=h}}function go(l,i){let r=-1;if(i!=null)if(typeof i=="string"||typeof i=="number")l.push({type:"text",value:String(i)});else if(Array.isArray(i))for(;++r<i.length;)go(l,i[r]);else if(typeof i=="object"&&"type"in i)i.type==="root"?go(l,i.children):l.push(i);else throw new Error("Expected node, nodes, or string, got `"+i+"`")}function up(l,i,r){if(typeof r=="string"){if(l.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((l.boolean||l.overloadedBoolean)&&(r===""||jr(r)===jr(i)))return!0}return r}function sE(l){const i=[];let r;for(r in l)cy.call(l,r)&&i.push([r,l[r]].join(": "));return i.join("; ")}const uE=lE(tE,"div"),cE=["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"],cp={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 oy(l){const i=typeof l=="string"?l.charCodeAt(0):l;return i>=48&&i<=57}function oE(l){const i=typeof l=="string"?l.charCodeAt(0):l;return i>=97&&i<=102||i>=65&&i<=70||i>=48&&i<=57}function fE(l){const i=typeof l=="string"?l.charCodeAt(0):l;return i>=97&&i<=122||i>=65&&i<=90}function op(l){return fE(l)||oy(l)}const fp=document.createElement("i");function dp(l){const i="&"+l+";";fp.innerHTML=i;const r=fp.textContent;return r.charCodeAt(r.length-1)===59&&l!=="semi"||r===i?!1:r}const dE=["","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 hE(l,i){const r={},s=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,o=[];let d=0,h=-1,m="",g,y;r.position&&("start"in r.position||"indent"in r.position?(y=r.position.indent,g=r.position.start):g=r.position);let b=(g?g.line:0)||1,x=(g?g.column:0)||1,S=A(),E;for(d--;++d<=l.length;)if(E===10&&(x=(y?y[h]:0)||1),E=l.charCodeAt(d),E===38){const B=l.charCodeAt(d+1);if(B===9||B===10||B===12||B===32||B===38||B===60||Number.isNaN(B)||s&&B===s){m+=String.fromCharCode(E),x++;continue}const X=d+1;let k=X,$=X,q;if(B===35){$=++k;const ne=l.charCodeAt($);ne===88||ne===120?(q="hexadecimal",$=++k):q="decimal"}else q="named";let Z="",G="",O="";const ae=q==="named"?op:q==="decimal"?oy:oE;for($--;++$<=l.length;){const ne=l.charCodeAt($);if(!ae(ne))break;O+=String.fromCharCode(ne),q==="named"&&cE.includes(O)&&(Z=O,G=dp(O))}let ee=l.charCodeAt($)===59;if(ee){$++;const ne=q==="named"?dp(O):!1;ne&&(Z=O,G=ne)}let ie=1+$-X,fe="";if(!(!ee&&r.nonTerminated===!1))if(!O)q!=="named"&&C(4,ie);else if(q==="named"){if(ee&&!G)C(5,1);else if(Z!==O&&($=k+Z.length,ie=1+$-k,ee=!1),!ee){const ne=Z?1:3;if(r.attribute){const J=l.charCodeAt($);J===61?(C(ne,ie),G=""):op(J)?G="":C(ne,ie)}else C(ne,ie)}fe=G}else{ee||C(2,ie);let ne=Number.parseInt(O,q==="hexadecimal"?16:10);if(gE(ne))C(7,ie),fe="�";else if(ne in cp)C(6,ie),fe=cp[ne];else{let J="";mE(ne)&&C(6,ie),ne>65535&&(ne-=65536,J+=String.fromCharCode(ne>>>10|55296),ne=56320|ne&1023),fe=J+String.fromCharCode(ne)}}if(fe){_(),S=A(),d=$-1,x+=$-X+1,o.push(fe);const ne=A();ne.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,fe,{start:S,end:ne},l.slice(X-1,$)),S=ne}else O=l.slice(X-1,$),m+=O,x+=O.length,d=$-1}else E===10&&(b++,h++,x=0),Number.isNaN(E)?_():(m+=String.fromCharCode(E),x++);return o.join("");function A(){return{line:b,column:x,offset:d+((g?g.offset:0)||0)}}function C(B,X){let k;r.warning&&(k=A(),k.column+=X,k.offset+=X,r.warning.call(r.warningContext||void 0,dE[B],k,B))}function _(){m&&(o.push(m),r.text&&r.text.call(r.textContext||void 0,m,{start:S,end:A()}),m="")}}function gE(l){return l>=55296&&l<=57343||l>1114111}function mE(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 pE=0,is={},lt={util:{type:function(l){return Object.prototype.toString.call(l).slice(8,-1)},objId:function(l){return l.__id||Object.defineProperty(l,"__id",{value:++pE}),l.__id},clone:function l(i,r){r=r||{};var s,o;switch(lt.util.type(i)){case"Object":if(o=lt.util.objId(i),r[o])return r[o];s={},r[o]=s;for(var d in i)i.hasOwnProperty(d)&&(s[d]=l(i[d],r));return s;case"Array":return o=lt.util.objId(i),r[o]?r[o]:(s=[],r[o]=s,i.forEach(function(h,m){s[m]=l(h,r)}),s);default:return i}}},languages:{plain:is,plaintext:is,text:is,txt:is,extend:function(l,i){var r=lt.util.clone(lt.languages[l]);for(var s in i)r[s]=i[s];return r},insertBefore:function(l,i,r,s){s=s||lt.languages;var o=s[l],d={};for(var h in o)if(o.hasOwnProperty(h)){if(h==i)for(var m in r)r.hasOwnProperty(m)&&(d[m]=r[m]);r.hasOwnProperty(h)||(d[h]=o[h])}var g=s[l];return s[l]=d,lt.languages.DFS(lt.languages,function(y,b){b===g&&y!=l&&(this[y]=d)}),d},DFS:function l(i,r,s,o){o=o||{};var d=lt.util.objId;for(var h in i)if(i.hasOwnProperty(h)){r.call(i,h,i[h],s||h);var m=i[h],g=lt.util.type(m);g==="Object"&&!o[d(m)]?(o[d(m)]=!0,l(m,r,null,o)):g==="Array"&&!o[d(m)]&&(o[d(m)]=!0,l(m,r,h,o))}}},plugins:{},highlight:function(l,i,r){var s={code:l,grammar:i,language:r};if(lt.hooks.run("before-tokenize",s),!s.grammar)throw new Error('The language "'+s.language+'" has no grammar.');return s.tokens=lt.tokenize(s.code,s.grammar),lt.hooks.run("after-tokenize",s),Ar.stringify(lt.util.encode(s.tokens),s.language)},tokenize:function(l,i){var r=i.rest;if(r){for(var s in r)i[s]=r[s];delete i.rest}var o=new yE;return cs(o,o.head,l),fy(l,o,i,o.head,0),vE(o)},hooks:{all:{},add:function(l,i){var r=lt.hooks.all;r[l]=r[l]||[],r[l].push(i)},run:function(l,i){var r=lt.hooks.all[l];if(!(!r||!r.length))for(var s=0,o;o=r[s++];)o(i)}},Token:Ar};function Ar(l,i,r,s){this.type=l,this.content=i,this.alias=r,this.length=(s||"").length|0}function hp(l,i,r,s){l.lastIndex=i;var o=l.exec(r);if(o&&s&&o[1]){var d=o[1].length;o.index+=d,o[0]=o[0].slice(d)}return o}function fy(l,i,r,s,o,d){for(var h in r)if(!(!r.hasOwnProperty(h)||!r[h])){var m=r[h];m=Array.isArray(m)?m:[m];for(var g=0;g<m.length;++g){if(d&&d.cause==h+","+g)return;var y=m[g],b=y.inside,x=!!y.lookbehind,S=!!y.greedy,E=y.alias;if(S&&!y.pattern.global){var A=y.pattern.toString().match(/[imsuy]*$/)[0];y.pattern=RegExp(y.pattern.source,A+"g")}for(var C=y.pattern||y,_=s.next,B=o;_!==i.tail&&!(d&&B>=d.reach);B+=_.value.length,_=_.next){var X=_.value;if(i.length>l.length)return;if(!(X instanceof Ar)){var k=1,$;if(S){if($=hp(C,B,l,x),!$||$.index>=l.length)break;var O=$.index,q=$.index+$[0].length,Z=B;for(Z+=_.value.length;O>=Z;)_=_.next,Z+=_.value.length;if(Z-=_.value.length,B=Z,_.value instanceof Ar)continue;for(var G=_;G!==i.tail&&(Z<q||typeof G.value=="string");G=G.next)k++,Z+=G.value.length;k--,X=l.slice(B,Z),$.index-=B}else if($=hp(C,0,X,x),!$)continue;var O=$.index,ae=$[0],ee=X.slice(0,O),ie=X.slice(O+ae.length),fe=B+X.length;d&&fe>d.reach&&(d.reach=fe);var ne=_.prev;ee&&(ne=cs(i,ne,ee),B+=ee.length),bE(i,ne,k);var J=new Ar(h,b?lt.tokenize(ae,b):ae,E,ae);if(_=cs(i,ne,J),ie&&cs(i,_,ie),k>1){var Q={cause:h+","+g,reach:fe};fy(l,i,r,_.prev,B,Q),d&&Q.reach>d.reach&&(d.reach=Q.reach)}}}}}}function yE(){var l={value:null,prev:null,next:null},i={value:null,prev:l,next:null};l.next=i,this.head=l,this.tail=i,this.length=0}function cs(l,i,r){var s=i.next,o={value:r,prev:i,next:s};return i.next=o,s.prev=o,l.length++,o}function bE(l,i,r){for(var s=i.next,o=0;o<r&&s!==l.tail;o++)s=s.next;i.next=s,s.prev=i,l.length-=o}function vE(l){for(var i=[],r=l.head.next;r!==l.tail;)i.push(r.value),r=r.next;return i}const dy=lt,_l={}.hasOwnProperty;function hy(){}hy.prototype=dy;const he=new hy;he.highlight=xE;he.register=SE;he.alias=EE;he.registered=NE;he.listLanguages=wE;he.util.encode=AE;he.Token.stringify=mo;function xE(l,i){if(typeof l!="string")throw new TypeError("Expected `string` for `value`, got `"+l+"`");let r,s;if(i&&typeof i=="object")r=i;else{if(s=i,typeof s!="string")throw new TypeError("Expected `string` for `name`, got `"+s+"`");if(_l.call(he.languages,s))r=he.languages[s];else throw new Error("Unknown language: `"+s+"` is not registered")}return{type:"root",children:dy.highlight.call(he,l,r,s)}}function SE(l){if(typeof l!="function"||!l.displayName)throw new Error("Expected `function` for `syntax`, got `"+l+"`");_l.call(he.languages,l.displayName)||l(he)}function EE(l,i){const r=he.languages;let s={};typeof l=="string"?i&&(s[l]=i):s=l;let o;for(o in s)if(_l.call(s,o)){const d=s[o],h=typeof d=="string"?[d]:d;let m=-1;for(;++m<h.length;)r[h[m]]=r[o]}}function NE(l){if(typeof l!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+l+"`");return _l.call(he.languages,l)}function wE(){const l=he.languages,i=[];let r;for(r in l)_l.call(l,r)&&typeof l[r]=="object"&&i.push(r);return i}function mo(l,i){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(mo(l[o],i));return s}const r={attributes:{},classes:["token",l.type],content:mo(l.content,i),language:i,tag:"span",type:l.type};return l.alias&&r.classes.push(...typeof l.alias=="string"?[l.alias]:l.alias),he.hooks.run("wrap",r),uE(r.tag+"."+r.classes.join("."),TE(r.attributes),r.content)}function AE(l){return l}function TE(l){let i;for(i in l)_l.call(l,i)&&(l[i]=hE(l[i]));return l}he.register(sn);he.register(Mr);he.register(ws);he.register(Uo);he.register(Bo);he.register(Ho);he.register(Dr);he.register(Tl);he.register(Go);he.register(Yo);he.register(qo);he.register(Io);he.register(Xo);he.register(As);he.register(Fo);he.register(Zo);he.register($o);he.register(Vo);he.register(Ko);he.register(Qo);he.register(Jo);he.register(Wo);he.register(Po);he.register(Ts);he.register(ef);he.register(tf);he.register(nf);he.register(af);he.register(lf);he.register(rf);he.register(sf);he.register(uf);he.register(cf);he.register(of);he.register(Cs);he.register(ff);const gp={highlight(l,i){return he.highlight(l,i).children},registered(l){return he.registered(l)}};function CE(l,i){const r={old:[],new:[]};for(const s of l){const o=US([s],i);mp(o.old,r.old,s.oldStart,s.oldLines),mp(o.new,r.new,s.newStart,s.newLines)}return r}function mp(l,i,r,s){for(let o=r;o<r+s;o++)i[o-1]=l[o-1]??[]}function _E(){const{theme:l,toggleTheme:i}=Ve();return f.jsx("button",{onClick:i,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"?f.jsx(Cv,{className:"w-4 h-4"}):f.jsx(Sv,{className:"w-4 h-4"})})}function OE(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 po(l){return Aa(l)||$t(l)?l.lineNumber:Na(l)?l.newLineNumber:0}function jE(l){return $t(l)?"old":"new"}function kE(l,i){const r={};for(const s of l)for(const o of s.changes){const d=po(o),h=`${i}:${d}`;r[h]||(r[h]=Lt(o))}return r}function RE(l,i,r=0){const s=/^diff --git /gm,o=[];let d;for(;(d=s.exec(l))!==null;)o.push(d.index);let h=0;for(let m=0;m<o.length;m++){const g=o[m],y=m+1<o.length?o[m+1]:l.length,b=l.slice(g,y);if(b.includes(`a/${i}`)||b.includes(`b/${i}`)){if(h===r)return b;h++}}return null}function ME(){const{diffSet:l,rawDiff:i,selectedFile:r,viewMode:s,setViewMode:o,comments:d,activeCommentKey:h,addComment:m,updateComment:g,deleteComment:y,setActiveCommentKey:b,toggleHotkeyGuide:x,toggleWorkflowTips:S,focusedHunkIndex:E,setHunkCount:A,annotations:C,dismissAnnotation:_,metadata:B,reviewId:X}=Ve(),k=!!(B!=null&&B.githubPr),{isAvailable:$,startThread:q,replyToThread:Z}=wo(),G=$&&!!X,O=L.useMemo(()=>!l||!r?null:l.files.find(H=>Dt(H)===r)??null,[l,r]),ae=L.useMemo(()=>{if(!i||!r||!l)return null;const H=hl(r);let te=0;for(const ce of l.files){if(Dt(ce)===r)break;ce.path===H&&te++}return RE(i,H,te)},[i,r,l]),ee=L.useMemo(()=>{if(!ae)return[];try{return n1(ae)}catch{return[]}},[ae]),ie=L.useMemo(()=>{if(ee.length===0||!O)return;const H=OE(O.language);if(H){try{if(!gp.registered(H))return}catch{return}try{const te={refractor:gp,highlight:!0,language:H};return CE(ee[0].hunks,te)}catch{return}}},[ee,O,s]),fe=L.useMemo(()=>ee.length===0||!r?{}:kE(ee[0].hunks,r),[ee,r]),ne=L.useMemo(()=>{if(ee.length===0)return{};const H={};for(const te of ee[0].hunks)for(const ce of te.changes)H[Lt(ce)]=po(ce);return H},[ee]),J=L.useMemo(()=>{const H={};if(ee.length===0)return H;for(const te of ee[0].hunks)for(const ce of te.changes)H[Lt(ce)]=jE(ce);return H},[ee]),Q=L.useMemo(()=>r?d.map((H,te)=>({comment:H,index:te})).filter(H=>H.comment.file===r):[],[d,r]),R=L.useMemo(()=>{if(!r)return[];const H=hl(r);return C.filter(te=>te.file===H&&!te.dismissed)},[C,r]),z=L.useMemo(()=>{const H=new Map;for(const te of R)H.has(te.line)||H.set(te.line,[]),H.get(te.line).push(te);return H},[R]),le=L.useMemo(()=>k&&!G?{}:{onClick({change:H}){if(!H)return;const te=Lt(H);b(h===te?null:te)}},[h,b,k,G]),se=L.useCallback(({change:H,inHoverState:te,renderDefault:ce})=>{const Ee=po(H),pe=!k&&r&&Q.some(Be=>Be.comment.line===Ee),ye=z.has(Ee);return te&&(!k||G)?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"diff-gutter-add-comment",children:"+"}),ce()]}):pe?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"diff-comment-indicator"}),ce()]}):ye?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"diff-annotation-indicator"}),ce()]}):ce()},[r,Q,z,k,G]),ue=L.useMemo(()=>{if(!r)return{};const H={},te=new Map;if(!k)for(const pe of Q){const ye=pe.comment.line;te.has(ye)||te.set(ye,[]),te.get(ye).push(pe)}const ce=(pe,ye)=>!k&&G?Be=>q(X,{file:hl(r),line:pe,side:J[ye],body:Be}):void 0,Ee=new Set([...te.keys(),...z.keys()]);for(const pe of Ee){const ye=fe[`${r}:${pe}`];if(!ye)continue;const Be=te.get(pe),Qt=z.get(pe);H[ye]=f.jsxs(f.Fragment,{children:[Qt&&Qt.length>0&&f.jsx(XS,{annotations:Qt,onDismiss:_,onReply:G?(tt,ft)=>Z(X,tt,ft):void 0}),k&&G&&h===ye&&f.jsx("div",{className:"border-t border-border bg-surface",children:f.jsx(fo,{placeholder:"Start another conversation on this line…",submitLabel:"Comment",onSubmit:async tt=>{const ft=await q(X,{file:hl(r),line:pe,side:J[ye],body:tt});return ft.ok&&b(null),ft},onCancel:()=>b(null)})}),!k&&Be&&Be.length>0&&f.jsx(GS,{comments:Be,isFormOpen:h===ye,file:r,line:pe,onAdd:(tt,ft)=>{m({file:r,line:pe,body:tt,type:ft})},onAsk:ce(pe,ye),onUpdate:(tt,ft,Et)=>{g(tt,{file:r,line:pe,body:ft,type:Et})},onDelete:y,onOpenForm:()=>b(ye),onCloseForm:()=>b(null)}),!k&&!(Be!=null&&Be.length)&&h===ye&&f.jsx("div",{className:"border-t border-border bg-surface",children:f.jsx(ds,{file:r,line:pe,onSave:(tt,ft)=>{m({file:r,line:pe,body:tt,type:ft}),b(null)},onAsk:ce(pe,ye),onCancel:()=>b(null)})})]})}if(k&&G&&h&&!H[h]){const pe=ne[h];pe!==void 0&&(H[h]=f.jsx("div",{className:"border-t border-border bg-surface",children:f.jsx(fo,{placeholder:"Ask the agent about this line…",submitLabel:"Comment",onSubmit:async ye=>{const Be=await q(X,{file:hl(r),line:pe,side:J[h],body:ye});return Be.ok&&b(null),Be},onCancel:()=>b(null)})}))}if(!k&&h&&!H[h]){const pe=ne[h];pe!==void 0&&(H[h]=f.jsx("div",{className:"border-t border-border bg-surface",children:f.jsx(ds,{file:r,line:pe,onSave:(ye,Be)=>{m({file:r,line:pe,body:ye,type:Be}),b(null)},onAsk:ce(pe,h),onCancel:()=>b(null)})}))}return H},[r,Q,R,z,h,fe,ne,J,m,g,y,_,b,k,G,X,q,Z]);FS(ue);const N=L.useRef(null);if(L.useEffect(()=>{var H;A(((H=ee[0])==null?void 0:H.hunks.length)??0)},[ee,A]),L.useEffect(()=>{const H=N.current;if(!H||E===null)return;const te=H.querySelectorAll("tbody.diff-hunk");te.forEach(ce=>ce.classList.remove("diff-hunk-focused")),te[E]&&(te[E].scrollIntoView({behavior:"smooth",block:"center"}),te[E].classList.add("diff-hunk-focused"))},[E]),L.useEffect(()=>{function H(){if(E===null||ee.length===0||!r)return;const te=ee[0].hunks[E];if(!te||te.changes.length===0)return;const ce=te.changes[0],Ee=Lt(ce);b(Ee)}return document.addEventListener("diffprism:open-comment",H),()=>document.removeEventListener("diffprism:open-comment",H)},[E,ee,r,b]),!r||!l)return f.jsx("div",{className:"flex-1 flex items-center justify-center bg-background",children:f.jsxs("div",{className:"text-center",children:[f.jsx(wl,{className:"w-12 h-12 text-text-secondary/40 mx-auto mb-3"}),f.jsx("p",{className:"text-text-secondary text-sm",children:"Select a file to view changes"})]})});const I=hl(r);if(O!=null&&O.binary)return f.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[f.jsx(to,{path:I,stage:O==null?void 0:O.stage}),f.jsx("div",{className:"flex-1 flex items-center justify-center",children:f.jsx("div",{className:"text-center",children:f.jsx("p",{className:"text-text-secondary text-sm",children:"Binary file — cannot display diff"})})})]});if(ee.length===0)return f.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[f.jsx(to,{path:I,stage:O==null?void 0:O.stage}),f.jsx("div",{className:"flex-1 flex items-center justify-center",children:f.jsx("div",{className:"text-center",children:f.jsx("p",{className:"text-text-secondary text-sm",children:"No diff content available for this file"})})})]});const W=ee[0];return f.jsxs("div",{className:"flex-1 flex flex-col bg-background min-h-0",children:[f.jsx(to,{path:I,stage:O==null?void 0:O.stage,additions:O==null?void 0:O.additions,deletions:O==null?void 0:O.deletions,viewMode:s,onViewModeChange:o,onToggleHotkeyGuide:x,onToggleWorkflowTips:S}),f.jsx("div",{ref:N,className:"flex-1 overflow-auto",children:f.jsx(gS,{viewType:s,diffType:W.type,hunks:W.hunks,tokens:ie,widgets:ue,gutterEvents:le,renderGutter:se,children:H=>H.map(te=>f.jsx(Kp,{hunk:te},te.content))})})]})}function to({path:l,stage:i,additions:r,deletions:s,viewMode:o,onViewModeChange:d,onToggleHotkeyGuide:h,onToggleWorkflowTips:m}){return f.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5 bg-surface border-b border-border flex-shrink-0",children:[f.jsx(wl,{className:"w-4 h-4 text-text-secondary flex-shrink-0"}),f.jsx("span",{className:"text-text-primary text-sm font-mono truncate",children:l}),i&&f.jsx("span",{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded border ${Uv[i]}`,children:i==="staged"?"Staged":"Unstaged"}),f.jsxs("div",{className:"flex items-center gap-2 ml-auto flex-shrink-0",children:[r!==void 0&&r>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",r]}),s!==void 0&&s>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",s]}),o&&d&&f.jsxs("div",{className:"flex items-center rounded border border-border ml-2",children:[f.jsx("button",{onClick:()=>d("unified"),className:`p-1 ${o==="unified"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Unified view",children:f.jsx(Av,{className:"w-3.5 h-3.5"})}),f.jsx("button",{onClick:()=>d("split"),className:`p-1 ${o==="split"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Split view",children:f.jsx(gv,{className:"w-3.5 h-3.5"})})]}),m&&f.jsx("button",{onClick:m,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:"Workflow tips",children:f.jsx(No,{className:"w-4 h-4"})}),h&&f.jsx("button",{onClick:h,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:"Keyboard shortcuts (?)",children:f.jsx(xo,{className:"w-4 h-4"})}),f.jsx(_E,{})]})]})}function DE({onSubmit:l,onDismiss:i,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}){const[d,h]=L.useState(""),[m,g]=L.useState(null),{diffSet:y,fileStatuses:b,comments:x,draftComment:S,saveDraftComment:E,setActiveCommentKey:A,setDraftComment:C}=Ve(),_=(y==null?void 0:y.files.reduce((O,ae)=>O+ae.additions,0))??0,B=(y==null?void 0:y.files.reduce((O,ae)=>O+ae.deletions,0))??0,X=(y==null?void 0:y.files.length)??0,k=!!(S&&S.body.trim());function $(O){const ae=Object.values(b).some(ee=>ee!=="unreviewed");l({decision:O,comments:Ve.getState().comments,fileStatuses:ae?b:void 0,summary:d.trim()||void 0})}function q(O){if(k){g(O);return}$(O)}function Z(){m&&(E(),$(m),g(null))}function G(){m&&(C(null),A(null),$(m),g(null))}return r&&s&&!o?f.jsx("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Tr,{className:"w-4 h-4 text-success"}),f.jsx("span",{className:"text-sm text-success font-medium",children:"Review submitted"}),f.jsxs("span",{className:"relative flex h-2 w-2 ml-2",children:[f.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-success opacity-75"}),f.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-success"})]}),f.jsx("span",{className:"text-xs text-text-secondary",children:"Watching for changes..."})]})}):f.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:[r&&s&&o&&f.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-accent",children:[f.jsxs("span",{className:"relative flex h-2 w-2",children:[f.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-info opacity-75"}),f.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-info"})]}),"New changes detected"]}),f.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[f.jsxs("span",{className:"text-text-secondary text-xs",children:[X," file",X!==1?"s":""," changed"]}),_>0&&f.jsxs("span",{className:"text-success text-xs font-mono",children:["+",_]}),B>0&&f.jsxs("span",{className:"text-danger text-xs font-mono",children:["-",B]}),x.length>0&&f.jsxs("span",{className:"flex items-center gap-1 text-accent text-xs",children:[f.jsx(Sl,{className:"w-3 h-3"}),x.length," comment",x.length!==1?"s":""]})]}),f.jsx("textarea",{value:d,onChange:O=>h(O.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"}),m&&f.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:[f.jsx(El,{className:"w-4 h-4 text-warning flex-shrink-0"}),f.jsx("span",{className:"text-sm text-text-primary",children:"You have an unsaved comment. Save it before submitting?"}),f.jsx("div",{className:"flex-1"}),f.jsx("button",{onClick:Z,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"}),f.jsx("button",{onClick:G,className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Discard & Submit"}),f.jsx("button",{onClick:()=>g(null),className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsxs("button",{onClick:()=>q("approved"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ea.approve}`,children:[f.jsx(Tr,{className:"w-4 h-4"}),"Approve"]}),f.jsxs("button",{onClick:()=>q("changes_requested"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ea.reject}`,children:[f.jsx(kr,{className:"w-4 h-4"}),"Request Changes"]}),f.jsxs("button",{onClick:()=>q("approved_with_comments"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ea.comment}`,children:[f.jsx(Sl,{className:"w-4 h-4"}),"Approve with Comments"]}),i&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"w-px h-6 bg-border"}),f.jsxs("button",{onClick:i,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer ${ea.dismiss}`,children:[f.jsx(xp,{className:"w-4 h-4"}),"Dismiss"]})]})]})]})}function zE({onDismiss:l}){const{annotations:i,reviewId:r,metadata:s}=Ve(),{submitPrReview:o}=wo(),[d,h]=L.useState(""),[m,g]=L.useState(new Set),[y,b]=L.useState(null),[x,S]=L.useState(null),[E,A]=L.useState(null),C=s==null?void 0:s.githubPr,_=i.filter(Z=>Z.author==="reviewer"&&!Z.dismissed),B=!d.trim();async function X(Z){if(!r)return;b(Z),S(null);const G=await o(r,{event:Z,summary:d.trim()||void 0,threadIds:_.filter(O=>m.has(O.id)).map(O=>O.id)});b(null),G.ok?A(G.url):S(G.error)}function k(Z){g(G=>{const O=new Set(G);return O.has(Z)?O.delete(Z):O.add(Z),O})}if(E)return f.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0 flex items-center gap-3",children:[f.jsx(Tr,{className:"w-4 h-4 text-success"}),f.jsx("span",{className:"text-sm text-success font-medium",children:"Review posted to GitHub"}),f.jsxs("a",{href:E,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1 text-xs text-accent hover:underline",children:["View on GitHub",f.jsx(So,{className:"w-3 h-3"})]})]});const $=y!==null,q=(Z,G,O,ae,ee)=>f.jsxs("button",{onClick:()=>X(Z),disabled:$||ee,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed ${O}`,children:[f.jsx(ae,{className:"w-4 h-4"}),y===Z?"Posting…":G]});return f.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:[f.jsxs("div",{className:"text-xs text-text-secondary mb-2",children:["Submit your review to GitHub",C?` · ${C.owner}/${C.repo}#${C.number}`:""]}),f.jsx("textarea",{value:d,onChange:Z=>h(Z.target.value),placeholder:"Summary — optional to approve, required to request changes or comment",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"}),_.length>0&&f.jsxs("fieldset",{className:"mb-3",children:[f.jsx("legend",{className:"text-xs text-text-secondary mb-1",children:"Post your comments as inline review comments (your opening message only — agent replies stay here)"}),f.jsx("div",{className:"flex flex-col gap-1 max-h-28 overflow-y-auto",children:_.map(Z=>f.jsxs("label",{className:"flex items-center gap-2 text-xs text-text-primary cursor-pointer select-none",children:[f.jsx("input",{type:"checkbox",checked:m.has(Z.id),onChange:()=>k(Z.id),className:"rounded border-border accent-accent"}),f.jsxs("span",{className:"font-mono text-text-secondary",children:[Z.file,":",Z.line]}),f.jsx("span",{className:"truncate",children:Z.body})]},Z.id))})]}),x&&f.jsxs("div",{role:"alert",className:"flex items-start gap-2 mb-3 px-3 py-2 rounded-lg bg-danger/10 border border-danger/30 text-sm text-text-primary whitespace-pre-line",children:[f.jsx(El,{className:"w-4 h-4 mt-0.5 text-danger flex-shrink-0"}),x]}),f.jsxs("div",{className:"flex items-center gap-3",children:[q("APPROVE","Approve",ea.approve,Tr,!1),q("REQUEST_CHANGES","Request changes",ea.reject,kr,B),q("COMMENT","Comment",ea.comment,Sl,B),l&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"w-px h-6 bg-border"}),f.jsxs("button",{onClick:l,disabled:$,className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer disabled:opacity-40 ${ea.dismiss}`,children:[f.jsx(xp,{className:"w-4 h-4"}),"Close without posting"]})]})]})]})}const LE=navigator.platform.toUpperCase().includes("MAC"),UE=LE?"⌘":"Ctrl",BE=[{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:[`${UE} + Enter`],action:"Save comment"},{keys:["Esc"],action:"Cancel comment / Close guide"},{keys:["?"],action:"Toggle this guide"}];function HE(){const{showHotkeyGuide:l,toggleHotkeyGuide:i}=Ve();return L.useEffect(()=>{if(!l)return;function r(s){(s.key==="Escape"||s.key==="?")&&(s.preventDefault(),s.stopPropagation(),i())}return document.addEventListener("keydown",r,!0),()=>document.removeEventListener("keydown",r,!0)},[l,i]),l?f.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:i,children:f.jsxs("div",{className:"bg-surface border border-border rounded-lg shadow-xl p-6 max-w-sm w-full mx-4",onClick:r=>r.stopPropagation(),children:[f.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Keyboard Shortcuts"}),f.jsx("div",{className:"space-y-2",children:BE.map(r=>f.jsxs("div",{className:"flex items-center justify-between gap-4",children:[f.jsx("span",{className:"text-text-secondary text-sm",children:r.action}),f.jsx("div",{className:"flex items-center gap-1.5",children:r.keys.map((s,o)=>f.jsxs("span",{className:"flex items-center gap-1.5",children:[o>0&&f.jsx("span",{className:"text-text-secondary/50 text-xs",children:"/"}),f.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))})]},r.action))})]})}):null}const GE={navigation:"Navigation",review:"Review Workflow",commenting:"Commenting",general:"General"},YE=["navigation","review","commenting","general"],qE=[{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"}],pp="diffprism-tips-seen";function IE(){const{showWorkflowTips:l,toggleWorkflowTips:i}=Ve();if(L.useEffect(()=>{localStorage.getItem(pp)||(localStorage.setItem(pp,"1"),i())},[]),L.useEffect(()=>{if(!l)return;function s(o){o.key==="Escape"&&(o.preventDefault(),o.stopPropagation(),i())}return document.addEventListener("keydown",s,!0),()=>document.removeEventListener("keydown",s,!0)},[l,i]),!l)return null;const r=new Map;for(const s of qE)r.has(s.category)||r.set(s.category,[]),r.get(s.category).push(s);return f.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:i,children:f.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:[f.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Workflow Tips"}),f.jsx("div",{className:"space-y-4",children:YE.map(s=>{const o=r.get(s);return!o||o.length===0?null:f.jsxs("div",{children:[f.jsx("h3",{className:"text-text-secondary text-xs font-semibold uppercase tracking-wider mb-2",children:GE[s]}),f.jsx("div",{className:"space-y-1.5",children:o.map(d=>f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsx("span",{className:"text-text-secondary text-sm leading-snug",children:d.text}),d.shortcut&&f.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:d.shortcut})]},d.id))})]},s)})}),f.jsxs("div",{className:"mt-5 flex items-center justify-between",children:[f.jsx("span",{className:"text-text-secondary/60 text-xs",children:"Reopen anytime from the toolbar"}),f.jsx("button",{onClick:i,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 XE="Your comments",FE={finding:wa,suggestion:No,question:xo,warning:El};function ZE({body:l}){const[i,r]=L.useState(!1),s=l.length>120||l.includes(`
|
|
345
|
-
`),o=L.useCallback(d=>{d.stopPropagation(),r(h=>!h)},[]);return s?i?f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-text-primary whitespace-pre-wrap",children:l}),f.jsx("button",{onClick:o,className:"text-[10px] text-accent hover:underline mt-0.5 cursor-pointer",children:"Show less"})]}):f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-text-primary truncate",children:l}),f.jsx("button",{onClick:o,className:"text-[10px] text-accent hover:underline mt-0.5 cursor-pointer",children:"Show more"})]}):f.jsx("p",{className:"text-xs text-text-primary",children:l})}function $E({annotations:l,onDismiss:i,onNavigate:r}){const[s,o]=L.useState(!1),d=L.useMemo(()=>{const g=s?l:l.filter(b=>!b.dismissed),y=new Map;for(const b of g){const x=(b.author??"agent")==="reviewer"?XE:b.source.agent;y.has(x)||y.set(x,[]),y.get(x).push(b)}return y},[l,s]),h=l.filter(g=>!g.dismissed).length,m=l.some(g=>(g.author??"agent")==="reviewer");return l.length===0?null:f.jsxs("div",{className:"border-t border-border flex-shrink-0 max-h-[40%] overflow-hidden flex flex-col",children:[f.jsxs("div",{className:"px-4 py-2 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[m?f.jsx(Sl,{className:"w-4 h-4 text-text-secondary"}):f.jsx(bo,{className:"w-4 h-4 text-text-secondary"}),f.jsxs("span",{className:"text-xs font-semibold text-text-secondary uppercase tracking-wide",children:[m?"Annotations & comments":"Agent Annotations"," (",h,")"]})]}),l.some(g=>g.dismissed)&&f.jsxs("button",{onClick:()=>o(!s),className:"flex items-center gap-1 text-xs text-text-secondary hover:text-text-primary cursor-pointer",children:[s?f.jsx(pv,{className:"w-3 h-3"}):f.jsx(Eo,{className:"w-3 h-3"}),s?"Hide dismissed":"Show dismissed"]})]}),f.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:Array.from(d.entries()).map(([g,y])=>f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("div",{className:"px-4 py-1.5 flex items-center gap-2",children:[f.jsx("span",{className:"text-xs font-medium text-accent",children:g}),f.jsxs("span",{className:"text-xs text-text-secondary",children:["(",y.length,")"]})]}),y.map(b=>{var E;const x=FE[b.type]??wa,S=os[b.category]??os.other;return f.jsxs("div",{className:`px-4 py-2 flex items-start gap-2 hover:bg-text-primary/5 cursor-pointer group ${b.dismissed?"opacity-40":""}`,onClick:()=>r(b),children:[f.jsx(x,{className:`w-3.5 h-3.5 mt-0.5 flex-shrink-0 ${S}`}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[f.jsxs("span",{className:"text-xs text-text-secondary font-mono truncate",children:[b.file,":",b.line]}),(b.author??"agent")==="agent"&&f.jsx("span",{className:`text-[10px] font-semibold uppercase ${S}`,children:b.category})]}),f.jsx(ZE,{body:b.body}),Pp(b)?f.jsx("p",{className:"text-[10px] text-text-secondary italic mt-0.5",children:"Waiting for an agent"}):(((E=b.replies)==null?void 0:E.length)??0)>0?f.jsxs("p",{className:"text-[10px] text-text-secondary mt-0.5",children:[b.replies.length," ",b.replies.length===1?"reply":"replies"]}):null]}),!b.dismissed&&f.jsx("button",{onClick:A=>{A.stopPropagation(),i(b.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:f.jsx(kr,{className:"w-3 h-3"})})]},b.id)})]},g))})]})}function gy({onSubmit:l,onDismiss:i,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}){const{annotations:d,dismissAnnotation:h,selectFile:m,focusAnnotation:g,diffSet:y,metadata:b}=Ve(),x=!!(b!=null&&b.githubPr),S=E=>{if(!y)return;if(y.files.find(_=>Dt(_)===E)){m(E);return}const C=y.files.find(_=>_.path===E);C&&m(Dt(C))};return f.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[f.jsx(Gv,{}),f.jsx(Yv,{}),f.jsxs("div",{className:"flex flex-1 min-h-0",children:[f.jsxs("div",{className:"w-[280px] flex-shrink-0 flex flex-col overflow-hidden",children:[f.jsx("div",{className:"flex-1 min-h-0",children:f.jsx(Qv,{onSubmit:l})}),f.jsx($E,{annotations:d,onDismiss:h,onNavigate:E=>{S(E.file),E.dismissed||g(E.id)}})]}),f.jsx(ME,{})]}),x?f.jsx(zE,{onDismiss:i}):f.jsx(DE,{onSubmit:l,onDismiss:i,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}),f.jsx(HE,{}),f.jsx(IE,{})]})}function VE(l){const r=Date.now()-l,s=Math.floor(r/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 KE(l){if(l.startsWith("github:"))return l.slice(7);const i=l.split("/");return i[i.length-1]||l}const yp={pending:"Pending",in_review:"In Review",changes_requested:"Changes Req.",approved:"Approved",approved_with_comments:"Approved",dismissed:"Dismissed",submitted:"Submitted"};function QE(l){const{status:i,decision:r}=l,s=i==="submitted"?r??"submitted":i,o=km[s]??km.submitted,d=yp[s]??yp.submitted;return f.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded ${o}`,children:d})}function JE({sessions:l,activeSessionId:i,onSelect:r,onClose:s,onOpenProject:o,onReviewPr:d}){return f.jsxs("div",{className:"flex flex-col h-full bg-surface border-r border-border",children:[f.jsxs("div",{className:"px-3 py-3 border-b border-border flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-text-primary text-xs font-semibold uppercase tracking-wider",children:"Sessions"}),f.jsxs("span",{className:"text-text-secondary text-[10px]",children:[l.length," session",l.length!==1?"s":""]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[d&&f.jsx("button",{onClick:d,className:"p-1 rounded hover:bg-border/50 text-text-secondary hover:text-accent transition-colors",title:"Review GitHub PR",children:f.jsx(ta,{className:"w-3.5 h-3.5"})}),o&&f.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:f.jsx(Sp,{className:"w-3.5 h-3.5"})})]})]}),f.jsx("div",{className:"flex-1 overflow-y-auto",children:l.length===0?f.jsx("div",{className:"flex flex-col items-center justify-center h-full px-4 text-center",children:f.jsx("p",{className:"text-text-secondary text-xs",children:"No sessions yet. Reviews will appear here automatically."})}):f.jsx("div",{className:"py-1",children:l.map(h=>{const m=h.id===i,g=h.source==="manual",y=h.projectPath.startsWith("github:");return f.jsxs("div",{className:`group relative px-3 py-2.5 cursor-pointer border-l-2 transition-colors ${m?"bg-accent/10 border-l-accent":h.needsAttention?"bg-warning/5 border-l-warning hover:bg-warning/10":"border-l-transparent hover:bg-border/20"}`,onClick:()=>r(h.id),role:"button",tabIndex:0,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&r(h.id)},children:[f.jsx("button",{onClick:b=>{b.stopPropagation(),s(h.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:m?1:void 0},title:"Dismiss session",children:f.jsx(kr,{className:"w-3 h-3"})}),f.jsxs("div",{className:"flex items-start justify-between gap-1.5 mb-1 pr-7",children:[f.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 flex-1",children:[h.needsAttention&&f.jsx(wa,{className:"w-3.5 h-3.5 text-warning flex-shrink-0 animate-pulse"}),h.hasNewChanges&&f.jsx(Nv,{className:"w-3 h-3 text-accent flex-shrink-0 animate-pulse","aria-label":"New changes",children:f.jsx("title",{children:"New changes since you last looked"})}),y?f.jsx(ta,{className:"w-3.5 h-3.5 text-accent flex-shrink-0"}):g?f.jsx(Ea,{className:"w-3.5 h-3.5 text-text-secondary flex-shrink-0"}):null,f.jsx("span",{className:"text-text-primary text-xs font-medium truncate",children:h.title||KE(h.projectPath)})]}),f.jsx("div",{className:"flex-shrink-0",children:QE(h)})]}),h.reasoning&&f.jsx("p",{className:"text-text-secondary text-[11px] leading-tight mb-1 line-clamp-2",children:h.reasoning}),f.jsxs("div",{className:"flex items-center gap-2 text-[10px] text-text-secondary",children:[h.branch&&f.jsxs("span",{className:"flex items-center gap-0.5 truncate",children:[f.jsx(Tn,{className:"w-2.5 h-2.5"}),h.branch]}),f.jsxs("span",{className:"flex items-center gap-0.5 ml-auto flex-shrink-0",children:[f.jsx(hv,{className:"w-2.5 h-2.5"}),VE(h.createdAt)]})]}),f.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-[10px]",children:[f.jsxs("span",{className:"text-text-secondary",children:[h.fileCount," file",h.fileCount!==1?"s":""]}),h.additions>0&&f.jsxs("span",{className:"text-success font-mono",children:["+",h.additions]}),h.deletions>0&&f.jsxs("span",{className:"text-danger font-mono",children:["-",h.deletions]})]})]},h.id)})})})]})}function WE({permission:l,enabled:i,onToggle:r}){const s=l==="denied",o=l==="granted"&&i,d=s?"Notifications blocked by browser":o?"Notifications on":"Enable notifications";return f.jsx("button",{onClick:r,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:d,children:o?f.jsx(cv,{className:"w-4 h-4"}):f.jsx(uv,{className:"w-4 h-4"})})}function PE(){const[l,i]=L.useState(null);return L.useEffect(()=>{const r=new URLSearchParams(window.location.search).get("httpPort");r&&fetch(`http://localhost:${r}/api/feedback?kind=feedback`).then(s=>s.ok?s.json():null).then(s=>{s!=null&&s.url&&i(s.url)}).catch(()=>{})},[]),l?f.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-[11px] text-text-secondary hover:text-text-primary transition-colors",title:"Opens a prefilled GitHub issue. Nothing is sent until you submit it.",children:[f.jsx(Sl,{className:"w-3 h-3"}),"Send feedback"]}):null}function eN(){return new URLSearchParams(window.location.search).get("httpPort")}function tN({onSuccess:l}){const[i,r]=L.useState(""),[s,o]=L.useState(!1),[d,h]=L.useState(null),m=L.useCallback(async()=>{const y=eN();if(!(!y||!i.trim())){o(!0),h(null);try{const b=await fetch(`http://localhost:${y}/api/pr/open`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prUrl:i.trim()})}),x=await b.json();b.ok?(r(""),l==null||l()):h(x.error??"Failed to open PR")}catch{h("Could not connect to server")}finally{o(!1)}}},[i,l]),g=L.useCallback(y=>{y.key==="Enter"&&!y.shiftKey&&i.trim()&&(y.preventDefault(),m())},[m,i]);return f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"relative",children:[f.jsx("input",{type:"text",value:i,onChange:y=>{r(y.target.value),d&&h(null)},onKeyDown:g,placeholder:"https://github.com/owner/repo/pull/123",className:"w-full bg-background border border-border rounded-md px-3 py-2 pl-9 text-text-primary text-xs placeholder:text-text-secondary/50 focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-colors",disabled:s,autoFocus:!0}),f.jsx(ta,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-text-secondary"})]}),f.jsx("button",{onClick:m,disabled:s||!i.trim(),className:"w-full bg-accent/15 text-accent text-xs font-medium rounded-md 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:s?f.jsxs(f.Fragment,{children:[f.jsx(no,{className:"w-3.5 h-3.5 animate-spin"}),"Fetching PR..."]}):f.jsxs(f.Fragment,{children:[f.jsx(So,{className:"w-3.5 h-3.5"}),"Review PR"]})}),d&&f.jsx("p",{className:"text-danger text-xs",children:d}),f.jsxs("p",{className:"text-text-secondary text-[10px]",children:["Also accepts ",f.jsx("code",{className:"text-accent/70",children:"owner/repo#123"})," format"]})]})}const nN=[{value:"working-copy",label:"Working Copy"},{value:"unstaged",label:"Unstaged"},{value:"staged",label:"Staged"}];function hs(){return new URLSearchParams(window.location.search).get("httpPort")}function aN(l){const[i,r]=L.useState(null),[s,o]=L.useState(!1),d=L.useCallback(async h=>{const m=hs();if(m){o(!0);try{const g=h?`?path=${encodeURIComponent(h)}`:"",y=await fetch(`http://localhost:${m}/api/fs/list${g}`);if(y.ok){const b=await y.json();r(b)}}catch{}finally{o(!1)}}},[]);return L.useEffect(()=>{d(l)},[d,l]),{listing:i,loadingDir:s,fetchDir:d}}function lN({onSuccess:l}){const[i,r]=L.useState(),[s,o]=L.useState(null),[d,h]=L.useState(!1),[m,g]=L.useState(null),{listing:y,loadingDir:b,fetchDir:x}=aN(i);L.useEffect(()=>{const E=hs();E&&fetch(`http://localhost:${E}/api/status`).then(A=>A.json()).then(A=>{const C=A;if(C.cwd&&r(C.cwd),C.defaultDiffRef){const _=C.defaultDiffRef;o(B=>B??_)}}).catch(()=>{})},[]);const S=L.useCallback(async E=>{const A=hs();if(A){h(!0),g(null);try{const C=await fetch(`http://localhost:${A}/api/projects/open`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s?{projectPath:E,diffRef:s}:{projectPath:E})}),_=await C.json();C.ok?l==null||l():g(_.error??"Failed to open project")}catch{g("Could not connect to server")}finally{h(!1)}}},[s,l]);return f.jsxs("div",{className:"space-y-3",children:[y&&f.jsxs("div",{className:"flex items-center gap-1 text-text-secondary text-[11px] font-mono truncate min-h-[20px]",children:[y.parentPath&&f.jsx("button",{onClick:()=>x(y.parentPath),className:"p-0.5 rounded hover:bg-border/50 hover:text-text-primary transition-colors flex-shrink-0",title:"Go up",children:f.jsx(vo,{className:"w-3 h-3"})}),f.jsx("span",{className:"truncate",children:y.path}),y.isGitRepo&&f.jsx(Tn,{className:"w-3 h-3 text-success flex-shrink-0 ml-1"})]}),(y==null?void 0:y.isGitRepo)&&f.jsxs("button",{onClick:()=>S(y.path),disabled:d,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:[f.jsx(Ea,{className:"w-3.5 h-3.5"}),d?"Opening...":`Open ${y.path.split("/").pop()}`]}),f.jsx("div",{className:"border border-border rounded max-h-[280px] overflow-y-auto",children:b?f.jsx("div",{className:"px-3 py-4 text-text-secondary text-xs text-center",children:"Loading..."}):(y==null?void 0:y.dirs.length)===0?f.jsx("div",{className:"px-3 py-4 text-text-secondary text-xs text-center",children:"No subdirectories"}):y==null?void 0:y.dirs.map(E=>f.jsxs("button",{onClick:()=>{g(null),E.isGitRepo,x(E.path)},onDoubleClick:()=>{E.isGitRepo&&S(E.path)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-left hover:bg-border/30 transition-colors group",children:[f.jsx(xv,{className:`w-3.5 h-3.5 flex-shrink-0 ${E.isGitRepo?"text-accent":"text-text-secondary"}`}),f.jsx("span",{className:"text-text-primary text-xs truncate flex-1",children:E.name}),E.isGitRepo&&f.jsx(Tn,{className:"w-3 h-3 text-success flex-shrink-0"})]},E.path))}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-text-secondary text-xs mb-1",children:"Diff scope"}),f.jsx("select",{value:s??"",disabled:s===null,onChange:E=>o(E.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:nN.map(E=>f.jsx("option",{value:E.value,children:E.label},E.value))})]}),m&&f.jsx("p",{className:"text-danger text-xs",children:m})]})}function rN({sessions:l,activeSessionId:i,hasDiffLoaded:r,onSelectSession:s,onCloseSession:o,onSubmit:d,onDismiss:h,notificationPermission:m,notificationsEnabled:g,onToggleNotifications:y}){const[b,x]=L.useState("none");return f.jsxs("div",{className:"h-screen flex bg-background",children:[f.jsxs("div",{className:"w-[260px] flex-shrink-0 flex flex-col",children:[f.jsx(JE,{sessions:l,activeSessionId:i,onSelect:s,onClose:o,onOpenProject:()=>x("open-project"),onReviewPr:()=>x("review-pr")}),f.jsxs("div",{className:"px-3 py-2 border-t border-border border-r border-r-border bg-surface space-y-1.5",children:[y&&m&&f.jsx(WE,{permission:m,enabled:g??!1,onToggle:y}),f.jsx(PE,{})]})]}),f.jsx("div",{className:"flex-1 min-w-0",children:r?f.jsx(gy,{onSubmit:d,onDismiss:h,isWatchMode:!0,watchSubmitted:!1,hasUnreviewedChanges:!0}):b==="open-project"?f.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:f.jsxs("div",{className:"max-w-sm w-full",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[f.jsx(Ea,{className:"w-5 h-5 text-accent"}),f.jsx("h2",{className:"text-text-primary text-lg font-semibold",children:"Open Project"})]}),f.jsx("div",{className:"bg-surface border border-border rounded-lg p-5",children:f.jsx(lN,{onSuccess:()=>x("none")})}),f.jsx("button",{onClick:()=>x("none"),className:"mt-3 text-text-secondary text-xs hover:text-text-primary transition-colors",children:"Cancel"})]})}):b==="review-pr"?f.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:f.jsxs("div",{className:"max-w-sm w-full",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[f.jsx(ta,{className:"w-5 h-5 text-accent"}),f.jsx("h2",{className:"text-text-primary text-lg font-semibold",children:"Review PR"})]}),f.jsx("div",{className:"bg-surface border border-border rounded-lg p-5",children:f.jsx(tN,{onSuccess:()=>x("none")})}),f.jsx("button",{onClick:()=>x("none"),className:"mt-3 text-text-secondary text-xs hover:text-text-primary transition-colors",children:"Cancel"})]})}):f.jsx(iN,{hasAnySessions:l.length>0,onOpenProject:()=>x("open-project"),onReviewPr:()=>x("review-pr")})})]})}function iN({hasAnySessions:l,onOpenProject:i,onReviewPr:r}){return l?f.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-8",children:[f.jsx("div",{className:"w-14 h-14 rounded-full bg-surface border border-border flex items-center justify-center mb-4",children:f.jsx(wl,{className:"w-7 h-7 text-text-secondary"})}),f.jsx("h2",{className:"text-text-primary text-lg font-semibold mb-2",children:"Select a session"}),f.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."}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs("button",{onClick:r,className:"flex items-center gap-1.5 text-accent text-xs font-medium hover:text-accent/80 transition-colors",children:[f.jsx(ta,{className:"w-3.5 h-3.5"}),"Review PR"]}),f.jsxs("button",{onClick:i,className:"flex items-center gap-1.5 text-text-secondary text-xs font-medium hover:text-text-primary transition-colors",children:[f.jsx(Ea,{className:"w-3.5 h-3.5"}),"Open Project"]})]})]}):f.jsx(sN,{onOpenProject:i,onReviewPr:r})}function sN({onOpenProject:l,onReviewPr:i}){const[r,s]=L.useState(null);L.useEffect(()=>{const d=hs();d&&fetch(`http://localhost:${d}/api/status`).then(h=>h.json()).then(h=>{s(h)}).catch(()=>{})},[]);const o=d=>{if(d<60)return`${Math.floor(d)}s`;if(d<3600)return`${Math.floor(d/60)}m ${Math.floor(d%60)}s`;const h=Math.floor(d/3600),m=Math.floor(d%3600/60);return`${h}h ${m}m`};return f.jsx("div",{className:"flex flex-col items-center justify-center h-full px-8",children:f.jsxs("div",{className:"max-w-md w-full",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx("h1",{className:"text-text-primary text-2xl font-bold mb-1",children:"DiffPrism"}),f.jsx("p",{className:"text-text-secondary text-sm",children:"Code review for AI-generated changes"})]}),f.jsxs("div",{className:"flex gap-3 mb-4",children:[f.jsxs("button",{onClick:i,className:"flex-1 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",children:[f.jsx(ta,{className:"w-4 h-4"}),"Review PR"]}),f.jsxs("button",{onClick:l,className:"flex-1 flex items-center justify-center gap-2 bg-surface border border-border text-text-primary text-sm font-medium rounded-lg px-4 py-3 hover:bg-border/30 transition-colors",children:[f.jsx(Ea,{className:"w-4 h-4"}),"Open Project"]})]}),f.jsxs("div",{className:"bg-surface border border-border rounded-lg p-6",children:[f.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Getting Started"}),f.jsxs("div",{className:"mb-5",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[f.jsx(_v,{className:"w-4 h-4 text-text-secondary"}),f.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"From the terminal"})]}),f.jsxs("div",{className:"space-y-1.5 pl-6",children:[f.jsx("code",{className:"block text-accent text-xs",children:"$ diffprism review"}),f.jsx("code",{className:"block text-accent text-xs",children:"$ diffprism review --staged"})]})]}),f.jsxs("div",{className:"mb-5",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[f.jsx(wl,{className:"w-4 h-4 text-text-secondary"}),f.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"From Claude Code"})]}),f.jsxs("p",{className:"text-text-secondary text-xs pl-6",children:["Type ",f.jsx("code",{className:"text-accent",children:"/review"})," or use the"," ",f.jsx("code",{className:"text-accent",children:"open_review"})," MCP tool"]})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[f.jsx(Tv,{className:"w-4 h-4 text-text-secondary"}),f.jsx("span",{className:"text-text-secondary text-xs font-medium",children:"First time?"})]}),f.jsxs("div",{className:"pl-6",children:[f.jsx("code",{className:"block text-accent text-xs mb-1",children:"$ diffprism setup"}),f.jsx("p",{className:"text-text-secondary text-xs",children:"Configures Claude Code integration in one command"})]})]})]}),r&&f.jsxs("p",{className:"text-text-secondary text-xs text-center mt-4",children:["Server running · PID ",r.pid," · up ",o(r.uptime)]})]})})}function uN(){const{permission:l,enabled:i,toggle:r,notifyNewSession:s,notifySessionUpdated:o,notifyDiffUpdated:d,notifyAnnotationAdded:h}=nv({onSessionSelect:J}),{sendResult:m,selectSession:g,closeSession:y,connectionStatus:b}=ev({onSessionAdded:s,onSessionUpdated:o,onDiffUpdated:d,onAnnotationAdded:h}),{diffSet:x,metadata:S,theme:E,isWatchMode:A,watchSubmitted:C,hasUnreviewedChanges:_,setWatchSubmitted:B,isServerMode:X,sessions:k,activeSessionId:$,selectSession:q,removeSession:Z,clearReview:G}=Ve(),[O,ae]=L.useState(!1),[ee,ie]=L.useState(3);av(),L.useEffect(()=>{const z=document.documentElement;E==="dark"?z.classList.add("dark"):z.classList.remove("dark")},[E]);function fe(z){m(z),X?G():A?B(!0):ae(!0)}function ne(){m({decision:"dismissed",comments:[]}),X&&$?(Z($),y($)):A?B(!0):ae(!0)}function J(z){q(z),g(z)}function Q(z){Z(z),y(z)}const R=L.useCallback(()=>{window.close()},[]);return L.useEffect(()=>{if(!O||A||X)return;if(ee<=0){R();return}const z=setTimeout(()=>{ie(le=>le-1)},1e3);return()=>clearTimeout(z)},[O,ee,R,A,X]),O?f.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:f.jsxs("div",{className:"text-center",children:[f.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:f.jsx("svg",{className:"w-8 h-8 text-success",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),f.jsx("h1",{className:"text-text-primary text-xl font-semibold mb-2",children:"Review Submitted"}),f.jsxs("p",{className:"text-text-secondary text-sm",children:["Closing in ",ee,"s..."]})]})}):X?b==="disconnected"?f.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:f.jsxs("div",{className:"text-center",children:[f.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:f.jsx("svg",{className:"w-6 h-6 text-danger",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),f.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),f.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server."})]})}):f.jsx(rN,{sessions:k,activeSessionId:$,hasDiffLoaded:!!x,onSelectSession:J,onCloseSession:Q,onSubmit:fe,onDismiss:ne,notificationPermission:l,notificationsEnabled:i,onToggleNotifications:r}):x?f.jsx(gy,{onSubmit:fe,onDismiss:ne,isWatchMode:A||X,watchSubmitted:C,hasUnreviewedChanges:_}):f.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:f.jsx("div",{className:"text-center",children:b==="disconnected"?f.jsxs(f.Fragment,{children:[f.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:f.jsx("svg",{className:"w-6 h-6 text-danger",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),f.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),f.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server. Please check the terminal and try again."})]}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mb-4 flex justify-center",children:f.jsx("div",{className:"w-8 h-8 border-2 border-accent/30 border-t-accent rounded-full animate-spin"})}),f.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:b==="connecting"?"Connecting...":"Waiting for review data..."}),f.jsx("p",{className:"text-text-secondary text-sm",children:(S==null?void 0:S.title)??"Loading review..."})]})})})}V0.createRoot(document.getElementById("root")).render(f.jsx(uN,{}));
|