@adhdev/daemon-standalone 0.9.77-rc.50 → 0.9.77-rc.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +320 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/index-01wE493H.css +1 -0
- package/public/assets/index-m6K5hfST.js +170 -0
- package/public/assets/{terminal-B-dmfv31.js → terminal-Cn_eJIrc.js} +1 -1
- package/public/assets/vendor-BoAU5RMW.js +2769 -0
- package/public/index.html +3 -3
- package/vendor/mcp-server/index.js +322 -40
- package/vendor/mcp-server/index.js.map +1 -1
- package/public/assets/index-BWLH33S7.js +0 -98
- package/public/assets/index-BdY6qPu0.css +0 -1
- package/public/assets/vendor-CLec0455.js +0 -2723
|
@@ -0,0 +1,2769 @@
|
|
|
1
|
+
function h0(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in e)){const o=Object.getOwnPropertyDescriptor(i,r);o&&Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ta=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ga(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ym={exports:{}},$a={},Jm={exports:{}},de={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its 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 Ko=Symbol.for("react.element"),p0=Symbol.for("react.portal"),f0=Symbol.for("react.fragment"),m0=Symbol.for("react.strict_mode"),v0=Symbol.for("react.profiler"),g0=Symbol.for("react.provider"),b0=Symbol.for("react.context"),w0=Symbol.for("react.forward_ref"),y0=Symbol.for("react.suspense"),_0=Symbol.for("react.memo"),x0=Symbol.for("react.lazy"),Th=Symbol.iterator;function k0(e){return e===null||typeof e!="object"?null:(e=Th&&e[Th]||e["@@iterator"],typeof e=="function"?e:null)}var qm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Km=Object.assign,Xm={};function Mr(e,t,n){this.props=e,this.context=t,this.refs=Xm,this.updater=n||qm}Mr.prototype.isReactComponent={};Mr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Mr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qm(){}Qm.prototype=Mr.prototype;function Wc(e,t,n){this.props=e,this.context=t,this.refs=Xm,this.updater=n||qm}var Hc=Wc.prototype=new Qm;Hc.constructor=Wc;Km(Hc,Mr.prototype);Hc.isPureReactComponent=!0;var Oh=Array.isArray,ev=Object.prototype.hasOwnProperty,Uc={current:null},tv={key:!0,ref:!0,__self:!0,__source:!0};function nv(e,t,n){var i,r={},o=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)ev.call(t,i)&&!tv.hasOwnProperty(i)&&(r[i]=t[i]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}if(e&&e.defaultProps)for(i in a=e.defaultProps,a)r[i]===void 0&&(r[i]=a[i]);return{$$typeof:Ko,type:e,key:o,ref:s,props:r,_owner:Uc.current}}function S0(e,t){return{$$typeof:Ko,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Zc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ko}function z0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Nh=/\/+/g;function Sl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?z0(""+e.key):t.toString(36)}function $s(e,t,n,i,r){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ko:case p0:s=!0}}if(s)return s=e,r=r(s),e=i===""?"."+Sl(s,0):i,Oh(r)?(n="",e!=null&&(n=e.replace(Nh,"$&/")+"/"),$s(r,t,n,"",function(u){return u})):r!=null&&(Zc(r)&&(r=S0(r,n+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(Nh,"$&/")+"/")+e)),t.push(r)),1;if(s=0,i=i===""?".":i+":",Oh(e))for(var a=0;a<e.length;a++){o=e[a];var l=i+Sl(o,a);s+=$s(o,t,n,l,r)}else if(l=k0(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=i+Sl(o,a++),s+=$s(o,t,n,l,r);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function us(e,t,n){if(e==null)return e;var i=[],r=0;return $s(e,i,"","",function(o){return t.call(n,o,r++)}),i}function C0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var xt={current:null},js={transition:null},D0={ReactCurrentDispatcher:xt,ReactCurrentBatchConfig:js,ReactCurrentOwner:Uc};function iv(){throw Error("act(...) is not supported in production builds of React.")}de.Children={map:us,forEach:function(e,t,n){us(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return us(e,function(){t++}),t},toArray:function(e){return us(e,function(t){return t})||[]},only:function(e){if(!Zc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};de.Component=Mr;de.Fragment=f0;de.Profiler=v0;de.PureComponent=Wc;de.StrictMode=m0;de.Suspense=y0;de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D0;de.act=iv;de.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=Km({},e.props),r=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Uc.current),t.key!==void 0&&(r=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)ev.call(t,l)&&!tv.hasOwnProperty(l)&&(i[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}return{$$typeof:Ko,type:e.type,key:r,ref:o,props:i,_owner:s}};de.createContext=function(e){return e={$$typeof:b0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:g0,_context:e},e.Consumer=e};de.createElement=nv;de.createFactory=function(e){var t=nv.bind(null,e);return t.type=e,t};de.createRef=function(){return{current:null}};de.forwardRef=function(e){return{$$typeof:w0,render:e}};de.isValidElement=Zc;de.lazy=function(e){return{$$typeof:x0,_payload:{_status:-1,_result:e},_init:C0}};de.memo=function(e,t){return{$$typeof:_0,type:e,compare:t===void 0?null:t}};de.startTransition=function(e){var t=js.transition;js.transition={};try{e()}finally{js.transition=t}};de.unstable_act=iv;de.useCallback=function(e,t){return xt.current.useCallback(e,t)};de.useContext=function(e){return xt.current.useContext(e)};de.useDebugValue=function(){};de.useDeferredValue=function(e){return xt.current.useDeferredValue(e)};de.useEffect=function(e,t){return xt.current.useEffect(e,t)};de.useId=function(){return xt.current.useId()};de.useImperativeHandle=function(e,t,n){return xt.current.useImperativeHandle(e,t,n)};de.useInsertionEffect=function(e,t){return xt.current.useInsertionEffect(e,t)};de.useLayoutEffect=function(e,t){return xt.current.useLayoutEffect(e,t)};de.useMemo=function(e,t){return xt.current.useMemo(e,t)};de.useReducer=function(e,t,n){return xt.current.useReducer(e,t,n)};de.useRef=function(e){return xt.current.useRef(e)};de.useState=function(e){return xt.current.useState(e)};de.useSyncExternalStore=function(e,t,n){return xt.current.useSyncExternalStore(e,t,n)};de.useTransition=function(){return xt.current.useTransition()};de.version="18.3.1";Jm.exports=de;var Z=Jm.exports;const q=Ga(Z),E0=h0({__proto__:null,default:q},[Z]);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its 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 P0=Z,A0=Symbol.for("react.element"),I0=Symbol.for("react.fragment"),T0=Object.prototype.hasOwnProperty,O0=P0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,N0={key:!0,ref:!0,__self:!0,__source:!0};function rv(e,t,n){var i,r={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(i in t)T0.call(t,i)&&!N0.hasOwnProperty(i)&&(r[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps,t)r[i]===void 0&&(r[i]=t[i]);return{$$typeof:A0,type:e,key:o,ref:s,props:r,_owner:O0.current}}$a.Fragment=I0;$a.jsx=rv;$a.jsxs=rv;Ym.exports=$a;var zl=Ym.exports,ov={exports:{}},Vt={},sv={exports:{}},av={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its 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
|
+
*/(function(e){function t(V,ee){var w=V.length;V.push(ee);e:for(;0<w;){var he=w-1>>>1,ge=V[he];if(0<r(ge,ee))V[he]=ee,V[w]=ge,w=he;else break e}}function n(V){return V.length===0?null:V[0]}function i(V){if(V.length===0)return null;var ee=V[0],w=V.pop();if(w!==ee){V[0]=w;e:for(var he=0,ge=V.length,S=ge>>>1;he<S;){var Oe=2*(he+1)-1,_e=V[Oe],ae=Oe+1,vt=V[ae];if(0>r(_e,w))ae<ge&&0>r(vt,_e)?(V[he]=vt,V[ae]=w,he=ae):(V[he]=_e,V[Oe]=w,he=Oe);else if(ae<ge&&0>r(vt,w))V[he]=vt,V[ae]=w,he=ae;else break e}}return ee}function r(V,ee){var w=V.sortIndex-ee.sortIndex;return w!==0?w:V.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,c=null,h=3,p=!1,m=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(V){for(var ee=n(u);ee!==null;){if(ee.callback===null)i(u);else if(ee.startTime<=V)i(u),ee.sortIndex=ee.expirationTime,t(l,ee);else break;ee=n(u)}}function k(V){if(v=!1,b(V),!m)if(n(l)!==null)m=!0,$(D);else{var ee=n(u);ee!==null&&re(k,ee.startTime-V)}}function D(V,ee){m=!1,v&&(v=!1,f(C),C=-1),p=!0;var w=h;try{for(b(ee),c=n(l);c!==null&&(!(c.expirationTime>ee)||V&&!F());){var he=c.callback;if(typeof he=="function"){c.callback=null,h=c.priorityLevel;var ge=he(c.expirationTime<=ee);ee=e.unstable_now(),typeof ge=="function"?c.callback=ge:c===n(l)&&i(l),b(ee)}else i(l);c=n(l)}if(c!==null)var S=!0;else{var Oe=n(u);Oe!==null&&re(k,Oe.startTime-ee),S=!1}return S}finally{c=null,h=w,p=!1}}var _=!1,P=null,C=-1,G=5,z=-1;function F(){return!(e.unstable_now()-z<G)}function B(){if(P!==null){var V=e.unstable_now();z=V;var ee=!0;try{ee=P(!0,V)}finally{ee?X():(_=!1,P=null)}}else _=!1}var X;if(typeof g=="function")X=function(){g(B)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,T=te.port2;te.port1.onmessage=B,X=function(){T.postMessage(null)}}else X=function(){y(B,0)};function $(V){P=V,_||(_=!0,X())}function re(V,ee){C=y(function(){V(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,$(D))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(V){switch(h){case 1:case 2:case 3:var ee=3;break;default:ee=h}var w=h;h=ee;try{return V()}finally{h=w}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,ee){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var w=h;h=V;try{return ee()}finally{h=w}},e.unstable_scheduleCallback=function(V,ee,w){var he=e.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?he+w:he):w=he,V){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=w+ge,V={id:d++,callback:ee,priorityLevel:V,startTime:w,expirationTime:ge,sortIndex:-1},w>he?(V.sortIndex=w,t(u,V),n(l)===null&&V===n(u)&&(v?(f(C),C=-1):v=!0,re(k,w-he))):(V.sortIndex=ge,t(l,V),m||p||(m=!0,$(D))),V},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(V){var ee=h;return function(){var w=h;h=ee;try{return V.apply(this,arguments)}finally{h=w}}}})(av);sv.exports=av;var R0=sv.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its 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 L0=Z,Ft=R0;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var lv=new Set,zo={};function ji(e,t){zr(e,t),zr(e+"Capture",t)}function zr(e,t){for(zo[e]=t,e=0;e<t.length;e++)lv.add(t[e])}var Rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yu=Object.prototype.hasOwnProperty,M0=/^[: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]*$/,Rh={},Lh={};function F0(e){return yu.call(Lh,e)?!0:yu.call(Rh,e)?!1:M0.test(e)?Lh[e]=!0:(Rh[e]=!0,!1)}function V0(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function G0(e,t,n,i){if(t===null||typeof t>"u"||V0(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function kt(e,t,n,i,r,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){lt[e]=new kt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];lt[t]=new kt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){lt[e]=new kt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){lt[e]=new kt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){lt[e]=new kt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){lt[e]=new kt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){lt[e]=new kt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){lt[e]=new kt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){lt[e]=new kt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yc=/[\-:]([a-z])/g;function Jc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Yc,Jc);lt[t]=new kt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Yc,Jc);lt[t]=new kt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Yc,Jc);lt[t]=new kt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){lt[e]=new kt(e,1,!1,e.toLowerCase(),null,!1,!1)});lt.xlinkHref=new kt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){lt[e]=new kt(e,1,!1,e.toLowerCase(),null,!0,!0)});function qc(e,t,n,i){var r=lt.hasOwnProperty(t)?lt[t]:null;(r!==null?r.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(G0(t,n,r,i)&&(n=null),i||r===null?F0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:"":n:(t=r.attributeName,i=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}var Vn=L0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cs=Symbol.for("react.element"),ir=Symbol.for("react.portal"),rr=Symbol.for("react.fragment"),Kc=Symbol.for("react.strict_mode"),_u=Symbol.for("react.profiler"),uv=Symbol.for("react.provider"),cv=Symbol.for("react.context"),Xc=Symbol.for("react.forward_ref"),xu=Symbol.for("react.suspense"),ku=Symbol.for("react.suspense_list"),Qc=Symbol.for("react.memo"),Un=Symbol.for("react.lazy"),dv=Symbol.for("react.offscreen"),Mh=Symbol.iterator;function Yr(e){return e===null||typeof e!="object"?null:(e=Mh&&e[Mh]||e["@@iterator"],typeof e=="function"?e:null)}var Me=Object.assign,Cl;function so(e){if(Cl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Cl=t&&t[1]||""}return`
|
|
34
|
+
`+Cl+e}var Dl=!1;function El(e,t){if(!e||Dl)return"";Dl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var i=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){i=u}e.call(t.prototype)}else{try{throw Error()}catch(u){i=u}e()}}catch(u){if(u&&i&&typeof u.stack=="string"){for(var r=u.stack.split(`
|
|
35
|
+
`),o=i.stack.split(`
|
|
36
|
+
`),s=r.length-1,a=o.length-1;1<=s&&0<=a&&r[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(r[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||r[s]!==o[a]){var l=`
|
|
37
|
+
`+r[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Dl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?so(e):""}function $0(e){switch(e.tag){case 5:return so(e.type);case 16:return so("Lazy");case 13:return so("Suspense");case 19:return so("SuspenseList");case 0:case 2:case 15:return e=El(e.type,!1),e;case 11:return e=El(e.type.render,!1),e;case 1:return e=El(e.type,!0),e;default:return""}}function Su(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rr:return"Fragment";case ir:return"Portal";case _u:return"Profiler";case Kc:return"StrictMode";case xu:return"Suspense";case ku:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cv:return(e.displayName||"Context")+".Consumer";case uv:return(e._context.displayName||"Context")+".Provider";case Xc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qc:return t=e.displayName||null,t!==null?t:Su(e.type)||"Memo";case Un:t=e._payload,e=e._init;try{return Su(e(t))}catch{}}return null}function j0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Su(t);case 8:return t===Kc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function li(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function B0(e){var t=hv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){i=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ds(e){e._valueTracker||(e._valueTracker=B0(e))}function pv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=hv(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function na(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}}function zu(e,t){var n=t.checked;return Me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fh(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=li(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function fv(e,t){t=t.checked,t!=null&&qc(e,"checked",t,!1)}function Cu(e,t){fv(e,t);var n=li(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Du(e,t.type,n):t.hasOwnProperty("defaultValue")&&Du(e,t.type,li(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Du(e,t,n){(t!=="number"||na(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ao=Array.isArray;function gr(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+li(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Eu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return Me({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Gh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(ao(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:li(n)}}function mv(e,t){var n=li(t.value),i=li(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),i!=null&&(e.defaultValue=""+i)}function $h(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vv(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hs,gv=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,i,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,r)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(hs=hs||document.createElement("div"),hs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Co(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ho={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},W0=["Webkit","ms","Moz","O"];Object.keys(ho).forEach(function(e){W0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ho[t]=ho[e]})});function bv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ho.hasOwnProperty(e)&&ho[e]?(""+t).trim():t+"px"}function wv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=bv(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}var H0=Me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Au(e,t){if(t){if(H0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Iu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Tu=null;function ed(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ou=null,br=null,wr=null;function jh(e){if(e=es(e)){if(typeof Ou!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Ua(t),Ou(e.stateNode,e.type,t))}}function yv(e){br?wr?wr.push(e):wr=[e]:br=e}function _v(){if(br){var e=br,t=wr;if(wr=br=null,jh(e),t)for(e=0;e<t.length;e++)jh(t[e])}}function xv(e,t){return e(t)}function kv(){}var Pl=!1;function Sv(e,t,n){if(Pl)return e(t,n);Pl=!0;try{return xv(e,t,n)}finally{Pl=!1,(br!==null||wr!==null)&&(kv(),_v())}}function Do(e,t){var n=e.stateNode;if(n===null)return null;var i=Ua(n);if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(L(231,t,typeof n));return n}var Nu=!1;if(Rn)try{var Jr={};Object.defineProperty(Jr,"passive",{get:function(){Nu=!0}}),window.addEventListener("test",Jr,Jr),window.removeEventListener("test",Jr,Jr)}catch{Nu=!1}function U0(e,t,n,i,r,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var po=!1,ia=null,ra=!1,Ru=null,Z0={onError:function(e){po=!0,ia=e}};function Y0(e,t,n,i,r,o,s,a,l){po=!1,ia=null,U0.apply(Z0,arguments)}function J0(e,t,n,i,r,o,s,a,l){if(Y0.apply(this,arguments),po){if(po){var u=ia;po=!1,ia=null}else throw Error(L(198));ra||(ra=!0,Ru=u)}}function Bi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function zv(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 Bh(e){if(Bi(e)!==e)throw Error(L(188))}function q0(e){var t=e.alternate;if(!t){if(t=Bi(e),t===null)throw Error(L(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return Bh(r),e;if(o===i)return Bh(r),t;o=o.sibling}throw Error(L(188))}if(n.return!==i.return)n=r,i=o;else{for(var s=!1,a=r.child;a;){if(a===n){s=!0,n=r,i=o;break}if(a===i){s=!0,i=r,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,i=r;break}if(a===i){s=!0,i=o,n=r;break}a=a.sibling}if(!s)throw Error(L(189))}}if(n.alternate!==i)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function Cv(e){return e=q0(e),e!==null?Dv(e):null}function Dv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Dv(e);if(t!==null)return t;e=e.sibling}return null}var Ev=Ft.unstable_scheduleCallback,Wh=Ft.unstable_cancelCallback,K0=Ft.unstable_shouldYield,X0=Ft.unstable_requestPaint,Be=Ft.unstable_now,Q0=Ft.unstable_getCurrentPriorityLevel,td=Ft.unstable_ImmediatePriority,Pv=Ft.unstable_UserBlockingPriority,oa=Ft.unstable_NormalPriority,e_=Ft.unstable_LowPriority,Av=Ft.unstable_IdlePriority,ja=null,yn=null;function t_(e){if(yn&&typeof yn.onCommitFiberRoot=="function")try{yn.onCommitFiberRoot(ja,e,void 0,(e.current.flags&128)===128)}catch{}}var sn=Math.clz32?Math.clz32:r_,n_=Math.log,i_=Math.LN2;function r_(e){return e>>>=0,e===0?32:31-(n_(e)/i_|0)|0}var ps=64,fs=4194304;function lo(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sa(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~r;a!==0?i=lo(a):(o&=s,o!==0&&(i=lo(o)))}else s=n&~r,s!==0?i=lo(s):o!==0&&(i=lo(o));if(i===0)return 0;if(t!==0&&t!==i&&!(t&r)&&(r=i&-i,o=t&-t,r>=o||r===16&&(o&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)n=31-sn(t),r=1<<n,i|=e[n],t&=~r;return i}function o_(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function s_(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-sn(o),a=1<<s,l=r[s];l===-1?(!(a&n)||a&i)&&(r[s]=o_(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Lu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Iv(){var e=ps;return ps<<=1,!(ps&4194240)&&(ps=64),e}function Al(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-sn(t),e[t]=n}function a_(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-sn(n),o=1<<r;t[r]=0,i[r]=-1,e[r]=-1,n&=~o}}function nd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-sn(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}var we=0;function Tv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ov,id,Nv,Rv,Lv,Mu=!1,ms=[],Qn=null,ei=null,ti=null,Eo=new Map,Po=new Map,Yn=[],l_="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 submit".split(" ");function Hh(e,t){switch(e){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":ei=null;break;case"mouseover":case"mouseout":ti=null;break;case"pointerover":case"pointerout":Eo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Po.delete(t.pointerId)}}function qr(e,t,n,i,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},t!==null&&(t=es(t),t!==null&&id(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function u_(e,t,n,i,r){switch(t){case"focusin":return Qn=qr(Qn,e,t,n,i,r),!0;case"dragenter":return ei=qr(ei,e,t,n,i,r),!0;case"mouseover":return ti=qr(ti,e,t,n,i,r),!0;case"pointerover":var o=r.pointerId;return Eo.set(o,qr(Eo.get(o)||null,e,t,n,i,r)),!0;case"gotpointercapture":return o=r.pointerId,Po.set(o,qr(Po.get(o)||null,e,t,n,i,r)),!0}return!1}function Mv(e){var t=Ei(e.target);if(t!==null){var n=Bi(t);if(n!==null){if(t=n.tag,t===13){if(t=zv(n),t!==null){e.blockedOn=t,Lv(e.priority,function(){Nv(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 Bs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Fu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Tu=i,n.target.dispatchEvent(i),Tu=null}else return t=es(n),t!==null&&id(t),e.blockedOn=n,!1;t.shift()}return!0}function Uh(e,t,n){Bs(e)&&n.delete(t)}function c_(){Mu=!1,Qn!==null&&Bs(Qn)&&(Qn=null),ei!==null&&Bs(ei)&&(ei=null),ti!==null&&Bs(ti)&&(ti=null),Eo.forEach(Uh),Po.forEach(Uh)}function Kr(e,t){e.blockedOn===t&&(e.blockedOn=null,Mu||(Mu=!0,Ft.unstable_scheduleCallback(Ft.unstable_NormalPriority,c_)))}function Ao(e){function t(r){return Kr(r,e)}if(0<ms.length){Kr(ms[0],e);for(var n=1;n<ms.length;n++){var i=ms[n];i.blockedOn===e&&(i.blockedOn=null)}}for(Qn!==null&&Kr(Qn,e),ei!==null&&Kr(ei,e),ti!==null&&Kr(ti,e),Eo.forEach(t),Po.forEach(t),n=0;n<Yn.length;n++)i=Yn[n],i.blockedOn===e&&(i.blockedOn=null);for(;0<Yn.length&&(n=Yn[0],n.blockedOn===null);)Mv(n),n.blockedOn===null&&Yn.shift()}var yr=Vn.ReactCurrentBatchConfig,aa=!0;function d_(e,t,n,i){var r=we,o=yr.transition;yr.transition=null;try{we=1,rd(e,t,n,i)}finally{we=r,yr.transition=o}}function h_(e,t,n,i){var r=we,o=yr.transition;yr.transition=null;try{we=4,rd(e,t,n,i)}finally{we=r,yr.transition=o}}function rd(e,t,n,i){if(aa){var r=Fu(e,t,n,i);if(r===null)Gl(e,t,i,la,n),Hh(e,i);else if(u_(r,e,t,n,i))i.stopPropagation();else if(Hh(e,i),t&4&&-1<l_.indexOf(e)){for(;r!==null;){var o=es(r);if(o!==null&&Ov(o),o=Fu(e,t,n,i),o===null&&Gl(e,t,i,la,n),o===r)break;r=o}r!==null&&i.stopPropagation()}else Gl(e,t,i,null,n)}}var la=null;function Fu(e,t,n,i){if(la=null,e=ed(i),e=Ei(e),e!==null)if(t=Bi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=zv(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 la=e,null}function Fv(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Q0()){case td:return 1;case Pv:return 4;case oa:case e_:return 16;case Av:return 536870912;default:return 16}default:return 16}}var qn=null,od=null,Ws=null;function Vv(){if(Ws)return Ws;var e,t=od,n=t.length,i,r="value"in qn?qn.value:qn.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var s=n-e;for(i=1;i<=s&&t[n-i]===r[o-i];i++);return Ws=r.slice(e,1<i?1-i:void 0)}function Hs(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 vs(){return!0}function Zh(){return!1}function Gt(e){function t(n,i,r,o,s){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?vs:Zh,this.isPropagationStopped=Zh,this}return Me(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=vs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vs)},persist:function(){},isPersistent:vs}),t}var Fr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sd=Gt(Fr),Qo=Me({},Fr,{view:0,detail:0}),p_=Gt(Qo),Il,Tl,Xr,Ba=Me({},Qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ad,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!==Xr&&(Xr&&e.type==="mousemove"?(Il=e.screenX-Xr.screenX,Tl=e.screenY-Xr.screenY):Tl=Il=0,Xr=e),Il)},movementY:function(e){return"movementY"in e?e.movementY:Tl}}),Yh=Gt(Ba),f_=Me({},Ba,{dataTransfer:0}),m_=Gt(f_),v_=Me({},Qo,{relatedTarget:0}),Ol=Gt(v_),g_=Me({},Fr,{animationName:0,elapsedTime:0,pseudoElement:0}),b_=Gt(g_),w_=Me({},Fr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),y_=Gt(w_),__=Me({},Fr,{data:0}),Jh=Gt(__),x_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k_={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"},S_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=S_[e])?!!t[e]:!1}function ad(){return z_}var C_=Me({},Qo,{key:function(e){if(e.key){var t=x_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?k_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ad,charCode:function(e){return e.type==="keypress"?Hs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),D_=Gt(C_),E_=Me({},Ba,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qh=Gt(E_),P_=Me({},Qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ad}),A_=Gt(P_),I_=Me({},Fr,{propertyName:0,elapsedTime:0,pseudoElement:0}),T_=Gt(I_),O_=Me({},Ba,{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}),N_=Gt(O_),R_=[9,13,27,32],ld=Rn&&"CompositionEvent"in window,fo=null;Rn&&"documentMode"in document&&(fo=document.documentMode);var L_=Rn&&"TextEvent"in window&&!fo,Gv=Rn&&(!ld||fo&&8<fo&&11>=fo),Kh=" ",Xh=!1;function $v(e,t){switch(e){case"keyup":return R_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var or=!1;function M_(e,t){switch(e){case"compositionend":return jv(t);case"keypress":return t.which!==32?null:(Xh=!0,Kh);case"textInput":return e=t.data,e===Kh&&Xh?null:e;default:return null}}function F_(e,t){if(or)return e==="compositionend"||!ld&&$v(e,t)?(e=Vv(),Ws=od=qn=null,or=!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 Gv&&t.locale!=="ko"?null:t.data;default:return null}}var V_={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 Qh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!V_[e.type]:t==="textarea"}function Bv(e,t,n,i){yv(i),t=ua(t,"onChange"),0<t.length&&(n=new sd("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var mo=null,Io=null;function G_(e){eg(e,0)}function Wa(e){var t=lr(e);if(pv(t))return e}function $_(e,t){if(e==="change")return t}var Wv=!1;if(Rn){var Nl;if(Rn){var Rl="oninput"in document;if(!Rl){var ep=document.createElement("div");ep.setAttribute("oninput","return;"),Rl=typeof ep.oninput=="function"}Nl=Rl}else Nl=!1;Wv=Nl&&(!document.documentMode||9<document.documentMode)}function tp(){mo&&(mo.detachEvent("onpropertychange",Hv),Io=mo=null)}function Hv(e){if(e.propertyName==="value"&&Wa(Io)){var t=[];Bv(t,Io,e,ed(e)),Sv(G_,t)}}function j_(e,t,n){e==="focusin"?(tp(),mo=t,Io=n,mo.attachEvent("onpropertychange",Hv)):e==="focusout"&&tp()}function B_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wa(Io)}function W_(e,t){if(e==="click")return Wa(t)}function H_(e,t){if(e==="input"||e==="change")return Wa(t)}function U_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var un=typeof Object.is=="function"?Object.is:U_;function To(e,t){if(un(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!yu.call(t,r)||!un(e[r],t[r]))return!1}return!0}function np(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ip(e,t){var n=np(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=np(n)}}function Uv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zv(){for(var e=window,t=na();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=na(e.document)}return t}function ud(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")}function Z_(e){var t=Zv(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Uv(n.ownerDocument.documentElement,n)){if(i!==null&&ud(n)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!e.extend&&o>i&&(r=i,i=o,o=r),r=ip(n,o);var s=ip(n,i);r&&s&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),o>i?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Y_=Rn&&"documentMode"in document&&11>=document.documentMode,sr=null,Vu=null,vo=null,Gu=!1;function rp(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gu||sr==null||sr!==na(i)||(i=sr,"selectionStart"in i&&ud(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),vo&&To(vo,i)||(vo=i,i=ua(Vu,"onSelect"),0<i.length&&(t=new sd("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=sr)))}function gs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ar={animationend:gs("Animation","AnimationEnd"),animationiteration:gs("Animation","AnimationIteration"),animationstart:gs("Animation","AnimationStart"),transitionend:gs("Transition","TransitionEnd")},Ll={},Yv={};Rn&&(Yv=document.createElement("div").style,"AnimationEvent"in window||(delete ar.animationend.animation,delete ar.animationiteration.animation,delete ar.animationstart.animation),"TransitionEvent"in window||delete ar.transitionend.transition);function Ha(e){if(Ll[e])return Ll[e];if(!ar[e])return e;var t=ar[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yv)return Ll[e]=t[n];return e}var Jv=Ha("animationend"),qv=Ha("animationiteration"),Kv=Ha("animationstart"),Xv=Ha("transitionend"),Qv=new Map,op="abort auxClick 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(" ");function hi(e,t){Qv.set(e,t),ji(t,[e])}for(var Ml=0;Ml<op.length;Ml++){var Fl=op[Ml],J_=Fl.toLowerCase(),q_=Fl[0].toUpperCase()+Fl.slice(1);hi(J_,"on"+q_)}hi(Jv,"onAnimationEnd");hi(qv,"onAnimationIteration");hi(Kv,"onAnimationStart");hi("dblclick","onDoubleClick");hi("focusin","onFocus");hi("focusout","onBlur");hi(Xv,"onTransitionEnd");zr("onMouseEnter",["mouseout","mouseover"]);zr("onMouseLeave",["mouseout","mouseover"]);zr("onPointerEnter",["pointerout","pointerover"]);zr("onPointerLeave",["pointerout","pointerover"]);ji("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ji("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ji("onBeforeInput",["compositionend","keypress","textInput","paste"]);ji("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ji("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ji("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uo="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(" "),K_=new Set("cancel close invalid load scroll toggle".split(" ").concat(uo));function sp(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,J0(i,t,void 0,e),e.currentTarget=null}function eg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var s=i.length-1;0<=s;s--){var a=i[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&r.isPropagationStopped())break e;sp(r,a,u),o=l}else for(s=0;s<i.length;s++){if(a=i[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&r.isPropagationStopped())break e;sp(r,a,u),o=l}}}if(ra)throw e=Ru,ra=!1,Ru=null,e}function De(e,t){var n=t[Hu];n===void 0&&(n=t[Hu]=new Set);var i=e+"__bubble";n.has(i)||(tg(t,e,2,!1),n.add(i))}function Vl(e,t,n){var i=0;t&&(i|=4),tg(n,e,i,t)}var bs="_reactListening"+Math.random().toString(36).slice(2);function Oo(e){if(!e[bs]){e[bs]=!0,lv.forEach(function(n){n!=="selectionchange"&&(K_.has(n)||Vl(n,!1,e),Vl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bs]||(t[bs]=!0,Vl("selectionchange",!1,t))}}function tg(e,t,n,i){switch(Fv(t)){case 1:var r=d_;break;case 4:r=h_;break;default:r=rd}n=r.bind(null,t,n,e),r=void 0,!Nu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Gl(e,t,n,i,r){var o=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var s=i.tag;if(s===3||s===4){var a=i.stateNode.containerInfo;if(a===r||a.nodeType===8&&a.parentNode===r)break;if(s===4)for(s=i.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===r||l.nodeType===8&&l.parentNode===r))return;s=s.return}for(;a!==null;){if(s=Ei(a),s===null)return;if(l=s.tag,l===5||l===6){i=o=s;continue e}a=a.parentNode}}i=i.return}Sv(function(){var u=o,d=ed(n),c=[];e:{var h=Qv.get(e);if(h!==void 0){var p=sd,m=e;switch(e){case"keypress":if(Hs(n)===0)break e;case"keydown":case"keyup":p=D_;break;case"focusin":m="focus",p=Ol;break;case"focusout":m="blur",p=Ol;break;case"beforeblur":case"afterblur":p=Ol;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":p=Yh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=m_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=A_;break;case Jv:case qv:case Kv:p=b_;break;case Xv:p=T_;break;case"scroll":p=p_;break;case"wheel":p=N_;break;case"copy":case"cut":case"paste":p=y_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=qh}var v=(t&4)!==0,y=!v&&e==="scroll",f=v?h!==null?h+"Capture":null:h;v=[];for(var g=u,b;g!==null;){b=g;var k=b.stateNode;if(b.tag===5&&k!==null&&(b=k,f!==null&&(k=Do(g,f),k!=null&&v.push(No(g,k,b)))),y)break;g=g.return}0<v.length&&(h=new p(h,m,null,n,d),c.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Tu&&(m=n.relatedTarget||n.fromElement)&&(Ei(m)||m[Ln]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?Ei(m):null,m!==null&&(y=Bi(m),m!==y||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(v=Yh,k="onMouseLeave",f="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=qh,k="onPointerLeave",f="onPointerEnter",g="pointer"),y=p==null?h:lr(p),b=m==null?h:lr(m),h=new v(k,g+"leave",p,n,d),h.target=y,h.relatedTarget=b,k=null,Ei(d)===u&&(v=new v(f,g+"enter",m,n,d),v.target=b,v.relatedTarget=y,k=v),y=k,p&&m)t:{for(v=p,f=m,g=0,b=v;b;b=Ki(b))g++;for(b=0,k=f;k;k=Ki(k))b++;for(;0<g-b;)v=Ki(v),g--;for(;0<b-g;)f=Ki(f),b--;for(;g--;){if(v===f||f!==null&&v===f.alternate)break t;v=Ki(v),f=Ki(f)}v=null}else v=null;p!==null&&ap(c,h,p,v,!1),m!==null&&y!==null&&ap(c,y,m,v,!0)}}e:{if(h=u?lr(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var D=$_;else if(Qh(h))if(Wv)D=H_;else{D=B_;var _=j_}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(D=W_);if(D&&(D=D(e,u))){Bv(c,D,n,d);break e}_&&_(e,h,u),e==="focusout"&&(_=h._wrapperState)&&_.controlled&&h.type==="number"&&Du(h,"number",h.value)}switch(_=u?lr(u):window,e){case"focusin":(Qh(_)||_.contentEditable==="true")&&(sr=_,Vu=u,vo=null);break;case"focusout":vo=Vu=sr=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,rp(c,n,d);break;case"selectionchange":if(Y_)break;case"keydown":case"keyup":rp(c,n,d)}var P;if(ld)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else or?$v(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Gv&&n.locale!=="ko"&&(or||C!=="onCompositionStart"?C==="onCompositionEnd"&&or&&(P=Vv()):(qn=d,od="value"in qn?qn.value:qn.textContent,or=!0)),_=ua(u,C),0<_.length&&(C=new Jh(C,e,null,n,d),c.push({event:C,listeners:_}),P?C.data=P:(P=jv(n),P!==null&&(C.data=P)))),(P=L_?M_(e,n):F_(e,n))&&(u=ua(u,"onBeforeInput"),0<u.length&&(d=new Jh("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=P))}eg(c,t)})}function No(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ua(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,o=r.stateNode;r.tag===5&&o!==null&&(r=o,o=Do(e,n),o!=null&&i.unshift(No(e,o,r)),o=Do(e,t),o!=null&&i.push(No(e,o,r))),e=e.return}return i}function Ki(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ap(e,t,n,i,r){for(var o=t._reactName,s=[];n!==null&&n!==i;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===i)break;a.tag===5&&u!==null&&(a=u,r?(l=Do(n,o),l!=null&&s.unshift(No(n,l,a))):r||(l=Do(n,o),l!=null&&s.push(No(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var X_=/\r\n?/g,Q_=/\u0000|\uFFFD/g;function lp(e){return(typeof e=="string"?e:""+e).replace(X_,`
|
|
38
|
+
`).replace(Q_,"")}function ws(e,t,n){if(t=lp(t),lp(e)!==t&&n)throw Error(L(425))}function ca(){}var $u=null,ju=null;function Bu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wu=typeof setTimeout=="function"?setTimeout:void 0,ex=typeof clearTimeout=="function"?clearTimeout:void 0,up=typeof Promise=="function"?Promise:void 0,tx=typeof queueMicrotask=="function"?queueMicrotask:typeof up<"u"?function(e){return up.resolve(null).then(e).catch(nx)}:Wu;function nx(e){setTimeout(function(){throw e})}function $l(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(i===0){e.removeChild(r),Ao(t);return}i--}else n!=="$"&&n!=="$?"&&n!=="$!"||i++;n=r}while(n);Ao(t)}function ni(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==="$?")break;if(t==="/$")return null}}return e}function cp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Vr=Math.random().toString(36).slice(2),bn="__reactFiber$"+Vr,Ro="__reactProps$"+Vr,Ln="__reactContainer$"+Vr,Hu="__reactEvents$"+Vr,ix="__reactListeners$"+Vr,rx="__reactHandles$"+Vr;function Ei(e){var t=e[bn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ln]||n[bn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cp(e);e!==null;){if(n=e[bn])return n;e=cp(e)}return t}e=n,n=e.parentNode}return null}function es(e){return e=e[bn]||e[Ln],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function lr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function Ua(e){return e[Ro]||null}var Uu=[],ur=-1;function pi(e){return{current:e}}function Pe(e){0>ur||(e.current=Uu[ur],Uu[ur]=null,ur--)}function ze(e,t){ur++,Uu[ur]=e.current,e.current=t}var ui={},ft=pi(ui),Dt=pi(!1),Ri=ui;function Cr(e,t){var n=e.type.contextTypes;if(!n)return ui;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=t[o];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Et(e){return e=e.childContextTypes,e!=null}function da(){Pe(Dt),Pe(ft)}function dp(e,t,n){if(ft.current!==ui)throw Error(L(168));ze(ft,t),ze(Dt,n)}function ng(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(L(108,j0(e)||"Unknown",r));return Me({},n,i)}function ha(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ui,Ri=ft.current,ze(ft,e),ze(Dt,Dt.current),!0}function hp(e,t,n){var i=e.stateNode;if(!i)throw Error(L(169));n?(e=ng(e,t,Ri),i.__reactInternalMemoizedMergedChildContext=e,Pe(Dt),Pe(ft),ze(ft,e)):Pe(Dt),ze(Dt,n)}var An=null,Za=!1,jl=!1;function ig(e){An===null?An=[e]:An.push(e)}function ox(e){Za=!0,ig(e)}function fi(){if(!jl&&An!==null){jl=!0;var e=0,t=we;try{var n=An;for(we=1;e<n.length;e++){var i=n[e];do i=i(!0);while(i!==null)}An=null,Za=!1}catch(r){throw An!==null&&(An=An.slice(e+1)),Ev(td,fi),r}finally{we=t,jl=!1}}return null}var cr=[],dr=0,pa=null,fa=0,jt=[],Bt=0,Li=null,In=1,Tn="";function Si(e,t){cr[dr++]=fa,cr[dr++]=pa,pa=e,fa=t}function rg(e,t,n){jt[Bt++]=In,jt[Bt++]=Tn,jt[Bt++]=Li,Li=e;var i=In;e=Tn;var r=32-sn(i)-1;i&=~(1<<r),n+=1;var o=32-sn(t)+r;if(30<o){var s=r-r%5;o=(i&(1<<s)-1).toString(32),i>>=s,r-=s,In=1<<32-sn(t)+r|n<<r|i,Tn=o+e}else In=1<<o|n<<r|i,Tn=e}function cd(e){e.return!==null&&(Si(e,1),rg(e,1,0))}function dd(e){for(;e===pa;)pa=cr[--dr],cr[dr]=null,fa=cr[--dr],cr[dr]=null;for(;e===Li;)Li=jt[--Bt],jt[Bt]=null,Tn=jt[--Bt],jt[Bt]=null,In=jt[--Bt],jt[Bt]=null}var Lt=null,Rt=null,Ie=!1,rn=null;function og(e,t){var n=Ht(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function pp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Lt=e,Rt=ni(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Lt=e,Rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Li!==null?{id:In,overflow:Tn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ht(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Lt=e,Rt=null,!0):!1;default:return!1}}function Zu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yu(e){if(Ie){var t=Rt;if(t){var n=t;if(!pp(e,t)){if(Zu(e))throw Error(L(418));t=ni(n.nextSibling);var i=Lt;t&&pp(e,t)?og(i,n):(e.flags=e.flags&-4097|2,Ie=!1,Lt=e)}}else{if(Zu(e))throw Error(L(418));e.flags=e.flags&-4097|2,Ie=!1,Lt=e}}}function fp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Lt=e}function ys(e){if(e!==Lt)return!1;if(!Ie)return fp(e),Ie=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bu(e.type,e.memoizedProps)),t&&(t=Rt)){if(Zu(e))throw sg(),Error(L(418));for(;t;)og(e,t),t=ni(t.nextSibling)}if(fp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Rt=ni(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Rt=null}}else Rt=Lt?ni(e.stateNode.nextSibling):null;return!0}function sg(){for(var e=Rt;e;)e=ni(e.nextSibling)}function Dr(){Rt=Lt=null,Ie=!1}function hd(e){rn===null?rn=[e]:rn.push(e)}var sx=Vn.ReactCurrentBatchConfig;function Qr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(L(309));var i=n.stateNode}if(!i)throw Error(L(147,e));var r=i,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=r.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(L(284));if(!n._owner)throw Error(L(290,e))}return e}function _s(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mp(e){var t=e._init;return t(e._payload)}function ag(e){function t(f,g){if(e){var b=f.deletions;b===null?(f.deletions=[g],f.flags|=16):b.push(g)}}function n(f,g){if(!e)return null;for(;g!==null;)t(f,g),g=g.sibling;return null}function i(f,g){for(f=new Map;g!==null;)g.key!==null?f.set(g.key,g):f.set(g.index,g),g=g.sibling;return f}function r(f,g){return f=si(f,g),f.index=0,f.sibling=null,f}function o(f,g,b){return f.index=b,e?(b=f.alternate,b!==null?(b=b.index,b<g?(f.flags|=2,g):b):(f.flags|=2,g)):(f.flags|=1048576,g)}function s(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,g,b,k){return g===null||g.tag!==6?(g=Jl(b,f.mode,k),g.return=f,g):(g=r(g,b),g.return=f,g)}function l(f,g,b,k){var D=b.type;return D===rr?d(f,g,b.props.children,k,b.key):g!==null&&(g.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Un&&mp(D)===g.type)?(k=r(g,b.props),k.ref=Qr(f,g,b),k.return=f,k):(k=Xs(b.type,b.key,b.props,null,f.mode,k),k.ref=Qr(f,g,b),k.return=f,k)}function u(f,g,b,k){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=ql(b,f.mode,k),g.return=f,g):(g=r(g,b.children||[]),g.return=f,g)}function d(f,g,b,k,D){return g===null||g.tag!==7?(g=Ti(b,f.mode,k,D),g.return=f,g):(g=r(g,b),g.return=f,g)}function c(f,g,b){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Jl(""+g,f.mode,b),g.return=f,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case cs:return b=Xs(g.type,g.key,g.props,null,f.mode,b),b.ref=Qr(f,null,g),b.return=f,b;case ir:return g=ql(g,f.mode,b),g.return=f,g;case Un:var k=g._init;return c(f,k(g._payload),b)}if(ao(g)||Yr(g))return g=Ti(g,f.mode,b,null),g.return=f,g;_s(f,g)}return null}function h(f,g,b,k){var D=g!==null?g.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return D!==null?null:a(f,g,""+b,k);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case cs:return b.key===D?l(f,g,b,k):null;case ir:return b.key===D?u(f,g,b,k):null;case Un:return D=b._init,h(f,g,D(b._payload),k)}if(ao(b)||Yr(b))return D!==null?null:d(f,g,b,k,null);_s(f,b)}return null}function p(f,g,b,k,D){if(typeof k=="string"&&k!==""||typeof k=="number")return f=f.get(b)||null,a(g,f,""+k,D);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case cs:return f=f.get(k.key===null?b:k.key)||null,l(g,f,k,D);case ir:return f=f.get(k.key===null?b:k.key)||null,u(g,f,k,D);case Un:var _=k._init;return p(f,g,b,_(k._payload),D)}if(ao(k)||Yr(k))return f=f.get(b)||null,d(g,f,k,D,null);_s(g,k)}return null}function m(f,g,b,k){for(var D=null,_=null,P=g,C=g=0,G=null;P!==null&&C<b.length;C++){P.index>C?(G=P,P=null):G=P.sibling;var z=h(f,P,b[C],k);if(z===null){P===null&&(P=G);break}e&&P&&z.alternate===null&&t(f,P),g=o(z,g,C),_===null?D=z:_.sibling=z,_=z,P=G}if(C===b.length)return n(f,P),Ie&&Si(f,C),D;if(P===null){for(;C<b.length;C++)P=c(f,b[C],k),P!==null&&(g=o(P,g,C),_===null?D=P:_.sibling=P,_=P);return Ie&&Si(f,C),D}for(P=i(f,P);C<b.length;C++)G=p(P,f,C,b[C],k),G!==null&&(e&&G.alternate!==null&&P.delete(G.key===null?C:G.key),g=o(G,g,C),_===null?D=G:_.sibling=G,_=G);return e&&P.forEach(function(F){return t(f,F)}),Ie&&Si(f,C),D}function v(f,g,b,k){var D=Yr(b);if(typeof D!="function")throw Error(L(150));if(b=D.call(b),b==null)throw Error(L(151));for(var _=D=null,P=g,C=g=0,G=null,z=b.next();P!==null&&!z.done;C++,z=b.next()){P.index>C?(G=P,P=null):G=P.sibling;var F=h(f,P,z.value,k);if(F===null){P===null&&(P=G);break}e&&P&&F.alternate===null&&t(f,P),g=o(F,g,C),_===null?D=F:_.sibling=F,_=F,P=G}if(z.done)return n(f,P),Ie&&Si(f,C),D;if(P===null){for(;!z.done;C++,z=b.next())z=c(f,z.value,k),z!==null&&(g=o(z,g,C),_===null?D=z:_.sibling=z,_=z);return Ie&&Si(f,C),D}for(P=i(f,P);!z.done;C++,z=b.next())z=p(P,f,C,z.value,k),z!==null&&(e&&z.alternate!==null&&P.delete(z.key===null?C:z.key),g=o(z,g,C),_===null?D=z:_.sibling=z,_=z);return e&&P.forEach(function(B){return t(f,B)}),Ie&&Si(f,C),D}function y(f,g,b,k){if(typeof b=="object"&&b!==null&&b.type===rr&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case cs:e:{for(var D=b.key,_=g;_!==null;){if(_.key===D){if(D=b.type,D===rr){if(_.tag===7){n(f,_.sibling),g=r(_,b.props.children),g.return=f,f=g;break e}}else if(_.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Un&&mp(D)===_.type){n(f,_.sibling),g=r(_,b.props),g.ref=Qr(f,_,b),g.return=f,f=g;break e}n(f,_);break}else t(f,_);_=_.sibling}b.type===rr?(g=Ti(b.props.children,f.mode,k,b.key),g.return=f,f=g):(k=Xs(b.type,b.key,b.props,null,f.mode,k),k.ref=Qr(f,g,b),k.return=f,f=k)}return s(f);case ir:e:{for(_=b.key;g!==null;){if(g.key===_)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(f,g.sibling),g=r(g,b.children||[]),g.return=f,f=g;break e}else{n(f,g);break}else t(f,g);g=g.sibling}g=ql(b,f.mode,k),g.return=f,f=g}return s(f);case Un:return _=b._init,y(f,g,_(b._payload),k)}if(ao(b))return m(f,g,b,k);if(Yr(b))return v(f,g,b,k);_s(f,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(f,g.sibling),g=r(g,b),g.return=f,f=g):(n(f,g),g=Jl(b,f.mode,k),g.return=f,f=g),s(f)):n(f,g)}return y}var Er=ag(!0),lg=ag(!1),ma=pi(null),va=null,hr=null,pd=null;function fd(){pd=hr=va=null}function md(e){var t=ma.current;Pe(ma),e._currentValue=t}function Ju(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function _r(e,t){va=e,pd=hr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ct=!0),e.firstContext=null)}function Yt(e){var t=e._currentValue;if(pd!==e)if(e={context:e,memoizedValue:t,next:null},hr===null){if(va===null)throw Error(L(308));hr=e,va.dependencies={lanes:0,firstContext:e}}else hr=hr.next=e;return t}var Pi=null;function vd(e){Pi===null?Pi=[e]:Pi.push(e)}function ug(e,t,n,i){var r=t.interleaved;return r===null?(n.next=n,vd(t)):(n.next=r.next,r.next=n),t.interleaved=n,Mn(e,i)}function Mn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Zn=!1;function gd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Nn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ii(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,ve&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,Mn(e,n)}return r=i.interleaved,r===null?(t.next=t,vd(i)):(t.next=r.next,r.next=t),i.interleaved=t,Mn(e,n)}function Us(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,nd(e,n)}}function vp(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?r=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ga(e,t,n,i){var r=e.updateQueue;Zn=!1;var o=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(o!==null){var c=r.baseState;s=0,d=u=l=null,a=o;do{var h=a.lane,p=a.eventTime;if((i&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,v=a;switch(h=t,p=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){c=m.call(p,c,h);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,h=typeof m=="function"?m.call(p,c,h):m,h==null)break e;c=Me({},c,h);break e;case 2:Zn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=r.effects,h===null?r.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=p,l=c):d=d.next=p,s|=h;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;h=a,a=h.next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}while(!0);if(d===null&&(l=c),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=d,t=r.shared.interleaved,t!==null){r=t;do s|=r.lane,r=r.next;while(r!==t)}else o===null&&(r.shared.lanes=0);Fi|=s,e.lanes=s,e.memoizedState=c}}function gp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(r!==null){if(i.callback=null,i=n,typeof r!="function")throw Error(L(191,r));r.call(i)}}}var ts={},_n=pi(ts),Lo=pi(ts),Mo=pi(ts);function Ai(e){if(e===ts)throw Error(L(174));return e}function bd(e,t){switch(ze(Mo,t),ze(Lo,e),ze(_n,ts),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pu(t,e)}Pe(_n),ze(_n,t)}function Pr(){Pe(_n),Pe(Lo),Pe(Mo)}function dg(e){Ai(Mo.current);var t=Ai(_n.current),n=Pu(t,e.type);t!==n&&(ze(Lo,e),ze(_n,n))}function wd(e){Lo.current===e&&(Pe(_n),Pe(Lo))}var Re=pi(0);function ba(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Bl=[];function yd(){for(var e=0;e<Bl.length;e++)Bl[e]._workInProgressVersionPrimary=null;Bl.length=0}var Zs=Vn.ReactCurrentDispatcher,Wl=Vn.ReactCurrentBatchConfig,Mi=0,Le=null,Qe=null,it=null,wa=!1,go=!1,Fo=0,ax=0;function ut(){throw Error(L(321))}function _d(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!un(e[n],t[n]))return!1;return!0}function xd(e,t,n,i,r,o){if(Mi=o,Le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zs.current=e===null||e.memoizedState===null?dx:hx,e=n(i,r),go){o=0;do{if(go=!1,Fo=0,25<=o)throw Error(L(301));o+=1,it=Qe=null,t.updateQueue=null,Zs.current=px,e=n(i,r)}while(go)}if(Zs.current=ya,t=Qe!==null&&Qe.next!==null,Mi=0,it=Qe=Le=null,wa=!1,t)throw Error(L(300));return e}function kd(){var e=Fo!==0;return Fo=0,e}function pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?Le.memoizedState=it=e:it=it.next=e,it}function Jt(){if(Qe===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=it===null?Le.memoizedState:it.next;if(t!==null)it=t,Qe=e;else{if(e===null)throw Error(L(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},it===null?Le.memoizedState=it=e:it=it.next=e}return it}function Vo(e,t){return typeof t=="function"?t(e):t}function Hl(e){var t=Jt(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var i=Qe,r=i.baseQueue,o=n.pending;if(o!==null){if(r!==null){var s=r.next;r.next=o.next,o.next=s}i.baseQueue=r=o,n.pending=null}if(r!==null){o=r.next,i=i.baseState;var a=s=null,l=null,u=o;do{var d=u.lane;if((Mi&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=c,s=i):l=l.next=c,Le.lanes|=d,Fi|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=a,un(i,t.memoizedState)||(Ct=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){r=e;do o=r.lane,Le.lanes|=o,Fi|=o,r=r.next;while(r!==e)}else r===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ul(e){var t=Jt(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var s=r=r.next;do o=e(o,s.action),s=s.next;while(s!==r);un(o,t.memoizedState)||(Ct=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function hg(){}function pg(e,t){var n=Le,i=Jt(),r=t(),o=!un(i.memoizedState,r);if(o&&(i.memoizedState=r,Ct=!0),i=i.queue,Sd(vg.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||it!==null&&it.memoizedState.tag&1){if(n.flags|=2048,Go(9,mg.bind(null,n,i,r,t),void 0,null),rt===null)throw Error(L(349));Mi&30||fg(n,t,r)}return r}function fg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mg(e,t,n,i){t.value=n,t.getSnapshot=i,gg(t)&&bg(e)}function vg(e,t,n){return n(function(){gg(t)&&bg(e)})}function gg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!un(e,n)}catch{return!0}}function bg(e){var t=Mn(e,1);t!==null&&an(t,e,1,-1)}function bp(e){var t=pn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:e},t.queue=e,e=e.dispatch=cx.bind(null,Le,e),[t.memoizedState,e]}function Go(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e)),e}function wg(){return Jt().memoizedState}function Ys(e,t,n,i){var r=pn();Le.flags|=e,r.memoizedState=Go(1|t,n,void 0,i===void 0?null:i)}function Ya(e,t,n,i){var r=Jt();i=i===void 0?null:i;var o=void 0;if(Qe!==null){var s=Qe.memoizedState;if(o=s.destroy,i!==null&&_d(i,s.deps)){r.memoizedState=Go(t,n,o,i);return}}Le.flags|=e,r.memoizedState=Go(1|t,n,o,i)}function wp(e,t){return Ys(8390656,8,e,t)}function Sd(e,t){return Ya(2048,8,e,t)}function yg(e,t){return Ya(4,2,e,t)}function _g(e,t){return Ya(4,4,e,t)}function xg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kg(e,t,n){return n=n!=null?n.concat([e]):null,Ya(4,4,xg.bind(null,t,e),n)}function zd(){}function Sg(e,t){var n=Jt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&&t!==null&&_d(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function zg(e,t){var n=Jt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&&t!==null&&_d(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Cg(e,t,n){return Mi&21?(un(n,t)||(n=Iv(),Le.lanes|=n,Fi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=n)}function lx(e,t){var n=we;we=n!==0&&4>n?n:4,e(!0);var i=Wl.transition;Wl.transition={};try{e(!1),t()}finally{we=n,Wl.transition=i}}function Dg(){return Jt().memoizedState}function ux(e,t,n){var i=oi(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Eg(e))Pg(t,n);else if(n=ug(e,t,n,i),n!==null){var r=yt();an(n,e,i,r),Ag(n,t,i)}}function cx(e,t,n){var i=oi(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Eg(e))Pg(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(r.hasEagerState=!0,r.eagerState=a,un(a,s)){var l=t.interleaved;l===null?(r.next=r,vd(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=ug(e,t,r,i),n!==null&&(r=yt(),an(n,e,i,r),Ag(n,t,i))}}function Eg(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function Pg(e,t){go=wa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ag(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,nd(e,n)}}var ya={readContext:Yt,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},dx={readContext:Yt,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:Yt,useEffect:wp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ys(4194308,4,xg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ys(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ys(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=pn();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=ux.bind(null,Le,e),[i.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:bp,useDebugValue:zd,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=bp(!1),t=e[0];return e=lx.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Le,r=pn();if(Ie){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),rt===null)throw Error(L(349));Mi&30||fg(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,wp(vg.bind(null,i,o,e),[e]),i.flags|=2048,Go(9,mg.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=pn(),t=rt.identifierPrefix;if(Ie){var n=Tn,i=In;n=(i&~(1<<32-sn(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ax++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},hx={readContext:Yt,useCallback:Sg,useContext:Yt,useEffect:Sd,useImperativeHandle:kg,useInsertionEffect:yg,useLayoutEffect:_g,useMemo:zg,useReducer:Hl,useRef:wg,useState:function(){return Hl(Vo)},useDebugValue:zd,useDeferredValue:function(e){var t=Jt();return Cg(t,Qe.memoizedState,e)},useTransition:function(){var e=Hl(Vo)[0],t=Jt().memoizedState;return[e,t]},useMutableSource:hg,useSyncExternalStore:pg,useId:Dg,unstable_isNewReconciler:!1},px={readContext:Yt,useCallback:Sg,useContext:Yt,useEffect:Sd,useImperativeHandle:kg,useInsertionEffect:yg,useLayoutEffect:_g,useMemo:zg,useReducer:Ul,useRef:wg,useState:function(){return Ul(Vo)},useDebugValue:zd,useDeferredValue:function(e){var t=Jt();return Qe===null?t.memoizedState=e:Cg(t,Qe.memoizedState,e)},useTransition:function(){var e=Ul(Vo)[0],t=Jt().memoizedState;return[e,t]},useMutableSource:hg,useSyncExternalStore:pg,useId:Dg,unstable_isNewReconciler:!1};function tn(e,t){if(e&&e.defaultProps){t=Me({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function qu(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Me({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ja={isMounted:function(e){return(e=e._reactInternals)?Bi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=yt(),r=oi(e),o=Nn(i,r);o.payload=t,n!=null&&(o.callback=n),t=ii(e,o,r),t!==null&&(an(t,e,r,i),Us(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=yt(),r=oi(e),o=Nn(i,r);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ii(e,o,r),t!==null&&(an(t,e,r,i),Us(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=yt(),i=oi(e),r=Nn(n,i);r.tag=2,t!=null&&(r.callback=t),t=ii(e,r,i),t!==null&&(an(t,e,i,n),Us(t,e,i))}};function yp(e,t,n,i,r,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,s):t.prototype&&t.prototype.isPureReactComponent?!To(n,i)||!To(r,o):!0}function Ig(e,t,n){var i=!1,r=ui,o=t.contextType;return typeof o=="object"&&o!==null?o=Yt(o):(r=Et(t)?Ri:ft.current,i=t.contextTypes,o=(i=i!=null)?Cr(e,r):ui),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ja,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function _p(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Ja.enqueueReplaceState(t,t.state,null)}function Ku(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},gd(e);var o=t.contextType;typeof o=="object"&&o!==null?r.context=Yt(o):(o=Et(t)?Ri:ft.current,r.context=Cr(e,o)),r.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(qu(e,t,o,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(t=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),t!==r.state&&Ja.enqueueReplaceState(r,r.state,null),ga(e,n,r,i),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308)}function Ar(e,t){try{var n="",i=t;do n+=$0(i),i=i.return;while(i);var r=n}catch(o){r=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:r,digest:null}}function Zl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var fx=typeof WeakMap=="function"?WeakMap:Map;function Tg(e,t,n){n=Nn(-1,n),n.tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){xa||(xa=!0,lc=i),Xu(e,t)},n}function Og(e,t,n){n=Nn(-1,n),n.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){Xu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Xu(e,t),typeof i!="function"&&(ri===null?ri=new Set([this]):ri.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function xp(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new fx;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=Ex.bind(null,e,t,n),t.then(e,e))}function kp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Sp(e,t,n,i,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Nn(-1,1),t.tag=2,ii(n,t,1))),n.lanes|=1),e)}var mx=Vn.ReactCurrentOwner,Ct=!1;function bt(e,t,n,i){t.child=e===null?lg(t,null,n,i):Er(t,e.child,n,i)}function zp(e,t,n,i,r){n=n.render;var o=t.ref;return _r(t,r),i=xd(e,t,n,i,o,r),n=kd(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Fn(e,t,r)):(Ie&&n&&cd(t),t.flags|=1,bt(e,t,i,r),t.child)}function Cp(e,t,n,i,r){if(e===null){var o=n.type;return typeof o=="function"&&!Od(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ng(e,t,o,i,r)):(e=Xs(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&r)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:To,n(s,i)&&e.ref===t.ref)return Fn(e,t,r)}return t.flags|=1,e=si(o,i),e.ref=t.ref,e.return=t,t.child=e}function Ng(e,t,n,i,r){if(e!==null){var o=e.memoizedProps;if(To(o,i)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=i=o,(e.lanes&r)!==0)e.flags&131072&&(Ct=!0);else return t.lanes=e.lanes,Fn(e,t,r)}return Qu(e,t,n,i,r)}function Rg(e,t,n){var i=t.pendingProps,r=i.children,o=e!==null?e.memoizedState:null;if(i.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze(fr,Nt),Nt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ze(fr,Nt),Nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=o!==null?o.baseLanes:n,ze(fr,Nt),Nt|=i}else o!==null?(i=o.baseLanes|n,t.memoizedState=null):i=n,ze(fr,Nt),Nt|=i;return bt(e,t,r,n),t.child}function Lg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Qu(e,t,n,i,r){var o=Et(n)?Ri:ft.current;return o=Cr(t,o),_r(t,r),n=xd(e,t,n,i,o,r),i=kd(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Fn(e,t,r)):(Ie&&i&&cd(t),t.flags|=1,bt(e,t,n,r),t.child)}function Dp(e,t,n,i,r){if(Et(n)){var o=!0;ha(t)}else o=!1;if(_r(t,r),t.stateNode===null)Js(e,t),Ig(t,n,i),Ku(t,n,i,r),i=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Yt(u):(u=Et(n)?Ri:ft.current,u=Cr(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==i||l!==u)&&_p(t,s,i,u),Zn=!1;var h=t.memoizedState;s.state=h,ga(t,i,s,r),l=t.memoizedState,a!==i||h!==l||Dt.current||Zn?(typeof d=="function"&&(qu(t,n,d,i),l=t.memoizedState),(a=Zn||yp(t,n,a,i,h,l,u))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),s.props=i,s.state=l,s.context=u,i=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{s=t.stateNode,cg(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:tn(t.type,a),s.props=u,c=t.pendingProps,h=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Yt(l):(l=Et(n)?Ri:ft.current,l=Cr(t,l));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==c||h!==l)&&_p(t,s,i,l),Zn=!1,h=t.memoizedState,s.state=h,ga(t,i,s,r);var m=t.memoizedState;a!==c||h!==m||Dt.current||Zn?(typeof p=="function"&&(qu(t,n,p,i),m=t.memoizedState),(u=Zn||yp(t,n,u,i,h,m,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(i,m,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(i,m,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=m),s.props=i,s.state=m,s.context=l,i=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),i=!1)}return ec(e,t,n,i,o,r)}function ec(e,t,n,i,r,o){Lg(e,t);var s=(t.flags&128)!==0;if(!i&&!s)return r&&hp(t,n,!1),Fn(e,t,o);i=t.stateNode,mx.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&s?(t.child=Er(t,e.child,null,o),t.child=Er(t,null,a,o)):bt(e,t,a,o),t.memoizedState=i.state,r&&hp(t,n,!0),t.child}function Mg(e){var t=e.stateNode;t.pendingContext?dp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&dp(e,t.context,!1),bd(e,t.containerInfo)}function Ep(e,t,n,i,r){return Dr(),hd(r),t.flags|=256,bt(e,t,n,i),t.child}var tc={dehydrated:null,treeContext:null,retryLane:0};function nc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fg(e,t,n){var i=t.pendingProps,r=Re.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(r&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),ze(Re,r&1),e===null)return Yu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,o?(i=t.mode,o=t.child,s={mode:"hidden",children:s},!(i&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Xa(s,i,0,null),e=Ti(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=nc(n),t.memoizedState=tc,e):Cd(t,s));if(r=e.memoizedState,r!==null&&(a=r.dehydrated,a!==null))return vx(e,t,s,i,a,r,n);if(o){o=i.fallback,s=t.mode,r=e.child,a=r.sibling;var l={mode:"hidden",children:i.children};return!(s&1)&&t.child!==r?(i=t.child,i.childLanes=0,i.pendingProps=l,t.deletions=null):(i=si(r,l),i.subtreeFlags=r.subtreeFlags&14680064),a!==null?o=si(a,o):(o=Ti(o,s,n,null),o.flags|=2),o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,s=e.child.memoizedState,s=s===null?nc(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=tc,i}return o=e.child,e=o.sibling,i=si(o,{mode:"visible",children:i.children}),!(t.mode&1)&&(i.lanes=n),i.return=t,i.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Cd(e,t){return t=Xa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xs(e,t,n,i){return i!==null&&hd(i),Er(t,e.child,null,n),e=Cd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vx(e,t,n,i,r,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Zl(Error(L(422))),xs(e,t,s,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=i.fallback,r=t.mode,i=Xa({mode:"visible",children:i.children},r,0,null),o=Ti(o,r,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Er(t,e.child,null,s),t.child.memoizedState=nc(s),t.memoizedState=tc,o);if(!(t.mode&1))return xs(e,t,s,null);if(r.data==="$!"){if(i=r.nextSibling&&r.nextSibling.dataset,i)var a=i.dgst;return i=a,o=Error(L(419)),i=Zl(o,i,void 0),xs(e,t,s,i)}if(a=(s&e.childLanes)!==0,Ct||a){if(i=rt,i!==null){switch(s&-s){case 4:r=2;break;case 16:r=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(i.suspendedLanes|s)?0:r,r!==0&&r!==o.retryLane&&(o.retryLane=r,Mn(e,r),an(i,e,r,-1))}return Td(),i=Zl(Error(L(421))),xs(e,t,s,i)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=Px.bind(null,e),r._reactRetry=t,null):(e=o.treeContext,Rt=ni(r.nextSibling),Lt=t,Ie=!0,rn=null,e!==null&&(jt[Bt++]=In,jt[Bt++]=Tn,jt[Bt++]=Li,In=e.id,Tn=e.overflow,Li=t),t=Cd(t,i.children),t.flags|=4096,t)}function Pp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Ju(e.return,t,n)}function Yl(e,t,n,i,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=r)}function Vg(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(bt(e,t,i.children,n),i=Re.current,i&2)i=i&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pp(e,n,t);else if(e.tag===19)Pp(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}i&=1}if(ze(Re,i),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&ba(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Yl(t,!1,r,n,o);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&ba(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Yl(t,!0,n,null,o);break;case"together":Yl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Js(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=si(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=si(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gx(e,t,n){switch(t.tag){case 3:Mg(t),Dr();break;case 5:dg(t);break;case 1:Et(t.type)&&ha(t);break;case 4:bd(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;ze(ma,i._currentValue),i._currentValue=r;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(ze(Re,Re.current&1),t.flags|=128,null):n&t.child.childLanes?Fg(e,t,n):(ze(Re,Re.current&1),e=Fn(e,t,n),e!==null?e.sibling:null);ze(Re,Re.current&1);break;case 19:if(i=(n&t.childLanes)!==0,e.flags&128){if(i)return Vg(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ze(Re,Re.current),i)break;return null;case 22:case 23:return t.lanes=0,Rg(e,t,n)}return Fn(e,t,n)}var Gg,ic,$g,jg;Gg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ic=function(){};$g=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,Ai(_n.current);var o=null;switch(n){case"input":r=zu(e,r),i=zu(e,i),o=[];break;case"select":r=Me({},r,{value:void 0}),i=Me({},i,{value:void 0}),o=[];break;case"textarea":r=Eu(e,r),i=Eu(e,i),o=[];break;default:typeof r.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=ca)}Au(n,i);var s;n=null;for(u in r)if(!i.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var a=r[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(zo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in i){var l=i[u];if(a=r!=null?r[u]:void 0,i.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(zo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&De("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};jg=function(e,t,n,i){n!==i&&(t.flags|=4)};function eo(e,t){if(!Ie)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&14680064,i|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function bx(e,t,n){var i=t.pendingProps;switch(dd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(t),null;case 1:return Et(t.type)&&da(),ct(t),null;case 3:return i=t.stateNode,Pr(),Pe(Dt),Pe(ft),yd(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(ys(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,rn!==null&&(dc(rn),rn=null))),ic(e,t),ct(t),null;case 5:wd(t);var r=Ai(Mo.current);if(n=t.type,e!==null&&t.stateNode!=null)$g(e,t,n,i,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(L(166));return ct(t),null}if(e=Ai(_n.current),ys(t)){i=t.stateNode,n=t.type;var o=t.memoizedProps;switch(i[bn]=t,i[Ro]=o,e=(t.mode&1)!==0,n){case"dialog":De("cancel",i),De("close",i);break;case"iframe":case"object":case"embed":De("load",i);break;case"video":case"audio":for(r=0;r<uo.length;r++)De(uo[r],i);break;case"source":De("error",i);break;case"img":case"image":case"link":De("error",i),De("load",i);break;case"details":De("toggle",i);break;case"input":Fh(i,o),De("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!o.multiple},De("invalid",i);break;case"textarea":Gh(i,o),De("invalid",i)}Au(n,o),r=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?i.textContent!==a&&(o.suppressHydrationWarning!==!0&&ws(i.textContent,a,e),r=["children",a]):typeof a=="number"&&i.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&ws(i.textContent,a,e),r=["children",""+a]):zo.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&De("scroll",i)}switch(n){case"input":ds(i),Vh(i,o,!0);break;case"textarea":ds(i),$h(i);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(i.onclick=ca)}i=r,t.updateQueue=i,i!==null&&(t.flags|=4)}else{s=r.nodeType===9?r:r.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vv(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=s.createElement(n,{is:i.is}):(e=s.createElement(n),n==="select"&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,n),e[bn]=t,e[Ro]=i,Gg(e,t,!1,!1),t.stateNode=e;e:{switch(s=Iu(n,i),n){case"dialog":De("cancel",e),De("close",e),r=i;break;case"iframe":case"object":case"embed":De("load",e),r=i;break;case"video":case"audio":for(r=0;r<uo.length;r++)De(uo[r],e);r=i;break;case"source":De("error",e),r=i;break;case"img":case"image":case"link":De("error",e),De("load",e),r=i;break;case"details":De("toggle",e),r=i;break;case"input":Fh(e,i),r=zu(e,i),De("invalid",e);break;case"option":r=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},r=Me({},i,{value:void 0}),De("invalid",e);break;case"textarea":Gh(e,i),r=Eu(e,i),De("invalid",e);break;default:r=i}Au(n,r),a=r;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?wv(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&gv(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Co(e,l):typeof l=="number"&&Co(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(zo.hasOwnProperty(o)?l!=null&&o==="onScroll"&&De("scroll",e):l!=null&&qc(e,o,l,s))}switch(n){case"input":ds(e),Vh(e,i,!1);break;case"textarea":ds(e),$h(e);break;case"option":i.value!=null&&e.setAttribute("value",""+li(i.value));break;case"select":e.multiple=!!i.multiple,o=i.value,o!=null?gr(e,!!i.multiple,o,!1):i.defaultValue!=null&&gr(e,!!i.multiple,i.defaultValue,!0);break;default:typeof r.onClick=="function"&&(e.onclick=ca)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ct(t),null;case 6:if(e&&t.stateNode!=null)jg(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(L(166));if(n=Ai(Mo.current),Ai(_n.current),ys(t)){if(i=t.stateNode,n=t.memoizedProps,i[bn]=t,(o=i.nodeValue!==n)&&(e=Lt,e!==null))switch(e.tag){case 3:ws(i.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ws(i.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[bn]=t,t.stateNode=i}return ct(t),null;case 13:if(Pe(Re),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ie&&Rt!==null&&t.mode&1&&!(t.flags&128))sg(),Dr(),t.flags|=98560,o=!1;else if(o=ys(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(L(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(L(317));o[bn]=t}else Dr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ct(t),o=!1}else rn!==null&&(dc(rn),rn=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||Re.current&1?et===0&&(et=3):Td())),t.updateQueue!==null&&(t.flags|=4),ct(t),null);case 4:return Pr(),ic(e,t),e===null&&Oo(t.stateNode.containerInfo),ct(t),null;case 10:return md(t.type._context),ct(t),null;case 17:return Et(t.type)&&da(),ct(t),null;case 19:if(Pe(Re),o=t.memoizedState,o===null)return ct(t),null;if(i=(t.flags&128)!==0,s=o.rendering,s===null)if(i)eo(o,!1);else{if(et!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ba(e),s!==null){for(t.flags|=128,eo(o,!1),i=s.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)o=n,e=i,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ze(Re,Re.current&1|2),t.child}e=e.sibling}o.tail!==null&&Be()>Ir&&(t.flags|=128,i=!0,eo(o,!1),t.lanes=4194304)}else{if(!i)if(e=ba(s),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),eo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ie)return ct(t),null}else 2*Be()-o.renderingStartTime>Ir&&n!==1073741824&&(t.flags|=128,i=!0,eo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Be(),t.sibling=null,n=Re.current,ze(Re,i?n&1|2:n&1),t):(ct(t),null);case 22:case 23:return Id(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Nt&1073741824&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function wx(e,t){switch(dd(t),t.tag){case 1:return Et(t.type)&&da(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pr(),Pe(Dt),Pe(ft),yd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wd(t),null;case 13:if(Pe(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Dr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Re),null;case 4:return Pr(),null;case 10:return md(t.type._context),null;case 22:case 23:return Id(),null;case 24:return null;default:return null}}var ks=!1,dt=!1,yx=typeof WeakSet=="function"?WeakSet:Set,H=null;function pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){je(e,t,i)}else n.current=null}function rc(e,t,n){try{n()}catch(i){je(e,t,i)}}var Ap=!1;function _x(e,t){if($u=aa,e=Zv(),ud(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,d=0,c=e,h=null;t:for(;;){for(var p;c!==n||r!==0&&c.nodeType!==3||(a=s+r),c!==o||i!==0&&c.nodeType!==3||(l=s+i),c.nodeType===3&&(s+=c.nodeValue.length),(p=c.firstChild)!==null;)h=c,c=p;for(;;){if(c===e)break t;if(h===n&&++u===r&&(a=s),h===o&&++d===i&&(l=s),(p=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ju={focusedElem:e,selectionRange:n},aa=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,y=m.memoizedState,f=t.stateNode,g=f.getSnapshotBeforeUpdate(t.elementType===t.type?v:tn(t.type,v),y);f.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(k){je(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return m=Ap,Ap=!1,m}function bo(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&e)===e){var o=r.destroy;r.destroy=void 0,o!==void 0&&rc(t,n,o)}r=r.next}while(r!==i)}}function qa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Bg(e){var t=e.alternate;t!==null&&(e.alternate=null,Bg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bn],delete t[Ro],delete t[Hu],delete t[ix],delete t[rx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Wg(e){return e.tag===5||e.tag===3||e.tag===4}function Ip(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wg(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.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 sc(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ca));else if(i!==4&&(e=e.child,e!==null))for(sc(e,t,n),e=e.sibling;e!==null;)sc(e,t,n),e=e.sibling}function ac(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}var ot=null,nn=!1;function $n(e,t,n){for(n=n.child;n!==null;)Hg(e,t,n),n=n.sibling}function Hg(e,t,n){if(yn&&typeof yn.onCommitFiberUnmount=="function")try{yn.onCommitFiberUnmount(ja,n)}catch{}switch(n.tag){case 5:dt||pr(n,t);case 6:var i=ot,r=nn;ot=null,$n(e,t,n),ot=i,nn=r,ot!==null&&(nn?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(nn?(e=ot,n=n.stateNode,e.nodeType===8?$l(e.parentNode,n):e.nodeType===1&&$l(e,n),Ao(e)):$l(ot,n.stateNode));break;case 4:i=ot,r=nn,ot=n.stateNode.containerInfo,nn=!0,$n(e,t,n),ot=i,nn=r;break;case 0:case 11:case 14:case 15:if(!dt&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var o=r,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&rc(n,t,s),r=r.next}while(r!==i)}$n(e,t,n);break;case 1:if(!dt&&(pr(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){je(n,t,a)}$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:n.mode&1?(dt=(i=dt)||n.memoizedState!==null,$n(e,t,n),dt=i):$n(e,t,n);break;default:$n(e,t,n)}}function Tp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new yx),t.forEach(function(i){var r=Ax.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:ot=a.stateNode,nn=!1;break e;case 3:ot=a.stateNode.containerInfo,nn=!0;break e;case 4:ot=a.stateNode.containerInfo,nn=!0;break e}a=a.return}if(ot===null)throw Error(L(160));Hg(o,s,r),ot=null,nn=!1;var l=r.alternate;l!==null&&(l.return=null),r.return=null}catch(u){je(r,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ug(t,e),t=t.sibling}function Ug(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qt(t,e),hn(e),i&4){try{bo(3,e,e.return),qa(3,e)}catch(v){je(e,e.return,v)}try{bo(5,e,e.return)}catch(v){je(e,e.return,v)}}break;case 1:Qt(t,e),hn(e),i&512&&n!==null&&pr(n,n.return);break;case 5:if(Qt(t,e),hn(e),i&512&&n!==null&&pr(n,n.return),e.flags&32){var r=e.stateNode;try{Co(r,"")}catch(v){je(e,e.return,v)}}if(i&4&&(r=e.stateNode,r!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&fv(r,o),Iu(a,s);var u=Iu(a,o);for(s=0;s<l.length;s+=2){var d=l[s],c=l[s+1];d==="style"?wv(r,c):d==="dangerouslySetInnerHTML"?gv(r,c):d==="children"?Co(r,c):qc(r,d,c,u)}switch(a){case"input":Cu(r,o);break;case"textarea":mv(r,o);break;case"select":var h=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?gr(r,!!o.multiple,p,!1):h!==!!o.multiple&&(o.defaultValue!=null?gr(r,!!o.multiple,o.defaultValue,!0):gr(r,!!o.multiple,o.multiple?[]:"",!1))}r[Ro]=o}catch(v){je(e,e.return,v)}}break;case 6:if(Qt(t,e),hn(e),i&4){if(e.stateNode===null)throw Error(L(162));r=e.stateNode,o=e.memoizedProps;try{r.nodeValue=o}catch(v){je(e,e.return,v)}}break;case 3:if(Qt(t,e),hn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ao(t.containerInfo)}catch(v){je(e,e.return,v)}break;case 4:Qt(t,e),hn(e);break;case 13:Qt(t,e),hn(e),r=e.child,r.flags&8192&&(o=r.memoizedState!==null,r.stateNode.isHidden=o,!o||r.alternate!==null&&r.alternate.memoizedState!==null||(Pd=Be())),i&4&&Tp(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(dt=(u=dt)||d,Qt(t,e),dt=u):Qt(t,e),hn(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(H=e,d=e.child;d!==null;){for(c=H=d;H!==null;){switch(h=H,p=h.child,h.tag){case 0:case 11:case 14:case 15:bo(4,h,h.return);break;case 1:pr(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){i=h,n=h.return;try{t=i,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){je(i,n,v)}}break;case 5:pr(h,h.return);break;case 22:if(h.memoizedState!==null){Np(c);continue}}p!==null?(p.return=h,H=p):Np(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{r=c.stateNode,u?(o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=c.stateNode,l=c.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=bv("display",s))}catch(v){je(e,e.return,v)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(v){je(e,e.return,v)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Qt(t,e),hn(e),i&4&&Tp(e);break;case 21:break;default:Qt(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Wg(n)){var i=n;break e}n=n.return}throw Error(L(160))}switch(i.tag){case 5:var r=i.stateNode;i.flags&32&&(Co(r,""),i.flags&=-33);var o=Ip(e);ac(e,o,r);break;case 3:case 4:var s=i.stateNode.containerInfo,a=Ip(e);sc(e,a,s);break;default:throw Error(L(161))}}catch(l){je(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xx(e,t,n){H=e,Zg(e)}function Zg(e,t,n){for(var i=(e.mode&1)!==0;H!==null;){var r=H,o=r.child;if(r.tag===22&&i){var s=r.memoizedState!==null||ks;if(!s){var a=r.alternate,l=a!==null&&a.memoizedState!==null||dt;a=ks;var u=dt;if(ks=s,(dt=l)&&!u)for(H=r;H!==null;)s=H,l=s.child,s.tag===22&&s.memoizedState!==null?Rp(r):l!==null?(l.return=s,H=l):Rp(r);for(;o!==null;)H=o,Zg(o),o=o.sibling;H=r,ks=a,dt=u}Op(e)}else r.subtreeFlags&8772&&o!==null?(o.return=r,H=o):Op(e)}}function Op(e){for(;H!==null;){var t=H;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:dt||qa(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!dt)if(n===null)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:tn(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&gp(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}gp(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&Ao(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}dt||t.flags&512&&oc(t)}catch(h){je(t,t.return,h)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function Np(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function Rp(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{qa(4,t)}catch(l){je(t,n,l)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var r=t.return;try{i.componentDidMount()}catch(l){je(t,r,l)}}var o=t.return;try{oc(t)}catch(l){je(t,o,l)}break;case 5:var s=t.return;try{oc(t)}catch(l){je(t,s,l)}}}catch(l){je(t,t.return,l)}if(t===e){H=null;break}var a=t.sibling;if(a!==null){a.return=t.return,H=a;break}H=t.return}}var kx=Math.ceil,_a=Vn.ReactCurrentDispatcher,Dd=Vn.ReactCurrentOwner,Zt=Vn.ReactCurrentBatchConfig,ve=0,rt=null,Ze=null,at=0,Nt=0,fr=pi(0),et=0,$o=null,Fi=0,Ka=0,Ed=0,wo=null,zt=null,Pd=0,Ir=1/0,Pn=null,xa=!1,lc=null,ri=null,Ss=!1,Kn=null,ka=0,yo=0,uc=null,qs=-1,Ks=0;function yt(){return ve&6?Be():qs!==-1?qs:qs=Be()}function oi(e){return e.mode&1?ve&2&&at!==0?at&-at:sx.transition!==null?(Ks===0&&(Ks=Iv()),Ks):(e=we,e!==0||(e=window.event,e=e===void 0?16:Fv(e.type)),e):1}function an(e,t,n,i){if(50<yo)throw yo=0,uc=null,Error(L(185));Xo(e,n,i),(!(ve&2)||e!==rt)&&(e===rt&&(!(ve&2)&&(Ka|=n),et===4&&Jn(e,at)),Pt(e,i),n===1&&ve===0&&!(t.mode&1)&&(Ir=Be()+500,Za&&fi()))}function Pt(e,t){var n=e.callbackNode;s_(e,t);var i=sa(e,e===rt?at:0);if(i===0)n!==null&&Wh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(n!=null&&Wh(n),t===1)e.tag===0?ox(Lp.bind(null,e)):ig(Lp.bind(null,e)),tx(function(){!(ve&6)&&fi()}),n=null;else{switch(Tv(i)){case 1:n=td;break;case 4:n=Pv;break;case 16:n=oa;break;case 536870912:n=Av;break;default:n=oa}n=tb(n,Yg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Yg(e,t){if(qs=-1,Ks=0,ve&6)throw Error(L(327));var n=e.callbackNode;if(xr()&&e.callbackNode!==n)return null;var i=sa(e,e===rt?at:0);if(i===0)return null;if(i&30||i&e.expiredLanes||t)t=Sa(e,i);else{t=i;var r=ve;ve|=2;var o=qg();(rt!==e||at!==t)&&(Pn=null,Ir=Be()+500,Ii(e,t));do try{Cx();break}catch(a){Jg(e,a)}while(!0);fd(),_a.current=o,ve=r,Ze!==null?t=0:(rt=null,at=0,t=et)}if(t!==0){if(t===2&&(r=Lu(e),r!==0&&(i=r,t=cc(e,r))),t===1)throw n=$o,Ii(e,0),Jn(e,i),Pt(e,Be()),n;if(t===6)Jn(e,i);else{if(r=e.current.alternate,!(i&30)&&!Sx(r)&&(t=Sa(e,i),t===2&&(o=Lu(e),o!==0&&(i=o,t=cc(e,o))),t===1))throw n=$o,Ii(e,0),Jn(e,i),Pt(e,Be()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(L(345));case 2:zi(e,zt,Pn);break;case 3:if(Jn(e,i),(i&130023424)===i&&(t=Pd+500-Be(),10<t)){if(sa(e,0)!==0)break;if(r=e.suspendedLanes,(r&i)!==i){yt(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=Wu(zi.bind(null,e,zt,Pn),t);break}zi(e,zt,Pn);break;case 4:if(Jn(e,i),(i&4194240)===i)break;for(t=e.eventTimes,r=-1;0<i;){var s=31-sn(i);o=1<<s,s=t[s],s>r&&(r=s),i&=~o}if(i=r,i=Be()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*kx(i/1960))-i,10<i){e.timeoutHandle=Wu(zi.bind(null,e,zt,Pn),i);break}zi(e,zt,Pn);break;case 5:zi(e,zt,Pn);break;default:throw Error(L(329))}}}return Pt(e,Be()),e.callbackNode===n?Yg.bind(null,e):null}function cc(e,t){var n=wo;return e.current.memoizedState.isDehydrated&&(Ii(e,t).flags|=256),e=Sa(e,t),e!==2&&(t=zt,zt=n,t!==null&&dc(t)),e}function dc(e){zt===null?zt=e:zt.push.apply(zt,e)}function Sx(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var i=0;i<n.length;i++){var r=n[i],o=r.getSnapshot;r=r.value;try{if(!un(o(),r))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 Jn(e,t){for(t&=~Ed,t&=~Ka,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-sn(t),i=1<<n;e[n]=-1,t&=~i}}function Lp(e){if(ve&6)throw Error(L(327));xr();var t=sa(e,0);if(!(t&1))return Pt(e,Be()),null;var n=Sa(e,t);if(e.tag!==0&&n===2){var i=Lu(e);i!==0&&(t=i,n=cc(e,i))}if(n===1)throw n=$o,Ii(e,0),Jn(e,t),Pt(e,Be()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zi(e,zt,Pn),Pt(e,Be()),null}function Ad(e,t){var n=ve;ve|=1;try{return e(t)}finally{ve=n,ve===0&&(Ir=Be()+500,Za&&fi())}}function Vi(e){Kn!==null&&Kn.tag===0&&!(ve&6)&&xr();var t=ve;ve|=1;var n=Zt.transition,i=we;try{if(Zt.transition=null,we=1,e)return e()}finally{we=i,Zt.transition=n,ve=t,!(ve&6)&&fi()}}function Id(){Nt=fr.current,Pe(fr)}function Ii(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ex(n)),Ze!==null)for(n=Ze.return;n!==null;){var i=n;switch(dd(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&da();break;case 3:Pr(),Pe(Dt),Pe(ft),yd();break;case 5:wd(i);break;case 4:Pr();break;case 13:Pe(Re);break;case 19:Pe(Re);break;case 10:md(i.type._context);break;case 22:case 23:Id()}n=n.return}if(rt=e,Ze=e=si(e.current,null),at=Nt=t,et=0,$o=null,Ed=Ka=Fi=0,zt=wo=null,Pi!==null){for(t=0;t<Pi.length;t++)if(n=Pi[t],i=n.interleaved,i!==null){n.interleaved=null;var r=i.next,o=n.pending;if(o!==null){var s=o.next;o.next=r,i.next=s}n.pending=i}Pi=null}return e}function Jg(e,t){do{var n=Ze;try{if(fd(),Zs.current=ya,wa){for(var i=Le.memoizedState;i!==null;){var r=i.queue;r!==null&&(r.pending=null),i=i.next}wa=!1}if(Mi=0,it=Qe=Le=null,go=!1,Fo=0,Dd.current=null,n===null||n.return===null){et=1,$o=t,Ze=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=at,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=kp(s);if(p!==null){p.flags&=-257,Sp(p,s,a,o,t),p.mode&1&&xp(o,u,t),t=p,l=u;var m=t.updateQueue;if(m===null){var v=new Set;v.add(l),t.updateQueue=v}else m.add(l);break e}else{if(!(t&1)){xp(o,u,t),Td();break e}l=Error(L(426))}}else if(Ie&&a.mode&1){var y=kp(s);if(y!==null){!(y.flags&65536)&&(y.flags|=256),Sp(y,s,a,o,t),hd(Ar(l,a));break e}}o=l=Ar(l,a),et!==4&&(et=2),wo===null?wo=[o]:wo.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=Tg(o,l,t);vp(o,f);break e;case 1:a=l;var g=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ri===null||!ri.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var k=Og(o,a,t);vp(o,k);break e}}o=o.return}while(o!==null)}Xg(n)}catch(D){t=D,Ze===n&&n!==null&&(Ze=n=n.return);continue}break}while(!0)}function qg(){var e=_a.current;return _a.current=ya,e===null?ya:e}function Td(){(et===0||et===3||et===2)&&(et=4),rt===null||!(Fi&268435455)&&!(Ka&268435455)||Jn(rt,at)}function Sa(e,t){var n=ve;ve|=2;var i=qg();(rt!==e||at!==t)&&(Pn=null,Ii(e,t));do try{zx();break}catch(r){Jg(e,r)}while(!0);if(fd(),ve=n,_a.current=i,Ze!==null)throw Error(L(261));return rt=null,at=0,et}function zx(){for(;Ze!==null;)Kg(Ze)}function Cx(){for(;Ze!==null&&!K0();)Kg(Ze)}function Kg(e){var t=eb(e.alternate,e,Nt);e.memoizedProps=e.pendingProps,t===null?Xg(e):Ze=t,Dd.current=null}function Xg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=wx(n,t),n!==null){n.flags&=32767,Ze=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{et=6,Ze=null;return}}else if(n=bx(n,t,Nt),n!==null){Ze=n;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);et===0&&(et=5)}function zi(e,t,n){var i=we,r=Zt.transition;try{Zt.transition=null,we=1,Dx(e,t,n,i)}finally{Zt.transition=r,we=i}return null}function Dx(e,t,n,i){do xr();while(Kn!==null);if(ve&6)throw Error(L(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(L(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(a_(e,o),e===rt&&(Ze=rt=null,at=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ss||(Ss=!0,tb(oa,function(){return xr(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Zt.transition,Zt.transition=null;var s=we;we=1;var a=ve;ve|=4,Dd.current=null,_x(e,n),Ug(n,e),Z_(ju),aa=!!$u,ju=$u=null,e.current=n,xx(n),X0(),ve=a,we=s,Zt.transition=o}else e.current=n;if(Ss&&(Ss=!1,Kn=e,ka=r),o=e.pendingLanes,o===0&&(ri=null),t_(n.stateNode),Pt(e,Be()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(xa)throw xa=!1,e=lc,lc=null,e;return ka&1&&e.tag!==0&&xr(),o=e.pendingLanes,o&1?e===uc?yo++:(yo=0,uc=e):yo=0,fi(),null}function xr(){if(Kn!==null){var e=Tv(ka),t=Zt.transition,n=we;try{if(Zt.transition=null,we=16>e?16:e,Kn===null)var i=!1;else{if(e=Kn,Kn=null,ka=0,ve&6)throw Error(L(331));var r=ve;for(ve|=4,H=e.current;H!==null;){var o=H,s=o.child;if(H.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(H=u;H!==null;){var d=H;switch(d.tag){case 0:case 11:case 15:bo(8,d,o)}var c=d.child;if(c!==null)c.return=d,H=c;else for(;H!==null;){d=H;var h=d.sibling,p=d.return;if(Bg(d),d===u){H=null;break}if(h!==null){h.return=p,H=h;break}H=p}}}var m=o.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(v!==null)}}H=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,H=s;else e:for(;H!==null;){if(o=H,o.flags&2048)switch(o.tag){case 0:case 11:case 15:bo(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,H=f;break e}H=o.return}}var g=e.current;for(H=g;H!==null;){s=H;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,H=b;else e:for(s=g;H!==null;){if(a=H,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:qa(9,a)}}catch(D){je(a,a.return,D)}if(a===s){H=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,H=k;break e}H=a.return}}if(ve=r,fi(),yn&&typeof yn.onPostCommitFiberRoot=="function")try{yn.onPostCommitFiberRoot(ja,e)}catch{}i=!0}return i}finally{we=n,Zt.transition=t}}return!1}function Mp(e,t,n){t=Ar(n,t),t=Tg(e,t,1),e=ii(e,t,1),t=yt(),e!==null&&(Xo(e,1,t),Pt(e,t))}function je(e,t,n){if(e.tag===3)Mp(e,e,n);else for(;t!==null;){if(t.tag===3){Mp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ri===null||!ri.has(i))){e=Ar(n,e),e=Og(t,e,1),t=ii(t,e,1),e=yt(),t!==null&&(Xo(t,1,e),Pt(t,e));break}}t=t.return}}function Ex(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),t=yt(),e.pingedLanes|=e.suspendedLanes&n,rt===e&&(at&n)===n&&(et===4||et===3&&(at&130023424)===at&&500>Be()-Pd?Ii(e,0):Ed|=n),Pt(e,t)}function Qg(e,t){t===0&&(e.mode&1?(t=fs,fs<<=1,!(fs&130023424)&&(fs=4194304)):t=1);var n=yt();e=Mn(e,t),e!==null&&(Xo(e,t,n),Pt(e,n))}function Px(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qg(e,n)}function Ax(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(L(314))}i!==null&&i.delete(t),Qg(e,n)}var eb;eb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dt.current)Ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ct=!1,gx(e,t,n);Ct=!!(e.flags&131072)}else Ct=!1,Ie&&t.flags&1048576&&rg(t,fa,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Js(e,t),e=t.pendingProps;var r=Cr(t,ft.current);_r(t,n),r=xd(null,t,i,e,r,n);var o=kd();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Et(i)?(o=!0,ha(t)):o=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,gd(t),r.updater=Ja,t.stateNode=r,r._reactInternals=t,Ku(t,i,e,n),t=ec(null,t,i,!0,o,n)):(t.tag=0,Ie&&o&&cd(t),bt(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Js(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=Tx(i),e=tn(i,e),r){case 0:t=Qu(null,t,i,e,n);break e;case 1:t=Dp(null,t,i,e,n);break e;case 11:t=zp(null,t,i,e,n);break e;case 14:t=Cp(null,t,i,tn(i.type,e),n);break e}throw Error(L(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),Qu(e,t,i,r,n);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),Dp(e,t,i,r,n);case 3:e:{if(Mg(t),e===null)throw Error(L(387));i=t.pendingProps,o=t.memoizedState,r=o.element,cg(e,t),ga(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){r=Ar(Error(L(423)),t),t=Ep(e,t,i,n,r);break e}else if(i!==r){r=Ar(Error(L(424)),t),t=Ep(e,t,i,n,r);break e}else for(Rt=ni(t.stateNode.containerInfo.firstChild),Lt=t,Ie=!0,rn=null,n=lg(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Dr(),i===r){t=Fn(e,t,n);break e}bt(e,t,i,n)}t=t.child}return t;case 5:return dg(t),e===null&&Yu(t),i=t.type,r=t.pendingProps,o=e!==null?e.memoizedProps:null,s=r.children,Bu(i,r)?s=null:o!==null&&Bu(i,o)&&(t.flags|=32),Lg(e,t),bt(e,t,s,n),t.child;case 6:return e===null&&Yu(t),null;case 13:return Fg(e,t,n);case 4:return bd(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Er(t,null,i,n):bt(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),zp(e,t,i,r,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,o=t.memoizedProps,s=r.value,ze(ma,i._currentValue),i._currentValue=s,o!==null)if(un(o.value,s)){if(o.children===r.children&&!Dt.current){t=Fn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=Nn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Ju(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(L(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ju(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}bt(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,_r(t,n),r=Yt(r),i=i(r),t.flags|=1,bt(e,t,i,n),t.child;case 14:return i=t.type,r=tn(i,t.pendingProps),r=tn(i.type,r),Cp(e,t,i,r,n);case 15:return Ng(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),Js(e,t),t.tag=1,Et(i)?(e=!0,ha(t)):e=!1,_r(t,n),Ig(t,i,r),Ku(t,i,r,n),ec(null,t,i,!0,e,n);case 19:return Vg(e,t,n);case 22:return Rg(e,t,n)}throw Error(L(156,t.tag))};function tb(e,t){return Ev(e,t)}function Ix(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,n,i){return new Ix(e,t,n,i)}function Od(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tx(e){if(typeof e=="function")return Od(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xc)return 11;if(e===Qc)return 14}return 2}function si(e,t){var n=e.alternate;return n===null?(n=Ht(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&14680064,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}function Xs(e,t,n,i,r,o){var s=2;if(i=e,typeof e=="function")Od(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case rr:return Ti(n.children,r,o,t);case Kc:s=8,r|=8;break;case _u:return e=Ht(12,n,t,r|2),e.elementType=_u,e.lanes=o,e;case xu:return e=Ht(13,n,t,r),e.elementType=xu,e.lanes=o,e;case ku:return e=Ht(19,n,t,r),e.elementType=ku,e.lanes=o,e;case dv:return Xa(n,r,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uv:s=10;break e;case cv:s=9;break e;case Xc:s=11;break e;case Qc:s=14;break e;case Un:s=16,i=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Ht(s,n,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function Ti(e,t,n,i){return e=Ht(7,e,i,t),e.lanes=n,e}function Xa(e,t,n,i){return e=Ht(22,e,i,t),e.elementType=dv,e.lanes=n,e.stateNode={isHidden:!1},e}function Jl(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function ql(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ox(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Al(0),this.expirationTimes=Al(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Al(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Nd(e,t,n,i,r,o,s,a,l){return e=new Ox(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ht(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gd(o),e}function Nx(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ir,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}function nb(e){if(!e)return ui;e=e._reactInternals;e:{if(Bi(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(Et(n))return ng(e,n,t)}return t}function ib(e,t,n,i,r,o,s,a,l){return e=Nd(n,i,!0,e,r,o,s,a,l),e.context=nb(null),n=e.current,i=yt(),r=oi(n),o=Nn(i,r),o.callback=t??null,ii(n,o,r),e.current.lanes=r,Xo(e,r,i),Pt(e,i),e}function Qa(e,t,n,i){var r=t.current,o=yt(),s=oi(r);return n=nb(n),t.context===null?t.context=n:t.pendingContext=n,t=Nn(o,s),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=ii(r,t,s),e!==null&&(an(e,r,s,o),Us(e,r,s)),s}function za(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Rd(e,t){Fp(e,t),(e=e.alternate)&&Fp(e,t)}function Rx(){return null}var rb=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ld(e){this._internalRoot=e}el.prototype.render=Ld.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));Qa(e,t,null,null)};el.prototype.unmount=Ld.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vi(function(){Qa(null,e,null,null)}),t[Ln]=null}};function el(e){this._internalRoot=e}el.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Yn.length&&t!==0&&t<Yn[n].priority;n++);Yn.splice(n,0,e),n===0&&Mv(e)}};function Md(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function tl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vp(){}function Lx(e,t,n,i,r){if(r){if(typeof i=="function"){var o=i;i=function(){var u=za(s);o.call(u)}}var s=ib(t,i,e,0,null,!1,!1,"",Vp);return e._reactRootContainer=s,e[Ln]=s.current,Oo(e.nodeType===8?e.parentNode:e),Vi(),s}for(;r=e.lastChild;)e.removeChild(r);if(typeof i=="function"){var a=i;i=function(){var u=za(l);a.call(u)}}var l=Nd(e,0,!1,null,null,!1,!1,"",Vp);return e._reactRootContainer=l,e[Ln]=l.current,Oo(e.nodeType===8?e.parentNode:e),Vi(function(){Qa(t,l,n,i)}),l}function nl(e,t,n,i,r){var o=n._reactRootContainer;if(o){var s=o;if(typeof r=="function"){var a=r;r=function(){var l=za(s);a.call(l)}}Qa(t,s,e,r)}else s=Lx(n,t,e,r,i);return za(s)}Ov=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=lo(t.pendingLanes);n!==0&&(nd(t,n|1),Pt(t,Be()),!(ve&6)&&(Ir=Be()+500,fi()))}break;case 13:Vi(function(){var i=Mn(e,1);if(i!==null){var r=yt();an(i,e,1,r)}}),Rd(e,1)}};id=function(e){if(e.tag===13){var t=Mn(e,134217728);if(t!==null){var n=yt();an(t,e,134217728,n)}Rd(e,134217728)}};Nv=function(e){if(e.tag===13){var t=oi(e),n=Mn(e,t);if(n!==null){var i=yt();an(n,e,t,i)}Rd(e,t)}};Rv=function(){return we};Lv=function(e,t){var n=we;try{return we=e,t()}finally{we=n}};Ou=function(e,t,n){switch(t){case"input":if(Cu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=Ua(i);if(!r)throw Error(L(90));pv(i),Cu(i,r)}}}break;case"textarea":mv(e,n);break;case"select":t=n.value,t!=null&&gr(e,!!n.multiple,t,!1)}};xv=Ad;kv=Vi;var Mx={usingClientEntryPoint:!1,Events:[es,lr,Ua,yv,_v,Ad]},to={findFiberByHostInstance:Ei,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Fx={bundleType:to.bundleType,version:to.version,rendererPackageName:to.rendererPackageName,rendererConfig:to.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Vn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Cv(e),e===null?null:e.stateNode},findFiberByHostInstance:to.findFiberByHostInstance||Rx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zs.isDisabled&&zs.supportsFiber)try{ja=zs.inject(Fx),yn=zs}catch{}}Vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mx;Vt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Md(t))throw Error(L(200));return Nx(e,t,null,n)};Vt.createRoot=function(e,t){if(!Md(e))throw Error(L(299));var n=!1,i="",r=rb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=Nd(e,1,!1,null,null,n,!1,i,r),e[Ln]=t.current,Oo(e.nodeType===8?e.parentNode:e),new Ld(t)};Vt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=Cv(t),e=e===null?null:e.stateNode,e};Vt.flushSync=function(e){return Vi(e)};Vt.hydrate=function(e,t,n){if(!tl(t))throw Error(L(200));return nl(null,e,t,!0,n)};Vt.hydrateRoot=function(e,t,n){if(!Md(e))throw Error(L(405));var i=n!=null&&n.hydratedSources||null,r=!1,o="",s=rb;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=ib(t,null,e,1,n??null,r,!1,o,s),e[Ln]=t.current,Oo(e),i)for(e=0;e<i.length;e++)n=i[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new el(t)};Vt.render=function(e,t,n){if(!tl(t))throw Error(L(200));return nl(null,e,t,!1,n)};Vt.unmountComponentAtNode=function(e){if(!tl(e))throw Error(L(40));return e._reactRootContainer?(Vi(function(){nl(null,null,e,!1,function(){e._reactRootContainer=null,e[Ln]=null})}),!0):!1};Vt.unstable_batchedUpdates=Ad;Vt.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!tl(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return nl(e,t,n,!1,i)};Vt.version="18.3.1-next-f1338f8080-20240426";function ob(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ob)}catch(e){console.error(e)}}ob(),ov.exports=Vt;var sb=ov.exports;const Vx=Ga(sb);var Gx,Gp=sb;Gx=Gp.createRoot,Gp.hydrateRoot;function $x(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const jx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wx={};function $p(e,t){return(Wx.jsx?Bx:jx).test(e)}const Hx=/[ \t\n\f\r]/g;function Ux(e){return typeof e=="object"?e.type==="text"?jp(e.value):!1:jp(e)}function jp(e){return e.replace(Hx,"")===""}class ns{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}ns.prototype.normal={};ns.prototype.property={};ns.prototype.space=void 0;function ab(e,t){const n={},i={};for(const r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new ns(n,i,t)}function hc(e){return e.toLowerCase()}class At{constructor(t,n){this.attribute=n,this.property=t}}At.prototype.attribute="";At.prototype.booleanish=!1;At.prototype.boolean=!1;At.prototype.commaOrSpaceSeparated=!1;At.prototype.commaSeparated=!1;At.prototype.defined=!1;At.prototype.mustUseProperty=!1;At.prototype.number=!1;At.prototype.overloadedBoolean=!1;At.prototype.property="";At.prototype.spaceSeparated=!1;At.prototype.space=void 0;let Zx=0;const le=Wi(),He=Wi(),pc=Wi(),M=Wi(),Se=Wi(),kr=Wi(),Ot=Wi();function Wi(){return 2**++Zx}const fc=Object.freeze(Object.defineProperty({__proto__:null,boolean:le,booleanish:He,commaOrSpaceSeparated:Ot,commaSeparated:kr,number:M,overloadedBoolean:pc,spaceSeparated:Se},Symbol.toStringTag,{value:"Module"})),Kl=Object.keys(fc);class Fd extends At{constructor(t,n,i,r){let o=-1;if(super(t,n),Bp(this,"space",r),typeof i=="number")for(;++o<Kl.length;){const s=Kl[o];Bp(this,Kl[o],(i&fc[s])===fc[s])}}}Fd.prototype.defined=!0;function Bp(e,t,n){n&&(e[t]=n)}function Gr(e){const t={},n={};for(const[i,r]of Object.entries(e.properties)){const o=new Fd(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[hc(i)]=i,n[hc(o.attribute)]=i}return new ns(t,n,e.space)}const lb=Gr({properties:{ariaActiveDescendant:null,ariaAtomic:He,ariaAutoComplete:null,ariaBusy:He,ariaChecked:He,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:He,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:He,ariaFlowTo:Se,ariaGrabbed:He,ariaHasPopup:null,ariaHidden:He,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:M,ariaLive:null,ariaModal:He,ariaMultiLine:He,ariaMultiSelectable:He,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:He,ariaReadOnly:He,ariaRelevant:null,ariaRequired:He,ariaRoleDescription:Se,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:He,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ub(e,t){return t in e?e[t]:t}function cb(e,t){return ub(e,t.toLowerCase())}const Yx=Gr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:kr,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:Se,autoFocus:le,autoPlay:le,blocking:Se,capture:null,charSet:null,checked:le,cite:null,className:Se,cols:M,colSpan:null,content:null,contentEditable:He,controls:le,controlsList:Se,coords:M|kr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:pc,draggable:He,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:Se,height:M,hidden:pc,high:M,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:Se,itemRef:Se,itemScope:le,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,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:le,optimum:M,pattern:null,ping:Se,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:Se,required:le,reversed:le,rows:M,rowSpan:M,sandbox:Se,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:He,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:He,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:He,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:M,security:null,unselectable:null},space:"html",transform:cb}),Jx=Gr({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"},properties:{about:Ot,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:Se,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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:kr,g2:kr,glyphName:kr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:Ot,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,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:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ot,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ot,rev:Ot,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ot,requiredFeatures:Ot,requiredFonts:Ot,requiredFormats:Ot,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:Ot,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ot,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ot,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ub}),db=Gr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),hb=Gr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:cb}),pb=Gr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),qx={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Kx=/[A-Z]/g,Wp=/-[a-z]/g,Xx=/^data[-\w.:]+$/i;function Qx(e,t){const n=hc(t);let i=t,r=At;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xx.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Wp,tk);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Wp.test(o)){let s=o.replace(Kx,ek);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}r=Fd}return new r(i,t)}function ek(e){return"-"+e.toLowerCase()}function tk(e){return e.charAt(1).toUpperCase()}const nk=ab([lb,Yx,db,hb,pb],"html"),Vd=ab([lb,Jx,db,hb,pb],"svg");function ik(e){return e.join(" ").trim()}var Gd={},Hp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,rk=/\n/g,ok=/^\s*/,sk=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ak=/^:\s*/,lk=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,uk=/^[;\s]*/,ck=/^\s+|\s+$/g,dk=`
|
|
41
|
+
`,Up="/",Zp="*",Ci="",hk="comment",pk="declaration";function fk(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function r(m){var v=m.match(rk);v&&(n+=v.length);var y=m.lastIndexOf(dk);i=~y?m.length-y:i+m.length}function o(){var m={line:n,column:i};return function(v){return v.position=new s(m),u(),v}}function s(m){this.start=m,this.end={line:n,column:i},this.source=t.source}s.prototype.content=e;function a(m){var v=new Error(t.source+":"+n+":"+i+": "+m);if(v.reason=m,v.filename=t.source,v.line=n,v.column=i,v.source=e,!t.silent)throw v}function l(m){var v=m.exec(e);if(v){var y=v[0];return r(y),e=e.slice(y.length),v}}function u(){l(ok)}function d(m){var v;for(m=m||[];v=c();)v!==!1&&m.push(v);return m}function c(){var m=o();if(!(Up!=e.charAt(0)||Zp!=e.charAt(1))){for(var v=2;Ci!=e.charAt(v)&&(Zp!=e.charAt(v)||Up!=e.charAt(v+1));)++v;if(v+=2,Ci===e.charAt(v-1))return a("End of comment missing");var y=e.slice(2,v-2);return i+=2,r(y),e=e.slice(v),i+=2,m({type:hk,comment:y})}}function h(){var m=o(),v=l(sk);if(v){if(c(),!l(ak))return a("property missing ':'");var y=l(lk),f=m({type:pk,property:Yp(v[0].replace(Hp,Ci)),value:y?Yp(y[0].replace(Hp,Ci)):Ci});return l(uk),f}}function p(){var m=[];d(m);for(var v;v=h();)v!==!1&&(m.push(v),d(m));return m}return u(),p()}function Yp(e){return e?e.replace(ck,Ci):Ci}var mk=fk,vk=ta&&ta.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gd,"__esModule",{value:!0});Gd.default=bk;const gk=vk(mk);function bk(e,t){let n=null;if(!e||typeof e!="string")return n;const i=(0,gk.default)(e),r=typeof t=="function";return i.forEach(o=>{if(o.type!=="declaration")return;const{property:s,value:a}=o;r?t(s,a,o):a&&(n=n||{},n[s]=a)}),n}var il={};Object.defineProperty(il,"__esModule",{value:!0});il.camelCase=void 0;var wk=/^--[a-zA-Z0-9_-]+$/,yk=/-([a-z])/g,_k=/^[^-]+$/,xk=/^-(webkit|moz|ms|o|khtml)-/,kk=/^-(ms)-/,Sk=function(e){return!e||_k.test(e)||wk.test(e)},zk=function(e,t){return t.toUpperCase()},Jp=function(e,t){return"".concat(t,"-")},Ck=function(e,t){return t===void 0&&(t={}),Sk(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(kk,Jp):e=e.replace(xk,Jp),e.replace(yk,zk))};il.camelCase=Ck;var Dk=ta&&ta.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Ek=Dk(Gd),Pk=il;function mc(e,t){var n={};return!e||typeof e!="string"||(0,Ek.default)(e,function(i,r){i&&r&&(n[(0,Pk.camelCase)(i,t)]=r)}),n}mc.default=mc;var Ak=mc;const Ik=Ga(Ak),fb=mb("end"),$d=mb("start");function mb(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Tk(e){const t=$d(e),n=fb(e);if(t&&n)return{start:t,end:n}}function _o(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qp(e.position):"start"in e||"end"in e?qp(e):"line"in e||"column"in e?vc(e):""}function vc(e){return Kp(e&&e.line)+":"+Kp(e&&e.column)}function qp(e){return vc(e&&e.start)+"-"+vc(e&&e.end)}function Kp(e){return e&&typeof e=="number"?e:1}class mt extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?r=t:!o.cause&&t&&(s=!0,r=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?o.ruleId=i:(o.source=i.slice(0,l),o.ruleId=i.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=_o(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}mt.prototype.file="";mt.prototype.name="";mt.prototype.reason="";mt.prototype.message="";mt.prototype.stack="";mt.prototype.column=void 0;mt.prototype.line=void 0;mt.prototype.ancestors=void 0;mt.prototype.cause=void 0;mt.prototype.fatal=void 0;mt.prototype.place=void 0;mt.prototype.ruleId=void 0;mt.prototype.source=void 0;const jd={}.hasOwnProperty,Ok=new Map,Nk=/[A-Z]/g,Rk=new Set(["table","tbody","thead","tfoot","tr"]),Lk=new Set(["td","th"]),vb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Mk(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Hk(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Wk(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Vd:nk,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=gb(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function gb(e,t,n){if(t.type==="element")return Fk(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Vk(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return $k(e,t,n);if(t.type==="mdxjsEsm")return Gk(e,t);if(t.type==="root")return jk(e,t,n);if(t.type==="text")return Bk(e,t)}function Fk(e,t,n){const i=e.schema;let r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=Vd,e.schema=r),e.ancestors.push(t);const o=wb(e,t.tagName,!1),s=Uk(e,t);let a=Wd(e,t);return Rk.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Ux(l):!0})),bb(e,s,o,t),Bd(s,a),e.ancestors.pop(),e.schema=i,e.create(t,o,s,n)}function Vk(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}jo(e,t.position)}function Gk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);jo(e,t.position)}function $k(e,t,n){const i=e.schema;let r=i;t.name==="svg"&&i.space==="html"&&(r=Vd,e.schema=r),e.ancestors.push(t);const o=t.name===null?e.Fragment:wb(e,t.name,!0),s=Zk(e,t),a=Wd(e,t);return bb(e,s,o,t),Bd(s,a),e.ancestors.pop(),e.schema=i,e.create(t,o,s,n)}function jk(e,t,n){const i={};return Bd(i,Wd(e,t)),e.create(t,e.Fragment,i,n)}function Bk(e,t){return t.value}function bb(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Bd(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Wk(e,t,n){return i;function i(r,o,s,a){const u=Array.isArray(s.children)?n:t;return a?u(o,s,a):u(o,s)}}function Hk(e,t){return n;function n(i,r,o,s){const a=Array.isArray(o.children),l=$d(i);return t(r,o,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Uk(e,t){const n={};let i,r;for(r in t.properties)if(r!=="children"&&jd.call(t.properties,r)){const o=Yk(e,r,t.properties[r]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&Lk.has(t.tagName)?i=a:n[s]=a}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Zk(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const s=o.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else jo(e,t.position);else{const r=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const a=i.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else jo(e,t.position);else o=i.value===null?!0:i.value;n[r]=o}return n}function Wd(e,t){const n=[];let i=-1;const r=e.passKeys?new Map:Ok;for(;++i<t.children.length;){const o=t.children[i];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=r.get(l)||0;s=l+"-"+u,r.set(l,u+1)}}const a=gb(e,o,s);a!==void 0&&n.push(a)}return n}function Yk(e,t,n){const i=Qx(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?$x(n):ik(n)),i.property==="style"){let r=typeof n=="object"?n:Jk(e,String(n));return e.stylePropertyNameCase==="css"&&(r=qk(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?qx[i.property]||i.property:i.attribute,n]}}function Jk(e,t){try{return Ik(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,r=new mt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=vb+"#cannot-parse-style-attribute",r}}function wb(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let o=-1,s;for(;++o<r.length;){const a=$p(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}i=s}else i=$p(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const r=i.value;return jd.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);jo(e)}function jo(e,t){const n=new mt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=vb+"#cannot-handle-mdx-estrees-without-createevaluater",n}function qk(e){const t={};let n;for(n in e)jd.call(e,n)&&(t[Kk(n)]=e[n]);return t}function Kk(e){let t=e.replace(Nk,Xk);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Xk(e){return"-"+e.toLowerCase()}const Xl={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Qk={};function Hd(e,t){const n=Qk,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return yb(e,i,r)}function yb(e,t,n){if(e1(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Xp(e.children,t,n)}return Array.isArray(e)?Xp(e,t,n):""}function Xp(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=yb(e[r],t,n);return i.join("")}function e1(e){return!!(e&&typeof e=="object")}const Qp=document.createElement("i");function Ud(e){const t="&"+e+";";Qp.innerHTML=t;const n=Qp.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Mt(e,t,n,i){const r=e.length;let o=0,s;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)s=Array.from(i),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<i.length;)s=i.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function Wt(e,t){return e.length>0?(Mt(e,e.length,0,t),e):t}const ef={}.hasOwnProperty;function _b(e){const t={};let n=-1;for(;++n<e.length;)t1(t,e[n]);return t}function t1(e,t){let n;for(n in t){const r=(ef.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){ef.call(r,s)||(r[s]=[]);const a=o[s];n1(r[s],Array.isArray(a)?a:a?[a]:[])}}}function n1(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Mt(e,0,0,i)}function xb(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ln(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const wt=mi(/[A-Za-z]/),ht=mi(/[\dA-Za-z]/),i1=mi(/[#-'*+\--9=?A-Z^-~]/);function Ca(e){return e!==null&&(e<32||e===127)}const gc=mi(/\d/),r1=mi(/[\dA-Fa-f]/),o1=mi(/[!-/:-@[-`{-~]/);function ne(e){return e!==null&&e<-2}function ke(e){return e!==null&&(e<0||e===32)}function ce(e){return e===-2||e===-1||e===32}const rl=mi(new RegExp("\\p{P}|\\p{S}","u")),Gi=mi(/\s/);function mi(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function $r(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&ht(e.charCodeAt(n+1))&&ht(e.charCodeAt(n+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),r=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(i,n),encodeURIComponent(s)),i=n+r+1,s=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function me(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return ce(l)?(e.enter(n),a(l)):t(l)}function a(l){return ce(l)&&o++<r?(e.consume(l),a):(e.exit(n),t(l))}}const s1={tokenize:a1};function a1(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),me(e,t,"linePrefix")}function r(a){return e.enter("paragraph"),o(a)}function o(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return ne(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}const l1={tokenize:u1},tf={tokenize:c1};function u1(e){const t=this,n=[];let i=0,r,o,s;return a;function a(b){if(i<n.length){const k=n[i];return t.containerState=k[1],e.attempt(k[0].continuation,l,u)(b)}return u(b)}function l(b){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&g();const k=t.events.length;let D=k,_;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){_=t.events[D][1].end;break}f(i);let P=k;for(;P<t.events.length;)t.events[P][1].end={..._},P++;return Mt(t.events,D+1,0,t.events.slice(k)),t.events.length=P,u(b)}return a(b)}function u(b){if(i===n.length){if(!r)return h(b);if(r.currentConstruct&&r.currentConstruct.concrete)return m(b);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(tf,d,c)(b)}function d(b){return r&&g(),f(i),h(b)}function c(b){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,m(b)}function h(b){return t.containerState={},e.attempt(tf,p,m)(b)}function p(b){return i++,n.push([t.currentConstruct,t.containerState]),h(b)}function m(b){if(b===null){r&&g(),f(0),e.consume(b);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),v(b)}function v(b){if(b===null){y(e.exit("chunkFlow"),!0),f(0),e.consume(b);return}return ne(b)?(e.consume(b),y(e.exit("chunkFlow")),i=0,t.interrupt=void 0,a):(e.consume(b),v)}function y(b,k){const D=t.sliceStream(b);if(k&&D.push(null),b.previous=o,o&&(o.next=b),o=b,r.defineSkip(b.start),r.write(D),t.parser.lazy[b.start.line]){let _=r.events.length;for(;_--;)if(r.events[_][1].start.offset<s&&(!r.events[_][1].end||r.events[_][1].end.offset>s))return;const P=t.events.length;let C=P,G,z;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(G){z=t.events[C][1].end;break}G=!0}for(f(i),_=P;_<t.events.length;)t.events[_][1].end={...z},_++;Mt(t.events,C+1,0,t.events.slice(P)),t.events.length=_}}function f(b){let k=n.length;for(;k-- >b;){const D=n[k];t.containerState=D[1],D[0].exit.call(t,e)}n.length=b}function g(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function c1(e,t,n){return me(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Tr(e){if(e===null||ke(e)||Gi(e))return 1;if(rl(e))return 2}function ol(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const o=e[r].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const bc={name:"attention",resolveAll:d1,tokenize:h1};function d1(e,t){let n=-1,i,r,o,s,a,l,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[i][1].end},h={...e[n][1].start};nf(c,-l),nf(h,l),s={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[i][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},o={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[i][1].end={...s.start},e[n][1].start={...a.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=Wt(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=Wt(u,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=Wt(u,ol(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=Wt(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=Wt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Mt(e,i-1,n-i+3,u),n=i+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function h1(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Tr(i);let o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;const u=e.exit("attentionSequence"),d=Tr(l),c=!d||d===2&&r||n.includes(l),h=!r||r===2&&d||n.includes(i);return u._open=!!(o===42?c:c&&(r||!h)),u._close=!!(o===42?h:h&&(d||!c)),t(l)}}function nf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const p1={name:"autolink",tokenize:f1};function f1(e,t,n){let i=0;return r;function r(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return wt(p)?(e.consume(p),s):p===64?n(p):u(p)}function s(p){return p===43||p===45||p===46||ht(p)?(i=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),i=0,l):(p===43||p===45||p===46||ht(p))&&i++<32?(e.consume(p),a):(i=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Ca(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),d):i1(p)?(e.consume(p),u):n(p)}function d(p){return ht(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),i=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||ht(p))&&i++<63){const m=p===45?h:c;return e.consume(p),m}return n(p)}}const is={partial:!0,tokenize:m1};function m1(e,t,n){return i;function i(o){return ce(o)?me(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||ne(o)?t(o):n(o)}}const kb={continuation:{tokenize:g1},exit:b1,name:"blockQuote",tokenize:v1};function v1(e,t,n){const i=this;return r;function r(s){if(s===62){const a=i.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return ce(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function g1(e,t,n){const i=this;return r;function r(s){return ce(s)?me(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(kb,t,n)(s)}}function b1(e){e.exit("blockQuote")}const Sb={name:"characterEscape",tokenize:w1};function w1(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r}function r(o){return o1(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const zb={name:"characterReference",tokenize:y1};function y1(e,t,n){const i=this;let r=0,o,s;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=ht,d(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=r1,d):(e.enter("characterReferenceValue"),o=7,s=gc,d(c))}function d(c){if(c===59&&r){const h=e.exit("characterReferenceValue");return s===ht&&!Ud(i.sliceSerialize(h))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(c)&&r++<o?(e.consume(c),d):n(c)}}const rf={partial:!0,tokenize:x1},of={concrete:!0,name:"codeFenced",tokenize:_1};function _1(e,t,n){const i=this,r={partial:!0,tokenize:D};let o=0,s=0,a;return l;function l(_){return u(_)}function u(_){const P=i.events[i.events.length-1];return o=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,a=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(_)}function d(_){return _===a?(s++,e.consume(_),d):s<3?n(_):(e.exit("codeFencedFenceSequence"),ce(_)?me(e,c,"whitespace")(_):c(_))}function c(_){return _===null||ne(_)?(e.exit("codeFencedFence"),i.interrupt?t(_):e.check(rf,v,k)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(_))}function h(_){return _===null||ne(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(_)):ce(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),me(e,p,"whitespace")(_)):_===96&&_===a?n(_):(e.consume(_),h)}function p(_){return _===null||ne(_)?c(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(_))}function m(_){return _===null||ne(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(_)):_===96&&_===a?n(_):(e.consume(_),m)}function v(_){return e.attempt(r,k,y)(_)}function y(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),f}function f(_){return o>0&&ce(_)?me(e,g,"linePrefix",o+1)(_):g(_)}function g(_){return _===null||ne(_)?e.check(rf,v,k)(_):(e.enter("codeFlowValue"),b(_))}function b(_){return _===null||ne(_)?(e.exit("codeFlowValue"),g(_)):(e.consume(_),b)}function k(_){return e.exit("codeFenced"),t(_)}function D(_,P,C){let G=0;return z;function z(T){return _.enter("lineEnding"),_.consume(T),_.exit("lineEnding"),F}function F(T){return _.enter("codeFencedFence"),ce(T)?me(_,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):B(T)}function B(T){return T===a?(_.enter("codeFencedFenceSequence"),X(T)):C(T)}function X(T){return T===a?(G++,_.consume(T),X):G>=s?(_.exit("codeFencedFenceSequence"),ce(T)?me(_,te,"whitespace")(T):te(T)):C(T)}function te(T){return T===null||ne(T)?(_.exit("codeFencedFence"),P(T)):C(T)}}}function x1(e,t,n){const i=this;return r;function r(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}const Ql={name:"codeIndented",tokenize:S1},k1={partial:!0,tokenize:z1};function S1(e,t,n){const i=this;return r;function r(u){return e.enter("codeIndented"),me(e,o,"linePrefix",5)(u)}function o(u){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):ne(u)?e.attempt(k1,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||ne(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function z1(e,t,n){const i=this;return r;function r(s){return i.parser.lazy[i.now().line]?n(s):ne(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r):me(e,o,"linePrefix",5)(s)}function o(s){const a=i.events[i.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):ne(s)?r(s):n(s)}}const C1={name:"codeText",previous:E1,resolve:D1,tokenize:P1};function D1(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function E1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function P1(e,t,n){let i=0,r,o;return s;function s(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),i++,a):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(o=e.enter("codeTextSequence"),r=0,d(c)):ne(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||ne(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),u)}function d(c){return c===96?(e.consume(c),r++,d):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",u(c))}}class A1{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&no(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),no(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),no(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);no(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);no(this.left,n.reverse())}}}function no(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Cb(e){const t={};let n=-1,i,r,o,s,a,l,u;const d=new A1(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(i=d.get(n),n&&i[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=i[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,I1(d,n)),n=t[n],u=!0);else if(i[1]._container){for(o=n,r=void 0;o--;)if(s=d.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(r&&(d.get(r)[1].type="lineEndingBlank"),s[1].type="lineEnding",r=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;r&&(i[1].end={...d.get(r)[1].start},a=d.slice(r,n),a.unshift(i),d.splice(r,n-r+1,a))}}return Mt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function I1(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const o=[];let s=n._tokenizer;s||(s=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],u={};let d,c,h=-1,p=n,m=0,v=0;const y=[v];for(;p;){for(;e.get(++r)[1]!==p;);o.push(r),p._tokenizer||(d=i.sliceStream(p),p.next||d.push(null),c&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(v=h+1,y.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),h=y.length;h--;){const f=a.slice(y[h],y[h+1]),g=o.pop();l.push([g,g+f.length-1]),e.splice(g,2,f)}for(l.reverse(),h=-1;++h<l.length;)u[m+l[h][0]]=m+l[h][1],m+=l[h][1]-l[h][0]-1;return u}const T1={resolve:N1,tokenize:R1},O1={partial:!0,tokenize:L1};function N1(e){return Cb(e),e}function R1(e,t){let n;return i;function i(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(a)}function r(a){return a===null?o(a):ne(a)?e.check(O1,s,o)(a):(e.consume(a),r)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function L1(e,t,n){const i=this;return r;function r(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),me(e,o,"linePrefix")}function o(s){if(s===null||ne(s))return n(s);const a=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,n,t)(s)}}function Db(e,t,n,i,r,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return c;function c(f){return f===60?(e.enter(i),e.enter(r),e.enter(o),e.consume(f),e.exit(o),h):f===null||f===32||f===41||Ca(f)?n(f):(e.enter(i),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),v(f))}function h(f){return f===62?(e.enter(o),e.consume(f),e.exit(o),e.exit(r),e.exit(i),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===62?(e.exit("chunkString"),e.exit(a),h(f)):f===null||f===60||ne(f)?n(f):(e.consume(f),f===92?m:p)}function m(f){return f===60||f===62||f===92?(e.consume(f),p):p(f)}function v(f){return!d&&(f===null||f===41||ke(f))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(i),t(f)):d<u&&f===40?(e.consume(f),d++,v):f===41?(e.consume(f),d--,v):f===null||f===32||f===40||Ca(f)?n(f):(e.consume(f),f===92?y:v)}function y(f){return f===40||f===41||f===92?(e.consume(f),v):v(f)}}function Eb(e,t,n,i,r,o){const s=this;let a=0,l;return u;function u(p){return e.enter(i),e.enter(r),e.consume(p),e.exit(r),e.enter(o),d}function d(p){return a>999||p===null||p===91||p===93&&!l||p===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(r),e.consume(p),e.exit(r),e.exit(i),t):ne(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||ne(p)||a++>999?(e.exit("chunkString"),d(p)):(e.consume(p),l||(l=!ce(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function Pb(e,t,n,i,r,o){let s;return a;function a(h){return h===34||h===39||h===40?(e.enter(i),e.enter(r),e.consume(h),e.exit(r),s=h===40?41:h,l):n(h)}function l(h){return h===s?(e.enter(r),e.consume(h),e.exit(r),e.exit(i),t):(e.enter(o),u(h))}function u(h){return h===s?(e.exit(o),l(s)):h===null?n(h):ne(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),me(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===s||h===null||ne(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:d)}function c(h){return h===s||h===92?(e.consume(h),d):d(h)}}function xo(e,t){let n;return i;function i(r){return ne(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):ce(r)?me(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const M1={name:"definition",tokenize:V1},F1={partial:!0,tokenize:G1};function V1(e,t,n){const i=this;let r;return o;function o(p){return e.enter("definition"),s(p)}function s(p){return Eb.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return r=ln(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return ke(p)?xo(e,u)(p):u(p)}function u(p){return Db(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(F1,c,c)(p)}function c(p){return ce(p)?me(e,h,"whitespace")(p):h(p)}function h(p){return p===null||ne(p)?(e.exit("definition"),i.parser.defined.push(r),t(p)):n(p)}}function G1(e,t,n){return i;function i(a){return ke(a)?xo(e,r)(a):n(a)}function r(a){return Pb(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return ce(a)?me(e,s,"whitespace")(a):s(a)}function s(a){return a===null||ne(a)?t(a):n(a)}}const $1={name:"hardBreakEscape",tokenize:j1};function j1(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return ne(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const B1={name:"headingAtx",resolve:W1,tokenize:H1};function W1(e,t){let n=e.length-2,i=3,r,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Mt(e,i,n-i+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function H1(e,t,n){let i=0;return r;function r(d){return e.enter("atxHeading"),o(d)}function o(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&i++<6?(e.consume(d),s):d===null||ke(d)?(e.exit("atxHeadingSequence"),a(d)):n(d)}function a(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||ne(d)?(e.exit("atxHeading"),t(d)):ce(d)?me(e,a,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),a(d))}function u(d){return d===null||d===35||ke(d)?(e.exit("atxHeadingText"),a(d)):(e.consume(d),u)}}const U1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],sf=["pre","script","style","textarea"],Z1={concrete:!0,name:"htmlFlow",resolveTo:q1,tokenize:K1},Y1={partial:!0,tokenize:Q1},J1={partial:!0,tokenize:X1};function q1(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function K1(e,t,n){const i=this;let r,o,s,a,l;return u;function u(S){return d(S)}function d(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),c}function c(S){return S===33?(e.consume(S),h):S===47?(e.consume(S),o=!0,v):S===63?(e.consume(S),r=3,i.interrupt?t:w):wt(S)?(e.consume(S),s=String.fromCharCode(S),y):n(S)}function h(S){return S===45?(e.consume(S),r=2,p):S===91?(e.consume(S),r=5,a=0,m):wt(S)?(e.consume(S),r=4,i.interrupt?t:w):n(S)}function p(S){return S===45?(e.consume(S),i.interrupt?t:w):n(S)}function m(S){const Oe="CDATA[";return S===Oe.charCodeAt(a++)?(e.consume(S),a===Oe.length?i.interrupt?t:B:m):n(S)}function v(S){return wt(S)?(e.consume(S),s=String.fromCharCode(S),y):n(S)}function y(S){if(S===null||S===47||S===62||ke(S)){const Oe=S===47,_e=s.toLowerCase();return!Oe&&!o&&sf.includes(_e)?(r=1,i.interrupt?t(S):B(S)):U1.includes(s.toLowerCase())?(r=6,Oe?(e.consume(S),f):i.interrupt?t(S):B(S)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(S):o?g(S):b(S))}return S===45||ht(S)?(e.consume(S),s+=String.fromCharCode(S),y):n(S)}function f(S){return S===62?(e.consume(S),i.interrupt?t:B):n(S)}function g(S){return ce(S)?(e.consume(S),g):z(S)}function b(S){return S===47?(e.consume(S),z):S===58||S===95||wt(S)?(e.consume(S),k):ce(S)?(e.consume(S),b):z(S)}function k(S){return S===45||S===46||S===58||S===95||ht(S)?(e.consume(S),k):D(S)}function D(S){return S===61?(e.consume(S),_):ce(S)?(e.consume(S),D):b(S)}function _(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),l=S,P):ce(S)?(e.consume(S),_):C(S)}function P(S){return S===l?(e.consume(S),l=null,G):S===null||ne(S)?n(S):(e.consume(S),P)}function C(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||ke(S)?D(S):(e.consume(S),C)}function G(S){return S===47||S===62||ce(S)?b(S):n(S)}function z(S){return S===62?(e.consume(S),F):n(S)}function F(S){return S===null||ne(S)?B(S):ce(S)?(e.consume(S),F):n(S)}function B(S){return S===45&&r===2?(e.consume(S),$):S===60&&r===1?(e.consume(S),re):S===62&&r===4?(e.consume(S),he):S===63&&r===3?(e.consume(S),w):S===93&&r===5?(e.consume(S),ee):ne(S)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Y1,ge,X)(S)):S===null||ne(S)?(e.exit("htmlFlowData"),X(S)):(e.consume(S),B)}function X(S){return e.check(J1,te,ge)(S)}function te(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),T}function T(S){return S===null||ne(S)?X(S):(e.enter("htmlFlowData"),B(S))}function $(S){return S===45?(e.consume(S),w):B(S)}function re(S){return S===47?(e.consume(S),s="",V):B(S)}function V(S){if(S===62){const Oe=s.toLowerCase();return sf.includes(Oe)?(e.consume(S),he):B(S)}return wt(S)&&s.length<8?(e.consume(S),s+=String.fromCharCode(S),V):B(S)}function ee(S){return S===93?(e.consume(S),w):B(S)}function w(S){return S===62?(e.consume(S),he):S===45&&r===2?(e.consume(S),w):B(S)}function he(S){return S===null||ne(S)?(e.exit("htmlFlowData"),ge(S)):(e.consume(S),he)}function ge(S){return e.exit("htmlFlow"),t(S)}}function X1(e,t,n){const i=this;return r;function r(s){return ne(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}function Q1(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(is,t,n)}}const eS={name:"htmlText",tokenize:tS};function tS(e,t,n){const i=this;let r,o,s;return a;function a(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),l}function l(w){return w===33?(e.consume(w),u):w===47?(e.consume(w),D):w===63?(e.consume(w),b):wt(w)?(e.consume(w),C):n(w)}function u(w){return w===45?(e.consume(w),d):w===91?(e.consume(w),o=0,m):wt(w)?(e.consume(w),g):n(w)}function d(w){return w===45?(e.consume(w),p):n(w)}function c(w){return w===null?n(w):w===45?(e.consume(w),h):ne(w)?(s=c,re(w)):(e.consume(w),c)}function h(w){return w===45?(e.consume(w),p):c(w)}function p(w){return w===62?$(w):w===45?h(w):c(w)}function m(w){const he="CDATA[";return w===he.charCodeAt(o++)?(e.consume(w),o===he.length?v:m):n(w)}function v(w){return w===null?n(w):w===93?(e.consume(w),y):ne(w)?(s=v,re(w)):(e.consume(w),v)}function y(w){return w===93?(e.consume(w),f):v(w)}function f(w){return w===62?$(w):w===93?(e.consume(w),f):v(w)}function g(w){return w===null||w===62?$(w):ne(w)?(s=g,re(w)):(e.consume(w),g)}function b(w){return w===null?n(w):w===63?(e.consume(w),k):ne(w)?(s=b,re(w)):(e.consume(w),b)}function k(w){return w===62?$(w):b(w)}function D(w){return wt(w)?(e.consume(w),_):n(w)}function _(w){return w===45||ht(w)?(e.consume(w),_):P(w)}function P(w){return ne(w)?(s=P,re(w)):ce(w)?(e.consume(w),P):$(w)}function C(w){return w===45||ht(w)?(e.consume(w),C):w===47||w===62||ke(w)?G(w):n(w)}function G(w){return w===47?(e.consume(w),$):w===58||w===95||wt(w)?(e.consume(w),z):ne(w)?(s=G,re(w)):ce(w)?(e.consume(w),G):$(w)}function z(w){return w===45||w===46||w===58||w===95||ht(w)?(e.consume(w),z):F(w)}function F(w){return w===61?(e.consume(w),B):ne(w)?(s=F,re(w)):ce(w)?(e.consume(w),F):G(w)}function B(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),r=w,X):ne(w)?(s=B,re(w)):ce(w)?(e.consume(w),B):(e.consume(w),te)}function X(w){return w===r?(e.consume(w),r=void 0,T):w===null?n(w):ne(w)?(s=X,re(w)):(e.consume(w),X)}function te(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||ke(w)?G(w):(e.consume(w),te)}function T(w){return w===47||w===62||ke(w)?G(w):n(w)}function $(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function re(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),V}function V(w){return ce(w)?me(e,ee,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ee(w)}function ee(w){return e.enter("htmlTextData"),s(w)}}const Zd={name:"labelEnd",resolveAll:oS,resolveTo:sS,tokenize:aS},nS={tokenize:lS},iS={tokenize:uS},rS={tokenize:cS};function oS(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&Mt(e,0,e.length,n),e}function sS(e,t){let n=e.length,i=0,r,o,s,a;for(;n--;)if(r=e[n][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(s=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},d={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=Wt(a,e.slice(o+1,o+i+3)),a=Wt(a,[["enter",d,t]]),a=Wt(a,ol(t.parser.constructs.insideSpan.null,e.slice(o+i+4,s-3),t)),a=Wt(a,[["exit",d,t],e[s-2],e[s-1],["exit",u,t]]),a=Wt(a,e.slice(s+1)),a=Wt(a,[["exit",l,t]]),Mt(e,o,e.length,a),e}function aS(e,t,n){const i=this;let r=i.events.length,o,s;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){o=i.events[r][1];break}return a;function a(h){return o?o._inactive?c(h):(s=i.parser.defined.includes(ln(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(nS,d,s?d:c)(h):h===91?e.attempt(iS,d,s?u:c)(h):s?d(h):c(h)}function u(h){return e.attempt(rS,d,c)(h)}function d(h){return t(h)}function c(h){return o._balanced=!0,n(h)}}function lS(e,t,n){return i;function i(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),r}function r(c){return ke(c)?xo(e,o)(c):o(c)}function o(c){return c===41?d(c):Db(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function s(c){return ke(c)?xo(e,l)(c):d(c)}function a(c){return n(c)}function l(c){return c===34||c===39||c===40?Pb(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function u(c){return ke(c)?xo(e,d)(c):d(c)}function d(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function uS(e,t,n){const i=this;return r;function r(a){return Eb.call(i,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return i.parser.defined.includes(ln(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function cS(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r}function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const dS={name:"labelStartImage",resolveAll:Zd.resolveAll,tokenize:hS};function hS(e,t,n){const i=this;return r;function r(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(a):t(a)}}const pS={name:"labelStartLink",resolveAll:Zd.resolveAll,tokenize:fS};function fS(e,t,n){const i=this;return r;function r(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(s):t(s)}}const eu={name:"lineEnding",tokenize:mS};function mS(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),me(e,t,"linePrefix")}}const Qs={name:"thematicBreak",tokenize:vS};function vS(e,t,n){let i=0,r;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return r=u,a(u)}function a(u){return u===r?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||ne(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===r?(e.consume(u),i++,l):(e.exit("thematicBreakSequence"),ce(u)?me(e,a,"whitespace")(u):a(u))}}const St={continuation:{tokenize:yS},exit:xS,name:"list",tokenize:wS},gS={partial:!0,tokenize:kS},bS={partial:!0,tokenize:_S};function wS(e,t,n){const i=this,r=i.events[i.events.length-1];let o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,s=0;return a;function a(p){const m=i.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!i.containerState.marker||p===i.containerState.marker:gc(p)){if(i.containerState.type||(i.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Qs,n,u)(p):u(p);if(!i.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return gc(p)&&++s<10?(e.consume(p),l):(!i.interrupt||s<2)&&(i.containerState.marker?p===i.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||p,e.check(is,i.interrupt?n:d,e.attempt(gS,h,c))}function d(p){return i.containerState.initialBlankLine=!0,o++,h(p)}function c(p){return ce(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function yS(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(is,r,o);function r(a){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,me(e,t,"listItemIndent",i.containerState.size+1)(a)}function o(a){return i.containerState.furtherBlankLines||!ce(a)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(a)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(bS,t,s)(a))}function s(a){return i.containerState._closeFlow=!0,i.interrupt=void 0,me(e,e.attempt(St,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function _S(e,t,n){const i=this;return me(e,r,"listItemIndent",i.containerState.size+1);function r(o){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(o):n(o)}}function xS(e){e.exit(this.containerState.type)}function kS(e,t,n){const i=this;return me(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){const s=i.events[i.events.length-1];return!ce(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const af={name:"setextUnderline",resolveTo:SS,tokenize:zS};function SS(e,t){let n=e.length,i,r,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",s,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function zS(e,t,n){const i=this;let r;return o;function o(u){let d=i.events.length,c;for(;d--;)if(i.events[d][1].type!=="lineEnding"&&i.events[d][1].type!=="linePrefix"&&i.events[d][1].type!=="content"){c=i.events[d][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||c)?(e.enter("setextHeadingLine"),r=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===r?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),ce(u)?me(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ne(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const CS={tokenize:DS};function DS(e){const t=this,n=e.attempt(is,i,e.attempt(this.parser.constructs.flowInitial,r,me(e,e.attempt(this.parser.constructs.flow,r,e.attempt(T1,r)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const ES={resolveAll:Ib()},PS=Ab("string"),AS=Ab("text");function Ab(e){return{resolveAll:Ib(e==="text"?IS:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],o=n.attempt(r,s,a);return s;function s(d){return u(d)?o(d):a(d)}function a(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),o(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const c=r[d];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(i,i.previous))return!0}return!1}}}function Ib(e){return t;function t(n,i){let r=-1,o;for(;++r<=n.length;)o===void 0?n[r]&&n[r][1].type==="data"&&(o=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==o+2&&(n[o][1].end=n[r-1][1].end,n.splice(o+2,r-o-2),r=o+2),o=void 0);return e?e(n,i):n}}function IS(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let o=r.length,s=-1,a=0,l;for(;o--;){const u=r[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-a,offset:i.end.offset-a},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const TS={42:St,43:St,45:St,48:St,49:St,50:St,51:St,52:St,53:St,54:St,55:St,56:St,57:St,62:kb},OS={91:M1},NS={[-2]:Ql,[-1]:Ql,32:Ql},RS={35:B1,42:Qs,45:[af,Qs],60:Z1,61:af,95:Qs,96:of,126:of},LS={38:zb,92:Sb},MS={[-5]:eu,[-4]:eu,[-3]:eu,33:dS,38:zb,42:bc,60:[p1,eS],91:pS,92:[$1,Sb],93:Zd,95:bc,96:C1},FS={null:[bc,ES]},VS={null:[42,95]},GS={null:[]},$S=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:VS,contentInitial:OS,disable:GS,document:TS,flow:RS,flowInitial:NS,insideSpan:FS,string:LS,text:MS},Symbol.toStringTag,{value:"Module"}));function jS(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},o=[];let s=[],a=[];const l={attempt:P(D),check:P(_),consume:g,enter:b,exit:k,interrupt:P(_,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:m,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let d=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function c(F){return s=Wt(s,F),y(),s[s.length-1]!==null?[]:(C(t,0),u.events=ol(o,u.events,u),u.events)}function h(F,B){return WS(p(F),B)}function p(F){return BS(s,F)}function m(){const{_bufferIndex:F,_index:B,line:X,column:te,offset:T}=i;return{_bufferIndex:F,_index:B,line:X,column:te,offset:T}}function v(F){r[F.line]=F.column,z()}function y(){let F;for(;i._index<s.length;){const B=s[i._index];if(typeof B=="string")for(F=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===F&&i._bufferIndex<B.length;)f(B.charCodeAt(i._bufferIndex));else f(B)}}function f(F){d=d(F)}function g(F){ne(F)?(i.line++,i.column=1,i.offset+=F===-3?2:1,z()):F!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=F}function b(F,B){const X=B||{};return X.type=F,X.start=m(),u.events.push(["enter",X,u]),a.push(X),X}function k(F){const B=a.pop();return B.end=m(),u.events.push(["exit",B,u]),B}function D(F,B){C(F,B.from)}function _(F,B){B.restore()}function P(F,B){return X;function X(te,T,$){let re,V,ee,w;return Array.isArray(te)?ge(te):"tokenize"in te?ge([te]):he(te);function he(ae){return vt;function vt(Kt){const Ce=Kt!==null&&ae[Kt],Sn=Kt!==null&&ae.null,zn=[...Array.isArray(Ce)?Ce:Ce?[Ce]:[],...Array.isArray(Sn)?Sn:Sn?[Sn]:[]];return ge(zn)(Kt)}}function ge(ae){return re=ae,V=0,ae.length===0?$:S(ae[V])}function S(ae){return vt;function vt(Kt){return w=G(),ee=ae,ae.partial||(u.currentConstruct=ae),ae.name&&u.parser.constructs.disable.null.includes(ae.name)?_e():ae.tokenize.call(B?Object.assign(Object.create(u),B):u,l,Oe,_e)(Kt)}}function Oe(ae){return F(ee,w),T}function _e(ae){return w.restore(),++V<re.length?S(re[V]):$}}}function C(F,B){F.resolveAll&&!o.includes(F)&&o.push(F),F.resolve&&Mt(u.events,B,u.events.length-B,F.resolve(u.events.slice(B),u)),F.resolveTo&&(u.events=F.resolveTo(u.events,u))}function G(){const F=m(),B=u.previous,X=u.currentConstruct,te=u.events.length,T=Array.from(a);return{from:te,restore:$};function $(){i=F,u.previous=B,u.currentConstruct=X,u.events.length=te,a=T,z()}}function z(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function BS(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex;let s;if(n===r)s=[e[n].slice(i,o)];else{if(s=e.slice(n,r),i>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(i):s.shift()}o>0&&s.push(e[r].slice(0,o))}return s}function WS(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
|
|
42
|
+
`;break}case-3:{s=`\r
|
|
43
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,i.push(s)}return i.join("")}function HS(e){const i={constructs:_b([$S,...(e||{}).extensions||[]]),content:r(s1),defined:[],document:r(l1),flow:r(CS),lazy:{},string:r(PS),text:r(AS)};return i;function r(o){return s;function s(a){return jS(i,o,a)}}}function US(e){for(;!Cb(e););return e}const lf=/[\0\t\n\r]/g;function ZS(){let e=1,t="",n=!0,i;return r;function r(o,s,a){const l=[];let u,d,c,h,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(lf.lastIndex=c,u=lf.exec(o),h=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(h),!u){t=o.slice(c);break}if(p===10&&c===h&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),c<h&&(l.push(o.slice(c,h)),e+=h-c),p){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:i=!0,e=1}c=h+1}return a&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const YS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function JS(e){return e.replace(YS,qS)}function qS(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return xb(n.slice(o?2:1),o?16:10)}return Ud(n)||e}const Tb={}.hasOwnProperty;function KS(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),XS(n)(US(HS(n).document().write(ZS()(e,t,!0))))}function XS(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Ah),autolinkProtocol:G,autolinkEmail:G,atxHeading:o(Dh),blockQuote:o(Sn),characterEscape:G,characterReference:G,codeFenced:o(zn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(zn,s),codeText:o(Yi,s),codeTextData:G,data:G,codeFlowValue:G,definition:o(Hr),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Ji),hardBreakEscape:o(Eh),hardBreakTrailing:o(Eh),htmlFlow:o(Ph,s),htmlFlowData:G,htmlText:o(Ph,s),htmlTextData:G,image:o(s0),label:s,link:o(Ah),listItem:o(a0),listItemValue:h,listOrdered:o(Ih,c),listUnordered:o(Ih),paragraph:o(l0),reference:S,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Dh),strong:o(u0),thematicBreak:o(d0)},exit:{atxHeading:l(),atxHeadingSequence:D,autolink:l(),autolinkEmail:Ce,autolinkProtocol:Kt,blockQuote:l(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:ae,characterReference:vt,codeFenced:l(y),codeFencedFence:v,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:z,codeIndented:l(f),codeText:l(T),codeTextData:z,data:z,definition:l(),definitionDestinationString:k,definitionLabelString:g,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(X),htmlFlowData:z,htmlText:l(te),htmlTextData:z,image:l(re),label:ee,labelText:V,lineEnding:F,link:l($),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Oe,resourceDestinationString:w,resourceTitleString:he,resource:ge,setextHeading:l(C),setextHeadingLineSequence:P,setextHeadingText:_,strong:l(),thematicBreak:l()}};Ob(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(O){let j={type:"root",children:[]};const se={stack:[j],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:d,data:n},pe=[];let xe=-1;for(;++xe<O.length;)if(O[xe][1].type==="listOrdered"||O[xe][1].type==="listUnordered")if(O[xe][0]==="enter")pe.push(xe);else{const Xt=pe.pop();xe=r(O,Xt,xe)}for(xe=-1;++xe<O.length;){const Xt=t[O[xe][0]];Tb.call(Xt,O[xe][1].type)&&Xt[O[xe][1].type].call(Object.assign({sliceSerialize:O[xe][2].sliceSerialize},se),O[xe][1])}if(se.tokenStack.length>0){const Xt=se.tokenStack[se.tokenStack.length-1];(Xt[1]||uf).call(se,void 0,Xt[0])}for(j.position={start:jn(O.length>0?O[0][1].start:{line:1,column:1,offset:0}),end:jn(O.length>0?O[O.length-2][1].end:{line:1,column:1,offset:0})},xe=-1;++xe<t.transforms.length;)j=t.transforms[xe](j)||j;return j}function r(O,j,se){let pe=j-1,xe=-1,Xt=!1,yi,Cn,Ur,Zr;for(;++pe<=se;){const Tt=O[pe];switch(Tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Tt[0]==="enter"?xe++:xe--,Zr=void 0;break}case"lineEndingBlank":{Tt[0]==="enter"&&(yi&&!Zr&&!xe&&!Ur&&(Ur=pe),Zr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Zr=void 0}if(!xe&&Tt[0]==="enter"&&Tt[1].type==="listItemPrefix"||xe===-1&&Tt[0]==="exit"&&(Tt[1].type==="listUnordered"||Tt[1].type==="listOrdered")){if(yi){let qi=pe;for(Cn=void 0;qi--;){const Dn=O[qi];if(Dn[1].type==="lineEnding"||Dn[1].type==="lineEndingBlank"){if(Dn[0]==="exit")continue;Cn&&(O[Cn][1].type="lineEndingBlank",Xt=!0),Dn[1].type="lineEnding",Cn=qi}else if(!(Dn[1].type==="linePrefix"||Dn[1].type==="blockQuotePrefix"||Dn[1].type==="blockQuotePrefixWhitespace"||Dn[1].type==="blockQuoteMarker"||Dn[1].type==="listItemIndent"))break}Ur&&(!Cn||Ur<Cn)&&(yi._spread=!0),yi.end=Object.assign({},Cn?O[Cn][1].start:Tt[1].end),O.splice(Cn||pe,0,["exit",yi,Tt[2]]),pe++,se++}if(Tt[1].type==="listItemPrefix"){const qi={type:"listItem",_spread:!1,start:Object.assign({},Tt[1].start),end:void 0};yi=qi,O.splice(pe,0,["enter",qi,Tt[2]]),pe++,se++,Ur=void 0,Zr=!0}}}return O[j][1]._spread=Xt,se}function o(O,j){return se;function se(pe){a.call(this,O(pe),pe),j&&j.call(this,pe)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(O,j,se){this.stack[this.stack.length-1].children.push(O),this.stack.push(O),this.tokenStack.push([j,se||void 0]),O.position={start:jn(j.start),end:void 0}}function l(O){return j;function j(se){O&&O.call(this,se),u.call(this,se)}}function u(O,j){const se=this.stack.pop(),pe=this.tokenStack.pop();if(pe)pe[0].type!==O.type&&(j?j.call(this,O,pe[0]):(pe[1]||uf).call(this,O,pe[0]));else throw new Error("Cannot close `"+O.type+"` ("+_o({start:O.start,end:O.end})+"): it’s not open");se.position.end=jn(O.end)}function d(){return Hd(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(O){if(this.data.expectingFirstListItemValue){const j=this.stack[this.stack.length-2];j.start=Number.parseInt(this.sliceSerialize(O),10),this.data.expectingFirstListItemValue=void 0}}function p(){const O=this.resume(),j=this.stack[this.stack.length-1];j.lang=O}function m(){const O=this.resume(),j=this.stack[this.stack.length-1];j.meta=O}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const O=this.resume(),j=this.stack[this.stack.length-1];j.value=O.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function f(){const O=this.resume(),j=this.stack[this.stack.length-1];j.value=O.replace(/(\r?\n|\r)$/g,"")}function g(O){const j=this.resume(),se=this.stack[this.stack.length-1];se.label=j,se.identifier=ln(this.sliceSerialize(O)).toLowerCase()}function b(){const O=this.resume(),j=this.stack[this.stack.length-1];j.title=O}function k(){const O=this.resume(),j=this.stack[this.stack.length-1];j.url=O}function D(O){const j=this.stack[this.stack.length-1];if(!j.depth){const se=this.sliceSerialize(O).length;j.depth=se}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function P(O){const j=this.stack[this.stack.length-1];j.depth=this.sliceSerialize(O).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function G(O){const se=this.stack[this.stack.length-1].children;let pe=se[se.length-1];(!pe||pe.type!=="text")&&(pe=c0(),pe.position={start:jn(O.start),end:void 0},se.push(pe)),this.stack.push(pe)}function z(O){const j=this.stack.pop();j.value+=this.sliceSerialize(O),j.position.end=jn(O.end)}function F(O){const j=this.stack[this.stack.length-1];if(this.data.atHardBreak){const se=j.children[j.children.length-1];se.position.end=jn(O.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&(G.call(this,O),z.call(this,O))}function B(){this.data.atHardBreak=!0}function X(){const O=this.resume(),j=this.stack[this.stack.length-1];j.value=O}function te(){const O=this.resume(),j=this.stack[this.stack.length-1];j.value=O}function T(){const O=this.resume(),j=this.stack[this.stack.length-1];j.value=O}function $(){const O=this.stack[this.stack.length-1];if(this.data.inReference){const j=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=j,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function re(){const O=this.stack[this.stack.length-1];if(this.data.inReference){const j=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=j,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function V(O){const j=this.sliceSerialize(O),se=this.stack[this.stack.length-2];se.label=JS(j),se.identifier=ln(j).toLowerCase()}function ee(){const O=this.stack[this.stack.length-1],j=this.resume(),se=this.stack[this.stack.length-1];if(this.data.inReference=!0,se.type==="link"){const pe=O.children;se.children=pe}else se.alt=j}function w(){const O=this.resume(),j=this.stack[this.stack.length-1];j.url=O}function he(){const O=this.resume(),j=this.stack[this.stack.length-1];j.title=O}function ge(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function Oe(O){const j=this.resume(),se=this.stack[this.stack.length-1];se.label=j,se.identifier=ln(this.sliceSerialize(O)).toLowerCase(),this.data.referenceType="full"}function _e(O){this.data.characterReferenceType=O.type}function ae(O){const j=this.sliceSerialize(O),se=this.data.characterReferenceType;let pe;se?(pe=xb(j,se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):pe=Ud(j);const xe=this.stack[this.stack.length-1];xe.value+=pe}function vt(O){const j=this.stack.pop();j.position.end=jn(O.end)}function Kt(O){z.call(this,O);const j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(O)}function Ce(O){z.call(this,O);const j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(O)}function Sn(){return{type:"blockquote",children:[]}}function zn(){return{type:"code",lang:null,meta:null,value:""}}function Yi(){return{type:"inlineCode",value:""}}function Hr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ji(){return{type:"emphasis",children:[]}}function Dh(){return{type:"heading",depth:0,children:[]}}function Eh(){return{type:"break"}}function Ph(){return{type:"html",value:""}}function s0(){return{type:"image",title:null,url:"",alt:null}}function Ah(){return{type:"link",title:null,url:"",children:[]}}function Ih(O){return{type:"list",ordered:O.type==="listOrdered",start:null,spread:O._spread,children:[]}}function a0(O){return{type:"listItem",spread:O._spread,checked:null,children:[]}}function l0(){return{type:"paragraph",children:[]}}function u0(){return{type:"strong",children:[]}}function c0(){return{type:"text",value:""}}function d0(){return{type:"thematicBreak"}}}function jn(e){return{line:e.line,column:e.column,offset:e.offset}}function Ob(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?Ob(e,i):QS(e,i)}}function QS(e,t){let n;for(n in t)if(Tb.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function uf(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+_o({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+_o({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+_o({start:t.start,end:t.end})+") is still open")}function ez(e){const t=this;t.parser=n;function n(i){return KS(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function tz(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function nz(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
44
|
+
`}]}function iz(e,t){const n=t.value?t.value+`
|
|
45
|
+
`:"",i={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(i.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function rz(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oz(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sz(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),r=$r(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let s,a=e.footnoteCounts.get(i);a===void 0?(a=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(i,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function az(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lz(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Nb(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const r=e.all(t),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&s.type==="text"?s.value+=i:r.push({type:"text",value:i}),r}function uz(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return Nb(e,t);const r={src:$r(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function cz(e,t){const n={src:$r(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function dz(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function hz(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return Nb(e,t);const r={href:$r(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function pz(e,t){const n={href:$r(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function fz(e,t,n){const i=e.all(t),r=n?mz(n):Rb(t),o={},s=[];if(typeof t.checked=="boolean"){const d=i[0];let c;d&&d.type==="element"&&d.tagName==="p"?c=d:(c={type:"element",tagName:"p",properties:{},children:[]},i.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const d=i[a];(r||a!==0||d.type!=="element"||d.tagName!=="p")&&s.push({type:"text",value:`
|
|
46
|
+
`}),d.type==="element"&&d.tagName==="p"&&!r?s.push(...d.children):s.push(d)}const l=i[i.length-1];l&&(r||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
47
|
+
`});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function mz(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=Rb(n[i])}return t}function Rb(e){const t=e.spread;return t??e.children.length>1}function vz(e,t){const n={},i=e.all(t);let r=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++r<i.length;){const s=i[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function gz(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bz(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function wz(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yz(e,t){const n=e.all(t),i=n.shift(),r=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),r.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=$d(t.children[1]),l=fb(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),r.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function _z(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const c=t.children[l],h={},p=s?s[l]:void 0;p&&(h.align=p);let m={type:"element",tagName:o,properties:h,children:[]};c&&(m.children=e.all(c),e.patch(c,m),m=e.applyData(c,m)),u.push(m)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function xz(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const cf=9,df=32;function kz(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),r=0;const o=[];for(;i;)o.push(hf(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return o.push(hf(t.slice(r),r>0,!1)),o.join("")}function hf(e,t,n){let i=0,r=e.length;if(t){let o=e.codePointAt(i);for(;o===cf||o===df;)i++,o=e.codePointAt(i)}if(n){let o=e.codePointAt(r-1);for(;o===cf||o===df;)r--,o=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function Sz(e,t){const n={type:"text",value:kz(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function zz(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Cz={blockquote:tz,break:nz,code:iz,delete:rz,emphasis:oz,footnoteReference:sz,heading:az,html:lz,imageReference:uz,image:cz,inlineCode:dz,linkReference:hz,link:pz,listItem:fz,list:vz,paragraph:gz,root:bz,strong:wz,table:yz,tableCell:xz,tableRow:_z,text:Sz,thematicBreak:zz,toml:Cs,yaml:Cs,definition:Cs,footnoteDefinition:Cs};function Cs(){}const Lb=-1,sl=0,ko=1,Da=2,Yd=3,Jd=4,qd=5,Kd=6,Mb=7,Fb=8,pf=typeof self=="object"?self:globalThis,Dz=(e,t)=>{const n=(r,o)=>(e.set(o,r),r),i=r=>{if(e.has(r))return e.get(r);const[o,s]=t[r];switch(o){case sl:case Lb:return n(s,r);case ko:{const a=n([],r);for(const l of s)a.push(i(l));return a}case Da:{const a=n({},r);for(const[l,u]of s)a[i(l)]=i(u);return a}case Yd:return n(new Date(s),r);case Jd:{const{source:a,flags:l}=s;return n(new RegExp(a,l),r)}case qd:{const a=n(new Map,r);for(const[l,u]of s)a.set(i(l),i(u));return a}case Kd:{const a=n(new Set,r);for(const l of s)a.add(i(l));return a}case Mb:{const{name:a,message:l}=s;return n(new pf[a](l),r)}case Fb:return n(BigInt(s),r);case"BigInt":return n(Object(BigInt(s)),r);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return n(new DataView(a),s)}}return n(new pf[o](s),r)};return i},ff=e=>Dz(new Map,e)(0),Xi="",{toString:Ez}={},{keys:Pz}=Object,io=e=>{const t=typeof e;if(t!=="object"||!e)return[sl,t];const n=Ez.call(e).slice(8,-1);switch(n){case"Array":return[ko,Xi];case"Object":return[Da,Xi];case"Date":return[Yd,Xi];case"RegExp":return[Jd,Xi];case"Map":return[qd,Xi];case"Set":return[Kd,Xi];case"DataView":return[ko,n]}return n.includes("Array")?[ko,n]:n.includes("Error")?[Mb,n]:[Da,n]},Ds=([e,t])=>e===sl&&(t==="function"||t==="symbol"),Az=(e,t,n,i)=>{const r=(s,a)=>{const l=i.push(s)-1;return n.set(a,l),l},o=s=>{if(n.has(s))return n.get(s);let[a,l]=io(s);switch(a){case sl:{let d=s;switch(l){case"bigint":a=Fb,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return r([Lb],s)}return r([a,d],s)}case ko:{if(l){let h=s;return l==="DataView"?h=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(s)),r([l,[...h]],s)}const d=[],c=r([a,d],s);for(const h of s)d.push(o(h));return c}case Da:{if(l)switch(l){case"BigInt":return r([l,s.toString()],s);case"Boolean":case"Number":case"String":return r([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const d=[],c=r([a,d],s);for(const h of Pz(s))(e||!Ds(io(s[h])))&&d.push([o(h),o(s[h])]);return c}case Yd:return r([a,s.toISOString()],s);case Jd:{const{source:d,flags:c}=s;return r([a,{source:d,flags:c}],s)}case qd:{const d=[],c=r([a,d],s);for(const[h,p]of s)(e||!(Ds(io(h))||Ds(io(p))))&&d.push([o(h),o(p)]);return c}case Kd:{const d=[],c=r([a,d],s);for(const h of s)(e||!Ds(io(h)))&&d.push(o(h));return c}}const{message:u}=s;return r([a,{name:l,message:u}],s)};return o},mf=(e,{json:t,lossy:n}={})=>{const i=[];return Az(!(t||n),!!t,new Map,i)(e),i},Ea=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ff(mf(e,t)):structuredClone(e):(e,t)=>ff(mf(e,t));function Iz(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Tz(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Oz(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Iz,i=e.options.footnoteBackLabel||Tz,r=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const d=e.all(u),c=String(u.identifier).toUpperCase(),h=$r(c.toLowerCase());let p=0;const m=[],v=e.footnoteCounts.get(c);for(;v!==void 0&&++p<=v;){m.length>0&&m.push({type:"text",value:" "});let g=typeof n=="string"?n:n(l,p);typeof g=="string"&&(g={type:"text",value:g}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,p),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const y=d[d.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const g=y.children[y.children.length-1];g&&g.type==="text"?g.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...m)}else d.push(...m);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(d,!0)};e.patch(u,f),a.push(f)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ea(s),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
|
|
48
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
49
|
+
`}]}}const al=function(e){if(e==null)return Mz;if(typeof e=="function")return ll(e);if(typeof e=="object")return Array.isArray(e)?Nz(e):Rz(e);if(typeof e=="string")return Lz(e);throw new Error("Expected function, string, or object as test")};function Nz(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=al(e[n]);return ll(i);function i(...r){let o=-1;for(;++o<t.length;)if(t[o].apply(this,r))return!0;return!1}}function Rz(e){const t=e;return ll(n);function n(i){const r=i;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}function Lz(e){return ll(t);function t(n){return n&&n.type===e}}function ll(e){return t;function t(n,i,r){return!!(Fz(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function Mz(){return!0}function Fz(e){return e!==null&&typeof e=="object"&&"type"in e}const Vb=[],Vz=!0,wc=!1,Gz="skip";function Gb(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const o=al(r),s=i?-1:1;a(e,void 0,[])();function a(l,u,d){const c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=Vb,m,v,y;if((!t||o(l,u,d[d.length-1]||void 0))&&(p=$z(n(l,d)),p[0]===wc))return p;if("children"in l&&l.children){const f=l;if(f.children&&p[0]!==Gz)for(v=(i?f.children.length:-1)+s,y=d.concat(f);v>-1&&v<f.children.length;){const g=f.children[v];if(m=a(g,v,y)(),m[0]===wc)return m;v=typeof m[1]=="number"?m[1]:v+s}}return p}}}function $z(e){return Array.isArray(e)?e:typeof e=="number"?[Vz,e]:e==null?Vb:[e]}function ul(e,t,n,i){let r,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,r=n):(o=t,s=n,r=i),Gb(e,o,a,r);function a(l,u){const d=u[u.length-1],c=d?d.children.indexOf(l):void 0;return s(l,c,d)}}const yc={}.hasOwnProperty,jz={};function Bz(e,t){const n=t||jz,i=new Map,r=new Map,o=new Map,s={...Cz,...n.handlers},a={all:u,applyData:Hz,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:Wz,wrap:Zz};return ul(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?i:r,h=String(d.identifier).toUpperCase();c.has(h)||c.set(h,d)}}),a;function l(d,c){const h=d.type,p=a.handlers[h];if(yc.call(a.handlers,h)&&p)return p(a,d,c);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in d){const{children:v,...y}=d,f=Ea(y);return f.children=a.all(d),f}return Ea(d)}return(a.options.unknownHandler||Uz)(a,d,c)}function u(d){const c=[];if("children"in d){const h=d.children;let p=-1;for(;++p<h.length;){const m=a.one(h[p],d);if(m){if(p&&h[p-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=vf(m.value)),!Array.isArray(m)&&m.type==="element")){const v=m.children[0];v&&v.type==="text"&&(v.value=vf(v.value))}Array.isArray(m)?c.push(...m):c.push(m)}}}return c}}function Wz(e,t){e.position&&(t.position=Tk(e))}function Hz(e,t){let n=t;if(e&&e.data){const i=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const s="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,Ea(o)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function Uz(e,t){const n=t.data||{},i="value"in t&&!(yc.call(n,"hProperties")||yc.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Zz(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
50
|
+
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
51
|
+
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
52
|
+
`}),n}function vf(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function gf(e,t){const n=Bz(e,t),i=n.one(e,void 0),r=Oz(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
|
|
53
|
+
`},r),o}function Yz(e,t){return e&&"run"in e?async function(n,i){const r=gf(n,{file:i,...t});await e.run(r,i)}:function(n,i){return gf(n,{file:i,...e||t})}}function bf(e){if(e)throw e}var ea=Object.prototype.hasOwnProperty,$b=Object.prototype.toString,wf=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,_f=function(t){return typeof Array.isArray=="function"?Array.isArray(t):$b.call(t)==="[object Array]"},xf=function(t){if(!t||$b.call(t)!=="[object Object]")return!1;var n=ea.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&ea.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var r;for(r in t);return typeof r>"u"||ea.call(t,r)},kf=function(t,n){wf&&n.name==="__proto__"?wf(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Sf=function(t,n){if(n==="__proto__")if(ea.call(t,n)){if(yf)return yf(t,n).value}else return;return t[n]},Jz=function e(){var t,n,i,r,o,s,a=arguments[0],l=1,u=arguments.length,d=!1;for(typeof a=="boolean"&&(d=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)i=Sf(a,n),r=Sf(t,n),a!==r&&(d&&r&&(xf(r)||(o=_f(r)))?(o?(o=!1,s=i&&_f(i)?i:[]):s=i&&xf(i)?i:{},kf(a,{name:n,newValue:e(d,s,r)})):typeof r<"u"&&kf(a,{name:n,newValue:r}));return a};const tu=Ga(Jz);function _c(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qz(){const e=[],t={run:n,use:i};return t;function n(...r){let o=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...r);function a(l,...u){const d=e[++o];let c=-1;if(l){s(l);return}for(;++c<r.length;)(u[c]===null||u[c]===void 0)&&(u[c]=r[c]);r=u,d?Kz(d,a)(...u):s(null,...u)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function Kz(e,t){let n;return i;function i(...s){const a=e.length>s.length;let l;a&&s.push(r);try{l=e.apply(this,s)}catch(u){const d=u;if(a&&n)throw d;return r(d)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,r):l instanceof Error?r(l):o(l))}function r(s,...a){n||(n=!0,t(s,...a))}function o(s){r(null,s)}}const fn={basename:Xz,dirname:Qz,extname:eC,join:tC,sep:"/"};function Xz(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');rs(e);let n=0,i=-1,r=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let s=-1,a=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(e.codePointAt(r)===t.codePointAt(a--)?a<0&&(i=r):(a=-1,i=s));return n===i?i=s:i<0&&(i=e.length),e.slice(n,i)}function Qz(e){if(rs(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function eC(e){rs(e);let t=e.length,n=-1,i=0,r=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){i=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?r<0?r=t:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||n<0||o===0||o===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function tC(...e){let t=-1,n;for(;++t<e.length;)rs(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":nC(n)}function nC(e){rs(e);const t=e.codePointAt(0)===47;let n=iC(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function iC(e,t){let n="",i=0,r=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",i=0):(n=n.slice(0,l),i=n.length-1-n.lastIndexOf("/")),r=s,o=0;continue}}else if(n.length>0){n="",i=0,r=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,s):n=e.slice(r+1,s),i=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function rs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rC={cwd:oC};function oC(){return"/"}function xc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function sC(e){if(typeof e=="string")e=new URL(e);else if(!xc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return aC(e)}function aC(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const nu=["history","path","basename","stem","extname","dirname"];class jb{constructor(t){let n;t?xc(t)?n={path:t}:typeof t=="string"||lC(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":rC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<nu.length;){const o=nu[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let r;for(r in n)nu.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?fn.basename(this.path):void 0}set basename(t){ru(t,"basename"),iu(t,"basename"),this.path=fn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?fn.dirname(this.path):void 0}set dirname(t){zf(this.basename,"dirname"),this.path=fn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?fn.extname(this.path):void 0}set extname(t){if(iu(t,"extname"),zf(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=fn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){xc(t)&&(t=sC(t)),ru(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?fn.basename(this.path,this.extname):void 0}set stem(t){ru(t,"stem"),iu(t,"stem"),this.path=fn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new mt(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function iu(e,t){if(e&&e.includes(fn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+fn.sep+"`")}function ru(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function zf(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function lC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uC=function(e){const i=this.constructor.prototype,r=i[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,i),o},cC={}.hasOwnProperty;class Xd extends uC{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=qz()}copy(){const t=new Xd;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(tu(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(au("data",this.frozen),this.namespace[t]=n,this):cC.call(this.namespace,t)&&this.namespace[t]||void 0:t?(au("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Es(t),i=this.parser||this.Parser;return ou("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),ou("process",this.parser||this.Parser),su("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(o,s){const a=Es(t),l=i.parse(a);i.run(l,a,function(d,c,h){if(d||!c||!h)return u(d);const p=c,m=i.stringify(p,h);pC(m)?h.value=m:h.result=m,u(d,h)});function u(d,c){d||!c?s(d):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,i;return this.freeze(),ou("processSync",this.parser||this.Parser),su("processSync",this.compiler||this.Compiler),this.process(t,r),Df("processSync","process",n),i;function r(o,s){n=!0,bf(o),i=s}}run(t,n,i){Cf(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(s,a){const l=Es(n);r.run(t,l,u);function u(d,c,h){const p=c||t;d?a(d):s?s(p):i(void 0,p,h)}}}runSync(t,n){let i=!1,r;return this.run(t,n,o),Df("runSync","run",i),r;function o(s,a){bf(s),r=a,i=!0}}stringify(t,n){this.freeze();const i=Es(n),r=this.compiler||this.Compiler;return su("stringify",r),Cf(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(au("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...c]=u;l(d,c)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(r.settings=tu(!0,r.settings,u.settings))}function a(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const c=u[d];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,d){let c=-1,h=-1;for(;++c<i.length;)if(i[c][0]===u){h=c;break}if(h===-1)i.push([u,...d]);else if(d.length>0){let[p,...m]=d;const v=i[h][1];_c(v)&&_c(p)&&(p=tu(!0,v,p)),i[h]=[u,p,...m]}}}}const dC=new Xd().freeze();function ou(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function su(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function au(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Cf(e){if(!_c(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Df(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Es(e){return hC(e)?e:new jb(e)}function hC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function pC(e){return typeof e=="string"||fC(e)}function fC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ef=[],Pf={allowDangerousHtml:!0},vC=/^(https?|ircs?|mailto|xmpp)$/i,gC=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function u3(e){const t=bC(e),n=wC(e);return yC(t.runSync(t.parse(n),n),e)}function bC(e){const t=e.rehypePlugins||Ef,n=e.remarkPlugins||Ef,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Pf}:Pf;return dC().use(ez).use(n).use(Yz,i).use(t)}function wC(e){const t=e.children||"",n=new jb;return typeof t=="string"&&(n.value=t),n}function yC(e,t){const n=t.allowedElements,i=t.allowElement,r=t.components,o=t.disallowedElements,s=t.skipHtml,a=t.unwrapDisallowed,l=t.urlTransform||_C;for(const d of gC)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+mC+d.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),ul(e,u),Mk(e,{Fragment:zl.Fragment,components:r,ignoreInvalidStyle:!0,jsx:zl.jsx,jsxs:zl.jsxs,passKeys:!0,passNode:!0});function u(d,c,h){if(d.type==="raw"&&h&&typeof c=="number")return s?h.children.splice(c,1):h.children[c]={type:"text",value:d.value},c;if(d.type==="element"){let p;for(p in Xl)if(Object.hasOwn(Xl,p)&&Object.hasOwn(d.properties,p)){const m=d.properties[p],v=Xl[p];(v===null||v.includes(d.tagName))&&(d.properties[p]=l(String(m||""),p,d))}}if(d.type==="element"){let p=n?!n.includes(d.tagName):o?o.includes(d.tagName):!1;if(!p&&i&&typeof c=="number"&&(p=!i(d,c,h)),p&&h&&typeof c=="number")return a&&d.children?h.children.splice(c,1,...d.children):h.children.splice(c,1),c}}}function _C(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||i!==-1&&t>i||vC.test(e.slice(0,t))?e:""}function Af(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;r!==-1;)i++,r=n.indexOf(t,r+t.length);return i}function xC(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Bb(e,t,n){const r=al((n||{}).ignore||[]),o=kC(t);let s=-1;for(;++s<o.length;)Gb(e,"text",a);function a(u,d){let c=-1,h;for(;++c<d.length;){const p=d[c],m=h?h.children:void 0;if(r(p,m?m.indexOf(p):void 0,h))return;h=p}if(h)return l(u,d)}function l(u,d){const c=d[d.length-1],h=o[s][0],p=o[s][1];let m=0;const y=c.children.indexOf(u);let f=!1,g=[];h.lastIndex=0;let b=h.exec(u.value);for(;b;){const k=b.index,D={index:b.index,input:b.input,stack:[...d,u]};let _=p(...b,D);if(typeof _=="string"&&(_=_.length>0?{type:"text",value:_}:void 0),_===!1?h.lastIndex=k+1:(m!==k&&g.push({type:"text",value:u.value.slice(m,k)}),Array.isArray(_)?g.push(..._):_&&g.push(_),m=k+b[0].length,f=!0),!h.global)break;b=h.exec(u.value)}return f?(m<u.value.length&&g.push({type:"text",value:u.value.slice(m)}),c.children.splice(y,1,...g)):g=[u],y+g.length}}function kC(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const r=n[i];t.push([SC(r[0]),zC(r[1])])}return t}function SC(e){return typeof e=="string"?new RegExp(xC(e),"g"):e}function zC(e){return typeof e=="function"?e:function(){return e}}const lu="phrasing",uu=["autolink","link","image","label"];function CC(){return{transforms:[OC],enter:{literalAutolink:EC,literalAutolinkEmail:cu,literalAutolinkHttp:cu,literalAutolinkWww:cu},exit:{literalAutolink:TC,literalAutolinkEmail:IC,literalAutolinkHttp:PC,literalAutolinkWww:AC}}}function DC(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:lu,notInConstruct:uu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:lu,notInConstruct:uu},{character:":",before:"[ps]",after:"\\/",inConstruct:lu,notInConstruct:uu}]}}function EC(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function cu(e){this.config.enter.autolinkProtocol.call(this,e)}function PC(e){this.config.exit.autolinkProtocol.call(this,e)}function AC(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function IC(e){this.config.exit.autolinkEmail.call(this,e)}function TC(e){this.exit(e)}function OC(e){Bb(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,NC],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),RC]],{ignore:["link","linkReference"]})}function NC(e,t,n,i,r){let o="";if(!Wb(r)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!LC(n)))return!1;const s=MC(n+i);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function RC(e,t,n,i){return!Wb(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function LC(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function MC(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=Af(e,"(");let o=Af(e,")");for(;i!==-1&&r>o;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),o++;return[e,n]}function Wb(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Gi(n)||rl(n))&&(!t||n!==47)}Hb.peek=UC;function FC(){this.buffer()}function VC(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function GC(){this.buffer()}function $C(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function jC(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ln(this.sliceSerialize(e)).toLowerCase(),n.label=t}function BC(e){this.exit(e)}function WC(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ln(this.sliceSerialize(e)).toLowerCase(),n.label=t}function HC(e){this.exit(e)}function UC(){return"["}function Hb(e,t,n,i){const r=n.createTracker(i);let o=r.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=r.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),s(),o+=r.move("]"),o}function ZC(){return{enter:{gfmFootnoteCallString:FC,gfmFootnoteCall:VC,gfmFootnoteDefinitionLabelString:GC,gfmFootnoteDefinition:$C},exit:{gfmFootnoteCallString:jC,gfmFootnoteCall:BC,gfmFootnoteDefinitionLabelString:WC,gfmFootnoteDefinition:HC}}}function YC(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Hb},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,r,o,s){const a=o.createTracker(s);let l=a.move("[^");const u=o.enter("footnoteDefinition"),d=o.enter("label");return l+=a.move(o.safe(o.associationId(i),{before:l,after:"]"})),d(),l+=a.move("]:"),i.children&&i.children.length>0&&(a.shift(4),l+=a.move((t?`
|
|
54
|
+
`:" ")+o.indentLines(o.containerFlow(i,a.current()),t?Ub:JC))),u(),l}}function JC(e,t,n){return t===0?e:Ub(e,t,n)}function Ub(e,t,n){return(n?"":" ")+e}const qC=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Zb.peek=tD;function KC(){return{canContainEols:["delete"],enter:{strikethrough:QC},exit:{strikethrough:eD}}}function XC(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:qC}],handlers:{delete:Zb}}}function QC(e){this.enter({type:"delete",children:[]},e)}function eD(e){this.exit(e)}function Zb(e,t,n,i){const r=n.createTracker(i),o=n.enter("strikethrough");let s=r.move("~~");return s+=n.containerPhrasing(e,{...r.current(),before:s,after:"~"}),s+=r.move("~~"),o(),s}function tD(){return"~"}function nD(e){return e.length}function iD(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||nD,o=[],s=[],a=[],l=[];let u=0,d=-1;for(;++d<e.length;){const v=[],y=[];let f=-1;for(e[d].length>u&&(u=e[d].length);++f<e[d].length;){const g=rD(e[d][f]);if(n.alignDelimiters!==!1){const b=r(g);y[f]=b,(l[f]===void 0||b>l[f])&&(l[f]=b)}v.push(g)}s[d]=v,a[d]=y}let c=-1;if(typeof i=="object"&&"length"in i)for(;++c<u;)o[c]=If(i[c]);else{const v=If(i);for(;++c<u;)o[c]=v}c=-1;const h=[],p=[];for(;++c<u;){const v=o[c];let y="",f="";v===99?(y=":",f=":"):v===108?y=":":v===114&&(f=":");let g=n.alignDelimiters===!1?1:Math.max(1,l[c]-y.length-f.length);const b=y+"-".repeat(g)+f;n.alignDelimiters!==!1&&(g=y.length+g+f.length,g>l[c]&&(l[c]=g),p[c]=g),h[c]=b}s.splice(1,0,h),a.splice(1,0,p),d=-1;const m=[];for(;++d<s.length;){const v=s[d],y=a[d];c=-1;const f=[];for(;++c<u;){const g=v[c]||"";let b="",k="";if(n.alignDelimiters!==!1){const D=l[c]-(y[c]||0),_=o[c];_===114?b=" ".repeat(D):_===99?D%2?(b=" ".repeat(D/2+.5),k=" ".repeat(D/2-.5)):(b=" ".repeat(D/2),k=b):k=" ".repeat(D)}n.delimiterStart!==!1&&!c&&f.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&g==="")&&(n.delimiterStart!==!1||c)&&f.push(" "),n.alignDelimiters!==!1&&f.push(b),f.push(g),n.alignDelimiters!==!1&&f.push(k),n.padding!==!1&&f.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&f.push("|")}m.push(n.delimiterEnd===!1?f.join("").replace(/ +$/,""):f.join(""))}return m.join(`
|
|
55
|
+
`)}function rD(e){return e==null?"":String(e)}function If(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function oD(e,t,n,i){const r=n.enter("blockquote"),o=n.createTracker(i);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),sD);return r(),s}function sD(e,t,n){return">"+(n?"":" ")+e}function aD(e,t){return Tf(e,t.inConstruct,!0)&&!Tf(e,t.notInConstruct,!1)}function Tf(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Of(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
|
|
56
|
+
`&&aD(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
57
|
+
`}function lD(e,t){const n=String(e);let i=n.indexOf(t),r=i,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===r?++o>s&&(s=o):o=1,r=i+t.length,i=n.indexOf(t,r);return s}function uD(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function cD(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function dD(e,t,n,i){const r=cD(n),o=e.value||"",s=r==="`"?"GraveAccent":"Tilde";if(uD(e,n)){const c=n.enter("codeIndented"),h=n.indentLines(o,hD);return c(),h}const a=n.createTracker(i),l=r.repeat(Math.max(lD(o,r)+1,3)),u=n.enter("codeFenced");let d=a.move(l);if(e.lang){const c=n.enter(`codeFencedLang${s}`);d+=a.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${s}`);d+=a.move(" "),d+=a.move(n.safe(e.meta,{before:d,after:`
|
|
58
|
+
`,encode:["`"],...a.current()})),c()}return d+=a.move(`
|
|
59
|
+
`),o&&(d+=a.move(o+`
|
|
60
|
+
`)),d+=a.move(l),u(),d}function hD(e,t,n){return(n?"":" ")+e}function Qd(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function pD(e,t,n,i){const r=Qd(n),o=r==='"'?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(i);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
61
|
+
`,...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=l.move(" "+r),u+=l.move(n.safe(e.title,{before:u,after:r,...l.current()})),u+=l.move(r),a()),s(),u}function fD(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Bo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Pa(e,t,n){const i=Tr(e),r=Tr(t);return i===void 0?r===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Yb.peek=mD;function Yb(e,t,n,i){const r=fD(n),o=n.enter("emphasis"),s=n.createTracker(i),a=s.move(r);let l=s.move(n.containerPhrasing(e,{after:r,before:a,...s.current()}));const u=l.charCodeAt(0),d=Pa(i.before.charCodeAt(i.before.length-1),u,r);d.inside&&(l=Bo(u)+l.slice(1));const c=l.charCodeAt(l.length-1),h=Pa(i.after.charCodeAt(0),c,r);h.inside&&(l=l.slice(0,-1)+Bo(c));const p=s.move(r);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},a+l+p}function mD(e,t,n){return n.options.emphasis||"*"}function vD(e,t){let n=!1;return ul(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,wc}),!!((!e.depth||e.depth<3)&&Hd(e)&&(t.options.setext||n))}function gD(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(i);if(vD(e,n)){const d=n.enter("headingSetext"),c=n.enter("phrasing"),h=n.containerPhrasing(e,{...o.current(),before:`
|
|
62
|
+
`,after:`
|
|
63
|
+
`});return c(),d(),h+`
|
|
64
|
+
`+(r===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
65
|
+
`))+1))}const s="#".repeat(r),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
66
|
+
`,...o.current()});return/^[\t ]/.test(u)&&(u=Bo(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),a(),u}Jb.peek=bD;function Jb(e){return e.value||""}function bD(){return"<"}qb.peek=wD;function qb(e,t,n,i){const r=Qd(n),o=r==='"'?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const l=n.createTracker(i);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=l.move(" "+r),u+=l.move(n.safe(e.title,{before:u,after:r,...l.current()})),u+=l.move(r),a()),u+=l.move(")"),s(),u}function wD(){return"!"}Kb.peek=yD;function Kb(e,t,n,i){const r=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(i);let l=a.move("![");const u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=d,o(),r==="full"||!u||u!==c?l+=a.move(c+"]"):r==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function yD(){return"!"}Xb.peek=_D;function Xb(e,t,n){let i=e.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o<n.unsafe.length;){const s=n.unsafe[o],a=n.compilePattern(s);let l;if(s.atBreak)for(;l=a.exec(i);){let u=l.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(l.index+1)}}return r+i+r}function _D(){return"`"}function Qb(e,t){const n=Hd(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}ew.peek=xD;function ew(e,t,n,i){const r=Qd(n),o=r==='"'?"Quote":"Apostrophe",s=n.createTracker(i);let a,l;if(Qb(e,n)){const d=n.stack;n.stack=[],a=n.enter("autolink");let c=s.move("<");return c+=s.move(n.containerPhrasing(e,{before:c,after:">",...s.current()})),c+=s.move(">"),a(),n.stack=d,c}a=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=s.move(" "+r),u+=s.move(n.safe(e.title,{before:u,after:r,...s.current()})),u+=s.move(r),l()),u+=s.move(")"),a(),u}function xD(e,t,n){return Qb(e,n)?"<":"["}tw.peek=kD;function tw(e,t,n,i){const r=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(i);let l=a.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=d,o(),r==="full"||!u||u!==c?l+=a.move(c+"]"):r==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function kD(){return"["}function eh(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function SD(e){const t=eh(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function zD(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function nw(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function CD(e,t,n,i){const r=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?zD(n):eh(n);const a=e.ordered?s==="."?")":".":SD(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),nw(n)===s&&d){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;const u=n.containerFlow(e,i);return n.bulletLastUsed=s,n.bulletCurrent=o,r(),u}function DD(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ED(e,t,n,i){const r=DD(n);let o=n.bulletCurrent||eh(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const a=n.createTracker(i);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),d);return l(),u;function d(c,h,p){return h?(p?"":" ".repeat(s))+c:(p?o:o+" ".repeat(s-o.length))+c}}function PD(e,t,n,i){const r=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,i);return o(),r(),s}const AD=al(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ID(e,t,n,i){return(e.children.some(function(s){return AD(s)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function TD(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}iw.peek=OD;function iw(e,t,n,i){const r=TD(n),o=n.enter("strong"),s=n.createTracker(i),a=s.move(r+r);let l=s.move(n.containerPhrasing(e,{after:r,before:a,...s.current()}));const u=l.charCodeAt(0),d=Pa(i.before.charCodeAt(i.before.length-1),u,r);d.inside&&(l=Bo(u)+l.slice(1));const c=l.charCodeAt(l.length-1),h=Pa(i.after.charCodeAt(0),c,r);h.inside&&(l=l.slice(0,-1)+Bo(c));const p=s.move(r+r);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},a+l+p}function OD(e,t,n){return n.options.strong||"*"}function ND(e,t,n,i){return n.safe(e.value,i)}function RD(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function LD(e,t,n){const i=(nw(n)+(n.options.ruleSpaces?" ":"")).repeat(RD(n));return n.options.ruleSpaces?i.slice(0,-1):i}const rw={blockquote:oD,break:Of,code:dD,definition:pD,emphasis:Yb,hardBreak:Of,heading:gD,html:Jb,image:qb,imageReference:Kb,inlineCode:Xb,link:ew,linkReference:tw,list:CD,listItem:ED,paragraph:PD,root:ID,strong:iw,text:ND,thematicBreak:LD};function MD(){return{enter:{table:FD,tableData:Nf,tableHeader:Nf,tableRow:GD},exit:{codeText:$D,table:VD,tableData:du,tableHeader:du,tableRow:du}}}function FD(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function VD(e){this.exit(e),this.data.inTable=void 0}function GD(e){this.enter({type:"tableRow",children:[]},e)}function du(e){this.exit(e)}function Nf(e){this.enter({type:"tableCell",children:[]},e)}function $D(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,jD));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function jD(e,t){return t==="|"?t:e}function BD(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
67
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:s,tableCell:l,tableRow:a}};function s(p,m,v,y){return u(d(p,v,y),p.align)}function a(p,m,v,y){const f=c(p,v,y),g=u([f]);return g.slice(0,g.indexOf(`
|
|
68
|
+
`))}function l(p,m,v,y){const f=v.enter("tableCell"),g=v.enter("phrasing"),b=v.containerPhrasing(p,{...y,before:o,after:o});return g(),f(),b}function u(p,m){return iD(p,{align:m,alignDelimiters:i,padding:n,stringLength:r})}function d(p,m,v){const y=p.children;let f=-1;const g=[],b=m.enter("table");for(;++f<y.length;)g[f]=c(y[f],m,v);return b(),g}function c(p,m,v){const y=p.children;let f=-1;const g=[],b=m.enter("tableRow");for(;++f<y.length;)g[f]=l(y[f],p,m,v);return b(),g}function h(p,m,v){let y=rw.inlineCode(p,m,v);return v.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function WD(){return{exit:{taskListCheckValueChecked:Rf,taskListCheckValueUnchecked:Rf,paragraph:UD}}}function HD(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ZD}}}function Rf(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function UD(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const r=t.children;let o=-1,s;for(;++o<r.length;){const a=r[o];if(a.type==="paragraph"){s=a;break}}s===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function ZD(e,t,n,i){const r=e.children[0],o=typeof e.checked=="boolean"&&r&&r.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(i);o&&a.move(s);let l=rw.listItem(e,t,n,{...i,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(d){return d+s}}function YD(){return[CC(),ZC(),KC(),MD(),WD()]}function JD(e){return{extensions:[DC(),YC(e),XC(),BD(e),HD()]}}const qD={tokenize:nE,partial:!0},ow={tokenize:iE,partial:!0},sw={tokenize:rE,partial:!0},aw={tokenize:oE,partial:!0},KD={tokenize:sE,partial:!0},lw={name:"wwwAutolink",tokenize:eE,previous:cw},uw={name:"protocolAutolink",tokenize:tE,previous:dw},Gn={name:"emailAutolink",tokenize:QD,previous:hw},kn={};function XD(){return{text:kn}}let _i=48;for(;_i<123;)kn[_i]=Gn,_i++,_i===58?_i=65:_i===91&&(_i=97);kn[43]=Gn;kn[45]=Gn;kn[46]=Gn;kn[95]=Gn;kn[72]=[Gn,uw];kn[104]=[Gn,uw];kn[87]=[Gn,lw];kn[119]=[Gn,lw];function QD(e,t,n){const i=this;let r,o;return s;function s(c){return!kc(c)||!hw.call(i,i.previous)||th(i.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return kc(c)?(e.consume(c),a):c===64?(e.consume(c),l):n(c)}function l(c){return c===46?e.check(KD,d,u)(c):c===45||c===95||ht(c)?(o=!0,e.consume(c),l):d(c)}function u(c){return e.consume(c),r=!0,l}function d(c){return o&&r&&wt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function eE(e,t,n){const i=this;return r;function r(s){return s!==87&&s!==119||!cw.call(i,i.previous)||th(i.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(qD,e.attempt(ow,e.attempt(sw,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function tE(e,t,n){const i=this;let r="",o=!1;return s;function s(c){return(c===72||c===104)&&dw.call(i,i.previous)&&!th(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(wt(c)&&r.length<5)return r+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const h=r.toLowerCase();if(h==="http"||h==="https")return e.consume(c),l}return n(c)}function l(c){return c===47?(e.consume(c),o?u:(o=!0,l)):n(c)}function u(c){return c===null||Ca(c)||ke(c)||Gi(c)||rl(c)?n(c):e.attempt(ow,e.attempt(sw,d),n)(c)}function d(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function nE(e,t,n){let i=0;return r;function r(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),r):s===46&&i===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function iE(e,t,n){let i,r,o;return s;function s(u){return u===46||u===95?e.check(aw,l,a)(u):u===null||ke(u)||Gi(u)||u!==45&&rl(u)?l(u):(o=!0,e.consume(u),s)}function a(u){return u===95?i=!0:(r=i,i=void 0),e.consume(u),s}function l(u){return r||i||!o?n(u):t(u)}}function rE(e,t){let n=0,i=0;return r;function r(s){return s===40?(n++,e.consume(s),r):s===41&&i<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(aw,t,o)(s):s===null||ke(s)||Gi(s)?t(s):(e.consume(s),r)}function o(s){return s===41&&i++,e.consume(s),r}}function oE(e,t,n){return i;function i(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),i):a===38?(e.consume(a),o):a===93?(e.consume(a),r):a===60||a===null||ke(a)||Gi(a)?t(a):n(a)}function r(a){return a===null||a===40||a===91||ke(a)||Gi(a)?t(a):i(a)}function o(a){return wt(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),i):wt(a)?(e.consume(a),s):n(a)}}function sE(e,t,n){return i;function i(o){return e.consume(o),r}function r(o){return ht(o)?n(o):t(o)}}function cw(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ke(e)}function dw(e){return!wt(e)}function hw(e){return!(e===47||kc(e))}function kc(e){return e===43||e===45||e===46||e===95||ht(e)}function th(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const aE={tokenize:mE,partial:!0};function lE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:hE,continuation:{tokenize:pE},exit:fE}},text:{91:{name:"gfmFootnoteCall",tokenize:dE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:uE,resolveTo:cE}}}}function uE(e,t,n){const i=this;let r=i.events.length;const o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;r--;){const l=i.events[r][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return n(l);const u=ln(i.sliceSerialize({start:s.end,end:i.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function cE(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...a),e}function dE(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o=0,s;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!s||c===null||c===91||ke(c))return n(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return r.includes(ln(i.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ke(c)||(s=!0),o++,e.consume(c),c===92?d:u}function d(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function hE(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o,s=0,a;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(m)}function d(m){if(s>999||m===93&&!a||m===null||m===91||ke(m))return n(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=ln(i.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return ke(m)||(a=!0),s++,e.consume(m),m===92?c:d}function c(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}function h(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),r.includes(o)||r.push(o),me(e,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return t(m)}}function pE(e,t,n){return e.check(is,t,e.attempt(aE,t,n))}function fE(e){e.exit("gfmFootnoteDefinition")}function mE(e,t,n){const i=this;return me(e,r,"gfmFootnoteDefinitionIndent",5);function r(o){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function vE(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:o,resolveAll:r};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},c={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},h=[["enter",d,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",c,a]],p=a.parser.constructs.insideSpan.null;p&&Mt(h,h.length,0,ol(p,s.slice(u+1,l),a)),Mt(h,h.length,0,[["exit",c,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",d,a]]),Mt(s,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function o(s,a,l){const u=this.previous,d=this.events;let c=0;return h;function h(m){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const v=Tr(u);if(m===126)return c>1?l(m):(s.consume(m),c++,p);if(c<2&&!n)return l(m);const y=s.exit("strikethroughSequenceTemporary"),f=Tr(m);return y._open=!f||f===2&&!!v,y._close=!v||v===2&&!!f,a(m)}}}class gE{constructor(){this.map=[]}add(t,n,i){bE(this,t,n,i)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let r=i.pop();for(;r;){for(const o of r)t.push(o);r=i.pop()}this.map.length=0}}function bE(e,t,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}}function wE(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=i.length-1;i[o]=i[o]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function yE(){return{flow:{null:{name:"table",tokenize:_E,resolveAll:xE}}}}function _E(e,t,n){const i=this;let r=0,o=0,s;return a;function a(z){let F=i.events.length-1;for(;F>-1;){const te=i.events[F][1].type;if(te==="lineEnding"||te==="linePrefix")F--;else break}const B=F>-1?i.events[F][1].type:null,X=B==="tableHead"||B==="tableRow"?_:l;return X===_&&i.parser.lazy[i.now().line]?n(z):X(z)}function l(z){return e.enter("tableHead"),e.enter("tableRow"),u(z)}function u(z){return z===124||(s=!0,o+=1),d(z)}function d(z){return z===null?n(z):ne(z)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),p):n(z):ce(z)?me(e,d,"whitespace")(z):(o+=1,s&&(s=!1,r+=1),z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),c(z)))}function c(z){return z===null||z===124||ke(z)?(e.exit("data"),d(z)):(e.consume(z),z===92?h:c)}function h(z){return z===92||z===124?(e.consume(z),c):c(z)}function p(z){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(z):(e.enter("tableDelimiterRow"),s=!1,ce(z)?me(e,m,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):m(z))}function m(z){return z===45||z===58?y(z):z===124?(s=!0,e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),v):D(z)}function v(z){return ce(z)?me(e,y,"whitespace")(z):y(z)}function y(z){return z===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),f):z===45?(o+=1,f(z)):z===null||ne(z)?k(z):D(z)}function f(z){return z===45?(e.enter("tableDelimiterFiller"),g(z)):D(z)}function g(z){return z===45?(e.consume(z),g):z===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(z))}function b(z){return ce(z)?me(e,k,"whitespace")(z):k(z)}function k(z){return z===124?m(z):z===null||ne(z)?!s||r!==o?D(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(z)):D(z)}function D(z){return n(z)}function _(z){return e.enter("tableRow"),P(z)}function P(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),P):z===null||ne(z)?(e.exit("tableRow"),t(z)):ce(z)?me(e,P,"whitespace")(z):(e.enter("data"),C(z))}function C(z){return z===null||z===124||ke(z)?(e.exit("data"),P(z)):(e.consume(z),z===92?G:C)}function G(z){return z===92||z===124?(e.consume(z),C):C(z)}}function xE(e,t){let n=-1,i=!0,r=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,d,c;const h=new gE;for(;++n<e.length;){const p=e[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(Lf(h,t,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},h.add(n,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(i=!0,c=void 0,o=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,d={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},h.add(n,0,[["enter",d,t]])),r=m.type==="tableDelimiterRow"?2:d?3:1):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],c=Ps(h,t,o,r,void 0,c),o=[0,0,0,0]),s[2]=n)):m.type==="tableCellDivider"&&(i?i=!1:(o[1]!==0&&(s[0]=s[1],c=Ps(h,t,o,r,void 0,c)),o=s,s=[o[1],n,0,0])):m.type==="tableHead"?(a=!0,l=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=n,o[1]!==0?(s[0]=s[1],c=Ps(h,t,o,r,n,c)):s[1]!==0&&(c=Ps(h,t,s,r,n,c)),r=0):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&Lf(h,t,l,u,d),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=wE(t.events,n))}return e}function Ps(e,t,n,i,r,o){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},tr(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=tr(t.events,n[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=tr(t.events,n[2]),d=tr(t.events,n[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",c,t]]),i!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,v=n[3]-n[2]-1;e.add(m,v,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return r!==void 0&&(o.end=Object.assign({},tr(t.events,r)),e.add(r,0,[["exit",o,t]]),o=void 0),o}function Lf(e,t,n,i,r){const o=[],s=tr(t.events,n);r&&(r.end=Object.assign({},s),o.push(["exit",r,t])),i.end=Object.assign({},s),o.push(["exit",i,t]),e.add(n+1,0,o)}function tr(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const kE={name:"tasklistCheck",tokenize:zE};function SE(){return{text:{91:kE}}}function zE(e,t,n){const i=this;return r;function r(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return ke(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return ne(l)?t(l):ce(l)?e.check({tokenize:CE},t,n)(l):n(l)}}function CE(e,t,n){return me(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function DE(e){return _b([XD(),lE(),vE(e),yE(),SE()])}const EE={};function c3(e){const t=this,n=e||EE,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(DE(n)),o.push(YD()),s.push(JD(n))}const PE=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,AE=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,d3=({legacyTitle:e=!1,tagName:t="div",classNames:n=""}={})=>i=>{ul(i,"blockquote",(r,o,s)=>{let a="",l="",u=!0,d=r.children.map(c=>{if(u&&c.type==="paragraph"){const h=c.children[0],p=h.type==="text"?h.value:"",m=e?AE:PE,v=p.match(m);if(v&&(u=!1,a=v[1].toLocaleLowerCase(),l=e&&v[2]||a.toLocaleUpperCase(),p.includes(`
|
|
69
|
+
`)&&(c.children[0]={type:"text",value:p.replace(m,"").replace(/^\n+/,"")}),!p.includes(`
|
|
70
|
+
`))){const y=[];c.children.forEach((f,g)=>{g!=0&&(g==1&&f.type==="break"||y.push(f))}),c.children=[...y]}}return c});a&&(r.data={hName:t,hProperties:{className:["markdown-alert",`markdown-alert-${a}`,...n.split(" ").filter(c=>c.length)],dir:"auto"}},d.unshift({type:"paragraph",children:[IE(a),{type:"text",value:l.replace(/^\//,"")}],data:{hProperties:{className:"markdown-alert-title",dir:"auto"}}})),r.children=[...d]})};function IE(e){let t=TE[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{className:["octicon"],viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const TE={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function OE(e){Bb(e,[/\r?\n|\r/g,NE])}function NE(){return{type:"break"}}function h3(){return function(e){OE(e)}}function pw(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=pw(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function p3(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=pw(e))&&(i&&(i+=" "),i+=t);return i}const RE=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},LE=(e,t)=>({classGroupId:e,validator:t}),fw=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Aa="-",Mf=[],ME="arbitrary..",FE=e=>{const t=GE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return VE(s);const a=s.split(Aa),l=a[0]===""&&a.length>1?1:0;return mw(a,l,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=i[s],u=n[s];return l?u?RE(u,l):l:u||Mf}return n[s]||Mf}}},mw=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const u=mw(e,t+1,o);if(u)return u}const s=n.validators;if(s===null)return;const a=t===0?e.join(Aa):e.slice(t).join(Aa),l=s.length;for(let u=0;u<l;u++){const d=s[u];if(d.validator(a))return d.classGroupId}},VE=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?ME+i:void 0})(),GE=e=>{const{theme:t,classGroups:n}=e;return $E(n,t)},$E=(e,t)=>{const n=fw();for(const i in e){const r=e[i];nh(r,n,i,t)}return n},nh=(e,t,n,i)=>{const r=e.length;for(let o=0;o<r;o++){const s=e[o];jE(s,t,n,i)}},jE=(e,t,n,i)=>{if(typeof e=="string"){BE(e,t,n);return}if(typeof e=="function"){WE(e,t,n,i);return}HE(e,t,n,i)},BE=(e,t,n)=>{const i=e===""?t:vw(t,e);i.classGroupId=n},WE=(e,t,n,i)=>{if(UE(e)){nh(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(LE(n,e))},HE=(e,t,n,i)=>{const r=Object.entries(e),o=r.length;for(let s=0;s<o;s++){const[a,l]=r[s];nh(l,vw(t,a),n,i)}},vw=(e,t)=>{let n=e;const i=t.split(Aa),r=i.length;for(let o=0;o<r;o++){const s=i[o];let a=n.nextPart.get(s);a||(a=fw(),n.nextPart.set(s,a)),n=a}return n},UE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ZE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const r=(o,s)=>{n[o]=s,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=i[o])!==void 0)return r(o,s),s},set(o,s){o in n?n[o]=s:r(o,s)}}},Sc="!",Ff=":",YE=[],Vf=(e,t,n,i,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:r}),JE=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=r=>{const o=[];let s=0,a=0,l=0,u;const d=r.length;for(let v=0;v<d;v++){const y=r[v];if(s===0&&a===0){if(y===Ff){o.push(r.slice(l,v)),l=v+1;continue}if(y==="/"){u=v;continue}}y==="["?s++:y==="]"?s--:y==="("?a++:y===")"&&a--}const c=o.length===0?r:r.slice(l);let h=c,p=!1;c.endsWith(Sc)?(h=c.slice(0,-1),p=!0):c.startsWith(Sc)&&(h=c.slice(1),p=!0);const m=u&&u>l?u-l:void 0;return Vf(o,p,h,m)};if(t){const r=t+Ff,o=i;i=s=>s.startsWith(r)?o(s.slice(r.length)):Vf(YE,!1,s,void 0,!0)}if(n){const r=i;i=o=>n({className:o,parseClassName:r})}return i},qE=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let r=[];for(let o=0;o<n.length;o++){const s=n[o],a=s[0]==="[",l=t.has(s);a||l?(r.length>0&&(r.sort(),i.push(...r),r=[]),i.push(s)):r.push(s)}return r.length>0&&(r.sort(),i.push(...r)),i}},KE=e=>({cache:ZE(e.cacheSize),parseClassName:JE(e),sortModifiers:qE(e),...FE(e)}),XE=/\s+/,QE=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r,sortModifiers:o}=t,s=[],a=e.trim().split(XE);let l="";for(let u=a.length-1;u>=0;u-=1){const d=a[u],{isExternal:c,modifiers:h,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:v}=n(d);if(c){l=d+(l.length>0?" "+l:l);continue}let y=!!v,f=i(y?m.substring(0,v):m);if(!f){if(!y){l=d+(l.length>0?" "+l:l);continue}if(f=i(m),!f){l=d+(l.length>0?" "+l:l);continue}y=!1}const g=h.length===0?"":h.length===1?h[0]:o(h).join(":"),b=p?g+Sc:g,k=b+f;if(s.indexOf(k)>-1)continue;s.push(k);const D=r(f,y);for(let _=0;_<D.length;++_){const P=D[_];s.push(b+P)}l=d+(l.length>0?" "+l:l)}return l},eP=(...e)=>{let t=0,n,i,r="";for(;t<e.length;)(n=e[t++])&&(i=gw(n))&&(r&&(r+=" "),r+=i);return r},gw=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=gw(e[i]))&&(n&&(n+=" "),n+=t);return n},tP=(e,...t)=>{let n,i,r,o;const s=l=>{const u=t.reduce((d,c)=>c(d),e());return n=KE(u),i=n.cache.get,r=n.cache.set,o=a,a(l)},a=l=>{const u=i(l);if(u)return u;const d=QE(l,n);return r(l,d),d};return o=s,(...l)=>o(eP(...l))},nP=[],Ke=e=>{const t=n=>n[e]||nP;return t.isThemeGetter=!0,t},bw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ww=/^\((?:(\w[\w-]*):)?(.+)\)$/i,iP=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,rP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oP=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,aP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bn=e=>iP.test(e),ue=e=>!!e&&!Number.isNaN(Number(e)),Wn=e=>!!e&&Number.isInteger(Number(e)),hu=e=>e.endsWith("%")&&ue(e.slice(0,-1)),En=e=>rP.test(e),yw=()=>!0,uP=e=>oP.test(e)&&!sP.test(e),ih=()=>!1,cP=e=>aP.test(e),dP=e=>lP.test(e),hP=e=>!U(e)&&!Y(e),pP=e=>vi(e,kw,ih),U=e=>bw.test(e),xi=e=>vi(e,Sw,uP),Gf=e=>vi(e,_P,ue),fP=e=>vi(e,Cw,yw),mP=e=>vi(e,zw,ih),$f=e=>vi(e,_w,ih),vP=e=>vi(e,xw,dP),As=e=>vi(e,Dw,cP),Y=e=>ww.test(e),ro=e=>Hi(e,Sw),gP=e=>Hi(e,zw),jf=e=>Hi(e,_w),bP=e=>Hi(e,kw),wP=e=>Hi(e,xw),Is=e=>Hi(e,Dw,!0),yP=e=>Hi(e,Cw,!0),vi=(e,t,n)=>{const i=bw.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},Hi=(e,t,n=!1)=>{const i=ww.exec(e);return i?i[1]?t(i[1]):n:!1},_w=e=>e==="position"||e==="percentage",xw=e=>e==="image"||e==="url",kw=e=>e==="length"||e==="size"||e==="bg-size",Sw=e=>e==="length",_P=e=>e==="number",zw=e=>e==="family-name",Cw=e=>e==="number"||e==="weight",Dw=e=>e==="shadow",xP=()=>{const e=Ke("color"),t=Ke("font"),n=Ke("text"),i=Ke("font-weight"),r=Ke("tracking"),o=Ke("leading"),s=Ke("breakpoint"),a=Ke("container"),l=Ke("spacing"),u=Ke("radius"),d=Ke("shadow"),c=Ke("inset-shadow"),h=Ke("text-shadow"),p=Ke("drop-shadow"),m=Ke("blur"),v=Ke("perspective"),y=Ke("aspect"),f=Ke("ease"),g=Ke("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...k(),Y,U],_=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],C=()=>[Y,U,l],G=()=>[Bn,"full","auto",...C()],z=()=>[Wn,"none","subgrid",Y,U],F=()=>["auto",{span:["full",Wn,Y,U]},Wn,Y,U],B=()=>[Wn,"auto",Y,U],X=()=>["auto","min","max","fr",Y,U],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...C()],re=()=>[Bn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],V=()=>[Bn,"screen","full","dvw","lvw","svw","min","max","fit",...C()],ee=()=>[Bn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],w=()=>[e,Y,U],he=()=>[...k(),jf,$f,{position:[Y,U]}],ge=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",bP,pP,{size:[Y,U]}],Oe=()=>[hu,ro,xi],_e=()=>["","none","full",u,Y,U],ae=()=>["",ue,ro,xi],vt=()=>["solid","dashed","dotted","double"],Kt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ce=()=>[ue,hu,jf,$f],Sn=()=>["","none",m,Y,U],zn=()=>["none",ue,Y,U],Yi=()=>["none",ue,Y,U],Hr=()=>[ue,Y,U],Ji=()=>[Bn,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[En],breakpoint:[En],color:[yw],container:[En],"drop-shadow":[En],ease:["in","out","in-out"],font:[hP],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[En],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[En],shadow:[En],spacing:["px",ue],text:[En],"text-shadow":[En],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Bn,U,Y,y]}],container:["container"],columns:[{columns:[ue,U,Y,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{"inset-s":G(),start:G()}],end:[{"inset-e":G(),end:G()}],"inset-bs":[{"inset-bs":G()}],"inset-be":[{"inset-be":G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Wn,"auto",Y,U]}],basis:[{basis:[Bn,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ue,Bn,"auto","initial","none",U]}],grow:[{grow:["",ue,Y,U]}],shrink:[{shrink:["",ue,Y,U]}],order:[{order:[Wn,"first","last","none",Y,U]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mbs:[{mbs:$()}],mbe:[{mbe:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...ee()]}],"min-block-size":[{"min-block":["auto",...ee()]}],"max-block-size":[{"max-block":["none",...ee()]}],w:[{w:[a,"screen",...re()]}],"min-w":[{"min-w":[a,"screen","none",...re()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,ro,xi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,yP,fP]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hu,U]}],"font-family":[{font:[gP,mP,t]}],"font-features":[{"font-features":[U]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Y,U]}],"line-clamp":[{"line-clamp":[ue,"none",Y,Gf]}],leading:[{leading:[o,...C()]}],"list-image":[{"list-image":["none",Y,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...vt(),"wavy"]}],"text-decoration-thickness":[{decoration:[ue,"from-font","auto",Y,xi]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[ue,"auto",Y,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y,U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:he()}],"bg-repeat":[{bg:ge()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Wn,Y,U],radial:["",Y,U],conic:[Wn,Y,U]},wP,vP]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:Oe()}],"gradient-via-pos":[{via:Oe()}],"gradient-to-pos":[{to:Oe()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:_e()}],"rounded-s":[{"rounded-s":_e()}],"rounded-e":[{"rounded-e":_e()}],"rounded-t":[{"rounded-t":_e()}],"rounded-r":[{"rounded-r":_e()}],"rounded-b":[{"rounded-b":_e()}],"rounded-l":[{"rounded-l":_e()}],"rounded-ss":[{"rounded-ss":_e()}],"rounded-se":[{"rounded-se":_e()}],"rounded-ee":[{"rounded-ee":_e()}],"rounded-es":[{"rounded-es":_e()}],"rounded-tl":[{"rounded-tl":_e()}],"rounded-tr":[{"rounded-tr":_e()}],"rounded-br":[{"rounded-br":_e()}],"rounded-bl":[{"rounded-bl":_e()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...vt(),"hidden","none"]}],"divide-style":[{divide:[...vt(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...vt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ue,Y,U]}],"outline-w":[{outline:["",ue,ro,xi]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",d,Is,As]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",c,Is,As]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[ue,xi]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",h,Is,As]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[ue,Y,U]}],"mix-blend":[{"mix-blend":[...Kt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Kt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ce()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":Ce()}],"mask-image-t-to-pos":[{"mask-t-to":Ce()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":Ce()}],"mask-image-r-to-pos":[{"mask-r-to":Ce()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":Ce()}],"mask-image-b-to-pos":[{"mask-b-to":Ce()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":Ce()}],"mask-image-l-to-pos":[{"mask-l-to":Ce()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":Ce()}],"mask-image-x-to-pos":[{"mask-x-to":Ce()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":Ce()}],"mask-image-y-to-pos":[{"mask-y-to":Ce()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[Y,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ce()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ce()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:he()}],"mask-repeat":[{mask:ge()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,U]}],filter:[{filter:["","none",Y,U]}],blur:[{blur:Sn()}],brightness:[{brightness:[ue,Y,U]}],contrast:[{contrast:[ue,Y,U]}],"drop-shadow":[{"drop-shadow":["","none",p,Is,As]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",ue,Y,U]}],"hue-rotate":[{"hue-rotate":[ue,Y,U]}],invert:[{invert:["",ue,Y,U]}],saturate:[{saturate:[ue,Y,U]}],sepia:[{sepia:["",ue,Y,U]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,U]}],"backdrop-blur":[{"backdrop-blur":Sn()}],"backdrop-brightness":[{"backdrop-brightness":[ue,Y,U]}],"backdrop-contrast":[{"backdrop-contrast":[ue,Y,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ue,Y,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ue,Y,U]}],"backdrop-invert":[{"backdrop-invert":["",ue,Y,U]}],"backdrop-opacity":[{"backdrop-opacity":[ue,Y,U]}],"backdrop-saturate":[{"backdrop-saturate":[ue,Y,U]}],"backdrop-sepia":[{"backdrop-sepia":["",ue,Y,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ue,"initial",Y,U]}],ease:[{ease:["linear","initial",f,Y,U]}],delay:[{delay:[ue,Y,U]}],animate:[{animate:["none",g,Y,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,Y,U]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:zn()}],"rotate-x":[{"rotate-x":zn()}],"rotate-y":[{"rotate-y":zn()}],"rotate-z":[{"rotate-z":zn()}],scale:[{scale:Yi()}],"scale-x":[{"scale-x":Yi()}],"scale-y":[{"scale-y":Yi()}],"scale-z":[{"scale-z":Yi()}],"scale-3d":["scale-3d"],skew:[{skew:Hr()}],"skew-x":[{"skew-x":Hr()}],"skew-y":[{"skew-y":Hr()}],transform:[{transform:[Y,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ji()}],"translate-x":[{"translate-x":Ji()}],"translate-y":[{"translate-y":Ji()}],"translate-z":[{"translate-z":Ji()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y,U]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y,U]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[ue,ro,xi,Gf]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},f3=tP(xP);/**
|
|
71
|
+
* @remix-run/router v1.23.2
|
|
72
|
+
*
|
|
73
|
+
* Copyright (c) Remix Software Inc.
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the MIT license found in the
|
|
76
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
77
|
+
*
|
|
78
|
+
* @license MIT
|
|
79
|
+
*/function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Wo.apply(this,arguments)}var Xn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Xn||(Xn={}));const Bf="popstate";function kP(e){e===void 0&&(e={});function t(i,r){let{pathname:o,search:s,hash:a}=i.location;return zc("",{pathname:o,search:s,hash:a},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(i,r){return typeof r=="string"?r:Ew(r)}return zP(t,n,null,e)}function Je(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rh(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function SP(){return Math.random().toString(36).substr(2,8)}function Wf(e,t){return{usr:e.state,key:e.key,idx:t}}function zc(e,t,n,i){return n===void 0&&(n=null),Wo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?jr(t):t,{state:n,key:t&&t.key||i||SP()})}function Ew(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function jr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function zP(e,t,n,i){i===void 0&&(i={});let{window:r=document.defaultView,v5Compat:o=!1}=i,s=r.history,a=Xn.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(Wo({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function c(){a=Xn.Pop;let y=d(),f=y==null?null:y-u;u=y,l&&l({action:a,location:v.location,delta:f})}function h(y,f){a=Xn.Push;let g=zc(v.location,y,f);u=d()+1;let b=Wf(g,u),k=v.createHref(g);try{s.pushState(b,"",k)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;r.location.assign(k)}o&&l&&l({action:a,location:v.location,delta:1})}function p(y,f){a=Xn.Replace;let g=zc(v.location,y,f);u=d();let b=Wf(g,u),k=v.createHref(g);s.replaceState(b,"",k),o&&l&&l({action:a,location:v.location,delta:0})}function m(y){let f=r.location.origin!=="null"?r.location.origin:r.location.href,g=typeof y=="string"?y:Ew(y);return g=g.replace(/ $/,"%20"),Je(f,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,f)}let v={get action(){return a},get location(){return e(r,s)},listen(y){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(Bf,c),l=y,()=>{r.removeEventListener(Bf,c),l=null}},createHref(y){return t(r,y)},createURL:m,encodeLocation(y){let f=m(y);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:h,replace:p,go(y){return s.go(y)}};return v}var Hf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Hf||(Hf={}));function CP(e,t,n){return n===void 0&&(n="/"),DP(e,t,n)}function DP(e,t,n,i){let r=typeof t=="string"?jr(t):t,o=Iw(r.pathname||"/",n);if(o==null)return null;let s=Pw(e);EP(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=GP(o);a=MP(s[l],u)}return a}function Pw(e,t,n,i){t===void 0&&(t=[]),n===void 0&&(n=[]),i===void 0&&(i="");let r=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(Je(l.relativePath.startsWith(i),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(i.length));let u=Oi([i,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(Je(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Pw(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:RP(u,o.index),routesMeta:d})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))r(o,s);else for(let l of Aw(o.path))r(o,s,l)}),t}function Aw(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(i.length===0)return r?[o,""]:[o];let s=Aw(i.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),r&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function EP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:LP(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const PP=/^:[\w-]+$/,AP=3,IP=2,TP=1,OP=10,NP=-2,Uf=e=>e==="*";function RP(e,t){let n=e.split("/"),i=n.length;return n.some(Uf)&&(i+=NP),t&&(i+=IP),n.filter(r=>!Uf(r)).reduce((r,o)=>r+(PP.test(o)?AP:o===""?TP:OP),i)}function LP(e,t){return e.length===t.length&&e.slice(0,-1).every((i,r)=>i===t[r])?e[e.length-1]-t[t.length-1]:0}function MP(e,t,n){let{routesMeta:i}=e,r={},o="/",s=[];for(let a=0;a<i.length;++a){let l=i[a],u=a===i.length-1,d=o==="/"?t:t.slice(o.length)||"/",c=FP({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),h=l.route;if(!c)return null;Object.assign(r,c.params),s.push({params:r,pathname:Oi([o,c.pathname]),pathnameBase:HP(Oi([o,c.pathnameBase])),route:h}),c.pathnameBase!=="/"&&(o=Oi([o,c.pathnameBase]))}return s}function FP(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=VP(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let o=r[0],s=o.replace(/(.)\/+$/,"$1"),a=r.slice(1);return{params:i.reduce((u,d,c)=>{let{paramName:h,isOptional:p}=d;if(h==="*"){let v=a[c]||"";s=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const m=a[c];return p&&!m?u[h]=void 0:u[h]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function VP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),rh(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(i.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),i]}function GP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return rh(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Iw(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}const $P=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jP=e=>$P.test(e);function BP(e,t){t===void 0&&(t="/");let{pathname:n,search:i="",hash:r=""}=typeof e=="string"?jr(e):e,o;if(n)if(jP(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),rh(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=Zf(n.substring(1),"/"):o=Zf(n,t)}else o=t;return{pathname:o,search:UP(i),hash:ZP(r)}}function Zf(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function pu(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function WP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Tw(e,t){let n=WP(e);return t?n.map((i,r)=>r===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function Ow(e,t,n,i){i===void 0&&(i=!1);let r;typeof e=="string"?r=jr(e):(r=Wo({},e),Je(!r.pathname||!r.pathname.includes("?"),pu("?","pathname","search",r)),Je(!r.pathname||!r.pathname.includes("#"),pu("#","pathname","hash",r)),Je(!r.search||!r.search.includes("#"),pu("#","search","hash",r)));let o=e===""||r.pathname==="",s=o?"/":r.pathname,a;if(s==null)a=n;else{let c=t.length-1;if(!i&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),c-=1;r.pathname=h.join("/")}a=c>=0?t[c]:"/"}let l=BP(r,a),u=s&&s!=="/"&&s.endsWith("/"),d=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Oi=e=>e.join("/").replace(/\/\/+/g,"/"),HP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),UP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ZP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function YP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Nw=["post","put","patch","delete"];new Set(Nw);const JP=["get",...Nw];new Set(JP);/**
|
|
80
|
+
* React Router v6.30.3
|
|
81
|
+
*
|
|
82
|
+
* Copyright (c) Remix Software Inc.
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the MIT license found in the
|
|
85
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
86
|
+
*
|
|
87
|
+
* @license MIT
|
|
88
|
+
*/function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ho.apply(this,arguments)}const oh=Z.createContext(null),qP=Z.createContext(null),os=Z.createContext(null),cl=Z.createContext(null),gi=Z.createContext({outlet:null,matches:[],isDataRoute:!1}),Rw=Z.createContext(null);function ss(){return Z.useContext(cl)!=null}function dl(){return ss()||Je(!1),Z.useContext(cl).location}function Lw(e){Z.useContext(os).static||Z.useLayoutEffect(e)}function Mw(){let{isDataRoute:e}=Z.useContext(gi);return e?uA():KP()}function KP(){ss()||Je(!1);let e=Z.useContext(oh),{basename:t,future:n,navigator:i}=Z.useContext(os),{matches:r}=Z.useContext(gi),{pathname:o}=dl(),s=JSON.stringify(Tw(r,n.v7_relativeSplatPath)),a=Z.useRef(!1);return Lw(()=>{a.current=!0}),Z.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){i.go(u);return}let c=Ow(u,JSON.parse(s),o,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Oi([t,c.pathname])),(d.replace?i.replace:i.push)(c,d.state,d)},[t,i,s,o,e])}function m3(){let{matches:e}=Z.useContext(gi),t=e[e.length-1];return t?t.params:{}}function XP(e,t){return QP(e,t)}function QP(e,t,n,i){ss()||Je(!1);let{navigator:r}=Z.useContext(os),{matches:o}=Z.useContext(gi),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=dl(),d;if(t){var c;let y=typeof t=="string"?jr(t):t;l==="/"||(c=y.pathname)!=null&&c.startsWith(l)||Je(!1),d=y}else d=u;let h=d.pathname||"/",p=h;if(l!=="/"){let y=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(y.length).join("/")}let m=CP(e,{pathname:p}),v=rA(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:Oi([l,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:Oi([l,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n,i);return t&&v?Z.createElement(cl.Provider,{value:{location:Ho({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Xn.Pop}},v):v}function eA(){let e=lA(),t=YP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Z.createElement(Z.Fragment,null,Z.createElement("h2",null,"Unexpected Application Error!"),Z.createElement("h3",{style:{fontStyle:"italic"}},t),n?Z.createElement("pre",{style:r},n):null,null)}const tA=Z.createElement(eA,null);class nA extends Z.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?Z.createElement(gi.Provider,{value:this.props.routeContext},Z.createElement(Rw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function iA(e){let{routeContext:t,match:n,children:i}=e,r=Z.useContext(oh);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),Z.createElement(gi.Provider,{value:t},i)}function rA(e,t,n,i){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),i===void 0&&(i=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=i)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let d=s.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);d>=0||Je(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&i&&i.v7_partialHydration)for(let d=0;d<s.length;d++){let c=s[d];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=d),c.route.id){let{loaderData:h,errors:p}=n,m=c.route.loader&&h[c.route.id]===void 0&&(!p||p[c.route.id]===void 0);if(c.route.lazy||m){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,c,h)=>{let p,m=!1,v=null,y=null;n&&(p=a&&c.route.id?a[c.route.id]:void 0,v=c.route.errorElement||tA,l&&(u<0&&h===0?(cA("route-fallback"),m=!0,y=null):u===h&&(m=!0,y=c.route.hydrateFallbackElement||null)));let f=t.concat(s.slice(0,h+1)),g=()=>{let b;return p?b=v:m?b=y:c.route.Component?b=Z.createElement(c.route.Component,null):c.route.element?b=c.route.element:b=d,Z.createElement(iA,{match:c,routeContext:{outlet:d,matches:f,isDataRoute:n!=null},children:b})};return n&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?Z.createElement(nA,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:g(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):g()},null)}var Fw=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Fw||{}),Vw=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Vw||{});function oA(e){let t=Z.useContext(oh);return t||Je(!1),t}function sA(e){let t=Z.useContext(qP);return t||Je(!1),t}function aA(e){let t=Z.useContext(gi);return t||Je(!1),t}function Gw(e){let t=aA(),n=t.matches[t.matches.length-1];return n.route.id||Je(!1),n.route.id}function lA(){var e;let t=Z.useContext(Rw),n=sA(),i=Gw();return t!==void 0?t:(e=n.errors)==null?void 0:e[i]}function uA(){let{router:e}=oA(Fw.UseNavigateStable),t=Gw(Vw.UseNavigateStable),n=Z.useRef(!1);return Lw(()=>{n.current=!0}),Z.useCallback(function(r,o){o===void 0&&(o={}),n.current&&(typeof r=="number"?e.navigate(r):e.navigate(r,Ho({fromRouteId:t},o)))},[e,t])}const Yf={};function cA(e,t,n){Yf[e]||(Yf[e]=!0)}function dA(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function v3(e){let{to:t,replace:n,state:i,relative:r}=e;ss()||Je(!1);let{future:o,static:s}=Z.useContext(os),{matches:a}=Z.useContext(gi),{pathname:l}=dl(),u=Mw(),d=Ow(t,Tw(a,o.v7_relativeSplatPath),l,r==="path"),c=JSON.stringify(d);return Z.useEffect(()=>u(JSON.parse(c),{replace:n,state:i,relative:r}),[u,c,r,n,i]),null}function hA(e){Je(!1)}function pA(e){let{basename:t="/",children:n=null,location:i,navigationType:r=Xn.Pop,navigator:o,static:s=!1,future:a}=e;ss()&&Je(!1);let l=t.replace(/^\/*/,"/"),u=Z.useMemo(()=>({basename:l,navigator:o,static:s,future:Ho({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof i=="string"&&(i=jr(i));let{pathname:d="/",search:c="",hash:h="",state:p=null,key:m="default"}=i,v=Z.useMemo(()=>{let y=Iw(d,l);return y==null?null:{location:{pathname:y,search:c,hash:h,state:p,key:m},navigationType:r}},[l,d,c,h,p,m,r]);return v==null?null:Z.createElement(os.Provider,{value:u},Z.createElement(cl.Provider,{children:n,value:v}))}function g3(e){let{children:t,location:n}=e;return XP(Cc(t),n)}new Promise(()=>{});function Cc(e,t){t===void 0&&(t=[]);let n=[];return Z.Children.forEach(e,(i,r)=>{if(!Z.isValidElement(i))return;let o=[...t,r];if(i.type===Z.Fragment){n.push.apply(n,Cc(i.props.children,o));return}i.type!==hA&&Je(!1),!i.props.index||!i.props.children||Je(!1);let s={id:i.props.id||o.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(s.children=Cc(i.props.children,o)),n.push(s)}),n}/**
|
|
89
|
+
* React Router DOM v6.30.3
|
|
90
|
+
*
|
|
91
|
+
* Copyright (c) Remix Software Inc.
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the MIT license found in the
|
|
94
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
95
|
+
*
|
|
96
|
+
* @license MIT
|
|
97
|
+
*/function Dc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let i=e[n];return t.concat(Array.isArray(i)?i.map(r=>[n,r]):[[n,i]])},[]))}function fA(e,t){let n=Dc(e);return t&&t.forEach((i,r)=>{n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)})}),n}const mA="6";try{window.__reactRouterVersion=mA}catch{}const vA="startTransition",Jf=E0[vA];function b3(e){let{basename:t,children:n,future:i,window:r}=e,o=Z.useRef();o.current==null&&(o.current=kP({window:r,v5Compat:!0}));let s=o.current,[a,l]=Z.useState({action:s.action,location:s.location}),{v7_startTransition:u}=i||{},d=Z.useCallback(c=>{u&&Jf?Jf(()=>l(c)):l(c)},[l,u]);return Z.useLayoutEffect(()=>s.listen(d),[s,d]),Z.useEffect(()=>dA(i),[i]),Z.createElement(pA,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:i})}var qf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qf||(qf={}));var Kf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Kf||(Kf={}));function w3(e){let t=Z.useRef(Dc(e)),n=Z.useRef(!1),i=dl(),r=Z.useMemo(()=>fA(i.search,n.current?null:t.current),[i.search]),o=Mw(),s=Z.useCallback((a,l)=>{const u=Dc(typeof a=="function"?a(r):a);n.current=!0,o("?"+u,l)},[o,r]);return[r,s]}/**
|
|
98
|
+
* dockview-core
|
|
99
|
+
* @version 5.2.0
|
|
100
|
+
* @link https://github.com/mathuo/dockview
|
|
101
|
+
* @license MIT
|
|
102
|
+
*/function gA(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n==="top"&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}var bA=`.dv-scrollable {
|
|
103
|
+
position: relative;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
}
|
|
106
|
+
.dv-scrollable .dv-scrollbar {
|
|
107
|
+
position: absolute;
|
|
108
|
+
border-radius: 2px;
|
|
109
|
+
background-color: transparent;
|
|
110
|
+
/* GPU optimizations */
|
|
111
|
+
will-change: background-color, transform;
|
|
112
|
+
transform: translate3d(0, 0, 0);
|
|
113
|
+
backface-visibility: hidden;
|
|
114
|
+
transition-property: background-color;
|
|
115
|
+
transition-timing-function: ease-in-out;
|
|
116
|
+
transition-duration: 1s;
|
|
117
|
+
transition-delay: 0s;
|
|
118
|
+
}
|
|
119
|
+
.dv-scrollable .dv-scrollbar-horizontal {
|
|
120
|
+
bottom: 0px;
|
|
121
|
+
left: 0px;
|
|
122
|
+
height: 4px;
|
|
123
|
+
}
|
|
124
|
+
.dv-scrollable .dv-scrollbar-vertical {
|
|
125
|
+
right: 0px;
|
|
126
|
+
top: 0px;
|
|
127
|
+
width: 4px;
|
|
128
|
+
}
|
|
129
|
+
.dv-scrollable:hover .dv-scrollbar, .dv-scrollable.dv-scrollable-resizing .dv-scrollbar, .dv-scrollable.dv-scrollable-scrolling .dv-scrollbar {
|
|
130
|
+
background-color: var(--dv-scrollbar-background-color, rgba(255, 255, 255, 0.25));
|
|
131
|
+
}
|
|
132
|
+
.dv-svg {
|
|
133
|
+
display: inline-block;
|
|
134
|
+
fill: currentcolor;
|
|
135
|
+
line-height: 1;
|
|
136
|
+
stroke: currentcolor;
|
|
137
|
+
stroke-width: 0;
|
|
138
|
+
}
|
|
139
|
+
.dockview-theme-dark {
|
|
140
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
141
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
142
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
143
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
144
|
+
--dv-drag-over-border-color: transparent;
|
|
145
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
146
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
147
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
148
|
+
--dv-overlay-z-index: 999;
|
|
149
|
+
--dv-tab-font-size: inherit;
|
|
150
|
+
--dv-border-radius: 0px;
|
|
151
|
+
--dv-tab-margin: 0;
|
|
152
|
+
--dv-sash-color: transparent;
|
|
153
|
+
--dv-active-sash-color: transparent;
|
|
154
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
155
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
156
|
+
--dv-group-view-background-color: #1e1e1e;
|
|
157
|
+
--dv-tabs-and-actions-container-background-color: #252526;
|
|
158
|
+
--dv-activegroup-visiblepanel-tab-background-color: #1e1e1e;
|
|
159
|
+
--dv-activegroup-hiddenpanel-tab-background-color: #2d2d2d;
|
|
160
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: #1e1e1e;
|
|
161
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: #2d2d2d;
|
|
162
|
+
--dv-tab-divider-color: #1e1e1e;
|
|
163
|
+
--dv-activegroup-visiblepanel-tab-color: white;
|
|
164
|
+
--dv-activegroup-hiddenpanel-tab-color: #969696;
|
|
165
|
+
--dv-inactivegroup-visiblepanel-tab-color: #8f8f8f;
|
|
166
|
+
--dv-inactivegroup-hiddenpanel-tab-color: #626262;
|
|
167
|
+
--dv-separator-border: rgb(68, 68, 68);
|
|
168
|
+
--dv-paneview-header-border-color: rgba(204, 204, 204, 0.2);
|
|
169
|
+
}
|
|
170
|
+
.dockview-theme-dark .dv-drop-target-container .dv-drop-target-anchor.dv-drop-target-anchor-container-changed {
|
|
171
|
+
opacity: 0;
|
|
172
|
+
transition: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.dockview-theme-light {
|
|
176
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
177
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
178
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
179
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
180
|
+
--dv-drag-over-border-color: transparent;
|
|
181
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
182
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
183
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
184
|
+
--dv-overlay-z-index: 999;
|
|
185
|
+
--dv-tab-font-size: inherit;
|
|
186
|
+
--dv-border-radius: 0px;
|
|
187
|
+
--dv-tab-margin: 0;
|
|
188
|
+
--dv-sash-color: transparent;
|
|
189
|
+
--dv-active-sash-color: transparent;
|
|
190
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
191
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
192
|
+
--dv-group-view-background-color: white;
|
|
193
|
+
--dv-tabs-and-actions-container-background-color: #f3f3f3;
|
|
194
|
+
--dv-activegroup-visiblepanel-tab-background-color: white;
|
|
195
|
+
--dv-activegroup-hiddenpanel-tab-background-color: #ececec;
|
|
196
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: white;
|
|
197
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: #ececec;
|
|
198
|
+
--dv-tab-divider-color: white;
|
|
199
|
+
--dv-activegroup-visiblepanel-tab-color: rgb(51, 51, 51);
|
|
200
|
+
--dv-activegroup-hiddenpanel-tab-color: rgba(51, 51, 51, 0.7);
|
|
201
|
+
--dv-inactivegroup-visiblepanel-tab-color: rgba(51, 51, 51, 0.7);
|
|
202
|
+
--dv-inactivegroup-hiddenpanel-tab-color: rgba(51, 51, 51, 0.35);
|
|
203
|
+
--dv-separator-border: rgba(128, 128, 128, 0.35);
|
|
204
|
+
--dv-paneview-header-border-color: rgb(51, 51, 51);
|
|
205
|
+
--dv-scrollbar-background-color: rgba(0, 0, 0, 0.25);
|
|
206
|
+
}
|
|
207
|
+
.dockview-theme-light .dv-drop-target-container .dv-drop-target-anchor.dv-drop-target-anchor-container-changed {
|
|
208
|
+
opacity: 0;
|
|
209
|
+
transition: none;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.dockview-theme-vs {
|
|
213
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
214
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
215
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
216
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
217
|
+
--dv-drag-over-border-color: transparent;
|
|
218
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
219
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
220
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
221
|
+
--dv-overlay-z-index: 999;
|
|
222
|
+
--dv-tab-font-size: inherit;
|
|
223
|
+
--dv-border-radius: 0px;
|
|
224
|
+
--dv-tab-margin: 0;
|
|
225
|
+
--dv-sash-color: transparent;
|
|
226
|
+
--dv-active-sash-color: transparent;
|
|
227
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
228
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
229
|
+
--dv-group-view-background-color: #1e1e1e;
|
|
230
|
+
--dv-tabs-and-actions-container-background-color: #252526;
|
|
231
|
+
--dv-activegroup-visiblepanel-tab-background-color: #1e1e1e;
|
|
232
|
+
--dv-activegroup-hiddenpanel-tab-background-color: #2d2d2d;
|
|
233
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: #1e1e1e;
|
|
234
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: #2d2d2d;
|
|
235
|
+
--dv-tab-divider-color: #1e1e1e;
|
|
236
|
+
--dv-activegroup-visiblepanel-tab-color: white;
|
|
237
|
+
--dv-activegroup-hiddenpanel-tab-color: #969696;
|
|
238
|
+
--dv-inactivegroup-visiblepanel-tab-color: #8f8f8f;
|
|
239
|
+
--dv-inactivegroup-hiddenpanel-tab-color: #626262;
|
|
240
|
+
--dv-separator-border: rgb(68, 68, 68);
|
|
241
|
+
--dv-paneview-header-border-color: rgba(204, 204, 204, 0.2);
|
|
242
|
+
--dv-tabs-and-actions-container-background-color: #2d2d30;
|
|
243
|
+
--dv-tabs-and-actions-container-height: 20px;
|
|
244
|
+
--dv-tabs-and-actions-container-font-size: 11px;
|
|
245
|
+
--dv-activegroup-visiblepanel-tab-background-color: #007acc;
|
|
246
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: #3f3f46;
|
|
247
|
+
--dv-activegroup-visiblepanel-tab-color: white;
|
|
248
|
+
--dv-activegroup-hiddenpanel-tab-color: white;
|
|
249
|
+
--dv-inactivegroup-visiblepanel-tab-color: white;
|
|
250
|
+
--dv-inactivegroup-hiddenpanel-tab-color: white;
|
|
251
|
+
}
|
|
252
|
+
.dockview-theme-vs .dv-drop-target-container .dv-drop-target-anchor.dv-drop-target-anchor-container-changed {
|
|
253
|
+
opacity: 0;
|
|
254
|
+
transition: none;
|
|
255
|
+
}
|
|
256
|
+
.dockview-theme-vs .dv-groupview.dv-active-group > .dv-tabs-and-actions-container {
|
|
257
|
+
box-sizing: content-box;
|
|
258
|
+
border-bottom: 2px solid var(--dv-activegroup-visiblepanel-tab-background-color);
|
|
259
|
+
}
|
|
260
|
+
.dockview-theme-vs .dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tab.dv-active-tab {
|
|
261
|
+
border-top: 2px solid var(--dv-activegroup-visiblepanel-tab-background-color);
|
|
262
|
+
}
|
|
263
|
+
.dockview-theme-vs .dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tab.dv-inactive-tab {
|
|
264
|
+
border-top: 2px solid var(--dv-activegroup-hiddenpanel-tab-background-color);
|
|
265
|
+
}
|
|
266
|
+
.dockview-theme-vs .dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container {
|
|
267
|
+
box-sizing: content-box;
|
|
268
|
+
border-bottom: 2px solid var(--dv-inactivegroup-visiblepanel-tab-background-color);
|
|
269
|
+
}
|
|
270
|
+
.dockview-theme-vs .dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tab.dv-active-tab {
|
|
271
|
+
border-top: 2px solid var(--dv-inactivegroup-visiblepanel-tab-background-color);
|
|
272
|
+
}
|
|
273
|
+
.dockview-theme-vs .dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tab.dv-inactive-tab {
|
|
274
|
+
border-top: 2px solid var(--dv-inactivegroup-hiddenpanel-tab-background-color);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.dockview-theme-abyss {
|
|
278
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
279
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
280
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
281
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
282
|
+
--dv-drag-over-border-color: transparent;
|
|
283
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
284
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
285
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
286
|
+
--dv-overlay-z-index: 999;
|
|
287
|
+
--dv-tab-font-size: inherit;
|
|
288
|
+
--dv-border-radius: 0px;
|
|
289
|
+
--dv-tab-margin: 0;
|
|
290
|
+
--dv-sash-color: transparent;
|
|
291
|
+
--dv-active-sash-color: transparent;
|
|
292
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
293
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
294
|
+
--dv-color-abyss-dark: #000c18;
|
|
295
|
+
--dv-color-abyss: #10192c;
|
|
296
|
+
--dv-color-abyss-light: #1c1c2a;
|
|
297
|
+
--dv-color-abyss-lighter: #2b2b4a;
|
|
298
|
+
--dv-color-abyss-accent: rgb(91, 30, 207);
|
|
299
|
+
--dv-color-abyss-primary-text: white;
|
|
300
|
+
--dv-color-abyss-secondary-text: rgb(148, 151, 169);
|
|
301
|
+
--dv-group-view-background-color: var(--dv-color-abyss-dark);
|
|
302
|
+
--dv-tabs-and-actions-container-background-color: var(
|
|
303
|
+
--dv-color-abyss-light
|
|
304
|
+
);
|
|
305
|
+
--dv-activegroup-visiblepanel-tab-background-color: var(
|
|
306
|
+
--dv-color-abyss-dark
|
|
307
|
+
);
|
|
308
|
+
--dv-activegroup-hiddenpanel-tab-background-color: var(--dv-color-abyss);
|
|
309
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: var(
|
|
310
|
+
--dv-color-abyss-dark
|
|
311
|
+
);
|
|
312
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: var(--dv-color-abyss);
|
|
313
|
+
--dv-tab-divider-color: var(--dv-color-abyss-lighter);
|
|
314
|
+
--dv-activegroup-visiblepanel-tab-color: white;
|
|
315
|
+
--dv-activegroup-hiddenpanel-tab-color: rgba(255, 255, 255, 0.5);
|
|
316
|
+
--dv-inactivegroup-visiblepanel-tab-color: rgba(255, 255, 255, 0.5);
|
|
317
|
+
--dv-inactivegroup-hiddenpanel-tab-color: rgba(255, 255, 255, 0.25);
|
|
318
|
+
--dv-separator-border: var(--dv-color-abyss-lighter);
|
|
319
|
+
--dv-paneview-header-border-color: var(--dv-color-abyss-lighter);
|
|
320
|
+
--dv-paneview-active-outline-color: #596f99;
|
|
321
|
+
}
|
|
322
|
+
.dockview-theme-abyss .dv-drop-target-container .dv-drop-target-anchor.dv-drop-target-anchor-container-changed {
|
|
323
|
+
opacity: 0;
|
|
324
|
+
transition: none;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.dockview-theme-dracula {
|
|
328
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
329
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
330
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
331
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
332
|
+
--dv-drag-over-border-color: transparent;
|
|
333
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
334
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
335
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
336
|
+
--dv-overlay-z-index: 999;
|
|
337
|
+
--dv-tab-font-size: inherit;
|
|
338
|
+
--dv-border-radius: 0px;
|
|
339
|
+
--dv-tab-margin: 0;
|
|
340
|
+
--dv-sash-color: transparent;
|
|
341
|
+
--dv-active-sash-color: transparent;
|
|
342
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
343
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
344
|
+
--dv-group-view-background-color: #282a36;
|
|
345
|
+
--dv-tabs-and-actions-container-background-color: #191a21;
|
|
346
|
+
--dv-activegroup-visiblepanel-tab-background-color: #282a36;
|
|
347
|
+
--dv-activegroup-hiddenpanel-tab-background-color: #21222c;
|
|
348
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: #282a36;
|
|
349
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: #21222c;
|
|
350
|
+
--dv-tab-divider-color: #191a21;
|
|
351
|
+
--dv-activegroup-visiblepanel-tab-color: rgb(248, 248, 242);
|
|
352
|
+
--dv-activegroup-hiddenpanel-tab-color: rgb(98, 114, 164);
|
|
353
|
+
--dv-inactivegroup-visiblepanel-tab-color: rgba(248, 248, 242, 0.5);
|
|
354
|
+
--dv-inactivegroup-hiddenpanel-tab-color: rgba(98, 114, 164, 0.5);
|
|
355
|
+
--dv-separator-border: #bd93f9;
|
|
356
|
+
--dv-paneview-header-border-color: #bd93f9;
|
|
357
|
+
--dv-paneview-active-outline-color: #6272a4;
|
|
358
|
+
}
|
|
359
|
+
.dockview-theme-dracula .dv-drop-target-container .dv-drop-target-anchor.dv-drop-target-anchor-container-changed {
|
|
360
|
+
opacity: 0;
|
|
361
|
+
transition: none;
|
|
362
|
+
}
|
|
363
|
+
.dockview-theme-dracula .dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab {
|
|
364
|
+
position: relative;
|
|
365
|
+
}
|
|
366
|
+
.dockview-theme-dracula .dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab::after {
|
|
367
|
+
position: absolute;
|
|
368
|
+
left: 0px;
|
|
369
|
+
top: 0px;
|
|
370
|
+
content: "";
|
|
371
|
+
width: 100%;
|
|
372
|
+
height: 1px;
|
|
373
|
+
background-color: #94527e;
|
|
374
|
+
z-index: 999;
|
|
375
|
+
}
|
|
376
|
+
.dockview-theme-dracula .dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab {
|
|
377
|
+
position: relative;
|
|
378
|
+
}
|
|
379
|
+
.dockview-theme-dracula .dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab::after {
|
|
380
|
+
position: absolute;
|
|
381
|
+
left: 0px;
|
|
382
|
+
bottom: 0px;
|
|
383
|
+
content: "";
|
|
384
|
+
width: 100%;
|
|
385
|
+
height: 1px;
|
|
386
|
+
background-color: #5e3d5a;
|
|
387
|
+
z-index: 999;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.dockview-theme-replit {
|
|
391
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
392
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
393
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
394
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
395
|
+
--dv-drag-over-border-color: transparent;
|
|
396
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
397
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
398
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
399
|
+
--dv-overlay-z-index: 999;
|
|
400
|
+
--dv-tab-font-size: inherit;
|
|
401
|
+
--dv-border-radius: 0px;
|
|
402
|
+
--dv-tab-margin: 0;
|
|
403
|
+
--dv-sash-color: transparent;
|
|
404
|
+
--dv-active-sash-color: transparent;
|
|
405
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
406
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
407
|
+
box-sizing: border-box;
|
|
408
|
+
padding: 10px;
|
|
409
|
+
background-color: #ebeced;
|
|
410
|
+
--dv-group-view-background-color: #ebeced;
|
|
411
|
+
--dv-tabs-and-actions-container-background-color: #fcfcfc;
|
|
412
|
+
--dv-activegroup-visiblepanel-tab-background-color: #f0f1f2;
|
|
413
|
+
--dv-activegroup-hiddenpanel-tab-background-color: #fcfcfc;
|
|
414
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: #f0f1f2;
|
|
415
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: #fcfcfc;
|
|
416
|
+
--dv-tab-divider-color: transparent;
|
|
417
|
+
--dv-activegroup-visiblepanel-tab-color: rgb(51, 51, 51);
|
|
418
|
+
--dv-activegroup-hiddenpanel-tab-color: rgb(51, 51, 51);
|
|
419
|
+
--dv-inactivegroup-visiblepanel-tab-color: rgb(51, 51, 51);
|
|
420
|
+
--dv-inactivegroup-hiddenpanel-tab-color: rgb(51, 51, 51);
|
|
421
|
+
--dv-separator-border: transparent;
|
|
422
|
+
--dv-paneview-header-border-color: rgb(51, 51, 51);
|
|
423
|
+
--dv-sash-color: #cfd1d3;
|
|
424
|
+
--dv-active-sash-color: #babbbb;
|
|
425
|
+
}
|
|
426
|
+
.dockview-theme-replit .dv-drop-target-container .dv-drop-target-anchor.dv-drop-target-anchor-container-changed {
|
|
427
|
+
opacity: 0;
|
|
428
|
+
transition: none;
|
|
429
|
+
}
|
|
430
|
+
.dockview-theme-replit .dv-resize-container:has(> .dv-groupview) {
|
|
431
|
+
border-radius: 8px;
|
|
432
|
+
}
|
|
433
|
+
.dockview-theme-replit .dv-resize-container {
|
|
434
|
+
border-radius: 10px !important;
|
|
435
|
+
border: none;
|
|
436
|
+
}
|
|
437
|
+
.dockview-theme-replit .dv-groupview {
|
|
438
|
+
overflow: hidden;
|
|
439
|
+
border-radius: 10px;
|
|
440
|
+
}
|
|
441
|
+
.dockview-theme-replit .dv-groupview .dv-tabs-and-actions-container {
|
|
442
|
+
border-bottom: 1px solid rgba(128, 128, 128, 0.35);
|
|
443
|
+
}
|
|
444
|
+
.dockview-theme-replit .dv-groupview .dv-tabs-and-actions-container .dv-tab {
|
|
445
|
+
margin: 4px;
|
|
446
|
+
border-radius: 8px;
|
|
447
|
+
}
|
|
448
|
+
.dockview-theme-replit .dv-groupview .dv-tabs-and-actions-container .dv-tab .dv-svg {
|
|
449
|
+
height: 8px;
|
|
450
|
+
width: 8px;
|
|
451
|
+
}
|
|
452
|
+
.dockview-theme-replit .dv-groupview .dv-tabs-and-actions-container .dv-tab:hover {
|
|
453
|
+
background-color: #e4e5e6 !important;
|
|
454
|
+
}
|
|
455
|
+
.dockview-theme-replit .dv-groupview .dv-content-container {
|
|
456
|
+
background-color: #fcfcfc;
|
|
457
|
+
}
|
|
458
|
+
.dockview-theme-replit .dv-groupview.dv-active-group {
|
|
459
|
+
border: 1px solid rgba(128, 128, 128, 0.35);
|
|
460
|
+
}
|
|
461
|
+
.dockview-theme-replit .dv-groupview.dv-inactive-group {
|
|
462
|
+
border: 1px solid transparent;
|
|
463
|
+
}
|
|
464
|
+
.dockview-theme-replit .dv-vertical > .dv-sash-container > .dv-sash {
|
|
465
|
+
background-color: transparent;
|
|
466
|
+
}
|
|
467
|
+
.dockview-theme-replit .dv-vertical > .dv-sash-container > .dv-sash:not(.disabled)::after {
|
|
468
|
+
content: "";
|
|
469
|
+
height: 4px;
|
|
470
|
+
width: 40px;
|
|
471
|
+
border-radius: 2px;
|
|
472
|
+
top: 50%;
|
|
473
|
+
left: 50%;
|
|
474
|
+
transform: translate(-50%, -50%);
|
|
475
|
+
background-color: var(--dv-sash-color);
|
|
476
|
+
position: absolute;
|
|
477
|
+
}
|
|
478
|
+
.dockview-theme-replit .dv-vertical > .dv-sash-container > .dv-sash:not(.disabled):hover, .dockview-theme-replit .dv-vertical > .dv-sash-container > .dv-sash:not(.disabled):active {
|
|
479
|
+
background-color: transparent;
|
|
480
|
+
}
|
|
481
|
+
.dockview-theme-replit .dv-vertical > .dv-sash-container > .dv-sash:not(.disabled):hover::after, .dockview-theme-replit .dv-vertical > .dv-sash-container > .dv-sash:not(.disabled):active::after {
|
|
482
|
+
background-color: var(--dv-active-sash-color);
|
|
483
|
+
}
|
|
484
|
+
.dockview-theme-replit .dv-horizontal > .dv-sash-container > .dv-sash {
|
|
485
|
+
background-color: transparent;
|
|
486
|
+
}
|
|
487
|
+
.dockview-theme-replit .dv-horizontal > .dv-sash-container > .dv-sash:not(.disabled)::after {
|
|
488
|
+
content: "";
|
|
489
|
+
height: 40px;
|
|
490
|
+
width: 4px;
|
|
491
|
+
border-radius: 2px;
|
|
492
|
+
top: 50%;
|
|
493
|
+
left: 50%;
|
|
494
|
+
transform: translate(-50%, -50%);
|
|
495
|
+
background-color: var(--dv-sash-color);
|
|
496
|
+
position: absolute;
|
|
497
|
+
}
|
|
498
|
+
.dockview-theme-replit .dv-horizontal > .dv-sash-container > .dv-sash:not(.disabled):hover, .dockview-theme-replit .dv-horizontal > .dv-sash-container > .dv-sash:not(.disabled):active {
|
|
499
|
+
background-color: transparent;
|
|
500
|
+
}
|
|
501
|
+
.dockview-theme-replit .dv-horizontal > .dv-sash-container > .dv-sash:not(.disabled):hover::after, .dockview-theme-replit .dv-horizontal > .dv-sash-container > .dv-sash:not(.disabled):active::after {
|
|
502
|
+
background-color: var(--dv-active-sash-color);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.dockview-theme-abyss-spaced {
|
|
506
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
507
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
508
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
509
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
510
|
+
--dv-drag-over-border-color: transparent;
|
|
511
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
512
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
513
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
514
|
+
--dv-overlay-z-index: 999;
|
|
515
|
+
--dv-tab-font-size: inherit;
|
|
516
|
+
--dv-border-radius: 0px;
|
|
517
|
+
--dv-tab-margin: 0;
|
|
518
|
+
--dv-sash-color: transparent;
|
|
519
|
+
--dv-active-sash-color: transparent;
|
|
520
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
521
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
522
|
+
--dv-tab-font-size: 12px;
|
|
523
|
+
--dv-border-radius: 20px;
|
|
524
|
+
--dv-tab-margin: 0.5rem 0.25rem;
|
|
525
|
+
--dv-tabs-and-actions-container-height: 44px;
|
|
526
|
+
--dv-border-radius: 20px;
|
|
527
|
+
box-sizing: border-box;
|
|
528
|
+
--dv-color-abyss-dark: rgb(11, 6, 17);
|
|
529
|
+
--dv-color-abyss: #16121f;
|
|
530
|
+
--dv-color-abyss-light: #201d2b;
|
|
531
|
+
--dv-color-abyss-lighter: #2a2837;
|
|
532
|
+
--dv-color-abyss-accent: rgb(91, 30, 207);
|
|
533
|
+
--dv-color-abyss-primary-text: white;
|
|
534
|
+
--dv-color-abyss-secondary-text: rgb(148, 151, 169);
|
|
535
|
+
--dv-drag-over-border: 2px solid var(--dv-color-abyss-accent);
|
|
536
|
+
--dv-drag-over-background-color: "";
|
|
537
|
+
--dv-group-view-background-color: var(--dv-color-abyss-dark);
|
|
538
|
+
--dv-tabs-and-actions-container-background-color: var(--dv-color-abyss);
|
|
539
|
+
--dv-activegroup-visiblepanel-tab-background-color: var(
|
|
540
|
+
--dv-color-abyss-lighter
|
|
541
|
+
);
|
|
542
|
+
--dv-activegroup-hiddenpanel-tab-background-color: var(
|
|
543
|
+
--dv-color-abyss-light
|
|
544
|
+
);
|
|
545
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: var(
|
|
546
|
+
--dv-color-abyss-lighter
|
|
547
|
+
);
|
|
548
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: var(
|
|
549
|
+
--dv-color-abyss-light
|
|
550
|
+
);
|
|
551
|
+
--dv-tab-divider-color: transparent;
|
|
552
|
+
--dv-activegroup-visiblepanel-tab-color: var(--dv-color-abyss-primary-text);
|
|
553
|
+
--dv-activegroup-hiddenpanel-tab-color: var(
|
|
554
|
+
--dv-color-abyss-secondary-text
|
|
555
|
+
);
|
|
556
|
+
--dv-inactivegroup-visiblepanel-tab-color: var(
|
|
557
|
+
--dv-color-abyss-primary-text
|
|
558
|
+
);
|
|
559
|
+
--dv-inactivegroup-hiddenpanel-tab-color: var(
|
|
560
|
+
--dv-color-abyss-secondary-text
|
|
561
|
+
);
|
|
562
|
+
--dv-separator-border: transparent;
|
|
563
|
+
--dv-paneview-header-border-color: rgb(51, 51, 51);
|
|
564
|
+
--dv-active-sash-color: var(--dv-color-abyss-accent);
|
|
565
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(0, 0, 0, 0.5);
|
|
566
|
+
padding: 10px;
|
|
567
|
+
background-color: var(--dv-color-abyss-dark);
|
|
568
|
+
}
|
|
569
|
+
.dockview-theme-abyss-spaced .dv-resize-container:has(> .dv-groupview) {
|
|
570
|
+
border-radius: 8px;
|
|
571
|
+
}
|
|
572
|
+
.dockview-theme-abyss-spaced .dv-sash {
|
|
573
|
+
border-radius: 4px;
|
|
574
|
+
}
|
|
575
|
+
.dockview-theme-abyss-spaced .dv-drop-target-anchor {
|
|
576
|
+
border-radius: calc(var(--dv-border-radius) / 4);
|
|
577
|
+
}
|
|
578
|
+
.dockview-theme-abyss-spaced .dv-drop-target-anchor.dv-drop-target-content {
|
|
579
|
+
border-radius: var(--dv-border-radius);
|
|
580
|
+
}
|
|
581
|
+
.dockview-theme-abyss-spaced .dv-resize-container {
|
|
582
|
+
border-radius: var(--dv-border-radius) !important;
|
|
583
|
+
border: none;
|
|
584
|
+
}
|
|
585
|
+
.dockview-theme-abyss-spaced .dv-tabs-overflow-container,
|
|
586
|
+
.dockview-theme-abyss-spaced .dv-tabs-overflow-dropdown-default {
|
|
587
|
+
border-radius: 8px;
|
|
588
|
+
height: unset !important;
|
|
589
|
+
}
|
|
590
|
+
.dockview-theme-abyss-spaced .dv-tab {
|
|
591
|
+
border-radius: 8px;
|
|
592
|
+
}
|
|
593
|
+
.dockview-theme-abyss-spaced .dv-tab .dv-svg {
|
|
594
|
+
height: 8px;
|
|
595
|
+
width: 8px;
|
|
596
|
+
}
|
|
597
|
+
.dockview-theme-abyss-spaced .dv-groupview {
|
|
598
|
+
border-radius: var(--dv-border-radius);
|
|
599
|
+
}
|
|
600
|
+
.dockview-theme-abyss-spaced .dv-groupview .dv-tabs-and-actions-container {
|
|
601
|
+
padding: 0px calc(var(--dv-border-radius) / 2);
|
|
602
|
+
}
|
|
603
|
+
.dockview-theme-abyss-spaced .dv-groupview .dv-content-container {
|
|
604
|
+
background-color: var(--dv-tabs-and-actions-container-background-color);
|
|
605
|
+
}
|
|
606
|
+
.dockview-theme-abyss-spaced .dv-resize-container .dv-groupview {
|
|
607
|
+
border: 2px solid var(--dv-color-abyss-dark);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.dockview-theme-light-spaced {
|
|
611
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
612
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
613
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
614
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
615
|
+
--dv-drag-over-border-color: transparent;
|
|
616
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
617
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
618
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
619
|
+
--dv-overlay-z-index: 999;
|
|
620
|
+
--dv-tab-font-size: inherit;
|
|
621
|
+
--dv-border-radius: 0px;
|
|
622
|
+
--dv-tab-margin: 0;
|
|
623
|
+
--dv-sash-color: transparent;
|
|
624
|
+
--dv-active-sash-color: transparent;
|
|
625
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
626
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
627
|
+
--dv-tab-font-size: 12px;
|
|
628
|
+
--dv-border-radius: 20px;
|
|
629
|
+
--dv-tab-margin: 0.5rem 0.25rem;
|
|
630
|
+
--dv-tabs-and-actions-container-height: 44px;
|
|
631
|
+
--dv-border-radius: 20px;
|
|
632
|
+
box-sizing: border-box;
|
|
633
|
+
--dv-drag-over-border: 2px solid rgb(91, 30, 207);
|
|
634
|
+
--dv-drag-over-background-color: "";
|
|
635
|
+
--dv-group-view-background-color: #f6f5f9;
|
|
636
|
+
--dv-tabs-and-actions-container-background-color: white;
|
|
637
|
+
--dv-activegroup-visiblepanel-tab-background-color: #ededf0;
|
|
638
|
+
--dv-activegroup-hiddenpanel-tab-background-color: #f9f9fa;
|
|
639
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: #ededf0;
|
|
640
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: #f9f9fa;
|
|
641
|
+
--dv-tab-divider-color: transparent;
|
|
642
|
+
--dv-activegroup-visiblepanel-tab-color: rgb(104, 107, 130);
|
|
643
|
+
--dv-activegroup-hiddenpanel-tab-color: rgb(148, 151, 169);
|
|
644
|
+
--dv-inactivegroup-visiblepanel-tab-color: rgb(104, 107, 130);
|
|
645
|
+
--dv-inactivegroup-hiddenpanel-tab-color: rgb(148, 151, 169);
|
|
646
|
+
--dv-separator-border: transparent;
|
|
647
|
+
--dv-paneview-header-border-color: rgb(51, 51, 51);
|
|
648
|
+
--dv-active-sash-color: rgb(91, 30, 207);
|
|
649
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(0, 0, 0, 0.1);
|
|
650
|
+
padding: 10px;
|
|
651
|
+
background-color: #f6f5f9;
|
|
652
|
+
--dv-scrollbar-background-color: rgba(0, 0, 0, 0.25);
|
|
653
|
+
}
|
|
654
|
+
.dockview-theme-light-spaced .dv-resize-container:has(> .dv-groupview) {
|
|
655
|
+
border-radius: 8px;
|
|
656
|
+
}
|
|
657
|
+
.dockview-theme-light-spaced .dv-sash {
|
|
658
|
+
border-radius: 4px;
|
|
659
|
+
}
|
|
660
|
+
.dockview-theme-light-spaced .dv-drop-target-anchor {
|
|
661
|
+
border-radius: calc(var(--dv-border-radius) / 4);
|
|
662
|
+
}
|
|
663
|
+
.dockview-theme-light-spaced .dv-drop-target-anchor.dv-drop-target-content {
|
|
664
|
+
border-radius: var(--dv-border-radius);
|
|
665
|
+
}
|
|
666
|
+
.dockview-theme-light-spaced .dv-resize-container {
|
|
667
|
+
border-radius: var(--dv-border-radius) !important;
|
|
668
|
+
border: none;
|
|
669
|
+
}
|
|
670
|
+
.dockview-theme-light-spaced .dv-tabs-overflow-container,
|
|
671
|
+
.dockview-theme-light-spaced .dv-tabs-overflow-dropdown-default {
|
|
672
|
+
border-radius: 8px;
|
|
673
|
+
height: unset !important;
|
|
674
|
+
}
|
|
675
|
+
.dockview-theme-light-spaced .dv-tab {
|
|
676
|
+
border-radius: 8px;
|
|
677
|
+
}
|
|
678
|
+
.dockview-theme-light-spaced .dv-tab .dv-svg {
|
|
679
|
+
height: 8px;
|
|
680
|
+
width: 8px;
|
|
681
|
+
}
|
|
682
|
+
.dockview-theme-light-spaced .dv-groupview {
|
|
683
|
+
border-radius: var(--dv-border-radius);
|
|
684
|
+
}
|
|
685
|
+
.dockview-theme-light-spaced .dv-groupview .dv-tabs-and-actions-container {
|
|
686
|
+
padding: 0px calc(var(--dv-border-radius) / 2);
|
|
687
|
+
}
|
|
688
|
+
.dockview-theme-light-spaced .dv-groupview .dv-content-container {
|
|
689
|
+
background-color: var(--dv-tabs-and-actions-container-background-color);
|
|
690
|
+
}
|
|
691
|
+
.dockview-theme-light-spaced .dv-resize-container .dv-groupview {
|
|
692
|
+
border: 2px solid rgba(255, 255, 255, 0.1);
|
|
693
|
+
}
|
|
694
|
+
.dv-drop-target-container {
|
|
695
|
+
position: absolute;
|
|
696
|
+
z-index: 9999;
|
|
697
|
+
top: 0px;
|
|
698
|
+
left: 0px;
|
|
699
|
+
height: 100%;
|
|
700
|
+
width: 100%;
|
|
701
|
+
pointer-events: none;
|
|
702
|
+
overflow: hidden;
|
|
703
|
+
--dv-transition-duration: 300ms;
|
|
704
|
+
}
|
|
705
|
+
.dv-drop-target-container .dv-drop-target-anchor {
|
|
706
|
+
position: relative;
|
|
707
|
+
border: var(--dv-drag-over-border);
|
|
708
|
+
background-color: var(--dv-drag-over-background-color);
|
|
709
|
+
opacity: 1;
|
|
710
|
+
/* GPU optimizations */
|
|
711
|
+
will-change: transform, opacity;
|
|
712
|
+
transform: translate3d(0, 0, 0);
|
|
713
|
+
backface-visibility: hidden;
|
|
714
|
+
contain: layout paint;
|
|
715
|
+
transition: opacity var(--dv-transition-duration) ease-in, top var(--dv-transition-duration) ease-out, left var(--dv-transition-duration) ease-out, width var(--dv-transition-duration) ease-out, height var(--dv-transition-duration) ease-out;
|
|
716
|
+
}
|
|
717
|
+
.dv-drop-target {
|
|
718
|
+
position: relative;
|
|
719
|
+
--dv-transition-duration: 70ms;
|
|
720
|
+
}
|
|
721
|
+
.dv-drop-target > .dv-drop-target-dropzone {
|
|
722
|
+
position: absolute;
|
|
723
|
+
left: 0px;
|
|
724
|
+
top: 0px;
|
|
725
|
+
height: 100%;
|
|
726
|
+
width: 100%;
|
|
727
|
+
z-index: 1000;
|
|
728
|
+
pointer-events: none;
|
|
729
|
+
}
|
|
730
|
+
.dv-drop-target > .dv-drop-target-dropzone > .dv-drop-target-selection {
|
|
731
|
+
position: relative;
|
|
732
|
+
box-sizing: border-box;
|
|
733
|
+
height: 100%;
|
|
734
|
+
width: 100%;
|
|
735
|
+
border: var(--dv-drag-over-border);
|
|
736
|
+
background-color: var(--dv-drag-over-background-color);
|
|
737
|
+
transition: top var(--dv-transition-duration) ease-out, left var(--dv-transition-duration) ease-out, width var(--dv-transition-duration) ease-out, height var(--dv-transition-duration) ease-out, opacity var(--dv-transition-duration) ease-out;
|
|
738
|
+
will-change: transform;
|
|
739
|
+
pointer-events: none;
|
|
740
|
+
}
|
|
741
|
+
.dv-drop-target > .dv-drop-target-dropzone > .dv-drop-target-selection.dv-drop-target-top.dv-drop-target-small-vertical {
|
|
742
|
+
border-top: 1px solid var(--dv-drag-over-border-color);
|
|
743
|
+
}
|
|
744
|
+
.dv-drop-target > .dv-drop-target-dropzone > .dv-drop-target-selection.dv-drop-target-bottom.dv-drop-target-small-vertical {
|
|
745
|
+
border-bottom: 1px solid var(--dv-drag-over-border-color);
|
|
746
|
+
}
|
|
747
|
+
.dv-drop-target > .dv-drop-target-dropzone > .dv-drop-target-selection.dv-drop-target-left.dv-drop-target-small-horizontal {
|
|
748
|
+
border-left: 1px solid var(--dv-drag-over-border-color);
|
|
749
|
+
}
|
|
750
|
+
.dv-drop-target > .dv-drop-target-dropzone > .dv-drop-target-selection.dv-drop-target-right.dv-drop-target-small-horizontal {
|
|
751
|
+
border-right: 1px solid var(--dv-drag-over-border-color);
|
|
752
|
+
}
|
|
753
|
+
.dv-dockview {
|
|
754
|
+
position: relative;
|
|
755
|
+
background-color: var(--dv-group-view-background-color);
|
|
756
|
+
contain: layout;
|
|
757
|
+
}
|
|
758
|
+
.dv-dockview .dv-watermark-container {
|
|
759
|
+
position: absolute;
|
|
760
|
+
top: 0px;
|
|
761
|
+
left: 0px;
|
|
762
|
+
height: 100%;
|
|
763
|
+
width: 100%;
|
|
764
|
+
z-index: 1;
|
|
765
|
+
}
|
|
766
|
+
.dv-dockview .dv-overlay-render-container {
|
|
767
|
+
position: relative;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab {
|
|
771
|
+
background-color: var(--dv-activegroup-visiblepanel-tab-background-color);
|
|
772
|
+
color: var(--dv-activegroup-visiblepanel-tab-color);
|
|
773
|
+
}
|
|
774
|
+
.dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-inactive-tab {
|
|
775
|
+
background-color: var(--dv-activegroup-hiddenpanel-tab-background-color);
|
|
776
|
+
color: var(--dv-activegroup-hiddenpanel-tab-color);
|
|
777
|
+
}
|
|
778
|
+
.dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab {
|
|
779
|
+
background-color: var(--dv-inactivegroup-visiblepanel-tab-background-color);
|
|
780
|
+
color: var(--dv-inactivegroup-visiblepanel-tab-color);
|
|
781
|
+
}
|
|
782
|
+
.dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-inactive-tab {
|
|
783
|
+
background-color: var(--dv-inactivegroup-hiddenpanel-tab-background-color);
|
|
784
|
+
color: var(--dv-inactivegroup-hiddenpanel-tab-color);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* when a tab is dragged we lose the above stylings because they are conditional on parent elements
|
|
789
|
+
* therefore we also set some stylings for the dragging event
|
|
790
|
+
**/
|
|
791
|
+
.dv-tab.dv-tab-dragging {
|
|
792
|
+
background-color: var(--dv-activegroup-visiblepanel-tab-background-color);
|
|
793
|
+
color: var(--dv-activegroup-visiblepanel-tab-color);
|
|
794
|
+
}
|
|
795
|
+
.dv-groupview {
|
|
796
|
+
display: flex;
|
|
797
|
+
height: 100%;
|
|
798
|
+
background-color: var(--dv-group-view-background-color);
|
|
799
|
+
overflow: hidden;
|
|
800
|
+
flex-direction: column;
|
|
801
|
+
}
|
|
802
|
+
.dv-groupview:focus {
|
|
803
|
+
outline: none;
|
|
804
|
+
}
|
|
805
|
+
.dv-groupview > .dv-content-container {
|
|
806
|
+
flex-grow: 1;
|
|
807
|
+
min-height: 0;
|
|
808
|
+
outline: none;
|
|
809
|
+
}
|
|
810
|
+
.dv-groupview.dv-groupview-header-bottom {
|
|
811
|
+
flex-direction: column-reverse;
|
|
812
|
+
}
|
|
813
|
+
.dv-groupview.dv-groupview-header-left {
|
|
814
|
+
flex-direction: row;
|
|
815
|
+
}
|
|
816
|
+
.dv-groupview.dv-groupview-header-right {
|
|
817
|
+
flex-direction: row-reverse;
|
|
818
|
+
}
|
|
819
|
+
.dv-root-wrapper {
|
|
820
|
+
height: 100%;
|
|
821
|
+
width: 100%;
|
|
822
|
+
}
|
|
823
|
+
.dv-grid-view,
|
|
824
|
+
.dv-branch-node {
|
|
825
|
+
height: 100%;
|
|
826
|
+
width: 100%;
|
|
827
|
+
}
|
|
828
|
+
.dv-debug .dv-resize-container .dv-resize-handle-top {
|
|
829
|
+
background-color: red;
|
|
830
|
+
}
|
|
831
|
+
.dv-debug .dv-resize-container .dv-resize-handle-bottom {
|
|
832
|
+
background-color: green;
|
|
833
|
+
}
|
|
834
|
+
.dv-debug .dv-resize-container .dv-resize-handle-left {
|
|
835
|
+
background-color: yellow;
|
|
836
|
+
}
|
|
837
|
+
.dv-debug .dv-resize-container .dv-resize-handle-right {
|
|
838
|
+
background-color: blue;
|
|
839
|
+
}
|
|
840
|
+
.dv-debug .dv-resize-container .dv-resize-handle-topleft,
|
|
841
|
+
.dv-debug .dv-resize-container .dv-resize-handle-topright,
|
|
842
|
+
.dv-debug .dv-resize-container .dv-resize-handle-bottomleft,
|
|
843
|
+
.dv-debug .dv-resize-container .dv-resize-handle-bottomright {
|
|
844
|
+
background-color: cyan;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.dv-resize-container {
|
|
848
|
+
--dv-overlay-z-index: var(--dv-overlay-z-index, 999);
|
|
849
|
+
position: absolute;
|
|
850
|
+
z-index: calc(var(--dv-overlay-z-index) - 2);
|
|
851
|
+
border: 1px solid var(--dv-tab-divider-color);
|
|
852
|
+
box-shadow: var(--dv-floating-box-shadow);
|
|
853
|
+
/* GPU optimizations for floating group movement */
|
|
854
|
+
will-change: transform, opacity;
|
|
855
|
+
transform: translate3d(0, 0, 0);
|
|
856
|
+
backface-visibility: hidden;
|
|
857
|
+
}
|
|
858
|
+
.dv-resize-container.dv-hidden {
|
|
859
|
+
display: none;
|
|
860
|
+
}
|
|
861
|
+
.dv-resize-container.dv-resize-container-dragging {
|
|
862
|
+
opacity: 0.5;
|
|
863
|
+
/* Enhanced GPU acceleration during drag */
|
|
864
|
+
will-change: transform, opacity;
|
|
865
|
+
}
|
|
866
|
+
.dv-resize-container .dv-resize-handle-top {
|
|
867
|
+
height: 4px;
|
|
868
|
+
width: calc(100% - 8px);
|
|
869
|
+
left: 4px;
|
|
870
|
+
top: -2px;
|
|
871
|
+
z-index: var(--dv-overlay-z-index);
|
|
872
|
+
position: absolute;
|
|
873
|
+
cursor: ns-resize;
|
|
874
|
+
}
|
|
875
|
+
.dv-resize-container .dv-resize-handle-bottom {
|
|
876
|
+
height: 4px;
|
|
877
|
+
width: calc(100% - 8px);
|
|
878
|
+
left: 4px;
|
|
879
|
+
bottom: -2px;
|
|
880
|
+
z-index: var(--dv-overlay-z-index);
|
|
881
|
+
position: absolute;
|
|
882
|
+
cursor: ns-resize;
|
|
883
|
+
}
|
|
884
|
+
.dv-resize-container .dv-resize-handle-left {
|
|
885
|
+
height: calc(100% - 8px);
|
|
886
|
+
width: 4px;
|
|
887
|
+
left: -2px;
|
|
888
|
+
top: 4px;
|
|
889
|
+
z-index: var(--dv-overlay-z-index);
|
|
890
|
+
position: absolute;
|
|
891
|
+
cursor: ew-resize;
|
|
892
|
+
}
|
|
893
|
+
.dv-resize-container .dv-resize-handle-right {
|
|
894
|
+
height: calc(100% - 8px);
|
|
895
|
+
width: 4px;
|
|
896
|
+
right: -2px;
|
|
897
|
+
top: 4px;
|
|
898
|
+
z-index: var(--dv-overlay-z-index);
|
|
899
|
+
position: absolute;
|
|
900
|
+
cursor: ew-resize;
|
|
901
|
+
}
|
|
902
|
+
.dv-resize-container .dv-resize-handle-topleft {
|
|
903
|
+
height: 4px;
|
|
904
|
+
width: 4px;
|
|
905
|
+
top: -2px;
|
|
906
|
+
left: -2px;
|
|
907
|
+
z-index: var(--dv-overlay-z-index);
|
|
908
|
+
position: absolute;
|
|
909
|
+
cursor: nw-resize;
|
|
910
|
+
}
|
|
911
|
+
.dv-resize-container .dv-resize-handle-topright {
|
|
912
|
+
height: 4px;
|
|
913
|
+
width: 4px;
|
|
914
|
+
right: -2px;
|
|
915
|
+
top: -2px;
|
|
916
|
+
z-index: var(--dv-overlay-z-index);
|
|
917
|
+
position: absolute;
|
|
918
|
+
cursor: ne-resize;
|
|
919
|
+
}
|
|
920
|
+
.dv-resize-container .dv-resize-handle-bottomleft {
|
|
921
|
+
height: 4px;
|
|
922
|
+
width: 4px;
|
|
923
|
+
left: -2px;
|
|
924
|
+
bottom: -2px;
|
|
925
|
+
z-index: var(--dv-overlay-z-index);
|
|
926
|
+
position: absolute;
|
|
927
|
+
cursor: sw-resize;
|
|
928
|
+
}
|
|
929
|
+
.dv-resize-container .dv-resize-handle-bottomright {
|
|
930
|
+
height: 4px;
|
|
931
|
+
width: 4px;
|
|
932
|
+
right: -2px;
|
|
933
|
+
bottom: -2px;
|
|
934
|
+
z-index: var(--dv-overlay-z-index);
|
|
935
|
+
position: absolute;
|
|
936
|
+
cursor: se-resize;
|
|
937
|
+
}
|
|
938
|
+
.dv-render-overlay {
|
|
939
|
+
--dv-overlay-z-index: var(--dv-overlay-z-index, 999);
|
|
940
|
+
position: absolute;
|
|
941
|
+
z-index: 1;
|
|
942
|
+
width: 100%;
|
|
943
|
+
height: 100%;
|
|
944
|
+
contain: layout paint;
|
|
945
|
+
isolation: isolate;
|
|
946
|
+
/* GPU optimizations */
|
|
947
|
+
will-change: transform;
|
|
948
|
+
transform: translate3d(0, 0, 0);
|
|
949
|
+
backface-visibility: hidden;
|
|
950
|
+
}
|
|
951
|
+
.dv-render-overlay.dv-render-overlay-float {
|
|
952
|
+
z-index: calc(var(--dv-overlay-z-index) - 1);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
.dv-debug .dv-render-overlay {
|
|
956
|
+
outline: 1px solid red;
|
|
957
|
+
outline-offset: -1;
|
|
958
|
+
}
|
|
959
|
+
.dv-pane-container {
|
|
960
|
+
height: 100%;
|
|
961
|
+
width: 100%;
|
|
962
|
+
}
|
|
963
|
+
.dv-pane-container.dv-animated .dv-view {
|
|
964
|
+
/* GPU optimizations for smooth pane animations */
|
|
965
|
+
will-change: transform;
|
|
966
|
+
transform: translate3d(0, 0, 0);
|
|
967
|
+
backface-visibility: hidden;
|
|
968
|
+
transition: transform 0.15s ease-out;
|
|
969
|
+
}
|
|
970
|
+
.dv-pane-container .dv-view {
|
|
971
|
+
overflow: hidden;
|
|
972
|
+
display: flex;
|
|
973
|
+
flex-direction: column;
|
|
974
|
+
padding: 0px !important;
|
|
975
|
+
}
|
|
976
|
+
.dv-pane-container .dv-view:not(:first-child)::before {
|
|
977
|
+
background-color: transparent !important;
|
|
978
|
+
}
|
|
979
|
+
.dv-pane-container .dv-view:not(:first-child) .dv-pane > .dv-pane-header {
|
|
980
|
+
border-top: 1px solid var(--dv-paneview-header-border-color);
|
|
981
|
+
}
|
|
982
|
+
.dv-pane-container .dv-view .dv-default-header {
|
|
983
|
+
background-color: var(--dv-group-view-background-color);
|
|
984
|
+
color: var(--dv-activegroup-visiblepanel-tab-color);
|
|
985
|
+
display: flex;
|
|
986
|
+
padding: 0px 8px;
|
|
987
|
+
cursor: pointer;
|
|
988
|
+
}
|
|
989
|
+
.dv-pane-container .dv-view .dv-default-header .dv-pane-header-icon {
|
|
990
|
+
display: flex;
|
|
991
|
+
justify-content: center;
|
|
992
|
+
align-items: center;
|
|
993
|
+
}
|
|
994
|
+
.dv-pane-container .dv-view .dv-default-header > span {
|
|
995
|
+
padding-left: 8px;
|
|
996
|
+
flex-grow: 1;
|
|
997
|
+
}
|
|
998
|
+
.dv-pane-container:first-of-type > .dv-pane > .dv-pane-header {
|
|
999
|
+
border-top: none !important;
|
|
1000
|
+
}
|
|
1001
|
+
.dv-pane-container .dv-pane {
|
|
1002
|
+
display: flex;
|
|
1003
|
+
flex-direction: column;
|
|
1004
|
+
overflow: hidden;
|
|
1005
|
+
height: 100%;
|
|
1006
|
+
}
|
|
1007
|
+
.dv-pane-container .dv-pane .dv-pane-header {
|
|
1008
|
+
box-sizing: border-box;
|
|
1009
|
+
user-select: none;
|
|
1010
|
+
position: relative;
|
|
1011
|
+
outline: none;
|
|
1012
|
+
}
|
|
1013
|
+
.dv-pane-container .dv-pane .dv-pane-header.dv-pane-draggable {
|
|
1014
|
+
cursor: pointer;
|
|
1015
|
+
}
|
|
1016
|
+
.dv-pane-container .dv-pane .dv-pane-header:focus:before, .dv-pane-container .dv-pane .dv-pane-header:focus-within:before {
|
|
1017
|
+
position: absolute;
|
|
1018
|
+
top: 0;
|
|
1019
|
+
left: 0;
|
|
1020
|
+
width: 100%;
|
|
1021
|
+
height: 100%;
|
|
1022
|
+
z-index: 5;
|
|
1023
|
+
content: "";
|
|
1024
|
+
pointer-events: none;
|
|
1025
|
+
outline: 1px solid;
|
|
1026
|
+
outline-width: -1px;
|
|
1027
|
+
outline-style: solid;
|
|
1028
|
+
outline-offset: -1px;
|
|
1029
|
+
outline-color: var(--dv-paneview-active-outline-color);
|
|
1030
|
+
}
|
|
1031
|
+
.dv-pane-container .dv-pane .dv-pane-body {
|
|
1032
|
+
overflow-y: auto;
|
|
1033
|
+
overflow-x: hidden;
|
|
1034
|
+
flex-grow: 1;
|
|
1035
|
+
position: relative;
|
|
1036
|
+
outline: none;
|
|
1037
|
+
}
|
|
1038
|
+
.dv-pane-container .dv-pane .dv-pane-body:focus:before, .dv-pane-container .dv-pane .dv-pane-body:focus-within:before {
|
|
1039
|
+
position: absolute;
|
|
1040
|
+
top: 0;
|
|
1041
|
+
left: 0;
|
|
1042
|
+
width: 100%;
|
|
1043
|
+
height: 100%;
|
|
1044
|
+
z-index: 5;
|
|
1045
|
+
content: "";
|
|
1046
|
+
pointer-events: none;
|
|
1047
|
+
outline: 1px solid;
|
|
1048
|
+
outline-width: -1px;
|
|
1049
|
+
outline-style: solid;
|
|
1050
|
+
outline-offset: -1px;
|
|
1051
|
+
outline-color: var(--dv-paneview-active-outline-color);
|
|
1052
|
+
}
|
|
1053
|
+
.dv-debug .dv-split-view-container .dv-sash-container .dv-sash.dv-enabled {
|
|
1054
|
+
background-color: black;
|
|
1055
|
+
}
|
|
1056
|
+
.dv-debug .dv-split-view-container .dv-sash-container .dv-sash.dv-disabled {
|
|
1057
|
+
background-color: orange;
|
|
1058
|
+
}
|
|
1059
|
+
.dv-debug .dv-split-view-container .dv-sash-container .dv-sash.dv-maximum {
|
|
1060
|
+
background-color: green;
|
|
1061
|
+
}
|
|
1062
|
+
.dv-debug .dv-split-view-container .dv-sash-container .dv-sash.dv-minimum {
|
|
1063
|
+
background-color: red;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.dv-split-view-container {
|
|
1067
|
+
position: relative;
|
|
1068
|
+
overflow: hidden;
|
|
1069
|
+
height: 100%;
|
|
1070
|
+
width: 100%;
|
|
1071
|
+
}
|
|
1072
|
+
.dv-split-view-container.dv-splitview-disabled > .dv-sash-container > .dv-sash {
|
|
1073
|
+
pointer-events: none;
|
|
1074
|
+
}
|
|
1075
|
+
.dv-split-view-container.dv-animation .dv-view,
|
|
1076
|
+
.dv-split-view-container.dv-animation .dv-sash {
|
|
1077
|
+
/* GPU optimizations for smooth animations */
|
|
1078
|
+
will-change: transform;
|
|
1079
|
+
transform: translate3d(0, 0, 0);
|
|
1080
|
+
backface-visibility: hidden;
|
|
1081
|
+
transition: transform 0.15s ease-out;
|
|
1082
|
+
}
|
|
1083
|
+
.dv-split-view-container.dv-horizontal {
|
|
1084
|
+
height: 100%;
|
|
1085
|
+
}
|
|
1086
|
+
.dv-split-view-container.dv-horizontal > .dv-sash-container > .dv-sash {
|
|
1087
|
+
height: 100%;
|
|
1088
|
+
width: 4px;
|
|
1089
|
+
}
|
|
1090
|
+
.dv-split-view-container.dv-horizontal > .dv-sash-container > .dv-sash.dv-enabled {
|
|
1091
|
+
cursor: ew-resize;
|
|
1092
|
+
}
|
|
1093
|
+
.dv-split-view-container.dv-horizontal > .dv-sash-container > .dv-sash.dv-disabled {
|
|
1094
|
+
cursor: default;
|
|
1095
|
+
}
|
|
1096
|
+
.dv-split-view-container.dv-horizontal > .dv-sash-container > .dv-sash.dv-maximum {
|
|
1097
|
+
cursor: w-resize;
|
|
1098
|
+
}
|
|
1099
|
+
.dv-split-view-container.dv-horizontal > .dv-sash-container > .dv-sash.dv-minimum {
|
|
1100
|
+
cursor: e-resize;
|
|
1101
|
+
}
|
|
1102
|
+
.dv-split-view-container.dv-horizontal > .dv-view-container > .dv-view:not(:first-child)::before {
|
|
1103
|
+
height: 100%;
|
|
1104
|
+
width: 1px;
|
|
1105
|
+
}
|
|
1106
|
+
.dv-split-view-container.dv-vertical {
|
|
1107
|
+
width: 100%;
|
|
1108
|
+
}
|
|
1109
|
+
.dv-split-view-container.dv-vertical > .dv-sash-container > .dv-sash {
|
|
1110
|
+
width: 100%;
|
|
1111
|
+
height: 4px;
|
|
1112
|
+
}
|
|
1113
|
+
.dv-split-view-container.dv-vertical > .dv-sash-container > .dv-sash.dv-enabled {
|
|
1114
|
+
cursor: ns-resize;
|
|
1115
|
+
}
|
|
1116
|
+
.dv-split-view-container.dv-vertical > .dv-sash-container > .dv-sash.dv-disabled {
|
|
1117
|
+
cursor: default;
|
|
1118
|
+
}
|
|
1119
|
+
.dv-split-view-container.dv-vertical > .dv-sash-container > .dv-sash.dv-maximum {
|
|
1120
|
+
cursor: n-resize;
|
|
1121
|
+
}
|
|
1122
|
+
.dv-split-view-container.dv-vertical > .dv-sash-container > .dv-sash.dv-minimum {
|
|
1123
|
+
cursor: s-resize;
|
|
1124
|
+
}
|
|
1125
|
+
.dv-split-view-container.dv-vertical > .dv-view-container > .dv-view {
|
|
1126
|
+
width: 100%;
|
|
1127
|
+
}
|
|
1128
|
+
.dv-split-view-container.dv-vertical > .dv-view-container > .dv-view:not(:first-child)::before {
|
|
1129
|
+
height: 1px;
|
|
1130
|
+
width: 100%;
|
|
1131
|
+
}
|
|
1132
|
+
.dv-split-view-container .dv-sash-container {
|
|
1133
|
+
height: 100%;
|
|
1134
|
+
width: 100%;
|
|
1135
|
+
position: absolute;
|
|
1136
|
+
}
|
|
1137
|
+
.dv-split-view-container .dv-sash-container .dv-sash {
|
|
1138
|
+
position: absolute;
|
|
1139
|
+
z-index: 99;
|
|
1140
|
+
outline: none;
|
|
1141
|
+
user-select: none;
|
|
1142
|
+
-webkit-user-select: none;
|
|
1143
|
+
-moz-user-select: none;
|
|
1144
|
+
-ms-user-select: none;
|
|
1145
|
+
touch-action: none;
|
|
1146
|
+
background-color: var(--dv-sash-color, transparent);
|
|
1147
|
+
}
|
|
1148
|
+
.dv-split-view-container .dv-sash-container .dv-sash:not(.disabled):active, .dv-split-view-container .dv-sash-container .dv-sash:not(.disabled):hover {
|
|
1149
|
+
background-color: var(--dv-active-sash-color, transparent);
|
|
1150
|
+
transition-property: background-color;
|
|
1151
|
+
transition-timing-function: ease-in-out;
|
|
1152
|
+
transition-duration: var(--dv-active-sash-transition-duration, 0.1s);
|
|
1153
|
+
transition-delay: var(--dv-active-sash-transition-delay, 0.5s);
|
|
1154
|
+
}
|
|
1155
|
+
.dv-split-view-container .dv-view-container {
|
|
1156
|
+
position: relative;
|
|
1157
|
+
height: 100%;
|
|
1158
|
+
width: 100%;
|
|
1159
|
+
}
|
|
1160
|
+
.dv-split-view-container .dv-view-container .dv-view {
|
|
1161
|
+
height: 100%;
|
|
1162
|
+
box-sizing: border-box;
|
|
1163
|
+
overflow: auto;
|
|
1164
|
+
position: absolute;
|
|
1165
|
+
}
|
|
1166
|
+
.dv-split-view-container.dv-separator-border .dv-view:not(:first-child)::before {
|
|
1167
|
+
content: " ";
|
|
1168
|
+
position: absolute;
|
|
1169
|
+
top: 0;
|
|
1170
|
+
left: 0;
|
|
1171
|
+
z-index: 5;
|
|
1172
|
+
pointer-events: none;
|
|
1173
|
+
background-color: var(--dv-separator-border);
|
|
1174
|
+
}
|
|
1175
|
+
.dv-dragged {
|
|
1176
|
+
transform: translate3d(0px, 0px, 0px); /* forces tab to be drawn on a separate layer (see https://github.com/microsoft/vscode/issues/18733) */
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
.dv-tab {
|
|
1180
|
+
flex-shrink: 0;
|
|
1181
|
+
}
|
|
1182
|
+
.dv-tab:focus-within, .dv-tab:focus {
|
|
1183
|
+
position: relative;
|
|
1184
|
+
}
|
|
1185
|
+
.dv-tab:focus-within::after, .dv-tab:focus::after {
|
|
1186
|
+
position: absolute;
|
|
1187
|
+
content: "";
|
|
1188
|
+
height: 100%;
|
|
1189
|
+
width: 100%;
|
|
1190
|
+
top: 0px;
|
|
1191
|
+
left: 0px;
|
|
1192
|
+
pointer-events: none;
|
|
1193
|
+
outline: 1px solid var(--dv-tab-divider-color) !important;
|
|
1194
|
+
outline-offset: -1px;
|
|
1195
|
+
z-index: 5;
|
|
1196
|
+
}
|
|
1197
|
+
.dv-tab.dv-tab-dragging .dv-default-tab-action {
|
|
1198
|
+
background-color: var(--dv-activegroup-visiblepanel-tab-color);
|
|
1199
|
+
}
|
|
1200
|
+
.dv-tab.dv-active-tab .dv-default-tab .dv-default-tab-action {
|
|
1201
|
+
visibility: visible;
|
|
1202
|
+
}
|
|
1203
|
+
.dv-tab.dv-inactive-tab .dv-default-tab .dv-default-tab-action {
|
|
1204
|
+
visibility: hidden;
|
|
1205
|
+
}
|
|
1206
|
+
.dv-tab.dv-inactive-tab .dv-default-tab:hover .dv-default-tab-action {
|
|
1207
|
+
visibility: visible;
|
|
1208
|
+
}
|
|
1209
|
+
.dv-tab .dv-default-tab {
|
|
1210
|
+
position: relative;
|
|
1211
|
+
height: 100%;
|
|
1212
|
+
width: 100%;
|
|
1213
|
+
display: flex;
|
|
1214
|
+
align-items: center;
|
|
1215
|
+
white-space: nowrap;
|
|
1216
|
+
text-overflow: ellipsis;
|
|
1217
|
+
}
|
|
1218
|
+
.dv-tab .dv-default-tab .dv-default-tab-content {
|
|
1219
|
+
flex-grow: 1;
|
|
1220
|
+
margin-right: 4px;
|
|
1221
|
+
}
|
|
1222
|
+
.dv-tab .dv-default-tab .dv-default-tab-action {
|
|
1223
|
+
padding: 4px;
|
|
1224
|
+
display: flex;
|
|
1225
|
+
align-items: center;
|
|
1226
|
+
justify-content: center;
|
|
1227
|
+
box-sizing: border-box;
|
|
1228
|
+
}
|
|
1229
|
+
.dv-tab .dv-default-tab .dv-default-tab-action:hover {
|
|
1230
|
+
border-radius: 2px;
|
|
1231
|
+
background-color: var(--dv-icon-hover-background-color);
|
|
1232
|
+
}
|
|
1233
|
+
.dv-tabs-overflow-dropdown-default {
|
|
1234
|
+
height: 100%;
|
|
1235
|
+
color: var(--dv-activegroup-hiddenpanel-tab-color);
|
|
1236
|
+
margin: var(--dv-tab-margin);
|
|
1237
|
+
display: flex;
|
|
1238
|
+
align-items: center;
|
|
1239
|
+
flex-shrink: 0;
|
|
1240
|
+
padding: 0.25rem 0.5rem;
|
|
1241
|
+
cursor: pointer;
|
|
1242
|
+
}
|
|
1243
|
+
.dv-tabs-overflow-dropdown-default > span {
|
|
1244
|
+
padding-left: 0.25rem;
|
|
1245
|
+
}
|
|
1246
|
+
.dv-tabs-overflow-dropdown-default > svg {
|
|
1247
|
+
transform: rotate(90deg);
|
|
1248
|
+
}
|
|
1249
|
+
.dv-tabs-overflow-dropdown-default:hover {
|
|
1250
|
+
border-radius: 2px;
|
|
1251
|
+
background-color: var(--dv-icon-hover-background-color);
|
|
1252
|
+
}
|
|
1253
|
+
.dv-tabs-container {
|
|
1254
|
+
display: flex;
|
|
1255
|
+
height: 100%;
|
|
1256
|
+
overflow: auto;
|
|
1257
|
+
scrollbar-width: thin;
|
|
1258
|
+
/* GPU optimizations for smooth scrolling */
|
|
1259
|
+
will-change: scroll-position;
|
|
1260
|
+
transform: translate3d(0, 0, 0);
|
|
1261
|
+
/* Track */
|
|
1262
|
+
/* Handle */
|
|
1263
|
+
}
|
|
1264
|
+
.dv-tabs-container.dv-tabs-container-vertical {
|
|
1265
|
+
width: 100%;
|
|
1266
|
+
height: fit-content;
|
|
1267
|
+
max-height: 100%;
|
|
1268
|
+
writing-mode: vertical-rl;
|
|
1269
|
+
}
|
|
1270
|
+
.dv-tabs-container.dv-horizontal .dv-tab:not(:first-child)::before, .dv-tabs-container.dv-vertical .dv-tab:not(:first-child)::before {
|
|
1271
|
+
content: " ";
|
|
1272
|
+
position: absolute;
|
|
1273
|
+
top: 0;
|
|
1274
|
+
left: 0;
|
|
1275
|
+
z-index: 5;
|
|
1276
|
+
pointer-events: none;
|
|
1277
|
+
background-color: var(--dv-tab-divider-color);
|
|
1278
|
+
}
|
|
1279
|
+
.dv-tabs-container.dv-horizontal .dv-tab:not(:first-child)::before {
|
|
1280
|
+
width: 1px;
|
|
1281
|
+
height: 100%;
|
|
1282
|
+
}
|
|
1283
|
+
.dv-tabs-container.dv-vertical .dv-tab:not(:first-child)::before {
|
|
1284
|
+
width: 100%;
|
|
1285
|
+
height: 1px;
|
|
1286
|
+
}
|
|
1287
|
+
.dv-tabs-container::-webkit-scrollbar {
|
|
1288
|
+
height: 3px;
|
|
1289
|
+
}
|
|
1290
|
+
.dv-tabs-container::-webkit-scrollbar-track {
|
|
1291
|
+
background: transparent;
|
|
1292
|
+
}
|
|
1293
|
+
.dv-tabs-container::-webkit-scrollbar-thumb {
|
|
1294
|
+
background: var(--dv-tabs-container-scrollbar-color);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
.dv-scrollable > .dv-tabs-container {
|
|
1298
|
+
overflow: hidden;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
.dv-tab {
|
|
1302
|
+
-webkit-user-drag: element;
|
|
1303
|
+
outline: none;
|
|
1304
|
+
padding: 0.25rem 0.5rem;
|
|
1305
|
+
cursor: pointer;
|
|
1306
|
+
position: relative;
|
|
1307
|
+
box-sizing: border-box;
|
|
1308
|
+
font-size: var(--dv-tab-font-size);
|
|
1309
|
+
margin: var(--dv-tab-margin);
|
|
1310
|
+
}
|
|
1311
|
+
.dv-tab.dv-tab--shifting {
|
|
1312
|
+
will-change: margin-left;
|
|
1313
|
+
transition: transform var(--dv-transition-duration, 200ms) ease-out, margin-left var(--dv-transition-duration, 200ms) ease-out;
|
|
1314
|
+
}
|
|
1315
|
+
.dv-tab.dv-tab--dragging {
|
|
1316
|
+
width: 0 !important;
|
|
1317
|
+
min-width: 0 !important;
|
|
1318
|
+
padding: 0 !important;
|
|
1319
|
+
margin: 0 !important;
|
|
1320
|
+
overflow: hidden;
|
|
1321
|
+
opacity: 0;
|
|
1322
|
+
pointer-events: none;
|
|
1323
|
+
transition: width var(--dv-transition-duration, 200ms) ease-out, padding var(--dv-transition-duration, 200ms) ease-out, margin var(--dv-transition-duration, 200ms) ease-out, opacity var(--dv-transition-duration, 200ms) ease-out;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1327
|
+
.dv-tab {
|
|
1328
|
+
transition: none !important;
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
.dv-tabs-container-vertical .dv-tab {
|
|
1332
|
+
padding: 0.5rem 0.25rem;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
.dv-tabs-overflow-container {
|
|
1336
|
+
flex-direction: column;
|
|
1337
|
+
height: unset;
|
|
1338
|
+
font-size: var(--dv-tabs-and-actions-container-font-size);
|
|
1339
|
+
max-height: min(50vh, 400px);
|
|
1340
|
+
overflow-y: auto;
|
|
1341
|
+
border: 1px solid var(--dv-tab-divider-color);
|
|
1342
|
+
background-color: var(--dv-group-view-background-color);
|
|
1343
|
+
/* Scrollbar styling for webkit browsers */
|
|
1344
|
+
/* Firefox scrollbar */
|
|
1345
|
+
scrollbar-width: thin;
|
|
1346
|
+
}
|
|
1347
|
+
.dv-tabs-overflow-container::-webkit-scrollbar {
|
|
1348
|
+
width: 6px;
|
|
1349
|
+
}
|
|
1350
|
+
.dv-tabs-overflow-container::-webkit-scrollbar-track {
|
|
1351
|
+
background: transparent;
|
|
1352
|
+
}
|
|
1353
|
+
.dv-tabs-overflow-container::-webkit-scrollbar-thumb {
|
|
1354
|
+
background: var(--dv-tabs-container-scrollbar-color);
|
|
1355
|
+
border-radius: 3px;
|
|
1356
|
+
}
|
|
1357
|
+
.dv-tabs-overflow-container .dv-tab:not(:last-child) {
|
|
1358
|
+
border-bottom: 1px solid var(--dv-tab-divider-color);
|
|
1359
|
+
}
|
|
1360
|
+
.dv-tabs-overflow-container .dv-active-tab {
|
|
1361
|
+
background-color: var(--dv-activegroup-visiblepanel-tab-background-color);
|
|
1362
|
+
color: var(--dv-activegroup-visiblepanel-tab-color);
|
|
1363
|
+
}
|
|
1364
|
+
.dv-tabs-overflow-container .dv-inactive-tab {
|
|
1365
|
+
background-color: var(--dv-activegroup-hiddenpanel-tab-background-color);
|
|
1366
|
+
color: var(--dv-activegroup-hiddenpanel-tab-color);
|
|
1367
|
+
}
|
|
1368
|
+
.dv-tabs-and-actions-container {
|
|
1369
|
+
display: flex;
|
|
1370
|
+
background-color: var(--dv-tabs-and-actions-container-background-color);
|
|
1371
|
+
flex-shrink: 0;
|
|
1372
|
+
box-sizing: border-box;
|
|
1373
|
+
height: var(--dv-tabs-and-actions-container-height);
|
|
1374
|
+
font-size: var(--dv-tabs-and-actions-container-font-size);
|
|
1375
|
+
}
|
|
1376
|
+
.dv-tabs-and-actions-container.dv-single-tab.dv-full-width-single-tab .dv-scrollable {
|
|
1377
|
+
flex-grow: 1;
|
|
1378
|
+
}
|
|
1379
|
+
.dv-tabs-and-actions-container.dv-single-tab.dv-full-width-single-tab .dv-tabs-container {
|
|
1380
|
+
flex-grow: 1;
|
|
1381
|
+
}
|
|
1382
|
+
.dv-tabs-and-actions-container.dv-single-tab.dv-full-width-single-tab .dv-tabs-container .dv-tab {
|
|
1383
|
+
flex-grow: 1;
|
|
1384
|
+
padding: 0px;
|
|
1385
|
+
}
|
|
1386
|
+
.dv-tabs-and-actions-container.dv-single-tab.dv-full-width-single-tab .dv-void-container {
|
|
1387
|
+
flex-grow: 0;
|
|
1388
|
+
}
|
|
1389
|
+
.dv-tabs-and-actions-container .dv-void-container {
|
|
1390
|
+
display: flex;
|
|
1391
|
+
flex-grow: 1;
|
|
1392
|
+
}
|
|
1393
|
+
.dv-tabs-and-actions-container .dv-void-container.dv-draggable {
|
|
1394
|
+
cursor: grab;
|
|
1395
|
+
}
|
|
1396
|
+
.dv-tabs-and-actions-container .dv-right-actions-container {
|
|
1397
|
+
display: flex;
|
|
1398
|
+
}
|
|
1399
|
+
.dv-tabs-and-actions-container .dv-right-actions-container.dv-right-actions-container-vertical {
|
|
1400
|
+
flex-direction: column;
|
|
1401
|
+
}
|
|
1402
|
+
.dv-tabs-and-actions-container.dv-groupview-header-vertical {
|
|
1403
|
+
flex-direction: column;
|
|
1404
|
+
height: auto;
|
|
1405
|
+
width: var(--dv-tabs-and-actions-container-height);
|
|
1406
|
+
}
|
|
1407
|
+
.dv-watermark {
|
|
1408
|
+
display: flex;
|
|
1409
|
+
height: 100%;
|
|
1410
|
+
}`;gA(bA);class $w{}class ai extends $w{constructor(t,n,i){super(),this.viewId=t,this.groupId=n,this.panelId=i}}class So extends $w{constructor(t,n){super(),this.viewId=t,this.paneId=n}}class xn{constructor(){}static getInstance(){return xn.INSTANCE}hasData(t){return t&&t===this.proto}clearData(t){this.hasData(t)&&(this.proto=void 0,this.data=void 0)}getData(t){if(this.hasData(t))return this.data}setData(t,n){n&&(this.data=t,this.proto=n)}}xn.INSTANCE=new xn;function st(){const e=xn.getInstance();if(e.hasData(ai.prototype))return e.getData(ai.prototype)[0]}function oo(){const e=xn.getInstance();if(e.hasData(So.prototype))return e.getData(So.prototype)[0]}var Ni;(function(e){e.any=(...t)=>n=>{const i=t.map(r=>r(n));return{dispose:()=>{i.forEach(r=>{r.dispose()})}}}})(Ni||(Ni={}));class sh{constructor(){this._defaultPrevented=!1}get defaultPrevented(){return this._defaultPrevented}preventDefault(){this._defaultPrevented=!0}}class jw{constructor(){this._isAccepted=!1}get isAccepted(){return this._isAccepted}accept(){this._isAccepted=!0}}class wA{constructor(){this.events=new Map}get size(){return this.events.size}add(t,n){this.events.set(t,n)}delete(t){this.events.delete(t)}clear(){this.events.clear()}}class Ia{static create(){var t;return new Ia((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn("dockview: stacktrace",this.value)}}class yA{constructor(t,n){this.callback=t,this.stacktrace=n}}class A{static setLeakageMonitorEnabled(t){t!==A.ENABLE_TRACKING&&A.MEMORY_LEAK_WATCHER.clear(),A.ENABLE_TRACKING=t}get value(){return this._last}constructor(t){this.options=t,this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=t=>{var n;!((n=this.options)===null||n===void 0)&&n.replay&&this._last!==void 0&&t(this._last);const i=new yA(t,A.ENABLE_TRACKING?Ia.create():void 0);return this._listeners.push(i),{dispose:()=>{const r=this._listeners.indexOf(i);r>-1&&this._listeners.splice(r,1)}}},A.ENABLE_TRACKING&&A.MEMORY_LEAK_WATCHER.add(this._event,Ia.create())),this._event}fire(t){var n;!((n=this.options)===null||n===void 0)&&n.replay&&(this._last=t);for(const i of this._listeners)i.callback(t)}dispose(){this._disposed||(this._disposed=!0,this._listeners.length>0&&(A.ENABLE_TRACKING&&queueMicrotask(()=>{var t;for(const n of this._listeners)console.warn("dockview: stacktrace",(t=n.stacktrace)===null||t===void 0?void 0:t.print())}),this._listeners=[]),A.ENABLE_TRACKING&&this._event&&A.MEMORY_LEAK_WATCHER.delete(this._event))}}A.ENABLE_TRACKING=!1;A.MEMORY_LEAK_WATCHER=new wA;function oe(e,t,n,i){return e.addEventListener(t,n,i),{dispose:()=>{e.removeEventListener(t,n,i)}}}class Xf{constructor(){this._onFired=new A,this._currentFireCount=0,this._queued=!1,this.onEvent=t=>{const n=this._currentFireCount;return this._onFired.event(()=>{this._currentFireCount>n&&t()})}}fire(){this._currentFireCount++,!this._queued&&(this._queued=!0,queueMicrotask(()=>{this._queued=!1,this._onFired.fire()}))}dispose(){this._onFired.dispose()}}var Ye;(function(e){e.NONE={dispose:()=>{}};function t(n){return{dispose:()=>{n()}}}e.from=t})(Ye||(Ye={}));class ie{get isDisposed(){return this._isDisposed}constructor(...t){this._isDisposed=!1,this._disposables=new Set(t)}addDisposables(...t){t.forEach(n=>this._disposables.add(n))}removeDisposable(t){this._disposables.delete(t)}dispose(){this._isDisposed||(this._isDisposed=!0,this._disposables.forEach(t=>t.dispose()),this._disposables.clear())}}class tt{constructor(){this._disposable=Ye.NONE}set value(t){this._disposable&&this._disposable.dispose(),this._disposable=t}dispose(){this._disposable&&(this._disposable.dispose(),this._disposable=Ye.NONE)}}class _A extends ie{constructor(t){super(),this._onDidChange=new A,this.onDidChange=this._onDidChange.event,this._value=null,this.addDisposables(this._onDidChange,hl(t,n=>{const i=n.target.scrollWidth>n.target.clientWidth,r=n.target.scrollHeight>n.target.clientHeight;this._value={hasScrollX:i,hasScrollY:r},this._onDidChange.fire(this._value)}))}}function hl(e,t){const n=new ResizeObserver(i=>{requestAnimationFrame(()=>{const r=i[0];t(r)})});return n.observe(e),{dispose:()=>{n.unobserve(e),n.disconnect()}}}const cn=(e,...t)=>{for(const n of t)e.classList.contains(n)&&e.classList.remove(n)},dn=(e,...t)=>{for(const n of t)e.classList.contains(n)||e.classList.add(n)},J=(e,t,n)=>{const i=e.classList.contains(t);n&&!i&&e.classList.add(t),!n&&i&&e.classList.remove(t)};function Ec(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function Bw(e){return new xA(e)}class xA extends ie{constructor(t){super(),this._onDidFocus=new A,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new A,this.onDidBlur=this._onDidBlur.event,this.addDisposables(this._onDidFocus,this._onDidBlur);let n=Ec(document.activeElement,t),i=!1;const r=()=>{i=!1,n||(n=!0,this._onDidFocus.fire())},o=()=>{n&&(i=!0,window.setTimeout(()=>{i&&(i=!1,n=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{Ec(document.activeElement,t)!==n&&(n?o():r())},this.addDisposables(oe(t,"focus",r,!0)),this.addDisposables(oe(t,"blur",o,!0))}refreshState(){this._refreshStateHandler()}}const Ww="dv-quasiPreventDefault";function kA(e){e[Ww]=!0}function Qf(e){return e[Ww]}function SA(e,t){const n=Array.from(t);for(const i of n){if(i.href){const o=e.createElement("link");o.href=i.href,o.type=i.type,o.rel="stylesheet",e.head.appendChild(o)}let r=[];try{i.cssRules&&(r=Array.from(i.cssRules).map(o=>o.cssText))}catch{}for(const o of r){const s=e.createElement("style");s.appendChild(e.createTextNode(o)),e.head.appendChild(s)}}}function Pc(e){const{left:t,top:n,width:i,height:r}=e.getBoundingClientRect();return{left:t+window.scrollX,top:n+window.scrollY,width:i,height:r}}function zA(e){let t=e;for(;t!=null&&t.parentNode;){if(t.parentNode===document)return!0;t.parentNode instanceof DocumentFragment?t=t.parentNode.host:t=t.parentNode}return!1}function CA(e,t){e.setAttribute("data-testid",t)}function DA(e){const t=[];function n(i){if(i.nodeType===Node.ELEMENT_NODE){e.includes(i.tagName)&&t.push(i),i.shadowRoot&&n(i.shadowRoot);for(const r of i.children)n(r)}}return n(document.documentElement),t}function Ta(e=document){const t=DA(["IFRAME","WEBVIEW"]),n=new WeakMap;for(const i of t)n.set(i,i.style.pointerEvents),i.style.pointerEvents="none";return{release:()=>{var i;for(const r of t)r.style.pointerEvents=(i=n.get(r))!==null&&i!==void 0?i:"auto";t.splice(0,t.length)}}}function EA(e){function t(r){const o=[];for(let s=0;s<r.classList.length;s++)o.push(r.classList.item(s));return o}let n,i=e;for(;i!==null&&(n=t(i).find(r=>r.startsWith("dockview-theme-")),typeof n!="string");)i=i.parentElement;return n}class pl{constructor(t){this.element=t,this._classNames=[]}setClassNames(t){for(const n of this._classNames)J(this.element,n,!1);this._classNames=t.split(" ").filter(n=>n.trim().length>0);for(const n of this._classNames)J(this.element,n,!0)}}const Hw=100;function PA(e,t){const n=Pc(e),i=Pc(t);return!(n.left<i.left||n.left+n.width>i.left+i.width||n.top<i.top||n.top+n.height>i.top+i.height)}function AA(e){const t=new A;let n=e.screenX,i=e.screenY,r;const o=()=>{if(e.closed)return;const s=e.screenX,a=e.screenY;(s!==n||a!==i)&&(clearTimeout(r),r=setTimeout(()=>{t.fire()},Hw),n=s,i=a),requestAnimationFrame(o)};return o(),t}function IA(e,t){let n;return new ie(oe(e,"resize",()=>{clearTimeout(n),n=setTimeout(()=>{t()},Hw)}))}function TA(e,t,n={buffer:10}){const i=n.buffer,r=e.getBoundingClientRect(),o=t.getBoundingClientRect();let s=0,a=0;const l=r.left-o.left,u=r.top-o.top,d=r.bottom-o.bottom,c=r.right-o.right;l<i?s=i-l:c>i&&(s=-i-c),u<i?a=i-u:d>i&&(a=-d-i),(s!==0||a!==0)&&(e.style.transform=`translate(${s}px, ${a}px)`)}function OA(e){let t=e;for(;t&&(t.style.zIndex==="auto"||t.style.zIndex==="");)t=t.parentElement;return t}function On(e){if(e.length===0)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function Uw(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function fu(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function Ts(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function NA(e,t){for(let n=0;n<e.length;n++){const i=e[n];if(t(i))return n}return-1}function mu(e,t){const n=e.findIndex(i=>i===t);return n>-1?(e.splice(n,1),!0):!1}const Ee=(e,t,n)=>t>n?t:Math.min(n,Math.max(e,t)),ah=()=>{let e=1;return{next:()=>(e++).toString()}},en=(e,t)=>{const n=[];if(typeof t!="number"&&(t=e,e=0),e<=t)for(let i=e;i<t;i++)n.push(i);else for(let i=e;i>t;i--)n.push(i);return n};class RA{set size(t){this._size=t}get size(){return this._size}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return typeof this._cachedVisibleSize>"u"}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(t){this.container.style.pointerEvents=t?"":"none"}constructor(t,n,i,r){this.container=t,this.view=n,this.disposable=r,this._cachedVisibleSize=void 0,typeof i=="number"?(this._size=i,this._cachedVisibleSize=void 0,t.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}setVisible(t,n){var i;t!==this.visible&&(t?(this.size=Ee((i=this._cachedVisibleSize)!==null&&i!==void 0?i:0,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof n=="number"?n:this.size,this.size=0),this.container.classList.toggle("visible",t),this.view.setVisible&&this.view.setVisible(t))}dispose(){return this.disposable.dispose(),this.view}}var K;(function(e){e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"})(K||(K={}));var $t;(function(e){e[e.MAXIMUM=0]="MAXIMUM",e[e.MINIMUM=1]="MINIMUM",e[e.DISABLED=2]="DISABLED",e[e.ENABLED=3]="ENABLED"})($t||($t={}));var Xe;(function(e){e.Low="low",e.High="high",e.Normal="normal"})(Xe||(Xe={}));var Ut;(function(e){e.Distribute={type:"distribute"};function t(i){return{type:"split",index:i}}e.Split=t;function n(i){return{type:"invisible",cachedVisibleSize:i}}e.Invisible=n})(Ut||(Ut={}));class Uo{get contentSize(){return this._contentSize}get size(){return this._size}set size(t){this._size=t}get orthogonalSize(){return this._orthogonalSize}set orthogonalSize(t){this._orthogonalSize=t}get length(){return this.viewItems.length}get proportions(){return this._proportions?[...this._proportions]:void 0}get orientation(){return this._orientation}set orientation(t){this._orientation=t;const n=this.size;this.size=this.orthogonalSize,this.orthogonalSize=n,cn(this.element,"dv-horizontal","dv-vertical"),this.element.classList.add(this.orientation==K.HORIZONTAL?"dv-horizontal":"dv-vertical")}get minimumSize(){return this.viewItems.reduce((t,n)=>t+n.minimumSize,0)}get maximumSize(){return this.length===0?Number.POSITIVE_INFINITY:this.viewItems.reduce((t,n)=>t+n.maximumSize,0)}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(t){this._startSnappingEnabled!==t&&(this._startSnappingEnabled=t,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(t){this._endSnappingEnabled!==t&&(this._endSnappingEnabled=t,this.updateSashEnablement())}get disabled(){return this._disabled}set disabled(t){this._disabled=t,J(this.element,"dv-splitview-disabled",t)}get margin(){return this._margin}set margin(t){this._margin=t,J(this.element,"dv-splitview-has-margin",t!==0)}constructor(t,n){var i,r;this.container=t,this.viewItems=[],this.sashes=[],this._size=0,this._orthogonalSize=0,this._contentSize=0,this._proportions=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this._disabled=!1,this._margin=0,this._onDidSashEnd=new A,this.onDidSashEnd=this._onDidSashEnd.event,this._onDidAddView=new A,this.onDidAddView=this._onDidAddView.event,this._onDidRemoveView=new A,this.onDidRemoveView=this._onDidRemoveView.event,this.resize=(o,s,a=this.viewItems.map(m=>m.size),l,u,d=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY,h,p)=>{if(o<0||o>this.viewItems.length)return 0;const m=en(o,-1),v=en(o+1,this.viewItems.length);if(u)for(const T of u)fu(m,T),fu(v,T);if(l)for(const T of l)Ts(m,T),Ts(v,T);const y=m.map(T=>this.viewItems[T]),f=m.map(T=>a[T]),g=v.map(T=>this.viewItems[T]),b=v.map(T=>a[T]),k=m.reduce((T,$)=>T+this.viewItems[$].minimumSize-a[$],0),D=m.reduce((T,$)=>T+this.viewItems[$].maximumSize-a[$],0),_=v.length===0?Number.POSITIVE_INFINITY:v.reduce((T,$)=>T+a[$]-this.viewItems[$].minimumSize,0),P=v.length===0?Number.NEGATIVE_INFINITY:v.reduce((T,$)=>T+a[$]-this.viewItems[$].maximumSize,0),C=Math.max(k,P),G=Math.min(_,D);let z=!1;if(h){const T=this.viewItems[h.index],$=s>=h.limitDelta;z=$!==T.visible,T.setVisible($,h.size)}if(!z&&p){const T=this.viewItems[p.index],$=s<p.limitDelta;z=$!==T.visible,T.setVisible($,p.size)}if(z)return this.resize(o,s,a,l,u,d,c);const F=Ee(s,C,G);let B=0,X=F;for(let T=0;T<y.length;T++){const $=y[T],re=Ee(f[T]+X,$.minimumSize,$.maximumSize),V=re-f[T];B+=V,X-=V,$.size=re}let te=B;for(let T=0;T<g.length;T++){const $=g[T],re=Ee(b[T]-te,$.minimumSize,$.maximumSize),V=re-b[T];te+=V,$.size=re}return s},this._orientation=(i=n.orientation)!==null&&i!==void 0?i:K.VERTICAL,this.element=this.createContainer(),this.margin=(r=n.margin)!==null&&r!==void 0?r:0,this.proportionalLayout=n.proportionalLayout===void 0?!0:!!n.proportionalLayout,this.viewContainer=this.createViewContainer(),this.sashContainer=this.createSashContainer(),this.element.appendChild(this.sashContainer),this.element.appendChild(this.viewContainer),this.container.appendChild(this.element),this.style(n.styles),n.descriptor&&(this._size=n.descriptor.size,n.descriptor.views.forEach((o,s)=>{const a=o.visible===void 0||o.visible?o.size:{type:"invisible",cachedVisibleSize:o.size},l=o.view;this.addView(l,a,s,!0)}),this._contentSize=this.viewItems.reduce((o,s)=>o+s.size,0),this.saveProportions())}style(t){(t==null?void 0:t.separatorBorder)==="transparent"?(cn(this.element,"dv-separator-border"),this.element.style.removeProperty("--dv-separator-border")):(dn(this.element,"dv-separator-border"),t!=null&&t.separatorBorder&&this.element.style.setProperty("--dv-separator-border",t.separatorBorder))}isViewVisible(t){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[t].visible}setViewVisible(t,n){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");const i=this.viewItems[t];i.setVisible(n,i.size),this.distributeEmptySpace(t),this.layoutViews(),this.saveProportions()}getViewSize(t){return t<0||t>=this.viewItems.length?-1:this.viewItems[t].size}resizeView(t,n){if(t<0||t>=this.viewItems.length)return;const i=en(this.viewItems.length).filter(a=>a!==t),r=[...i.filter(a=>this.viewItems[a].priority===Xe.Low),t],o=i.filter(a=>this.viewItems[a].priority===Xe.High),s=this.viewItems[t];n=Math.round(n),n=Ee(n,s.minimumSize,Math.min(s.maximumSize,this._size)),s.size=n,this.relayout(r,o)}getViews(){return this.viewItems.map(t=>t.view)}onDidChange(t,n){const i=this.viewItems.indexOf(t);if(i<0||i>=this.viewItems.length)return;n=typeof n=="number"?n:t.size,n=Ee(n,t.minimumSize,t.maximumSize),t.size=n;const r=en(this.viewItems.length).filter(a=>a!==i),o=[...r.filter(a=>this.viewItems[a].priority===Xe.Low),i],s=r.filter(a=>this.viewItems[a].priority===Xe.High);this.relayout([...o,i],s)}addView(t,n={type:"distribute"},i=this.viewItems.length,r){const o=document.createElement("div");o.className="dv-view",o.appendChild(t.element);let s;typeof n=="number"?s=n:n.type==="split"?s=this.getViewSize(n.index)/2:n.type==="invisible"?s={cachedVisibleSize:n.cachedVisibleSize}:s=t.minimumSize;const a=t.onDidChange(u=>this.onDidChange(l,u.size)),l=new RA(o,t,s,{dispose:()=>{a.dispose(),this.viewContainer.removeChild(o)}});if(i===this.viewItems.length?this.viewContainer.appendChild(o):this.viewContainer.insertBefore(o,this.viewContainer.children.item(i)),this.viewItems.splice(i,0,l),this.viewItems.length>1){const u=document.createElement("div");u.className="dv-sash";const d=h=>{for(const T of this.viewItems)T.enabled=!1;const p=Ta(),m=this._orientation===K.HORIZONTAL?h.clientX:h.clientY,v=NA(this.sashes,T=>T.container===u),y=this.viewItems.map(T=>T.size);let f,g;const b=en(v,-1),k=en(v+1,this.viewItems.length),D=b.reduce((T,$)=>T+(this.viewItems[$].minimumSize-y[$]),0),_=b.reduce((T,$)=>T+(this.viewItems[$].viewMaximumSize-y[$]),0),P=k.length===0?Number.POSITIVE_INFINITY:k.reduce((T,$)=>T+(y[$]-this.viewItems[$].minimumSize),0),C=k.length===0?Number.NEGATIVE_INFINITY:k.reduce((T,$)=>T+(y[$]-this.viewItems[$].viewMaximumSize),0),G=Math.max(D,C),z=Math.min(P,_),F=this.findFirstSnapIndex(b),B=this.findFirstSnapIndex(k);if(typeof F=="number"){const T=this.viewItems[F],$=Math.floor(T.viewMinimumSize/2);f={index:F,limitDelta:T.visible?G-$:G+$,size:T.size}}if(typeof B=="number"){const T=this.viewItems[B],$=Math.floor(T.viewMinimumSize/2);g={index:B,limitDelta:T.visible?z+$:z-$,size:T.size}}const X=T=>{const re=(this._orientation===K.HORIZONTAL?T.clientX:T.clientY)-m;this.resize(v,re,y,void 0,void 0,G,z,f,g),this.distributeEmptySpace(),this.layoutViews()},te=()=>{for(const T of this.viewItems)T.enabled=!0;p.release(),this.saveProportions(),document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",te),document.removeEventListener("pointercancel",te),document.removeEventListener("contextmenu",te),this._onDidSashEnd.fire(void 0)};document.addEventListener("pointermove",X),document.addEventListener("pointerup",te),document.addEventListener("pointercancel",te),document.addEventListener("contextmenu",te)};u.addEventListener("pointerdown",d);const c={container:u,disposable:()=>{u.removeEventListener("pointerdown",d),this.sashContainer.removeChild(u)}};this.sashContainer.appendChild(u),this.sashes.push(c)}r||this.relayout([i]),!r&&typeof n!="number"&&n.type==="distribute"&&this.distributeViewSizes(),this._onDidAddView.fire(t)}distributeViewSizes(){const t=[];let n=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(t.push(a),n+=a.size);const i=Math.floor(n/t.length);for(const a of t)a.size=Ee(i,a.minimumSize,a.maximumSize);const r=en(this.viewItems.length),o=r.filter(a=>this.viewItems[a].priority===Xe.Low),s=r.filter(a=>this.viewItems[a].priority===Xe.High);this.relayout(o,s)}removeView(t,n,i=!1){const r=this.viewItems.splice(t,1)[0];if(r.dispose(),this.viewItems.length>=1){const o=Math.max(t-1,0);this.sashes.splice(o,1)[0].disposable()}return i||this.relayout(),n&&n.type==="distribute"&&this.distributeViewSizes(),this._onDidRemoveView.fire(r.view),r.view}getViewCachedVisibleSize(t){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[t].cachedVisibleSize}moveView(t,n){const i=this.getViewCachedVisibleSize(t),r=typeof i>"u"?this.getViewSize(t):Ut.Invisible(i),o=this.removeView(t,void 0,!0);this.addView(o,r,n)}layout(t,n){const i=Math.max(this.size,this._contentSize);if(this.size=t,this.orthogonalSize=n,this.proportions){let r=0;for(let o=0;o<this.viewItems.length;o++){const s=this.viewItems[o],a=this.proportions[o];typeof a=="number"?r+=a:t-=s.size}for(let o=0;o<this.viewItems.length;o++){const s=this.viewItems[o],a=this.proportions[o];typeof a=="number"&&r>0&&(s.size=Ee(Math.round(a*t/r),s.minimumSize,s.maximumSize))}}else{const r=en(this.viewItems.length),o=r.filter(a=>this.viewItems[a].priority===Xe.Low),s=r.filter(a=>this.viewItems[a].priority===Xe.High);this.resize(this.viewItems.length-1,t-i,void 0,o,s)}this.distributeEmptySpace(),this.layoutViews()}relayout(t,n){const i=this.viewItems.reduce((r,o)=>r+o.size,0);this.resize(this.viewItems.length-1,this._size-i,void 0,t,n),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}distributeEmptySpace(t){const n=this.viewItems.reduce((a,l)=>a+l.size,0);let i=this.size-n;const r=en(this.viewItems.length-1,-1),o=r.filter(a=>this.viewItems[a].priority===Xe.Low),s=r.filter(a=>this.viewItems[a].priority===Xe.High);for(const a of s)fu(r,a);for(const a of o)Ts(r,a);typeof t=="number"&&Ts(r,t);for(let a=0;i!==0&&a<r.length;a++){const l=this.viewItems[r[a]],u=Ee(l.size+i,l.minimumSize,l.maximumSize),d=u-l.size;i-=d,l.size=u}}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this._proportions=this.viewItems.map(t=>t.visible?t.size/this._contentSize:void 0))}layoutViews(){if(this._contentSize=this.viewItems.reduce((l,u)=>l+u.size,0),this.updateSashEnablement(),this.viewItems.length===0)return;const t=this.viewItems.filter(l=>l.visible),n=Math.max(0,t.length-1),i=this.margin*n/Math.max(1,t.length);let r=0;const o=[],s=4,a=this.viewItems.reduce((l,u,d)=>{const c=u.visible?1:0;return d===0?l.push(c):l.push(l[d-1]+c),l},[]);this.viewItems.forEach((l,u)=>{r+=this.viewItems[u].size,o.push(r);const d=l.visible?l.size-i:0,c=Math.max(0,a[u]-1),h=u===0||c===0?0:o[u-1]+c/n*i;if(u<this.viewItems.length-1){const p=l.visible?h+d-s/2+this.margin/2:h;this._orientation===K.HORIZONTAL&&(this.sashes[u].container.style.left=`${p}px`,this.sashes[u].container.style.top="0px"),this._orientation===K.VERTICAL&&(this.sashes[u].container.style.left="0px",this.sashes[u].container.style.top=`${p}px`)}this._orientation===K.HORIZONTAL&&(l.container.style.width=`${d}px`,l.container.style.left=`${h}px`,l.container.style.top="",l.container.style.height=""),this._orientation===K.VERTICAL&&(l.container.style.height=`${d}px`,l.container.style.top=`${h}px`,l.container.style.width="",l.container.style.left=""),l.view.layout(l.size-i,this._orthogonalSize)})}findFirstSnapIndex(t){for(const n of t){const i=this.viewItems[n];if(i.visible&&i.snap)return n}for(const n of t){const i=this.viewItems[n];if(i.visible&&i.maximumSize-i.minimumSize>0)return;if(!i.visible&&i.snap)return n}}updateSashEnablement(){let t=!1;const n=this.viewItems.map(l=>t=l.size-l.minimumSize>0||t);t=!1;const i=this.viewItems.map(l=>t=l.maximumSize-l.size>0||t),r=[...this.viewItems].reverse();t=!1;const o=r.map(l=>t=l.size-l.minimumSize>0||t).reverse();t=!1;const s=r.map(l=>t=l.maximumSize-l.size>0||t).reverse();let a=0;for(let l=0;l<this.sashes.length;l++){const u=this.sashes[l],d=this.viewItems[l];a+=d.size;const c=!(n[l]&&s[l+1]),h=!(i[l]&&o[l+1]);if(c&&h){const p=en(l,-1),m=en(l+1,this.viewItems.length),v=this.findFirstSnapIndex(p),y=this.findFirstSnapIndex(m),f=typeof v=="number"&&!this.viewItems[v].visible,g=typeof y=="number"&&!this.viewItems[y].visible;f&&o[l]&&(a>0||this.startSnappingEnabled)?this.updateSash(u,$t.MINIMUM):g&&n[l]&&(a<this._contentSize||this.endSnappingEnabled)?this.updateSash(u,$t.MAXIMUM):this.updateSash(u,$t.DISABLED)}else c&&!h?this.updateSash(u,$t.MINIMUM):!c&&h?this.updateSash(u,$t.MAXIMUM):this.updateSash(u,$t.ENABLED)}}updateSash(t,n){J(t.container,"dv-disabled",n===$t.DISABLED),J(t.container,"dv-enabled",n===$t.ENABLED),J(t.container,"dv-maximum",n===$t.MAXIMUM),J(t.container,"dv-minimum",n===$t.MINIMUM)}createViewContainer(){const t=document.createElement("div");return t.className="dv-view-container",t}createSashContainer(){const t=document.createElement("div");return t.className="dv-sash-container",t}createContainer(){const t=document.createElement("div"),n=this._orientation===K.HORIZONTAL?"dv-horizontal":"dv-vertical";return t.className=`dv-split-view-container ${n}`,t}dispose(){this._onDidSashEnd.dispose(),this._onDidAddView.dispose(),this._onDidRemoveView.dispose();for(let t=0;t<this.element.children.length;t++)if(this.element.children.item(t)===this.element){this.element.removeChild(this.element);break}for(const t of this.viewItems)t.dispose();this.element.remove()}}const Ac=Object.keys({orientation:void 0,descriptor:void 0,proportionalLayout:void 0,styles:void 0,margin:void 0,disableAutoResizing:void 0,className:void 0});class em extends ie{get onDidAddView(){return this.splitview.onDidAddView}get onDidRemoveView(){return this.splitview.onDidRemoveView}get minimumSize(){return this.splitview.minimumSize}get maximumSize(){return this.splitview.maximumSize}get orientation(){return this.splitview.orientation}get size(){return this.splitview.size}get orthogonalSize(){return this.splitview.orthogonalSize}constructor(t,n){var i;super(),this.paneItems=[],this.skipAnimation=!1,this._onDidChange=new A,this.onDidChange=this._onDidChange.event,this._orientation=(i=n.orientation)!==null&&i!==void 0?i:K.VERTICAL,this.element=document.createElement("div"),this.element.className="dv-pane-container",t.appendChild(this.element),this.splitview=new Uo(this.element,{orientation:this._orientation,proportionalLayout:!1,descriptor:n.descriptor}),this.getPanes().forEach(r=>{const o=new ie(r.onDidChangeExpansionState(()=>{this.setupAnimation(),this._onDidChange.fire(void 0)})),s={pane:r,disposable:{dispose:()=>{o.dispose()}}};this.paneItems.push(s),r.orthogonalSize=this.splitview.orthogonalSize}),this.addDisposables(this._onDidChange,this.splitview.onDidSashEnd(()=>{this._onDidChange.fire(void 0)}),this.splitview.onDidAddView(()=>{this._onDidChange.fire()}),this.splitview.onDidRemoveView(()=>{this._onDidChange.fire()}))}setViewVisible(t,n){this.splitview.setViewVisible(t,n)}addPane(t,n,i=this.splitview.length,r=!1){const o=t.onDidChangeExpansionState(()=>{this.setupAnimation(),this._onDidChange.fire(void 0)}),s={pane:t,disposable:{dispose:()=>{o.dispose()}}};this.paneItems.splice(i,0,s),t.orthogonalSize=this.splitview.orthogonalSize,this.splitview.addView(t,n,i,r)}getViewSize(t){return this.splitview.getViewSize(t)}getPanes(){return this.splitview.getViews()}removePane(t,n={skipDispose:!1}){const i=this.paneItems.splice(t,1)[0];return this.splitview.removeView(t),n.skipDispose||(i.disposable.dispose(),i.pane.dispose()),i}moveView(t,n){if(t===n)return;const i=this.removePane(t,{skipDispose:!0});this.skipAnimation=!0;try{this.addPane(i.pane,i.pane.size,n,!1)}finally{this.skipAnimation=!1}}layout(t,n){this.splitview.layout(t,n)}setupAnimation(){this.skipAnimation||(this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=void 0),dn(this.element,"dv-animated"),this.animationTimer=setTimeout(()=>{this.animationTimer=void 0,cn(this.element,"dv-animated")},200))}dispose(){super.dispose(),this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=void 0),this.paneItems.forEach(t=>{t.disposable.dispose(),t.pane.dispose()}),this.paneItems=[],this.splitview.dispose(),this.element.remove()}}class nt{get minimumWidth(){return this.view.minimumWidth}get maximumWidth(){return this.view.maximumWidth}get minimumHeight(){return this.view.minimumHeight}get maximumHeight(){return this.view.maximumHeight}get priority(){return this.view.priority}get snap(){return this.view.snap}get minimumSize(){return this.orientation===K.HORIZONTAL?this.minimumHeight:this.minimumWidth}get maximumSize(){return this.orientation===K.HORIZONTAL?this.maximumHeight:this.maximumWidth}get minimumOrthogonalSize(){return this.orientation===K.HORIZONTAL?this.minimumWidth:this.minimumHeight}get maximumOrthogonalSize(){return this.orientation===K.HORIZONTAL?this.maximumWidth:this.maximumHeight}get orthogonalSize(){return this._orthogonalSize}get size(){return this._size}get element(){return this.view.element}get width(){return this.orientation===K.HORIZONTAL?this.orthogonalSize:this.size}get height(){return this.orientation===K.HORIZONTAL?this.size:this.orthogonalSize}constructor(t,n,i,r=0){this.view=t,this.orientation=n,this._onDidChange=new A,this.onDidChange=this._onDidChange.event,this._orthogonalSize=i,this._size=r,this._disposable=this.view.onDidChange(o=>{o?this._onDidChange.fire({size:this.orientation===K.VERTICAL?o.width:o.height,orthogonalSize:this.orientation===K.VERTICAL?o.height:o.width}):this._onDidChange.fire({})})}setVisible(t){this.view.setVisible&&this.view.setVisible(t)}layout(t,n){this._size=t,this._orthogonalSize=n,this.view.layout(this.width,this.height)}dispose(){this._onDidChange.dispose(),this._disposable.dispose()}}class $e extends ie{get width(){return this.orientation===K.HORIZONTAL?this.size:this.orthogonalSize}get height(){return this.orientation===K.HORIZONTAL?this.orthogonalSize:this.size}get minimumSize(){return this.children.length===0?0:Math.max(...this.children.map((t,n)=>this.splitview.isViewVisible(n)?t.minimumOrthogonalSize:0))}get maximumSize(){return Math.min(...this.children.map((t,n)=>this.splitview.isViewVisible(n)?t.maximumOrthogonalSize:Number.POSITIVE_INFINITY))}get minimumOrthogonalSize(){return this.splitview.minimumSize}get maximumOrthogonalSize(){return this.splitview.maximumSize}get orthogonalSize(){return this._orthogonalSize}get size(){return this._size}get minimumWidth(){return this.orientation===K.HORIZONTAL?this.minimumOrthogonalSize:this.minimumSize}get minimumHeight(){return this.orientation===K.HORIZONTAL?this.minimumSize:this.minimumOrthogonalSize}get maximumWidth(){return this.orientation===K.HORIZONTAL?this.maximumOrthogonalSize:this.maximumSize}get maximumHeight(){return this.orientation===K.HORIZONTAL?this.maximumSize:this.maximumOrthogonalSize}get priority(){if(this.children.length===0)return Xe.Normal;const t=this.children.map(n=>typeof n.priority>"u"?Xe.Normal:n.priority);return t.some(n=>n===Xe.High)?Xe.High:t.some(n=>n===Xe.Low)?Xe.Low:Xe.Normal}get disabled(){return this.splitview.disabled}set disabled(t){this.splitview.disabled=t}get margin(){return this.splitview.margin}set margin(t){this.splitview.margin=t,this.children.forEach(n=>{n instanceof $e&&(n.margin=t)})}constructor(t,n,i,r,o,s,a,l){if(super(),this.orientation=t,this.proportionalLayout=n,this.styles=i,this._childrenDisposable=Ye.NONE,this.children=[],this._onDidChange=new A,this.onDidChange=this._onDidChange.event,this._onDidVisibilityChange=new A,this.onDidVisibilityChange=this._onDidVisibilityChange.event,this._orthogonalSize=o,this._size=r,this.element=document.createElement("div"),this.element.className="dv-branch-node",!l)this.splitview=new Uo(this.element,{orientation:this.orientation,proportionalLayout:n,styles:i,margin:a}),this.splitview.layout(this.size,this.orthogonalSize);else{const u={views:l.map(d=>({view:d.node,size:d.node.size,visible:d.node instanceof nt&&d.visible!==void 0?d.visible:!0})),size:this.orthogonalSize};this.children=l.map(d=>d.node),this.splitview=new Uo(this.element,{orientation:this.orientation,descriptor:u,proportionalLayout:n,styles:i,margin:a})}this.disabled=s,this.addDisposables(this._onDidChange,this._onDidVisibilityChange,this.splitview.onDidSashEnd(()=>{this._onDidChange.fire({})})),this.setupChildrenEvents()}setVisible(t){}isChildVisible(t){if(t<0||t>=this.children.length)throw new Error("Invalid index");return this.splitview.isViewVisible(t)}setChildVisible(t,n){if(t<0||t>=this.children.length)throw new Error("Invalid index");if(this.splitview.isViewVisible(t)===n)return;const i=this.splitview.contentSize===0;this.splitview.setViewVisible(t,n);const r=this.splitview.contentSize===0;(n&&i||!n&&r)&&this._onDidVisibilityChange.fire({visible:n})}moveChild(t,n){if(t===n)return;if(t<0||t>=this.children.length)throw new Error("Invalid from index");t<n&&n--,this.splitview.moveView(t,n);const i=this._removeChild(t);this._addChild(i,n)}getChildSize(t){if(t<0||t>=this.children.length)throw new Error("Invalid index");return this.splitview.getViewSize(t)}resizeChild(t,n){if(t<0||t>=this.children.length)throw new Error("Invalid index");this.splitview.resizeView(t,n)}layout(t,n){this._size=n,this._orthogonalSize=t,this.splitview.layout(n,t)}addChild(t,n,i,r){if(i<0||i>this.children.length)throw new Error("Invalid index");this.splitview.addView(t,n,i,r),this._addChild(t,i)}getChildCachedVisibleSize(t){if(t<0||t>=this.children.length)throw new Error("Invalid index");return this.splitview.getViewCachedVisibleSize(t)}removeChild(t,n){if(t<0||t>=this.children.length)throw new Error("Invalid index");return this.splitview.removeView(t,n),this._removeChild(t)}_addChild(t,n){this.children.splice(n,0,t),this.setupChildrenEvents()}_removeChild(t){const[n]=this.children.splice(t,1);return this.setupChildrenEvents(),n}setupChildrenEvents(){this._childrenDisposable.dispose(),this._childrenDisposable=new ie(Ni.any(...this.children.map(t=>t.onDidChange))(t=>{this._onDidChange.fire({size:t.orthogonalSize})}),...this.children.map((t,n)=>t instanceof $e?t.onDidVisibilityChange(({visible:i})=>{this.setChildVisible(n,i)}):Ye.NONE))}dispose(){this._childrenDisposable.dispose(),this.splitview.dispose(),this.children.forEach(t=>t.dispose()),super.dispose()}}function Ic(e,t){if(e instanceof nt)return e;if(e instanceof $e)return Ic(e.children[t?e.children.length-1:0],t);throw new Error("invalid node")}function Zw(e,t,n){if(e instanceof $e){const i=new $e(e.orientation,e.proportionalLayout,e.styles,t,n,e.disabled,e.margin);for(let r=e.children.length-1;r>=0;r--){const o=e.children[r];i.addChild(Zw(o,o.size,o.orthogonalSize),o.size,0,!0)}return i}else return new nt(e.view,e.orientation,n)}function Tc(e,t,n){if(e instanceof $e){const i=new $e(wn(e.orientation),e.proportionalLayout,e.styles,t,n,e.disabled,e.margin);let r=0;for(let o=e.children.length-1;o>=0;o--){const s=e.children[o],a=s instanceof $e?s.orthogonalSize:s.size;let l=e.size===0?0:Math.round(t*a/e.size);r+=l,o===0&&(l+=t-r),i.addChild(Tc(s,n,l),l,0,!0)}return i}else return new nt(e.view,wn(e.orientation),n)}function LA(e){const t=e.parentElement;if(!t)throw new Error("Invalid grid element");let n=t.firstElementChild,i=0;for(;n!==e&&n!==t.lastElementChild&&n;)n=n.nextElementSibling,i++;return i}function Ne(e){const t=e.parentElement;if(!t)throw new Error("Invalid grid element");if(/\bdv-grid-view\b/.test(t.className))return[];const n=LA(t),i=t.parentElement.parentElement.parentElement;return[...Ne(i),n]}function vn(e,t,n){const i=FA(e,t),r=MA(n);if(i===r){const[o,s]=On(t);let a=s;return(n==="right"||n==="bottom")&&(a+=1),[...o,a]}else{const o=n==="right"||n==="bottom"?1:0;return[...t,o]}}function MA(e){return e==="top"||e==="bottom"?K.VERTICAL:K.HORIZONTAL}function FA(e,t){return t.length%2===0?wn(e):e}const wn=e=>e===K.HORIZONTAL?K.VERTICAL:K.HORIZONTAL;function VA(e){return!!e.children}const Oc=(e,t)=>{const n=t===K.VERTICAL?e.box.width:e.box.height;return VA(e)?{type:"branch",data:e.children.map(i=>Oc(i,wn(t))),size:n}:typeof e.cachedVisibleSize=="number"?{type:"leaf",data:e.view.toJSON(),size:e.cachedVisibleSize,visible:!1}:{type:"leaf",data:e.view.toJSON(),size:n}};class GA{get length(){return this._root?this._root.children.length:0}get orientation(){return this.root.orientation}set orientation(t){if(this.root.orientation===t)return;const{size:n,orthogonalSize:i}=this.root;this.root=Tc(this.root,i,n),this.root.layout(n,i)}get width(){return this.root.width}get height(){return this.root.height}get minimumWidth(){return this.root.minimumWidth}get minimumHeight(){return this.root.minimumHeight}get maximumWidth(){return this.root.maximumHeight}get maximumHeight(){return this.root.maximumHeight}get locked(){return this._locked}set locked(t){this._locked=t;const n=[this.root];for(;n.length>0;){const i=n.pop();i instanceof $e&&(i.disabled=t,n.push(...i.children))}}get margin(){return this._margin}set margin(t){this._margin=t,this.root.margin=t}maximizedView(){var t;return(t=this._maximizedNode)===null||t===void 0?void 0:t.leaf.view}hasMaximizedView(){return this._maximizedNode!==void 0}maximizeView(t){var n;const i=Ne(t.element),[r,o]=this.getNode(i);if(!(o instanceof nt)||((n=this._maximizedNode)===null||n===void 0?void 0:n.leaf)===o)return;this.hasMaximizedView()&&this.exitMaximizedView(),Oc(this.getView(),this.orientation);const s=[];function a(l,u){for(let d=0;d<l.children.length;d++){const c=l.children[d];c instanceof nt?c!==u&&(l.isChildVisible(d)?l.setChildVisible(d,!1):s.push(c)):a(c,u)}}a(this.root,o),this._maximizedNode={leaf:o,hiddenOnMaximize:s},this._onDidMaximizedNodeChange.fire({view:o.view,isMaximized:!0})}exitMaximizedView(){if(!this._maximizedNode)return;const t=this._maximizedNode.hiddenOnMaximize;function n(r){for(let o=r.children.length-1;o>=0;o--){const s=r.children[o];s instanceof nt?t.includes(s)||r.setChildVisible(o,!0):n(s)}}n(this.root);const i=this._maximizedNode.leaf;this._maximizedNode=void 0,this._onDidMaximizedNodeChange.fire({view:i.view,isMaximized:!1})}serialize(){const t=this.maximizedView();let n;t&&(n=Ne(t.element)),this.hasMaximizedView()&&this.exitMaximizedView();const r={root:Oc(this.getView(),this.orientation),width:this.width,height:this.height,orientation:this.orientation};return n&&(r.maximizedNode={location:n}),t&&this.maximizeView(t),r}dispose(){this.disposable.dispose(),this._onDidChange.dispose(),this._onDidMaximizedNodeChange.dispose(),this._onDidViewVisibilityChange.dispose(),this.root.dispose(),this._maximizedNode=void 0,this.element.remove()}clear(){const t=this.root.orientation;this.root=new $e(t,this.proportionalLayout,this.styles,this.root.size,this.root.orthogonalSize,this.locked,this.margin)}deserialize(t,n){const i=t.orientation,r=i===K.VERTICAL?t.height:t.width;if(this._deserialize(t.root,i,n,r),this.layout(t.width,t.height),t.maximizedNode){const o=t.maximizedNode.location,[s,a]=this.getNode(o);if(!(a instanceof nt))return;this.maximizeView(a.view)}}_deserialize(t,n,i,r){this.root=this._deserializeNode(t,n,i,r)}_deserializeNode(t,n,i,r){var o;let s;if(t.type==="branch"){const l=t.data.map(u=>({node:this._deserializeNode(u,wn(n),i,t.size),visible:u.visible}));s=new $e(n,this.proportionalLayout,this.styles,t.size,r,this.locked,this.margin,l)}else{const a=i.fromJSON(t);typeof t.visible=="boolean"&&((o=a.setVisible)===null||o===void 0||o.call(a,t.visible)),s=new nt(a,n,r,t.size)}return s}get root(){return this._root}set root(t){const n=this._root;n&&(n.dispose(),this._maximizedNode=void 0,this.element.removeChild(n.element)),this._root=t,this.element.appendChild(this._root.element),this.disposable.value=this._root.onDidChange(i=>{this._onDidChange.fire(i)})}normalize(){if(!this._root||this._root.children.length!==1)return;const t=this.root,n=t.children[0];if(n instanceof nt)return;t.element.remove();const i=t.removeChild(0);t.dispose(),i.dispose(),this._root=Zw(n,n.size,n.orthogonalSize),this.element.appendChild(this._root.element),this.disposable.value=this._root.onDidChange(r=>{this._onDidChange.fire(r)})}insertOrthogonalSplitviewAtRoot(){if(!this._root)return;const t=this.root;if(t.element.remove(),this._root=new $e(wn(t.orientation),this.proportionalLayout,this.styles,this.root.orthogonalSize,this.root.size,this.locked,this.margin),t.children.length!==0)if(t.children.length===1){const n=t.children[0];t.removeChild(0).dispose(),t.dispose(),this._root.addChild(Tc(n,n.orthogonalSize,n.size),Ut.Distribute,0)}else this._root.addChild(t,Ut.Distribute,0);this.element.appendChild(this._root.element),this.disposable.value=this._root.onDidChange(n=>{this._onDidChange.fire(n)})}next(t){return this.progmaticSelect(t)}previous(t){return this.progmaticSelect(t,!0)}getView(t){const n=t?this.getNode(t)[1]:this.root;return this._getViews(n,this.orientation)}_getViews(t,n,i){const r={height:t.height,width:t.width};if(t instanceof nt)return{box:r,view:t.view,cachedVisibleSize:i};const o=[];for(let s=0;s<t.children.length;s++){const a=t.children[s],l=t.getChildCachedVisibleSize(s);o.push(this._getViews(a,wn(n),l))}return{box:r,children:o}}progmaticSelect(t,n=!1){const[i,r]=this.getNode(t);if(!(r instanceof nt))throw new Error("invalid location");for(let o=i.length-1;o>-1;o--){const s=i[o],a=t[o]||0;if(n?a-1>-1:a+1<s.children.length)return Ic(s.children[n?a-1:a+1],n)}return Ic(this.root,n)}constructor(t,n,i,r,o){this.proportionalLayout=t,this.styles=n,this._locked=!1,this._margin=0,this._maximizedNode=void 0,this.disposable=new tt,this._onDidChange=new A,this.onDidChange=this._onDidChange.event,this._onDidViewVisibilityChange=new A,this.onDidViewVisibilityChange=this._onDidViewVisibilityChange.event,this._onDidMaximizedNodeChange=new A,this.onDidMaximizedNodeChange=this._onDidMaximizedNodeChange.event,this.element=document.createElement("div"),this.element.className="dv-grid-view",this._locked=r??!1,this._margin=o??0,this.root=new $e(i,t,n,0,0,this.locked,this.margin)}isViewVisible(t){const[n,i]=On(t),[,r]=this.getNode(n);if(!(r instanceof $e))throw new Error("Invalid from location");return r.isChildVisible(i)}setViewVisible(t,n){this.hasMaximizedView()&&this.exitMaximizedView();const[i,r]=On(t),[,o]=this.getNode(i);if(!(o instanceof $e))throw new Error("Invalid from location");this._onDidViewVisibilityChange.fire(),o.setChildVisible(r,n)}moveView(t,n,i){this.hasMaximizedView()&&this.exitMaximizedView();const[,r]=this.getNode(t);if(!(r instanceof $e))throw new Error("Invalid location");r.moveChild(n,i)}addView(t,n,i){this.hasMaximizedView()&&this.exitMaximizedView();const[r,o]=On(i),[s,a]=this.getNode(r);if(a instanceof $e){const l=new nt(t,wn(a.orientation),a.orthogonalSize);a.addChild(l,n,o)}else{const[l,...u]=[...s].reverse(),[d,...c]=[...r].reverse();let h=0;const p=l.getChildCachedVisibleSize(d);typeof p=="number"&&(h=Ut.Invisible(p)),l.removeChild(d).dispose();const v=new $e(a.orientation,this.proportionalLayout,this.styles,a.size,a.orthogonalSize,this.locked,this.margin);l.addChild(v,a.size,d);const y=new nt(a.view,l.orientation,a.size);v.addChild(y,h,0),typeof n!="number"&&n.type==="split"&&(n={type:"split",index:0});const f=new nt(t,l.orientation,a.size);v.addChild(f,n,o)}}remove(t,n){const i=Ne(t.element);return this.removeView(i,n)}removeView(t,n){this.hasMaximizedView()&&this.exitMaximizedView();const[i,r]=On(t),[o,s]=this.getNode(i);if(!(s instanceof $e))throw new Error("Invalid location");const a=s.children[r];if(!(a instanceof nt))throw new Error("Invalid location");if(s.removeChild(r,n),a.dispose(),s.children.length!==1)return a.view;const l=s.children[0];if(o.length===0)return l instanceof nt||(s.removeChild(0,n),this.root=l),a.view;const[u,...d]=[...o].reverse(),[c,...h]=[...i].reverse(),p=s.isChildVisible(0);s.removeChild(0,n);const m=u.children.map((v,y)=>u.getChildSize(y));if(u.removeChild(c,n).dispose(),l instanceof $e){m.splice(c,1,...l.children.map(v=>v.size));for(let v=0;v<l.children.length;v++){const y=l.children[v];u.addChild(y,y.size,c+v)}for(;l.children.length>0;)l.removeChild(0)}else{const v=new nt(l.view,wn(l.orientation),l.size),y=p?l.orthogonalSize:Ut.Invisible(l.orthogonalSize);u.addChild(v,y,c)}l.dispose();for(let v=0;v<m.length;v++)u.resizeChild(v,m[v]);return a.view}layout(t,n){const[i,r]=this.root.orientation===K.HORIZONTAL?[n,t]:[t,n];this.root.layout(i,r)}getNode(t,n=this.root,i=[]){if(t.length===0)return[i,n];if(!(n instanceof $e))throw new Error("Invalid location");const[r,...o]=t;if(r<0||r>=n.children.length)throw new Error("Invalid location");const s=n.children[r];return i.push(n),this.getNode(o,s,i)}}const Nc=Object.keys({disableAutoResizing:void 0,proportionalLayout:void 0,orientation:void 0,hideBorders:void 0,className:void 0});class lh extends ie{get element(){return this._element}get disableResizing(){return this._disableResizing}set disableResizing(t){this._disableResizing=t}constructor(t,n=!1){super(),this._disableResizing=n,this._element=t,this.addDisposables(hl(this._element,i=>{if(this.isDisposed||this.disableResizing||!this._element.offsetParent||!zA(this._element))return;const{width:r,height:o}=i.contentRect;this.layout(r,o)}))}}const $A=ah();function Oa(e){switch(e){case"left":return"left";case"right":return"right";case"above":return"top";case"below":return"bottom";case"within":default:return"center"}}class Yw extends lh{get id(){return this._id}get size(){return this._groups.size}get groups(){return Array.from(this._groups.values()).map(t=>t.value)}get width(){return this.gridview.width}get height(){return this.gridview.height}get minimumHeight(){return this.gridview.minimumHeight}get maximumHeight(){return this.gridview.maximumHeight}get minimumWidth(){return this.gridview.minimumWidth}get maximumWidth(){return this.gridview.maximumWidth}get activeGroup(){return this._activeGroup}get locked(){return this.gridview.locked}set locked(t){this.gridview.locked=t}constructor(t,n){var i;super(document.createElement("div"),n.disableAutoResizing),this._id=$A.next(),this._groups=new Map,this._onDidRemove=new A,this.onDidRemove=this._onDidRemove.event,this._onDidAdd=new A,this.onDidAdd=this._onDidAdd.event,this._onDidMaximizedChange=new A,this.onDidMaximizedChange=this._onDidMaximizedChange.event,this._onDidActiveChange=new A,this.onDidActiveChange=this._onDidActiveChange.event,this._bufferOnDidLayoutChange=new Xf,this.onDidLayoutChange=this._bufferOnDidLayoutChange.onEvent,this._onDidViewVisibilityChangeMicroTaskQueue=new Xf,this.onDidViewVisibilityChangeMicroTaskQueue=this._onDidViewVisibilityChangeMicroTaskQueue.onEvent,this.element.style.height="100%",this.element.style.width="100%",this._classNames=new pl(this.element),this._classNames.setClassNames((i=n.className)!==null&&i!==void 0?i:""),t.appendChild(this.element),this.gridview=new GA(!!n.proportionalLayout,n.styles,n.orientation,n.locked,n.margin),this.gridview.locked=!!n.locked,this.element.appendChild(this.gridview.element),this.layout(0,0,!0),this.addDisposables(this.gridview.onDidMaximizedNodeChange(r=>{this._onDidMaximizedChange.fire({panel:r.view,isMaximized:r.isMaximized})}),this.gridview.onDidViewVisibilityChange(()=>this._onDidViewVisibilityChangeMicroTaskQueue.fire()),this.onDidViewVisibilityChangeMicroTaskQueue(()=>{this.layout(this.width,this.height,!0)}),Ye.from(()=>{var r;(r=this.element.parentElement)===null||r===void 0||r.removeChild(this.element)}),this.gridview.onDidChange(()=>{this._bufferOnDidLayoutChange.fire()}),Ni.any(this.onDidAdd,this.onDidRemove,this.onDidActiveChange)(()=>{this._bufferOnDidLayoutChange.fire()}),this._onDidMaximizedChange,this._onDidViewVisibilityChangeMicroTaskQueue,this._bufferOnDidLayoutChange)}setVisible(t,n){this.gridview.setViewVisible(Ne(t.element),n),this._bufferOnDidLayoutChange.fire()}isVisible(t){return this.gridview.isViewVisible(Ne(t.element))}updateOptions(t){var n,i,r,o;t.proportionalLayout,t.orientation&&(this.gridview.orientation=t.orientation),"disableResizing"in t&&(this.disableResizing=(n=t.disableAutoResizing)!==null&&n!==void 0?n:!1),"locked"in t&&(this.locked=(i=t.locked)!==null&&i!==void 0?i:!1),"margin"in t&&(this.gridview.margin=(r=t.margin)!==null&&r!==void 0?r:0),"className"in t&&this._classNames.setClassNames((o=t.className)!==null&&o!==void 0?o:"")}maximizeGroup(t){this.gridview.maximizeView(t),this.doSetGroupActive(t)}isMaximizedGroup(t){return this.gridview.maximizedView()===t}exitMaximizedGroup(){this.gridview.exitMaximizedView()}hasMaximizedGroup(){return this.gridview.hasMaximizedView()}doAddGroup(t,n=[0],i){this.gridview.addView(t,i??Ut.Distribute,n),this._onDidAdd.fire(t)}doRemoveGroup(t,n){if(!this._groups.has(t.id))throw new Error("invalid operation");const i=this._groups.get(t.id),r=this.gridview.remove(t,Ut.Distribute);if(i&&!(n!=null&&n.skipDispose)&&(i.disposable.dispose(),i.value.dispose(),this._groups.delete(t.id),this._onDidRemove.fire(t)),!(n!=null&&n.skipActive)&&this._activeGroup===t){const o=Array.from(this._groups.values());this.doSetGroupActive(o.length>0?o[0].value:void 0)}return r}getPanel(t){var n;return(n=this._groups.get(t))===null||n===void 0?void 0:n.value}doSetGroupActive(t){this._activeGroup!==t&&(this._activeGroup&&this._activeGroup.setActive(!1),t&&t.setActive(!0),this._activeGroup=t,this._onDidActiveChange.fire(t))}removeGroup(t){this.doRemoveGroup(t)}moveToNext(t){var n;if(t||(t={}),!t.group){if(!this.activeGroup)return;t.group=this.activeGroup}const i=Ne(t.group.element),r=(n=this.gridview.next(i))===null||n===void 0?void 0:n.view;this.doSetGroupActive(r)}moveToPrevious(t){var n;if(t||(t={}),!t.group){if(!this.activeGroup)return;t.group=this.activeGroup}const i=Ne(t.group.element),r=(n=this.gridview.previous(i))===null||n===void 0?void 0:n.view;this.doSetGroupActive(r)}layout(t,n,i){(i||t!==this.width||n!==this.height)&&(this.gridview.element.style.height=`${n}px`,this.gridview.element.style.width=`${t}px`,this.gridview.layout(t,n))}dispose(){this._onDidActiveChange.dispose(),this._onDidAdd.dispose(),this._onDidRemove.dispose();for(const t of this.groups)t.dispose();this.gridview.dispose(),super.dispose()}}class Jw{get minimumSize(){return this.component.minimumSize}get maximumSize(){return this.component.maximumSize}get width(){return this.component.width}get height(){return this.component.height}get length(){return this.component.length}get orientation(){return this.component.orientation}get panels(){return this.component.panels}get onDidLayoutFromJSON(){return this.component.onDidLayoutFromJSON}get onDidLayoutChange(){return this.component.onDidLayoutChange}get onDidAddView(){return this.component.onDidAddView}get onDidRemoveView(){return this.component.onDidRemoveView}constructor(t){this.component=t}removePanel(t,n){this.component.removePanel(t,n)}focus(){this.component.focus()}getPanel(t){return this.component.getPanel(t)}layout(t,n){return this.component.layout(t,n)}addPanel(t){return this.component.addPanel(t)}movePanel(t,n){this.component.movePanel(t,n)}fromJSON(t){this.component.fromJSON(t)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}updateOptions(t){this.component.updateOptions(t)}dispose(){this.component.dispose()}}class Zo{get minimumSize(){return this.component.minimumSize}get maximumSize(){return this.component.maximumSize}get width(){return this.component.width}get height(){return this.component.height}get panels(){return this.component.panels}get onDidLayoutChange(){return this.component.onDidLayoutChange}get onDidLayoutFromJSON(){return this.component.onDidLayoutFromJSON}get onDidAddView(){return this.component.onDidAddView}get onDidRemoveView(){return this.component.onDidRemoveView}get onDidDrop(){return this.component.onDidDrop}get onUnhandledDragOverEvent(){return this.component.onUnhandledDragOverEvent}constructor(t){this.component=t}removePanel(t){this.component.removePanel(t)}getPanel(t){return this.component.getPanel(t)}movePanel(t,n){this.component.movePanel(t,n)}focus(){this.component.focus()}layout(t,n){this.component.layout(t,n)}addPanel(t){return this.component.addPanel(t)}fromJSON(t){this.component.fromJSON(t)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}updateOptions(t){this.component.updateOptions(t)}dispose(){this.component.dispose()}}class qw{get width(){return this.component.width}get height(){return this.component.height}get minimumHeight(){return this.component.minimumHeight}get maximumHeight(){return this.component.maximumHeight}get minimumWidth(){return this.component.minimumWidth}get maximumWidth(){return this.component.maximumWidth}get onDidLayoutChange(){return this.component.onDidLayoutChange}get onDidAddPanel(){return this.component.onDidAddGroup}get onDidRemovePanel(){return this.component.onDidRemoveGroup}get onDidActivePanelChange(){return this.component.onDidActiveGroupChange}get onDidLayoutFromJSON(){return this.component.onDidLayoutFromJSON}get panels(){return this.component.groups}get orientation(){return this.component.orientation}set orientation(t){this.component.updateOptions({orientation:t})}constructor(t){this.component=t}focus(){this.component.focus()}layout(t,n,i=!1){this.component.layout(t,n,i)}addPanel(t){return this.component.addPanel(t)}removePanel(t,n){this.component.removePanel(t,n)}movePanel(t,n){this.component.movePanel(t,n)}getPanel(t){return this.component.getPanel(t)}fromJSON(t){return this.component.fromJSON(t)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}updateOptions(t){this.component.updateOptions(t)}dispose(){this.component.dispose()}}class Na{get id(){return this.component.id}get width(){return this.component.width}get height(){return this.component.height}get minimumHeight(){return this.component.minimumHeight}get maximumHeight(){return this.component.maximumHeight}get minimumWidth(){return this.component.minimumWidth}get maximumWidth(){return this.component.maximumWidth}get size(){return this.component.size}get totalPanels(){return this.component.totalPanels}get onDidActiveGroupChange(){return this.component.onDidActiveGroupChange}get onDidAddGroup(){return this.component.onDidAddGroup}get onDidRemoveGroup(){return this.component.onDidRemoveGroup}get onDidActivePanelChange(){return this.component.onDidActivePanelChange}get onDidAddPanel(){return this.component.onDidAddPanel}get onDidRemovePanel(){return this.component.onDidRemovePanel}get onDidMovePanel(){return this.component.onDidMovePanel}get onDidLayoutFromJSON(){return this.component.onDidLayoutFromJSON}get onDidLayoutChange(){return this.component.onDidLayoutChange}get onDidDrop(){return this.component.onDidDrop}get onWillDrop(){return this.component.onWillDrop}get onWillShowOverlay(){return this.component.onWillShowOverlay}get onWillDragGroup(){return this.component.onWillDragGroup}get onWillDragPanel(){return this.component.onWillDragPanel}get onUnhandledDragOverEvent(){return this.component.onUnhandledDragOverEvent}get onDidPopoutGroupSizeChange(){return this.component.onDidPopoutGroupSizeChange}get onDidPopoutGroupPositionChange(){return this.component.onDidPopoutGroupPositionChange}get onDidOpenPopoutWindowFail(){return this.component.onDidOpenPopoutWindowFail}get panels(){return this.component.panels}get groups(){return this.component.groups}get activePanel(){return this.component.activePanel}get activeGroup(){return this.component.activeGroup}constructor(t){this.component=t}focus(){this.component.focus()}getPanel(t){return this.component.getGroupPanel(t)}layout(t,n,i=!1){this.component.layout(t,n,i)}addPanel(t){return this.component.addPanel(t)}removePanel(t){this.component.removePanel(t)}addGroup(t){return this.component.addGroup(t)}closeAllGroups(){return this.component.closeAllGroups()}removeGroup(t){this.component.removeGroup(t)}getGroup(t){return this.component.getPanel(t)}addFloatingGroup(t,n){return this.component.addFloatingGroup(t,n)}fromJSON(t,n){this.component.fromJSON(t,n)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}moveToNext(t){this.component.moveToNext(t)}moveToPrevious(t){this.component.moveToPrevious(t)}maximizeGroup(t){this.component.maximizeGroup(t.group)}hasMaximizedGroup(){return this.component.hasMaximizedGroup()}exitMaximizedGroup(){this.component.exitMaximizedGroup()}get onDidMaximizedGroupChange(){return this.component.onDidMaximizedGroupChange}addPopoutGroup(t,n){return this.component.addPopoutGroup(t,n)}updateOptions(t){this.component.updateOptions(t)}dispose(){this.component.dispose()}}class uh extends ie{constructor(t,n){super(),this.el=t,this.disabled=n,this.dataDisposable=new tt,this.pointerEventsDisposable=new tt,this._onDragStart=new A,this.onDragStart=this._onDragStart.event,this.addDisposables(this._onDragStart,this.dataDisposable,this.pointerEventsDisposable),this.configure()}setDisabled(t){this.disabled=t}isCancelled(t){return!1}configure(){this.addDisposables(this._onDragStart,oe(this.el,"dragstart",t=>{if(t.defaultPrevented||this.isCancelled(t)||this.disabled){t.preventDefault();return}const n=Ta();this.pointerEventsDisposable.value={dispose:()=>{n.release()}},this.el.classList.add("dv-dragged"),setTimeout(()=>this.el.classList.remove("dv-dragged"),0),this.dataDisposable.value=this.getData(t),this._onDragStart.fire(t),t.dataTransfer&&(t.dataTransfer.effectAllowed="move",t.dataTransfer.items.length>0||t.dataTransfer.setData("text/plain",""))}),oe(this.el,"dragend",()=>{this.pointerEventsDisposable.dispose(),setTimeout(()=>{this.dataDisposable.dispose()},0)}))}}class Kw extends ie{constructor(t,n){super(),this.element=t,this.callbacks=n,this.target=null,this.registerListeners()}onDragEnter(t){this.target=t.target,this.callbacks.onDragEnter(t)}onDragOver(t){t.preventDefault(),this.callbacks.onDragOver&&this.callbacks.onDragOver(t)}onDragLeave(t){this.target===t.target&&(this.target=null,this.callbacks.onDragLeave(t))}onDragEnd(t){this.target=null,this.callbacks.onDragEnd(t)}onDrop(t){this.callbacks.onDrop(t)}registerListeners(){this.addDisposables(oe(this.element,"dragenter",t=>{this.onDragEnter(t)},!0)),this.addDisposables(oe(this.element,"dragover",t=>{this.onDragOver(t)},!0)),this.addDisposables(oe(this.element,"dragleave",t=>{this.onDragLeave(t)})),this.addDisposables(oe(this.element,"dragend",t=>{this.onDragEnd(t)})),this.addDisposables(oe(this.element,"drop",t=>{this.onDrop(t)}))}}function jA(e,t){const{top:n,left:i,width:r,height:o}=t,s=`${Math.round(n)}px`,a=`${Math.round(i)}px`,l=`${Math.round(r)}px`,u=`${Math.round(o)}px`;e.style.top=s,e.style.left=a,e.style.width=l,e.style.height=u,e.style.visibility="visible",(!e.style.transform||e.style.transform==="")&&(e.style.transform="translate3d(0, 0, 0)")}function BA(e,t){const{top:n,left:i,width:r,height:o}=t;e.style.top=n,e.style.left=i,e.style.width=r,e.style.height=o,e.style.visibility="visible",(!e.style.transform||e.style.transform==="")&&(e.style.transform="translate3d(0, 0, 0)")}function WA(e,t){const{top:n,left:i,width:r,height:o}=t,s=`${Math.round(n)}px`,a=`${Math.round(i)}px`,l=`${Math.round(r)}px`,u=`${Math.round(o)}px`;return e.style.top!==s||e.style.left!==a||e.style.width!==l||e.style.height!==u}class HA extends sh{get nativeEvent(){return this.options.nativeEvent}get position(){return this.options.position}constructor(t){super(),this.options=t}}function tm(e){switch(e){case"above":return"top";case"below":return"bottom";case"left":return"left";case"right":return"right";case"within":return"center";default:throw new Error(`invalid direction '${e}'`)}}function UA(e){switch(e){case"top":return"above";case"bottom":return"below";case"left":return"left";case"right":return"right";case"center":return"within";default:throw new Error(`invalid position '${e}'`)}}const ZA={value:20,type:"percentage"},YA={value:50,type:"percentage"},JA=100,qA=100;class on extends ie{get disabled(){return this._disabled}set disabled(t){this._disabled=t}get state(){return this._state}constructor(t,n){super(),this.element=t,this.options=n,this._onDrop=new A,this.onDrop=this._onDrop.event,this._onWillShowOverlay=new A,this.onWillShowOverlay=this._onWillShowOverlay.event,this._disabled=!1,this._acceptedTargetZonesSet=new Set(this.options.acceptedTargetZones),this.dnd=new Kw(this.element,{onDragEnter:()=>{var i,r,o;(o=(r=(i=this.options).getOverrideTarget)===null||r===void 0?void 0:r.call(i))===null||o===void 0||o.getElements()},onDragOver:i=>{var r,o,s,a,l,u,d;on.ACTUAL_TARGET=this;const c=(o=(r=this.options).getOverrideTarget)===null||o===void 0?void 0:o.call(r);if(this._acceptedTargetZonesSet.size===0){if(c)return;this.removeDropTarget();return}const h=(l=(a=(s=this.options).getOverlayOutline)===null||a===void 0?void 0:a.call(s))!==null&&l!==void 0?l:this.element,p=h.offsetWidth,m=h.offsetHeight;if(p===0||m===0)return;const v=i.currentTarget.getBoundingClientRect(),y=((u=i.clientX)!==null&&u!==void 0?u:0)-v.left,f=((d=i.clientY)!==null&&d!==void 0?d:0)-v.top,g=this.calculateQuadrant(this._acceptedTargetZonesSet,y,f,p,m);if(this.isAlreadyUsed(i)||g===null){this.removeDropTarget();return}if(!this.options.canDisplayOverlay(i,g)){if(c)return;this.removeDropTarget();return}const b=new HA({nativeEvent:i,position:g});if(this._onWillShowOverlay.fire(b),b.defaultPrevented){this.removeDropTarget();return}this.markAsUsed(i),c||this.targetElement||(this.targetElement=document.createElement("div"),this.targetElement.className="dv-drop-target-dropzone",this.overlayElement=document.createElement("div"),this.overlayElement.className="dv-drop-target-selection",this._state="center",this.targetElement.appendChild(this.overlayElement),h.classList.add("dv-drop-target"),h.append(this.targetElement)),this.toggleClasses(g,p,m),this._state=g},onDragLeave:()=>{var i,r;!((r=(i=this.options).getOverrideTarget)===null||r===void 0)&&r.call(i)||this.removeDropTarget()},onDragEnd:i=>{var r,o;const s=(o=(r=this.options).getOverrideTarget)===null||o===void 0?void 0:o.call(r);s&&on.ACTUAL_TARGET===this&&this._state&&(i.stopPropagation(),this._onDrop.fire({position:this._state,nativeEvent:i})),this.removeDropTarget(),s==null||s.clear()},onDrop:i=>{var r,o,s;i.preventDefault();const a=this._state;this.removeDropTarget(),(s=(o=(r=this.options).getOverrideTarget)===null||o===void 0?void 0:o.call(r))===null||s===void 0||s.clear(),a&&(i.stopPropagation(),this._onDrop.fire({position:a,nativeEvent:i}))}}),this.addDisposables(this._onDrop,this._onWillShowOverlay,this.dnd)}setTargetZones(t){this._acceptedTargetZonesSet=new Set(t)}setOverlayModel(t){this.options.overlayModel=t}dispose(){this.removeDropTarget(),super.dispose()}markAsUsed(t){t[on.USED_EVENT_ID]=!0}isAlreadyUsed(t){const n=t[on.USED_EVENT_ID];return typeof n=="boolean"&&n}toggleClasses(t,n,i){var r,o,s,a,l,u,d;const c=(o=(r=this.options).getOverrideTarget)===null||o===void 0?void 0:o.call(r);if(!c&&!this.overlayElement)return;const h=n<JA,p=i<qA,m=t==="left",v=t==="right",y=t==="top",f=t==="bottom",g=!h&&v,b=!h&&m,k=!p&&y,D=!p&&f;let _=1;const P=(a=(s=this.options.overlayModel)===null||s===void 0?void 0:s.size)!==null&&a!==void 0?a:YA;if(P.type==="percentage"?_=Ee(P.value,0,100)/100:((g||b)&&(_=Ee(0,P.value,n)/n),(k||D)&&(_=Ee(0,P.value,i)/i)),c){const G=(d=(u=(l=this.options).getOverlayOutline)===null||u===void 0?void 0:u.call(l))!==null&&d!==void 0?d:this.element,z=G.getBoundingClientRect(),F=c.getElements(void 0,G),B=F.root,X=F.overlay,te=B.getBoundingClientRect(),T=z.top-te.top,$=z.left-te.left,re={top:T,left:$,width:n,height:i};if(g?(re.left=$+n*(1-_),re.width=n*_):b?re.width=n*_:k?re.height=i*_:D&&(re.top=T+i*(1-_),re.height=i*_),h&&m&&(re.width=4),h&&v&&(re.left=$+n-4,re.width=4),!WA(X,re))return;jA(X,re),X.className=`dv-drop-target-anchor${this.options.className?` ${this.options.className}`:""}`,J(X,"dv-drop-target-left",m),J(X,"dv-drop-target-right",v),J(X,"dv-drop-target-top",y),J(X,"dv-drop-target-bottom",f),J(X,"dv-drop-target-center",t==="center"),F.changed&&(J(X,"dv-drop-target-anchor-container-changed",!0),setTimeout(()=>{J(X,"dv-drop-target-anchor-container-changed",!1)},10));return}if(!this.overlayElement)return;const C={top:"0px",left:"0px",width:"100%",height:"100%"};g?(C.left=`${100*(1-_)}%`,C.width=`${100*_}%`):b?C.width=`${100*_}%`:k?C.height=`${100*_}%`:D&&(C.top=`${100*(1-_)}%`,C.height=`${100*_}%`),BA(this.overlayElement,C),J(this.overlayElement,"dv-drop-target-small-vertical",p),J(this.overlayElement,"dv-drop-target-small-horizontal",h),J(this.overlayElement,"dv-drop-target-left",m),J(this.overlayElement,"dv-drop-target-right",v),J(this.overlayElement,"dv-drop-target-top",y),J(this.overlayElement,"dv-drop-target-bottom",f),J(this.overlayElement,"dv-drop-target-center",t==="center")}calculateQuadrant(t,n,i,r,o){var s,a;const l=(a=(s=this.options.overlayModel)===null||s===void 0?void 0:s.activationSize)!==null&&a!==void 0?a:ZA;return l.type==="percentage"?KA(t,n,i,r,o,l.value):XA(t,n,i,r,o,l.value)}removeDropTarget(){var t;this.targetElement&&(this._state=void 0,(t=this.targetElement.parentElement)===null||t===void 0||t.classList.remove("dv-drop-target"),this.targetElement.remove(),this.targetElement=void 0,this.overlayElement=void 0)}}on.USED_EVENT_ID="__dockview_droptarget_event_is_used__";function KA(e,t,n,i,r,o){const s=100*t/i,a=100*n/r;return e.has("left")&&s<o?"left":e.has("right")&&s>100-o?"right":e.has("top")&&a<o?"top":e.has("bottom")&&a>100-o?"bottom":e.has("center")?"center":null}function XA(e,t,n,i,r,o){return e.has("left")&&t<o?"left":e.has("right")&&t>i-o?"right":e.has("top")&&n<o?"top":e.has("bottom")&&n>r-o?"bottom":e.has("center")?"center":null}const Rc=Object.keys({disableAutoResizing:void 0,disableDnd:void 0,className:void 0});class QA extends jw{constructor(t,n,i,r){super(),this.nativeEvent=t,this.position=n,this.getData=i,this.panel=r}}class Xw extends sh{constructor(){super()}}class Qw extends ie{get isFocused(){return this._isFocused}get isActive(){return this._isActive}get isVisible(){return this._isVisible}get width(){return this._width}get height(){return this._height}constructor(t,n){super(),this.id=t,this.component=n,this._isFocused=!1,this._isActive=!1,this._isVisible=!0,this._width=0,this._height=0,this._parameters={},this.panelUpdatesDisposable=new tt,this._onDidDimensionChange=new A,this.onDidDimensionsChange=this._onDidDimensionChange.event,this._onDidChangeFocus=new A,this.onDidFocusChange=this._onDidChangeFocus.event,this._onWillFocus=new A,this.onWillFocus=this._onWillFocus.event,this._onDidVisibilityChange=new A,this.onDidVisibilityChange=this._onDidVisibilityChange.event,this._onWillVisibilityChange=new A,this.onWillVisibilityChange=this._onWillVisibilityChange.event,this._onDidActiveChange=new A,this.onDidActiveChange=this._onDidActiveChange.event,this._onActiveChange=new A,this.onActiveChange=this._onActiveChange.event,this._onDidParametersChange=new A,this.onDidParametersChange=this._onDidParametersChange.event,this.addDisposables(this.onDidFocusChange(i=>{this._isFocused=i.isFocused}),this.onDidActiveChange(i=>{this._isActive=i.isActive}),this.onDidVisibilityChange(i=>{this._isVisible=i.isVisible}),this.onDidDimensionsChange(i=>{this._width=i.width,this._height=i.height}),this.panelUpdatesDisposable,this._onDidDimensionChange,this._onDidChangeFocus,this._onDidVisibilityChange,this._onDidActiveChange,this._onWillFocus,this._onActiveChange,this._onWillFocus,this._onWillVisibilityChange,this._onDidParametersChange)}getParameters(){return this._parameters}initialize(t){this.panelUpdatesDisposable.value=this._onDidParametersChange.event(n=>{this._parameters=n,t.update({params:n})})}setVisible(t){this._onWillVisibilityChange.fire({isVisible:t})}setActive(){this._onActiveChange.fire()}updateParameters(t){this._onDidParametersChange.fire(t)}}class ey extends Qw{constructor(t,n){super(t,n),this._onDidConstraintsChangeInternal=new A,this.onDidConstraintsChangeInternal=this._onDidConstraintsChangeInternal.event,this._onDidConstraintsChange=new A({replay:!0}),this.onDidConstraintsChange=this._onDidConstraintsChange.event,this._onDidSizeChange=new A,this.onDidSizeChange=this._onDidSizeChange.event,this.addDisposables(this._onDidConstraintsChangeInternal,this._onDidConstraintsChange,this._onDidSizeChange)}setConstraints(t){this._onDidConstraintsChangeInternal.fire(t)}setSize(t){this._onDidSizeChange.fire(t)}}class eI extends ey{set pane(t){this._pane=t}constructor(t,n){super(t,n),this._onDidExpansionChange=new A({replay:!0}),this.onDidExpansionChange=this._onDidExpansionChange.event,this._onMouseEnter=new A({}),this.onMouseEnter=this._onMouseEnter.event,this._onMouseLeave=new A({}),this.onMouseLeave=this._onMouseLeave.event,this.addDisposables(this._onDidExpansionChange,this._onMouseEnter,this._onMouseLeave)}setExpanded(t){var n;(n=this._pane)===null||n===void 0||n.setExpanded(t)}get isExpanded(){var t;return!!(!((t=this._pane)===null||t===void 0)&&t.isExpanded())}}class ch extends ie{get element(){return this._element}get width(){return this._width}get height(){return this._height}get params(){var t;return(t=this._params)===null||t===void 0?void 0:t.params}constructor(t,n,i){super(),this.id=t,this.component=n,this.api=i,this._height=0,this._width=0,this._element=document.createElement("div"),this._element.tabIndex=-1,this._element.style.outline="none",this._element.style.height="100%",this._element.style.width="100%",this._element.style.overflow="hidden";const r=Bw(this._element);this.addDisposables(this.api,r.onDidFocus(()=>{this.api._onDidChangeFocus.fire({isFocused:!0})}),r.onDidBlur(()=>{this.api._onDidChangeFocus.fire({isFocused:!1})}),r)}focus(){const t=new Xw;this.api._onWillFocus.fire(t),!t.defaultPrevented&&this._element.focus()}layout(t,n){this._width=t,this._height=n,this.api._onDidDimensionChange.fire({width:t,height:n}),this.part&&this._params&&this.part.update(this._params.params)}init(t){this._params=t,this.part=this.getComponent()}update(t){var n,i;this._params=Object.assign(Object.assign({},this._params),{params:Object.assign(Object.assign({},(n=this._params)===null||n===void 0?void 0:n.params),t.params)});for(const r of Object.keys(t.params))t.params[r]===void 0&&delete this._params.params[r];(i=this.part)===null||i===void 0||i.update({params:this._params.params})}toJSON(){var t,n;const i=(n=(t=this._params)===null||t===void 0?void 0:t.params)!==null&&n!==void 0?n:{};return{id:this.id,component:this.component,params:Object.keys(i).length>0?i:void 0}}dispose(){var t;this.api.dispose(),(t=this.part)===null||t===void 0||t.dispose(),super.dispose()}}class tI extends ch{set orientation(t){this._orientation=t}get orientation(){return this._orientation}get minimumSize(){const t=this.headerSize,i=this.isExpanded()?this._minimumBodySize:0;return t+i}get maximumSize(){const t=this.headerSize,i=this.isExpanded()?this._maximumBodySize:0;return t+i}get size(){return this._size}get orthogonalSize(){return this._orthogonalSize}set orthogonalSize(t){this._orthogonalSize=t}get minimumBodySize(){return this._minimumBodySize}set minimumBodySize(t){this._minimumBodySize=typeof t=="number"?t:0}get maximumBodySize(){return this._maximumBodySize}set maximumBodySize(t){this._maximumBodySize=typeof t=="number"?t:Number.POSITIVE_INFINITY}get headerVisible(){return this._headerVisible}set headerVisible(t){this._headerVisible=t,this.header.style.display=t?"":"none"}constructor(t){super(t.id,t.component,new eI(t.id,t.component)),this._onDidChangeExpansionState=new A({replay:!0}),this.onDidChangeExpansionState=this._onDidChangeExpansionState.event,this._onDidChange=new A,this.onDidChange=this._onDidChange.event,this._orthogonalSize=0,this._size=0,this._isExpanded=!1,this.api.pane=this,this.api.initialize(this),this.headerSize=t.headerSize,this.headerComponent=t.headerComponent,this._minimumBodySize=t.minimumBodySize,this._maximumBodySize=t.maximumBodySize,this._isExpanded=t.isExpanded,this._headerVisible=t.isHeaderVisible,this._onDidChangeExpansionState.fire(this.isExpanded()),this._orientation=t.orientation,this.element.classList.add("dv-pane"),this.addDisposables(this.api.onWillVisibilityChange(n=>{const{isVisible:i}=n,{accessor:r}=this._params;r.setVisible(this,i)}),this.api.onDidSizeChange(n=>{this._onDidChange.fire({size:n.size})}),oe(this.element,"mouseenter",n=>{this.api._onMouseEnter.fire(n)}),oe(this.element,"mouseleave",n=>{this.api._onMouseLeave.fire(n)})),this.addDisposables(this._onDidChangeExpansionState,this.onDidChangeExpansionState(n=>{this.api._onDidExpansionChange.fire({isExpanded:n})}),this.api.onDidFocusChange(n=>{this.header&&(n.isFocused?dn(this.header,"focused"):cn(this.header,"focused"))})),this.renderOnce()}setVisible(t){this.api._onDidVisibilityChange.fire({isVisible:t})}setActive(t){this.api._onDidActiveChange.fire({isActive:t})}isExpanded(){return this._isExpanded}setExpanded(t){this._isExpanded!==t&&(this._isExpanded=t,t?(this.animationTimer&&clearTimeout(this.animationTimer),this.body&&this.element.appendChild(this.body)):this.animationTimer=setTimeout(()=>{var n;(n=this.body)===null||n===void 0||n.remove()},200),this._onDidChange.fire(t?{size:this.width}:{}),this._onDidChangeExpansionState.fire(t))}layout(t,n){this._size=t,this._orthogonalSize=n;const[i,r]=this.orientation===K.HORIZONTAL?[t,n]:[n,t];super.layout(i,r)}init(t){var n,i;super.init(t),typeof t.minimumBodySize=="number"&&(this.minimumBodySize=t.minimumBodySize),typeof t.maximumBodySize=="number"&&(this.maximumBodySize=t.maximumBodySize),this.bodyPart=this.getBodyComponent(),this.headerPart=this.getHeaderComponent(),this.bodyPart.init(Object.assign(Object.assign({},t),{api:this.api})),this.headerPart.init(Object.assign(Object.assign({},t),{api:this.api})),(n=this.body)===null||n===void 0||n.append(this.bodyPart.element),(i=this.header)===null||i===void 0||i.append(this.headerPart.element),typeof t.isExpanded=="boolean"&&this.setExpanded(t.isExpanded)}toJSON(){const t=this._params;return Object.assign(Object.assign({},super.toJSON()),{headerComponent:this.headerComponent,title:t.title})}renderOnce(){this.header=document.createElement("div"),this.header.tabIndex=0,this.header.className="dv-pane-header",this.header.style.height=`${this.headerSize}px`,this.header.style.lineHeight=`${this.headerSize}px`,this.header.style.minHeight=`${this.headerSize}px`,this.header.style.maxHeight=`${this.headerSize}px`,this.element.appendChild(this.header),this.body=document.createElement("div"),this.body.className="dv-pane-body",this.element.appendChild(this.body)}getComponent(){return{update:t=>{var n,i;(n=this.bodyPart)===null||n===void 0||n.update({params:t}),(i=this.headerPart)===null||i===void 0||i.update({params:t})},dispose:()=>{var t,n;(t=this.bodyPart)===null||t===void 0||t.dispose(),(n=this.headerPart)===null||n===void 0||n.dispose()}}}}class nI extends tI{constructor(t){super({id:t.id,component:t.component,headerComponent:t.headerComponent,orientation:t.orientation,isExpanded:t.isExpanded,isHeaderVisible:!0,headerSize:t.headerSize,minimumBodySize:t.minimumBodySize,maximumBodySize:t.maximumBodySize}),this._onDidDrop=new A,this.onDidDrop=this._onDidDrop.event,this._onUnhandledDragOverEvent=new A,this.onUnhandledDragOverEvent=this._onUnhandledDragOverEvent.event,this.accessor=t.accessor,this.addDisposables(this._onDidDrop,this._onUnhandledDragOverEvent),t.disableDnd||this.initDragFeatures()}initDragFeatures(){if(!this.header)return;const t=this.id,n=this.accessor.id;this.header.draggable=!0,this.handler=new class extends uh{getData(){return xn.getInstance().setData([new So(n,t)],So.prototype),{dispose:()=>{xn.getInstance().clearData(So.prototype)}}}}(this.header),this.target=new on(this.element,{acceptedTargetZones:["top","bottom"],overlayModel:{activationSize:{type:"percentage",value:50}},canDisplayOverlay:(i,r)=>{const o=oo();if(o&&o.paneId!==this.id&&o.viewId===this.accessor.id)return!0;const s=new QA(i,r,oo,this);return this._onUnhandledDragOverEvent.fire(s),s.isAccepted}}),this.addDisposables(this._onDidDrop,this.handler,this.target,this.target.onDrop(i=>{this.onDrop(i)}))}onDrop(t){const n=oo();if(!n||n.viewId!==this.accessor.id){this._onDidDrop.fire(Object.assign(Object.assign({},t),{panel:this,api:new Zo(this.accessor),getData:oo}));return}const i=this._params.containerApi,r=n.paneId,o=i.getPanel(r);if(!o){this._onDidDrop.fire(Object.assign(Object.assign({},t),{panel:this,getData:oo,api:new Zo(this.accessor)}));return}const s=i.panels,a=s.indexOf(o);let l=i.panels.indexOf(this);(t.position==="left"||t.position==="top")&&(l=Math.max(0,l-1)),(t.position==="right"||t.position==="bottom")&&(a>l&&l++,l=Math.min(s.length-1,l)),i.movePanel(a,l)}}class iI extends ie{get element(){return this._element}constructor(t,n){super(),this.accessor=t,this.group=n,this.disposable=new tt,this._onDidFocus=new A,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new A,this.onDidBlur=this._onDidBlur.event,this._element=document.createElement("div"),this._element.className="dv-content-container",this._element.tabIndex=-1,this.addDisposables(this._onDidFocus,this._onDidBlur);const i=n.dropTargetContainer;this.dropTarget=new on(this.element,{getOverlayOutline:()=>{var r;return((r=t.options.theme)===null||r===void 0?void 0:r.dndPanelOverlay)==="group"?this.element.parentElement:null},className:"dv-drop-target-content",acceptedTargetZones:["top","bottom","left","right","center"],canDisplayOverlay:(r,o)=>{if(this.group.locked==="no-drop-target"||this.group.locked&&o==="center")return!1;const s=st();return!s&&r.shiftKey&&this.group.location.type!=="floating"?!1:s&&s.viewId===this.accessor.id?!0:this.group.canDisplayOverlay(r,o,"content")},getOverrideTarget:i?()=>i.model:void 0}),this.addDisposables(this.dropTarget)}show(){this.element.style.display=""}hide(){this.element.style.display="none"}renderPanel(t,n={asActive:!0}){const i=n.asActive||this.panel&&this.group.isPanelActive(this.panel);this.panel&&this.panel.view.content.element.parentElement===this._element&&this._element.removeChild(this.panel.view.content.element),this.panel=t;let r;switch(t.api.renderer){case"onlyWhenVisible":this.group.renderContainer.detatch(t),this.panel&&i&&this._element.appendChild(this.panel.view.content.element),r=this._element;break;case"always":t.view.content.element.parentElement===this._element&&this._element.removeChild(t.view.content.element),r=this.group.renderContainer.attach({panel:t,referenceContainer:this});break;default:throw new Error(`dockview: invalid renderer type '${t.api.renderer}'`)}if(i){const o=Bw(r);this.focusTracker=o;const s=new ie;s.addDisposables(o,o.onDidFocus(()=>this._onDidFocus.fire()),o.onDidBlur(()=>this._onDidBlur.fire())),this.disposable.value=s}}openPanel(t){this.panel!==t&&this.renderPanel(t)}layout(t,n){}closePanel(){var t;this.panel&&this.panel.api.renderer==="onlyWhenVisible"&&((t=this.panel.view.content.element.parentElement)===null||t===void 0||t.removeChild(this.panel.view.content.element)),this.panel=void 0}dispose(){this.disposable.dispose(),super.dispose()}refreshFocusState(){var t;!((t=this.focusTracker)===null||t===void 0)&&t.refreshState&&this.focusTracker.refreshState()}}function ty(e,t,n){var i,r;dn(t,"dv-dragged"),t.style.top="-9999px",document.body.appendChild(t),e.setDragImage(t,(i=n==null?void 0:n.x)!==null&&i!==void 0?i:0,(r=n==null?void 0:n.y)!==null&&r!==void 0?r:0),setTimeout(()=>{cn(t,"dv-dragged"),t.remove()},0)}class rI extends uh{constructor(t,n,i,r,o){super(t,o),this.accessor=n,this.group=i,this.panel=r,this.panelTransfer=xn.getInstance()}getData(t){return this.panelTransfer.setData([new ai(this.accessor.id,this.group.id,this.panel.id)],ai.prototype),{dispose:()=>{this.panelTransfer.clearData(ai.prototype)}}}}class oI extends ie{get element(){return this._element}constructor(t,n,i){super(),this.panel=t,this.accessor=n,this.group=i,this.content=void 0,this._onPointDown=new A,this.onPointerDown=this._onPointDown.event,this._onDropped=new A,this.onDrop=this._onDropped.event,this._onDragStart=new A,this.onDragStart=this._onDragStart.event,this._onDragEnd=new A,this.onDragEnd=this._onDragEnd.event,this._element=document.createElement("div"),this._element.className="dv-tab",this._element.tabIndex=0,this._element.draggable=!this.accessor.options.disableDnd,J(this.element,"dv-inactive-tab",!0),this.dragHandler=new rI(this._element,this.accessor,this.group,this.panel,!!this.accessor.options.disableDnd),this.dropTarget=new on(this._element,{acceptedTargetZones:["left","right"],overlayModel:{activationSize:{value:50,type:"percentage"}},canDisplayOverlay:(r,o)=>{if(this.group.locked)return!1;const s=st();return s&&this.accessor.id===s.viewId?!(this.accessor.options.tabAnimation==="smooth"&&s.groupId===this.group.id):this.group.model.canDisplayOverlay(r,o,"tab")},getOverrideTarget:()=>{var r;return(r=i.model.dropTargetContainer)===null||r===void 0?void 0:r.model}}),this.onWillShowOverlay=this.dropTarget.onWillShowOverlay,this.addDisposables(this._onPointDown,this._onDropped,this._onDragStart,this._onDragEnd,this.dragHandler.onDragStart(r=>{if(r.dataTransfer){const o=getComputedStyle(this.element),s=this.element.cloneNode(!0);Array.from(o).forEach(a=>s.style.setProperty(a,o.getPropertyValue(a),o.getPropertyPriority(a))),s.style.position="absolute",ty(r.dataTransfer,s,{y:-10,x:30})}this._onDragStart.fire(r),this.accessor.options.tabAnimation==="smooth"&&requestAnimationFrame(()=>{J(this.element,"dv-tab--dragging",!0)})}),oe(this._element,"dragend",r=>{J(this.element,"dv-tab--dragging",!1),this._onDragEnd.fire(r)}),this.dragHandler,oe(this._element,"pointerdown",r=>{this._onPointDown.fire(r)}),this.dropTarget.onDrop(r=>{this._onDropped.fire(r)}),this.dropTarget)}setActive(t){J(this.element,"dv-active-tab",t),J(this.element,"dv-inactive-tab",!t)}setContent(t){this.content&&this._element.removeChild(this.content.element),this.content=t,this._element.appendChild(this.content.element)}updateDragAndDropState(){this._element.draggable=!this.accessor.options.disableDnd,this.dragHandler.setDisabled(!!this.accessor.options.disableDnd)}dispose(){super.dispose()}}class fl{get kind(){return this.options.kind}get nativeEvent(){return this.event.nativeEvent}get position(){return this.event.position}get defaultPrevented(){return this.event.defaultPrevented}get panel(){return this.options.panel}get api(){return this.options.api}get group(){return this.options.group}preventDefault(){this.event.preventDefault()}getData(){return this.options.getData()}constructor(t,n){this.event=t,this.options=n}}class sI extends uh{constructor(t,n,i,r){super(t,r),this.accessor=n,this.group=i,this.panelTransfer=xn.getInstance(),this.addDisposables(oe(t,"pointerdown",o=>{o.shiftKey&&kA(o)},!0))}isCancelled(t){return this.group.api.location.type==="floating"&&!t.shiftKey}getData(t){const n=t.dataTransfer;this.panelTransfer.setData([new ai(this.accessor.id,this.group.id,null)],ai.prototype);const i=window.getComputedStyle(this.el),r=i.getPropertyValue("--dv-activegroup-visiblepanel-tab-background-color"),o=i.getPropertyValue("--dv-activegroup-visiblepanel-tab-color");if(n){const s=document.createElement("div");s.style.backgroundColor=r,s.style.color=o,s.style.padding="2px 8px",s.style.height="24px",s.style.fontSize="11px",s.style.lineHeight="20px",s.style.borderRadius="12px",s.style.position="absolute",s.style.pointerEvents="none",s.style.top="-9999px",s.textContent=`Multiple Panels (${this.group.size})`,ty(n,s,{y:-10,x:30})}return{dispose:()=>{this.panelTransfer.clearData(ai.prototype)}}}}class aI extends ie{get element(){return this._element}constructor(t,n){super(),this.accessor=t,this.group=n,this._onDrop=new A,this.onDrop=this._onDrop.event,this._onDragStart=new A,this.onDragStart=this._onDragStart.event,this._element=document.createElement("div"),this._element.className="dv-void-container",this._element.draggable=!this.accessor.options.disableDnd,J(this._element,"dv-draggable",!this.accessor.options.disableDnd),this.addDisposables(this._onDrop,this._onDragStart,oe(this._element,"pointerdown",()=>{this.accessor.doSetGroupActive(this.group)})),this.handler=new sI(this._element,t,n,!!this.accessor.options.disableDnd),this.dropTarget=new on(this._element,{acceptedTargetZones:["center"],canDisplayOverlay:(i,r)=>{const o=st();return o&&this.accessor.id===o.viewId?!0:n.model.canDisplayOverlay(i,r,"header_space")},getOverrideTarget:()=>{var i;return(i=n.model.dropTargetContainer)===null||i===void 0?void 0:i.model}}),this.onWillShowOverlay=this.dropTarget.onWillShowOverlay,this.addDisposables(this.handler,this.handler.onDragStart(i=>{this._onDragStart.fire(i)}),this.dropTarget.onDrop(i=>{this._onDrop.fire(i)}),this.dropTarget)}updateDragAndDropState(){this._element.draggable=!this.accessor.options.disableDnd,J(this._element,"dv-draggable",!this.accessor.options.disableDnd),this.handler.setDisabled(!!this.accessor.options.disableDnd)}}class ml extends ie{get element(){return this._element}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._scrollOffset=0,this._orientation=t,cn(this._scrollbar,"dv-scrollbar-vertical","dv-scrollbar-horizontal"),t==="vertical"?dn(this._scrollbar,"dv-scrollbar-vertical"):dn(this._scrollbar,"dv-scrollbar-horizontal"))}constructor(t){super(),this.scrollableElement=t,this._scrollOffset=0,this._orientation="horizontal",this._element=document.createElement("div"),this._element.className="dv-scrollable",this._scrollbar=document.createElement("div"),this._scrollbar.className="dv-scrollbar dv-scrollbar-horizontal",this.element.appendChild(t),this.element.appendChild(this._scrollbar),this.addDisposables(oe(this.element,"wheel",n=>{this._scrollOffset+=n.deltaY*ml.MouseWheelSpeed,this.calculateScrollbarStyles()}),oe(this._scrollbar,"pointerdown",n=>{n.preventDefault(),J(this.element,"dv-scrollable-scrolling",!0);const i=this._orientation==="horizontal"?n.clientX:n.clientY,r=this._scrollOffset,o=a=>{const l=this._orientation==="horizontal"?a.clientX-i:a.clientY-i,u=this._orientation==="horizontal"?this.element.clientWidth:this.element.clientHeight,d=this._orientation==="horizontal"?this.scrollableElement.scrollWidth:this.scrollableElement.scrollHeight,c=u/d;this._scrollOffset=r+l/c,this.calculateScrollbarStyles()},s=()=>{J(this.element,"dv-scrollable-scrolling",!1),document.removeEventListener("pointermove",o),document.removeEventListener("pointerup",s),document.removeEventListener("pointercancel",s)};document.addEventListener("pointermove",o),document.addEventListener("pointerup",s),document.addEventListener("pointercancel",s)}),oe(this.element,"scroll",()=>{this.calculateScrollbarStyles()}),oe(this.scrollableElement,"scroll",()=>{this._scrollOffset=this._orientation==="horizontal"?this.scrollableElement.scrollLeft:this.scrollableElement.scrollTop,this.calculateScrollbarStyles()}),hl(this.element,()=>{J(this.element,"dv-scrollable-resizing",!0),this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(()=>{clearTimeout(this._animationTimer),J(this.element,"dv-scrollable-resizing",!1)},500),this.calculateScrollbarStyles()}))}calculateScrollbarStyles(){const t=this._orientation==="horizontal"?this.element.clientWidth:this.element.clientHeight,n=this._orientation==="horizontal"?this.scrollableElement.scrollWidth:this.scrollableElement.scrollHeight;if(n>t){const r=t*(t/n);this._orientation==="horizontal"?(this._scrollbar.style.width=`${r}px`,this._scrollbar.style.height=""):(this._scrollbar.style.height=`${r}px`,this._scrollbar.style.width=""),this._scrollOffset=Ee(this._scrollOffset,0,n-t),this._orientation==="horizontal"?this.scrollableElement.scrollLeft=this._scrollOffset:this.scrollableElement.scrollTop=this._scrollOffset;const o=this._scrollOffset/(n-t);this._orientation==="horizontal"?(this._scrollbar.style.left=`${(t-r)*o}px`,this._scrollbar.style.top=""):(this._scrollbar.style.top=`${(t-r)*o}px`,this._scrollbar.style.left="")}else this._orientation==="horizontal"?(this._scrollbar.style.width="0px",this._scrollbar.style.left="0px"):(this._scrollbar.style.height="0px",this._scrollbar.style.top="0px"),this._scrollOffset=0}}ml.MouseWheelSpeed=1;class lI extends ie{get showTabsOverflowControl(){return this._showTabsOverflowControl}set showTabsOverflowControl(t){if(this._showTabsOverflowControl!=t&&(this._showTabsOverflowControl=t,t)){const n=new _A(this._tabsList);this._observerDisposable.value=new ie(n,n.onDidChange(i=>{const r=i.hasScrollX||i.hasScrollY;this.toggleDropdown({reset:!r})}),oe(this._tabsList,"scroll",()=>{this.toggleDropdown({reset:!1})}))}}get element(){return this._element}get panels(){return this._tabs.map(t=>t.value.panel.id)}get size(){return this._tabs.length}get tabs(){return this._tabs.map(t=>t.value)}get direction(){return this._direction}set direction(t){this._direction!==t&&(this._direction=t,this._scrollbar&&(this._scrollbar.orientation=t),cn(this._tabsList,"dv-horizontal","dv-vertical"),t==="vertical"?dn(this._tabsList,"dv-tabs-container-vertical","dv-vertical"):(cn(this._tabsList,"dv-tabs-container-vertical"),dn(this._tabsList,"dv-horizontal")))}constructor(t,n,i){super(),this.group=t,this.accessor=n,this._observerDisposable=new tt,this._scrollbar=null,this._tabs=[],this.selectedIndex=-1,this._showTabsOverflowControl=!1,this._direction="horizontal",this._animState=null,this._onTabDragStart=new A,this.onTabDragStart=this._onTabDragStart.event,this._onDrop=new A,this.onDrop=this._onDrop.event,this._onWillShowOverlay=new A,this.onWillShowOverlay=this._onWillShowOverlay.event,this._onOverflowTabsChange=new A,this.onOverflowTabsChange=this._onOverflowTabsChange.event,this._tabsList=document.createElement("div"),this._tabsList.className="dv-tabs-container",this.showTabsOverflowControl=i.showTabsOverflowControl,n.options.scrollbars==="native"?this._element=this._tabsList:(this._scrollbar=new ml(this._tabsList),this._scrollbar.orientation=this.direction,this._element=this._scrollbar.element,this.addDisposables(this._scrollbar)),this.addDisposables(this._onOverflowTabsChange,this._observerDisposable,this._onWillShowOverlay,this._onDrop,this._onTabDragStart,oe(this.element,"pointerdown",r=>{if(r.defaultPrevented)return;r.button===0&&this.accessor.doSetGroupActive(this.group)}),oe(this._tabsList,"dragover",r=>{if(!this._animState){if(this.accessor.options.tabAnimation!=="smooth"||this.accessor.options.disableDnd)return;const o=st();if(o&&o.panelId&&o.groupId!==this.group.id)this._animState={sourceTabId:o.panelId,sourceIndex:-1,tabPositions:this.snapshotTabPositions(),currentInsertionIndex:null};else return}this.handleDragOver(r)},!0),oe(this._tabsList,"dragleave",r=>{this._animState&&(r.relatedTarget&&this._tabsList.contains(r.relatedTarget)||(this.resetTabTransforms(),this._animState&&(this._animState.sourceIndex===-1?this._animState=null:this._animState.currentInsertionIndex=null)))},!0),oe(this._tabsList,"dragend",()=>{this.resetDragAnimation()}),oe(this._tabsList,"drop",r=>{if(this.accessor.options.tabAnimation!=="smooth"||!this._animState||this._animState.currentInsertionIndex===null)return;r.stopPropagation(),r.preventDefault();const o=this._animState;this._animState=null;const s=o.currentInsertionIndex,a=o.sourceIndex,l=s-(a!==-1&&a<s?1:0);if(l===a){this.resetTabTransforms();return}const u=this.snapshotTabPositions();this.resetTabTransforms(),this._onDrop.fire({event:r,index:l}),this.runFlipAnimation(u,o.sourceTabId,o.sourceIndex===-1,{from:Math.min(a,l),to:Math.max(a,l)})},!0),Ye.from(()=>{this.resetDragAnimation();for(const{value:r,disposable:o}of this._tabs)o.dispose(),r.dispose();this._tabs=[]}))}indexOf(t){return this._tabs.findIndex(n=>n.value.panel.id===t)}isActive(t){return this.selectedIndex>-1&&this._tabs[this.selectedIndex].value===t}setActivePanel(t){let n=0;for(const i of this._tabs){const r=t.id===i.value.panel.id;if(i.value.setActive(r),r){const o=i.value.element,s=o.parentElement;(n<s.scrollLeft||n+o.clientWidth>s.scrollLeft+s.clientWidth)&&(s.scrollLeft=n)}n+=i.value.element.clientWidth}}openPanel(t,n=this._tabs.length){if(this._tabs.find(s=>s.value.panel.id===t.id))return;const i=new oI(t,this.accessor,this.group);i.setContent(t.view.tab);const r=new ie(i.onDragStart(s=>{this._onTabDragStart.fire({nativeEvent:s,panel:t}),this.accessor.options.tabAnimation==="smooth"&&(this._animState={sourceTabId:t.id,sourceIndex:this._tabs.findIndex(a=>a.value===i),tabPositions:this.snapshotTabPositions(),currentInsertionIndex:null})}),i.onPointerDown(s=>{if(s.defaultPrevented)return;const a=!this.accessor.options.disableFloatingGroups,l=this.group.api.location.type==="floating"&&this.size===1;if(a&&!l&&s.shiftKey){s.preventDefault();const u=this.accessor.getGroupPanel(i.panel.id),{top:d,left:c}=i.element.getBoundingClientRect(),{top:h,left:p}=this.accessor.element.getBoundingClientRect();this.accessor.addFloatingGroup(u,{x:c-p,y:d-h,inDragMode:!0});return}switch(s.button){case 0:this.group.activePanel!==t&&this.group.model.openPanel(t);break}}),i.onDrop(s=>{const a=this._animState;this._animState=null;const l=this._tabs.findIndex(u=>u.value===i);if(a){const u=this.snapshotTabPositions();this.resetTabTransforms(),this._onDrop.fire({event:s.nativeEvent,index:l}),this.runFlipAnimation(u,a.sourceTabId,a.sourceIndex===-1,a.sourceIndex!==-1?{from:Math.min(a.sourceIndex,l),to:Math.max(a.sourceIndex,l)}:void 0)}else this._onDrop.fire({event:s.nativeEvent,index:l})}),i.onWillShowOverlay(s=>{this._onWillShowOverlay.fire(new fl(s,{kind:"tab",panel:this.group.activePanel,api:this.accessor.api,group:this.group,getData:st}))})),o={value:i,disposable:r};this.addTab(o,n),this._animState&&(this._animState.tabPositions=this.snapshotTabPositions(),this.applyDragOverTransforms())}delete(t){var n;((n=this._animState)===null||n===void 0?void 0:n.sourceTabId)===t&&(this.resetTabTransforms(),this._animState=null);const i=this.indexOf(t),r=this._tabs.splice(i,1)[0],{value:o,disposable:s}=r;s.dispose(),o.dispose(),o.element.remove(),this._animState&&(this._animState.tabPositions=this.snapshotTabPositions(),this.applyDragOverTransforms())}addTab(t,n=this._tabs.length){if(n<0||n>this._tabs.length)throw new Error("invalid location");this._tabsList.insertBefore(t.value.element,this._tabsList.children[n]),this._tabs=[...this._tabs.slice(0,n),t,...this._tabs.slice(n)],this.selectedIndex<0&&(this.selectedIndex=n)}toggleDropdown(t){const n=t.reset?[]:this._tabs.filter(i=>!PA(i.value.element,this._tabsList)).map(i=>i.value.panel.id);this._onOverflowTabsChange.fire({tabs:n,reset:t.reset})}updateDragAndDropState(){for(const t of this._tabs)t.value.updateDragAndDropState()}snapshotTabPositions(){const t=new Map;for(const n of this._tabs)t.set(n.value.panel.id,n.value.element.getBoundingClientRect());return t}getAverageTabWidth(){if(this._tabs.length===0)return 0;let t=0;for(const n of this._tabs)t+=n.value.element.getBoundingClientRect().width;return t/this._tabs.length}handleDragOver(t){if(!this._animState)return;const n=t.clientX;let i=null;for(let r=0;r<this._tabs.length;r++){const o=this._tabs[r].value;if(o.panel.id===this._animState.sourceTabId)continue;const s=o.element.getBoundingClientRect(),a=s.left+s.width/2;if(n<a){i=r;break}i=r+1}i!==this._animState.currentInsertionIndex&&(this._animState.currentInsertionIndex=i,this.applyDragOverTransforms())}applyDragOverTransforms(){if(!this._animState||this._animState.currentInsertionIndex===null){this.resetTabTransforms();return}const t=this._animState.currentInsertionIndex,n=this._animState.tabPositions.get(this._animState.sourceTabId),i=n?n.width:this.getAverageTabWidth();let r=!1;for(let o=0;o<this._tabs.length;o++){const s=this._tabs[o].value;if(s.panel.id!==this._animState.sourceTabId)if(!r&&o>=t)s.element.style.marginLeft=`${i}px`,J(s.element,"dv-tab--shifting",!0),r=!0;else if(s.element.style.marginLeft){s.element.style.marginLeft="0px",J(s.element,"dv-tab--shifting",!0);const a=()=>{s.element.style.removeProperty("margin-left"),J(s.element,"dv-tab--shifting",!1),s.element.removeEventListener("transitionend",a)};s.element.addEventListener("transitionend",a)}else J(s.element,"dv-tab--shifting",!1)}}resetTabTransforms(){for(const t of this._tabs)t.value.element.style.removeProperty("margin-left"),t.value.element.style.removeProperty("transform"),J(t.value.element,"dv-tab--shifting",!1)}resetDragAnimation(){this.resetTabTransforms(),this._animState=null;for(const t of this._tabs)J(t.value.element,"dv-tab--dragging",!1)}runFlipAnimation(t,n,i=!1,r){let o=!1;for(let s=0;s<this._tabs.length;s++){const a=this._tabs[s],l=a.value.panel.id;if(l===n){if(i){const h=a.value.element.getBoundingClientRect();a.value.element.style.transform=`translateX(${h.width}px)`,J(a.value.element,"dv-tab--shifting",!0),o=!0}continue}if(r!==void 0&&(s<r.from||s>r.to))continue;const u=t.get(l);if(!u)continue;const d=a.value.element.getBoundingClientRect(),c=u.left-d.left;Math.abs(c)<1||(a.value.element.style.transform=`translateX(${c}px)`,J(a.value.element,"dv-tab--shifting",!0),o=!0)}o&&requestAnimationFrame(()=>{for(const a of this._tabs)a.value.element.style.transform&&(a.value.element.style.transform="");const s=a=>{if(a.propertyName==="transform"){this._tabsList.removeEventListener("transitionend",s);for(const l of this._tabs)J(l.value.element,"dv-tab--shifting",!1)}};this._tabsList.addEventListener("transitionend",s)})}}const dh=e=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttributeNS(null,"height",e.height),t.setAttributeNS(null,"width",e.width),t.setAttributeNS(null,"viewBox",e.viewbox),t.setAttributeNS(null,"aria-hidden","false"),t.setAttributeNS(null,"focusable","false"),t.classList.add("dv-svg");const n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d",e.path),t.appendChild(n),t},uI=()=>dh({width:"11",height:"11",viewbox:"0 0 28 28",path:"M2.1 27.3L0 25.2L11.55 13.65L0 2.1L2.1 0L13.65 11.55L25.2 0L27.3 2.1L15.75 13.65L27.3 25.2L25.2 27.3L13.65 15.75L2.1 27.3Z"}),cI=()=>dh({width:"11",height:"11",viewbox:"0 0 24 15",path:"M12 14.15L0 2.15L2.15 0L12 9.9L21.85 0.0499992L24 2.2L12 14.15Z"}),ny=()=>dh({width:"11",height:"11",viewbox:"0 0 15 25",path:"M2.15 24.1L0 21.95L9.9 12.05L0 2.15L2.15 0L14.2 12.05L2.15 24.1Z"});function dI(){const e=document.createElement("div");e.className="dv-tabs-overflow-dropdown-default";const t=document.createElement("span");t.textContent="";const n=ny();return e.appendChild(n),e.appendChild(t),{element:e,update:i=>{t.textContent=`${i.tabs}`}}}class hI extends ie{get onTabDragStart(){return this.tabs.onTabDragStart}get panels(){return this.tabs.panels}get size(){return this.tabs.size}get hidden(){return this._hidden}set hidden(t){this._hidden=t,this.element.style.display=t?"none":""}get direction(){return this._direction}set direction(t){this._direction=t,t==="vertical"?(dn(this._element,"dv-groupview-header-vertical"),dn(this.rightActionsContainer,"dv-right-actions-container-vertical"),this.tabs.direction=t):(cn(this._element,"dv-groupview-header-vertical"),cn(this.rightActionsContainer,"dv-right-actions-container-vertical"),this.tabs.direction=t)}get element(){return this._element}constructor(t,n){super(),this.accessor=t,this.group=n,this._hidden=!1,this._direction="horizontal",this.dropdownPart=null,this._overflowTabs=[],this._dropdownDisposable=new tt,this._onDrop=new A,this.onDrop=this._onDrop.event,this._onGroupDragStart=new A,this.onGroupDragStart=this._onGroupDragStart.event,this._onWillShowOverlay=new A,this.onWillShowOverlay=this._onWillShowOverlay.event,this._element=document.createElement("div"),this._element.className="dv-tabs-and-actions-container",J(this._element,"dv-full-width-single-tab",this.accessor.options.singleTabMode==="fullwidth"),this.rightActionsContainer=document.createElement("div"),this.rightActionsContainer.className="dv-right-actions-container",this.leftActionsContainer=document.createElement("div"),this.leftActionsContainer.className="dv-left-actions-container",this.preActionsContainer=document.createElement("div"),this.preActionsContainer.className="dv-pre-actions-container",this.tabs=new lI(n,t,{showTabsOverflowControl:!t.options.disableTabsOverflowList}),this.voidContainer=new aI(this.accessor,this.group),this._element.appendChild(this.preActionsContainer),this._element.appendChild(this.tabs.element),this._element.appendChild(this.leftActionsContainer),this._element.appendChild(this.voidContainer.element),this._element.appendChild(this.rightActionsContainer),this.addDisposables(this.tabs.onDrop(i=>this._onDrop.fire(i)),this.tabs.onWillShowOverlay(i=>this._onWillShowOverlay.fire(i)),t.onDidOptionsChange(()=>{this.tabs.showTabsOverflowControl=!t.options.disableTabsOverflowList}),this.tabs.onOverflowTabsChange(i=>{this.toggleDropdown(i)}),this.tabs,this._onWillShowOverlay,this._onDrop,this._onGroupDragStart,this.voidContainer,this.voidContainer.onDragStart(i=>{this._onGroupDragStart.fire({nativeEvent:i,group:this.group})}),this.voidContainer.onDrop(i=>{this._onDrop.fire({event:i.nativeEvent,index:this.tabs.size})}),this.voidContainer.onWillShowOverlay(i=>{this._onWillShowOverlay.fire(new fl(i,{kind:"header_space",panel:this.group.activePanel,api:this.accessor.api,group:this.group,getData:st}))}),oe(this.voidContainer.element,"pointerdown",i=>{if(i.defaultPrevented)return;if(!this.accessor.options.disableFloatingGroups&&i.shiftKey&&this.group.api.location.type!=="floating"){i.preventDefault();const{top:o,left:s}=this.element.getBoundingClientRect(),{top:a,left:l}=this.accessor.element.getBoundingClientRect();this.accessor.addFloatingGroup(this.group,{x:s-l+20,y:o-a+20,inDragMode:!0})}}))}show(){this.hidden||(this.element.style.display="")}hide(){this._element.style.display="none"}setRightActionsElement(t){this.rightActions!==t&&(this.rightActions&&(this.rightActions.remove(),this.rightActions=void 0),t&&(this.rightActionsContainer.appendChild(t),this.rightActions=t))}setLeftActionsElement(t){this.leftActions!==t&&(this.leftActions&&(this.leftActions.remove(),this.leftActions=void 0),t&&(this.leftActionsContainer.appendChild(t),this.leftActions=t))}setPrefixActionsElement(t){this.preActions!==t&&(this.preActions&&(this.preActions.remove(),this.preActions=void 0),t&&(this.preActionsContainer.appendChild(t),this.preActions=t))}isActive(t){return this.tabs.isActive(t)}indexOf(t){return this.tabs.indexOf(t)}setActive(t){}delete(t){this.tabs.delete(t),this.updateClassnames()}setActivePanel(t){this.tabs.setActivePanel(t)}openPanel(t,n=this.tabs.size){this.tabs.openPanel(t,n),this.updateClassnames()}closePanel(t){this.delete(t.id)}updateClassnames(){J(this._element,"dv-single-tab",this.size===1)}toggleDropdown(t){const n=t.reset?[]:t.tabs;if(this._overflowTabs=n,this._overflowTabs.length>0&&this.dropdownPart){this.dropdownPart.update({tabs:n.length});return}if(this._overflowTabs.length===0){this._dropdownDisposable.dispose();return}const i=document.createElement("div");i.className="dv-tabs-overflow-dropdown-root";const r=dI();r.update({tabs:n.length}),this.dropdownPart=r,i.appendChild(r.element),this.rightActionsContainer.prepend(i),this._dropdownDisposable.value=new ie(Ye.from(()=>{var o,s;i.remove(),(s=(o=this.dropdownPart)===null||o===void 0?void 0:o.dispose)===null||s===void 0||s.call(o),this.dropdownPart=null}),oe(i,"pointerdown",o=>{o.preventDefault()},{capture:!0}),oe(i,"click",o=>{const s=document.createElement("div");s.style.overflow="auto",s.className="dv-tabs-overflow-container";for(const l of this.tabs.tabs.filter(u=>this._overflowTabs.includes(u.panel.id))){const u=this.group.panels.find(p=>p===l.panel),c=u.view.createTabRenderer("headerOverflow").element,h=document.createElement("div");J(h,"dv-tab",!0),J(h,"dv-active-tab",u.api.isActive),J(h,"dv-inactive-tab",!u.api.isActive),h.addEventListener("click",p=>{this.accessor.popupService.close(),!p.defaultPrevented&&(l.element.scrollIntoView(),l.panel.api.setActive())}),h.appendChild(c),s.appendChild(h)}const a=OA(i);this.accessor.popupService.openPopover(s,{x:o.clientX,y:o.clientY,zIndex:a!=null&&a.style.zIndex?`calc(${a.style.zIndex} * 2)`:void 0})}))}updateDragAndDropState(){this.tabs.updateDragAndDropState(),this.voidContainer.updateDragAndDropState()}}class iy extends jw{constructor(t,n,i,r,o){super(),this.nativeEvent=t,this.target=n,this.position=i,this.getData=r,this.group=o}}const Lc=Object.keys({disableAutoResizing:void 0,hideBorders:void 0,singleTabMode:void 0,disableFloatingGroups:void 0,floatingGroupBounds:void 0,popoutUrl:void 0,defaultRenderer:void 0,defaultHeaderPosition:void 0,debug:void 0,rootOverlayModel:void 0,locked:void 0,disableDnd:void 0,className:void 0,noPanelsOverlay:void 0,dndEdges:void 0,theme:void 0,disableTabsOverflowList:void 0,scrollbars:void 0,tabAnimation:void 0});function pI(e){return!!e.referencePanel}function fI(e){return!!e.referenceGroup}function mI(e){return!!e.referencePanel}function vI(e){return!!e.referenceGroup}class hh extends sh{get nativeEvent(){return this.options.nativeEvent}get position(){return this.options.position}get panel(){return this.options.panel}get group(){return this.options.group}get api(){return this.options.api}constructor(t){super(),this.options=t}getData(){return this.options.getData()}}class ry extends hh{get kind(){return this._kind}constructor(t){super(t),this._kind=t.kind}}class gI extends ie{get element(){throw new Error("dockview: not supported")}get activePanel(){return this._activePanel}get locked(){return this._locked}set locked(t){this._locked=t,J(this.container,"dv-locked-groupview",t==="no-drop-target"||t)}get isActive(){return this._isGroupActive}get panels(){return this._panels}get size(){return this._panels.length}get isEmpty(){return this._panels.length===0}get hasWatermark(){return!!(this.watermark&&this.container.contains(this.watermark.element))}get header(){return this.tabsContainer}get isContentFocused(){return document.activeElement?Ec(document.activeElement,this.contentContainer.element):!1}get headerPosition(){var t;return(t=this._headerPosition)!==null&&t!==void 0?t:"top"}set headerPosition(t){var n;this._headerPosition=t,cn(this.container,"dv-groupview-header-top","dv-groupview-header-bottom","dv-groupview-header-left","dv-groupview-header-right"),dn(this.container,`dv-groupview-header-${t}`);const i=t==="top"||t==="bottom"?"horizontal":"vertical";this.tabsContainer.direction=i,this.header.direction=i,!((n=this._activePanel)===null||n===void 0)&&n.layout&&this._activePanel.layout(this._width,this._height),(this._leftHeaderActions||this._rightHeaderActions||this._prefixHeaderActions)&&this.updateHeaderActions()}get location(){return this._location}set location(t){switch(this._location=t,J(this.container,"dv-groupview-floating",!1),J(this.container,"dv-groupview-popout",!1),t.type){case"grid":this.contentContainer.dropTarget.setTargetZones(["top","bottom","left","right","center"]);break;case"floating":this.contentContainer.dropTarget.setTargetZones(["center"]),this.contentContainer.dropTarget.setTargetZones(t?["center"]:["top","bottom","left","right","center"]),J(this.container,"dv-groupview-floating",!0);break;case"popout":this.contentContainer.dropTarget.setTargetZones(["center"]),J(this.container,"dv-groupview-popout",!0);break}this.groupPanel.api._onDidLocationChange.fire({location:this.location})}constructor(t,n,i,r,o){var s,a;super(),this.container=t,this.accessor=n,this.id=i,this.options=r,this.groupPanel=o,this._isGroupActive=!1,this._locked=!1,this._rightHeaderActionsDisposable=new tt,this._leftHeaderActionsDisposable=new tt,this._prefixHeaderActionsDisposable=new tt,this._location={type:"grid"},this.mostRecentlyUsed=[],this._overwriteRenderContainer=null,this._overwriteDropTargetContainer=null,this._onDidChange=new A,this.onDidChange=this._onDidChange.event,this._width=0,this._height=0,this._panels=[],this._panelDisposables=new Map,this._onMove=new A,this.onMove=this._onMove.event,this._onDidDrop=new A,this.onDidDrop=this._onDidDrop.event,this._onWillDrop=new A,this.onWillDrop=this._onWillDrop.event,this._onWillShowOverlay=new A,this.onWillShowOverlay=this._onWillShowOverlay.event,this._onTabDragStart=new A,this.onTabDragStart=this._onTabDragStart.event,this._onGroupDragStart=new A,this.onGroupDragStart=this._onGroupDragStart.event,this._onDidAddPanel=new A,this.onDidAddPanel=this._onDidAddPanel.event,this._onDidPanelTitleChange=new A,this.onDidPanelTitleChange=this._onDidPanelTitleChange.event,this._onDidPanelParametersChange=new A,this.onDidPanelParametersChange=this._onDidPanelParametersChange.event,this._onDidRemovePanel=new A,this.onDidRemovePanel=this._onDidRemovePanel.event,this._onDidActivePanelChange=new A,this.onDidActivePanelChange=this._onDidActivePanelChange.event,this._onUnhandledDragOverEvent=new A,this.onUnhandledDragOverEvent=this._onUnhandledDragOverEvent.event,J(this.container,"dv-groupview",!0),this._api=new Na(this.accessor),this.tabsContainer=new hI(this.accessor,this.groupPanel),this.contentContainer=new iI(this.accessor,this),t.append(this.tabsContainer.element,this.contentContainer.element),this.header.hidden=!!r.hideHeader,this.locked=(s=r.locked)!==null&&s!==void 0?s:!1,this.headerPosition=(a=r.headerPosition)!==null&&a!==void 0?a:n.defaultHeaderPosition,this.addDisposables(this._onTabDragStart,this._onGroupDragStart,this._onWillShowOverlay,this._rightHeaderActionsDisposable,this._leftHeaderActionsDisposable,this._prefixHeaderActionsDisposable,this.tabsContainer.onTabDragStart(l=>{this._onTabDragStart.fire(l)}),this.tabsContainer.onGroupDragStart(l=>{this._onGroupDragStart.fire(l)}),this.tabsContainer.onDrop(l=>{this.handleDropEvent("header",l.event,"center",l.index)}),this.contentContainer.onDidFocus(()=>{this.accessor.doSetGroupActive(this.groupPanel)}),this.contentContainer.onDidBlur(()=>{}),this.contentContainer.dropTarget.onDrop(l=>{this.handleDropEvent("content",l.nativeEvent,l.position)}),this.tabsContainer.onWillShowOverlay(l=>{this._onWillShowOverlay.fire(l)}),this.contentContainer.dropTarget.onWillShowOverlay(l=>{this._onWillShowOverlay.fire(new fl(l,{kind:"content",panel:this.activePanel,api:this._api,group:this.groupPanel,getData:st}))}),this._onMove,this._onDidChange,this._onDidDrop,this._onWillDrop,this._onDidAddPanel,this._onDidRemovePanel,this._onDidActivePanelChange,this._onUnhandledDragOverEvent,this._onDidPanelTitleChange,this._onDidPanelParametersChange)}focusContent(){this.contentContainer.element.focus()}set renderContainer(t){this.panels.forEach(n=>{this.renderContainer.detatch(n)}),this._overwriteRenderContainer=t,this.panels.forEach(n=>{this.rerender(n)})}get renderContainer(){var t;return(t=this._overwriteRenderContainer)!==null&&t!==void 0?t:this.accessor.overlayRenderContainer}set dropTargetContainer(t){this._overwriteDropTargetContainer=t}get dropTargetContainer(){var t;return(t=this._overwriteDropTargetContainer)!==null&&t!==void 0?t:this.accessor.rootDropTargetContainer}initialize(){this.options.panels&&this.options.panels.forEach(t=>{this.doAddPanel(t)}),this.options.activePanel&&this.openPanel(this.options.activePanel),this.setActive(this.isActive,!0),this.updateContainer(),this.updateHeaderActions()}updateHeaderActions(){this.accessor.options.createRightHeaderActionComponent?(this._rightHeaderActions=this.accessor.options.createRightHeaderActionComponent(this.groupPanel),this._rightHeaderActionsDisposable.value=this._rightHeaderActions,this._rightHeaderActions.init({containerApi:this._api,api:this.groupPanel.api,group:this.groupPanel}),this.tabsContainer.setRightActionsElement(this._rightHeaderActions.element)):(this._rightHeaderActions=void 0,this._rightHeaderActionsDisposable.dispose(),this.tabsContainer.setRightActionsElement(void 0)),this.accessor.options.createLeftHeaderActionComponent?(this._leftHeaderActions=this.accessor.options.createLeftHeaderActionComponent(this.groupPanel),this._leftHeaderActionsDisposable.value=this._leftHeaderActions,this._leftHeaderActions.init({containerApi:this._api,api:this.groupPanel.api,group:this.groupPanel}),this.tabsContainer.setLeftActionsElement(this._leftHeaderActions.element)):(this._leftHeaderActions=void 0,this._leftHeaderActionsDisposable.dispose(),this.tabsContainer.setLeftActionsElement(void 0)),this.accessor.options.createPrefixHeaderActionComponent?(this._prefixHeaderActions=this.accessor.options.createPrefixHeaderActionComponent(this.groupPanel),this._prefixHeaderActionsDisposable.value=this._prefixHeaderActions,this._prefixHeaderActions.init({containerApi:this._api,api:this.groupPanel.api,group:this.groupPanel}),this.tabsContainer.setPrefixActionsElement(this._prefixHeaderActions.element)):(this._prefixHeaderActions=void 0,this._prefixHeaderActionsDisposable.dispose(),this.tabsContainer.setPrefixActionsElement(void 0))}rerender(t){this.contentContainer.renderPanel(t,{asActive:!1})}indexOf(t){return this.tabsContainer.indexOf(t.id)}toJSON(){var t;const n={views:this.tabsContainer.panels,activeView:(t=this._activePanel)===null||t===void 0?void 0:t.id,id:this.id};return this.locked!==!1&&(n.locked=this.locked),this.header.hidden&&(n.hideHeader=!0),this.headerPosition!=="top"&&(n.headerPosition=this.headerPosition),n}moveToNext(t){t||(t={}),t.panel||(t.panel=this.activePanel);const n=t.panel?this.panels.indexOf(t.panel):-1;let i;if(n<this.panels.length-1)i=n+1;else if(!t.suppressRoll)i=0;else return;this.openPanel(this.panels[i])}moveToPrevious(t){if(t||(t={}),t.panel||(t.panel=this.activePanel),!t.panel)return;const n=this.panels.indexOf(t.panel);let i;if(n>0)i=n-1;else if(!t.suppressRoll)i=this.panels.length-1;else return;this.openPanel(this.panels[i])}containsPanel(t){return this.panels.includes(t)}init(t){}update(t){}focus(){var t;(t=this._activePanel)===null||t===void 0||t.focus()}openPanel(t,n={}){(typeof n.index!="number"||n.index>this.panels.length)&&(n.index=this.panels.length);const i=!!n.skipSetActive;if(t.updateParentGroup(this.groupPanel,{skipSetActive:n.skipSetActive}),this.doAddPanel(t,n.index,{skipSetActive:i}),this._activePanel===t){this.contentContainer.renderPanel(t,{asActive:!0});return}i||this.doSetActivePanel(t),n.skipSetGroupActive||this.accessor.doSetGroupActive(this.groupPanel),n.skipSetActive||this.updateContainer()}removePanel(t,n={skipSetActive:!1}){const i=typeof t=="string"?t:t.id,r=this._panels.find(o=>o.id===i);if(!r)throw new Error("invalid operation");return this._removePanel(r,n)}closeAllPanels(){if(this.panels.length>0){const t=[...this.panels];for(const n of t)this.doClose(n)}else this.accessor.removeGroup(this.groupPanel)}closePanel(t){this.doClose(t)}doClose(t){const n=this.panels.length===1&&this.accessor.groups.length===1;this.accessor.removePanel(t,n&&this.accessor.options.noPanelsOverlay==="emptyGroup"?{removeEmptyGroup:!1}:void 0)}isPanelActive(t){return this._activePanel===t}updateActions(t){this.tabsContainer.setRightActionsElement(t)}setActive(t,n=!1){!n&&this.isActive===t||(this._isGroupActive=t,J(this.container,"dv-active-group",t),J(this.container,"dv-inactive-group",!t),this.tabsContainer.setActive(this.isActive),!this._activePanel&&this.panels.length>0&&this.doSetActivePanel(this.panels[0]),this.updateContainer())}layout(t,n){var i;this._width=t,this._height=n,this.contentContainer.layout(this._width,this._height),!((i=this._activePanel)===null||i===void 0)&&i.layout&&this._activePanel.layout(this._width,this._height)}_removePanel(t,n){const i=this._activePanel===t;if(this.doRemovePanel(t),i&&this.panels.length>0){const r=this.mostRecentlyUsed[0];this.openPanel(r,{skipSetActive:n.skipSetActive,skipSetGroupActive:n.skipSetActiveGroup})}return this._activePanel&&this.panels.length===0&&this.doSetActivePanel(void 0),n.skipSetActive||this.updateContainer(),t}doRemovePanel(t){const n=this.panels.indexOf(t);if(this._activePanel===t&&this.contentContainer.closePanel(),this.tabsContainer.delete(t.id),this._panels.splice(n,1),this.mostRecentlyUsed.includes(t)){const r=this.mostRecentlyUsed.indexOf(t);this.mostRecentlyUsed.splice(r,1)}const i=this._panelDisposables.get(t.id);i&&(i.dispose(),this._panelDisposables.delete(t.id)),this._onDidRemovePanel.fire({panel:t})}doAddPanel(t,n=this.panels.length,i={skipSetActive:!1}){const o=this._panels.indexOf(t)>-1;this.tabsContainer.show(),this.contentContainer.show(),this.tabsContainer.openPanel(t,n),i.skipSetActive?t.api.renderer==="always"&&this.contentContainer.renderPanel(t,{asActive:!1}):this.contentContainer.openPanel(t),!o&&(this.updateMru(t),this.panels.splice(n,0,t),this._panelDisposables.set(t.id,new ie(t.api.onDidTitleChange(s=>this._onDidPanelTitleChange.fire(s)),t.api.onDidParametersChange(s=>this._onDidPanelParametersChange.fire(s)))),this._onDidAddPanel.fire({panel:t}))}doSetActivePanel(t){this._activePanel!==t&&(this._activePanel=t,t&&(this.tabsContainer.setActivePanel(t),this.contentContainer.openPanel(t),t.layout(this._width,this._height),this.updateMru(t),this.contentContainer.refreshFocusState(),this._onDidActivePanelChange.fire({panel:t})))}updateMru(t){this.mostRecentlyUsed.includes(t)&&this.mostRecentlyUsed.splice(this.mostRecentlyUsed.indexOf(t),1),this.mostRecentlyUsed=[t,...this.mostRecentlyUsed]}updateContainer(){var t,n;if(this.panels.forEach(i=>i.runEvents()),this.isEmpty&&!this.watermark){const i=this.accessor.createWatermarkComponent();i.init({containerApi:this._api,group:this.groupPanel}),this.watermark=i,oe(this.watermark.element,"pointerdown",()=>{this.isActive||this.accessor.doSetGroupActive(this.groupPanel)}),this.contentContainer.element.appendChild(this.watermark.element)}!this.isEmpty&&this.watermark&&(this.watermark.element.remove(),(n=(t=this.watermark).dispose)===null||n===void 0||n.call(t),this.watermark=void 0)}canDisplayOverlay(t,n,i){const r=new iy(t,i,n,st,this.accessor.getPanel(this.id));return this._onUnhandledDragOverEvent.fire(r),r.isAccepted}handleDropEvent(t,n,i,r){if(this.locked==="no-drop-target")return;function o(){switch(t){case"header":return typeof r=="number"?"tab":"header_space";case"content":return"content"}}const s=typeof r=="number"?this.panels[r]:void 0,a=new ry({nativeEvent:n,position:i,panel:s,getData:()=>st(),kind:o(),group:this.groupPanel,api:this._api});if(this._onWillDrop.fire(a),a.defaultPrevented)return;const l=st();if(l&&l.viewId===this.accessor.id){if(t==="content"&&l.groupId===this.id&&(i==="center"||l.panelId===null)||t==="header"&&l.groupId===this.id&&l.panelId===null)return;if(l.panelId===null){const{groupId:p}=l;this._onMove.fire({target:i,groupId:p,index:r});return}if(this.tabsContainer.indexOf(l.panelId)!==-1&&this.tabsContainer.size===1)return;const{groupId:d,panelId:c}=l;if(this.id===d&&!i&&this.tabsContainer.indexOf(c)===r)return;this._onMove.fire({target:i,groupId:l.groupId,itemId:l.panelId,index:r})}else this._onDidDrop.fire(new hh({nativeEvent:n,position:i,panel:s,getData:()=>st(),group:this.groupPanel,api:this._api}))}updateDragAndDropState(){this.tabsContainer.updateDragAndDropState()}dispose(){var t,n,i;super.dispose(),(t=this.watermark)===null||t===void 0||t.element.remove(),(i=(n=this.watermark)===null||n===void 0?void 0:n.dispose)===null||i===void 0||i.call(n),this.watermark=void 0;for(const r of this.panels)r.dispose();this.tabsContainer.dispose(),this.contentContainer.dispose()}}class ph extends Qw{constructor(t,n,i){super(t,n),this._onDidConstraintsChangeInternal=new A,this.onDidConstraintsChangeInternal=this._onDidConstraintsChangeInternal.event,this._onDidConstraintsChange=new A,this.onDidConstraintsChange=this._onDidConstraintsChange.event,this._onDidSizeChange=new A,this.onDidSizeChange=this._onDidSizeChange.event,this.addDisposables(this._onDidConstraintsChangeInternal,this._onDidConstraintsChange,this._onDidSizeChange),i&&this.initialize(i)}setConstraints(t){this._onDidConstraintsChangeInternal.fire(t)}setSize(t){this._onDidSizeChange.fire(t)}}class oy extends ch{get priority(){return this._priority}get snap(){return this._snap}get minimumWidth(){return this.__minimumWidth()}get minimumHeight(){return this.__minimumHeight()}get maximumHeight(){return this.__maximumHeight()}get maximumWidth(){return this.__maximumWidth()}__minimumWidth(){const t=typeof this._minimumWidth=="function"?this._minimumWidth():this._minimumWidth;return t!==this._evaluatedMinimumWidth&&(this._evaluatedMinimumWidth=t,this.updateConstraints()),t}__maximumWidth(){const t=typeof this._maximumWidth=="function"?this._maximumWidth():this._maximumWidth;return t!==this._evaluatedMaximumWidth&&(this._evaluatedMaximumWidth=t,this.updateConstraints()),t}__minimumHeight(){const t=typeof this._minimumHeight=="function"?this._minimumHeight():this._minimumHeight;return t!==this._evaluatedMinimumHeight&&(this._evaluatedMinimumHeight=t,this.updateConstraints()),t}__maximumHeight(){const t=typeof this._maximumHeight=="function"?this._maximumHeight():this._maximumHeight;return t!==this._evaluatedMaximumHeight&&(this._evaluatedMaximumHeight=t,this.updateConstraints()),t}get isActive(){return this.api.isActive}get isVisible(){return this.api.isVisible}constructor(t,n,i,r){super(t,n,r??new ph(t,n)),this._evaluatedMinimumWidth=0,this._evaluatedMaximumWidth=Number.MAX_SAFE_INTEGER,this._evaluatedMinimumHeight=0,this._evaluatedMaximumHeight=Number.MAX_SAFE_INTEGER,this._minimumWidth=0,this._minimumHeight=0,this._maximumWidth=Number.MAX_SAFE_INTEGER,this._maximumHeight=Number.MAX_SAFE_INTEGER,this._snap=!1,this._onDidChange=new A,this.onDidChange=this._onDidChange.event,typeof(i==null?void 0:i.minimumWidth)=="number"&&(this._minimumWidth=i.minimumWidth),typeof(i==null?void 0:i.maximumWidth)=="number"&&(this._maximumWidth=i.maximumWidth),typeof(i==null?void 0:i.minimumHeight)=="number"&&(this._minimumHeight=i.minimumHeight),typeof(i==null?void 0:i.maximumHeight)=="number"&&(this._maximumHeight=i.maximumHeight),this.api.initialize(this),this.addDisposables(this.api.onWillVisibilityChange(o=>{const{isVisible:s}=o,{accessor:a}=this._params;a.setVisible(this,s)}),this.api.onActiveChange(()=>{const{accessor:o}=this._params;o.doSetGroupActive(this)}),this.api.onDidConstraintsChangeInternal(o=>{(typeof o.minimumWidth=="number"||typeof o.minimumWidth=="function")&&(this._minimumWidth=o.minimumWidth),(typeof o.minimumHeight=="number"||typeof o.minimumHeight=="function")&&(this._minimumHeight=o.minimumHeight),(typeof o.maximumWidth=="number"||typeof o.maximumWidth=="function")&&(this._maximumWidth=o.maximumWidth),(typeof o.maximumHeight=="number"||typeof o.maximumHeight=="function")&&(this._maximumHeight=o.maximumHeight)}),this.api.onDidSizeChange(o=>{this._onDidChange.fire({height:o.height,width:o.width})}),this._onDidChange)}setVisible(t){this.api._onDidVisibilityChange.fire({isVisible:t})}setActive(t){this.api._onDidActiveChange.fire({isActive:t})}init(t){t.maximumHeight&&(this._maximumHeight=t.maximumHeight),t.minimumHeight&&(this._minimumHeight=t.minimumHeight),t.maximumWidth&&(this._maximumWidth=t.maximumWidth),t.minimumWidth&&(this._minimumWidth=t.minimumWidth),this._priority=t.priority,this._snap=!!t.snap,super.init(t),typeof t.isVisible=="boolean"&&this.setVisible(t.isVisible)}updateConstraints(){this.api._onDidConstraintsChange.fire({minimumWidth:this._evaluatedMinimumWidth,maximumWidth:this._evaluatedMaximumWidth,minimumHeight:this._evaluatedMinimumHeight,maximumHeight:this._evaluatedMaximumHeight})}toJSON(){const t=super.toJSON(),n=r=>r===Number.MAX_SAFE_INTEGER?void 0:r,i=r=>r<=0?void 0:r;return Object.assign(Object.assign({},t),{minimumHeight:i(this.minimumHeight),maximumHeight:n(this.maximumHeight),minimumWidth:i(this.minimumWidth),maximumWidth:n(this.maximumWidth),snap:this.snap,priority:this.priority})}}const ki="dockview: DockviewGroupPanelApiImpl not initialized";class bI extends ph{get location(){if(!this._group)throw new Error(ki);return this._group.model.location}constructor(t,n){super(t,"__dockviewgroup__"),this.accessor=n,this._onDidLocationChange=new A,this.onDidLocationChange=this._onDidLocationChange.event,this._onDidActivePanelChange=new A,this.onDidActivePanelChange=this._onDidActivePanelChange.event,this.addDisposables(this._onDidLocationChange,this._onDidActivePanelChange,this._onDidVisibilityChange.event(i=>{i.isVisible&&this._pendingSize&&(super.setSize(this._pendingSize),this._pendingSize=void 0)}))}setSize(t){this._pendingSize=Object.assign({},t),super.setSize(t)}close(){if(this._group)return this.accessor.removeGroup(this._group)}getWindow(){return this.location.type==="popout"?this.location.getWindow():window}setHeaderPosition(t){if(!this._group)throw new Error(ki);this._group.model.headerPosition=t}getHeaderPosition(){if(!this._group)throw new Error(ki);return this._group.model.headerPosition}moveTo(t){var n,i,r,o;if(!this._group)throw new Error(ki);const s=(n=t.group)!==null&&n!==void 0?n:this.accessor.addGroup({direction:UA((i=t.position)!==null&&i!==void 0?i:"right"),skipSetActive:(r=t.skipSetActive)!==null&&r!==void 0?r:!1});this.accessor.moveGroupOrPanel({from:{groupId:this._group.id},to:{group:s,position:t.group&&(o=t.position)!==null&&o!==void 0?o:"center",index:t.index},skipSetActive:t.skipSetActive})}maximize(){if(!this._group)throw new Error(ki);this.location.type==="grid"&&this.accessor.maximizeGroup(this._group)}isMaximized(){if(!this._group)throw new Error(ki);return this.accessor.isMaximizedGroup(this._group)}exitMaximized(){if(!this._group)throw new Error(ki);this.isMaximized()&&this.accessor.exitMaximizedGroup()}initialize(t){this._group=t}}const wI=100,yI=100;class nm extends oy{get minimumWidth(){var t;if(typeof this._explicitConstraints.minimumWidth=="number")return this._explicitConstraints.minimumWidth;const n=(t=this.activePanel)===null||t===void 0?void 0:t.minimumWidth;return typeof n=="number"?n:super.__minimumWidth()}get minimumHeight(){var t;if(typeof this._explicitConstraints.minimumHeight=="number")return this._explicitConstraints.minimumHeight;const n=(t=this.activePanel)===null||t===void 0?void 0:t.minimumHeight;return typeof n=="number"?n:super.__minimumHeight()}get maximumWidth(){var t;if(typeof this._explicitConstraints.maximumWidth=="number")return this._explicitConstraints.maximumWidth;const n=(t=this.activePanel)===null||t===void 0?void 0:t.maximumWidth;return typeof n=="number"?n:super.__maximumWidth()}get maximumHeight(){var t;if(typeof this._explicitConstraints.maximumHeight=="number")return this._explicitConstraints.maximumHeight;const n=(t=this.activePanel)===null||t===void 0?void 0:t.maximumHeight;return typeof n=="number"?n:super.__maximumHeight()}get panels(){return this._model.panels}get activePanel(){return this._model.activePanel}get size(){return this._model.size}get model(){return this._model}get locked(){return this._model.locked}set locked(t){this._model.locked=t}get header(){return this._model.header}constructor(t,n,i){var r,o,s,a,l,u;super(n,"groupview_default",{minimumHeight:(o=(r=i.constraints)===null||r===void 0?void 0:r.minimumHeight)!==null&&o!==void 0?o:yI,minimumWidth:(a=(s=i.constraints)===null||s===void 0?void 0:s.minimumWidth)!==null&&a!==void 0?a:wI,maximumHeight:(l=i.constraints)===null||l===void 0?void 0:l.maximumHeight,maximumWidth:(u=i.constraints)===null||u===void 0?void 0:u.maximumWidth},new bI(n,t)),this._explicitConstraints={},this.api.initialize(this),this._model=new gI(this.element,t,n,i,this),this.addDisposables(this.model.onDidActivePanelChange(d=>{this.api._onDidActivePanelChange.fire(d)}),this.api.onDidConstraintsChangeInternal(d=>{d.minimumWidth!==void 0&&(this._explicitConstraints.minimumWidth=typeof d.minimumWidth=="function"?d.minimumWidth():d.minimumWidth),d.minimumHeight!==void 0&&(this._explicitConstraints.minimumHeight=typeof d.minimumHeight=="function"?d.minimumHeight():d.minimumHeight),d.maximumWidth!==void 0&&(this._explicitConstraints.maximumWidth=typeof d.maximumWidth=="function"?d.maximumWidth():d.maximumWidth),d.maximumHeight!==void 0&&(this._explicitConstraints.maximumHeight=typeof d.maximumHeight=="function"?d.maximumHeight():d.maximumHeight)}))}focus(){this.api.isActive||this.api.setActive(),super.focus()}initialize(){this._model.initialize()}setActive(t){super.setActive(t),this.model.setActive(t)}layout(t,n){super.layout(t,n),this.model.layout(t,n)}getComponent(){return this._model}toJSON(){return this.model.toJSON()}}const _3={name:"dark",className:"dockview-theme-dark"},x3={name:"light",className:"dockview-theme-light"},_I={className:"dockview-theme-abyss"};class xI extends ph{get location(){return this.group.api.location}get title(){return this.panel.title}get isGroupActive(){return this.group.isActive}get renderer(){return this.panel.renderer}set group(t){const n=this._group;this._group!==t&&(this._group=t,this._onDidGroupChange.fire({}),this.setupGroupEventListeners(n),this._onDidLocationChange.fire({location:this.group.api.location}))}get group(){return this._group}get tabComponent(){return this._tabComponent}constructor(t,n,i,r,o){super(t.id,r),this.panel=t,this.accessor=i,this._onDidTitleChange=new A,this.onDidTitleChange=this._onDidTitleChange.event,this._onDidActiveGroupChange=new A,this.onDidActiveGroupChange=this._onDidActiveGroupChange.event,this._onDidGroupChange=new A,this.onDidGroupChange=this._onDidGroupChange.event,this._onDidRendererChange=new A,this.onDidRendererChange=this._onDidRendererChange.event,this._onDidLocationChange=new A,this.onDidLocationChange=this._onDidLocationChange.event,this.groupEventsDisposable=new tt,this._tabComponent=o,this.initialize(t),this._group=n,this.setupGroupEventListeners(),this.addDisposables(this.groupEventsDisposable,this._onDidRendererChange,this._onDidTitleChange,this._onDidGroupChange,this._onDidActiveGroupChange,this._onDidLocationChange)}getWindow(){return this.group.api.getWindow()}moveTo(t){var n,i;this.accessor.moveGroupOrPanel({from:{groupId:this._group.id,panelId:this.panel.id},to:{group:(n=t.group)!==null&&n!==void 0?n:this._group,position:t.group&&(i=t.position)!==null&&i!==void 0?i:"center",index:t.index},skipSetActive:t.skipSetActive})}setTitle(t){this.panel.setTitle(t)}setRenderer(t){this.panel.setRenderer(t)}close(){this.group.model.closePanel(this.panel)}maximize(){this.group.api.maximize()}isMaximized(){return this.group.api.isMaximized()}exitMaximized(){this.group.api.exitMaximized()}setupGroupEventListeners(t){var n;let i=(n=t==null?void 0:t.isActive)!==null&&n!==void 0?n:!1;this.groupEventsDisposable.value=new ie(this.group.api.onDidVisibilityChange(r=>{const o=!r.isVisible&&this.isVisible,s=r.isVisible&&!this.isVisible,a=this.group.model.isPanelActive(this.panel);(o||s&&a)&&this._onDidVisibilityChange.fire(r)}),this.group.api.onDidLocationChange(r=>{this.group===this.panel.group&&this._onDidLocationChange.fire(r)}),this.group.api.onDidActiveChange(()=>{this.group===this.panel.group&&i!==this.isGroupActive&&(i=this.isGroupActive,this._onDidActiveGroupChange.fire({isActive:this.isGroupActive}))}))}}class nr extends ie{get params(){return this._params}get title(){return this._title}get group(){return this._group}get renderer(){var t;return(t=this._renderer)!==null&&t!==void 0?t:this.accessor.renderer}get minimumWidth(){return this._minimumWidth}get minimumHeight(){return this._minimumHeight}get maximumWidth(){return this._maximumWidth}get maximumHeight(){return this._maximumHeight}constructor(t,n,i,r,o,s,a,l){super(),this.id=t,this.accessor=r,this.containerApi=o,this.view=a,this._renderer=l.renderer,this._group=s,this._minimumWidth=l.minimumWidth,this._minimumHeight=l.minimumHeight,this._maximumWidth=l.maximumWidth,this._maximumHeight=l.maximumHeight,this.api=new xI(this,this._group,r,n,i),this.addDisposables(this.api.onActiveChange(()=>{r.setActivePanel(this)}),this.api.onDidSizeChange(u=>{this.group.api.setSize(u)}),this.api.onDidRendererChange(()=>{this.group.model.rerender(this)}))}init(t){this._params=t.params,this.view.init(Object.assign(Object.assign({},t),{api:this.api,containerApi:this.containerApi})),this.setTitle(t.title)}focus(){const t=new Xw;this.api._onWillFocus.fire(t),!t.defaultPrevented&&(this.api.isActive||this.api.setActive())}toJSON(){return{id:this.id,contentComponent:this.view.contentComponent,tabComponent:this.view.tabComponent,params:Object.keys(this._params||{}).length>0?this._params:void 0,title:this.title,renderer:this._renderer,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,minimumWidth:this._minimumWidth,maximumWidth:this._maximumWidth}}setTitle(t){t!==this.title&&(this._title=t,this.api._onDidTitleChange.fire({title:t}))}setRenderer(t){t!==this.renderer&&(this._renderer=t,this.api._onDidRendererChange.fire({renderer:t}))}update(t){var n;this._params=Object.assign(Object.assign({},(n=this._params)!==null&&n!==void 0?n:{}),t.params);for(const i of Object.keys(t.params))t.params[i]===void 0&&delete this._params[i];this.view.update({params:this._params})}updateFromStateModel(t){var n,i,r;this._maximumHeight=t.maximumHeight,this._minimumHeight=t.minimumHeight,this._maximumWidth=t.maximumWidth,this._minimumWidth=t.minimumWidth,this.update({params:(n=t.params)!==null&&n!==void 0?n:{}}),this.setTitle((i=t.title)!==null&&i!==void 0?i:this.id),this.setRenderer((r=t.renderer)!==null&&r!==void 0?r:this.accessor.renderer)}updateParentGroup(t,n){this._group=t,this.api.group=this._group;const i=this._group.model.isPanelActive(this),r=this.group.api.isActive&&i;n!=null&&n.skipSetActive||this.api.isActive!==r&&this.api._onDidActiveChange.fire({isActive:this.group.api.isActive&&i}),this.api.isVisible!==i&&this.api._onDidVisibilityChange.fire({isVisible:i})}runEvents(){const t=this._group.model.isPanelActive(this),n=this.group.api.isActive&&t;this.api.isActive!==n&&this.api._onDidActiveChange.fire({isActive:this.group.api.isActive&&t}),this.api.isVisible!==t&&this.api._onDidVisibilityChange.fire({isVisible:t})}layout(t,n){this.api._onDidDimensionChange.fire({width:t,height:n}),this.view.layout(t,n)}dispose(){this.api.dispose(),this.view.dispose()}}class im extends ie{get element(){return this._element}constructor(){super(),this._element=document.createElement("div"),this._element.className="dv-default-tab",this._content=document.createElement("div"),this._content.className="dv-default-tab-content",this.action=document.createElement("div"),this.action.className="dv-default-tab-action",this.action.appendChild(uI()),this._element.appendChild(this._content),this._element.appendChild(this.action),this.render()}init(t){this._title=t.title,this.addDisposables(t.api.onDidTitleChange(n=>{this._title=n.title,this.render()}),oe(this.action,"pointerdown",n=>{n.preventDefault()}),oe(this.action,"click",n=>{n.defaultPrevented||(n.preventDefault(),t.api.close())})),this.render()}render(){var t;this._content.textContent!==this._title&&(this._content.textContent=(t=this._title)!==null&&t!==void 0?t:"")}}class sy{get content(){return this._content}get tab(){return this._tab}constructor(t,n,i,r){this.accessor=t,this.id=n,this.contentComponent=i,this.tabComponent=r,this._content=this.createContentComponent(this.id,i),this._tab=this.createTabComponent(this.id,r)}createTabRenderer(t){var n;const i=this.createTabComponent(this.id,this.tabComponent);return this._params&&i.init(Object.assign(Object.assign({},this._params),{tabLocation:t})),this._updateEvent&&((n=i.update)===null||n===void 0||n.call(i,this._updateEvent)),i}init(t){this._params=t,this.content.init(t),this.tab.init(Object.assign(Object.assign({},t),{tabLocation:"header"}))}layout(t,n){var i,r;(r=(i=this.content).layout)===null||r===void 0||r.call(i,t,n)}update(t){var n,i,r,o;this._updateEvent=t,(i=(n=this.content).update)===null||i===void 0||i.call(n,t),(o=(r=this.tab).update)===null||o===void 0||o.call(r,t)}dispose(){var t,n,i,r;(n=(t=this.content).dispose)===null||n===void 0||n.call(t),(r=(i=this.tab).dispose)===null||r===void 0||r.call(i)}createContentComponent(t,n){return this.accessor.options.createComponent({id:t,name:n})}createTabComponent(t,n){const i=n??this.accessor.options.defaultTabComponent;if(i){if(this.accessor.options.createTabComponent){const r=this.accessor.options.createTabComponent({id:t,name:i});return r||new im}console.warn(`dockview: tabComponent '${n}' was not found. falling back to the default tab.`)}return new im}}class kI{constructor(t){this.accessor=t}fromJSON(t,n){var i,r;const o=t.id,s=t.params,a=t.title,l=t.view,u=l?l.content.id:(i=t.contentComponent)!==null&&i!==void 0?i:"unknown",d=l?(r=l.tab)===null||r===void 0?void 0:r.id:t.tabComponent,c=new sy(this.accessor,o,u,d),h=new nr(o,u,d,this.accessor,new Na(this.accessor),n,c,{renderer:t.renderer,minimumWidth:t.minimumWidth,minimumHeight:t.minimumHeight,maximumWidth:t.maximumWidth,maximumHeight:t.maximumHeight});return h.init({title:a??o,params:s??{}}),h}}class SI extends ie{get element(){return this._element}constructor(){super(),this._element=document.createElement("div"),this._element.className="dv-watermark"}init(t){}}class zI{constructor(){this._orderedList=[]}push(t){this._orderedList=[...this._orderedList.filter(n=>n!==t),t],this.update()}destroy(t){this._orderedList=this._orderedList.filter(n=>n!==t),this.update()}update(){for(let t=0;t<this._orderedList.length;t++)this._orderedList[t].setAttribute("aria-level",`${t}`),this._orderedList[t].style.zIndex=`calc(var(--dv-overlay-z-index, 999) + ${t*2})`}}const Os=new zI;class gn extends ie{set minimumInViewportWidth(t){this.options.minimumInViewportWidth=t}set minimumInViewportHeight(t){this.options.minimumInViewportHeight=t}get element(){return this._element}get isVisible(){return this._isVisible}constructor(t){super(),this.options=t,this._element=document.createElement("div"),this._onDidChange=new A,this.onDidChange=this._onDidChange.event,this._onDidChangeEnd=new A,this.onDidChangeEnd=this._onDidChangeEnd.event,this.addDisposables(this._onDidChange,this._onDidChangeEnd),this._element.className="dv-resize-container",this._isVisible=!0,this.setupResize("top"),this.setupResize("bottom"),this.setupResize("left"),this.setupResize("right"),this.setupResize("topleft"),this.setupResize("topright"),this.setupResize("bottomleft"),this.setupResize("bottomright"),this._element.appendChild(this.options.content),this.options.container.appendChild(this._element),this.setBounds(Object.assign(Object.assign(Object.assign(Object.assign({height:this.options.height,width:this.options.width},"top"in this.options&&{top:this.options.top}),"bottom"in this.options&&{bottom:this.options.bottom}),"left"in this.options&&{left:this.options.left}),"right"in this.options&&{right:this.options.right})),Os.push(this._element)}setVisible(t){t!==this.isVisible&&(this._isVisible=t,J(this.element,"dv-hidden",!this.isVisible))}bringToFront(){Os.push(this._element)}setBounds(t={}){typeof t.height=="number"&&(this._element.style.height=`${t.height}px`),typeof t.width=="number"&&(this._element.style.width=`${t.width}px`),"top"in t&&typeof t.top=="number"&&(this._element.style.top=`${t.top}px`,this._element.style.bottom="auto",this.verticalAlignment="top"),"bottom"in t&&typeof t.bottom=="number"&&(this._element.style.bottom=`${t.bottom}px`,this._element.style.top="auto",this.verticalAlignment="bottom"),"left"in t&&typeof t.left=="number"&&(this._element.style.left=`${t.left}px`,this._element.style.right="auto",this.horiziontalAlignment="left"),"right"in t&&typeof t.right=="number"&&(this._element.style.right=`${t.right}px`,this._element.style.left="auto",this.horiziontalAlignment="right");const n=this.options.container.getBoundingClientRect(),i=this._element.getBoundingClientRect(),r=Math.max(0,this.getMinimumWidth(i.width)),o=Math.max(0,this.getMinimumHeight(i.height));if(this.verticalAlignment==="top"){const s=Ee(i.top-n.top,-o,Math.max(0,n.height-i.height+o));this._element.style.top=`${s}px`,this._element.style.bottom="auto"}if(this.verticalAlignment==="bottom"){const s=Ee(n.bottom-i.bottom,-o,Math.max(0,n.height-i.height+o));this._element.style.bottom=`${s}px`,this._element.style.top="auto"}if(this.horiziontalAlignment==="left"){const s=Ee(i.left-n.left,-r,Math.max(0,n.width-i.width+r));this._element.style.left=`${s}px`,this._element.style.right="auto"}if(this.horiziontalAlignment==="right"){const s=Ee(n.right-i.right,-r,Math.max(0,n.width-i.width+r));this._element.style.right=`${s}px`,this._element.style.left="auto"}this._onDidChange.fire()}toJSON(){const t=this.options.container.getBoundingClientRect(),n=this._element.getBoundingClientRect(),i={};return this.verticalAlignment==="top"?i.top=parseFloat(this._element.style.top):this.verticalAlignment==="bottom"?i.bottom=parseFloat(this._element.style.bottom):i.top=n.top-t.top,this.horiziontalAlignment==="left"?i.left=parseFloat(this._element.style.left):this.horiziontalAlignment==="right"?i.right=parseFloat(this._element.style.right):i.left=n.left-t.left,i.width=n.width,i.height=n.height,i}setupDrag(t,n={inDragMode:!1}){const i=new tt,r=()=>{let o=null;const s=Ta();i.value=new ie({dispose:()=>{s.release()}},oe(window,"pointermove",a=>{const l=this.options.container.getBoundingClientRect(),u=a.clientX-l.left,d=a.clientY-l.top;J(this._element,"dv-resize-container-dragging",!0);const c=this._element.getBoundingClientRect();o===null&&(o={x:a.clientX-c.left,y:a.clientY-c.top});const h=Math.max(0,this.getMinimumWidth(c.width)),p=Math.max(0,this.getMinimumHeight(c.height)),m=Ee(d-o.y,-p,Math.max(0,l.height-c.height+p)),v=Ee(o.y-d+l.height-c.height,-p,Math.max(0,l.height-c.height+p)),y=Ee(u-o.x,-h,Math.max(0,l.width-c.width+h)),f=Ee(o.x-u+l.width-c.width,-h,Math.max(0,l.width-c.width+h)),g={};m<=v?g.top=m:g.bottom=v,y<=f?g.left=y:g.right=f,this.setBounds(g)}),oe(window,"pointerup",()=>{J(this._element,"dv-resize-container-dragging",!1),i.dispose(),this._onDidChangeEnd.fire()}))};this.addDisposables(i,oe(t,"pointerdown",o=>{if(o.defaultPrevented){o.preventDefault();return}Qf(o)||r()}),oe(this.options.content,"pointerdown",o=>{o.defaultPrevented||Qf(o)||o.shiftKey&&r()}),oe(this.options.content,"pointerdown",()=>{Os.push(this._element)},!0)),n.inDragMode&&r()}setupResize(t){const n=document.createElement("div");n.className=`dv-resize-handle-${t}`,this._element.appendChild(n);const i=new tt;this.addDisposables(i,oe(n,"pointerdown",r=>{r.preventDefault();let o=null;const s=Ta();i.value=new ie(oe(window,"pointermove",a=>{const l=this.options.container.getBoundingClientRect(),u=this._element.getBoundingClientRect(),d=a.clientY-l.top,c=a.clientX-l.left;o===null&&(o={originalY:d,originalHeight:u.height,originalX:c,originalWidth:u.width});let h,p,m,v,y,f;const g=()=>{const P=o.originalY+o.originalHeight>l.height?Math.max(0,l.height-gn.MINIMUM_HEIGHT):Math.max(0,o.originalY+o.originalHeight-gn.MINIMUM_HEIGHT);h=Ee(d,0,P),m=o.originalY+o.originalHeight-h,p=l.height-h-m},b=()=>{h=o.originalY-o.originalHeight;const P=h<0&&typeof this.options.minimumInViewportHeight=="number"?-h+this.options.minimumInViewportHeight:gn.MINIMUM_HEIGHT,C=l.height-Math.max(0,h);m=Ee(d-h,P,C),p=l.height-h-m},k=()=>{const P=o.originalX+o.originalWidth>l.width?Math.max(0,l.width-gn.MINIMUM_WIDTH):Math.max(0,o.originalX+o.originalWidth-gn.MINIMUM_WIDTH);v=Ee(c,0,P),f=o.originalX+o.originalWidth-v,y=l.width-v-f},D=()=>{v=o.originalX-o.originalWidth;const P=v<0&&typeof this.options.minimumInViewportWidth=="number"?-v+this.options.minimumInViewportWidth:gn.MINIMUM_WIDTH,C=l.width-Math.max(0,v);f=Ee(c-v,P,C),y=l.width-v-f};switch(t){case"top":g();break;case"bottom":b();break;case"left":k();break;case"right":D();break;case"topleft":g(),k();break;case"topright":g(),D();break;case"bottomleft":b(),k();break;case"bottomright":b(),D();break}const _={};h<=p?_.top=h:_.bottom=p,v<=y?_.left=v:_.right=y,_.height=m,_.width=f,this.setBounds(_)}),{dispose:()=>{s.release()}},oe(window,"pointerup",()=>{i.dispose(),this._onDidChangeEnd.fire()}))}))}getMinimumWidth(t){return typeof this.options.minimumInViewportWidth=="number"?t-this.options.minimumInViewportWidth:0}getMinimumHeight(t){return typeof this.options.minimumInViewportHeight=="number"?t-this.options.minimumInViewportHeight:0}dispose(){Os.destroy(this._element),this._element.remove(),super.dispose()}}gn.MINIMUM_HEIGHT=20;gn.MINIMUM_WIDTH=20;class CI extends ie{constructor(t,n){super(),this.group=t,this.overlay=n,this.addDisposables(n)}position(t){this.overlay.setBounds(t)}}const Ns=100,Hn={left:100,top:100,width:300,height:300},DI=100;class EI{constructor(){this.cache=new Map,this.currentFrameId=0,this.rafId=null}getPosition(t){const n=this.cache.get(t);if(n&&n.frameId===this.currentFrameId)return n.rect;this.scheduleFrameUpdate();const i=Pc(t);return this.cache.set(t,{rect:i,frameId:this.currentFrameId}),i}invalidate(){this.currentFrameId++}scheduleFrameUpdate(){this.rafId||(this.rafId=requestAnimationFrame(()=>{this.currentFrameId++,this.rafId=null}))}}function PI(){const e=document.createElement("div");return e.tabIndex=-1,e}class rm extends ie{constructor(t,n){super(),this.element=t,this.accessor=n,this.map={},this._disposed=!1,this.positionCache=new EI,this.pendingUpdates=new Set,this.addDisposables(Ye.from(()=>{for(const i of Object.values(this.map))i.disposable.dispose(),i.destroy.dispose();this._disposed=!0}))}updateAllPositions(){if(!this._disposed){this.positionCache.invalidate();for(const t of Object.values(this.map))t.panel.api.isVisible&&t.resize&&t.resize()}}detatch(t){if(this.map[t.api.id]){const{disposable:n,destroy:i}=this.map[t.api.id];return n.dispose(),i.dispose(),delete this.map[t.api.id],!0}return!1}attach(t){const{panel:n,referenceContainer:i}=t;if(!this.map[n.api.id]){const d=PI();d.className="dv-render-overlay",d.style.visibility="hidden",this.map[n.api.id]={panel:n,disposable:Ye.NONE,destroy:Ye.NONE,element:d}}const r=this.map[n.api.id].element;n.view.content.element.parentElement!==r&&r.appendChild(n.view.content.element),r.parentElement!==this.element&&this.element.appendChild(r);const o=()=>{const d=n.api.id;this.pendingUpdates.has(d)||(this.pendingUpdates.add(d),requestAnimationFrame(()=>{if(this.pendingUpdates.delete(d),this.isDisposed||!this.map[d])return;const c=this.positionCache.getPosition(i.element),h=this.positionCache.getPosition(this.element),p=c.left-h.left,m=c.top-h.top,v=c.width,y=c.height;r.style.left=`${p}px`,r.style.top=`${m}px`,r.style.width=`${v}px`,r.style.height=`${y}px`,r.style.visibility==="hidden"&&(r.style.visibility=""),J(r,"dv-render-overlay-float",n.group.api.location.type==="floating")}))},s=()=>{n.api.isVisible&&(this.positionCache.invalidate(),o()),r.style.display=n.api.isVisible?"":"none"},a=new tt,l=()=>{n.api.location.type==="floating"?queueMicrotask(()=>{const d=this.accessor.floatingGroups.find(m=>m.group===n.api.group);if(!d)return;const c=d.overlay.element,h=()=>{const m=Number(c.getAttribute("aria-level"));r.style.zIndex=`calc(var(--dv-overlay-z-index, 999) + ${m*2+1})`},p=new MutationObserver(()=>{h()});a.value=Ye.from(()=>p.disconnect()),p.observe(c,{attributeFilter:["aria-level"],attributes:!0}),h()}):r.style.zIndex=""},u=new ie(a,new Kw(r,{onDragEnd:d=>{i.dropTarget.dnd.onDragEnd(d)},onDragEnter:d=>{i.dropTarget.dnd.onDragEnter(d)},onDragLeave:d=>{i.dropTarget.dnd.onDragLeave(d)},onDrop:d=>{i.dropTarget.dnd.onDrop(d)},onDragOver:d=>{i.dropTarget.dnd.onDragOver(d)}}),n.api.onDidVisibilityChange(()=>{s()}),n.api.onDidDimensionsChange(()=>{n.api.isVisible&&o()}),n.api.onDidLocationChange(()=>{l()}));return this.map[n.api.id].destroy=Ye.from(()=>{var d;n.view.content.element.parentElement===r&&r.removeChild(n.view.content.element),(d=r.parentElement)===null||d===void 0||d.removeChild(r)}),l(),queueMicrotask(()=>{this.isDisposed||s()}),this.map[n.api.id].disposable.dispose(),this.map[n.api.id].disposable=u,this.map[n.api.id].resize=o,r}}function AI(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(d){try{u(i.next(d))}catch(c){s(c)}}function l(d){try{u(i.throw(d))}catch(c){s(c)}}function u(d){d.done?o(d.value):r(d.value).then(a,l)}u((i=i.apply(e,[])).next())})}class II extends ie{get window(){var t,n;return(n=(t=this._window)===null||t===void 0?void 0:t.value)!==null&&n!==void 0?n:null}constructor(t,n,i){super(),this.target=t,this.className=n,this.options=i,this._onWillClose=new A,this.onWillClose=this._onWillClose.event,this._onDidClose=new A,this.onDidClose=this._onDidClose.event,this._window=null,this.addDisposables(this._onWillClose,this._onDidClose,{dispose:()=>{this.close()}})}dimensions(){if(!this._window)return null;const t=this._window.value.screenX,n=this._window.value.screenY,i=this._window.value.innerWidth,r=this._window.value.innerHeight;return{top:n,left:t,width:i,height:r}}close(){var t,n;this._window&&(this._onWillClose.fire(),(n=(t=this.options).onWillClose)===null||n===void 0||n.call(t,{id:this.target,window:this._window.value}),this._window.disposable.dispose(),this._window=null,this._onDidClose.fire())}open(){var t,n;return AI(this,void 0,void 0,function*(){if(this._window)throw new Error("instance of popout window is already open");const i=`${this.options.url}`,r=Object.entries({top:this.options.top,left:this.options.left,width:this.options.width,height:this.options.height}).map(([l,u])=>`${l}=${u}`).join(","),o=window.open(i,this.target,r);if(!o)return null;const s=new ie;this._window={value:o,disposable:s},s.addDisposables(Ye.from(()=>{o.close()}),oe(window,"beforeunload",()=>{this.close()}));const a=this.createPopoutWindowContainer();return this.className&&a.classList.add(this.className),(n=(t=this.options).onDidOpen)===null||n===void 0||n.call(t,{id:this.target,window:o}),new Promise((l,u)=>{o.addEventListener("unload",d=>{}),o.addEventListener("load",()=>{try{const d=o.document;d.title=document.title,d.body.appendChild(a),SA(d,window.document.styleSheets),oe(o,"beforeunload",()=>{this.close()}),l(a)}catch(d){u(d)}})})})}createPopoutWindowContainer(){const t=document.createElement("div");return t.classList.add("dv-popout-window"),t.id="dv-popout-window",t.style.position="absolute",t.style.width="100%",t.style.height="100%",t.style.top="0px",t.style.left="0px",t}}class TI extends ie{constructor(t){super(),this.accessor=t,this.init()}init(){const t=new Set,n=new Set;this.addDisposables(this.accessor.onDidAddPanel(i=>{if(t.has(i.api.id))throw new Error(`dockview: Invalid event sequence. [onDidAddPanel] called for panel ${i.api.id} but panel already exists`);t.add(i.api.id)}),this.accessor.onDidRemovePanel(i=>{if(t.has(i.api.id))t.delete(i.api.id);else throw new Error(`dockview: Invalid event sequence. [onDidRemovePanel] called for panel ${i.api.id} but panel does not exists`)}),this.accessor.onDidAddGroup(i=>{if(n.has(i.api.id))throw new Error(`dockview: Invalid event sequence. [onDidAddGroup] called for group ${i.api.id} but group already exists`);n.add(i.api.id)}),this.accessor.onDidRemoveGroup(i=>{if(n.has(i.api.id))n.delete(i.api.id);else throw new Error(`dockview: Invalid event sequence. [onDidRemoveGroup] called for group ${i.api.id} but group does not exists`)}))}}class OI extends ie{constructor(t){super(),this.root=t,this._active=null,this._activeDisposable=new tt,this._element=document.createElement("div"),this._element.className="dv-popover-anchor",this._element.style.position="relative",this.root.prepend(this._element),this.addDisposables(Ye.from(()=>{this.close()}),this._activeDisposable)}openPopover(t,n){var i;this.close();const r=document.createElement("div");r.style.position="absolute",r.style.zIndex=(i=n.zIndex)!==null&&i!==void 0?i:"var(--dv-overlay-z-index)",r.appendChild(t);const o=this._element.getBoundingClientRect(),s=o.left,a=o.top;r.style.top=`${n.y-a}px`,r.style.left=`${n.x-s}px`,this._element.appendChild(r),this._active=r,this._activeDisposable.value=new ie(oe(window,"pointerdown",l=>{var u;const d=l.target;if(!(d instanceof HTMLElement))return;let c=d;for(;c&&c!==r;)c=(u=c==null?void 0:c.parentElement)!==null&&u!==void 0?u:null;c||this.close()}),oe(window,"resize",()=>{this.close()})),requestAnimationFrame(()=>{TA(r,this.root)})}close(){this._active&&(this._active.remove(),this._activeDisposable.dispose(),this._active=null)}}class om extends ie{get disabled(){return this._disabled}set disabled(t){var n;this.disabled!==t&&(this._disabled=t,t&&((n=this.model)===null||n===void 0||n.clear()))}get model(){if(!this.disabled)return{clear:()=>{var t;this._model&&((t=this._model.root.parentElement)===null||t===void 0||t.removeChild(this._model.root)),this._model=void 0},exists:()=>!!this._model,getElements:(t,n)=>{const i=this._outline!==n;if(this._outline=n,this._model)return this._model.changed=i,this._model;const r=this.createContainer(),o=this.createAnchor();if(this._model={root:r,overlay:o,changed:i},r.appendChild(o),this.element.appendChild(r),(t==null?void 0:t.target)instanceof HTMLElement){const s=t.target.getBoundingClientRect(),a=this.element.getBoundingClientRect();o.style.left=`${s.left-a.left}px`,o.style.top=`${s.top-a.top}px`}return this._model}}}constructor(t,n){super(),this.element=t,this._disabled=!1,this._disabled=n.disabled,this.addDisposables(Ye.from(()=>{var i;(i=this.model)===null||i===void 0||i.clear()}))}createContainer(){const t=document.createElement("div");return t.className="dv-drop-target-container",t}createAnchor(){const t=document.createElement("div");return t.className="dv-drop-target-anchor",t.style.visibility="hidden",t}}const sm={activationSize:{type:"pixels",value:10},size:{type:"pixels",value:20}};function Rs(e){const t=e.from.activePanel;[...e.from.panels].map(i=>{const r=e.from.model.removePanel(i);return e.from.model.renderContainer.detatch(i),r}).forEach(i=>{e.to.model.openPanel(i,{skipSetActive:t!==i,skipSetGroupActive:!0})})}class NI extends Yw{get orientation(){return this.gridview.orientation}get totalPanels(){return this.panels.length}get panels(){return this.groups.flatMap(t=>t.panels)}get options(){return this._options}get activePanel(){const t=this.activeGroup;if(t)return t.activePanel}get renderer(){var t;return(t=this.options.defaultRenderer)!==null&&t!==void 0?t:"onlyWhenVisible"}get defaultHeaderPosition(){var t;return(t=this.options.defaultHeaderPosition)!==null&&t!==void 0?t:"top"}get api(){return this._api}get floatingGroups(){return this._floatingGroups}get popoutRestorationPromise(){return this._popoutRestorationPromise}constructor(t,n){var i,r,o;super(t,{proportionalLayout:!0,orientation:K.HORIZONTAL,styles:n.hideBorders?{separatorBorder:"transparent"}:void 0,disableAutoResizing:n.disableAutoResizing,locked:n.locked,margin:(r=(i=n.theme)===null||i===void 0?void 0:i.gap)!==null&&r!==void 0?r:0,className:n.className}),this.nextGroupId=ah(),this._deserializer=new kI(this),this._watermark=null,this._onWillDragPanel=new A,this.onWillDragPanel=this._onWillDragPanel.event,this._onWillDragGroup=new A,this.onWillDragGroup=this._onWillDragGroup.event,this._onDidDrop=new A,this.onDidDrop=this._onDidDrop.event,this._onWillDrop=new A,this.onWillDrop=this._onWillDrop.event,this._onWillShowOverlay=new A,this.onWillShowOverlay=this._onWillShowOverlay.event,this._onUnhandledDragOverEvent=new A,this.onUnhandledDragOverEvent=this._onUnhandledDragOverEvent.event,this._onDidRemovePanel=new A,this.onDidRemovePanel=this._onDidRemovePanel.event,this._onDidAddPanel=new A,this.onDidAddPanel=this._onDidAddPanel.event,this._onDidPopoutGroupSizeChange=new A,this.onDidPopoutGroupSizeChange=this._onDidPopoutGroupSizeChange.event,this._onDidPopoutGroupPositionChange=new A,this.onDidPopoutGroupPositionChange=this._onDidPopoutGroupPositionChange.event,this._onDidOpenPopoutWindowFail=new A,this.onDidOpenPopoutWindowFail=this._onDidOpenPopoutWindowFail.event,this._onDidLayoutFromJSON=new A,this.onDidLayoutFromJSON=this._onDidLayoutFromJSON.event,this._onDidActivePanelChange=new A({replay:!0}),this.onDidActivePanelChange=this._onDidActivePanelChange.event,this._onDidMovePanel=new A,this.onDidMovePanel=this._onDidMovePanel.event,this._onDidMaximizedGroupChange=new A,this.onDidMaximizedGroupChange=this._onDidMaximizedGroupChange.event,this._floatingGroups=[],this._popoutGroups=[],this._popoutRestorationPromise=Promise.resolve(),this._onDidRemoveGroup=new A,this.onDidRemoveGroup=this._onDidRemoveGroup.event,this._onDidAddGroup=new A,this.onDidAddGroup=this._onDidAddGroup.event,this._onDidOptionsChange=new A,this.onDidOptionsChange=this._onDidOptionsChange.event,this._onDidActiveGroupChange=new A,this.onDidActiveGroupChange=this._onDidActiveGroupChange.event,this._moving=!1,this._options=n,this.popupService=new OI(this.element),this._themeClassnames=new pl(this.element),this._api=new Na(this),this.rootDropTargetContainer=new om(this.element,{disabled:!0}),this.overlayRenderContainer=new rm(this.gridview.element,this),this._rootDropTarget=new on(this.element,{className:"dv-drop-target-edge",canDisplayOverlay:(s,a)=>{const l=st();if(l)return l.viewId!==this.id?!1:a==="center"?this.gridview.length===0:!0;if(a==="center"&&this.gridview.length!==0)return!1;const u=new iy(s,"edge",a,st);return this._onUnhandledDragOverEvent.fire(u),u.isAccepted},acceptedTargetZones:["top","bottom","left","right","center"],overlayModel:(o=n.rootOverlayModel)!==null&&o!==void 0?o:sm,getOverrideTarget:()=>{var s;return(s=this.rootDropTargetContainer)===null||s===void 0?void 0:s.model}}),this.updateDropTargetModel(n),J(this.gridview.element,"dv-dockview",!0),J(this.element,"dv-debug",!!n.debug),this.updateTheme(),this.updateWatermark(),n.debug&&this.addDisposables(new TI(this)),this.addDisposables(this.rootDropTargetContainer,this.overlayRenderContainer,this._onWillDragPanel,this._onWillDragGroup,this._onWillShowOverlay,this._onDidActivePanelChange,this._onDidAddPanel,this._onDidRemovePanel,this._onDidLayoutFromJSON,this._onDidDrop,this._onWillDrop,this._onDidMovePanel,this._onDidMovePanel.event(()=>{this.debouncedUpdateAllPositions()}),this._onDidAddGroup,this._onDidRemoveGroup,this._onDidActiveGroupChange,this._onUnhandledDragOverEvent,this._onDidMaximizedGroupChange,this._onDidOptionsChange,this._onDidPopoutGroupSizeChange,this._onDidPopoutGroupPositionChange,this._onDidOpenPopoutWindowFail,this.onDidViewVisibilityChangeMicroTaskQueue(()=>{this.updateWatermark()}),this.onDidAdd(s=>{this._moving||this._onDidAddGroup.fire(s)}),this.onDidRemove(s=>{this._moving||this._onDidRemoveGroup.fire(s)}),this.onDidActiveChange(s=>{this._moving||this._onDidActiveGroupChange.fire(s)}),this.onDidMaximizedChange(s=>{this._onDidMaximizedGroupChange.fire({group:s.panel,isMaximized:s.isMaximized})}),Ni.any(this.onDidAdd,this.onDidRemove)(()=>{this.updateWatermark()}),Ni.any(this.onDidAddPanel,this.onDidRemovePanel,this.onDidAddGroup,this.onDidRemove,this.onDidMovePanel,this.onDidActivePanelChange,this.onDidPopoutGroupPositionChange,this.onDidPopoutGroupSizeChange)(()=>{this._bufferOnDidLayoutChange.fire()}),Ye.from(()=>{for(const s of[...this._floatingGroups])s.dispose();for(const s of[...this._popoutGroups])s.disposable.dispose()}),this._rootDropTarget,this._rootDropTarget.onWillShowOverlay(s=>{this.gridview.length>0&&s.position==="center"||this._onWillShowOverlay.fire(new fl(s,{kind:"edge",panel:void 0,api:this._api,group:void 0,getData:st}))}),this._rootDropTarget.onDrop(s=>{var a;const l=new ry({nativeEvent:s.nativeEvent,position:s.position,panel:void 0,api:this._api,group:void 0,getData:st,kind:"edge"});if(this._onWillDrop.fire(l),l.defaultPrevented)return;const u=st();u?this.moveGroupOrPanel({from:{groupId:u.groupId,panelId:(a=u.panelId)!==null&&a!==void 0?a:void 0},to:{group:this.orthogonalize(s.position),position:"center"}}):this._onDidDrop.fire(new hh({nativeEvent:s.nativeEvent,position:s.position,panel:void 0,api:this._api,group:void 0,getData:st}))}),this._rootDropTarget)}setVisible(t,n){switch(t.api.location.type){case"grid":super.setVisible(t,n);break;case"floating":{const i=this.floatingGroups.find(r=>r.group===t);i&&(i.overlay.setVisible(n),t.api._onDidVisibilityChange.fire({isVisible:n}));break}case"popout":console.warn("dockview: You cannot hide a group that is in a popout window");break}}addPopoutGroup(t,n){var i,r,o,s,a;if(t instanceof nr&&t.group.size===1)return this.addPopoutGroup(t.group,n);const l=EA(this.gridview.element),u=this.element;function d(){return n!=null&&n.position?n.position:t instanceof nm?t.element.getBoundingClientRect():t.group?t.group.element.getBoundingClientRect():u.getBoundingClientRect()}const c=d(),h=(r=(i=n==null?void 0:n.overridePopoutGroup)===null||i===void 0?void 0:i.id)!==null&&r!==void 0?r:this.getNextGroupId(),p=new II(`${this.id}-${h}`,l??"",{url:(a=(o=n==null?void 0:n.popoutUrl)!==null&&o!==void 0?o:(s=this.options)===null||s===void 0?void 0:s.popoutUrl)!==null&&a!==void 0?a:"/popout.html",left:window.screenX+c.left,top:window.screenY+c.top,width:c.width,height:c.height,onDidOpen:n==null?void 0:n.onDidOpen,onWillClose:n==null?void 0:n.onWillClose}),m=new ie(p,p.onDidClose(()=>{m.dispose()}));return p.open().then(v=>{var y;if(p.isDisposed)return!1;const f=n!=null&&n.referenceGroup?n.referenceGroup:t instanceof nr?t.group:t,g=t.api.location.type,b=f.element.parentElement!==null;let k;if(b?n!=null&&n.overridePopoutGroup?k=n.overridePopoutGroup:(k=this.createGroup({id:h}),v&&this._onDidAddGroup.fire(k)):k=f,v===null)return console.error("dockview: failed to create popout. perhaps you need to allow pop-ups for this website"),m.dispose(),this._onDidOpenPopoutWindowFail.fire(),this.movingLock(()=>Rs({from:k,to:f})),f.api.isVisible||f.api.setVisible(!0),!1;const D=document.createElement("div");D.className="dv-overlay-render-container";const _=new rm(D,this);k.model.renderContainer=_,k.layout(p.window.innerWidth,p.window.innerHeight);let P;if(!(n!=null&&n.overridePopoutGroup)&&b)if(t instanceof nr)this.movingLock(()=>{const te=f.model.removePanel(t);k.model.openPanel(te)});else switch(this.movingLock(()=>Rs({from:f,to:k})),g){case"grid":f.api.setVisible(!1);break;case"floating":case"popout":P=(y=this._floatingGroups.find(te=>te.group.api.id===t.api.id))===null||y===void 0?void 0:y.overlay.toJSON(),this.removeGroup(f);break}v.classList.add("dv-dockview"),v.style.overflow="hidden",v.appendChild(D),v.appendChild(k.element);const C=document.createElement("div"),G=new om(C,{disabled:this.rootDropTargetContainer.disabled});v.appendChild(C),k.model.dropTargetContainer=G,k.model.location={type:"popout",getWindow:()=>p.window,popoutUrl:n==null?void 0:n.popoutUrl},b&&t.api.location.type==="grid"&&t.api.setVisible(!1),this.doSetGroupAndPanelActive(k),m.addDisposables(k.api.onDidActiveChange(te=>{var T;te.isActive&&((T=p.window)===null||T===void 0||T.focus())}),k.api.onWillFocus(()=>{var te;(te=p.window)===null||te===void 0||te.focus()}));let z;const F=b&&f&&this.getPanel(f.id),B={window:p,popoutGroup:k,referenceGroup:F?f.id:void 0,disposable:{dispose:()=>(m.dispose(),z)}},X=AA(p.window);return m.addDisposables(X,IA(p.window,()=>{this._onDidPopoutGroupSizeChange.fire({width:p.window.innerWidth,height:p.window.innerHeight,group:k})}),X.event(()=>{this._onDidPopoutGroupPositionChange.fire({screenX:p.window.screenX,screenY:p.window.screenX,group:k})}),oe(p.window,"resize",()=>{k.layout(p.window.innerWidth,p.window.innerHeight)}),_,Ye.from(()=>{if(!this.isDisposed){if(b&&this.getPanel(f.id))this.movingLock(()=>Rs({from:k,to:f})),f.api.isVisible||f.api.setVisible(!0),this.getPanel(k.id)&&this.doRemoveGroup(k,{skipPopoutAssociated:!0});else if(this.getPanel(k.id)){if(k.model.renderContainer=this.overlayRenderContainer,k.model.dropTargetContainer=this.rootDropTargetContainer,z=k,!this._popoutGroups.find(T=>T.popoutGroup===k))return;P?this.addFloatingGroup(k,{height:P.height,width:P.width,position:P}):(this.doRemoveGroup(k,{skipDispose:!0,skipActive:!0,skipPopoutReturn:!0}),k.model.location={type:"grid"},this.movingLock(()=>{this.doAddGroup(k,[0])})),this.doSetGroupAndPanelActive(k)}}})),this._popoutGroups.push(B),this.updateWatermark(),!0}).catch(v=>(console.error("dockview: failed to create popout.",v),!1))}addFloatingGroup(t,n){var i,r,o,s,a;let l;if(t instanceof nr)l=this.createGroup(),this._onDidAddGroup.fire(l),this.movingLock(()=>this.removePanel(t,{removeEmptyGroup:!0,skipDispose:!0,skipSetActiveGroup:!0})),this.movingLock(()=>l.model.openPanel(t,{skipSetGroupActive:!0}));else{l=t;const v=(i=this._popoutGroups.find(g=>g.popoutGroup===l))===null||i===void 0?void 0:i.referenceGroup,y=v?this.getPanel(v):void 0;typeof(n==null?void 0:n.skipRemoveGroup)=="boolean"&&n.skipRemoveGroup||(y?(this.movingLock(()=>Rs({from:t,to:y})),this.doRemoveGroup(t,{skipPopoutReturn:!0,skipPopoutAssociated:!0}),this.doRemoveGroup(y,{skipDispose:!0}),l=y):this.doRemoveGroup(t,{skipDispose:!0,skipPopoutReturn:!0,skipPopoutAssociated:!1}))}function u(){if(n!=null&&n.position){const v={};return"left"in n.position?v.left=Math.max(n.position.left,0):"right"in n.position?v.right=Math.max(n.position.right,0):v.left=Hn.left,"top"in n.position?v.top=Math.max(n.position.top,0):"bottom"in n.position?v.bottom=Math.max(n.position.bottom,0):v.top=Hn.top,typeof n.width=="number"?v.width=Math.max(n.width,0):v.width=Hn.width,typeof n.height=="number"?v.height=Math.max(n.height,0):v.height=Hn.height,v}return{left:typeof(n==null?void 0:n.x)=="number"?Math.max(n.x,0):Hn.left,top:typeof(n==null?void 0:n.y)=="number"?Math.max(n.y,0):Hn.top,width:typeof(n==null?void 0:n.width)=="number"?Math.max(n.width,0):Hn.width,height:typeof(n==null?void 0:n.height)=="number"?Math.max(n.height,0):Hn.height}}const d=u(),c=new gn(Object.assign(Object.assign({container:this.gridview.element,content:l.element},d),{minimumInViewportWidth:this.options.floatingGroupBounds==="boundedWithinViewport"?void 0:(o=(r=this.options.floatingGroupBounds)===null||r===void 0?void 0:r.minimumWidthWithinViewport)!==null&&o!==void 0?o:Ns,minimumInViewportHeight:this.options.floatingGroupBounds==="boundedWithinViewport"?void 0:(a=(s=this.options.floatingGroupBounds)===null||s===void 0?void 0:s.minimumHeightWithinViewport)!==null&&a!==void 0?a:Ns})),h=l.element.querySelector(".dv-void-container");if(!h)throw new Error("dockview: failed to find drag handle");c.setupDrag(h,{inDragMode:typeof(n==null?void 0:n.inDragMode)=="boolean"?n.inDragMode:!1});const p=new CI(l,c),m=new ie(l.api.onDidActiveChange(v=>{v.isActive&&c.bringToFront()}),hl(l.element,v=>{const{width:y,height:f}=v.contentRect;l.layout(y,f)}));p.addDisposables(c.onDidChange(()=>{l.layout(l.width,l.height)}),c.onDidChangeEnd(()=>{this._bufferOnDidLayoutChange.fire()}),l.onDidChange(v=>{c.setBounds({height:v==null?void 0:v.height,width:v==null?void 0:v.width})}),{dispose:()=>{m.dispose(),mu(this._floatingGroups,p),l.model.location={type:"grid"},this.updateWatermark()}}),this._floatingGroups.push(p),l.model.location={type:"floating"},n!=null&&n.skipActiveGroup||this.doSetGroupAndPanelActive(l),this.updateWatermark()}orthogonalize(t,n){switch(this.gridview.normalize(),t){case"top":case"bottom":this.gridview.orientation===K.HORIZONTAL&&this.gridview.insertOrthogonalSplitviewAtRoot();break;case"left":case"right":this.gridview.orientation===K.VERTICAL&&this.gridview.insertOrthogonalSplitviewAtRoot();break}switch(t){case"top":case"left":case"center":return this.createGroupAtLocation([0],void 0,n);case"bottom":case"right":return this.createGroupAtLocation([this.gridview.length],void 0,n);default:throw new Error(`dockview: unsupported position ${t}`)}}updateOptions(t){var n,i;if(super.updateOptions(t),"floatingGroupBounds"in t)for(const s of this._floatingGroups){switch(t.floatingGroupBounds){case"boundedWithinViewport":s.overlay.minimumInViewportHeight=void 0,s.overlay.minimumInViewportWidth=void 0;break;case void 0:s.overlay.minimumInViewportHeight=Ns,s.overlay.minimumInViewportWidth=Ns;break;default:s.overlay.minimumInViewportHeight=(n=t.floatingGroupBounds)===null||n===void 0?void 0:n.minimumHeightWithinViewport,s.overlay.minimumInViewportWidth=(i=t.floatingGroupBounds)===null||i===void 0?void 0:i.minimumWidthWithinViewport}s.overlay.setBounds()}this.updateDropTargetModel(t);const r=this.options.disableDnd;this._options=Object.assign(Object.assign({},this.options),t);const o=this.options.disableDnd;if(r!==o&&this.updateDragAndDropState(),"theme"in t&&this.updateTheme(),"createRightHeaderActionComponent"in t||"createLeftHeaderActionComponent"in t||"createPrefixHeaderActionComponent"in t)for(const s of this.groups)s.model.updateHeaderActions();this.layout(this.gridview.width,this.gridview.height,!0)}layout(t,n,i){if(super.layout(t,n,i),this._floatingGroups)for(const r of this._floatingGroups)r.overlay.setBounds()}updateDragAndDropState(){for(const t of this.groups)t.model.updateDragAndDropState()}focus(){var t;(t=this.activeGroup)===null||t===void 0||t.focus()}getGroupPanel(t){return this.panels.find(n=>n.id===t)}setActivePanel(t){t.group.model.openPanel(t),this.doSetGroupAndPanelActive(t.group)}moveToNext(t={}){var n;if(!t.group){if(!this.activeGroup)return;t.group=this.activeGroup}if(t.includePanel&&t.group&&t.group.activePanel!==t.group.panels[t.group.panels.length-1]){t.group.model.moveToNext({suppressRoll:!0});return}const i=Ne(t.group.element),r=(n=this.gridview.next(i))===null||n===void 0?void 0:n.view;this.doSetGroupAndPanelActive(r)}moveToPrevious(t={}){var n;if(!t.group){if(!this.activeGroup)return;t.group=this.activeGroup}if(t.includePanel&&t.group&&t.group.activePanel!==t.group.panels[0]){t.group.model.moveToPrevious({suppressRoll:!0});return}const i=Ne(t.group.element),r=(n=this.gridview.previous(i))===null||n===void 0?void 0:n.view;r&&this.doSetGroupAndPanelActive(r)}toJSON(){var t;const n=this.gridview.serialize(),i=this.panels.reduce((a,l)=>(a[l.id]=l.toJSON(),a),{}),r=this._floatingGroups.map(a=>({data:a.group.toJSON(),position:a.overlay.toJSON()})),o=this._popoutGroups.map(a=>({data:a.popoutGroup.toJSON(),gridReferenceGroup:a.referenceGroup,position:a.window.dimensions(),url:a.popoutGroup.api.location.type==="popout"?a.popoutGroup.api.location.popoutUrl:void 0})),s={grid:n,panels:i,activeGroup:(t=this.activeGroup)===null||t===void 0?void 0:t.id};return r.length>0&&(s.floatingGroups=r),o.length>0&&(s.popoutGroups=o),s}fromJSON(t,n){var i,r;const o=new Map;let s;if(n!=null&&n.reuseExistingPanels){s=this.createGroup(),this._groups.delete(s.api.id);const d=Object.keys(t.panels);for(const c of this.panels)d.includes(c.api.id)&&o.set(c.api.id,c);this.movingLock(()=>{Array.from(o.values()).forEach(c=>{this.moveGroupOrPanel({from:{groupId:c.api.group.api.id,panelId:c.api.id},to:{group:s,position:"center"},keepEmptyGroups:!0})})})}if(this.clear(),typeof t!="object"||t===null)throw new Error("dockview: serialized layout must be a non-null object");const{grid:a,panels:l,activeGroup:u}=t;if(a.root.type!=="branch"||!Array.isArray(a.root.data))throw new Error("dockview: root must be of type branch");try{const d=this.width,c=this.height,h=y=>{const{id:f,locked:g,hideHeader:b,headerPosition:k,views:D,activeView:_}=y;if(typeof f!="string")throw new Error("dockview: group id must be of type string");const P=this.createGroup({id:f,locked:!!g,hideHeader:!!b,headerPosition:k});this._onDidAddGroup.fire(P);const C=[];for(const G of D){const z=o.get(G);if(s&&z)this.movingLock(()=>{s.model.removePanel(z)}),C.push(z),z.updateFromStateModel(l[G]);else{const F=this._deserializer.fromJSON(l[G],P);C.push(F)}}for(let G=0;G<D.length;G++){const z=C[G],F=typeof _=="string"&&_===z.id;o.has(z.api.id)?this.movingLock(()=>{P.model.openPanel(z,{skipSetActive:!F,skipSetGroupActive:!0})}):P.model.openPanel(z,{skipSetActive:!F,skipSetGroupActive:!0})}return!P.activePanel&&P.panels.length>0&&P.model.openPanel(P.panels[P.panels.length-1],{skipSetGroupActive:!0}),P};this.gridview.deserialize(a,{fromJSON:y=>h(y.data)}),this.layout(d,c,!0);const p=(i=t.floatingGroups)!==null&&i!==void 0?i:[];for(const y of p){const{data:f,position:g}=y,b=h(f);this.addFloatingGroup(b,{position:g,width:g.width,height:g.height,skipRemoveGroup:!0,inDragMode:!1})}const m=(r=t.popoutGroups)!==null&&r!==void 0?r:[],v=[];m.forEach((y,f)=>{const{data:g,position:b,gridReferenceGroup:k,url:D}=y,_=h(g),P=new Promise(C=>{setTimeout(()=>{this.addPopoutGroup(_,{position:b??void 0,overridePopoutGroup:k?_:void 0,referenceGroup:k?this.getPanel(k):void 0,popoutUrl:D}),C()},f*DI)});v.push(P)}),this._popoutRestorationPromise=Promise.all(v).then(()=>{});for(const y of this._floatingGroups)y.overlay.setBounds();if(typeof u=="string"){const y=this.getPanel(u);y&&this.doSetGroupAndPanelActive(y)}}catch(d){console.error("dockview: failed to deserialize layout. Reverting changes",d);for(const c of this.groups)for(const h of c.panels)this.removePanel(h,{removeEmptyGroup:!1,skipDispose:!1});for(const c of this.groups)c.dispose(),this._groups.delete(c.id),this._onDidRemoveGroup.fire(c);for(const c of[...this._floatingGroups])c.dispose();throw this.clear(),d}this.updateWatermark(),this.debouncedUpdateAllPositions(),this._onDidLayoutFromJSON.fire()}clear(){const t=Array.from(this._groups.values()).map(i=>i.value),n=!!this.activeGroup;for(const i of t)this.removeGroup(i,{skipActive:!0});n&&this.doSetGroupAndPanelActive(void 0),this.gridview.clear()}closeAllGroups(){for(const t of this._groups.entries()){const[n,i]=t;i.value.model.closeAllPanels()}}addPanel(t){var n,i;if(this.panels.find(l=>l.id===t.id))throw new Error(`dockview: panel with id ${t.id} already exists`);let r;if(t.position&&t.floating)throw new Error("dockview: you can only provide one of: position, floating as arguments to .addPanel(...)");const o={width:t.initialWidth,height:t.initialHeight};let s;if(t.position)if(pI(t.position)){const l=typeof t.position.referencePanel=="string"?this.getGroupPanel(t.position.referencePanel):t.position.referencePanel;if(s=t.position.index,!l)throw new Error(`dockview: referencePanel '${t.position.referencePanel}' does not exist`);r=this.findGroup(l)}else if(fI(t.position)){if(r=typeof t.position.referenceGroup=="string"?(n=this._groups.get(t.position.referenceGroup))===null||n===void 0?void 0:n.value:t.position.referenceGroup,s=t.position.index,!r)throw new Error(`dockview: referenceGroup '${t.position.referenceGroup}' does not exist`)}else{const l=this.orthogonalize(tm(t.position.direction)),u=this.createPanel(t,l);return l.model.openPanel(u,{skipSetActive:t.inactive,skipSetGroupActive:t.inactive,index:s}),t.inactive||this.doSetGroupAndPanelActive(l),l.api.setSize({height:o==null?void 0:o.height,width:o==null?void 0:o.width}),u}else r=this.activeGroup;let a;if(r){const l=Oa(((i=t.position)===null||i===void 0?void 0:i.direction)||"within");if(t.floating){const u=this.createGroup();this._onDidAddGroup.fire(u);const d=typeof t.floating=="object"&&t.floating!==null?t.floating:{};this.addFloatingGroup(u,Object.assign(Object.assign({},d),{inDragMode:!1,skipRemoveGroup:!0,skipActiveGroup:!0})),a=this.createPanel(t,u),u.model.openPanel(a,{skipSetActive:t.inactive,skipSetGroupActive:t.inactive,index:s})}else if(r.api.location.type==="floating"||l==="center")a=this.createPanel(t,r),r.model.openPanel(a,{skipSetActive:t.inactive,skipSetGroupActive:t.inactive,index:s}),r.api.setSize({width:o==null?void 0:o.width,height:o==null?void 0:o.height}),t.inactive||this.doSetGroupAndPanelActive(r);else{const u=Ne(r.element),d=vn(this.gridview.orientation,u,l),c=this.createGroupAtLocation(d,this.orientationAtLocation(d)===K.VERTICAL?o==null?void 0:o.height:o==null?void 0:o.width);a=this.createPanel(t,c),c.model.openPanel(a,{skipSetActive:t.inactive,skipSetGroupActive:t.inactive,index:s}),t.inactive||this.doSetGroupAndPanelActive(c)}}else if(t.floating){const l=this.createGroup();this._onDidAddGroup.fire(l);const u=typeof t.floating=="object"&&t.floating!==null?t.floating:{};this.addFloatingGroup(l,Object.assign(Object.assign({},u),{inDragMode:!1,skipRemoveGroup:!0,skipActiveGroup:!0})),a=this.createPanel(t,l),l.model.openPanel(a,{skipSetActive:t.inactive,skipSetGroupActive:t.inactive,index:s})}else{const l=this.createGroupAtLocation([0],this.gridview.orientation===K.VERTICAL?o==null?void 0:o.height:o==null?void 0:o.width);a=this.createPanel(t,l),l.model.openPanel(a,{skipSetActive:t.inactive,skipSetGroupActive:t.inactive,index:s}),t.inactive||this.doSetGroupAndPanelActive(l)}return a}removePanel(t,n={removeEmptyGroup:!0}){const i=t.group;if(!i)throw new Error(`dockview: cannot remove panel ${t.id}. it's missing a group.`);i.model.removePanel(t,{skipSetActiveGroup:n.skipSetActiveGroup}),n.skipDispose||(t.group.model.renderContainer.detatch(t),t.dispose()),i.size===0&&n.removeEmptyGroup&&this.removeGroup(i,{skipActive:n.skipSetActiveGroup})}createWatermarkComponent(){return this.options.createWatermarkComponent?this.options.createWatermarkComponent():new SI}updateWatermark(){var t,n;if(this.groups.filter(i=>i.api.location.type==="grid"&&i.api.isVisible).length===0){if(!this._watermark){this._watermark=this.createWatermarkComponent(),this._watermark.init({containerApi:new Na(this)});const i=document.createElement("div");i.className="dv-watermark-container",CA(i,"watermark-component"),i.appendChild(this._watermark.element),this.gridview.element.appendChild(i)}}else this._watermark&&(this._watermark.element.parentElement.remove(),(n=(t=this._watermark).dispose)===null||n===void 0||n.call(t),this._watermark=null)}addGroup(t){var n;if(t){let i;if(mI(t)){const u=typeof t.referencePanel=="string"?this.panels.find(d=>d.id===t.referencePanel):t.referencePanel;if(!u)throw new Error(`dockview: reference panel ${t.referencePanel} does not exist`);if(i=this.findGroup(u),!i)throw new Error(`dockview: reference group for reference panel ${t.referencePanel} does not exist`)}else if(vI(t)){if(i=typeof t.referenceGroup=="string"?(n=this._groups.get(t.referenceGroup))===null||n===void 0?void 0:n.value:t.referenceGroup,!i)throw new Error(`dockview: reference group ${t.referenceGroup} does not exist`)}else{const u=this.orthogonalize(tm(t.direction),t);return t.skipSetActive||this.doSetGroupAndPanelActive(u),u}const r=Oa(t.direction||"within"),o=Ne(i.element),s=vn(this.gridview.orientation,o,r),a=this.createGroup(t),l=this.getLocationOrientation(s)===K.VERTICAL?t.initialHeight:t.initialWidth;return this.doAddGroup(a,s,l),t.skipSetActive||this.doSetGroupAndPanelActive(a),a}else{const i=this.createGroup(t);return this.doAddGroup(i),this.doSetGroupAndPanelActive(i),i}}getLocationOrientation(t){return t.length%2==0&&this.gridview.orientation===K.HORIZONTAL?K.HORIZONTAL:K.VERTICAL}removeGroup(t,n){this.doRemoveGroup(t,n)}doRemoveGroup(t,n){var i;const r=[...t.panels];if(!(n!=null&&n.skipDispose))for(const a of r)this.removePanel(a,{removeEmptyGroup:!1,skipDispose:(i=n==null?void 0:n.skipDispose)!==null&&i!==void 0?i:!1});const o=this.activePanel;if(t.api.location.type==="floating"){const a=this._floatingGroups.find(l=>l.group===t);if(a){if(n!=null&&n.skipDispose||(a.group.dispose(),this._groups.delete(t.id),this._onDidRemoveGroup.fire(t)),mu(this._floatingGroups,a),a.dispose(),!(n!=null&&n.skipActive)&&this._activeGroup===t){const l=Array.from(this._groups.values());this.doSetGroupAndPanelActive(l.length>0?l[0].value:void 0)}return a.group}throw new Error("dockview: failed to find floating group")}if(t.api.location.type==="popout"){const a=this._popoutGroups.find(l=>l.popoutGroup===t);if(a){if(!(n!=null&&n.skipDispose)){if(!(n!=null&&n.skipPopoutAssociated)){const u=a.referenceGroup?this.getPanel(a.referenceGroup):void 0;u&&u.panels.length===0&&this.removeGroup(u)}a.popoutGroup.dispose(),this._groups.delete(t.id),this._onDidRemoveGroup.fire(t)}mu(this._popoutGroups,a);const l=a.disposable.dispose();if(!(n!=null&&n.skipPopoutReturn)&&l&&(this.doAddGroup(l,[0]),this.doSetGroupAndPanelActive(l)),!(n!=null&&n.skipActive)&&this._activeGroup===t){const u=Array.from(this._groups.values());this.doSetGroupAndPanelActive(u.length>0?u[0].value:void 0)}return this.updateWatermark(),a.popoutGroup}throw new Error("dockview: failed to find popout group")}const s=super.doRemoveGroup(t,n);return n!=null&&n.skipActive||this.activePanel!==o&&this._onDidActivePanelChange.fire(this.activePanel),s}debouncedUpdateAllPositions(){this._updatePositionsFrameId!==void 0&&cancelAnimationFrame(this._updatePositionsFrameId),this._updatePositionsFrameId=requestAnimationFrame(()=>{this._updatePositionsFrameId=void 0,this.overlayRenderContainer.updateAllPositions()})}movingLock(t){const n=this._moving;try{return this._moving=!0,t()}finally{this._moving=n}}moveGroupOrPanel(t){var n;const i=t.to.group,r=t.from.groupId,o=t.from.panelId,s=t.to.position,a=t.to.index,l=r?(n=this._groups.get(r))===null||n===void 0?void 0:n.value:void 0;if(!l)throw new Error(`dockview: Failed to find group id ${r}`);if(o===void 0){this.moveGroup({from:{group:l},to:{group:i,position:s},skipSetActive:t.skipSetActive});return}if(!s||s==="center"){const u=this.movingLock(()=>l.model.removePanel(o,{skipSetActive:!1,skipSetActiveGroup:!0}));if(!u)throw new Error(`dockview: No panel with id ${o}`);!t.keepEmptyGroups&&l.model.size===0&&this.doRemoveGroup(l,{skipActive:!0});const d=i.model.size===0;this.movingLock(()=>{var c;return i.model.openPanel(u,{index:a,skipSetActive:((c=t.skipSetActive)!==null&&c!==void 0?c:!1)&&!d,skipSetGroupActive:!0})}),t.skipSetActive||this.doSetGroupAndPanelActive(i),this._onDidMovePanel.fire({panel:u,from:l})}else{const u=Ne(i.element),d=vn(this.gridview.orientation,u,s);if(l.size<2){const[c,h]=On(d);if(l.api.location.type==="grid"){const y=Ne(l.element),[f,g]=On(y);if(Uw(f,c)){this.gridview.moveView(f,g,h),this._onDidMovePanel.fire({panel:this.getGroupPanel(o),from:l});return}}if(l.api.location.type==="popout"){const y=this._popoutGroups.find(b=>b.popoutGroup===l),f=this.movingLock(()=>y.popoutGroup.model.removePanel(y.popoutGroup.panels[0],{skipSetActive:!0,skipSetActiveGroup:!0}));this.doRemoveGroup(l,{skipActive:!0});const g=this.createGroupAtLocation(d);this.movingLock(()=>g.model.openPanel(f,{skipSetActive:!0})),this.doSetGroupAndPanelActive(g),this._onDidMovePanel.fire({panel:this.getGroupPanel(o),from:l});return}const p=this.movingLock(()=>this.doRemoveGroup(l,{skipActive:!0,skipDispose:!0})),m=Ne(i.element),v=vn(this.gridview.orientation,m,s);this.movingLock(()=>this.doAddGroup(p,v)),this.doSetGroupAndPanelActive(p),this._onDidMovePanel.fire({panel:this.getGroupPanel(o),from:l})}else{const c=this.movingLock(()=>l.model.removePanel(o,{skipSetActive:!1,skipSetActiveGroup:!0}));if(!c)throw new Error(`dockview: No panel with id ${o}`);const h=vn(this.gridview.orientation,u,s),p=this.createGroupAtLocation(h);this.movingLock(()=>p.model.openPanel(c,{skipSetGroupActive:!0})),this.doSetGroupAndPanelActive(p),this._onDidMovePanel.fire({panel:c,from:l})}}}moveGroup(t){const n=t.from.group,i=t.to.group,r=t.to.position;if(r==="center"){const o=n.activePanel,s=this.movingLock(()=>[...n.panels].map(a=>n.model.removePanel(a.id,{skipSetActive:!0})));(n==null?void 0:n.model.size)===0&&this.doRemoveGroup(n,{skipActive:!0}),this.movingLock(()=>{for(const a of s)i.model.openPanel(a,{skipSetActive:a!==o,skipSetGroupActive:!0})}),t.skipSetActive!==!0?this.doSetGroupAndPanelActive(i):this.activePanel||this.doSetGroupAndPanelActive(i)}else{switch(n.api.location.type){case"grid":this.gridview.removeView(Ne(n.element));break;case"floating":{const o=this._floatingGroups.find(s=>s.group===n);if(!o)throw new Error("dockview: failed to find floating group");o.dispose();break}case"popout":{const o=this._popoutGroups.find(a=>a.popoutGroup===n);if(!o)throw new Error("dockview: failed to find popout group");const s=this._popoutGroups.indexOf(o);if(s>=0&&this._popoutGroups.splice(s,1),o.referenceGroup){const a=this.getPanel(o.referenceGroup);a&&!a.api.isVisible&&this.doRemoveGroup(a,{skipActive:!0})}o.window.dispose(),i.api.location.type==="grid"?(n.model.renderContainer=this.overlayRenderContainer,n.model.dropTargetContainer=this.rootDropTargetContainer,n.model.location={type:"grid"}):i.api.location.type==="floating"&&(n.model.renderContainer=this.overlayRenderContainer,n.model.dropTargetContainer=this.rootDropTargetContainer,n.model.location={type:"floating"});break}}if(i.api.location.type==="grid"){const o=Ne(i.element),s=vn(this.gridview.orientation,o,r);let a;switch(this.gridview.orientation){case K.VERTICAL:a=o.length%2==0?n.api.width:n.api.height;break;case K.HORIZONTAL:a=o.length%2==0?n.api.height:n.api.width;break}this.gridview.addView(n,a,s)}else if(i.api.location.type==="floating"){const o=this._floatingGroups.find(s=>s.group===i);if(o){const s=o.overlay.toJSON();let a,l;"left"in s?a=s.left+50:"right"in s?a=Math.max(0,s.right-s.width-50):a=50,"top"in s?l=s.top+50:"bottom"in s?l=Math.max(0,s.bottom-s.height-50):l=50,this.addFloatingGroup(n,{height:s.height,width:s.width,position:{left:a,top:l}})}}}if(n.panels.forEach(o=>{this._onDidMovePanel.fire({panel:o,from:n})}),this.debouncedUpdateAllPositions(),t.skipSetActive===!1){const o=i??n;this.doSetGroupAndPanelActive(o)}}doSetGroupActive(t){super.doSetGroupActive(t);const n=this.activePanel;!this._moving&&n!==this._onDidActivePanelChange.value&&this._onDidActivePanelChange.fire(n)}doSetGroupAndPanelActive(t){super.doSetGroupActive(t);const n=this.activePanel;t&&this.hasMaximizedGroup()&&!this.isMaximizedGroup(t)&&this.exitMaximizedGroup(),!this._moving&&n!==this._onDidActivePanelChange.value&&this._onDidActivePanelChange.fire(n)}getNextGroupId(){let t=this.nextGroupId.next();for(;this._groups.has(t);)t=this.nextGroupId.next();return t}createGroup(t){t||(t={});let n=t==null?void 0:t.id;if(n&&this._groups.has(t.id)&&(console.warn(`dockview: Duplicate group id ${t==null?void 0:t.id}. reassigning group id to avoid errors`),n=void 0),!n)for(n=this.nextGroupId.next();this._groups.has(n);)n=this.nextGroupId.next();const i=new nm(this,n,t);if(i.init({params:{},accessor:this}),!this._groups.has(i.id)){const r=new ie(i.model.onTabDragStart(o=>{this._onWillDragPanel.fire(o)}),i.model.onGroupDragStart(o=>{this._onWillDragGroup.fire(o)}),i.model.onMove(o=>{const{groupId:s,itemId:a,target:l,index:u}=o;this.moveGroupOrPanel({from:{groupId:s,panelId:a},to:{group:i,position:l,index:u}})}),i.model.onDidDrop(o=>{this._onDidDrop.fire(o)}),i.model.onWillDrop(o=>{this._onWillDrop.fire(o)}),i.model.onWillShowOverlay(o=>{if(this.options.disableDnd){o.preventDefault();return}this._onWillShowOverlay.fire(o)}),i.model.onUnhandledDragOverEvent(o=>{this._onUnhandledDragOverEvent.fire(o)}),i.model.onDidAddPanel(o=>{this._moving||this._onDidAddPanel.fire(o.panel)}),i.model.onDidRemovePanel(o=>{this._moving||this._onDidRemovePanel.fire(o.panel)}),i.model.onDidActivePanelChange(o=>{this._moving||o.panel===this.activePanel&&this._onDidActivePanelChange.value!==o.panel&&this._onDidActivePanelChange.fire(o.panel)}),Ni.any(i.model.onDidPanelTitleChange,i.model.onDidPanelParametersChange)(()=>{this._bufferOnDidLayoutChange.fire()}));this._groups.set(i.id,{value:i,disposable:r})}return i.initialize(),i}createPanel(t,n){var i,r,o;const s=t.component,a=(i=t.tabComponent)!==null&&i!==void 0?i:this.options.defaultTabComponent,l=new sy(this,t.id,s,a),u=new nr(t.id,s,a,this,this._api,n,l,{renderer:t.renderer,minimumWidth:t.minimumWidth,minimumHeight:t.minimumHeight,maximumWidth:t.maximumWidth,maximumHeight:t.maximumHeight});return u.init({title:(r=t.title)!==null&&r!==void 0?r:t.id,params:(o=t==null?void 0:t.params)!==null&&o!==void 0?o:{}}),u}createGroupAtLocation(t,n,i){const r=this.createGroup(i);return this.doAddGroup(r,t,n),r}findGroup(t){var n;return(n=Array.from(this._groups.values()).find(i=>i.value.model.containsPanel(t)))===null||n===void 0?void 0:n.value}orientationAtLocation(t){const n=this.gridview.orientation;return t.length%2==1?n:wn(n)}updateDropTargetModel(t){"dndEdges"in t&&(this._rootDropTarget.disabled=typeof t.dndEdges=="boolean"&&t.dndEdges===!1,typeof t.dndEdges=="object"&&t.dndEdges!==null?this._rootDropTarget.setOverlayModel(t.dndEdges):this._rootDropTarget.setOverlayModel(sm)),"rootOverlayModel"in t&&this.updateDropTargetModel({dndEdges:t.dndEdges})}updateTheme(){var t,n;const i=(t=this._options.theme)!==null&&t!==void 0?t:_I;switch(this._themeClassnames.setClassNames(i.className),this.gridview.margin=(n=i.gap)!==null&&n!==void 0?n:0,i.dndOverlayMounting){case"absolute":this.rootDropTargetContainer.disabled=!1;break;case"relative":default:this.rootDropTargetContainer.disabled=!0;break}}}class RI extends Yw{get orientation(){return this.gridview.orientation}set orientation(t){this.gridview.orientation=t}get options(){return this._options}get deserializer(){return this._deserializer}set deserializer(t){this._deserializer=t}constructor(t,n){var i;super(t,{proportionalLayout:(i=n.proportionalLayout)!==null&&i!==void 0?i:!0,orientation:n.orientation,styles:n.hideBorders?{separatorBorder:"transparent"}:void 0,disableAutoResizing:n.disableAutoResizing,className:n.className}),this._onDidLayoutfromJSON=new A,this.onDidLayoutFromJSON=this._onDidLayoutfromJSON.event,this._onDidRemoveGroup=new A,this.onDidRemoveGroup=this._onDidRemoveGroup.event,this._onDidAddGroup=new A,this.onDidAddGroup=this._onDidAddGroup.event,this._onDidActiveGroupChange=new A,this.onDidActiveGroupChange=this._onDidActiveGroupChange.event,this._options=n,this.addDisposables(this._onDidAddGroup,this._onDidRemoveGroup,this._onDidActiveGroupChange,this.onDidAdd(r=>{this._onDidAddGroup.fire(r)}),this.onDidRemove(r=>{this._onDidRemoveGroup.fire(r)}),this.onDidActiveChange(r=>{this._onDidActiveGroupChange.fire(r)}))}updateOptions(t){super.updateOptions(t);const n=typeof t.orientation=="string"&&this.gridview.orientation!==t.orientation;this._options=Object.assign(Object.assign({},this.options),t),n&&(this.gridview.orientation=t.orientation),this.layout(this.gridview.width,this.gridview.height,!0)}removePanel(t){this.removeGroup(t)}toJSON(){var t;return{grid:this.gridview.serialize(),activePanel:(t=this.activeGroup)===null||t===void 0?void 0:t.id}}setVisible(t,n){this.gridview.setViewVisible(Ne(t.element),n)}setActive(t){this._groups.forEach((n,i)=>{n.value.setActive(t===n.value)})}focus(){var t;(t=this.activeGroup)===null||t===void 0||t.focus()}fromJSON(t){this.clear();const{grid:n,activePanel:i}=t;try{const r=[],o=this.width,s=this.height;if(this.gridview.deserialize(n,{fromJSON:a=>{const{data:l}=a,u=this.options.createComponent({id:l.id,name:l.component});return r.push(()=>u.init({params:l.params,minimumWidth:l.minimumWidth,maximumWidth:l.maximumWidth,minimumHeight:l.minimumHeight,maximumHeight:l.maximumHeight,priority:l.priority,snap:!!l.snap,accessor:this,isVisible:a.visible})),this._onDidAddGroup.fire(u),this.registerPanel(u),u}}),this.layout(o,s,!0),r.forEach(a=>a()),typeof i=="string"){const a=this.getPanel(i);a&&this.doSetGroupActive(a)}}catch(r){for(const o of this.groups)o.dispose(),this._groups.delete(o.id),this._onDidRemoveGroup.fire(o);throw this.clear(),r}this._onDidLayoutfromJSON.fire()}clear(){const t=this.activeGroup,n=Array.from(this._groups.values());for(const i of n)i.disposable.dispose(),this.doRemoveGroup(i.value,{skipActive:!0});t&&this.doSetGroupActive(void 0),this.gridview.clear()}movePanel(t,n){var i;let r;const o=this.gridview.remove(t),s=(i=this._groups.get(n.reference))===null||i===void 0?void 0:i.value;if(!s)throw new Error(`reference group ${n.reference} does not exist`);const a=Oa(n.direction);if(a==="center")throw new Error(`${a} not supported as an option`);{const l=Ne(s.element);r=vn(this.gridview.orientation,l,a)}this.doAddGroup(o,r,n.size)}addPanel(t){var n,i,r,o;let s=(n=t.location)!==null&&n!==void 0?n:[0];if(!((i=t.position)===null||i===void 0)&&i.referencePanel){const l=(r=this._groups.get(t.position.referencePanel))===null||r===void 0?void 0:r.value;if(!l)throw new Error(`reference group ${t.position.referencePanel} does not exist`);const u=Oa(t.position.direction);if(u==="center")throw new Error(`${u} not supported as an option`);{const d=Ne(l.element);s=vn(this.gridview.orientation,d,u)}}const a=this.options.createComponent({id:t.id,name:t.component});return a.init({params:(o=t.params)!==null&&o!==void 0?o:{},minimumWidth:t.minimumWidth,maximumWidth:t.maximumWidth,minimumHeight:t.minimumHeight,maximumHeight:t.maximumHeight,priority:t.priority,snap:!!t.snap,accessor:this,isVisible:!0}),this.doAddGroup(a,s,t.size),this.registerPanel(a),this.doSetGroupActive(a),a}registerPanel(t){const n=new ie(t.api.onDidFocusChange(i=>{i.isFocused&&this._groups.forEach(r=>{const o=r.value;o!==t?o.setActive(!1):o.setActive(!0)})}));this._groups.set(t.id,{value:t,disposable:n})}moveGroup(t,n,i){const r=this.getPanel(n);if(!r)throw new Error("invalid operation");const o=Ne(t.element),s=vn(this.gridview.orientation,o,i),[a,l]=On(s),u=Ne(r.element),[d,c]=On(u);if(Uw(d,a)){this.gridview.moveView(d,c,l);return}const h=this.doRemoveGroup(r,{skipActive:!0,skipDispose:!0}),p=Ne(t.element),m=vn(this.gridview.orientation,p,i);this.doAddGroup(h,m)}removeGroup(t){super.removeGroup(t)}dispose(){super.dispose(),this._onDidLayoutfromJSON.dispose()}}class LI extends lh{get panels(){return this.splitview.getViews()}get options(){return this._options}get length(){return this._panels.size}get orientation(){return this.splitview.orientation}get splitview(){return this._splitview}set splitview(t){this._splitview&&this._splitview.dispose(),this._splitview=t,this._splitviewChangeDisposable.value=new ie(this._splitview.onDidSashEnd(()=>{this._onDidLayoutChange.fire(void 0)}),this._splitview.onDidAddView(n=>this._onDidAddView.fire(n)),this._splitview.onDidRemoveView(n=>this._onDidRemoveView.fire(n)))}get minimumSize(){return this.splitview.minimumSize}get maximumSize(){return this.splitview.maximumSize}get height(){return this.splitview.orientation===K.HORIZONTAL?this.splitview.orthogonalSize:this.splitview.size}get width(){return this.splitview.orientation===K.HORIZONTAL?this.splitview.size:this.splitview.orthogonalSize}constructor(t,n){var i;super(document.createElement("div"),n.disableAutoResizing),this._splitviewChangeDisposable=new tt,this._panels=new Map,this._onDidLayoutfromJSON=new A,this.onDidLayoutFromJSON=this._onDidLayoutfromJSON.event,this._onDidAddView=new A,this.onDidAddView=this._onDidAddView.event,this._onDidRemoveView=new A,this.onDidRemoveView=this._onDidRemoveView.event,this._onDidLayoutChange=new A,this.onDidLayoutChange=this._onDidLayoutChange.event,this.element.style.height="100%",this.element.style.width="100%",this._classNames=new pl(this.element),this._classNames.setClassNames((i=n.className)!==null&&i!==void 0?i:""),t.appendChild(this.element),this._options=n,this.splitview=new Uo(this.element,n),this.addDisposables(this._onDidAddView,this._onDidLayoutfromJSON,this._onDidRemoveView,this._onDidLayoutChange)}updateOptions(t){var n,i;"className"in t&&this._classNames.setClassNames((n=t.className)!==null&&n!==void 0?n:""),"disableResizing"in t&&(this.disableResizing=(i=t.disableAutoResizing)!==null&&i!==void 0?i:!1),typeof t.orientation=="string"&&(this.splitview.orientation=t.orientation),this._options=Object.assign(Object.assign({},this.options),t),this.splitview.layout(this.splitview.size,this.splitview.orthogonalSize)}focus(){var t;(t=this._activePanel)===null||t===void 0||t.focus()}movePanel(t,n){this.splitview.moveView(t,n)}setVisible(t,n){const i=this.panels.indexOf(t);this.splitview.setViewVisible(i,n)}setActive(t,n){this._activePanel=t,this.panels.filter(i=>i!==t).forEach(i=>{i.api._onDidActiveChange.fire({isActive:!1}),n||i.focus()}),t.api._onDidActiveChange.fire({isActive:!0}),n||t.focus()}removePanel(t,n){const i=this._panels.get(t.id);if(!i)throw new Error(`unknown splitview panel ${t.id}`);i.dispose(),this._panels.delete(t.id);const r=this.panels.findIndex(a=>a===t);this.splitview.removeView(r,n).dispose();const s=this.panels;s.length>0&&this.setActive(s[s.length-1])}getPanel(t){return this.panels.find(n=>n.id===t)}addPanel(t){var n;if(this._panels.has(t.id))throw new Error(`panel ${t.id} already exists`);const i=this.options.createComponent({id:t.id,name:t.component});i.orientation=this.splitview.orientation,i.init({params:(n=t.params)!==null&&n!==void 0?n:{},minimumSize:t.minimumSize,maximumSize:t.maximumSize,snap:t.snap,priority:t.priority,accessor:this});const r=typeof t.size=="number"?t.size:Ut.Distribute,o=typeof t.index=="number"?t.index:void 0;return this.splitview.addView(i,r,o),this.doAddView(i),this.setActive(i),i}layout(t,n){const[i,r]=this.splitview.orientation===K.HORIZONTAL?[t,n]:[n,t];this.splitview.layout(i,r)}doAddView(t){const n=t.api.onDidFocusChange(i=>{i.isFocused&&this.setActive(t,!0)});this._panels.set(t.id,n)}toJSON(){var t;return{views:this.splitview.getViews().map((i,r)=>({size:this.splitview.getViewSize(r),data:i.toJSON(),snap:!!i.snap,priority:i.priority})),activeView:(t=this._activePanel)===null||t===void 0?void 0:t.id,size:this.splitview.size,orientation:this.splitview.orientation}}fromJSON(t){this.clear();const{views:n,orientation:i,size:r,activeView:o}=t,s=[],a=this.width,l=this.height;if(this.splitview=new Uo(this.element,{orientation:i,proportionalLayout:this.options.proportionalLayout,descriptor:{size:r,views:n.map(u=>{const d=u.data;if(this._panels.has(d.id))throw new Error(`panel ${d.id} already exists`);const c=this.options.createComponent({id:d.id,name:d.component});return s.push(()=>{var h;c.init({params:(h=d.params)!==null&&h!==void 0?h:{},minimumSize:d.minimumSize,maximumSize:d.maximumSize,snap:u.snap,priority:u.priority,accessor:this})}),c.orientation=i,this.doAddView(c),setTimeout(()=>{this._onDidAddView.fire(c)},0),{size:u.size,view:c}})}}),this.layout(a,l),s.forEach(u=>u()),typeof o=="string"){const u=this.getPanel(o);u&&this.setActive(u)}this._onDidLayoutfromJSON.fire()}clear(){for(const t of this._panels.values())t.dispose();for(this._panels.clear();this.splitview.length>0;)this.splitview.removeView(0,Ut.Distribute,!0).dispose()}dispose(){for(const n of this._panels.values())n.dispose();this._panels.clear();const t=this.splitview.getViews();this._splitviewChangeDisposable.dispose(),this.splitview.dispose();for(const n of t)n.dispose();this.element.remove(),super.dispose()}}class am extends ie{get element(){return this._element}constructor(){super(),this._expandedIcon=cI(),this._collapsedIcon=ny(),this.disposable=new tt,this.apiRef={api:null},this._element=document.createElement("div"),this.element.className="dv-default-header",this._content=document.createElement("span"),this._expander=document.createElement("div"),this._expander.className="dv-pane-header-icon",this.element.appendChild(this._expander),this.element.appendChild(this._content),this.addDisposables(oe(this._element,"click",()=>{var t;(t=this.apiRef.api)===null||t===void 0||t.setExpanded(!this.apiRef.api.isExpanded)}))}init(t){this.apiRef.api=t.api,this._content.textContent=t.title,this.updateIcon(),this.disposable.value=t.api.onDidExpansionChange(()=>{this.updateIcon()})}updateIcon(){var t;const n=!!(!((t=this.apiRef.api)===null||t===void 0)&&t.isExpanded);J(this._expander,"collapsed",!n),n?(this._expander.contains(this._collapsedIcon)&&this._collapsedIcon.remove(),this._expander.contains(this._expandedIcon)||this._expander.appendChild(this._expandedIcon)):(this._expander.contains(this._expandedIcon)&&this._expandedIcon.remove(),this._expander.contains(this._collapsedIcon)||this._expander.appendChild(this._collapsedIcon))}update(t){}dispose(){this.disposable.dispose(),super.dispose()}}const MI=ah(),lm=22,um=0,cm=Number.MAX_SAFE_INTEGER;class dm extends nI{constructor(t){super({accessor:t.accessor,id:t.id,component:t.component,headerComponent:t.headerComponent,orientation:t.orientation,isExpanded:t.isExpanded,disableDnd:t.disableDnd,headerSize:t.headerSize,minimumBodySize:t.minimumBodySize,maximumBodySize:t.maximumBodySize}),this.options=t}getBodyComponent(){return this.options.body}getHeaderComponent(){return this.options.header}}class FI extends lh{get id(){return this._id}get panels(){return this.paneview.getPanes()}set paneview(t){this._paneview=t,this._disposable.value=new ie(this._paneview.onDidChange(()=>{this._onDidLayoutChange.fire(void 0)}),this._paneview.onDidAddView(n=>this._onDidAddView.fire(n)),this._paneview.onDidRemoveView(n=>this._onDidRemoveView.fire(n)))}get paneview(){return this._paneview}get minimumSize(){return this.paneview.minimumSize}get maximumSize(){return this.paneview.maximumSize}get height(){return this.paneview.orientation===K.HORIZONTAL?this.paneview.orthogonalSize:this.paneview.size}get width(){return this.paneview.orientation===K.HORIZONTAL?this.paneview.size:this.paneview.orthogonalSize}get options(){return this._options}constructor(t,n){var i;super(document.createElement("div"),n.disableAutoResizing),this._id=MI.next(),this._disposable=new tt,this._viewDisposables=new Map,this._onDidLayoutfromJSON=new A,this.onDidLayoutFromJSON=this._onDidLayoutfromJSON.event,this._onDidLayoutChange=new A,this.onDidLayoutChange=this._onDidLayoutChange.event,this._onDidDrop=new A,this.onDidDrop=this._onDidDrop.event,this._onDidAddView=new A,this.onDidAddView=this._onDidAddView.event,this._onDidRemoveView=new A,this.onDidRemoveView=this._onDidRemoveView.event,this._onUnhandledDragOverEvent=new A,this.onUnhandledDragOverEvent=this._onUnhandledDragOverEvent.event,this.element.style.height="100%",this.element.style.width="100%",this.addDisposables(this._onDidLayoutChange,this._onDidLayoutfromJSON,this._onDidDrop,this._onDidAddView,this._onDidRemoveView,this._onUnhandledDragOverEvent),this._classNames=new pl(this.element),this._classNames.setClassNames((i=n.className)!==null&&i!==void 0?i:""),t.appendChild(this.element),this._options=n,this.paneview=new em(this.element,{orientation:K.VERTICAL}),this.addDisposables(this._disposable)}setVisible(t,n){const i=this.panels.indexOf(t);this.paneview.setViewVisible(i,n)}focus(){}updateOptions(t){var n,i;"className"in t&&this._classNames.setClassNames((n=t.className)!==null&&n!==void 0?n:""),"disableResizing"in t&&(this.disableResizing=(i=t.disableAutoResizing)!==null&&i!==void 0?i:!1),this._options=Object.assign(Object.assign({},this.options),t)}addPanel(t){var n,i;const r=this.options.createComponent({id:t.id,name:t.component});let o;t.headerComponent&&this.options.createHeaderComponent&&(o=this.options.createHeaderComponent({id:t.id,name:t.headerComponent})),o||(o=new am);const s=new dm({id:t.id,component:t.component,headerComponent:t.headerComponent,header:o,body:r,orientation:K.VERTICAL,isExpanded:!!t.isExpanded,disableDnd:!!this.options.disableDnd,accessor:this,headerSize:(n=t.headerSize)!==null&&n!==void 0?n:lm,minimumBodySize:um,maximumBodySize:cm});this.doAddPanel(s);const a=typeof t.size=="number"?t.size:Ut.Distribute,l=typeof t.index=="number"?t.index:void 0;return s.init({params:(i=t.params)!==null&&i!==void 0?i:{},minimumBodySize:t.minimumBodySize,maximumBodySize:t.maximumBodySize,isExpanded:t.isExpanded,title:t.title,containerApi:new Zo(this),accessor:this}),this.paneview.addPane(s,a,l),s.orientation=this.paneview.orientation,s}removePanel(t){const i=this.panels.findIndex(r=>r===t);this.paneview.removePane(i),this.doRemovePanel(t)}movePanel(t,n){this.paneview.moveView(t,n)}getPanel(t){return this.panels.find(n=>n.id===t)}layout(t,n){const[i,r]=this.paneview.orientation===K.HORIZONTAL?[t,n]:[n,t];this.paneview.layout(i,r)}toJSON(){const t=r=>r===Number.MAX_SAFE_INTEGER||r===Number.POSITIVE_INFINITY?void 0:r,n=r=>r<=0?void 0:r;return{views:this.paneview.getPanes().map((r,o)=>({size:this.paneview.getViewSize(o),data:r.toJSON(),minimumSize:n(r.minimumBodySize),maximumSize:t(r.maximumBodySize),headerSize:r.headerSize,expanded:r.isExpanded()})),size:this.paneview.size}}fromJSON(t){this.clear();const{views:n,size:i}=t,r=[],o=this.width,s=this.height;this.paneview=new em(this.element,{orientation:K.VERTICAL,descriptor:{size:i,views:n.map(a=>{var l,u,d;const c=a.data,h=this.options.createComponent({id:c.id,name:c.component});let p;c.headerComponent&&this.options.createHeaderComponent&&(p=this.options.createHeaderComponent({id:c.id,name:c.headerComponent})),p||(p=new am);const m=new dm({id:c.id,component:c.component,headerComponent:c.headerComponent,header:p,body:h,orientation:K.VERTICAL,isExpanded:!!a.expanded,disableDnd:!!this.options.disableDnd,accessor:this,headerSize:(l=a.headerSize)!==null&&l!==void 0?l:lm,minimumBodySize:(u=a.minimumSize)!==null&&u!==void 0?u:um,maximumBodySize:(d=a.maximumSize)!==null&&d!==void 0?d:cm});return this.doAddPanel(m),r.push(()=>{var v;m.init({params:(v=c.params)!==null&&v!==void 0?v:{},minimumBodySize:a.minimumSize,maximumBodySize:a.maximumSize,title:c.title,isExpanded:!!a.expanded,containerApi:new Zo(this),accessor:this}),m.orientation=this.paneview.orientation}),setTimeout(()=>{this._onDidAddView.fire(m)},0),{size:a.size,view:m}})}}),this.layout(o,s),r.forEach(a=>a()),this._onDidLayoutfromJSON.fire()}clear(){for(const[t,n]of this._viewDisposables.entries())n.dispose();this._viewDisposables.clear(),this.paneview.dispose()}doAddPanel(t){const n=new ie(t.onDidDrop(i=>{this._onDidDrop.fire(i)}),t.onUnhandledDragOverEvent(i=>{this._onUnhandledDragOverEvent.fire(i)}));this._viewDisposables.set(t.id,n)}doRemovePanel(t){const n=this._viewDisposables.get(t.id);n&&(n.dispose(),this._viewDisposables.delete(t.id))}dispose(){super.dispose();for(const[t,n]of this._viewDisposables.entries())n.dispose();this._viewDisposables.clear(),this.element.remove(),this.paneview.dispose()}}class VI extends ch{get priority(){return this._priority}set orientation(t){this._orientation=t}get orientation(){return this._orientation}get minimumSize(){const t=typeof this._minimumSize=="function"?this._minimumSize():this._minimumSize;return t!==this._evaluatedMinimumSize&&(this._evaluatedMinimumSize=t,this.updateConstraints()),t}get maximumSize(){const t=typeof this._maximumSize=="function"?this._maximumSize():this._maximumSize;return t!==this._evaluatedMaximumSize&&(this._evaluatedMaximumSize=t,this.updateConstraints()),t}get snap(){return this._snap}constructor(t,n){super(t,n,new ey(t,n)),this._evaluatedMinimumSize=0,this._evaluatedMaximumSize=Number.POSITIVE_INFINITY,this._minimumSize=0,this._maximumSize=Number.POSITIVE_INFINITY,this._snap=!1,this._onDidChange=new A,this.onDidChange=this._onDidChange.event,this.api.initialize(this),this.addDisposables(this._onDidChange,this.api.onWillVisibilityChange(i=>{const{isVisible:r}=i,{accessor:o}=this._params;o.setVisible(this,r)}),this.api.onActiveChange(()=>{const{accessor:i}=this._params;i.setActive(this)}),this.api.onDidConstraintsChangeInternal(i=>{(typeof i.minimumSize=="number"||typeof i.minimumSize=="function")&&(this._minimumSize=i.minimumSize),(typeof i.maximumSize=="number"||typeof i.maximumSize=="function")&&(this._maximumSize=i.maximumSize),this.updateConstraints()}),this.api.onDidSizeChange(i=>{this._onDidChange.fire({size:i.size})}))}setVisible(t){this.api._onDidVisibilityChange.fire({isVisible:t})}setActive(t){this.api._onDidActiveChange.fire({isActive:t})}layout(t,n){const[i,r]=this.orientation===K.HORIZONTAL?[t,n]:[n,t];super.layout(i,r)}init(t){super.init(t),this._priority=t.priority,t.minimumSize&&(this._minimumSize=t.minimumSize),t.maximumSize&&(this._maximumSize=t.maximumSize),t.snap&&(this._snap=t.snap)}toJSON(){const t=i=>i===Number.MAX_SAFE_INTEGER||i===Number.POSITIVE_INFINITY?void 0:i,n=i=>i<=0?void 0:i;return Object.assign(Object.assign({},super.toJSON()),{minimumSize:n(this.minimumSize),maximumSize:t(this.maximumSize)})}updateConstraints(){this.api._onDidConstraintsChange.fire({maximumSize:this._evaluatedMaximumSize,minimumSize:this._evaluatedMinimumSize})}}function GI(e,t){return new NI(e,t).api}function $I(e,t){const n=new LI(e,t);return new Jw(n)}function jI(e,t){const n=new RI(e,t);return new qw(n)}function BI(e,t){const n=new FI(e,t);return new Zo(n)}/**
|
|
1411
|
+
* dockview
|
|
1412
|
+
* @version 5.2.0
|
|
1413
|
+
* @link https://github.com/mathuo/dockview
|
|
1414
|
+
* @license MIT
|
|
1415
|
+
*/function WI(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n==="top"&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}var HI=`.dv-scrollable {
|
|
1416
|
+
position: relative;
|
|
1417
|
+
overflow: hidden;
|
|
1418
|
+
}
|
|
1419
|
+
.dv-scrollable .dv-scrollbar {
|
|
1420
|
+
position: absolute;
|
|
1421
|
+
border-radius: 2px;
|
|
1422
|
+
background-color: transparent;
|
|
1423
|
+
/* GPU optimizations */
|
|
1424
|
+
will-change: background-color, transform;
|
|
1425
|
+
transform: translate3d(0, 0, 0);
|
|
1426
|
+
backface-visibility: hidden;
|
|
1427
|
+
transition-property: background-color;
|
|
1428
|
+
transition-timing-function: ease-in-out;
|
|
1429
|
+
transition-duration: 1s;
|
|
1430
|
+
transition-delay: 0s;
|
|
1431
|
+
}
|
|
1432
|
+
.dv-scrollable .dv-scrollbar-horizontal {
|
|
1433
|
+
bottom: 0px;
|
|
1434
|
+
left: 0px;
|
|
1435
|
+
height: 4px;
|
|
1436
|
+
}
|
|
1437
|
+
.dv-scrollable .dv-scrollbar-vertical {
|
|
1438
|
+
right: 0px;
|
|
1439
|
+
top: 0px;
|
|
1440
|
+
width: 4px;
|
|
1441
|
+
}
|
|
1442
|
+
.dv-scrollable:hover .dv-scrollbar, .dv-scrollable.dv-scrollable-resizing .dv-scrollbar, .dv-scrollable.dv-scrollable-scrolling .dv-scrollbar {
|
|
1443
|
+
background-color: var(--dv-scrollbar-background-color, rgba(255, 255, 255, 0.25));
|
|
1444
|
+
}
|
|
1445
|
+
.dv-svg {
|
|
1446
|
+
display: inline-block;
|
|
1447
|
+
fill: currentcolor;
|
|
1448
|
+
line-height: 1;
|
|
1449
|
+
stroke: currentcolor;
|
|
1450
|
+
stroke-width: 0;
|
|
1451
|
+
}
|
|
1452
|
+
.dockview-theme-dark {
|
|
1453
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
1454
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
1455
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
1456
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
1457
|
+
--dv-drag-over-border-color: transparent;
|
|
1458
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
1459
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
1460
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
1461
|
+
--dv-overlay-z-index: 999;
|
|
1462
|
+
--dv-tab-font-size: inherit;
|
|
1463
|
+
--dv-border-radius: 0px;
|
|
1464
|
+
--dv-tab-margin: 0;
|
|
1465
|
+
--dv-sash-color: transparent;
|
|
1466
|
+
--dv-active-sash-color: transparent;
|
|
1467
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
1468
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
1469
|
+
--dv-group-view-background-color: #1e1e1e;
|
|
1470
|
+
--dv-tabs-and-actions-container-background-color: #252526;
|
|
1471
|
+
--dv-activegroup-visiblepanel-tab-background-color: #1e1e1e;
|
|
1472
|
+
--dv-activegroup-hiddenpanel-tab-background-color: #2d2d2d;
|
|
1473
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: #1e1e1e;
|
|
1474
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: #2d2d2d;
|
|
1475
|
+
--dv-tab-divider-color: #1e1e1e;
|
|
1476
|
+
--dv-activegroup-visiblepanel-tab-color: white;
|
|
1477
|
+
--dv-activegroup-hiddenpanel-tab-color: #969696;
|
|
1478
|
+
--dv-inactivegroup-visiblepanel-tab-color: #8f8f8f;
|
|
1479
|
+
--dv-inactivegroup-hiddenpanel-tab-color: #626262;
|
|
1480
|
+
--dv-separator-border: rgb(68, 68, 68);
|
|
1481
|
+
--dv-paneview-header-border-color: rgba(204, 204, 204, 0.2);
|
|
1482
|
+
}
|
|
1483
|
+
.dockview-theme-dark .dv-drop-target-container .dv-drop-target-anchor.dv-drop-target-anchor-container-changed {
|
|
1484
|
+
opacity: 0;
|
|
1485
|
+
transition: none;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
.dockview-theme-light {
|
|
1489
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
1490
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
1491
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
1492
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
1493
|
+
--dv-drag-over-border-color: transparent;
|
|
1494
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
1495
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
1496
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
1497
|
+
--dv-overlay-z-index: 999;
|
|
1498
|
+
--dv-tab-font-size: inherit;
|
|
1499
|
+
--dv-border-radius: 0px;
|
|
1500
|
+
--dv-tab-margin: 0;
|
|
1501
|
+
--dv-sash-color: transparent;
|
|
1502
|
+
--dv-active-sash-color: transparent;
|
|
1503
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
1504
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
1505
|
+
--dv-group-view-background-color: white;
|
|
1506
|
+
--dv-tabs-and-actions-container-background-color: #f3f3f3;
|
|
1507
|
+
--dv-activegroup-visiblepanel-tab-background-color: white;
|
|
1508
|
+
--dv-activegroup-hiddenpanel-tab-background-color: #ececec;
|
|
1509
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: white;
|
|
1510
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: #ececec;
|
|
1511
|
+
--dv-tab-divider-color: white;
|
|
1512
|
+
--dv-activegroup-visiblepanel-tab-color: rgb(51, 51, 51);
|
|
1513
|
+
--dv-activegroup-hiddenpanel-tab-color: rgba(51, 51, 51, 0.7);
|
|
1514
|
+
--dv-inactivegroup-visiblepanel-tab-color: rgba(51, 51, 51, 0.7);
|
|
1515
|
+
--dv-inactivegroup-hiddenpanel-tab-color: rgba(51, 51, 51, 0.35);
|
|
1516
|
+
--dv-separator-border: rgba(128, 128, 128, 0.35);
|
|
1517
|
+
--dv-paneview-header-border-color: rgb(51, 51, 51);
|
|
1518
|
+
--dv-scrollbar-background-color: rgba(0, 0, 0, 0.25);
|
|
1519
|
+
}
|
|
1520
|
+
.dockview-theme-light .dv-drop-target-container .dv-drop-target-anchor.dv-drop-target-anchor-container-changed {
|
|
1521
|
+
opacity: 0;
|
|
1522
|
+
transition: none;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
.dockview-theme-vs {
|
|
1526
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
1527
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
1528
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
1529
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
1530
|
+
--dv-drag-over-border-color: transparent;
|
|
1531
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
1532
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
1533
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
1534
|
+
--dv-overlay-z-index: 999;
|
|
1535
|
+
--dv-tab-font-size: inherit;
|
|
1536
|
+
--dv-border-radius: 0px;
|
|
1537
|
+
--dv-tab-margin: 0;
|
|
1538
|
+
--dv-sash-color: transparent;
|
|
1539
|
+
--dv-active-sash-color: transparent;
|
|
1540
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
1541
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
1542
|
+
--dv-group-view-background-color: #1e1e1e;
|
|
1543
|
+
--dv-tabs-and-actions-container-background-color: #252526;
|
|
1544
|
+
--dv-activegroup-visiblepanel-tab-background-color: #1e1e1e;
|
|
1545
|
+
--dv-activegroup-hiddenpanel-tab-background-color: #2d2d2d;
|
|
1546
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: #1e1e1e;
|
|
1547
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: #2d2d2d;
|
|
1548
|
+
--dv-tab-divider-color: #1e1e1e;
|
|
1549
|
+
--dv-activegroup-visiblepanel-tab-color: white;
|
|
1550
|
+
--dv-activegroup-hiddenpanel-tab-color: #969696;
|
|
1551
|
+
--dv-inactivegroup-visiblepanel-tab-color: #8f8f8f;
|
|
1552
|
+
--dv-inactivegroup-hiddenpanel-tab-color: #626262;
|
|
1553
|
+
--dv-separator-border: rgb(68, 68, 68);
|
|
1554
|
+
--dv-paneview-header-border-color: rgba(204, 204, 204, 0.2);
|
|
1555
|
+
--dv-tabs-and-actions-container-background-color: #2d2d30;
|
|
1556
|
+
--dv-tabs-and-actions-container-height: 20px;
|
|
1557
|
+
--dv-tabs-and-actions-container-font-size: 11px;
|
|
1558
|
+
--dv-activegroup-visiblepanel-tab-background-color: #007acc;
|
|
1559
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: #3f3f46;
|
|
1560
|
+
--dv-activegroup-visiblepanel-tab-color: white;
|
|
1561
|
+
--dv-activegroup-hiddenpanel-tab-color: white;
|
|
1562
|
+
--dv-inactivegroup-visiblepanel-tab-color: white;
|
|
1563
|
+
--dv-inactivegroup-hiddenpanel-tab-color: white;
|
|
1564
|
+
}
|
|
1565
|
+
.dockview-theme-vs .dv-drop-target-container .dv-drop-target-anchor.dv-drop-target-anchor-container-changed {
|
|
1566
|
+
opacity: 0;
|
|
1567
|
+
transition: none;
|
|
1568
|
+
}
|
|
1569
|
+
.dockview-theme-vs .dv-groupview.dv-active-group > .dv-tabs-and-actions-container {
|
|
1570
|
+
box-sizing: content-box;
|
|
1571
|
+
border-bottom: 2px solid var(--dv-activegroup-visiblepanel-tab-background-color);
|
|
1572
|
+
}
|
|
1573
|
+
.dockview-theme-vs .dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tab.dv-active-tab {
|
|
1574
|
+
border-top: 2px solid var(--dv-activegroup-visiblepanel-tab-background-color);
|
|
1575
|
+
}
|
|
1576
|
+
.dockview-theme-vs .dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tab.dv-inactive-tab {
|
|
1577
|
+
border-top: 2px solid var(--dv-activegroup-hiddenpanel-tab-background-color);
|
|
1578
|
+
}
|
|
1579
|
+
.dockview-theme-vs .dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container {
|
|
1580
|
+
box-sizing: content-box;
|
|
1581
|
+
border-bottom: 2px solid var(--dv-inactivegroup-visiblepanel-tab-background-color);
|
|
1582
|
+
}
|
|
1583
|
+
.dockview-theme-vs .dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tab.dv-active-tab {
|
|
1584
|
+
border-top: 2px solid var(--dv-inactivegroup-visiblepanel-tab-background-color);
|
|
1585
|
+
}
|
|
1586
|
+
.dockview-theme-vs .dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tab.dv-inactive-tab {
|
|
1587
|
+
border-top: 2px solid var(--dv-inactivegroup-hiddenpanel-tab-background-color);
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
.dockview-theme-abyss {
|
|
1591
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
1592
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
1593
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
1594
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
1595
|
+
--dv-drag-over-border-color: transparent;
|
|
1596
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
1597
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
1598
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
1599
|
+
--dv-overlay-z-index: 999;
|
|
1600
|
+
--dv-tab-font-size: inherit;
|
|
1601
|
+
--dv-border-radius: 0px;
|
|
1602
|
+
--dv-tab-margin: 0;
|
|
1603
|
+
--dv-sash-color: transparent;
|
|
1604
|
+
--dv-active-sash-color: transparent;
|
|
1605
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
1606
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
1607
|
+
--dv-color-abyss-dark: #000c18;
|
|
1608
|
+
--dv-color-abyss: #10192c;
|
|
1609
|
+
--dv-color-abyss-light: #1c1c2a;
|
|
1610
|
+
--dv-color-abyss-lighter: #2b2b4a;
|
|
1611
|
+
--dv-color-abyss-accent: rgb(91, 30, 207);
|
|
1612
|
+
--dv-color-abyss-primary-text: white;
|
|
1613
|
+
--dv-color-abyss-secondary-text: rgb(148, 151, 169);
|
|
1614
|
+
--dv-group-view-background-color: var(--dv-color-abyss-dark);
|
|
1615
|
+
--dv-tabs-and-actions-container-background-color: var(
|
|
1616
|
+
--dv-color-abyss-light
|
|
1617
|
+
);
|
|
1618
|
+
--dv-activegroup-visiblepanel-tab-background-color: var(
|
|
1619
|
+
--dv-color-abyss-dark
|
|
1620
|
+
);
|
|
1621
|
+
--dv-activegroup-hiddenpanel-tab-background-color: var(--dv-color-abyss);
|
|
1622
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: var(
|
|
1623
|
+
--dv-color-abyss-dark
|
|
1624
|
+
);
|
|
1625
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: var(--dv-color-abyss);
|
|
1626
|
+
--dv-tab-divider-color: var(--dv-color-abyss-lighter);
|
|
1627
|
+
--dv-activegroup-visiblepanel-tab-color: white;
|
|
1628
|
+
--dv-activegroup-hiddenpanel-tab-color: rgba(255, 255, 255, 0.5);
|
|
1629
|
+
--dv-inactivegroup-visiblepanel-tab-color: rgba(255, 255, 255, 0.5);
|
|
1630
|
+
--dv-inactivegroup-hiddenpanel-tab-color: rgba(255, 255, 255, 0.25);
|
|
1631
|
+
--dv-separator-border: var(--dv-color-abyss-lighter);
|
|
1632
|
+
--dv-paneview-header-border-color: var(--dv-color-abyss-lighter);
|
|
1633
|
+
--dv-paneview-active-outline-color: #596f99;
|
|
1634
|
+
}
|
|
1635
|
+
.dockview-theme-abyss .dv-drop-target-container .dv-drop-target-anchor.dv-drop-target-anchor-container-changed {
|
|
1636
|
+
opacity: 0;
|
|
1637
|
+
transition: none;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
.dockview-theme-dracula {
|
|
1641
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
1642
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
1643
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
1644
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
1645
|
+
--dv-drag-over-border-color: transparent;
|
|
1646
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
1647
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
1648
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
1649
|
+
--dv-overlay-z-index: 999;
|
|
1650
|
+
--dv-tab-font-size: inherit;
|
|
1651
|
+
--dv-border-radius: 0px;
|
|
1652
|
+
--dv-tab-margin: 0;
|
|
1653
|
+
--dv-sash-color: transparent;
|
|
1654
|
+
--dv-active-sash-color: transparent;
|
|
1655
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
1656
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
1657
|
+
--dv-group-view-background-color: #282a36;
|
|
1658
|
+
--dv-tabs-and-actions-container-background-color: #191a21;
|
|
1659
|
+
--dv-activegroup-visiblepanel-tab-background-color: #282a36;
|
|
1660
|
+
--dv-activegroup-hiddenpanel-tab-background-color: #21222c;
|
|
1661
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: #282a36;
|
|
1662
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: #21222c;
|
|
1663
|
+
--dv-tab-divider-color: #191a21;
|
|
1664
|
+
--dv-activegroup-visiblepanel-tab-color: rgb(248, 248, 242);
|
|
1665
|
+
--dv-activegroup-hiddenpanel-tab-color: rgb(98, 114, 164);
|
|
1666
|
+
--dv-inactivegroup-visiblepanel-tab-color: rgba(248, 248, 242, 0.5);
|
|
1667
|
+
--dv-inactivegroup-hiddenpanel-tab-color: rgba(98, 114, 164, 0.5);
|
|
1668
|
+
--dv-separator-border: #bd93f9;
|
|
1669
|
+
--dv-paneview-header-border-color: #bd93f9;
|
|
1670
|
+
--dv-paneview-active-outline-color: #6272a4;
|
|
1671
|
+
}
|
|
1672
|
+
.dockview-theme-dracula .dv-drop-target-container .dv-drop-target-anchor.dv-drop-target-anchor-container-changed {
|
|
1673
|
+
opacity: 0;
|
|
1674
|
+
transition: none;
|
|
1675
|
+
}
|
|
1676
|
+
.dockview-theme-dracula .dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab {
|
|
1677
|
+
position: relative;
|
|
1678
|
+
}
|
|
1679
|
+
.dockview-theme-dracula .dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab::after {
|
|
1680
|
+
position: absolute;
|
|
1681
|
+
left: 0px;
|
|
1682
|
+
top: 0px;
|
|
1683
|
+
content: "";
|
|
1684
|
+
width: 100%;
|
|
1685
|
+
height: 1px;
|
|
1686
|
+
background-color: #94527e;
|
|
1687
|
+
z-index: 999;
|
|
1688
|
+
}
|
|
1689
|
+
.dockview-theme-dracula .dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab {
|
|
1690
|
+
position: relative;
|
|
1691
|
+
}
|
|
1692
|
+
.dockview-theme-dracula .dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab::after {
|
|
1693
|
+
position: absolute;
|
|
1694
|
+
left: 0px;
|
|
1695
|
+
bottom: 0px;
|
|
1696
|
+
content: "";
|
|
1697
|
+
width: 100%;
|
|
1698
|
+
height: 1px;
|
|
1699
|
+
background-color: #5e3d5a;
|
|
1700
|
+
z-index: 999;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
.dockview-theme-replit {
|
|
1704
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
1705
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
1706
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
1707
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
1708
|
+
--dv-drag-over-border-color: transparent;
|
|
1709
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
1710
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
1711
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
1712
|
+
--dv-overlay-z-index: 999;
|
|
1713
|
+
--dv-tab-font-size: inherit;
|
|
1714
|
+
--dv-border-radius: 0px;
|
|
1715
|
+
--dv-tab-margin: 0;
|
|
1716
|
+
--dv-sash-color: transparent;
|
|
1717
|
+
--dv-active-sash-color: transparent;
|
|
1718
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
1719
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
1720
|
+
box-sizing: border-box;
|
|
1721
|
+
padding: 10px;
|
|
1722
|
+
background-color: #ebeced;
|
|
1723
|
+
--dv-group-view-background-color: #ebeced;
|
|
1724
|
+
--dv-tabs-and-actions-container-background-color: #fcfcfc;
|
|
1725
|
+
--dv-activegroup-visiblepanel-tab-background-color: #f0f1f2;
|
|
1726
|
+
--dv-activegroup-hiddenpanel-tab-background-color: #fcfcfc;
|
|
1727
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: #f0f1f2;
|
|
1728
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: #fcfcfc;
|
|
1729
|
+
--dv-tab-divider-color: transparent;
|
|
1730
|
+
--dv-activegroup-visiblepanel-tab-color: rgb(51, 51, 51);
|
|
1731
|
+
--dv-activegroup-hiddenpanel-tab-color: rgb(51, 51, 51);
|
|
1732
|
+
--dv-inactivegroup-visiblepanel-tab-color: rgb(51, 51, 51);
|
|
1733
|
+
--dv-inactivegroup-hiddenpanel-tab-color: rgb(51, 51, 51);
|
|
1734
|
+
--dv-separator-border: transparent;
|
|
1735
|
+
--dv-paneview-header-border-color: rgb(51, 51, 51);
|
|
1736
|
+
--dv-sash-color: #cfd1d3;
|
|
1737
|
+
--dv-active-sash-color: #babbbb;
|
|
1738
|
+
}
|
|
1739
|
+
.dockview-theme-replit .dv-drop-target-container .dv-drop-target-anchor.dv-drop-target-anchor-container-changed {
|
|
1740
|
+
opacity: 0;
|
|
1741
|
+
transition: none;
|
|
1742
|
+
}
|
|
1743
|
+
.dockview-theme-replit .dv-resize-container:has(> .dv-groupview) {
|
|
1744
|
+
border-radius: 8px;
|
|
1745
|
+
}
|
|
1746
|
+
.dockview-theme-replit .dv-resize-container {
|
|
1747
|
+
border-radius: 10px !important;
|
|
1748
|
+
border: none;
|
|
1749
|
+
}
|
|
1750
|
+
.dockview-theme-replit .dv-groupview {
|
|
1751
|
+
overflow: hidden;
|
|
1752
|
+
border-radius: 10px;
|
|
1753
|
+
}
|
|
1754
|
+
.dockview-theme-replit .dv-groupview .dv-tabs-and-actions-container {
|
|
1755
|
+
border-bottom: 1px solid rgba(128, 128, 128, 0.35);
|
|
1756
|
+
}
|
|
1757
|
+
.dockview-theme-replit .dv-groupview .dv-tabs-and-actions-container .dv-tab {
|
|
1758
|
+
margin: 4px;
|
|
1759
|
+
border-radius: 8px;
|
|
1760
|
+
}
|
|
1761
|
+
.dockview-theme-replit .dv-groupview .dv-tabs-and-actions-container .dv-tab .dv-svg {
|
|
1762
|
+
height: 8px;
|
|
1763
|
+
width: 8px;
|
|
1764
|
+
}
|
|
1765
|
+
.dockview-theme-replit .dv-groupview .dv-tabs-and-actions-container .dv-tab:hover {
|
|
1766
|
+
background-color: #e4e5e6 !important;
|
|
1767
|
+
}
|
|
1768
|
+
.dockview-theme-replit .dv-groupview .dv-content-container {
|
|
1769
|
+
background-color: #fcfcfc;
|
|
1770
|
+
}
|
|
1771
|
+
.dockview-theme-replit .dv-groupview.dv-active-group {
|
|
1772
|
+
border: 1px solid rgba(128, 128, 128, 0.35);
|
|
1773
|
+
}
|
|
1774
|
+
.dockview-theme-replit .dv-groupview.dv-inactive-group {
|
|
1775
|
+
border: 1px solid transparent;
|
|
1776
|
+
}
|
|
1777
|
+
.dockview-theme-replit .dv-vertical > .dv-sash-container > .dv-sash {
|
|
1778
|
+
background-color: transparent;
|
|
1779
|
+
}
|
|
1780
|
+
.dockview-theme-replit .dv-vertical > .dv-sash-container > .dv-sash:not(.disabled)::after {
|
|
1781
|
+
content: "";
|
|
1782
|
+
height: 4px;
|
|
1783
|
+
width: 40px;
|
|
1784
|
+
border-radius: 2px;
|
|
1785
|
+
top: 50%;
|
|
1786
|
+
left: 50%;
|
|
1787
|
+
transform: translate(-50%, -50%);
|
|
1788
|
+
background-color: var(--dv-sash-color);
|
|
1789
|
+
position: absolute;
|
|
1790
|
+
}
|
|
1791
|
+
.dockview-theme-replit .dv-vertical > .dv-sash-container > .dv-sash:not(.disabled):hover, .dockview-theme-replit .dv-vertical > .dv-sash-container > .dv-sash:not(.disabled):active {
|
|
1792
|
+
background-color: transparent;
|
|
1793
|
+
}
|
|
1794
|
+
.dockview-theme-replit .dv-vertical > .dv-sash-container > .dv-sash:not(.disabled):hover::after, .dockview-theme-replit .dv-vertical > .dv-sash-container > .dv-sash:not(.disabled):active::after {
|
|
1795
|
+
background-color: var(--dv-active-sash-color);
|
|
1796
|
+
}
|
|
1797
|
+
.dockview-theme-replit .dv-horizontal > .dv-sash-container > .dv-sash {
|
|
1798
|
+
background-color: transparent;
|
|
1799
|
+
}
|
|
1800
|
+
.dockview-theme-replit .dv-horizontal > .dv-sash-container > .dv-sash:not(.disabled)::after {
|
|
1801
|
+
content: "";
|
|
1802
|
+
height: 40px;
|
|
1803
|
+
width: 4px;
|
|
1804
|
+
border-radius: 2px;
|
|
1805
|
+
top: 50%;
|
|
1806
|
+
left: 50%;
|
|
1807
|
+
transform: translate(-50%, -50%);
|
|
1808
|
+
background-color: var(--dv-sash-color);
|
|
1809
|
+
position: absolute;
|
|
1810
|
+
}
|
|
1811
|
+
.dockview-theme-replit .dv-horizontal > .dv-sash-container > .dv-sash:not(.disabled):hover, .dockview-theme-replit .dv-horizontal > .dv-sash-container > .dv-sash:not(.disabled):active {
|
|
1812
|
+
background-color: transparent;
|
|
1813
|
+
}
|
|
1814
|
+
.dockview-theme-replit .dv-horizontal > .dv-sash-container > .dv-sash:not(.disabled):hover::after, .dockview-theme-replit .dv-horizontal > .dv-sash-container > .dv-sash:not(.disabled):active::after {
|
|
1815
|
+
background-color: var(--dv-active-sash-color);
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
.dockview-theme-abyss-spaced {
|
|
1819
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
1820
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
1821
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
1822
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
1823
|
+
--dv-drag-over-border-color: transparent;
|
|
1824
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
1825
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
1826
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
1827
|
+
--dv-overlay-z-index: 999;
|
|
1828
|
+
--dv-tab-font-size: inherit;
|
|
1829
|
+
--dv-border-radius: 0px;
|
|
1830
|
+
--dv-tab-margin: 0;
|
|
1831
|
+
--dv-sash-color: transparent;
|
|
1832
|
+
--dv-active-sash-color: transparent;
|
|
1833
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
1834
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
1835
|
+
--dv-tab-font-size: 12px;
|
|
1836
|
+
--dv-border-radius: 20px;
|
|
1837
|
+
--dv-tab-margin: 0.5rem 0.25rem;
|
|
1838
|
+
--dv-tabs-and-actions-container-height: 44px;
|
|
1839
|
+
--dv-border-radius: 20px;
|
|
1840
|
+
box-sizing: border-box;
|
|
1841
|
+
--dv-color-abyss-dark: rgb(11, 6, 17);
|
|
1842
|
+
--dv-color-abyss: #16121f;
|
|
1843
|
+
--dv-color-abyss-light: #201d2b;
|
|
1844
|
+
--dv-color-abyss-lighter: #2a2837;
|
|
1845
|
+
--dv-color-abyss-accent: rgb(91, 30, 207);
|
|
1846
|
+
--dv-color-abyss-primary-text: white;
|
|
1847
|
+
--dv-color-abyss-secondary-text: rgb(148, 151, 169);
|
|
1848
|
+
--dv-drag-over-border: 2px solid var(--dv-color-abyss-accent);
|
|
1849
|
+
--dv-drag-over-background-color: "";
|
|
1850
|
+
--dv-group-view-background-color: var(--dv-color-abyss-dark);
|
|
1851
|
+
--dv-tabs-and-actions-container-background-color: var(--dv-color-abyss);
|
|
1852
|
+
--dv-activegroup-visiblepanel-tab-background-color: var(
|
|
1853
|
+
--dv-color-abyss-lighter
|
|
1854
|
+
);
|
|
1855
|
+
--dv-activegroup-hiddenpanel-tab-background-color: var(
|
|
1856
|
+
--dv-color-abyss-light
|
|
1857
|
+
);
|
|
1858
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: var(
|
|
1859
|
+
--dv-color-abyss-lighter
|
|
1860
|
+
);
|
|
1861
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: var(
|
|
1862
|
+
--dv-color-abyss-light
|
|
1863
|
+
);
|
|
1864
|
+
--dv-tab-divider-color: transparent;
|
|
1865
|
+
--dv-activegroup-visiblepanel-tab-color: var(--dv-color-abyss-primary-text);
|
|
1866
|
+
--dv-activegroup-hiddenpanel-tab-color: var(
|
|
1867
|
+
--dv-color-abyss-secondary-text
|
|
1868
|
+
);
|
|
1869
|
+
--dv-inactivegroup-visiblepanel-tab-color: var(
|
|
1870
|
+
--dv-color-abyss-primary-text
|
|
1871
|
+
);
|
|
1872
|
+
--dv-inactivegroup-hiddenpanel-tab-color: var(
|
|
1873
|
+
--dv-color-abyss-secondary-text
|
|
1874
|
+
);
|
|
1875
|
+
--dv-separator-border: transparent;
|
|
1876
|
+
--dv-paneview-header-border-color: rgb(51, 51, 51);
|
|
1877
|
+
--dv-active-sash-color: var(--dv-color-abyss-accent);
|
|
1878
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(0, 0, 0, 0.5);
|
|
1879
|
+
padding: 10px;
|
|
1880
|
+
background-color: var(--dv-color-abyss-dark);
|
|
1881
|
+
}
|
|
1882
|
+
.dockview-theme-abyss-spaced .dv-resize-container:has(> .dv-groupview) {
|
|
1883
|
+
border-radius: 8px;
|
|
1884
|
+
}
|
|
1885
|
+
.dockview-theme-abyss-spaced .dv-sash {
|
|
1886
|
+
border-radius: 4px;
|
|
1887
|
+
}
|
|
1888
|
+
.dockview-theme-abyss-spaced .dv-drop-target-anchor {
|
|
1889
|
+
border-radius: calc(var(--dv-border-radius) / 4);
|
|
1890
|
+
}
|
|
1891
|
+
.dockview-theme-abyss-spaced .dv-drop-target-anchor.dv-drop-target-content {
|
|
1892
|
+
border-radius: var(--dv-border-radius);
|
|
1893
|
+
}
|
|
1894
|
+
.dockview-theme-abyss-spaced .dv-resize-container {
|
|
1895
|
+
border-radius: var(--dv-border-radius) !important;
|
|
1896
|
+
border: none;
|
|
1897
|
+
}
|
|
1898
|
+
.dockview-theme-abyss-spaced .dv-tabs-overflow-container,
|
|
1899
|
+
.dockview-theme-abyss-spaced .dv-tabs-overflow-dropdown-default {
|
|
1900
|
+
border-radius: 8px;
|
|
1901
|
+
height: unset !important;
|
|
1902
|
+
}
|
|
1903
|
+
.dockview-theme-abyss-spaced .dv-tab {
|
|
1904
|
+
border-radius: 8px;
|
|
1905
|
+
}
|
|
1906
|
+
.dockview-theme-abyss-spaced .dv-tab .dv-svg {
|
|
1907
|
+
height: 8px;
|
|
1908
|
+
width: 8px;
|
|
1909
|
+
}
|
|
1910
|
+
.dockview-theme-abyss-spaced .dv-groupview {
|
|
1911
|
+
border-radius: var(--dv-border-radius);
|
|
1912
|
+
}
|
|
1913
|
+
.dockview-theme-abyss-spaced .dv-groupview .dv-tabs-and-actions-container {
|
|
1914
|
+
padding: 0px calc(var(--dv-border-radius) / 2);
|
|
1915
|
+
}
|
|
1916
|
+
.dockview-theme-abyss-spaced .dv-groupview .dv-content-container {
|
|
1917
|
+
background-color: var(--dv-tabs-and-actions-container-background-color);
|
|
1918
|
+
}
|
|
1919
|
+
.dockview-theme-abyss-spaced .dv-resize-container .dv-groupview {
|
|
1920
|
+
border: 2px solid var(--dv-color-abyss-dark);
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
.dockview-theme-light-spaced {
|
|
1924
|
+
--dv-paneview-active-outline-color: dodgerblue;
|
|
1925
|
+
--dv-tabs-and-actions-container-font-size: 13px;
|
|
1926
|
+
--dv-tabs-and-actions-container-height: 35px;
|
|
1927
|
+
--dv-drag-over-background-color: rgba(83, 89, 93, 0.5);
|
|
1928
|
+
--dv-drag-over-border-color: transparent;
|
|
1929
|
+
--dv-tabs-container-scrollbar-color: #888;
|
|
1930
|
+
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
1931
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
1932
|
+
--dv-overlay-z-index: 999;
|
|
1933
|
+
--dv-tab-font-size: inherit;
|
|
1934
|
+
--dv-border-radius: 0px;
|
|
1935
|
+
--dv-tab-margin: 0;
|
|
1936
|
+
--dv-sash-color: transparent;
|
|
1937
|
+
--dv-active-sash-color: transparent;
|
|
1938
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
1939
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
1940
|
+
--dv-tab-font-size: 12px;
|
|
1941
|
+
--dv-border-radius: 20px;
|
|
1942
|
+
--dv-tab-margin: 0.5rem 0.25rem;
|
|
1943
|
+
--dv-tabs-and-actions-container-height: 44px;
|
|
1944
|
+
--dv-border-radius: 20px;
|
|
1945
|
+
box-sizing: border-box;
|
|
1946
|
+
--dv-drag-over-border: 2px solid rgb(91, 30, 207);
|
|
1947
|
+
--dv-drag-over-background-color: "";
|
|
1948
|
+
--dv-group-view-background-color: #f6f5f9;
|
|
1949
|
+
--dv-tabs-and-actions-container-background-color: white;
|
|
1950
|
+
--dv-activegroup-visiblepanel-tab-background-color: #ededf0;
|
|
1951
|
+
--dv-activegroup-hiddenpanel-tab-background-color: #f9f9fa;
|
|
1952
|
+
--dv-inactivegroup-visiblepanel-tab-background-color: #ededf0;
|
|
1953
|
+
--dv-inactivegroup-hiddenpanel-tab-background-color: #f9f9fa;
|
|
1954
|
+
--dv-tab-divider-color: transparent;
|
|
1955
|
+
--dv-activegroup-visiblepanel-tab-color: rgb(104, 107, 130);
|
|
1956
|
+
--dv-activegroup-hiddenpanel-tab-color: rgb(148, 151, 169);
|
|
1957
|
+
--dv-inactivegroup-visiblepanel-tab-color: rgb(104, 107, 130);
|
|
1958
|
+
--dv-inactivegroup-hiddenpanel-tab-color: rgb(148, 151, 169);
|
|
1959
|
+
--dv-separator-border: transparent;
|
|
1960
|
+
--dv-paneview-header-border-color: rgb(51, 51, 51);
|
|
1961
|
+
--dv-active-sash-color: rgb(91, 30, 207);
|
|
1962
|
+
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(0, 0, 0, 0.1);
|
|
1963
|
+
padding: 10px;
|
|
1964
|
+
background-color: #f6f5f9;
|
|
1965
|
+
--dv-scrollbar-background-color: rgba(0, 0, 0, 0.25);
|
|
1966
|
+
}
|
|
1967
|
+
.dockview-theme-light-spaced .dv-resize-container:has(> .dv-groupview) {
|
|
1968
|
+
border-radius: 8px;
|
|
1969
|
+
}
|
|
1970
|
+
.dockview-theme-light-spaced .dv-sash {
|
|
1971
|
+
border-radius: 4px;
|
|
1972
|
+
}
|
|
1973
|
+
.dockview-theme-light-spaced .dv-drop-target-anchor {
|
|
1974
|
+
border-radius: calc(var(--dv-border-radius) / 4);
|
|
1975
|
+
}
|
|
1976
|
+
.dockview-theme-light-spaced .dv-drop-target-anchor.dv-drop-target-content {
|
|
1977
|
+
border-radius: var(--dv-border-radius);
|
|
1978
|
+
}
|
|
1979
|
+
.dockview-theme-light-spaced .dv-resize-container {
|
|
1980
|
+
border-radius: var(--dv-border-radius) !important;
|
|
1981
|
+
border: none;
|
|
1982
|
+
}
|
|
1983
|
+
.dockview-theme-light-spaced .dv-tabs-overflow-container,
|
|
1984
|
+
.dockview-theme-light-spaced .dv-tabs-overflow-dropdown-default {
|
|
1985
|
+
border-radius: 8px;
|
|
1986
|
+
height: unset !important;
|
|
1987
|
+
}
|
|
1988
|
+
.dockview-theme-light-spaced .dv-tab {
|
|
1989
|
+
border-radius: 8px;
|
|
1990
|
+
}
|
|
1991
|
+
.dockview-theme-light-spaced .dv-tab .dv-svg {
|
|
1992
|
+
height: 8px;
|
|
1993
|
+
width: 8px;
|
|
1994
|
+
}
|
|
1995
|
+
.dockview-theme-light-spaced .dv-groupview {
|
|
1996
|
+
border-radius: var(--dv-border-radius);
|
|
1997
|
+
}
|
|
1998
|
+
.dockview-theme-light-spaced .dv-groupview .dv-tabs-and-actions-container {
|
|
1999
|
+
padding: 0px calc(var(--dv-border-radius) / 2);
|
|
2000
|
+
}
|
|
2001
|
+
.dockview-theme-light-spaced .dv-groupview .dv-content-container {
|
|
2002
|
+
background-color: var(--dv-tabs-and-actions-container-background-color);
|
|
2003
|
+
}
|
|
2004
|
+
.dockview-theme-light-spaced .dv-resize-container .dv-groupview {
|
|
2005
|
+
border: 2px solid rgba(255, 255, 255, 0.1);
|
|
2006
|
+
}
|
|
2007
|
+
.dv-drop-target-container {
|
|
2008
|
+
position: absolute;
|
|
2009
|
+
z-index: 9999;
|
|
2010
|
+
top: 0px;
|
|
2011
|
+
left: 0px;
|
|
2012
|
+
height: 100%;
|
|
2013
|
+
width: 100%;
|
|
2014
|
+
pointer-events: none;
|
|
2015
|
+
overflow: hidden;
|
|
2016
|
+
--dv-transition-duration: 300ms;
|
|
2017
|
+
}
|
|
2018
|
+
.dv-drop-target-container .dv-drop-target-anchor {
|
|
2019
|
+
position: relative;
|
|
2020
|
+
border: var(--dv-drag-over-border);
|
|
2021
|
+
background-color: var(--dv-drag-over-background-color);
|
|
2022
|
+
opacity: 1;
|
|
2023
|
+
/* GPU optimizations */
|
|
2024
|
+
will-change: transform, opacity;
|
|
2025
|
+
transform: translate3d(0, 0, 0);
|
|
2026
|
+
backface-visibility: hidden;
|
|
2027
|
+
contain: layout paint;
|
|
2028
|
+
transition: opacity var(--dv-transition-duration) ease-in, top var(--dv-transition-duration) ease-out, left var(--dv-transition-duration) ease-out, width var(--dv-transition-duration) ease-out, height var(--dv-transition-duration) ease-out;
|
|
2029
|
+
}
|
|
2030
|
+
.dv-drop-target {
|
|
2031
|
+
position: relative;
|
|
2032
|
+
--dv-transition-duration: 70ms;
|
|
2033
|
+
}
|
|
2034
|
+
.dv-drop-target > .dv-drop-target-dropzone {
|
|
2035
|
+
position: absolute;
|
|
2036
|
+
left: 0px;
|
|
2037
|
+
top: 0px;
|
|
2038
|
+
height: 100%;
|
|
2039
|
+
width: 100%;
|
|
2040
|
+
z-index: 1000;
|
|
2041
|
+
pointer-events: none;
|
|
2042
|
+
}
|
|
2043
|
+
.dv-drop-target > .dv-drop-target-dropzone > .dv-drop-target-selection {
|
|
2044
|
+
position: relative;
|
|
2045
|
+
box-sizing: border-box;
|
|
2046
|
+
height: 100%;
|
|
2047
|
+
width: 100%;
|
|
2048
|
+
border: var(--dv-drag-over-border);
|
|
2049
|
+
background-color: var(--dv-drag-over-background-color);
|
|
2050
|
+
transition: top var(--dv-transition-duration) ease-out, left var(--dv-transition-duration) ease-out, width var(--dv-transition-duration) ease-out, height var(--dv-transition-duration) ease-out, opacity var(--dv-transition-duration) ease-out;
|
|
2051
|
+
will-change: transform;
|
|
2052
|
+
pointer-events: none;
|
|
2053
|
+
}
|
|
2054
|
+
.dv-drop-target > .dv-drop-target-dropzone > .dv-drop-target-selection.dv-drop-target-top.dv-drop-target-small-vertical {
|
|
2055
|
+
border-top: 1px solid var(--dv-drag-over-border-color);
|
|
2056
|
+
}
|
|
2057
|
+
.dv-drop-target > .dv-drop-target-dropzone > .dv-drop-target-selection.dv-drop-target-bottom.dv-drop-target-small-vertical {
|
|
2058
|
+
border-bottom: 1px solid var(--dv-drag-over-border-color);
|
|
2059
|
+
}
|
|
2060
|
+
.dv-drop-target > .dv-drop-target-dropzone > .dv-drop-target-selection.dv-drop-target-left.dv-drop-target-small-horizontal {
|
|
2061
|
+
border-left: 1px solid var(--dv-drag-over-border-color);
|
|
2062
|
+
}
|
|
2063
|
+
.dv-drop-target > .dv-drop-target-dropzone > .dv-drop-target-selection.dv-drop-target-right.dv-drop-target-small-horizontal {
|
|
2064
|
+
border-right: 1px solid var(--dv-drag-over-border-color);
|
|
2065
|
+
}
|
|
2066
|
+
.dv-dockview {
|
|
2067
|
+
position: relative;
|
|
2068
|
+
background-color: var(--dv-group-view-background-color);
|
|
2069
|
+
contain: layout;
|
|
2070
|
+
}
|
|
2071
|
+
.dv-dockview .dv-watermark-container {
|
|
2072
|
+
position: absolute;
|
|
2073
|
+
top: 0px;
|
|
2074
|
+
left: 0px;
|
|
2075
|
+
height: 100%;
|
|
2076
|
+
width: 100%;
|
|
2077
|
+
z-index: 1;
|
|
2078
|
+
}
|
|
2079
|
+
.dv-dockview .dv-overlay-render-container {
|
|
2080
|
+
position: relative;
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
.dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab {
|
|
2084
|
+
background-color: var(--dv-activegroup-visiblepanel-tab-background-color);
|
|
2085
|
+
color: var(--dv-activegroup-visiblepanel-tab-color);
|
|
2086
|
+
}
|
|
2087
|
+
.dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-inactive-tab {
|
|
2088
|
+
background-color: var(--dv-activegroup-hiddenpanel-tab-background-color);
|
|
2089
|
+
color: var(--dv-activegroup-hiddenpanel-tab-color);
|
|
2090
|
+
}
|
|
2091
|
+
.dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab {
|
|
2092
|
+
background-color: var(--dv-inactivegroup-visiblepanel-tab-background-color);
|
|
2093
|
+
color: var(--dv-inactivegroup-visiblepanel-tab-color);
|
|
2094
|
+
}
|
|
2095
|
+
.dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-inactive-tab {
|
|
2096
|
+
background-color: var(--dv-inactivegroup-hiddenpanel-tab-background-color);
|
|
2097
|
+
color: var(--dv-inactivegroup-hiddenpanel-tab-color);
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* when a tab is dragged we lose the above stylings because they are conditional on parent elements
|
|
2102
|
+
* therefore we also set some stylings for the dragging event
|
|
2103
|
+
**/
|
|
2104
|
+
.dv-tab.dv-tab-dragging {
|
|
2105
|
+
background-color: var(--dv-activegroup-visiblepanel-tab-background-color);
|
|
2106
|
+
color: var(--dv-activegroup-visiblepanel-tab-color);
|
|
2107
|
+
}
|
|
2108
|
+
.dv-groupview {
|
|
2109
|
+
display: flex;
|
|
2110
|
+
height: 100%;
|
|
2111
|
+
background-color: var(--dv-group-view-background-color);
|
|
2112
|
+
overflow: hidden;
|
|
2113
|
+
flex-direction: column;
|
|
2114
|
+
}
|
|
2115
|
+
.dv-groupview:focus {
|
|
2116
|
+
outline: none;
|
|
2117
|
+
}
|
|
2118
|
+
.dv-groupview > .dv-content-container {
|
|
2119
|
+
flex-grow: 1;
|
|
2120
|
+
min-height: 0;
|
|
2121
|
+
outline: none;
|
|
2122
|
+
}
|
|
2123
|
+
.dv-groupview.dv-groupview-header-bottom {
|
|
2124
|
+
flex-direction: column-reverse;
|
|
2125
|
+
}
|
|
2126
|
+
.dv-groupview.dv-groupview-header-left {
|
|
2127
|
+
flex-direction: row;
|
|
2128
|
+
}
|
|
2129
|
+
.dv-groupview.dv-groupview-header-right {
|
|
2130
|
+
flex-direction: row-reverse;
|
|
2131
|
+
}
|
|
2132
|
+
.dv-root-wrapper {
|
|
2133
|
+
height: 100%;
|
|
2134
|
+
width: 100%;
|
|
2135
|
+
}
|
|
2136
|
+
.dv-grid-view,
|
|
2137
|
+
.dv-branch-node {
|
|
2138
|
+
height: 100%;
|
|
2139
|
+
width: 100%;
|
|
2140
|
+
}
|
|
2141
|
+
.dv-debug .dv-resize-container .dv-resize-handle-top {
|
|
2142
|
+
background-color: red;
|
|
2143
|
+
}
|
|
2144
|
+
.dv-debug .dv-resize-container .dv-resize-handle-bottom {
|
|
2145
|
+
background-color: green;
|
|
2146
|
+
}
|
|
2147
|
+
.dv-debug .dv-resize-container .dv-resize-handle-left {
|
|
2148
|
+
background-color: yellow;
|
|
2149
|
+
}
|
|
2150
|
+
.dv-debug .dv-resize-container .dv-resize-handle-right {
|
|
2151
|
+
background-color: blue;
|
|
2152
|
+
}
|
|
2153
|
+
.dv-debug .dv-resize-container .dv-resize-handle-topleft,
|
|
2154
|
+
.dv-debug .dv-resize-container .dv-resize-handle-topright,
|
|
2155
|
+
.dv-debug .dv-resize-container .dv-resize-handle-bottomleft,
|
|
2156
|
+
.dv-debug .dv-resize-container .dv-resize-handle-bottomright {
|
|
2157
|
+
background-color: cyan;
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
.dv-resize-container {
|
|
2161
|
+
--dv-overlay-z-index: var(--dv-overlay-z-index, 999);
|
|
2162
|
+
position: absolute;
|
|
2163
|
+
z-index: calc(var(--dv-overlay-z-index) - 2);
|
|
2164
|
+
border: 1px solid var(--dv-tab-divider-color);
|
|
2165
|
+
box-shadow: var(--dv-floating-box-shadow);
|
|
2166
|
+
/* GPU optimizations for floating group movement */
|
|
2167
|
+
will-change: transform, opacity;
|
|
2168
|
+
transform: translate3d(0, 0, 0);
|
|
2169
|
+
backface-visibility: hidden;
|
|
2170
|
+
}
|
|
2171
|
+
.dv-resize-container.dv-hidden {
|
|
2172
|
+
display: none;
|
|
2173
|
+
}
|
|
2174
|
+
.dv-resize-container.dv-resize-container-dragging {
|
|
2175
|
+
opacity: 0.5;
|
|
2176
|
+
/* Enhanced GPU acceleration during drag */
|
|
2177
|
+
will-change: transform, opacity;
|
|
2178
|
+
}
|
|
2179
|
+
.dv-resize-container .dv-resize-handle-top {
|
|
2180
|
+
height: 4px;
|
|
2181
|
+
width: calc(100% - 8px);
|
|
2182
|
+
left: 4px;
|
|
2183
|
+
top: -2px;
|
|
2184
|
+
z-index: var(--dv-overlay-z-index);
|
|
2185
|
+
position: absolute;
|
|
2186
|
+
cursor: ns-resize;
|
|
2187
|
+
}
|
|
2188
|
+
.dv-resize-container .dv-resize-handle-bottom {
|
|
2189
|
+
height: 4px;
|
|
2190
|
+
width: calc(100% - 8px);
|
|
2191
|
+
left: 4px;
|
|
2192
|
+
bottom: -2px;
|
|
2193
|
+
z-index: var(--dv-overlay-z-index);
|
|
2194
|
+
position: absolute;
|
|
2195
|
+
cursor: ns-resize;
|
|
2196
|
+
}
|
|
2197
|
+
.dv-resize-container .dv-resize-handle-left {
|
|
2198
|
+
height: calc(100% - 8px);
|
|
2199
|
+
width: 4px;
|
|
2200
|
+
left: -2px;
|
|
2201
|
+
top: 4px;
|
|
2202
|
+
z-index: var(--dv-overlay-z-index);
|
|
2203
|
+
position: absolute;
|
|
2204
|
+
cursor: ew-resize;
|
|
2205
|
+
}
|
|
2206
|
+
.dv-resize-container .dv-resize-handle-right {
|
|
2207
|
+
height: calc(100% - 8px);
|
|
2208
|
+
width: 4px;
|
|
2209
|
+
right: -2px;
|
|
2210
|
+
top: 4px;
|
|
2211
|
+
z-index: var(--dv-overlay-z-index);
|
|
2212
|
+
position: absolute;
|
|
2213
|
+
cursor: ew-resize;
|
|
2214
|
+
}
|
|
2215
|
+
.dv-resize-container .dv-resize-handle-topleft {
|
|
2216
|
+
height: 4px;
|
|
2217
|
+
width: 4px;
|
|
2218
|
+
top: -2px;
|
|
2219
|
+
left: -2px;
|
|
2220
|
+
z-index: var(--dv-overlay-z-index);
|
|
2221
|
+
position: absolute;
|
|
2222
|
+
cursor: nw-resize;
|
|
2223
|
+
}
|
|
2224
|
+
.dv-resize-container .dv-resize-handle-topright {
|
|
2225
|
+
height: 4px;
|
|
2226
|
+
width: 4px;
|
|
2227
|
+
right: -2px;
|
|
2228
|
+
top: -2px;
|
|
2229
|
+
z-index: var(--dv-overlay-z-index);
|
|
2230
|
+
position: absolute;
|
|
2231
|
+
cursor: ne-resize;
|
|
2232
|
+
}
|
|
2233
|
+
.dv-resize-container .dv-resize-handle-bottomleft {
|
|
2234
|
+
height: 4px;
|
|
2235
|
+
width: 4px;
|
|
2236
|
+
left: -2px;
|
|
2237
|
+
bottom: -2px;
|
|
2238
|
+
z-index: var(--dv-overlay-z-index);
|
|
2239
|
+
position: absolute;
|
|
2240
|
+
cursor: sw-resize;
|
|
2241
|
+
}
|
|
2242
|
+
.dv-resize-container .dv-resize-handle-bottomright {
|
|
2243
|
+
height: 4px;
|
|
2244
|
+
width: 4px;
|
|
2245
|
+
right: -2px;
|
|
2246
|
+
bottom: -2px;
|
|
2247
|
+
z-index: var(--dv-overlay-z-index);
|
|
2248
|
+
position: absolute;
|
|
2249
|
+
cursor: se-resize;
|
|
2250
|
+
}
|
|
2251
|
+
.dv-render-overlay {
|
|
2252
|
+
--dv-overlay-z-index: var(--dv-overlay-z-index, 999);
|
|
2253
|
+
position: absolute;
|
|
2254
|
+
z-index: 1;
|
|
2255
|
+
width: 100%;
|
|
2256
|
+
height: 100%;
|
|
2257
|
+
contain: layout paint;
|
|
2258
|
+
isolation: isolate;
|
|
2259
|
+
/* GPU optimizations */
|
|
2260
|
+
will-change: transform;
|
|
2261
|
+
transform: translate3d(0, 0, 0);
|
|
2262
|
+
backface-visibility: hidden;
|
|
2263
|
+
}
|
|
2264
|
+
.dv-render-overlay.dv-render-overlay-float {
|
|
2265
|
+
z-index: calc(var(--dv-overlay-z-index) - 1);
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
.dv-debug .dv-render-overlay {
|
|
2269
|
+
outline: 1px solid red;
|
|
2270
|
+
outline-offset: -1;
|
|
2271
|
+
}
|
|
2272
|
+
.dv-pane-container {
|
|
2273
|
+
height: 100%;
|
|
2274
|
+
width: 100%;
|
|
2275
|
+
}
|
|
2276
|
+
.dv-pane-container.dv-animated .dv-view {
|
|
2277
|
+
/* GPU optimizations for smooth pane animations */
|
|
2278
|
+
will-change: transform;
|
|
2279
|
+
transform: translate3d(0, 0, 0);
|
|
2280
|
+
backface-visibility: hidden;
|
|
2281
|
+
transition: transform 0.15s ease-out;
|
|
2282
|
+
}
|
|
2283
|
+
.dv-pane-container .dv-view {
|
|
2284
|
+
overflow: hidden;
|
|
2285
|
+
display: flex;
|
|
2286
|
+
flex-direction: column;
|
|
2287
|
+
padding: 0px !important;
|
|
2288
|
+
}
|
|
2289
|
+
.dv-pane-container .dv-view:not(:first-child)::before {
|
|
2290
|
+
background-color: transparent !important;
|
|
2291
|
+
}
|
|
2292
|
+
.dv-pane-container .dv-view:not(:first-child) .dv-pane > .dv-pane-header {
|
|
2293
|
+
border-top: 1px solid var(--dv-paneview-header-border-color);
|
|
2294
|
+
}
|
|
2295
|
+
.dv-pane-container .dv-view .dv-default-header {
|
|
2296
|
+
background-color: var(--dv-group-view-background-color);
|
|
2297
|
+
color: var(--dv-activegroup-visiblepanel-tab-color);
|
|
2298
|
+
display: flex;
|
|
2299
|
+
padding: 0px 8px;
|
|
2300
|
+
cursor: pointer;
|
|
2301
|
+
}
|
|
2302
|
+
.dv-pane-container .dv-view .dv-default-header .dv-pane-header-icon {
|
|
2303
|
+
display: flex;
|
|
2304
|
+
justify-content: center;
|
|
2305
|
+
align-items: center;
|
|
2306
|
+
}
|
|
2307
|
+
.dv-pane-container .dv-view .dv-default-header > span {
|
|
2308
|
+
padding-left: 8px;
|
|
2309
|
+
flex-grow: 1;
|
|
2310
|
+
}
|
|
2311
|
+
.dv-pane-container:first-of-type > .dv-pane > .dv-pane-header {
|
|
2312
|
+
border-top: none !important;
|
|
2313
|
+
}
|
|
2314
|
+
.dv-pane-container .dv-pane {
|
|
2315
|
+
display: flex;
|
|
2316
|
+
flex-direction: column;
|
|
2317
|
+
overflow: hidden;
|
|
2318
|
+
height: 100%;
|
|
2319
|
+
}
|
|
2320
|
+
.dv-pane-container .dv-pane .dv-pane-header {
|
|
2321
|
+
box-sizing: border-box;
|
|
2322
|
+
user-select: none;
|
|
2323
|
+
position: relative;
|
|
2324
|
+
outline: none;
|
|
2325
|
+
}
|
|
2326
|
+
.dv-pane-container .dv-pane .dv-pane-header.dv-pane-draggable {
|
|
2327
|
+
cursor: pointer;
|
|
2328
|
+
}
|
|
2329
|
+
.dv-pane-container .dv-pane .dv-pane-header:focus:before, .dv-pane-container .dv-pane .dv-pane-header:focus-within:before {
|
|
2330
|
+
position: absolute;
|
|
2331
|
+
top: 0;
|
|
2332
|
+
left: 0;
|
|
2333
|
+
width: 100%;
|
|
2334
|
+
height: 100%;
|
|
2335
|
+
z-index: 5;
|
|
2336
|
+
content: "";
|
|
2337
|
+
pointer-events: none;
|
|
2338
|
+
outline: 1px solid;
|
|
2339
|
+
outline-width: -1px;
|
|
2340
|
+
outline-style: solid;
|
|
2341
|
+
outline-offset: -1px;
|
|
2342
|
+
outline-color: var(--dv-paneview-active-outline-color);
|
|
2343
|
+
}
|
|
2344
|
+
.dv-pane-container .dv-pane .dv-pane-body {
|
|
2345
|
+
overflow-y: auto;
|
|
2346
|
+
overflow-x: hidden;
|
|
2347
|
+
flex-grow: 1;
|
|
2348
|
+
position: relative;
|
|
2349
|
+
outline: none;
|
|
2350
|
+
}
|
|
2351
|
+
.dv-pane-container .dv-pane .dv-pane-body:focus:before, .dv-pane-container .dv-pane .dv-pane-body:focus-within:before {
|
|
2352
|
+
position: absolute;
|
|
2353
|
+
top: 0;
|
|
2354
|
+
left: 0;
|
|
2355
|
+
width: 100%;
|
|
2356
|
+
height: 100%;
|
|
2357
|
+
z-index: 5;
|
|
2358
|
+
content: "";
|
|
2359
|
+
pointer-events: none;
|
|
2360
|
+
outline: 1px solid;
|
|
2361
|
+
outline-width: -1px;
|
|
2362
|
+
outline-style: solid;
|
|
2363
|
+
outline-offset: -1px;
|
|
2364
|
+
outline-color: var(--dv-paneview-active-outline-color);
|
|
2365
|
+
}
|
|
2366
|
+
.dv-debug .dv-split-view-container .dv-sash-container .dv-sash.dv-enabled {
|
|
2367
|
+
background-color: black;
|
|
2368
|
+
}
|
|
2369
|
+
.dv-debug .dv-split-view-container .dv-sash-container .dv-sash.dv-disabled {
|
|
2370
|
+
background-color: orange;
|
|
2371
|
+
}
|
|
2372
|
+
.dv-debug .dv-split-view-container .dv-sash-container .dv-sash.dv-maximum {
|
|
2373
|
+
background-color: green;
|
|
2374
|
+
}
|
|
2375
|
+
.dv-debug .dv-split-view-container .dv-sash-container .dv-sash.dv-minimum {
|
|
2376
|
+
background-color: red;
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
.dv-split-view-container {
|
|
2380
|
+
position: relative;
|
|
2381
|
+
overflow: hidden;
|
|
2382
|
+
height: 100%;
|
|
2383
|
+
width: 100%;
|
|
2384
|
+
}
|
|
2385
|
+
.dv-split-view-container.dv-splitview-disabled > .dv-sash-container > .dv-sash {
|
|
2386
|
+
pointer-events: none;
|
|
2387
|
+
}
|
|
2388
|
+
.dv-split-view-container.dv-animation .dv-view,
|
|
2389
|
+
.dv-split-view-container.dv-animation .dv-sash {
|
|
2390
|
+
/* GPU optimizations for smooth animations */
|
|
2391
|
+
will-change: transform;
|
|
2392
|
+
transform: translate3d(0, 0, 0);
|
|
2393
|
+
backface-visibility: hidden;
|
|
2394
|
+
transition: transform 0.15s ease-out;
|
|
2395
|
+
}
|
|
2396
|
+
.dv-split-view-container.dv-horizontal {
|
|
2397
|
+
height: 100%;
|
|
2398
|
+
}
|
|
2399
|
+
.dv-split-view-container.dv-horizontal > .dv-sash-container > .dv-sash {
|
|
2400
|
+
height: 100%;
|
|
2401
|
+
width: 4px;
|
|
2402
|
+
}
|
|
2403
|
+
.dv-split-view-container.dv-horizontal > .dv-sash-container > .dv-sash.dv-enabled {
|
|
2404
|
+
cursor: ew-resize;
|
|
2405
|
+
}
|
|
2406
|
+
.dv-split-view-container.dv-horizontal > .dv-sash-container > .dv-sash.dv-disabled {
|
|
2407
|
+
cursor: default;
|
|
2408
|
+
}
|
|
2409
|
+
.dv-split-view-container.dv-horizontal > .dv-sash-container > .dv-sash.dv-maximum {
|
|
2410
|
+
cursor: w-resize;
|
|
2411
|
+
}
|
|
2412
|
+
.dv-split-view-container.dv-horizontal > .dv-sash-container > .dv-sash.dv-minimum {
|
|
2413
|
+
cursor: e-resize;
|
|
2414
|
+
}
|
|
2415
|
+
.dv-split-view-container.dv-horizontal > .dv-view-container > .dv-view:not(:first-child)::before {
|
|
2416
|
+
height: 100%;
|
|
2417
|
+
width: 1px;
|
|
2418
|
+
}
|
|
2419
|
+
.dv-split-view-container.dv-vertical {
|
|
2420
|
+
width: 100%;
|
|
2421
|
+
}
|
|
2422
|
+
.dv-split-view-container.dv-vertical > .dv-sash-container > .dv-sash {
|
|
2423
|
+
width: 100%;
|
|
2424
|
+
height: 4px;
|
|
2425
|
+
}
|
|
2426
|
+
.dv-split-view-container.dv-vertical > .dv-sash-container > .dv-sash.dv-enabled {
|
|
2427
|
+
cursor: ns-resize;
|
|
2428
|
+
}
|
|
2429
|
+
.dv-split-view-container.dv-vertical > .dv-sash-container > .dv-sash.dv-disabled {
|
|
2430
|
+
cursor: default;
|
|
2431
|
+
}
|
|
2432
|
+
.dv-split-view-container.dv-vertical > .dv-sash-container > .dv-sash.dv-maximum {
|
|
2433
|
+
cursor: n-resize;
|
|
2434
|
+
}
|
|
2435
|
+
.dv-split-view-container.dv-vertical > .dv-sash-container > .dv-sash.dv-minimum {
|
|
2436
|
+
cursor: s-resize;
|
|
2437
|
+
}
|
|
2438
|
+
.dv-split-view-container.dv-vertical > .dv-view-container > .dv-view {
|
|
2439
|
+
width: 100%;
|
|
2440
|
+
}
|
|
2441
|
+
.dv-split-view-container.dv-vertical > .dv-view-container > .dv-view:not(:first-child)::before {
|
|
2442
|
+
height: 1px;
|
|
2443
|
+
width: 100%;
|
|
2444
|
+
}
|
|
2445
|
+
.dv-split-view-container .dv-sash-container {
|
|
2446
|
+
height: 100%;
|
|
2447
|
+
width: 100%;
|
|
2448
|
+
position: absolute;
|
|
2449
|
+
}
|
|
2450
|
+
.dv-split-view-container .dv-sash-container .dv-sash {
|
|
2451
|
+
position: absolute;
|
|
2452
|
+
z-index: 99;
|
|
2453
|
+
outline: none;
|
|
2454
|
+
user-select: none;
|
|
2455
|
+
-webkit-user-select: none;
|
|
2456
|
+
-moz-user-select: none;
|
|
2457
|
+
-ms-user-select: none;
|
|
2458
|
+
touch-action: none;
|
|
2459
|
+
background-color: var(--dv-sash-color, transparent);
|
|
2460
|
+
}
|
|
2461
|
+
.dv-split-view-container .dv-sash-container .dv-sash:not(.disabled):active, .dv-split-view-container .dv-sash-container .dv-sash:not(.disabled):hover {
|
|
2462
|
+
background-color: var(--dv-active-sash-color, transparent);
|
|
2463
|
+
transition-property: background-color;
|
|
2464
|
+
transition-timing-function: ease-in-out;
|
|
2465
|
+
transition-duration: var(--dv-active-sash-transition-duration, 0.1s);
|
|
2466
|
+
transition-delay: var(--dv-active-sash-transition-delay, 0.5s);
|
|
2467
|
+
}
|
|
2468
|
+
.dv-split-view-container .dv-view-container {
|
|
2469
|
+
position: relative;
|
|
2470
|
+
height: 100%;
|
|
2471
|
+
width: 100%;
|
|
2472
|
+
}
|
|
2473
|
+
.dv-split-view-container .dv-view-container .dv-view {
|
|
2474
|
+
height: 100%;
|
|
2475
|
+
box-sizing: border-box;
|
|
2476
|
+
overflow: auto;
|
|
2477
|
+
position: absolute;
|
|
2478
|
+
}
|
|
2479
|
+
.dv-split-view-container.dv-separator-border .dv-view:not(:first-child)::before {
|
|
2480
|
+
content: " ";
|
|
2481
|
+
position: absolute;
|
|
2482
|
+
top: 0;
|
|
2483
|
+
left: 0;
|
|
2484
|
+
z-index: 5;
|
|
2485
|
+
pointer-events: none;
|
|
2486
|
+
background-color: var(--dv-separator-border);
|
|
2487
|
+
}
|
|
2488
|
+
.dv-dragged {
|
|
2489
|
+
transform: translate3d(0px, 0px, 0px); /* forces tab to be drawn on a separate layer (see https://github.com/microsoft/vscode/issues/18733) */
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
.dv-tab {
|
|
2493
|
+
flex-shrink: 0;
|
|
2494
|
+
}
|
|
2495
|
+
.dv-tab:focus-within, .dv-tab:focus {
|
|
2496
|
+
position: relative;
|
|
2497
|
+
}
|
|
2498
|
+
.dv-tab:focus-within::after, .dv-tab:focus::after {
|
|
2499
|
+
position: absolute;
|
|
2500
|
+
content: "";
|
|
2501
|
+
height: 100%;
|
|
2502
|
+
width: 100%;
|
|
2503
|
+
top: 0px;
|
|
2504
|
+
left: 0px;
|
|
2505
|
+
pointer-events: none;
|
|
2506
|
+
outline: 1px solid var(--dv-tab-divider-color) !important;
|
|
2507
|
+
outline-offset: -1px;
|
|
2508
|
+
z-index: 5;
|
|
2509
|
+
}
|
|
2510
|
+
.dv-tab.dv-tab-dragging .dv-default-tab-action {
|
|
2511
|
+
background-color: var(--dv-activegroup-visiblepanel-tab-color);
|
|
2512
|
+
}
|
|
2513
|
+
.dv-tab.dv-active-tab .dv-default-tab .dv-default-tab-action {
|
|
2514
|
+
visibility: visible;
|
|
2515
|
+
}
|
|
2516
|
+
.dv-tab.dv-inactive-tab .dv-default-tab .dv-default-tab-action {
|
|
2517
|
+
visibility: hidden;
|
|
2518
|
+
}
|
|
2519
|
+
.dv-tab.dv-inactive-tab .dv-default-tab:hover .dv-default-tab-action {
|
|
2520
|
+
visibility: visible;
|
|
2521
|
+
}
|
|
2522
|
+
.dv-tab .dv-default-tab {
|
|
2523
|
+
position: relative;
|
|
2524
|
+
height: 100%;
|
|
2525
|
+
width: 100%;
|
|
2526
|
+
display: flex;
|
|
2527
|
+
align-items: center;
|
|
2528
|
+
white-space: nowrap;
|
|
2529
|
+
text-overflow: ellipsis;
|
|
2530
|
+
}
|
|
2531
|
+
.dv-tab .dv-default-tab .dv-default-tab-content {
|
|
2532
|
+
flex-grow: 1;
|
|
2533
|
+
margin-right: 4px;
|
|
2534
|
+
}
|
|
2535
|
+
.dv-tab .dv-default-tab .dv-default-tab-action {
|
|
2536
|
+
padding: 4px;
|
|
2537
|
+
display: flex;
|
|
2538
|
+
align-items: center;
|
|
2539
|
+
justify-content: center;
|
|
2540
|
+
box-sizing: border-box;
|
|
2541
|
+
}
|
|
2542
|
+
.dv-tab .dv-default-tab .dv-default-tab-action:hover {
|
|
2543
|
+
border-radius: 2px;
|
|
2544
|
+
background-color: var(--dv-icon-hover-background-color);
|
|
2545
|
+
}
|
|
2546
|
+
.dv-tabs-overflow-dropdown-default {
|
|
2547
|
+
height: 100%;
|
|
2548
|
+
color: var(--dv-activegroup-hiddenpanel-tab-color);
|
|
2549
|
+
margin: var(--dv-tab-margin);
|
|
2550
|
+
display: flex;
|
|
2551
|
+
align-items: center;
|
|
2552
|
+
flex-shrink: 0;
|
|
2553
|
+
padding: 0.25rem 0.5rem;
|
|
2554
|
+
cursor: pointer;
|
|
2555
|
+
}
|
|
2556
|
+
.dv-tabs-overflow-dropdown-default > span {
|
|
2557
|
+
padding-left: 0.25rem;
|
|
2558
|
+
}
|
|
2559
|
+
.dv-tabs-overflow-dropdown-default > svg {
|
|
2560
|
+
transform: rotate(90deg);
|
|
2561
|
+
}
|
|
2562
|
+
.dv-tabs-overflow-dropdown-default:hover {
|
|
2563
|
+
border-radius: 2px;
|
|
2564
|
+
background-color: var(--dv-icon-hover-background-color);
|
|
2565
|
+
}
|
|
2566
|
+
.dv-tabs-container {
|
|
2567
|
+
display: flex;
|
|
2568
|
+
height: 100%;
|
|
2569
|
+
overflow: auto;
|
|
2570
|
+
scrollbar-width: thin;
|
|
2571
|
+
/* GPU optimizations for smooth scrolling */
|
|
2572
|
+
will-change: scroll-position;
|
|
2573
|
+
transform: translate3d(0, 0, 0);
|
|
2574
|
+
/* Track */
|
|
2575
|
+
/* Handle */
|
|
2576
|
+
}
|
|
2577
|
+
.dv-tabs-container.dv-tabs-container-vertical {
|
|
2578
|
+
width: 100%;
|
|
2579
|
+
height: fit-content;
|
|
2580
|
+
max-height: 100%;
|
|
2581
|
+
writing-mode: vertical-rl;
|
|
2582
|
+
}
|
|
2583
|
+
.dv-tabs-container.dv-horizontal .dv-tab:not(:first-child)::before, .dv-tabs-container.dv-vertical .dv-tab:not(:first-child)::before {
|
|
2584
|
+
content: " ";
|
|
2585
|
+
position: absolute;
|
|
2586
|
+
top: 0;
|
|
2587
|
+
left: 0;
|
|
2588
|
+
z-index: 5;
|
|
2589
|
+
pointer-events: none;
|
|
2590
|
+
background-color: var(--dv-tab-divider-color);
|
|
2591
|
+
}
|
|
2592
|
+
.dv-tabs-container.dv-horizontal .dv-tab:not(:first-child)::before {
|
|
2593
|
+
width: 1px;
|
|
2594
|
+
height: 100%;
|
|
2595
|
+
}
|
|
2596
|
+
.dv-tabs-container.dv-vertical .dv-tab:not(:first-child)::before {
|
|
2597
|
+
width: 100%;
|
|
2598
|
+
height: 1px;
|
|
2599
|
+
}
|
|
2600
|
+
.dv-tabs-container::-webkit-scrollbar {
|
|
2601
|
+
height: 3px;
|
|
2602
|
+
}
|
|
2603
|
+
.dv-tabs-container::-webkit-scrollbar-track {
|
|
2604
|
+
background: transparent;
|
|
2605
|
+
}
|
|
2606
|
+
.dv-tabs-container::-webkit-scrollbar-thumb {
|
|
2607
|
+
background: var(--dv-tabs-container-scrollbar-color);
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
.dv-scrollable > .dv-tabs-container {
|
|
2611
|
+
overflow: hidden;
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
.dv-tab {
|
|
2615
|
+
-webkit-user-drag: element;
|
|
2616
|
+
outline: none;
|
|
2617
|
+
padding: 0.25rem 0.5rem;
|
|
2618
|
+
cursor: pointer;
|
|
2619
|
+
position: relative;
|
|
2620
|
+
box-sizing: border-box;
|
|
2621
|
+
font-size: var(--dv-tab-font-size);
|
|
2622
|
+
margin: var(--dv-tab-margin);
|
|
2623
|
+
}
|
|
2624
|
+
.dv-tab.dv-tab--shifting {
|
|
2625
|
+
will-change: margin-left;
|
|
2626
|
+
transition: transform var(--dv-transition-duration, 200ms) ease-out, margin-left var(--dv-transition-duration, 200ms) ease-out;
|
|
2627
|
+
}
|
|
2628
|
+
.dv-tab.dv-tab--dragging {
|
|
2629
|
+
width: 0 !important;
|
|
2630
|
+
min-width: 0 !important;
|
|
2631
|
+
padding: 0 !important;
|
|
2632
|
+
margin: 0 !important;
|
|
2633
|
+
overflow: hidden;
|
|
2634
|
+
opacity: 0;
|
|
2635
|
+
pointer-events: none;
|
|
2636
|
+
transition: width var(--dv-transition-duration, 200ms) ease-out, padding var(--dv-transition-duration, 200ms) ease-out, margin var(--dv-transition-duration, 200ms) ease-out, opacity var(--dv-transition-duration, 200ms) ease-out;
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2640
|
+
.dv-tab {
|
|
2641
|
+
transition: none !important;
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
.dv-tabs-container-vertical .dv-tab {
|
|
2645
|
+
padding: 0.5rem 0.25rem;
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
.dv-tabs-overflow-container {
|
|
2649
|
+
flex-direction: column;
|
|
2650
|
+
height: unset;
|
|
2651
|
+
font-size: var(--dv-tabs-and-actions-container-font-size);
|
|
2652
|
+
max-height: min(50vh, 400px);
|
|
2653
|
+
overflow-y: auto;
|
|
2654
|
+
border: 1px solid var(--dv-tab-divider-color);
|
|
2655
|
+
background-color: var(--dv-group-view-background-color);
|
|
2656
|
+
/* Scrollbar styling for webkit browsers */
|
|
2657
|
+
/* Firefox scrollbar */
|
|
2658
|
+
scrollbar-width: thin;
|
|
2659
|
+
}
|
|
2660
|
+
.dv-tabs-overflow-container::-webkit-scrollbar {
|
|
2661
|
+
width: 6px;
|
|
2662
|
+
}
|
|
2663
|
+
.dv-tabs-overflow-container::-webkit-scrollbar-track {
|
|
2664
|
+
background: transparent;
|
|
2665
|
+
}
|
|
2666
|
+
.dv-tabs-overflow-container::-webkit-scrollbar-thumb {
|
|
2667
|
+
background: var(--dv-tabs-container-scrollbar-color);
|
|
2668
|
+
border-radius: 3px;
|
|
2669
|
+
}
|
|
2670
|
+
.dv-tabs-overflow-container .dv-tab:not(:last-child) {
|
|
2671
|
+
border-bottom: 1px solid var(--dv-tab-divider-color);
|
|
2672
|
+
}
|
|
2673
|
+
.dv-tabs-overflow-container .dv-active-tab {
|
|
2674
|
+
background-color: var(--dv-activegroup-visiblepanel-tab-background-color);
|
|
2675
|
+
color: var(--dv-activegroup-visiblepanel-tab-color);
|
|
2676
|
+
}
|
|
2677
|
+
.dv-tabs-overflow-container .dv-inactive-tab {
|
|
2678
|
+
background-color: var(--dv-activegroup-hiddenpanel-tab-background-color);
|
|
2679
|
+
color: var(--dv-activegroup-hiddenpanel-tab-color);
|
|
2680
|
+
}
|
|
2681
|
+
.dv-tabs-and-actions-container {
|
|
2682
|
+
display: flex;
|
|
2683
|
+
background-color: var(--dv-tabs-and-actions-container-background-color);
|
|
2684
|
+
flex-shrink: 0;
|
|
2685
|
+
box-sizing: border-box;
|
|
2686
|
+
height: var(--dv-tabs-and-actions-container-height);
|
|
2687
|
+
font-size: var(--dv-tabs-and-actions-container-font-size);
|
|
2688
|
+
}
|
|
2689
|
+
.dv-tabs-and-actions-container.dv-single-tab.dv-full-width-single-tab .dv-scrollable {
|
|
2690
|
+
flex-grow: 1;
|
|
2691
|
+
}
|
|
2692
|
+
.dv-tabs-and-actions-container.dv-single-tab.dv-full-width-single-tab .dv-tabs-container {
|
|
2693
|
+
flex-grow: 1;
|
|
2694
|
+
}
|
|
2695
|
+
.dv-tabs-and-actions-container.dv-single-tab.dv-full-width-single-tab .dv-tabs-container .dv-tab {
|
|
2696
|
+
flex-grow: 1;
|
|
2697
|
+
padding: 0px;
|
|
2698
|
+
}
|
|
2699
|
+
.dv-tabs-and-actions-container.dv-single-tab.dv-full-width-single-tab .dv-void-container {
|
|
2700
|
+
flex-grow: 0;
|
|
2701
|
+
}
|
|
2702
|
+
.dv-tabs-and-actions-container .dv-void-container {
|
|
2703
|
+
display: flex;
|
|
2704
|
+
flex-grow: 1;
|
|
2705
|
+
}
|
|
2706
|
+
.dv-tabs-and-actions-container .dv-void-container.dv-draggable {
|
|
2707
|
+
cursor: grab;
|
|
2708
|
+
}
|
|
2709
|
+
.dv-tabs-and-actions-container .dv-right-actions-container {
|
|
2710
|
+
display: flex;
|
|
2711
|
+
}
|
|
2712
|
+
.dv-tabs-and-actions-container .dv-right-actions-container.dv-right-actions-container-vertical {
|
|
2713
|
+
flex-direction: column;
|
|
2714
|
+
}
|
|
2715
|
+
.dv-tabs-and-actions-container.dv-groupview-header-vertical {
|
|
2716
|
+
flex-direction: column;
|
|
2717
|
+
height: auto;
|
|
2718
|
+
width: var(--dv-tabs-and-actions-container-height);
|
|
2719
|
+
}
|
|
2720
|
+
.dv-watermark {
|
|
2721
|
+
display: flex;
|
|
2722
|
+
height: 100%;
|
|
2723
|
+
}`;WI(HI);const ay=(e,t)=>{const[n,i]=q.useState(),r=q.useRef(e.componentProps);return q.useImperativeHandle(t,()=>({update:o=>{r.current=Object.assign(Object.assign({},r.current),o),i(Date.now())}}),[]),q.createElement(e.component,r.current)};ay.displayName="DockviewReactJsBridge";const UI=(()=>{let e=1;return{next:()=>`dockview_react_portal_key_${(e++).toString()}`}})(),ZI=q.createContext({});class Ui{constructor(t,n,i,r,o){this.parent=t,this.portalStore=n,this.component=i,this.parameters=r,this.context=o,this._initialProps={},this.disposed=!1,this.createPortal()}update(t){if(this.disposed)throw new Error("invalid operation: resource is already disposed");this.componentInstance?this.componentInstance.update(t):this._initialProps=Object.assign(Object.assign({},this._initialProps),t)}createPortal(){if(this.disposed)throw new Error("invalid operation: resource is already disposed");if(!YI(this.component))throw new Error("Dockview: Only React.memo(...), React.ForwardRef(...) and functional components are accepted as components");const t=q.createElement(q.forwardRef(ay),{component:this.component,componentProps:this.parameters,ref:r=>{this.componentInstance=r,Object.keys(this._initialProps).length>0&&(this.componentInstance.update(this._initialProps),this._initialProps={})}}),n=this.context?q.createElement(ZI.Provider,{value:this.context},t):t,i=Vx.createPortal(n,this.parent,UI.next());this.ref={portal:i,disposable:this.portalStore.addPortal(i)}}dispose(){var t;(t=this.ref)===null||t===void 0||t.disposable.dispose(),this.disposed=!0}}const vl=()=>{const[e,t]=q.useState([]);q.useDebugValue(`Portal count: ${e.length}`);const n=q.useCallback(i=>{t(o=>[...o,i]);let r=!1;return Ye.from(()=>{if(r)throw new Error("invalid operation: resource already disposed");r=!0,t(o=>o.filter(s=>s!==i))})},[]);return[e,n]};function YI(e){return typeof e=="function"||!!(e!=null&&e.$$typeof)}class hm{get element(){return this._element}constructor(t,n,i){this.id=t,this.component=n,this.reactPortalStore=i,this._onDidFocus=new A,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new A,this.onDidBlur=this._onDidBlur.event,this._element=document.createElement("div"),this._element.className="dv-react-part",this._element.style.height="100%",this._element.style.width="100%"}focus(){}init(t){this.part=new Ui(this.element,this.reactPortalStore,this.component,{params:t.params,api:t.api,containerApi:t.containerApi})}update(t){var n;(n=this.part)===null||n===void 0||n.update({params:t.params})}layout(t,n){}dispose(){var t;this._onDidFocus.dispose(),this._onDidBlur.dispose(),(t=this.part)===null||t===void 0||t.dispose()}}class pm{get element(){return this._element}constructor(t,n,i){this.id=t,this.component=n,this.reactPortalStore=i,this._element=document.createElement("div"),this._element.className="dv-react-part",this._element.style.height="100%",this._element.style.width="100%"}focus(){}init(t){this.part=new Ui(this.element,this.reactPortalStore,this.component,{params:t.params,api:t.api,containerApi:t.containerApi,tabLocation:t.tabLocation})}update(t){var n;(n=this.part)===null||n===void 0||n.update({params:t.params})}layout(t,n){}dispose(){var t;(t=this.part)===null||t===void 0||t.dispose()}}class fm{get element(){return this._element}constructor(t,n,i){this.id=t,this.component=n,this.reactPortalStore=i,this._element=document.createElement("div"),this._element.className="dv-react-part",this._element.style.height="100%",this._element.style.width="100%"}init(t){this.part=new Ui(this.element,this.reactPortalStore,this.component,{group:t.group,containerApi:t.containerApi})}focus(){}update(t){var n,i,r;this.parameters&&(this.parameters.params=t.params),(n=this.part)===null||n===void 0||n.update({params:(r=(i=this.parameters)===null||i===void 0?void 0:i.params)!==null&&r!==void 0?r:{}})}layout(t,n){}dispose(){var t;(t=this.part)===null||t===void 0||t.dispose()}}class JI{get element(){return this._element}get part(){return this._part}constructor(t,n,i){this.component=t,this.reactPortalStore=n,this._group=i,this.mutableDisposable=new tt,this._element=document.createElement("div"),this._element.className="dv-react-part",this._element.style.height="100%",this._element.style.width="100%"}init(t){this.mutableDisposable.value=new ie(this._group.model.onDidAddPanel(()=>{this.updatePanels()}),this._group.model.onDidRemovePanel(()=>{this.updatePanels()}),this._group.model.onDidActivePanelChange(()=>{this.updateActivePanel()}),t.api.onDidActiveChange(()=>{this.updateGroupActive()})),this._part=new Ui(this.element,this.reactPortalStore,this.component,{api:t.api,containerApi:t.containerApi,panels:this._group.model.panels,activePanel:this._group.model.activePanel,isGroupActive:this._group.api.isActive,group:this._group,headerPosition:this._group.model.headerPosition})}dispose(){var t;this.mutableDisposable.dispose(),(t=this._part)===null||t===void 0||t.dispose()}update(t){var n;(n=this._part)===null||n===void 0||n.update(t.params)}updatePanels(){this.update({params:{panels:this._group.model.panels}})}updateActivePanel(){this.update({params:{activePanel:this._group.model.activePanel}})}updateGroupActive(){this.update({params:{isGroupActive:this._group.api.isActive}})}}function Qi(e,t){return e?n=>new JI(e,t,n):void 0}const Ls="props.defaultTabComponent";function qI(e){return Lc.reduce((n,i)=>(i in e&&(n[i]=e[i]),n),{})}const KI=q.forwardRef((e,t)=>{const n=q.useRef(null),i=q.useRef(),[r,o]=vl();q.useImperativeHandle(t,()=>n.current,[]);const s=q.useRef({});return q.useEffect(()=>{const a={};Lc.forEach(l=>{const u=l,d=e[u];u in e&&d!==s.current[u]&&(a[u]=d)}),i.current&&i.current.updateOptions(a),s.current=e},Lc.map(a=>e[a])),q.useEffect(()=>{var a;if(!n.current)return;const l=(a=e.tabComponents)!==null&&a!==void 0?a:{};e.defaultTabComponent&&(l[Ls]=e.defaultTabComponent);const u={createLeftHeaderActionComponent:Qi(e.leftHeaderActionsComponent,{addPortal:o}),createRightHeaderActionComponent:Qi(e.rightHeaderActionsComponent,{addPortal:o}),createPrefixHeaderActionComponent:Qi(e.prefixHeaderActionsComponent,{addPortal:o}),createComponent:p=>new hm(p.id,e.components[p.name],{addPortal:o}),createTabComponent(p){return new pm(p.id,l[p.name],{addPortal:o})},createWatermarkComponent:e.watermarkComponent?()=>new fm("watermark",e.watermarkComponent,{addPortal:o}):void 0,defaultTabComponent:e.defaultTabComponent?Ls:void 0},d=GI(n.current,Object.assign(Object.assign({},qI(e)),u)),{clientWidth:c,clientHeight:h}=n.current;return d.layout(c,h),e.onReady&&e.onReady({api:d}),i.current=d,()=>{i.current=void 0,d.dispose()}},[]),q.useEffect(()=>{if(!i.current)return()=>{};const a=i.current.onDidDrop(l=>{e.onDidDrop&&e.onDidDrop(l)});return()=>{a.dispose()}},[e.onDidDrop]),q.useEffect(()=>{if(!i.current)return()=>{};const a=i.current.onWillDrop(l=>{e.onWillDrop&&e.onWillDrop(l)});return()=>{a.dispose()}},[e.onWillDrop]),q.useEffect(()=>{i.current&&i.current.updateOptions({createComponent:a=>new hm(a.id,e.components[a.name],{addPortal:o})})},[e.components]),q.useEffect(()=>{var a;if(!i.current)return;const l=(a=e.tabComponents)!==null&&a!==void 0?a:{};e.defaultTabComponent&&(l[Ls]=e.defaultTabComponent),i.current.updateOptions({defaultTabComponent:e.defaultTabComponent?Ls:void 0,createTabComponent(u){return new pm(u.id,l[u.name],{addPortal:o})}})},[e.tabComponents,e.defaultTabComponent]),q.useEffect(()=>{i.current&&i.current.updateOptions({createWatermarkComponent:e.watermarkComponent?()=>new fm("watermark",e.watermarkComponent,{addPortal:o}):void 0})},[e.watermarkComponent]),q.useEffect(()=>{i.current&&i.current.updateOptions({createRightHeaderActionComponent:Qi(e.rightHeaderActionsComponent,{addPortal:o})})},[e.rightHeaderActionsComponent]),q.useEffect(()=>{i.current&&i.current.updateOptions({createLeftHeaderActionComponent:Qi(e.leftHeaderActionsComponent,{addPortal:o})})},[e.leftHeaderActionsComponent]),q.useEffect(()=>{i.current&&i.current.updateOptions({createPrefixHeaderActionComponent:Qi(e.prefixHeaderActionsComponent,{addPortal:o})})},[e.prefixHeaderActionsComponent]),q.createElement("div",{style:{height:"100%",width:"100%"},ref:n},r)});KI.displayName="DockviewComponent";class mm extends VI{constructor(t,n,i,r){super(t,n),this.reactComponent=i,this.reactPortalStore=r}getComponent(){var t,n;return new Ui(this.element,this.reactPortalStore,this.reactComponent,{params:(n=(t=this._params)===null||t===void 0?void 0:t.params)!==null&&n!==void 0?n:{},api:this.api,containerApi:new Jw(this._params.accessor)})}}function XI(e){return Ac.reduce((n,i)=>(i in e&&(n[i]=e[i]),n),{})}const QI=q.forwardRef((e,t)=>{const n=q.useRef(null),i=q.useRef(),[r,o]=vl();q.useImperativeHandle(t,()=>n.current,[]);const s=q.useRef({});return q.useEffect(()=>{const a={};Ac.forEach(l=>{const u=l,d=e[u];u in e&&d!==s.current[u]&&(a[u]=d)}),i.current&&i.current.updateOptions(a),s.current=e},Ac.map(a=>e[a])),q.useEffect(()=>{if(!n.current)return()=>{};const a={createComponent:c=>new mm(c.id,c.name,e.components[c.name],{addPortal:o})},l=$I(n.current,Object.assign(Object.assign({},XI(e)),a)),{clientWidth:u,clientHeight:d}=n.current;return l.layout(u,d),e.onReady&&e.onReady({api:l}),i.current=l,()=>{i.current=void 0,l.dispose()}},[]),q.useEffect(()=>{i.current&&i.current.updateOptions({createComponent:a=>new mm(a.id,a.name,e.components[a.name],{addPortal:o})})},[e.components]),q.createElement("div",{style:{height:"100%",width:"100%"},ref:n},r)});QI.displayName="SplitviewComponent";class vm extends oy{constructor(t,n,i,r){super(t,n),this.reactComponent=i,this.reactPortalStore=r}getComponent(){var t,n;return new Ui(this.element,this.reactPortalStore,this.reactComponent,{params:(n=(t=this._params)===null||t===void 0?void 0:t.params)!==null&&n!==void 0?n:{},api:this.api,containerApi:new qw(this._params.accessor)})}}function e2(e){return Nc.reduce((n,i)=>(i in e&&(n[i]=e[i]),n),{})}const t2=q.forwardRef((e,t)=>{const n=q.useRef(null),i=q.useRef(),[r,o]=vl();q.useImperativeHandle(t,()=>n.current,[]);const s=q.useRef({});return q.useEffect(()=>{const a={};Nc.forEach(l=>{const u=l,d=e[u];u in e&&d!==s.current[u]&&(a[u]=d)}),i.current&&i.current.updateOptions(a),s.current=e},Nc.map(a=>e[a])),q.useEffect(()=>{if(!n.current)return()=>{};const a={createComponent:c=>new vm(c.id,c.name,e.components[c.name],{addPortal:o})},l=jI(n.current,Object.assign(Object.assign({},e2(e)),a)),{clientWidth:u,clientHeight:d}=n.current;return l.layout(u,d),e.onReady&&e.onReady({api:l}),i.current=l,()=>{i.current=void 0,l.dispose()}},[]),q.useEffect(()=>{i.current&&i.current.updateOptions({createComponent:a=>new vm(a.id,a.name,e.components[a.name],{addPortal:o})})},[e.components]),q.createElement("div",{style:{height:"100%",width:"100%"},ref:n},r)});t2.displayName="GridviewComponent";class Ms{get element(){return this._element}constructor(t,n,i){this.id=t,this.component=n,this.reactPortalStore=i,this._element=document.createElement("div"),this._element.style.height="100%",this._element.style.width="100%"}init(t){this.part=new Ui(this.element,this.reactPortalStore,this.component,{params:t.params,api:t.api,title:t.title,containerApi:t.containerApi})}toJSON(){return{id:this.id}}update(t){var n;(n=this.part)===null||n===void 0||n.update(t.params)}dispose(){var t;(t=this.part)===null||t===void 0||t.dispose()}}function n2(e){return Rc.reduce((n,i)=>(i in e&&(n[i]=e[i]),n),{})}const i2=q.forwardRef((e,t)=>{const n=q.useRef(null),i=q.useRef(),[r,o]=vl();q.useImperativeHandle(t,()=>n.current,[]);const s=q.useRef({});return q.useEffect(()=>{const a={};Rc.forEach(l=>{const u=l,d=e[u];u in e&&d!==s.current[u]&&(a[u]=d)}),i.current&&i.current.updateOptions(a),s.current=e},Rc.map(a=>e[a])),q.useEffect(()=>{var a;if(!n.current)return()=>{};const l=(a=e.headerComponents)!==null&&a!==void 0?a:{},u={createComponent:p=>new Ms(p.id,e.components[p.name],{addPortal:o}),createHeaderComponent:p=>new Ms(p.id,l[p.name],{addPortal:o})},d=BI(n.current,Object.assign(Object.assign({},n2(e)),u)),{clientWidth:c,clientHeight:h}=n.current;return d.layout(c,h),e.onReady&&e.onReady({api:d}),i.current=d,()=>{i.current=void 0,d.dispose()}},[]),q.useEffect(()=>{i.current&&i.current.updateOptions({createComponent:a=>new Ms(a.id,e.components[a.name],{addPortal:o})})},[e.components]),q.useEffect(()=>{var a;if(!i.current)return;const l=(a=e.headerComponents)!==null&&a!==void 0?a:{};i.current.updateOptions({createHeaderComponent:u=>new Ms(u.id,l[u.name],{addPortal:o})})},[e.headerComponents]),q.useEffect(()=>{if(!i.current)return()=>{};const a=i.current.onDidDrop(l=>{e.onDidDrop&&e.onDidDrop(l)});return()=>{a.dispose()}},[e.onDidDrop]),q.createElement("div",{style:{height:"100%",width:"100%"},ref:n},r)});i2.displayName="PaneviewComponent";const vu=10,gm=(e=0)=>t=>`\x1B[${t+e}m`,bm=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,wm=(e=0)=>(t,n,i)=>`\x1B[${38+e};2;${t};${n};${i}m`,Ae={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Ae.modifier);const r2=Object.keys(Ae.color),o2=Object.keys(Ae.bgColor);[...r2,...o2];function s2(){const e=new Map;for(const[t,n]of Object.entries(Ae)){for(const[i,r]of Object.entries(n))Ae[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[i]=Ae[i],e.set(r[0],r[1]);Object.defineProperty(Ae,t,{value:n,enumerable:!1})}return Object.defineProperty(Ae,"codes",{value:e,enumerable:!1}),Ae.color.close="\x1B[39m",Ae.bgColor.close="\x1B[49m",Ae.color.ansi=gm(),Ae.color.ansi256=bm(),Ae.color.ansi16m=wm(),Ae.bgColor.ansi=gm(vu),Ae.bgColor.ansi256=bm(vu),Ae.bgColor.ansi16m=wm(vu),Object.defineProperties(Ae,{rgbToAnsi256:{value(t,n,i){return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},enumerable:!1},hexToRgb:{value(t){const n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!n)return[0,0,0];let[i]=n;i.length===3&&(i=[...i].map(o=>o+o).join(""));const r=Number.parseInt(i,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:t=>Ae.rgbToAnsi256(...Ae.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,i,r;if(t>=232)n=((t-232)*10+8)/255,i=n,r=n;else{t-=16;const a=t%36;n=Math.floor(t/36)/5,i=Math.floor(a/6)/5,r=a%6/5}const o=Math.max(n,i,r)*2;if(o===0)return 30;let s=30+(Math.round(r)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,n,i)=>Ae.ansi256ToAnsi(Ae.rgbToAnsi256(t,n,i)),enumerable:!1},hexToAnsi:{value:t=>Ae.ansi256ToAnsi(Ae.hexToAnsi256(t)),enumerable:!1}}),Ae}const mn=s2(),ym=(()=>{if(!("navigator"in globalThis))return 0;if(globalThis.navigator.userAgentData){const e=navigator.userAgentData.brands.find(({brand:t})=>t==="Chromium");if(e&&e.version>93)return 3}return/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)?1:0})(),_m=ym!==0&&{level:ym},a2={stdout:_m,stderr:_m};function l2(e,t,n){let i=e.indexOf(t);if(i===-1)return e;const r=t.length;let o=0,s="";do s+=e.slice(o,i)+t+n,o=i+r,i=e.indexOf(t,o);while(i!==-1);return s+=e.slice(o),s}function u2(e,t,n,i){let r=0,o="";do{const s=e[i-1]==="\r";o+=e.slice(r,s?i-1:i)+t+(s?`\r
|
|
2724
|
+
`:`
|
|
2725
|
+
`)+n,r=i+1,i=e.indexOf(`
|
|
2726
|
+
`,r)}while(i!==-1);return o+=e.slice(r),o}const{stdout:xm,stderr:km}=a2,Mc=Symbol("GENERATOR"),Or=Symbol("STYLER"),Yo=Symbol("IS_EMPTY"),Sm=["ansi","ansi","ansi256","ansi16m"],Nr=Object.create(null),c2=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=xm?xm.level:0;e.level=t.level===void 0?n:t.level},d2=e=>{const t=(...n)=>n.join(" ");return c2(t,e),Object.setPrototypeOf(t,as.prototype),t};function as(e){return d2(e)}Object.setPrototypeOf(as.prototype,Function.prototype);for(const[e,t]of Object.entries(mn))Nr[e]={get(){const n=Ra(this,Vc(t.open,t.close,this[Or]),this[Yo]);return Object.defineProperty(this,e,{value:n}),n}};Nr.visible={get(){const e=Ra(this,this[Or],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const Fc=(e,t,n,...i)=>e==="rgb"?t==="ansi16m"?mn[n].ansi16m(...i):t==="ansi256"?mn[n].ansi256(mn.rgbToAnsi256(...i)):mn[n].ansi(mn.rgbToAnsi(...i)):e==="hex"?Fc("rgb",t,n,...mn.hexToRgb(...i)):mn[n][e](...i),h2=["rgb","hex","ansi256"];for(const e of h2){Nr[e]={get(){const{level:n}=this;return function(...i){const r=Vc(Fc(e,Sm[n],"color",...i),mn.color.close,this[Or]);return Ra(this,r,this[Yo])}}};const t="bg"+e[0].toUpperCase()+e.slice(1);Nr[t]={get(){const{level:n}=this;return function(...i){const r=Vc(Fc(e,Sm[n],"bgColor",...i),mn.bgColor.close,this[Or]);return Ra(this,r,this[Yo])}}}}const p2=Object.defineProperties(()=>{},{...Nr,level:{enumerable:!0,get(){return this[Mc].level},set(e){this[Mc].level=e}}}),Vc=(e,t,n)=>{let i,r;return n===void 0?(i=e,r=t):(i=n.openAll+e,r=t+n.closeAll),{open:e,close:t,openAll:i,closeAll:r,parent:n}},Ra=(e,t,n)=>{const i=(...r)=>f2(i,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(i,p2),i[Mc]=e,i[Or]=t,i[Yo]=n,i},f2=(e,t)=>{if(e.level<=0||!t)return e[Yo]?"":t;let n=e[Or];if(n===void 0)return t;const{openAll:i,closeAll:r}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=l2(t,n.close,n.open),n=n.parent;const o=t.indexOf(`
|
|
2727
|
+
`);return o!==-1&&(t=u2(t,r,i,o)),i+t+r};Object.defineProperties(as.prototype,Nr);const k3=as();as({level:km?km.level:0});function I(e,t,n){function i(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,l);const u=s.prototype,d=Object.keys(u);for(let c=0;c<d.length;c++){const h=d[c];h in a||(a[h]=u[h].bind(a))}}const r=(n==null?void 0:n.Parent)??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function s(a){var l;const u=n!=null&&n.Parent?new o:this;i(u,a),(l=u._zod).deferred??(l.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(s,"init",{value:i}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>{var l,u;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(u=(l=a==null?void 0:a._zod)==null?void 0:l.traits)==null?void 0:u.has(e)}}),Object.defineProperty(s,"name",{value:e}),s}class Sr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ly extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const uy={};function ci(e){return uy}function cy(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function Gc(e,t){return typeof t=="bigint"?t.toString():t}function fh(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function mh(e){return e==null}function vh(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function m2(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){const l=i.match(/\d?e-(\d?)/);l!=null&&l[1]&&(r=Number.parseInt(l[1]))}const o=n>r?n:r,s=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return s%a/10**o}const zm=Symbol("evaluating");function be(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==zm)return i===void 0&&(i=zm,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Zi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function bi(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function Cm(e){return JSON.stringify(e)}function v2(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const dy="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function La(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const g2=fh(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Rr(e){if(La(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(La(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function hy(e){return Rr(e)?{...e}:Array.isArray(e)?[...e]:e}const b2=new Set(["string","number","symbol"]);function Lr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wi(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(i._zod.parent=e),i}function Q(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function w2(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const y2={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function _2(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=bi(e._zod.def,{get shape(){const s={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(s[a]=n.shape[a])}return Zi(this,"shape",s),s},checks:[]});return wi(e,o)}function x2(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=bi(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete s[a]}return Zi(this,"shape",s),s},checks:[]});return wi(e,o)}function k2(e,t){if(!Rr(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const o=e._zod.def.shape;for(const s in t)if(Object.getOwnPropertyDescriptor(o,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=bi(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return Zi(this,"shape",o),o}});return wi(e,r)}function S2(e,t){if(!Rr(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=bi(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Zi(this,"shape",i),i}});return wi(e,n)}function z2(e,t){const n=bi(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Zi(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return wi(e,n)}function C2(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const s=bi(t._zod.def,{get shape(){const a=t._zod.def.shape,l={...a};if(n)for(const u in n){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(l[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(const u in a)l[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return Zi(this,"shape",l),l},checks:[]});return wi(t,s)}function D2(e,t,n){const i=bi(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(n)for(const s in n){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(const s in r)o[s]=new e({type:"nonoptional",innerType:r[s]});return Zi(this,"shape",o),o}});return wi(t,i)}function mr(e,t=0){var n;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((n=e.issues[i])==null?void 0:n.continue)!==!0)return!0;return!1}function vr(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Fs(e){return typeof e=="string"?e:e==null?void 0:e.message}function di(e,t,n){var r,o,s,a,l,u;const i={...e,path:e.path??[]};if(!e.message){const d=Fs((s=(o=(r=e.inst)==null?void 0:r._zod.def)==null?void 0:o.error)==null?void 0:s.call(o,e))??Fs((a=t==null?void 0:t.error)==null?void 0:a.call(t,e))??Fs((l=n.customError)==null?void 0:l.call(n,e))??Fs((u=n.localeError)==null?void 0:u.call(n,e))??"Invalid input";i.message=d}return delete i.inst,delete i.continue,t!=null&&t.reportInput||delete i.input,i}function gh(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Jo(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}const py=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Gc,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},fy=I("$ZodError",py),my=I("$ZodError",py,{Parent:Error});function E2(e,t=n=>n.message){const n={},i=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function P2(e,t=n=>n.message){const n={_errors:[]},i=r=>{for(const o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>i({issues:s}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let s=n,a=0;for(;a<o.path.length;){const l=o.path[a];a===o.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(o))):s[l]=s[l]||{_errors:[]},s=s[l],a++}}};return i(e),n}const bh=e=>(t,n,i,r)=>{const o=i?Object.assign(i,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Sr;if(s.issues.length){const a=new((r==null?void 0:r.Err)??e)(s.issues.map(l=>di(l,o,ci())));throw dy(a,r==null?void 0:r.callee),a}return s.value},wh=e=>async(t,n,i,r)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new((r==null?void 0:r.Err)??e)(s.issues.map(l=>di(l,o,ci())));throw dy(a,r==null?void 0:r.callee),a}return s.value},gl=e=>(t,n,i)=>{const r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Sr;return o.issues.length?{success:!1,error:new(e??fy)(o.issues.map(s=>di(s,r,ci())))}:{success:!0,data:o.value}},A2=gl(my),bl=e=>async(t,n,i)=>{const r=i?Object.assign(i,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(s=>di(s,r,ci())))}:{success:!0,data:o.value}},I2=bl(my),T2=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bh(e)(t,n,r)},O2=e=>(t,n,i)=>bh(e)(t,n,i),N2=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return wh(e)(t,n,r)},R2=e=>async(t,n,i)=>wh(e)(t,n,i),L2=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return gl(e)(t,n,r)},M2=e=>(t,n,i)=>gl(e)(t,n,i),F2=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bl(e)(t,n,r)},V2=e=>async(t,n,i)=>bl(e)(t,n,i),G2=/^[cC][^\s-]{8,}$/,$2=/^[0-9a-z]+$/,j2=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,B2=/^[0-9a-vA-V]{20}$/,W2=/^[A-Za-z0-9]{27}$/,H2=/^[a-zA-Z0-9_-]{21}$/,U2=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Z2=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Dm=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Y2=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,J2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function q2(){return new RegExp(J2,"u")}const K2=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,X2=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Q2=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,eT=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tT=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,vy=/^[A-Za-z0-9_-]*$/,nT=/^\+[1-9]\d{6,14}$/,gy="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",iT=new RegExp(`^${gy}$`);function by(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function rT(e){return new RegExp(`^${by(e)}$`)}function oT(e){const t=by({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${gy}T(?:${i})$`)}const sT=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},aT=/^-?\d+$/,wy=/^-?\d+(?:\.\d+)?$/,lT=/^(?:true|false)$/i,uT=/^[^A-Z]*$/,cT=/^[^a-z]*$/,It=I("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),yy={number:"number",bigint:"bigint",object:"date"},_y=I("$ZodCheckLessThan",(e,t)=>{It.init(e,t);const n=yy[typeof t.value];e._zod.onattach.push(i=>{const r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),xy=I("$ZodCheckGreaterThan",(e,t)=>{It.init(e,t);const n=yy[typeof t.value];e._zod.onattach.push(i=>{const r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),dT=I("$ZodCheckMultipleOf",(e,t)=>{It.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):m2(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),hT=I("$ZodCheckNumberFormat",(e,t)=>{var s;It.init(e,t),t.format=t.format||"float64";const n=(s=t.format)==null?void 0:s.includes("int"),i=n?"int":"number",[r,o]=y2[t.format];e._zod.onattach.push(a=>{const l=a._zod.bag;l.format=t.format,l.minimum=r,l.maximum=o,n&&(l.pattern=aT)}),e._zod.check=a=>{const l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}l<r&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),l>o&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),pT=I("$ZodCheckMaxLength",(e,t)=>{var n;It.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!mh(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const r=i.value;if(r.length<=t.maximum)return;const s=gh(r);i.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),fT=I("$ZodCheckMinLength",(e,t)=>{var n;It.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!mh(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const r=i.value;if(r.length>=t.minimum)return;const s=gh(r);i.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),mT=I("$ZodCheckLengthEquals",(e,t)=>{var n;It.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!mh(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=>{const r=i.value,o=r.length;if(o===t.length)return;const s=gh(r),a=o>t.length;i.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),wl=I("$ZodCheckStringFormat",(e,t)=>{var n,i;It.init(e,t),e._zod.onattach.push(r=>{const o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),vT=I("$ZodCheckRegex",(e,t)=>{wl.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),gT=I("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=uT),wl.init(e,t)}),bT=I("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=cT),wl.init(e,t)}),wT=I("$ZodCheckIncludes",(e,t)=>{It.init(e,t);const n=Lr(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),yT=I("$ZodCheckStartsWith",(e,t)=>{It.init(e,t);const n=new RegExp(`^${Lr(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),_T=I("$ZodCheckEndsWith",(e,t)=>{It.init(e,t);const n=new RegExp(`.*${Lr(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),xT=I("$ZodCheckOverwrite",(e,t)=>{It.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class kT{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
|
|
2728
|
+
`).filter(s=>s),r=Math.min(...i.map(s=>s.length-s.trimStart().length)),o=i.map(s=>s.slice(r)).map(s=>" ".repeat(this.indent*2)+s);for(const s of o)this.content.push(s)}compile(){const t=Function,n=this==null?void 0:this.args,r=[...((this==null?void 0:this.content)??[""]).map(o=>` ${o}`)];return new t(...n,r.join(`
|
|
2729
|
+
`))}}const ST={major:4,minor:3,patch:6},Fe=I("$ZodType",(e,t)=>{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ST;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const s of o._zod.onattach)s(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=>{e._zod.run=e._zod.parse});else{const o=(a,l,u)=>{let d=mr(a),c;for(const h of l){if(h._zod.def.when){if(!h._zod.def.when(a))continue}else if(d)continue;const p=a.issues.length,m=h._zod.check(a);if(m instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Sr;if(c||m instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await m,a.issues.length!==p&&(d||(d=mr(a,p)))});else{if(a.issues.length===p)continue;d||(d=mr(a,p))}}return c?c.then(()=>a):a},s=(a,l,u)=>{if(mr(a))return a.aborted=!0,a;const d=o(l,i,u);if(d instanceof Promise){if(u.async===!1)throw new Sr;return d.then(c=>e._zod.parse(c,u))}return e._zod.parse(d,u)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){const d=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return d instanceof Promise?d.then(c=>s(c,a,l)):s(d,a,l)}const u=e._zod.parse(a,l);if(u instanceof Promise){if(l.async===!1)throw new Sr;return u.then(d=>o(d,i,l))}return o(u,i,l)}}be(e,"~standard",()=>({validate:o=>{var s;try{const a=A2(e,o);return a.success?{value:a.data}:{issues:(s=a.error)==null?void 0:s.issues}}catch{return I2(e,o).then(l=>{var u;return l.success?{value:l.data}:{issues:(u=l.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),yh=I("$ZodString",(e,t)=>{var n;Fe.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??sT(e._zod.bag),e._zod.parse=(i,r)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),Te=I("$ZodStringFormat",(e,t)=>{wl.init(e,t),yh.init(e,t)}),zT=I("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Z2),Te.init(e,t)}),CT=I("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Dm(i))}else t.pattern??(t.pattern=Dm());Te.init(e,t)}),DT=I("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Y2),Te.init(e,t)}),ET=I("$ZodURL",(e,t)=>{Te.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),PT=I("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=q2()),Te.init(e,t)}),AT=I("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=H2),Te.init(e,t)}),IT=I("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=G2),Te.init(e,t)}),TT=I("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=$2),Te.init(e,t)}),OT=I("$ZodULID",(e,t)=>{t.pattern??(t.pattern=j2),Te.init(e,t)}),NT=I("$ZodXID",(e,t)=>{t.pattern??(t.pattern=B2),Te.init(e,t)}),RT=I("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=W2),Te.init(e,t)}),LT=I("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=oT(t)),Te.init(e,t)}),MT=I("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=iT),Te.init(e,t)}),FT=I("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=rT(t)),Te.init(e,t)}),VT=I("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=U2),Te.init(e,t)}),GT=I("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=K2),Te.init(e,t),e._zod.bag.format="ipv4"}),$T=I("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=X2),Te.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),jT=I("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Q2),Te.init(e,t)}),BT=I("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=eT),Te.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(i.length!==2)throw new Error;const[r,o]=i;if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ky(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const WT=I("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=tT),Te.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ky(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function HT(e){if(!vy.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ky(n)}const UT=I("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=vy),Te.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{HT(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),ZT=I("$ZodE164",(e,t)=>{t.pattern??(t.pattern=nT),Te.init(e,t)});function YT(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const r=JSON.parse(atob(i));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const JT=I("$ZodJWT",(e,t)=>{Te.init(e,t),e._zod.check=n=>{YT(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Sy=I("$ZodNumber",(e,t)=>{Fe.init(e,t),e._zod.pattern=e._zod.bag.pattern??wy,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),qT=I("$ZodNumberFormat",(e,t)=>{hT.init(e,t),Sy.init(e,t)}),KT=I("$ZodBoolean",(e,t)=>{Fe.init(e,t),e._zod.pattern=lT,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),XT=I("$ZodUnknown",(e,t)=>{Fe.init(e,t),e._zod.parse=n=>n}),QT=I("$ZodNever",(e,t)=>{Fe.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Em(e,t,n){e.issues.length&&t.issues.push(...vr(n,e.issues)),t.value[n]=e.value}const eO=I("$ZodArray",(e,t)=>{Fe.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const o=[];for(let s=0;s<r.length;s++){const a=r[s],l=t.element._zod.run({value:a,issues:[]},i);l instanceof Promise?o.push(l.then(u=>Em(u,n,s))):Em(l,n,s)}return o.length?Promise.all(o).then(()=>n):n}});function Ma(e,t,n,i,r){if(e.issues.length){if(r&&!(n in i))return;t.issues.push(...vr(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function zy(e){var i,r,o,s;const t=Object.keys(e.shape);for(const a of t)if(!((s=(o=(r=(i=e.shape)==null?void 0:i[a])==null?void 0:r._zod)==null?void 0:o.traits)!=null&&s.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const n=w2(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Cy(e,t,n,i,r,o){const s=[],a=r.keySet,l=r.catchall._zod,u=l.def.type,d=l.optout==="optional";for(const c in t){if(a.has(c))continue;if(u==="never"){s.push(c);continue}const h=l.run({value:t[c],issues:[]},i);h instanceof Promise?e.push(h.then(p=>Ma(p,n,c,t,d))):Ma(h,n,c,t,d)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const tO=I("$ZodObject",(e,t)=>{Fe.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}const i=fh(()=>zy(t));be(e._zod,"propValues",()=>{const a=t.shape,l={};for(const u in a){const d=a[u]._zod;if(d.values){l[u]??(l[u]=new Set);for(const c of d.values)l[u].add(c)}}return l});const r=La,o=t.catchall;let s;e._zod.parse=(a,l)=>{s??(s=i.value);const u=a.value;if(!r(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};const d=[],c=s.shape;for(const h of s.keys){const p=c[h],m=p._zod.optout==="optional",v=p._zod.run({value:u[h],issues:[]},l);v instanceof Promise?d.push(v.then(y=>Ma(y,a,h,u,m))):Ma(v,a,h,u,m)}return o?Cy(d,u,a,l,i.value,e):d.length?Promise.all(d).then(()=>a):a}}),nO=I("$ZodObjectJIT",(e,t)=>{tO.init(e,t);const n=e._zod.parse,i=fh(()=>zy(t)),r=h=>{var b;const p=new kT(["shape","payload","ctx"]),m=i.value,v=k=>{const D=Cm(k);return`shape[${D}]._zod.run({ value: input[${D}], issues: [] }, ctx)`};p.write("const input = payload.value;");const y=Object.create(null);let f=0;for(const k of m.keys)y[k]=`key_${f++}`;p.write("const newResult = {};");for(const k of m.keys){const D=y[k],_=Cm(k),P=h[k],C=((b=P==null?void 0:P._zod)==null?void 0:b.optout)==="optional";p.write(`const ${D} = ${v(k)};`),C?p.write(`
|
|
2730
|
+
if (${D}.issues.length) {
|
|
2731
|
+
if (${_} in input) {
|
|
2732
|
+
payload.issues = payload.issues.concat(${D}.issues.map(iss => ({
|
|
2733
|
+
...iss,
|
|
2734
|
+
path: iss.path ? [${_}, ...iss.path] : [${_}]
|
|
2735
|
+
})));
|
|
2736
|
+
}
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
if (${D}.value === undefined) {
|
|
2740
|
+
if (${_} in input) {
|
|
2741
|
+
newResult[${_}] = undefined;
|
|
2742
|
+
}
|
|
2743
|
+
} else {
|
|
2744
|
+
newResult[${_}] = ${D}.value;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
`):p.write(`
|
|
2748
|
+
if (${D}.issues.length) {
|
|
2749
|
+
payload.issues = payload.issues.concat(${D}.issues.map(iss => ({
|
|
2750
|
+
...iss,
|
|
2751
|
+
path: iss.path ? [${_}, ...iss.path] : [${_}]
|
|
2752
|
+
})));
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
if (${D}.value === undefined) {
|
|
2756
|
+
if (${_} in input) {
|
|
2757
|
+
newResult[${_}] = undefined;
|
|
2758
|
+
}
|
|
2759
|
+
} else {
|
|
2760
|
+
newResult[${_}] = ${D}.value;
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
`)}p.write("payload.value = newResult;"),p.write("return payload;");const g=p.compile();return(k,D)=>g(h,k,D)};let o;const s=La,a=!uy.jitless,u=a&&g2.value,d=t.catchall;let c;e._zod.parse=(h,p)=>{c??(c=i.value);const m=h.value;return s(m)?a&&u&&(p==null?void 0:p.async)===!1&&p.jitless!==!0?(o||(o=r(t.shape)),h=o(h,p),d?Cy([],m,h,p,c,e):h):n(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),h)}});function Pm(e,t,n,i){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const r=e.filter(o=>!mr(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(s=>di(s,i,ci())))}),t)}const iO=I("$ZodUnion",(e,t)=>{Fe.init(e,t),be(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),be(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),be(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),be(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>vh(o.source)).join("|")})$`)}});const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let s=!1;const a=[];for(const l of t.options){const u=l._zod.run({value:r.value,issues:[]},o);if(u instanceof Promise)a.push(u),s=!0;else{if(u.issues.length===0)return u;a.push(u)}}return s?Promise.all(a).then(l=>Pm(l,r,e,o)):Pm(a,r,e,o)}}),rO=I("$ZodIntersection",(e,t)=>{Fe.init(e,t),e._zod.parse=(n,i)=>{const r=n.value,o=t.left._zod.run({value:r,issues:[]},i),s=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([l,u])=>Am(n,l,u)):Am(n,o,s)}});function $c(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Rr(e)&&Rr(t)){const n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(const o of i){const s=$c(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};r[o]=s.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i<e.length;i++){const r=e[i],o=t[i],s=$c(r,o);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Am(e,t,n){const i=new Map;let r;for(const a of t.issues)if(a.code==="unrecognized_keys"){r??(r=a);for(const l of a.keys)i.has(l)||i.set(l,{}),i.get(l).l=!0}else e.issues.push(a);for(const a of n.issues)if(a.code==="unrecognized_keys")for(const l of a.keys)i.has(l)||i.set(l,{}),i.get(l).r=!0;else e.issues.push(a);const o=[...i].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(o.length&&r&&e.issues.push({...r,keys:o}),mr(e))return e;const s=$c(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const oO=I("$ZodRecord",(e,t)=>{Fe.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!Rr(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const o=[],s=t.keyType._zod.values;if(s){n.value={};const a=new Set;for(const u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);const d=t.valueType._zod.run({value:r[u],issues:[]},i);d instanceof Promise?o.push(d.then(c=>{c.issues.length&&n.issues.push(...vr(u,c.issues)),n.value[u]=c.value})):(d.issues.length&&n.issues.push(...vr(u,d.issues)),n.value[u]=d.value)}let l;for(const u in r)a.has(u)||(l=l??[],l.push(u));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:l})}else{n.value={};for(const a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let l=t.keyType._zod.run({value:a,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&wy.test(a)&&l.issues.length){const c=t.keyType._zod.run({value:Number(a),issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");c.issues.length===0&&(l=c)}if(l.issues.length){t.mode==="loose"?n.value[a]=r[a]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(c=>di(c,i,ci())),input:a,path:[a],inst:e});continue}const d=t.valueType._zod.run({value:r[a],issues:[]},i);d instanceof Promise?o.push(d.then(c=>{c.issues.length&&n.issues.push(...vr(a,c.issues)),n.value[l.value]=c.value})):(d.issues.length&&n.issues.push(...vr(a,d.issues)),n.value[l.value]=d.value)}}return o.length?Promise.all(o).then(()=>n):n}}),sO=I("$ZodEnum",(e,t)=>{Fe.init(e,t);const n=cy(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>b2.has(typeof r)).map(r=>typeof r=="string"?Lr(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{const s=r.value;return i.has(s)||r.issues.push({code:"invalid_value",values:n,input:s,inst:e}),r}}),aO=I("$ZodLiteral",(e,t)=>{if(Fe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?Lr(i):i?Lr(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,r)=>{const o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),lO=I("$ZodTransform",(e,t)=>{Fe.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new ly(e.constructor.name);const r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(s=>(n.value=s,n));if(r instanceof Promise)throw new Sr;return n.value=r,n}});function Im(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Dy=I("$ZodOptional",(e,t)=>{Fe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),be(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${vh(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Im(o,n.value)):Im(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),uO=I("$ZodExactOptional",(e,t)=>{Dy.init(e,t),be(e._zod,"values",()=>t.innerType._zod.values),be(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),cO=I("$ZodNullable",(e,t)=>{Fe.init(e,t),be(e._zod,"optin",()=>t.innerType._zod.optin),be(e._zod,"optout",()=>t.innerType._zod.optout),be(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${vh(n.source)}|null)$`):void 0}),be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),dO=I("$ZodDefault",(e,t)=>{Fe.init(e,t),e._zod.optin="optional",be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Tm(o,t)):Tm(r,t)}});function Tm(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const hO=I("$ZodPrefault",(e,t)=>{Fe.init(e,t),e._zod.optin="optional",be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),pO=I("$ZodNonOptional",(e,t)=>{Fe.init(e,t),be(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Om(o,e)):Om(r,e)}});function Om(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const fO=I("$ZodCatch",(e,t)=>{Fe.init(e,t),be(e._zod,"optin",()=>t.innerType._zod.optin),be(e._zod,"optout",()=>t.innerType._zod.optout),be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>di(s,i,ci()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>di(o,i,ci()))},input:n.value}),n.issues=[]),n)}}),mO=I("$ZodPipe",(e,t)=>{Fe.init(e,t),be(e._zod,"values",()=>t.in._zod.values),be(e._zod,"optin",()=>t.in._zod.optin),be(e._zod,"optout",()=>t.out._zod.optout),be(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const o=t.out._zod.run(n,i);return o instanceof Promise?o.then(s=>Vs(s,t.in,i)):Vs(o,t.in,i)}const r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>Vs(o,t.out,i)):Vs(r,t.out,i)}});function Vs(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const vO=I("$ZodReadonly",(e,t)=>{Fe.init(e,t),be(e._zod,"propValues",()=>t.innerType._zod.propValues),be(e._zod,"values",()=>t.innerType._zod.values),be(e._zod,"optin",()=>{var n,i;return(i=(n=t.innerType)==null?void 0:n._zod)==null?void 0:i.optin}),be(e._zod,"optout",()=>{var n,i;return(i=(n=t.innerType)==null?void 0:n._zod)==null?void 0:i.optout}),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(Nm):Nm(r)}});function Nm(e){return e.value=Object.freeze(e.value),e}const gO=I("$ZodCustom",(e,t)=>{It.init(e,t),Fe.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{const i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>Rm(o,n,i,e));Rm(r,n,i,e)}});function Rm(e,t,n,i){if(!e){const r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(Jo(r))}}var Lm;class bO{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};delete i.id;const r={...i,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function wO(){return new bO}(Lm=globalThis).__zod_globalRegistry??(Lm.__zod_globalRegistry=wO());const co=globalThis.__zod_globalRegistry;function yO(e,t){return new e({type:"string",...Q(t)})}function _O(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Q(t)})}function Mm(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Q(t)})}function xO(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Q(t)})}function kO(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Q(t)})}function SO(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Q(t)})}function zO(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Q(t)})}function CO(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Q(t)})}function DO(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Q(t)})}function EO(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Q(t)})}function PO(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Q(t)})}function AO(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Q(t)})}function IO(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Q(t)})}function TO(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Q(t)})}function OO(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Q(t)})}function NO(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Q(t)})}function RO(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Q(t)})}function LO(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Q(t)})}function MO(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Q(t)})}function FO(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Q(t)})}function VO(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Q(t)})}function GO(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Q(t)})}function $O(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Q(t)})}function jO(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Q(t)})}function BO(e,t){return new e({type:"string",format:"date",check:"string_format",...Q(t)})}function WO(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Q(t)})}function HO(e,t){return new e({type:"string",format:"duration",check:"string_format",...Q(t)})}function UO(e,t){return new e({type:"number",checks:[],...Q(t)})}function ZO(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Q(t)})}function YO(e,t){return new e({type:"boolean",...Q(t)})}function JO(e){return new e({type:"unknown"})}function qO(e,t){return new e({type:"never",...Q(t)})}function Fm(e,t){return new _y({check:"less_than",...Q(t),value:e,inclusive:!1})}function gu(e,t){return new _y({check:"less_than",...Q(t),value:e,inclusive:!0})}function Vm(e,t){return new xy({check:"greater_than",...Q(t),value:e,inclusive:!1})}function bu(e,t){return new xy({check:"greater_than",...Q(t),value:e,inclusive:!0})}function Gm(e,t){return new dT({check:"multiple_of",...Q(t),value:e})}function Ey(e,t){return new pT({check:"max_length",...Q(t),maximum:e})}function Fa(e,t){return new fT({check:"min_length",...Q(t),minimum:e})}function Py(e,t){return new mT({check:"length_equals",...Q(t),length:e})}function KO(e,t){return new vT({check:"string_format",format:"regex",...Q(t),pattern:e})}function XO(e){return new gT({check:"string_format",format:"lowercase",...Q(e)})}function QO(e){return new bT({check:"string_format",format:"uppercase",...Q(e)})}function eN(e,t){return new wT({check:"string_format",format:"includes",...Q(t),includes:e})}function tN(e,t){return new yT({check:"string_format",format:"starts_with",...Q(t),prefix:e})}function nN(e,t){return new _T({check:"string_format",format:"ends_with",...Q(t),suffix:e})}function Br(e){return new xT({check:"overwrite",tx:e})}function iN(e){return Br(t=>t.normalize(e))}function rN(){return Br(e=>e.trim())}function oN(){return Br(e=>e.toLowerCase())}function sN(){return Br(e=>e.toUpperCase())}function aN(){return Br(e=>v2(e))}function lN(e,t,n){return new e({type:"array",element:t,...Q(n)})}function uN(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Q(n)})}function cN(e){const t=dN(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(Jo(i,n.value,t._zod.def));else{const r=i;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(Jo(r))}},e(n.value,n)));return t}function dN(e,t){const n=new It({check:"custom",...Q(t)});return n._zod.check=e,n}function Ay(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??co,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function qe(e,t,n={path:[],schemaPath:[]}){var d,c;var i;const r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s);const a=(c=(d=e._zod).toJSONSchema)==null?void 0:c.call(d);if(a)s.schema=a;else{const h={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,h);else{const m=s.schema,v=t.processors[r.type];if(!v)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);v(e,t,m,h)}const p=e._zod.parent;p&&(s.ref||(s.ref=p),qe(p,t,h),t.seen.get(p).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(s.schema,l),t.io==="input"&>(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&s.schema._prefault&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Iy(e,t){var s,a,l,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const d of e.seen.entries()){const c=(s=e.metadataRegistry.get(d[0]))==null?void 0:s.id;if(c){const h=i.get(c);if(h&&h!==d[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(c,d[0])}}const r=d=>{var v;const c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const y=(v=e.external.registry.get(d[0]))==null?void 0:v.id,f=e.external.uri??(b=>b);if(y)return{ref:f(y)};const g=d[1].defId??d[1].schema.id??`schema${e.counter++}`;return d[1].defId=g,{defId:g,ref:`${f("__shared")}#/${c}/${g}`}}if(d[1]===n)return{ref:"#"};const p=`#/${c}/`,m=d[1].schema.id??`__schema${e.counter++}`;return{defId:m,ref:p+m}},o=d=>{if(d[1].schema.$ref)return;const c=d[1],{ref:h,defId:p}=r(d);c.def={...c.schema},p&&(c.defId=p);const m=c.schema;for(const v in m)delete m[v];m.$ref=h};if(e.cycles==="throw")for(const d of e.seen.entries()){const c=d[1];if(c.cycle)throw new Error(`Cycle detected: #/${(a=c.cycle)==null?void 0:a.join("/")}/<root>
|
|
2764
|
+
|
|
2765
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const d of e.seen.entries()){const c=d[1];if(t===d[0]){o(d);continue}if(e.external){const p=(l=e.external.registry.get(d[0]))==null?void 0:l.id;if(t!==d[0]&&p){o(d);continue}}if((u=e.metadataRegistry.get(d[0]))==null?void 0:u.id){o(d);continue}if(c.cycle){o(d);continue}if(c.count>1&&e.reused==="ref"){o(d);continue}}}function Ty(e,t){var s,a,l;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=u=>{const d=e.seen.get(u);if(d.ref===null)return;const c=d.def??d.schema,h={...c},p=d.ref;if(d.ref=null,p){i(p);const v=e.seen.get(p),y=v.schema;if(y.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(y)):Object.assign(c,y),Object.assign(c,h),u._zod.parent===p)for(const g in c)g==="$ref"||g==="allOf"||g in h||delete c[g];if(y.$ref&&v.def)for(const g in c)g==="$ref"||g==="allOf"||g in v.def&&JSON.stringify(c[g])===JSON.stringify(v.def[g])&&delete c[g]}const m=u._zod.parent;if(m&&m!==p){i(m);const v=e.seen.get(m);if(v!=null&&v.schema.$ref&&(c.$ref=v.schema.$ref,v.def))for(const y in c)y==="$ref"||y==="allOf"||y in v.def&&JSON.stringify(c[y])===JSON.stringify(v.def[y])&&delete c[y]}e.override({zodSchema:u,jsonSchema:c,path:d.path??[]})};for(const u of[...e.seen.entries()].reverse())i(u[0]);const r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,(s=e.external)!=null&&s.uri){const u=(a=e.external.registry.get(t))==null?void 0:a.id;if(!u)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(u)}Object.assign(r,n.def??n.schema);const o=((l=e.external)==null?void 0:l.defs)??{};for(const u of e.seen.entries()){const d=u[1];d.def&&d.defId&&(o[d.defId]=d.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{const u=JSON.parse(JSON.stringify(r));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:Va(t,"input",e.processors),output:Va(t,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function gt(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return gt(i.element,n);if(i.type==="set")return gt(i.valueType,n);if(i.type==="lazy")return gt(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return gt(i.innerType,n);if(i.type==="intersection")return gt(i.left,n)||gt(i.right,n);if(i.type==="record"||i.type==="map")return gt(i.keyType,n)||gt(i.valueType,n);if(i.type==="pipe")return gt(i.in,n)||gt(i.out,n);if(i.type==="object"){for(const r in i.shape)if(gt(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(const r of i.options)if(gt(r,n))return!0;return!1}if(i.type==="tuple"){for(const r of i.items)if(gt(r,n))return!0;return!!(i.rest&>(i.rest,n))}return!1}const hN=(e,t={})=>n=>{const i=Ay({...n,processors:t});return qe(e,i),Iy(i,e),Ty(i,e)},Va=(e,t,n={})=>i=>{const{libraryOptions:r,target:o}=i??{},s=Ay({...r??{},target:o,io:t,processors:n});return qe(e,s),Iy(s,e),Ty(s,e)},pN={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},fN=(e,t,n,i)=>{const r=n;r.type="string";const{minimum:o,maximum:s,format:a,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof s=="number"&&(r.maxLength=s),a&&(r.format=pN[a]??a,r.format===""&&delete r.format,a==="time"&&delete r.format),u&&(r.contentEncoding=u),l&&l.size>0){const d=[...l];d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(c=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:c.source}))])}},mN=(e,t,n,i)=>{const r=n,{minimum:o,maximum:s,format:a,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof a=="string"&&a.includes("int")?r.type="integer":r.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=d,r.exclusiveMinimum=!0):r.exclusiveMinimum=d),typeof o=="number"&&(r.minimum=o,typeof d=="number"&&t.target!=="draft-04"&&(d>=o?delete r.minimum:delete r.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u),typeof s=="number"&&(r.maximum=s,typeof u=="number"&&t.target!=="draft-04"&&(u<=s?delete r.maximum:delete r.exclusiveMaximum)),typeof l=="number"&&(r.multipleOf=l)},vN=(e,t,n,i)=>{n.type="boolean"},gN=(e,t,n,i)=>{n.not={}},bN=(e,t,n,i)=>{},wN=(e,t,n,i)=>{const r=e._zod.def,o=cy(r.entries);o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),n.enum=o},yN=(e,t,n,i)=>{const r=e._zod.def,o=[];for(const s of r.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){const s=o[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),o.every(s=>typeof s=="boolean")&&(n.type="boolean"),o.every(s=>s===null)&&(n.type="null"),n.enum=o},_N=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},xN=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},kN=(e,t,n,i)=>{const r=n,o=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(r.minItems=s),typeof a=="number"&&(r.maxItems=a),r.type="array",r.items=qe(o.element,t,{...i,path:[...i.path,"items"]})},SN=(e,t,n,i)=>{var u;const r=n,o=e._zod.def;r.type="object",r.properties={};const s=o.shape;for(const d in s)r.properties[d]=qe(s[d],t,{...i,path:[...i.path,"properties",d]});const a=new Set(Object.keys(s)),l=new Set([...a].filter(d=>{const c=o.shape[d]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(r.required=Array.from(l)),((u=o.catchall)==null?void 0:u._zod.def.type)==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=qe(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},zN=(e,t,n,i)=>{const r=e._zod.def,o=r.inclusive===!1,s=r.options.map((a,l)=>qe(a,t,{...i,path:[...i.path,o?"oneOf":"anyOf",l]}));o?n.oneOf=s:n.anyOf=s},CN=(e,t,n,i)=>{const r=e._zod.def,o=qe(r.left,t,{...i,path:[...i.path,"allOf",0]}),s=qe(r.right,t,{...i,path:[...i.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];n.allOf=l},DN=(e,t,n,i)=>{const r=n,o=e._zod.def;r.type="object";const s=o.keyType,a=s._zod.bag,l=a==null?void 0:a.patterns;if(o.mode==="loose"&&l&&l.size>0){const d=qe(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(const c of l)r.patternProperties[c.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=qe(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=qe(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});const u=s._zod.values;if(u){const d=[...u].filter(c=>typeof c=="string"||typeof c=="number");d.length>0&&(r.required=d)}},EN=(e,t,n,i)=>{const r=e._zod.def,o=qe(r.innerType,t,i),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},PN=(e,t,n,i)=>{const r=e._zod.def;qe(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType},AN=(e,t,n,i)=>{const r=e._zod.def;qe(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},IN=(e,t,n,i)=>{const r=e._zod.def;qe(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},TN=(e,t,n,i)=>{const r=e._zod.def;qe(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType;let s;try{s=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},ON=(e,t,n,i)=>{const r=e._zod.def,o=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;qe(o,t,i);const s=t.seen.get(e);s.ref=o},NN=(e,t,n,i)=>{const r=e._zod.def;qe(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},Oy=(e,t,n,i)=>{const r=e._zod.def;qe(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType},RN=I("ZodISODateTime",(e,t)=>{LT.init(e,t),Ge.init(e,t)});function LN(e){return jO(RN,e)}const MN=I("ZodISODate",(e,t)=>{MT.init(e,t),Ge.init(e,t)});function FN(e){return BO(MN,e)}const VN=I("ZodISOTime",(e,t)=>{FT.init(e,t),Ge.init(e,t)});function GN(e){return WO(VN,e)}const $N=I("ZodISODuration",(e,t)=>{VT.init(e,t),Ge.init(e,t)});function jN(e){return HO($N,e)}const BN=(e,t)=>{fy.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>P2(e,n)},flatten:{value:n=>E2(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Gc,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Gc,2)}},isEmpty:{get(){return e.issues.length===0}}})},qt=I("ZodError",BN,{Parent:Error}),WN=bh(qt),HN=wh(qt),UN=gl(qt),ZN=bl(qt),YN=T2(qt),JN=O2(qt),qN=N2(qt),KN=R2(qt),XN=L2(qt),QN=M2(qt),eR=F2(qt),tR=V2(qt),Ve=I("ZodType",(e,t)=>(Fe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Va(e,"input"),output:Va(e,"output")}}),e.toJSONSchema=hN(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(bi(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(n,i)=>wi(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>WN(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>UN(e,n,i),e.parseAsync=async(n,i)=>HN(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>ZN(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>YN(e,n,i),e.decode=(n,i)=>JN(e,n,i),e.encodeAsync=async(n,i)=>qN(e,n,i),e.decodeAsync=async(n,i)=>KN(e,n,i),e.safeEncode=(n,i)=>XN(e,n,i),e.safeDecode=(n,i)=>QN(e,n,i),e.safeEncodeAsync=async(n,i)=>eR(e,n,i),e.safeDecodeAsync=async(n,i)=>tR(e,n,i),e.refine=(n,i)=>e.check(ZR(n,i)),e.superRefine=n=>e.check(YR(n)),e.overwrite=n=>e.check(Br(n)),e.optional=()=>Bm(e),e.exactOptional=()=>NR(e),e.nullable=()=>Wm(e),e.nullish=()=>Bm(Wm(e)),e.nonoptional=n=>GR(e,n),e.array=()=>fe(e),e.or=n=>ye([e,n]),e.and=n=>_h(e,n),e.transform=n=>Hm(e,TR(n)),e.default=n=>MR(e,n),e.prefault=n=>VR(e,n),e.catch=n=>jR(e,n),e.pipe=n=>Hm(e,n),e.readonly=()=>HR(e),e.describe=n=>{const i=e.clone();return co.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){var n;return(n=co.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return co.get(e);const i=e.clone();return co.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Ny=I("_ZodString",(e,t)=>{yh.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(i,r,o)=>fN(e,i,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(KO(...i)),e.includes=(...i)=>e.check(eN(...i)),e.startsWith=(...i)=>e.check(tN(...i)),e.endsWith=(...i)=>e.check(nN(...i)),e.min=(...i)=>e.check(Fa(...i)),e.max=(...i)=>e.check(Ey(...i)),e.length=(...i)=>e.check(Py(...i)),e.nonempty=(...i)=>e.check(Fa(1,...i)),e.lowercase=i=>e.check(XO(i)),e.uppercase=i=>e.check(QO(i)),e.trim=()=>e.check(rN()),e.normalize=(...i)=>e.check(iN(...i)),e.toLowerCase=()=>e.check(oN()),e.toUpperCase=()=>e.check(sN()),e.slugify=()=>e.check(aN())}),nR=I("ZodString",(e,t)=>{yh.init(e,t),Ny.init(e,t),e.email=n=>e.check(_O(iR,n)),e.url=n=>e.check(CO(rR,n)),e.jwt=n=>e.check($O(wR,n)),e.emoji=n=>e.check(DO(oR,n)),e.guid=n=>e.check(Mm($m,n)),e.uuid=n=>e.check(xO(Gs,n)),e.uuidv4=n=>e.check(kO(Gs,n)),e.uuidv6=n=>e.check(SO(Gs,n)),e.uuidv7=n=>e.check(zO(Gs,n)),e.nanoid=n=>e.check(EO(sR,n)),e.guid=n=>e.check(Mm($m,n)),e.cuid=n=>e.check(PO(aR,n)),e.cuid2=n=>e.check(AO(lR,n)),e.ulid=n=>e.check(IO(uR,n)),e.base64=n=>e.check(FO(vR,n)),e.base64url=n=>e.check(VO(gR,n)),e.xid=n=>e.check(TO(cR,n)),e.ksuid=n=>e.check(OO(dR,n)),e.ipv4=n=>e.check(NO(hR,n)),e.ipv6=n=>e.check(RO(pR,n)),e.cidrv4=n=>e.check(LO(fR,n)),e.cidrv6=n=>e.check(MO(mR,n)),e.e164=n=>e.check(GO(bR,n)),e.datetime=n=>e.check(LN(n)),e.date=n=>e.check(FN(n)),e.time=n=>e.check(GN(n)),e.duration=n=>e.check(jN(n))});function x(e){return yO(nR,e)}const Ge=I("ZodStringFormat",(e,t)=>{Te.init(e,t),Ny.init(e,t)}),iR=I("ZodEmail",(e,t)=>{DT.init(e,t),Ge.init(e,t)}),$m=I("ZodGUID",(e,t)=>{zT.init(e,t),Ge.init(e,t)}),Gs=I("ZodUUID",(e,t)=>{CT.init(e,t),Ge.init(e,t)}),rR=I("ZodURL",(e,t)=>{ET.init(e,t),Ge.init(e,t)}),oR=I("ZodEmoji",(e,t)=>{PT.init(e,t),Ge.init(e,t)}),sR=I("ZodNanoID",(e,t)=>{AT.init(e,t),Ge.init(e,t)}),aR=I("ZodCUID",(e,t)=>{IT.init(e,t),Ge.init(e,t)}),lR=I("ZodCUID2",(e,t)=>{TT.init(e,t),Ge.init(e,t)}),uR=I("ZodULID",(e,t)=>{OT.init(e,t),Ge.init(e,t)}),cR=I("ZodXID",(e,t)=>{NT.init(e,t),Ge.init(e,t)}),dR=I("ZodKSUID",(e,t)=>{RT.init(e,t),Ge.init(e,t)}),hR=I("ZodIPv4",(e,t)=>{GT.init(e,t),Ge.init(e,t)}),pR=I("ZodIPv6",(e,t)=>{$T.init(e,t),Ge.init(e,t)}),fR=I("ZodCIDRv4",(e,t)=>{jT.init(e,t),Ge.init(e,t)}),mR=I("ZodCIDRv6",(e,t)=>{BT.init(e,t),Ge.init(e,t)}),vR=I("ZodBase64",(e,t)=>{WT.init(e,t),Ge.init(e,t)}),gR=I("ZodBase64URL",(e,t)=>{UT.init(e,t),Ge.init(e,t)}),bR=I("ZodE164",(e,t)=>{ZT.init(e,t),Ge.init(e,t)}),wR=I("ZodJWT",(e,t)=>{JT.init(e,t),Ge.init(e,t)}),Ry=I("ZodNumber",(e,t)=>{Sy.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(i,r,o)=>mN(e,i,r),e.gt=(i,r)=>e.check(Vm(i,r)),e.gte=(i,r)=>e.check(bu(i,r)),e.min=(i,r)=>e.check(bu(i,r)),e.lt=(i,r)=>e.check(Fm(i,r)),e.lte=(i,r)=>e.check(gu(i,r)),e.max=(i,r)=>e.check(gu(i,r)),e.int=i=>e.check(jm(i)),e.safe=i=>e.check(jm(i)),e.positive=i=>e.check(Vm(0,i)),e.nonnegative=i=>e.check(bu(0,i)),e.negative=i=>e.check(Fm(0,i)),e.nonpositive=i=>e.check(gu(0,i)),e.multipleOf=(i,r)=>e.check(Gm(i,r)),e.step=(i,r)=>e.check(Gm(i,r)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Ue(e){return UO(Ry,e)}const yR=I("ZodNumberFormat",(e,t)=>{qT.init(e,t),Ry.init(e,t)});function jm(e){return ZO(yR,e)}const _R=I("ZodBoolean",(e,t)=>{KT.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vN(e,n,i)});function _t(e){return YO(_R,e)}const xR=I("ZodUnknown",(e,t)=>{XT.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>bN()});function N(){return JO(xR)}const kR=I("ZodNever",(e,t)=>{QT.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gN(e,n,i)});function SR(e){return qO(kR,e)}const zR=I("ZodArray",(e,t)=>{eO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>kN(e,n,i,r),e.element=t.element,e.min=(n,i)=>e.check(Fa(n,i)),e.nonempty=n=>e.check(Fa(1,n)),e.max=(n,i)=>e.check(Ey(n,i)),e.length=(n,i)=>e.check(Py(n,i)),e.unwrap=()=>e.element});function fe(e,t){return lN(zR,e,t)}const CR=I("ZodObject",(e,t)=>{nO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>SN(e,n,i,r),be(e,"shape",()=>t.shape),e.keyof=()=>Ly(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:N()}),e.loose=()=>e.clone({...e._zod.def,catchall:N()}),e.strict=()=>e.clone({...e._zod.def,catchall:SR()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>k2(e,n),e.safeExtend=n=>S2(e,n),e.merge=n=>z2(e,n),e.pick=n=>_2(e,n),e.omit=n=>x2(e,n),e.partial=(...n)=>C2(My,e,n[0]),e.required=(...n)=>D2(Fy,e,n[0])});function E(e,t){const n={type:"object",shape:e??{},...Q(t)};return new CR(n)}const DR=I("ZodUnion",(e,t)=>{iO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zN(e,n,i,r),e.options=t.options});function ye(e,t){return new DR({type:"union",options:e,...Q(t)})}const ER=I("ZodIntersection",(e,t)=>{rO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>CN(e,n,i,r)});function _h(e,t){return new ER({type:"intersection",left:e,right:t})}const PR=I("ZodRecord",(e,t)=>{oO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>DN(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});function R(e,t,n){return new PR({type:"record",keyType:e,valueType:t,...Q(n)})}const jc=I("ZodEnum",(e,t)=>{sO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(i,r,o)=>wN(e,i,r),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{const o={};for(const s of i)if(n.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new jc({...t,checks:[],...Q(r),entries:o})},e.exclude=(i,r)=>{const o={...t.entries};for(const s of i)if(n.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new jc({...t,checks:[],...Q(r),entries:o})}});function Ly(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new jc({type:"enum",entries:n,...Q(t)})}const AR=I("ZodLiteral",(e,t)=>{aO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>yN(e,n,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function W(e,t){return new AR({type:"literal",values:Array.isArray(e)?e:[e],...Q(t)})}const IR=I("ZodTransform",(e,t)=>{lO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xN(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new ly(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Jo(o,n.value,t));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(Jo(s))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});function TR(e){return new IR({type:"transform",transform:e})}const My=I("ZodOptional",(e,t)=>{Dy.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Oy(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Bm(e){return new My({type:"optional",innerType:e})}const OR=I("ZodExactOptional",(e,t)=>{uO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Oy(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function NR(e){return new OR({type:"optional",innerType:e})}const RR=I("ZodNullable",(e,t)=>{cO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>EN(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Wm(e){return new RR({type:"nullable",innerType:e})}const LR=I("ZodDefault",(e,t)=>{dO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>AN(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function MR(e,t){return new LR({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():hy(t)}})}const FR=I("ZodPrefault",(e,t)=>{hO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>IN(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function VR(e,t){return new FR({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():hy(t)}})}const Fy=I("ZodNonOptional",(e,t)=>{pO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>PN(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function GR(e,t){return new Fy({type:"nonoptional",innerType:e,...Q(t)})}const $R=I("ZodCatch",(e,t)=>{fO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>TN(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function jR(e,t){return new $R({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const BR=I("ZodPipe",(e,t)=>{mO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ON(e,n,i,r),e.in=t.in,e.out=t.out});function Hm(e,t){return new BR({type:"pipe",in:e,out:t})}const WR=I("ZodReadonly",(e,t)=>{vO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>NN(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function HR(e){return new WR({type:"readonly",innerType:e})}const UR=I("ZodCustom",(e,t)=>{gO.init(e,t),Ve.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_N(e,n)});function ZR(e,t={}){return uN(UR,e,t)}function YR(e){return cN(e)}const JR=E({_meta:R(x(),N()).nullish(),terminal:_t().optional().default(!1)}),qR=E({_meta:R(x(),N()).nullish(),label:x().nullish(),name:x(),optional:_t().optional().default(!1),secret:_t().optional().default(!0)}),KR=E({_meta:R(x(),N()).nullish(),description:x().nullish(),id:x(),name:x()}),XR=E({_meta:R(x(),N()).nullish(),description:x().nullish(),id:x(),link:x().nullish(),name:x(),vars:fe(qR)}),QR=E({_meta:R(x(),N()).nullish(),args:fe(x()).optional(),description:x().nullish(),env:R(x(),x()).optional(),id:x(),name:x()}),eL=ye([XR.and(E({type:W("env_var")})),QR.and(E({type:W("terminal")})),KR]),tL=E({_meta:R(x(),N()).nullish(),methodId:x()}),nL=E({_meta:R(x(),N()).nullish()}),iL=E({_meta:R(x(),N()).nullish(),blob:x(),mimeType:x().nullish(),uri:x()}),rL=E({_meta:R(x(),N()).nullish()}),oL=E({amount:Ue(),currency:x()}),sL=E({_meta:R(x(),N()).nullish(),terminalId:x()}),aL=E({_meta:R(x(),N()).nullish(),newText:x(),oldText:x().nullish(),path:x()}),Vy=E({_meta:R(x(),N()).nullish(),name:x(),value:x()}),lL=ye([W(-32700),W(-32600),W(-32601),W(-32602),W(-32603),W(-32800),W(-32e3),W(-32002),Ue().int().min(-2147483648,{message:"Invalid value: Expected int32 to be >= -2147483648"}).max(2147483647,{message:"Invalid value: Expected int32 to be <= 2147483647"})]),Gy=E({code:lL,data:N().optional(),message:x()}),$y=N(),jy=N(),By=N(),uL=E({_meta:R(x(),N()).nullish(),readTextFile:_t().optional().default(!1),writeTextFile:_t().optional().default(!1)}),cL=E({_meta:R(x(),N()).nullish(),auth:JR.optional().default({terminal:!1}),fs:uL.optional().default({readTextFile:!1,writeTextFile:!1}),terminal:_t().optional().default(!1)}),Wy=E({_meta:R(x(),N()).nullish(),name:x(),value:x()}),Hy=E({_meta:R(x(),N()).nullish(),name:x(),title:x().nullish(),version:x()}),dL=E({_meta:R(x(),N()).nullish()}),hL=E({_meta:R(x(),N()).nullish(),cursor:x().nullish(),cwd:x().nullish()}),pL=E({_meta:R(x(),N()).nullish(),http:_t().optional().default(!1),sse:_t().optional().default(!1)}),fL=E({_meta:R(x(),N()).nullish(),headers:fe(Wy),name:x(),url:x()}),mL=E({_meta:R(x(),N()).nullish(),headers:fe(Wy),name:x(),url:x()}),vL=E({_meta:R(x(),N()).nullish(),args:fe(x()),command:x(),env:fe(Vy),name:x()}),yl=ye([fL.and(E({type:W("http")})),mL.and(E({type:W("sse")})),vL]),xh=x(),gL=E({_meta:R(x(),N()).nullish(),description:x().nullish(),modelId:xh,name:x()}),bL=E({_meta:R(x(),N()).nullish(),cwd:x(),mcpServers:fe(yl)}),Uy=x(),wL=ye([W("allow_once"),W("allow_always"),W("reject_once"),W("reject_always")]),yL=E({_meta:R(x(),N()).nullish(),kind:wL,name:x(),optionId:Uy}),_L=ye([W("high"),W("medium"),W("low")]),xL=ye([W("pending"),W("in_progress"),W("completed")]),kL=E({_meta:R(x(),N()).nullish(),content:x(),priority:_L,status:xL}),SL=E({_meta:R(x(),N()).nullish(),entries:fe(kL)}),zL=E({_meta:R(x(),N()).nullish(),audio:_t().optional().default(!1),embeddedContext:_t().optional().default(!1),image:_t().optional().default(!1)}),Zy=Ue().int().gte(0).lte(65535),CL=E({_meta:R(x(),N()).nullish(),clientCapabilities:cL.optional().default({auth:{terminal:!1},fs:{readTextFile:!1,writeTextFile:!1},terminal:!1}),clientInfo:Hy.nullish(),protocolVersion:Zy}),DL=E({_meta:R(x(),N()).nullish(),content:x()}),EL=E({_meta:R(x(),N()).nullish()}),$i=ye([Ue(),x()]).nullable();E({_meta:R(x(),N()).nullish(),requestId:$i});const PL=Ly(["assistant","user"]),ls=E({_meta:R(x(),N()).nullish(),audience:fe(PL).nullish(),lastModified:x().nullish(),priority:Ue().nullish()}),AL=E({_meta:R(x(),N()).nullish(),annotations:ls.nullish(),data:x(),mimeType:x()}),IL=E({_meta:R(x(),N()).nullish(),annotations:ls.nullish(),data:x(),mimeType:x(),uri:x().nullish()}),TL=E({_meta:R(x(),N()).nullish(),annotations:ls.nullish(),description:x().nullish(),mimeType:x().nullish(),name:x(),size:Ue().nullish(),title:x().nullish(),uri:x()}),OL=E({_meta:R(x(),N()).nullish(),optionId:Uy}),NL=ye([E({outcome:W("cancelled")}),OL.and(E({outcome:W("selected")}))]),RL=E({_meta:R(x(),N()).nullish(),outcome:NL}),LL=E({_meta:R(x(),N()).nullish()}),ML=E({currentValue:_t()}),FL=x(),Yy=x(),VL=ye([W("mode"),W("model"),W("thought_level"),x()]),kh=x(),Jy=E({_meta:R(x(),N()).nullish(),description:x().nullish(),name:x(),value:kh}),GL=E({_meta:R(x(),N()).nullish(),group:FL,name:x(),options:fe(Jy)}),$L=ye([fe(Jy),fe(GL)]),jL=E({currentValue:kh,options:$L}),Wr=_h(ye([jL.and(E({type:W("select")})),ML.and(E({type:W("boolean")}))]),E({_meta:R(x(),N()).nullish(),category:VL.nullish(),description:x().nullish(),id:Yy,name:x()})),BL=E({_meta:R(x(),N()).nullish(),configOptions:fe(Wr)}),WL=E({_meta:R(x(),N()).nullish()}),We=x(),HL=E({_meta:R(x(),N()).nullish(),sessionId:We});E({method:x(),params:ye([HL,$y]).nullish()});const UL=E({_meta:R(x(),N()).nullish(),sessionId:We}),ZL=E({_meta:R(x(),N()).nullish(),args:fe(x()).optional(),command:x(),cwd:x().nullish(),env:fe(Vy).optional(),outputByteLimit:Ue().nullish(),sessionId:We}),YL=E({_meta:R(x(),N()).nullish(),cwd:x(),mcpServers:fe(yl).optional(),sessionId:We}),JL=E({_meta:R(x(),N()).nullish(),sessionId:We,terminalId:x()}),qL=E({_meta:R(x(),N()).nullish(),cwd:x(),mcpServers:fe(yl),sessionId:We}),KL=E({_meta:R(x(),N()).nullish(),limit:Ue().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),line:Ue().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:x(),sessionId:We}),XL=E({_meta:R(x(),N()).nullish(),sessionId:We,terminalId:x()}),QL=E({_meta:R(x(),N()).nullish(),cwd:x(),mcpServers:fe(yl).optional(),sessionId:We}),e5=E({_meta:R(x(),N()).nullish(),cwd:x(),sessionId:We,title:x().nullish(),updatedAt:x().nullish()}),t5=E({_meta:R(x(),N()).nullish(),nextCursor:x().nullish(),sessions:fe(e5)}),n5=E({_meta:R(x(),N()).nullish(),title:x().nullish(),updatedAt:x().nullish()}),i5=E({_meta:R(x(),N()).nullish()}),_l=x(),r5=E({_meta:R(x(),N()).nullish(),currentModeId:_l}),o5=E({_meta:R(x(),N()).nullish(),description:x().nullish(),id:_l,name:x()}),xl=E({_meta:R(x(),N()).nullish(),availableModes:fe(o5),currentModeId:_l}),kl=E({_meta:R(x(),N()).nullish(),availableModels:fe(gL),currentModelId:xh}),s5=E({_meta:R(x(),N()).nullish(),configOptions:fe(Wr).nullish(),models:kl.nullish(),modes:xl.nullish(),sessionId:We}),a5=E({_meta:R(x(),N()).nullish(),configOptions:fe(Wr).nullish(),models:kl.nullish(),modes:xl.nullish()}),l5=E({_meta:R(x(),N()).nullish(),configOptions:fe(Wr).nullish(),models:kl.nullish(),modes:xl.nullish(),sessionId:We}),u5=E({_meta:R(x(),N()).nullish(),configOptions:fe(Wr).nullish(),models:kl.nullish(),modes:xl.nullish()}),c5=E({_meta:R(x(),N()).nullish()}),d5=E({_meta:R(x(),N()).nullish(),close:LL.nullish(),fork:WL.nullish(),list:i5.nullish(),resume:c5.nullish()}),h5=E({_meta:R(x(),N()).nullish(),loadSession:_t().optional().default(!1),mcpCapabilities:pL.optional().default({http:!1,sse:!1}),promptCapabilities:zL.optional().default({audio:!1,embeddedContext:!1,image:!1}),sessionCapabilities:d5.optional().default({})}),p5=E({_meta:R(x(),N()).nullish(),agentCapabilities:h5.optional().default({loadSession:!1,mcpCapabilities:{http:!1,sse:!1},promptCapabilities:{audio:!1,embeddedContext:!1,image:!1},sessionCapabilities:{}}),agentInfo:Hy.nullish(),authMethods:fe(eL).optional().default([]),protocolVersion:Zy}),f5=_h(ye([E({type:W("boolean"),value:_t()}),E({value:kh})]),E({_meta:R(x(),N()).nullish(),configId:Yy,sessionId:We})),m5=E({_meta:R(x(),N()).nullish(),configOptions:fe(Wr)}),v5=E({_meta:R(x(),N()).nullish(),modeId:_l,sessionId:We}),g5=E({_meta:R(x(),N()).nullish()}),b5=E({_meta:R(x(),N()).nullish(),modelId:xh,sessionId:We}),w5=E({_meta:R(x(),N()).nullish()}),y5=ye([W("end_turn"),W("max_tokens"),W("max_turn_requests"),W("refusal"),W("cancelled")]),_5=E({_meta:R(x(),N()).nullish(),terminalId:x()}),x5=E({_meta:R(x(),N()).nullish(),exitCode:Ue().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:x().nullish()}),k5=E({_meta:R(x(),N()).nullish(),sessionId:We,terminalId:x()}),S5=E({_meta:R(x(),N()).nullish(),exitStatus:x5.nullish(),output:x(),truncated:_t()}),z5=E({_meta:R(x(),N()).nullish(),annotations:ls.nullish(),text:x()}),C5=E({_meta:R(x(),N()).nullish(),mimeType:x().nullish(),text:x(),uri:x()}),D5=ye([C5,iL]),E5=E({_meta:R(x(),N()).nullish(),annotations:ls.nullish(),resource:D5}),Sh=ye([z5.and(E({type:W("text")})),IL.and(E({type:W("image")})),AL.and(E({type:W("audio")})),TL.and(E({type:W("resource_link")})),E5.and(E({type:W("resource")}))]),P5=E({_meta:R(x(),N()).nullish(),content:Sh}),wu=E({_meta:R(x(),N()).nullish(),content:Sh,messageId:x().nullish()}),A5=E({_meta:R(x(),N()).nullish(),messageId:x().nullish(),prompt:fe(Sh),sessionId:We});E({id:$i,method:x(),params:ye([CL,tL,bL,qL,hL,YL,QL,UL,v5,f5,A5,b5,jy]).nullish()});const qy=ye([P5.and(E({type:W("content")})),aL.and(E({type:W("diff")})),_5.and(E({type:W("terminal")}))]),Ky=x(),Xy=E({_meta:R(x(),N()).nullish(),line:Ue().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:x()}),Qy=ye([W("pending"),W("in_progress"),W("completed"),W("failed")]),e0=ye([W("read"),W("edit"),W("delete"),W("move"),W("search"),W("execute"),W("think"),W("fetch"),W("switch_mode"),W("other")]),I5=E({_meta:R(x(),N()).nullish(),content:fe(qy).optional(),kind:e0.optional(),locations:fe(Xy).optional(),rawInput:N().optional(),rawOutput:N().optional(),status:Qy.optional(),title:x(),toolCallId:Ky}),t0=E({_meta:R(x(),N()).nullish(),content:fe(qy).nullish(),kind:e0.nullish(),locations:fe(Xy).nullish(),rawInput:N().optional(),rawOutput:N().optional(),status:Qy.nullish(),title:x().nullish(),toolCallId:Ky}),T5=E({_meta:R(x(),N()).nullish(),options:fe(yL),sessionId:We,toolCall:t0}),O5=E({_meta:R(x(),N()).nullish(),hint:x()}),N5=O5,R5=E({_meta:R(x(),N()).nullish(),description:x(),input:N5.nullish(),name:x()}),L5=E({_meta:R(x(),N()).nullish(),availableCommands:fe(R5)}),M5=E({cachedReadTokens:Ue().nullish(),cachedWriteTokens:Ue().nullish(),inputTokens:Ue(),outputTokens:Ue(),thoughtTokens:Ue().nullish(),totalTokens:Ue()}),F5=E({_meta:R(x(),N()).nullish(),stopReason:y5,usage:M5.nullish(),userMessageId:x().nullish()});ye([E({id:$i,result:ye([p5,nL,l5,a5,t5,s5,u5,rL,g5,m5,F5,w5,By])}),E({error:Gy,id:$i})]);const V5=E({_meta:R(x(),N()).nullish(),cost:oL.nullish(),size:Ue(),used:Ue()}),G5=ye([wu.and(E({sessionUpdate:W("user_message_chunk")})),wu.and(E({sessionUpdate:W("agent_message_chunk")})),wu.and(E({sessionUpdate:W("agent_thought_chunk")})),I5.and(E({sessionUpdate:W("tool_call")})),t0.and(E({sessionUpdate:W("tool_call_update")})),SL.and(E({sessionUpdate:W("plan")})),L5.and(E({sessionUpdate:W("available_commands_update")})),r5.and(E({sessionUpdate:W("current_mode_update")})),BL.and(E({sessionUpdate:W("config_option_update")})),n5.and(E({sessionUpdate:W("session_info_update")})),V5.and(E({sessionUpdate:W("usage_update")}))]),$5=E({_meta:R(x(),N()).nullish(),sessionId:We,update:G5});E({method:x(),params:ye([$5,$y]).nullish()});const j5=E({_meta:R(x(),N()).nullish(),sessionId:We,terminalId:x()}),B5=E({_meta:R(x(),N()).nullish(),exitCode:Ue().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:x().nullish()}),W5=E({_meta:R(x(),N()).nullish(),content:x(),path:x(),sessionId:We});E({id:$i,method:x(),params:ye([W5,KL,T5,ZL,k5,XL,j5,JL,jy]).nullish()});const H5=E({_meta:R(x(),N()).nullish()});ye([E({id:$i,result:ye([H5,DL,RL,sL,S5,EL,B5,dL,By])}),E({error:Gy,id:$i})]);/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function n0(e){return typeof e>"u"||e===null}function U5(e){return typeof e=="object"&&e!==null}function Z5(e){return Array.isArray(e)?e:n0(e)?[]:[e]}function Y5(e,t){var n,i,r,o;if(t)for(o=Object.keys(t),n=0,i=o.length;n<i;n+=1)r=o[n],e[r]=t[r];return e}function J5(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function q5(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var K5=n0,X5=U5,Q5=Z5,e4=J5,t4=q5,n4=Y5,zh={isNothing:K5,isObject:X5,toArray:Q5,repeat:e4,isNegativeZero:t4,extend:n4};function i0(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
2766
|
+
|
|
2767
|
+
`+e.mark.snippet),i+" "+n):i}function qo(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=i0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}qo.prototype=Object.create(Error.prototype);qo.prototype.constructor=qo;qo.prototype.toString=function(t){return this.name+": "+i0(this,t)};var Di=qo,i4=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r4=["scalar","sequence","mapping"];function o4(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(i){t[String(i)]=n})}),t}function s4(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(i4.indexOf(n)===-1)throw new Di('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=o4(t.styleAliases||null),r4.indexOf(this.kind)===-1)throw new Di('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var pt=s4;function Um(e,t){var n=[];return e[t].forEach(function(i){var r=n.length;n.forEach(function(o,s){o.tag===i.tag&&o.kind===i.kind&&o.multi===i.multi&&(r=s)}),n[r]=i}),n}function a4(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function i(r){r.multi?(e.multi[r.kind].push(r),e.multi.fallback.push(r)):e[r.kind][r.tag]=e.fallback[r.tag]=r}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(i);return e}function Bc(e){return this.extend(e)}Bc.prototype.extend=function(t){var n=[],i=[];if(t instanceof pt)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Di("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof pt))throw new Di("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Di("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Di("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(o){if(!(o instanceof pt))throw new Di("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(Bc.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(i),r.compiledImplicit=Um(r,"implicit"),r.compiledExplicit=Um(r,"explicit"),r.compiledTypeMap=a4(r.compiledImplicit,r.compiledExplicit),r};var l4=Bc,u4=new pt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),c4=new pt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),d4=new pt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),h4=new l4({explicit:[u4,c4,d4]});function p4(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function f4(){return null}function m4(e){return e===null}var v4=new pt("tag:yaml.org,2002:null",{kind:"scalar",resolve:p4,construct:f4,predicate:m4,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function g4(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function b4(e){return e==="true"||e==="True"||e==="TRUE"}function w4(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var y4=new pt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:g4,construct:b4,predicate:w4,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function _4(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function x4(e){return 48<=e&&e<=55}function k4(e){return 48<=e&&e<=57}function S4(e){if(e===null)return!1;var t=e.length,n=0,i=!1,r;if(!t)return!1;if(r=e[n],(r==="-"||r==="+")&&(r=e[++n]),r==="0"){if(n+1===t)return!0;if(r=e[++n],r==="b"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(r!=="0"&&r!=="1")return!1;i=!0}return i&&r!=="_"}if(r==="x"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(!_4(e.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}if(r==="o"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(!x4(e.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}}if(r==="_")return!1;for(;n<t;n++)if(r=e[n],r!=="_"){if(!k4(e.charCodeAt(n)))return!1;i=!0}return!(!i||r==="_")}function z4(e){var t=e,n=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(n=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function C4(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!zh.isNegativeZero(e)}var D4=new pt("tag:yaml.org,2002:int",{kind:"scalar",resolve:S4,construct:z4,predicate:C4,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),E4=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function P4(e){return!(e===null||!E4.test(e)||e[e.length-1]==="_")}function A4(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var I4=/^[-+]?[0-9]+e/;function T4(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(zh.isNegativeZero(e))return"-0.0";return n=e.toString(10),I4.test(n)?n.replace("e",".e"):n}function O4(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||zh.isNegativeZero(e))}var N4=new pt("tag:yaml.org,2002:float",{kind:"scalar",resolve:P4,construct:A4,predicate:O4,represent:T4,defaultStyle:"lowercase"}),R4=h4.extend({implicit:[v4,y4,D4,N4]}),L4=R4,r0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),o0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function M4(e){return e===null?!1:r0.exec(e)!==null||o0.exec(e)!==null}function F4(e){var t,n,i,r,o,s,a,l=0,u=null,d,c,h;if(t=r0.exec(e),t===null&&(t=o0.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(d=+t[10],c=+(t[11]||0),u=(d*60+c)*6e4,t[9]==="-"&&(u=-u)),h=new Date(Date.UTC(n,i,r,o,s,a,l)),u&&h.setTime(h.getTime()-u),h}function V4(e){return e.toISOString()}var G4=new pt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:M4,construct:F4,instanceOf:Date,represent:V4});function $4(e){return e==="<<"||e===null}var j4=new pt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:$4}),Ch=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
2768
|
+
\r`;function B4(e){if(e===null)return!1;var t,n,i=0,r=e.length,o=Ch;for(n=0;n<r;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function W4(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=Ch,s=0,a=[];for(t=0;t<r;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(i.charAt(t));return n=r%4*6,n===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):n===18?(a.push(s>>10&255),a.push(s>>2&255)):n===12&&a.push(s>>4&255),new Uint8Array(a)}function H4(e){var t="",n=0,i,r,o=e.length,s=Ch;for(i=0;i<o;i++)i%3===0&&i&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[i];return r=o%3,r===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):r===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):r===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function U4(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Z4=new pt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:B4,construct:W4,predicate:U4,represent:H4}),Y4=Object.prototype.hasOwnProperty,J4=Object.prototype.toString;function q4(e){if(e===null)return!0;var t=[],n,i,r,o,s,a=e;for(n=0,i=a.length;n<i;n+=1){if(r=a[n],s=!1,J4.call(r)!=="[object Object]")return!1;for(o in r)if(Y4.call(r,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function K4(e){return e!==null?e:[]}var X4=new pt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:q4,construct:K4}),Q4=Object.prototype.toString;function e3(e){if(e===null)return!0;var t,n,i,r,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(i=s[t],Q4.call(i)!=="[object Object]"||(r=Object.keys(i),r.length!==1))return!1;o[t]=[r[0],i[r[0]]]}return!0}function t3(e){if(e===null)return[];var t,n,i,r,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1)i=s[t],r=Object.keys(i),o[t]=[r[0],i[r[0]]];return o}var n3=new pt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:e3,construct:t3}),i3=Object.prototype.hasOwnProperty;function r3(e){if(e===null)return!0;var t,n=e;for(t in n)if(i3.call(n,t)&&n[t]!==null)return!1;return!0}function o3(e){return e!==null?e:{}}var s3=new pt("tag:yaml.org,2002:set",{kind:"mapping",resolve:r3,construct:o3});L4.extend({implicit:[G4,j4],explicit:[Z4,X4,n3,s3]});function Zm(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
2769
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}var a3=new Array(256),l3=new Array(256);for(var er=0;er<256;er++)a3[er]=Zm(er)?1:0,l3[er]=Zm(er);export{b3 as B,KI as D,u3 as M,v3 as N,q as R,c3 as a,d3 as b,h3 as c,sb as d,p3 as e,x3 as f,_3 as g,dl as h,w3 as i,zl as j,m3 as k,k3 as l,g3 as m,hA as n,Gx as o,Z as r,f3 as t,Mw as u};
|