@adhdev/daemon-standalone 0.9.82-rc.3 → 0.9.82-rc.5
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 +34 -58
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/index-B8fg8KB1.css +1 -0
- package/public/assets/index-BG1OOql2.js +98 -0
- package/public/assets/{terminal-Cz61jYPm.js → terminal-DCVDkSIp.js} +1 -1
- package/public/assets/vendor-piMzuE8Y.js +2745 -0
- package/public/index.html +3 -3
- package/vendor/mcp-server/index.js +10 -2
- package/vendor/mcp-server/index.js.map +1 -1
- package/public/assets/index-01wE493H.css +0 -1
- package/public/assets/index-BU3NAjAr.js +0 -98
- package/public/assets/vendor-CLec0455.js +0 -2723
|
@@ -1,2723 +0,0 @@
|
|
|
1
|
-
function ob(t,e){for(var n=0;n<e.length;n++){const i=e[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in t)){const o=Object.getOwnPropertyDescriptor(i,r);o&&Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vp={exports:{}},Gs={},Fp={exports:{}},re={};/**
|
|
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 oo=Symbol.for("react.element"),sb=Symbol.for("react.portal"),ab=Symbol.for("react.fragment"),lb=Symbol.for("react.strict_mode"),ub=Symbol.for("react.profiler"),db=Symbol.for("react.provider"),cb=Symbol.for("react.context"),hb=Symbol.for("react.forward_ref"),pb=Symbol.for("react.suspense"),fb=Symbol.for("react.memo"),vb=Symbol.for("react.lazy"),ec=Symbol.iterator;function mb(t){return t===null||typeof t!="object"?null:(t=ec&&t[ec]||t["@@iterator"],typeof t=="function"?t:null)}var Gp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hp=Object.assign,Wp={};function qi(t,e,n){this.props=t,this.context=e,this.refs=Wp,this.updater=n||Gp}qi.prototype.isReactComponent={};qi.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};qi.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Bp(){}Bp.prototype=qi.prototype;function Cu(t,e,n){this.props=t,this.context=e,this.refs=Wp,this.updater=n||Gp}var Du=Cu.prototype=new Bp;Du.constructor=Cu;Hp(Du,qi.prototype);Du.isPureReactComponent=!0;var tc=Array.isArray,jp=Object.prototype.hasOwnProperty,zu={current:null},Up={key:!0,ref:!0,__self:!0,__source:!0};function $p(t,e,n){var i,r={},o=null,s=null;if(e!=null)for(i in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(o=""+e.key),e)jp.call(e,i)&&!Up.hasOwnProperty(i)&&(r[i]=e[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(t&&t.defaultProps)for(i in a=t.defaultProps,a)r[i]===void 0&&(r[i]=a[i]);return{$$typeof:oo,type:t,key:o,ref:s,props:r,_owner:zu.current}}function gb(t,e){return{$$typeof:oo,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Eu(t){return typeof t=="object"&&t!==null&&t.$$typeof===oo}function bb(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var nc=/\/+/g;function ma(t,e){return typeof t=="object"&&t!==null&&t.key!=null?bb(""+t.key):e.toString(36)}function Uo(t,e,n,i,r){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case oo:case sb:s=!0}}if(s)return s=t,r=r(s),t=i===""?"."+ma(s,0):i,tc(r)?(n="",t!=null&&(n=t.replace(nc,"$&/")+"/"),Uo(r,e,n,"",function(u){return u})):r!=null&&(Eu(r)&&(r=gb(r,n+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(nc,"$&/")+"/")+t)),e.push(r)),1;if(s=0,i=i===""?".":i+":",tc(t))for(var a=0;a<t.length;a++){o=t[a];var l=i+ma(o,a);s+=Uo(o,e,n,l,r)}else if(l=mb(t),typeof l=="function")for(t=l.call(t),a=0;!(o=t.next()).done;)o=o.value,l=i+ma(o,a++),s+=Uo(o,e,n,l,r);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return s}function mo(t,e,n){if(t==null)return t;var i=[],r=0;return Uo(t,i,"","",function(o){return e.call(n,o,r++)}),i}function wb(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var tt={current:null},$o={transition:null},yb={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:$o,ReactCurrentOwner:zu};function Yp(){throw Error("act(...) is not supported in production builds of React.")}re.Children={map:mo,forEach:function(t,e,n){mo(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return mo(t,function(){e++}),e},toArray:function(t){return mo(t,function(e){return e})||[]},only:function(t){if(!Eu(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};re.Component=qi;re.Fragment=ab;re.Profiler=ub;re.PureComponent=Cu;re.StrictMode=lb;re.Suspense=pb;re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yb;re.act=Yp;re.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=Hp({},t.props),r=t.key,o=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,s=zu.current),e.key!==void 0&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)jp.call(e,l)&&!Up.hasOwnProperty(l)&&(i[l]=e[l]===void 0&&a!==void 0?a[l]:e[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:oo,type:t.type,key:r,ref:o,props:i,_owner:s}};re.createContext=function(t){return t={$$typeof:cb,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:db,_context:t},t.Consumer=t};re.createElement=$p;re.createFactory=function(t){var e=$p.bind(null,t);return e.type=t,e};re.createRef=function(){return{current:null}};re.forwardRef=function(t){return{$$typeof:hb,render:t}};re.isValidElement=Eu;re.lazy=function(t){return{$$typeof:vb,_payload:{_status:-1,_result:t},_init:wb}};re.memo=function(t,e){return{$$typeof:fb,type:t,compare:e===void 0?null:e}};re.startTransition=function(t){var e=$o.transition;$o.transition={};try{t()}finally{$o.transition=e}};re.unstable_act=Yp;re.useCallback=function(t,e){return tt.current.useCallback(t,e)};re.useContext=function(t){return tt.current.useContext(t)};re.useDebugValue=function(){};re.useDeferredValue=function(t){return tt.current.useDeferredValue(t)};re.useEffect=function(t,e){return tt.current.useEffect(t,e)};re.useId=function(){return tt.current.useId()};re.useImperativeHandle=function(t,e,n){return tt.current.useImperativeHandle(t,e,n)};re.useInsertionEffect=function(t,e){return tt.current.useInsertionEffect(t,e)};re.useLayoutEffect=function(t,e){return tt.current.useLayoutEffect(t,e)};re.useMemo=function(t,e){return tt.current.useMemo(t,e)};re.useReducer=function(t,e,n){return tt.current.useReducer(t,e,n)};re.useRef=function(t){return tt.current.useRef(t)};re.useState=function(t){return tt.current.useState(t)};re.useSyncExternalStore=function(t,e,n){return tt.current.useSyncExternalStore(t,e,n)};re.useTransition=function(){return tt.current.useTransition()};re.version="18.3.1";Fp.exports=re;var H=Fp.exports;const j=Fs(H),xb=ob({__proto__:null,default:j},[H]);/**
|
|
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 _b=H,kb=Symbol.for("react.element"),Sb=Symbol.for("react.fragment"),Cb=Object.prototype.hasOwnProperty,Db=_b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zb={key:!0,ref:!0,__self:!0,__source:!0};function Qp(t,e,n){var i,r={},o=null,s=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(s=e.ref);for(i in e)Cb.call(e,i)&&!zb.hasOwnProperty(i)&&(r[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps,e)r[i]===void 0&&(r[i]=e[i]);return{$$typeof:kb,type:t,key:o,ref:s,props:r,_owner:Db.current}}Gs.Fragment=Sb;Gs.jsx=Qp;Gs.jsxs=Qp;Vp.exports=Gs;var ga=Vp.exports,Jp={exports:{}},gt={},Zp={exports:{}},Xp={};/**
|
|
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(t){function e(L,Y){var w=L.length;L.push(Y);e:for(;0<w;){var oe=w-1>>>1,ue=L[oe];if(0<r(ue,Y))L[oe]=Y,L[w]=ue,w=oe;else break e}}function n(L){return L.length===0?null:L[0]}function i(L){if(L.length===0)return null;var Y=L[0],w=L.pop();if(w!==Y){L[0]=w;e:for(var oe=0,ue=L.length,_=ue>>>1;oe<_;){var xe=2*(oe+1)-1,ce=L[xe],ee=xe+1,Xe=L[ee];if(0>r(ce,w))ee<ue&&0>r(Xe,ce)?(L[oe]=Xe,L[ee]=w,oe=ee):(L[oe]=ce,L[xe]=w,oe=xe);else if(ee<ue&&0>r(Xe,w))L[oe]=Xe,L[ee]=w,oe=ee;else break e}}return Y}function r(L,Y){var w=L.sortIndex-Y.sortIndex;return w!==0?w:L.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,h=3,p=!1,v=!1,m=!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(L){for(var Y=n(u);Y!==null;){if(Y.callback===null)i(u);else if(Y.startTime<=L)i(u),Y.sortIndex=Y.expirationTime,e(l,Y);else break;Y=n(u)}}function k(L){if(m=!1,b(L),!v)if(n(l)!==null)v=!0,N(D);else{var Y=n(u);Y!==null&&X(k,Y.startTime-L)}}function D(L,Y){v=!1,m&&(m=!1,f(C),C=-1),p=!0;var w=h;try{for(b(Y),d=n(l);d!==null&&(!(d.expirationTime>Y)||L&&!O());){var oe=d.callback;if(typeof oe=="function"){d.callback=null,h=d.priorityLevel;var ue=oe(d.expirationTime<=Y);Y=t.unstable_now(),typeof ue=="function"?d.callback=ue:d===n(l)&&i(l),b(Y)}else i(l);d=n(l)}if(d!==null)var _=!0;else{var xe=n(u);xe!==null&&X(k,xe.startTime-Y),_=!1}return _}finally{d=null,h=w,p=!1}}var x=!1,z=null,C=-1,R=5,S=-1;function O(){return!(t.unstable_now()-S<R)}function V(){if(z!==null){var L=t.unstable_now();S=L;var Y=!0;try{Y=z(!0,L)}finally{Y?$():(x=!1,z=null)}}else x=!1}var $;if(typeof g=="function")$=function(){g(V)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,P=Q.port2;Q.port1.onmessage=V,$=function(){P.postMessage(null)}}else $=function(){y(V,0)};function N(L){z=L,x||(x=!0,$())}function X(L,Y){C=y(function(){L(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(L){L.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,N(D))},t.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(L){switch(h){case 1:case 2:case 3:var Y=3;break;default:Y=h}var w=h;h=Y;try{return L()}finally{h=w}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(L,Y){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var w=h;h=L;try{return Y()}finally{h=w}},t.unstable_scheduleCallback=function(L,Y,w){var oe=t.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?oe+w:oe):w=oe,L){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=w+ue,L={id:c++,callback:Y,priorityLevel:L,startTime:w,expirationTime:ue,sortIndex:-1},w>oe?(L.sortIndex=w,e(u,L),n(l)===null&&L===n(u)&&(m?(f(C),C=-1):m=!0,X(k,w-oe))):(L.sortIndex=ue,e(l,L),v||p||(v=!0,N(D))),L},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(L){var Y=h;return function(){var w=h;h=Y;try{return L.apply(this,arguments)}finally{h=w}}}})(Xp);Zp.exports=Xp;var Eb=Zp.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 Pb=H,mt=Eb;function I(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var qp=new Set,Nr={};function hi(t,e){ji(t,e),ji(t+"Capture",e)}function ji(t,e){for(Nr[t]=e,t=0;t<e.length;t++)qp.add(e[t])}var cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ll=Object.prototype.hasOwnProperty,Ab=/^[: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]*$/,ic={},rc={};function Ib(t){return ll.call(rc,t)?!0:ll.call(ic,t)?!1:Ab.test(t)?rc[t]=!0:(ic[t]=!0,!1)}function Tb(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Ob(t,e,n,i){if(e===null||typeof e>"u"||Tb(t,e,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function nt(t,e,n,i,r,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){je[t]=new nt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];je[e]=new nt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){je[t]=new nt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){je[t]=new nt(t,2,!1,t,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(t){je[t]=new nt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){je[t]=new nt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){je[t]=new nt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){je[t]=new nt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){je[t]=new nt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Pu=/[\-:]([a-z])/g;function Au(t){return t[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(t){var e=t.replace(Pu,Au);je[e]=new nt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Pu,Au);je[e]=new nt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Pu,Au);je[e]=new nt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){je[t]=new nt(t,1,!1,t.toLowerCase(),null,!1,!1)});je.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){je[t]=new nt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Iu(t,e,n,i){var r=je.hasOwnProperty(e)?je[e]:null;(r!==null?r.type!==0:i||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(Ob(e,n,r,i)&&(n=null),i||r===null?Ib(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):r.mustUseProperty?t[r.propertyName]=n===null?r.type===3?!1:"":n:(e=r.attributeName,i=r.attributeNamespace,n===null?t.removeAttribute(e):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,i?t.setAttributeNS(i,e,n):t.setAttribute(e,n))))}var vn=Pb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,go=Symbol.for("react.element"),Ci=Symbol.for("react.portal"),Di=Symbol.for("react.fragment"),Tu=Symbol.for("react.strict_mode"),ul=Symbol.for("react.profiler"),Kp=Symbol.for("react.provider"),ef=Symbol.for("react.context"),Ou=Symbol.for("react.forward_ref"),dl=Symbol.for("react.suspense"),cl=Symbol.for("react.suspense_list"),Lu=Symbol.for("react.memo"),_n=Symbol.for("react.lazy"),tf=Symbol.for("react.offscreen"),oc=Symbol.iterator;function ar(t){return t===null||typeof t!="object"?null:(t=oc&&t[oc]||t["@@iterator"],typeof t=="function"?t:null)}var Ce=Object.assign,ba;function wr(t){if(ba===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);ba=e&&e[1]||""}return`
|
|
34
|
-
`+ba+t}var wa=!1;function ya(t,e){if(!t||wa)return"";wa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var i=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){i=u}t.call(e.prototype)}else{try{throw Error()}catch(u){i=u}t()}}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 t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=s&&0<=a);break}}}finally{wa=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?wr(t):""}function Lb(t){switch(t.tag){case 5:return wr(t.type);case 16:return wr("Lazy");case 13:return wr("Suspense");case 19:return wr("SuspenseList");case 0:case 2:case 15:return t=ya(t.type,!1),t;case 11:return t=ya(t.type.render,!1),t;case 1:return t=ya(t.type,!0),t;default:return""}}function hl(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Di:return"Fragment";case Ci:return"Portal";case ul:return"Profiler";case Tu:return"StrictMode";case dl:return"Suspense";case cl:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case ef:return(t.displayName||"Context")+".Consumer";case Kp:return(t._context.displayName||"Context")+".Provider";case Ou:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Lu:return e=t.displayName||null,e!==null?e:hl(t.type)||"Memo";case _n:e=t._payload,t=t._init;try{return hl(t(e))}catch{}}return null}function Rb(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hl(e);case 8:return e===Tu?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Vn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function nf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Nb(t){var e=nf(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(s){i=""+s,o.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function bo(t){t._valueTracker||(t._valueTracker=Nb(t))}function rf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=nf(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function ss(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function pl(t,e){var n=e.checked;return Ce({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function sc(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=Vn(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function of(t,e){e=e.checked,e!=null&&Iu(t,"checked",e,!1)}function fl(t,e){of(t,e);var n=Vn(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?vl(t,e.type,n):e.hasOwnProperty("defaultValue")&&vl(t,e.type,Vn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ac(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function vl(t,e,n){(e!=="number"||ss(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var yr=Array.isArray;function Mi(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&i&&(t[n].defaultSelected=!0)}else{for(n=""+Vn(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,i&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function ml(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(I(91));return Ce({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function lc(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(I(92));if(yr(n)){if(1<n.length)throw Error(I(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Vn(n)}}function sf(t,e){var n=Vn(e.value),i=Vn(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),i!=null&&(t.defaultValue=""+i)}function uc(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function af(t){switch(t){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 gl(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?af(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var wo,lf=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,i,r){MSApp.execUnsafeLocalFunction(function(){return t(e,n,i,r)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(wo=wo||document.createElement("div"),wo.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=wo.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Mr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var kr={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},Mb=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(t){Mb.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),kr[e]=kr[t]})});function uf(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||kr.hasOwnProperty(t)&&kr[t]?(""+e).trim():e+"px"}function df(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=uf(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}var Vb=Ce({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 bl(t,e){if(e){if(Vb[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(I(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(I(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(I(61))}if(e.style!=null&&typeof e.style!="object")throw Error(I(62))}}function wl(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 yl=null;function Ru(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var xl=null,Vi=null,Fi=null;function dc(t){if(t=lo(t)){if(typeof xl!="function")throw Error(I(280));var e=t.stateNode;e&&(e=Us(e),xl(t.stateNode,t.type,e))}}function cf(t){Vi?Fi?Fi.push(t):Fi=[t]:Vi=t}function hf(){if(Vi){var t=Vi,e=Fi;if(Fi=Vi=null,dc(t),e)for(t=0;t<e.length;t++)dc(e[t])}}function pf(t,e){return t(e)}function ff(){}var xa=!1;function vf(t,e,n){if(xa)return t(e,n);xa=!0;try{return pf(t,e,n)}finally{xa=!1,(Vi!==null||Fi!==null)&&(ff(),hf())}}function Vr(t,e){var n=t.stateNode;if(n===null)return null;var i=Us(n);if(i===null)return null;n=i[e];e:switch(e){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)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(I(231,e,typeof n));return n}var _l=!1;if(cn)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){_l=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{_l=!1}function Fb(t,e,n,i,r,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var Sr=!1,as=null,ls=!1,kl=null,Gb={onError:function(t){Sr=!0,as=t}};function Hb(t,e,n,i,r,o,s,a,l){Sr=!1,as=null,Fb.apply(Gb,arguments)}function Wb(t,e,n,i,r,o,s,a,l){if(Hb.apply(this,arguments),Sr){if(Sr){var u=as;Sr=!1,as=null}else throw Error(I(198));ls||(ls=!0,kl=u)}}function pi(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function mf(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function cc(t){if(pi(t)!==t)throw Error(I(188))}function Bb(t){var e=t.alternate;if(!e){if(e=pi(t),e===null)throw Error(I(188));return e!==t?null:t}for(var n=t,i=e;;){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 cc(r),t;if(o===i)return cc(r),e;o=o.sibling}throw Error(I(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(I(189))}}if(n.alternate!==i)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?t:e}function gf(t){return t=Bb(t),t!==null?bf(t):null}function bf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=bf(t);if(e!==null)return e;t=t.sibling}return null}var wf=mt.unstable_scheduleCallback,hc=mt.unstable_cancelCallback,jb=mt.unstable_shouldYield,Ub=mt.unstable_requestPaint,Ee=mt.unstable_now,$b=mt.unstable_getCurrentPriorityLevel,Nu=mt.unstable_ImmediatePriority,yf=mt.unstable_UserBlockingPriority,us=mt.unstable_NormalPriority,Yb=mt.unstable_LowPriority,xf=mt.unstable_IdlePriority,Hs=null,Jt=null;function Qb(t){if(Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(Hs,t,void 0,(t.current.flags&128)===128)}catch{}}var Nt=Math.clz32?Math.clz32:Xb,Jb=Math.log,Zb=Math.LN2;function Xb(t){return t>>>=0,t===0?32:31-(Jb(t)/Zb|0)|0}var yo=64,xo=4194304;function xr(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function ds(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,r=t.suspendedLanes,o=t.pingedLanes,s=n&268435455;if(s!==0){var a=s&~r;a!==0?i=xr(a):(o&=s,o!==0&&(i=xr(o)))}else s=n&~r,s!==0?i=xr(s):o!==0&&(i=xr(o));if(i===0)return 0;if(e!==0&&e!==i&&!(e&r)&&(r=i&-i,o=e&-e,r>=o||r===16&&(o&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0<e;)n=31-Nt(e),r=1<<n,i|=t[n],e&=~r;return i}function qb(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 Kb(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,r=t.expirationTimes,o=t.pendingLanes;0<o;){var s=31-Nt(o),a=1<<s,l=r[s];l===-1?(!(a&n)||a&i)&&(r[s]=qb(a,e)):l<=e&&(t.expiredLanes|=a),o&=~a}}function Sl(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function _f(){var t=yo;return yo<<=1,!(yo&4194240)&&(yo=64),t}function _a(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function so(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Nt(e),t[e]=n}function ew(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0<n;){var r=31-Nt(n),o=1<<r;e[r]=0,i[r]=-1,t[r]=-1,n&=~o}}function Mu(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-Nt(n),r=1<<i;r&e|t[i]&e&&(t[i]|=e),n&=~r}}var de=0;function kf(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Sf,Vu,Cf,Df,zf,Cl=!1,_o=[],Pn=null,An=null,In=null,Fr=new Map,Gr=new Map,Sn=[],tw="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 pc(t,e){switch(t){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":An=null;break;case"mouseover":case"mouseout":In=null;break;case"pointerover":case"pointerout":Fr.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gr.delete(e.pointerId)}}function ur(t,e,n,i,r,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},e!==null&&(e=lo(e),e!==null&&Vu(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function nw(t,e,n,i,r){switch(e){case"focusin":return Pn=ur(Pn,t,e,n,i,r),!0;case"dragenter":return An=ur(An,t,e,n,i,r),!0;case"mouseover":return In=ur(In,t,e,n,i,r),!0;case"pointerover":var o=r.pointerId;return Fr.set(o,ur(Fr.get(o)||null,t,e,n,i,r)),!0;case"gotpointercapture":return o=r.pointerId,Gr.set(o,ur(Gr.get(o)||null,t,e,n,i,r)),!0}return!1}function Ef(t){var e=Kn(t.target);if(e!==null){var n=pi(e);if(n!==null){if(e=n.tag,e===13){if(e=mf(n),e!==null){t.blockedOn=e,zf(t.priority,function(){Cf(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Yo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Dl(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);yl=i,n.target.dispatchEvent(i),yl=null}else return e=lo(n),e!==null&&Vu(e),t.blockedOn=n,!1;e.shift()}return!0}function fc(t,e,n){Yo(t)&&n.delete(e)}function iw(){Cl=!1,Pn!==null&&Yo(Pn)&&(Pn=null),An!==null&&Yo(An)&&(An=null),In!==null&&Yo(In)&&(In=null),Fr.forEach(fc),Gr.forEach(fc)}function dr(t,e){t.blockedOn===e&&(t.blockedOn=null,Cl||(Cl=!0,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,iw)))}function Hr(t){function e(r){return dr(r,t)}if(0<_o.length){dr(_o[0],t);for(var n=1;n<_o.length;n++){var i=_o[n];i.blockedOn===t&&(i.blockedOn=null)}}for(Pn!==null&&dr(Pn,t),An!==null&&dr(An,t),In!==null&&dr(In,t),Fr.forEach(e),Gr.forEach(e),n=0;n<Sn.length;n++)i=Sn[n],i.blockedOn===t&&(i.blockedOn=null);for(;0<Sn.length&&(n=Sn[0],n.blockedOn===null);)Ef(n),n.blockedOn===null&&Sn.shift()}var Gi=vn.ReactCurrentBatchConfig,cs=!0;function rw(t,e,n,i){var r=de,o=Gi.transition;Gi.transition=null;try{de=1,Fu(t,e,n,i)}finally{de=r,Gi.transition=o}}function ow(t,e,n,i){var r=de,o=Gi.transition;Gi.transition=null;try{de=4,Fu(t,e,n,i)}finally{de=r,Gi.transition=o}}function Fu(t,e,n,i){if(cs){var r=Dl(t,e,n,i);if(r===null)Ta(t,e,i,hs,n),pc(t,i);else if(nw(r,t,e,n,i))i.stopPropagation();else if(pc(t,i),e&4&&-1<tw.indexOf(t)){for(;r!==null;){var o=lo(r);if(o!==null&&Sf(o),o=Dl(t,e,n,i),o===null&&Ta(t,e,i,hs,n),o===r)break;r=o}r!==null&&i.stopPropagation()}else Ta(t,e,i,null,n)}}var hs=null;function Dl(t,e,n,i){if(hs=null,t=Ru(i),t=Kn(t),t!==null)if(e=pi(t),e===null)t=null;else if(n=e.tag,n===13){if(t=mf(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return hs=t,null}function Pf(t){switch(t){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($b()){case Nu:return 1;case yf:return 4;case us:case Yb:return 16;case xf:return 536870912;default:return 16}default:return 16}}var Dn=null,Gu=null,Qo=null;function Af(){if(Qo)return Qo;var t,e=Gu,n=e.length,i,r="value"in Dn?Dn.value:Dn.textContent,o=r.length;for(t=0;t<n&&e[t]===r[t];t++);var s=n-t;for(i=1;i<=s&&e[n-i]===r[o-i];i++);return Qo=r.slice(t,1<i?1-i:void 0)}function Jo(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ko(){return!0}function vc(){return!1}function bt(t){function e(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 t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ko:vc,this.isPropagationStopped=vc,this}return Ce(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ko)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ko)},persist:function(){},isPersistent:ko}),e}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hu=bt(Ki),ao=Ce({},Ki,{view:0,detail:0}),sw=bt(ao),ka,Sa,cr,Ws=Ce({},ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==cr&&(cr&&t.type==="mousemove"?(ka=t.screenX-cr.screenX,Sa=t.screenY-cr.screenY):Sa=ka=0,cr=t),ka)},movementY:function(t){return"movementY"in t?t.movementY:Sa}}),mc=bt(Ws),aw=Ce({},Ws,{dataTransfer:0}),lw=bt(aw),uw=Ce({},ao,{relatedTarget:0}),Ca=bt(uw),dw=Ce({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),cw=bt(dw),hw=Ce({},Ki,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),pw=bt(hw),fw=Ce({},Ki,{data:0}),gc=bt(fw),vw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mw={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"},gw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bw(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=gw[t])?!!e[t]:!1}function Wu(){return bw}var ww=Ce({},ao,{key:function(t){if(t.key){var e=vw[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Jo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?mw[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wu,charCode:function(t){return t.type==="keypress"?Jo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Jo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),yw=bt(ww),xw=Ce({},Ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bc=bt(xw),_w=Ce({},ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wu}),kw=bt(_w),Sw=Ce({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cw=bt(Sw),Dw=Ce({},Ws,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),zw=bt(Dw),Ew=[9,13,27,32],Bu=cn&&"CompositionEvent"in window,Cr=null;cn&&"documentMode"in document&&(Cr=document.documentMode);var Pw=cn&&"TextEvent"in window&&!Cr,If=cn&&(!Bu||Cr&&8<Cr&&11>=Cr),wc=" ",yc=!1;function Tf(t,e){switch(t){case"keyup":return Ew.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Of(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var zi=!1;function Aw(t,e){switch(t){case"compositionend":return Of(e);case"keypress":return e.which!==32?null:(yc=!0,wc);case"textInput":return t=e.data,t===wc&&yc?null:t;default:return null}}function Iw(t,e){if(zi)return t==="compositionend"||!Bu&&Tf(t,e)?(t=Af(),Qo=Gu=Dn=null,zi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return If&&e.locale!=="ko"?null:e.data;default:return null}}var Tw={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 xc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Tw[t.type]:e==="textarea"}function Lf(t,e,n,i){cf(i),e=ps(e,"onChange"),0<e.length&&(n=new Hu("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Dr=null,Wr=null;function Ow(t){Uf(t,0)}function Bs(t){var e=Ai(t);if(rf(e))return t}function Lw(t,e){if(t==="change")return e}var Rf=!1;if(cn){var Da;if(cn){var za="oninput"in document;if(!za){var _c=document.createElement("div");_c.setAttribute("oninput","return;"),za=typeof _c.oninput=="function"}Da=za}else Da=!1;Rf=Da&&(!document.documentMode||9<document.documentMode)}function kc(){Dr&&(Dr.detachEvent("onpropertychange",Nf),Wr=Dr=null)}function Nf(t){if(t.propertyName==="value"&&Bs(Wr)){var e=[];Lf(e,Wr,t,Ru(t)),vf(Ow,e)}}function Rw(t,e,n){t==="focusin"?(kc(),Dr=e,Wr=n,Dr.attachEvent("onpropertychange",Nf)):t==="focusout"&&kc()}function Nw(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Bs(Wr)}function Mw(t,e){if(t==="click")return Bs(e)}function Vw(t,e){if(t==="input"||t==="change")return Bs(e)}function Fw(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ft=typeof Object.is=="function"?Object.is:Fw;function Br(t,e){if(Ft(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!ll.call(e,r)||!Ft(t[r],e[r]))return!1}return!0}function Sc(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Cc(t,e){var n=Sc(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Sc(n)}}function Mf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Mf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Vf(){for(var t=window,e=ss();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ss(t.document)}return e}function ju(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Gw(t){var e=Vf(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&Mf(n.ownerDocument.documentElement,n)){if(i!==null&&ju(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!t.extend&&o>i&&(r=i,i=o,o=r),r=Cc(n,o);var s=Cc(n,i);r&&s&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),o>i?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Hw=cn&&"documentMode"in document&&11>=document.documentMode,Ei=null,zl=null,zr=null,El=!1;function Dc(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;El||Ei==null||Ei!==ss(i)||(i=Ei,"selectionStart"in i&&ju(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}),zr&&Br(zr,i)||(zr=i,i=ps(zl,"onSelect"),0<i.length&&(e=new Hu("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Ei)))}function So(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Pi={animationend:So("Animation","AnimationEnd"),animationiteration:So("Animation","AnimationIteration"),animationstart:So("Animation","AnimationStart"),transitionend:So("Transition","TransitionEnd")},Ea={},Ff={};cn&&(Ff=document.createElement("div").style,"AnimationEvent"in window||(delete Pi.animationend.animation,delete Pi.animationiteration.animation,delete Pi.animationstart.animation),"TransitionEvent"in window||delete Pi.transitionend.transition);function js(t){if(Ea[t])return Ea[t];if(!Pi[t])return t;var e=Pi[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Ff)return Ea[t]=e[n];return t}var Gf=js("animationend"),Hf=js("animationiteration"),Wf=js("animationstart"),Bf=js("transitionend"),jf=new Map,zc="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 Gn(t,e){jf.set(t,e),hi(e,[t])}for(var Pa=0;Pa<zc.length;Pa++){var Aa=zc[Pa],Ww=Aa.toLowerCase(),Bw=Aa[0].toUpperCase()+Aa.slice(1);Gn(Ww,"on"+Bw)}Gn(Gf,"onAnimationEnd");Gn(Hf,"onAnimationIteration");Gn(Wf,"onAnimationStart");Gn("dblclick","onDoubleClick");Gn("focusin","onFocus");Gn("focusout","onBlur");Gn(Bf,"onTransitionEnd");ji("onMouseEnter",["mouseout","mouseover"]);ji("onMouseLeave",["mouseout","mouseover"]);ji("onPointerEnter",["pointerout","pointerover"]);ji("onPointerLeave",["pointerout","pointerover"]);hi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));hi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));hi("onBeforeInput",["compositionend","keypress","textInput","paste"]);hi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));hi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));hi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="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(" "),jw=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Ec(t,e,n){var i=t.type||"unknown-event";t.currentTarget=n,Wb(i,e,void 0,t),t.currentTarget=null}function Uf(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],r=i.event;i=i.listeners;e:{var o=void 0;if(e)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;Ec(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;Ec(r,a,u),o=l}}}if(ls)throw t=kl,ls=!1,kl=null,t}function ge(t,e){var n=e[Ol];n===void 0&&(n=e[Ol]=new Set);var i=t+"__bubble";n.has(i)||($f(e,t,2,!1),n.add(i))}function Ia(t,e,n){var i=0;e&&(i|=4),$f(n,t,i,e)}var Co="_reactListening"+Math.random().toString(36).slice(2);function jr(t){if(!t[Co]){t[Co]=!0,qp.forEach(function(n){n!=="selectionchange"&&(jw.has(n)||Ia(n,!1,t),Ia(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Co]||(e[Co]=!0,Ia("selectionchange",!1,e))}}function $f(t,e,n,i){switch(Pf(e)){case 1:var r=rw;break;case 4:r=ow;break;default:r=Fu}n=r.bind(null,e,n,t),r=void 0,!_l||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),i?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function Ta(t,e,n,i,r){var o=i;if(!(e&1)&&!(e&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=Kn(a),s===null)return;if(l=s.tag,l===5||l===6){i=o=s;continue e}a=a.parentNode}}i=i.return}vf(function(){var u=o,c=Ru(n),d=[];e:{var h=jf.get(t);if(h!==void 0){var p=Hu,v=t;switch(t){case"keypress":if(Jo(n)===0)break e;case"keydown":case"keyup":p=yw;break;case"focusin":v="focus",p=Ca;break;case"focusout":v="blur",p=Ca;break;case"beforeblur":case"afterblur":p=Ca;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=mc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=lw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=kw;break;case Gf:case Hf:case Wf:p=cw;break;case Bf:p=Cw;break;case"scroll":p=sw;break;case"wheel":p=zw;break;case"copy":case"cut":case"paste":p=pw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=bc}var m=(e&4)!==0,y=!m&&t==="scroll",f=m?h!==null?h+"Capture":null:h;m=[];for(var g=u,b;g!==null;){b=g;var k=b.stateNode;if(b.tag===5&&k!==null&&(b=k,f!==null&&(k=Vr(g,f),k!=null&&m.push(Ur(g,k,b)))),y)break;g=g.return}0<m.length&&(h=new p(h,v,null,n,c),d.push({event:h,listeners:m}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",h&&n!==yl&&(v=n.relatedTarget||n.fromElement)&&(Kn(v)||v[hn]))break e;if((p||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,p?(v=n.relatedTarget||n.toElement,p=u,v=v?Kn(v):null,v!==null&&(y=pi(v),v!==y||v.tag!==5&&v.tag!==6)&&(v=null)):(p=null,v=u),p!==v)){if(m=mc,k="onMouseLeave",f="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&(m=bc,k="onPointerLeave",f="onPointerEnter",g="pointer"),y=p==null?h:Ai(p),b=v==null?h:Ai(v),h=new m(k,g+"leave",p,n,c),h.target=y,h.relatedTarget=b,k=null,Kn(c)===u&&(m=new m(f,g+"enter",v,n,c),m.target=b,m.relatedTarget=y,k=m),y=k,p&&v)t:{for(m=p,f=v,g=0,b=m;b;b=yi(b))g++;for(b=0,k=f;k;k=yi(k))b++;for(;0<g-b;)m=yi(m),g--;for(;0<b-g;)f=yi(f),b--;for(;g--;){if(m===f||f!==null&&m===f.alternate)break t;m=yi(m),f=yi(f)}m=null}else m=null;p!==null&&Pc(d,h,p,m,!1),v!==null&&y!==null&&Pc(d,y,v,m,!0)}}e:{if(h=u?Ai(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var D=Lw;else if(xc(h))if(Rf)D=Vw;else{D=Nw;var x=Rw}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(D=Mw);if(D&&(D=D(t,u))){Lf(d,D,n,c);break e}x&&x(t,h,u),t==="focusout"&&(x=h._wrapperState)&&x.controlled&&h.type==="number"&&vl(h,"number",h.value)}switch(x=u?Ai(u):window,t){case"focusin":(xc(x)||x.contentEditable==="true")&&(Ei=x,zl=u,zr=null);break;case"focusout":zr=zl=Ei=null;break;case"mousedown":El=!0;break;case"contextmenu":case"mouseup":case"dragend":El=!1,Dc(d,n,c);break;case"selectionchange":if(Hw)break;case"keydown":case"keyup":Dc(d,n,c)}var z;if(Bu)e:{switch(t){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else zi?Tf(t,n)&&(C="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(If&&n.locale!=="ko"&&(zi||C!=="onCompositionStart"?C==="onCompositionEnd"&&zi&&(z=Af()):(Dn=c,Gu="value"in Dn?Dn.value:Dn.textContent,zi=!0)),x=ps(u,C),0<x.length&&(C=new gc(C,t,null,n,c),d.push({event:C,listeners:x}),z?C.data=z:(z=Of(n),z!==null&&(C.data=z)))),(z=Pw?Aw(t,n):Iw(t,n))&&(u=ps(u,"onBeforeInput"),0<u.length&&(c=new gc("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=z))}Uf(d,e)})}function Ur(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ps(t,e){for(var n=e+"Capture",i=[];t!==null;){var r=t,o=r.stateNode;r.tag===5&&o!==null&&(r=o,o=Vr(t,n),o!=null&&i.unshift(Ur(t,o,r)),o=Vr(t,e),o!=null&&i.push(Ur(t,o,r))),t=t.return}return i}function yi(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Pc(t,e,n,i,r){for(var o=e._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=Vr(n,o),l!=null&&s.unshift(Ur(n,l,a))):r||(l=Vr(n,o),l!=null&&s.push(Ur(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}var Uw=/\r\n?/g,$w=/\u0000|\uFFFD/g;function Ac(t){return(typeof t=="string"?t:""+t).replace(Uw,`
|
|
38
|
-
`).replace($w,"")}function Do(t,e,n){if(e=Ac(e),Ac(t)!==e&&n)throw Error(I(425))}function fs(){}var Pl=null,Al=null;function Il(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Tl=typeof setTimeout=="function"?setTimeout:void 0,Yw=typeof clearTimeout=="function"?clearTimeout:void 0,Ic=typeof Promise=="function"?Promise:void 0,Qw=typeof queueMicrotask=="function"?queueMicrotask:typeof Ic<"u"?function(t){return Ic.resolve(null).then(t).catch(Jw)}:Tl;function Jw(t){setTimeout(function(){throw t})}function Oa(t,e){var n=e,i=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(i===0){t.removeChild(r),Hr(e);return}i--}else n!=="$"&&n!=="$?"&&n!=="$!"||i++;n=r}while(n);Hr(e)}function Tn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Tc(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var er=Math.random().toString(36).slice(2),Yt="__reactFiber$"+er,$r="__reactProps$"+er,hn="__reactContainer$"+er,Ol="__reactEvents$"+er,Zw="__reactListeners$"+er,Xw="__reactHandles$"+er;function Kn(t){var e=t[Yt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[hn]||n[Yt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Tc(t);t!==null;){if(n=t[Yt])return n;t=Tc(t)}return e}t=n,n=t.parentNode}return null}function lo(t){return t=t[Yt]||t[hn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ai(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(I(33))}function Us(t){return t[$r]||null}var Ll=[],Ii=-1;function Hn(t){return{current:t}}function we(t){0>Ii||(t.current=Ll[Ii],Ll[Ii]=null,Ii--)}function ve(t,e){Ii++,Ll[Ii]=t.current,t.current=e}var Fn={},Je=Hn(Fn),st=Hn(!1),si=Fn;function Ui(t,e){var n=t.type.contextTypes;if(!n)return Fn;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=e[o];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function at(t){return t=t.childContextTypes,t!=null}function vs(){we(st),we(Je)}function Oc(t,e,n){if(Je.current!==Fn)throw Error(I(168));ve(Je,e),ve(st,n)}function Yf(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in e))throw Error(I(108,Rb(t)||"Unknown",r));return Ce({},n,i)}function ms(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fn,si=Je.current,ve(Je,t),ve(st,st.current),!0}function Lc(t,e,n){var i=t.stateNode;if(!i)throw Error(I(169));n?(t=Yf(t,e,si),i.__reactInternalMemoizedMergedChildContext=t,we(st),we(Je),ve(Je,t)):we(st),ve(st,n)}var sn=null,$s=!1,La=!1;function Qf(t){sn===null?sn=[t]:sn.push(t)}function qw(t){$s=!0,Qf(t)}function Wn(){if(!La&&sn!==null){La=!0;var t=0,e=de;try{var n=sn;for(de=1;t<n.length;t++){var i=n[t];do i=i(!0);while(i!==null)}sn=null,$s=!1}catch(r){throw sn!==null&&(sn=sn.slice(t+1)),wf(Nu,Wn),r}finally{de=e,La=!1}}return null}var Ti=[],Oi=0,gs=null,bs=0,yt=[],xt=0,ai=null,an=1,ln="";function Zn(t,e){Ti[Oi++]=bs,Ti[Oi++]=gs,gs=t,bs=e}function Jf(t,e,n){yt[xt++]=an,yt[xt++]=ln,yt[xt++]=ai,ai=t;var i=an;t=ln;var r=32-Nt(i)-1;i&=~(1<<r),n+=1;var o=32-Nt(e)+r;if(30<o){var s=r-r%5;o=(i&(1<<s)-1).toString(32),i>>=s,r-=s,an=1<<32-Nt(e)+r|n<<r|i,ln=o+t}else an=1<<o|n<<r|i,ln=t}function Uu(t){t.return!==null&&(Zn(t,1),Jf(t,1,0))}function $u(t){for(;t===gs;)gs=Ti[--Oi],Ti[Oi]=null,bs=Ti[--Oi],Ti[Oi]=null;for(;t===ai;)ai=yt[--xt],yt[xt]=null,ln=yt[--xt],yt[xt]=null,an=yt[--xt],yt[xt]=null}var ft=null,pt=null,ye=!1,Lt=null;function Zf(t,e){var n=kt(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function Rc(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,ft=t,pt=Tn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,ft=t,pt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=ai!==null?{id:an,overflow:ln}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=kt(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,ft=t,pt=null,!0):!1;default:return!1}}function Rl(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Nl(t){if(ye){var e=pt;if(e){var n=e;if(!Rc(t,e)){if(Rl(t))throw Error(I(418));e=Tn(n.nextSibling);var i=ft;e&&Rc(t,e)?Zf(i,n):(t.flags=t.flags&-4097|2,ye=!1,ft=t)}}else{if(Rl(t))throw Error(I(418));t.flags=t.flags&-4097|2,ye=!1,ft=t}}}function Nc(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;ft=t}function zo(t){if(t!==ft)return!1;if(!ye)return Nc(t),ye=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Il(t.type,t.memoizedProps)),e&&(e=pt)){if(Rl(t))throw Xf(),Error(I(418));for(;e;)Zf(t,e),e=Tn(e.nextSibling)}if(Nc(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(I(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){pt=Tn(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}pt=null}}else pt=ft?Tn(t.stateNode.nextSibling):null;return!0}function Xf(){for(var t=pt;t;)t=Tn(t.nextSibling)}function $i(){pt=ft=null,ye=!1}function Yu(t){Lt===null?Lt=[t]:Lt.push(t)}var Kw=vn.ReactCurrentBatchConfig;function hr(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var i=n.stateNode}if(!i)throw Error(I(147,t));var r=i,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(s){var a=r.refs;s===null?delete a[o]:a[o]=s},e._stringRef=o,e)}if(typeof t!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,t))}return t}function Eo(t,e){throw t=Object.prototype.toString.call(e),Error(I(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Mc(t){var e=t._init;return e(t._payload)}function qf(t){function e(f,g){if(t){var b=f.deletions;b===null?(f.deletions=[g],f.flags|=16):b.push(g)}}function n(f,g){if(!t)return null;for(;g!==null;)e(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=Nn(f,g),f.index=0,f.sibling=null,f}function o(f,g,b){return f.index=b,t?(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 t&&f.alternate===null&&(f.flags|=2),f}function a(f,g,b,k){return g===null||g.tag!==6?(g=Ha(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===Di?c(f,g,b.props.children,k,b.key):g!==null&&(g.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===_n&&Mc(D)===g.type)?(k=r(g,b.props),k.ref=hr(f,g,b),k.return=f,k):(k=ns(b.type,b.key,b.props,null,f.mode,k),k.ref=hr(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=Wa(b,f.mode,k),g.return=f,g):(g=r(g,b.children||[]),g.return=f,g)}function c(f,g,b,k,D){return g===null||g.tag!==7?(g=ii(b,f.mode,k,D),g.return=f,g):(g=r(g,b),g.return=f,g)}function d(f,g,b){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Ha(""+g,f.mode,b),g.return=f,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case go:return b=ns(g.type,g.key,g.props,null,f.mode,b),b.ref=hr(f,null,g),b.return=f,b;case Ci:return g=Wa(g,f.mode,b),g.return=f,g;case _n:var k=g._init;return d(f,k(g._payload),b)}if(yr(g)||ar(g))return g=ii(g,f.mode,b,null),g.return=f,g;Eo(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 go:return b.key===D?l(f,g,b,k):null;case Ci:return b.key===D?u(f,g,b,k):null;case _n:return D=b._init,h(f,g,D(b._payload),k)}if(yr(b)||ar(b))return D!==null?null:c(f,g,b,k,null);Eo(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 go:return f=f.get(k.key===null?b:k.key)||null,l(g,f,k,D);case Ci:return f=f.get(k.key===null?b:k.key)||null,u(g,f,k,D);case _n:var x=k._init;return p(f,g,b,x(k._payload),D)}if(yr(k)||ar(k))return f=f.get(b)||null,c(g,f,k,D,null);Eo(g,k)}return null}function v(f,g,b,k){for(var D=null,x=null,z=g,C=g=0,R=null;z!==null&&C<b.length;C++){z.index>C?(R=z,z=null):R=z.sibling;var S=h(f,z,b[C],k);if(S===null){z===null&&(z=R);break}t&&z&&S.alternate===null&&e(f,z),g=o(S,g,C),x===null?D=S:x.sibling=S,x=S,z=R}if(C===b.length)return n(f,z),ye&&Zn(f,C),D;if(z===null){for(;C<b.length;C++)z=d(f,b[C],k),z!==null&&(g=o(z,g,C),x===null?D=z:x.sibling=z,x=z);return ye&&Zn(f,C),D}for(z=i(f,z);C<b.length;C++)R=p(z,f,C,b[C],k),R!==null&&(t&&R.alternate!==null&&z.delete(R.key===null?C:R.key),g=o(R,g,C),x===null?D=R:x.sibling=R,x=R);return t&&z.forEach(function(O){return e(f,O)}),ye&&Zn(f,C),D}function m(f,g,b,k){var D=ar(b);if(typeof D!="function")throw Error(I(150));if(b=D.call(b),b==null)throw Error(I(151));for(var x=D=null,z=g,C=g=0,R=null,S=b.next();z!==null&&!S.done;C++,S=b.next()){z.index>C?(R=z,z=null):R=z.sibling;var O=h(f,z,S.value,k);if(O===null){z===null&&(z=R);break}t&&z&&O.alternate===null&&e(f,z),g=o(O,g,C),x===null?D=O:x.sibling=O,x=O,z=R}if(S.done)return n(f,z),ye&&Zn(f,C),D;if(z===null){for(;!S.done;C++,S=b.next())S=d(f,S.value,k),S!==null&&(g=o(S,g,C),x===null?D=S:x.sibling=S,x=S);return ye&&Zn(f,C),D}for(z=i(f,z);!S.done;C++,S=b.next())S=p(z,f,C,S.value,k),S!==null&&(t&&S.alternate!==null&&z.delete(S.key===null?C:S.key),g=o(S,g,C),x===null?D=S:x.sibling=S,x=S);return t&&z.forEach(function(V){return e(f,V)}),ye&&Zn(f,C),D}function y(f,g,b,k){if(typeof b=="object"&&b!==null&&b.type===Di&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case go:e:{for(var D=b.key,x=g;x!==null;){if(x.key===D){if(D=b.type,D===Di){if(x.tag===7){n(f,x.sibling),g=r(x,b.props.children),g.return=f,f=g;break e}}else if(x.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===_n&&Mc(D)===x.type){n(f,x.sibling),g=r(x,b.props),g.ref=hr(f,x,b),g.return=f,f=g;break e}n(f,x);break}else e(f,x);x=x.sibling}b.type===Di?(g=ii(b.props.children,f.mode,k,b.key),g.return=f,f=g):(k=ns(b.type,b.key,b.props,null,f.mode,k),k.ref=hr(f,g,b),k.return=f,f=k)}return s(f);case Ci:e:{for(x=b.key;g!==null;){if(g.key===x)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 e(f,g);g=g.sibling}g=Wa(b,f.mode,k),g.return=f,f=g}return s(f);case _n:return x=b._init,y(f,g,x(b._payload),k)}if(yr(b))return v(f,g,b,k);if(ar(b))return m(f,g,b,k);Eo(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=Ha(b,f.mode,k),g.return=f,f=g),s(f)):n(f,g)}return y}var Yi=qf(!0),Kf=qf(!1),ws=Hn(null),ys=null,Li=null,Qu=null;function Ju(){Qu=Li=ys=null}function Zu(t){var e=ws.current;we(ws),t._currentValue=e}function Ml(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Hi(t,e){ys=t,Qu=Li=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(ot=!0),t.firstContext=null)}function Dt(t){var e=t._currentValue;if(Qu!==t)if(t={context:t,memoizedValue:e,next:null},Li===null){if(ys===null)throw Error(I(308));Li=t,ys.dependencies={lanes:0,firstContext:t}}else Li=Li.next=t;return e}var ei=null;function Xu(t){ei===null?ei=[t]:ei.push(t)}function ev(t,e,n,i){var r=e.interleaved;return r===null?(n.next=n,Xu(e)):(n.next=r.next,r.next=n),e.interleaved=n,pn(t,i)}function pn(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var kn=!1;function qu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tv(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function dn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function On(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,le&2){var r=i.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),i.pending=e,pn(t,n)}return r=i.interleaved,r===null?(e.next=e,Xu(i)):(e.next=r.next,r.next=e),i.interleaved=e,pn(t,n)}function Zo(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Mu(t,n)}}function Vc(t,e){var n=t.updateQueue,i=t.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=e:o=o.next=e}else r=o=e;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function xs(t,e,n,i){var r=t.updateQueue;kn=!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 c=t.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=r.baseState;s=0,c=u=l=null,a=o;do{var h=a.lane,p=a.eventTime;if((i&h)===h){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=t,m=a;switch(h=e,p=n,m.tag){case 1:if(v=m.payload,typeof v=="function"){d=v.call(p,d,h);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=m.payload,h=typeof v=="function"?v.call(p,d,h):v,h==null)break e;d=Ce({},d,h);break e;case 2:kn=!0}}a.callback!==null&&a.lane!==0&&(t.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},c===null?(u=c=p,l=d):c=c.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(c===null&&(l=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,e=r.shared.interleaved,e!==null){r=e;do s|=r.lane,r=r.next;while(r!==e)}else o===null&&(r.shared.lanes=0);ui|=s,t.lanes=s,t.memoizedState=d}}function Fc(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var i=t[e],r=i.callback;if(r!==null){if(i.callback=null,i=n,typeof r!="function")throw Error(I(191,r));r.call(i)}}}var uo={},Zt=Hn(uo),Yr=Hn(uo),Qr=Hn(uo);function ti(t){if(t===uo)throw Error(I(174));return t}function Ku(t,e){switch(ve(Qr,e),ve(Yr,t),ve(Zt,uo),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:gl(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=gl(e,t)}we(Zt),ve(Zt,e)}function Qi(){we(Zt),we(Yr),we(Qr)}function nv(t){ti(Qr.current);var e=ti(Zt.current),n=gl(e,t.type);e!==n&&(ve(Yr,t),ve(Zt,n))}function ed(t){Yr.current===t&&(we(Zt),we(Yr))}var ke=Hn(0);function _s(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ra=[];function td(){for(var t=0;t<Ra.length;t++)Ra[t]._workInProgressVersionPrimary=null;Ra.length=0}var Xo=vn.ReactCurrentDispatcher,Na=vn.ReactCurrentBatchConfig,li=0,Se=null,Re=null,Fe=null,ks=!1,Er=!1,Jr=0,ey=0;function Ue(){throw Error(I(321))}function nd(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ft(t[n],e[n]))return!1;return!0}function id(t,e,n,i,r,o){if(li=o,Se=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Xo.current=t===null||t.memoizedState===null?ry:oy,t=n(i,r),Er){o=0;do{if(Er=!1,Jr=0,25<=o)throw Error(I(301));o+=1,Fe=Re=null,e.updateQueue=null,Xo.current=sy,t=n(i,r)}while(Er)}if(Xo.current=Ss,e=Re!==null&&Re.next!==null,li=0,Fe=Re=Se=null,ks=!1,e)throw Error(I(300));return t}function rd(){var t=Jr!==0;return Jr=0,t}function Bt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?Se.memoizedState=Fe=t:Fe=Fe.next=t,Fe}function zt(){if(Re===null){var t=Se.alternate;t=t!==null?t.memoizedState:null}else t=Re.next;var e=Fe===null?Se.memoizedState:Fe.next;if(e!==null)Fe=e,Re=t;else{if(t===null)throw Error(I(310));Re=t,t={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Fe===null?Se.memoizedState=Fe=t:Fe=Fe.next=t}return Fe}function Zr(t,e){return typeof e=="function"?e(t):e}function Ma(t){var e=zt(),n=e.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=t;var i=Re,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 c=u.lane;if((li&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:t(i,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,s=i):l=l.next=d,Se.lanes|=c,ui|=c}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=a,Ft(i,e.memoizedState)||(ot=!0),e.memoizedState=i,e.baseState=s,e.baseQueue=l,n.lastRenderedState=i}if(t=n.interleaved,t!==null){r=t;do o=r.lane,Se.lanes|=o,ui|=o,r=r.next;while(r!==t)}else r===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Va(t){var e=zt(),n=e.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=t;var i=n.dispatch,r=n.pending,o=e.memoizedState;if(r!==null){n.pending=null;var s=r=r.next;do o=t(o,s.action),s=s.next;while(s!==r);Ft(o,e.memoizedState)||(ot=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,i]}function iv(){}function rv(t,e){var n=Se,i=zt(),r=e(),o=!Ft(i.memoizedState,r);if(o&&(i.memoizedState=r,ot=!0),i=i.queue,od(av.bind(null,n,i,t),[t]),i.getSnapshot!==e||o||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,Xr(9,sv.bind(null,n,i,r,e),void 0,null),Ge===null)throw Error(I(349));li&30||ov(n,e,r)}return r}function ov(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Se.updateQueue,e===null?(e={lastEffect:null,stores:null},Se.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function sv(t,e,n,i){e.value=n,e.getSnapshot=i,lv(e)&&uv(t)}function av(t,e,n){return n(function(){lv(e)&&uv(t)})}function lv(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ft(t,n)}catch{return!0}}function uv(t){var e=pn(t,1);e!==null&&Mt(e,t,1,-1)}function Gc(t){var e=Bt();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Zr,lastRenderedState:t},e.queue=t,t=t.dispatch=iy.bind(null,Se,t),[e.memoizedState,t]}function Xr(t,e,n,i){return t={tag:t,create:e,destroy:n,deps:i,next:null},e=Se.updateQueue,e===null?(e={lastEffect:null,stores:null},Se.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t)),t}function dv(){return zt().memoizedState}function qo(t,e,n,i){var r=Bt();Se.flags|=t,r.memoizedState=Xr(1|e,n,void 0,i===void 0?null:i)}function Ys(t,e,n,i){var r=zt();i=i===void 0?null:i;var o=void 0;if(Re!==null){var s=Re.memoizedState;if(o=s.destroy,i!==null&&nd(i,s.deps)){r.memoizedState=Xr(e,n,o,i);return}}Se.flags|=t,r.memoizedState=Xr(1|e,n,o,i)}function Hc(t,e){return qo(8390656,8,t,e)}function od(t,e){return Ys(2048,8,t,e)}function cv(t,e){return Ys(4,2,t,e)}function hv(t,e){return Ys(4,4,t,e)}function pv(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function fv(t,e,n){return n=n!=null?n.concat([t]):null,Ys(4,4,pv.bind(null,e,t),n)}function sd(){}function vv(t,e){var n=zt();e=e===void 0?null:e;var i=n.memoizedState;return i!==null&&e!==null&&nd(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function mv(t,e){var n=zt();e=e===void 0?null:e;var i=n.memoizedState;return i!==null&&e!==null&&nd(e,i[1])?i[0]:(t=t(),n.memoizedState=[t,e],t)}function gv(t,e,n){return li&21?(Ft(n,e)||(n=_f(),Se.lanes|=n,ui|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,ot=!0),t.memoizedState=n)}function ty(t,e){var n=de;de=n!==0&&4>n?n:4,t(!0);var i=Na.transition;Na.transition={};try{t(!1),e()}finally{de=n,Na.transition=i}}function bv(){return zt().memoizedState}function ny(t,e,n){var i=Rn(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},wv(t))yv(e,n);else if(n=ev(t,e,n,i),n!==null){var r=et();Mt(n,t,i,r),xv(n,e,i)}}function iy(t,e,n){var i=Rn(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(wv(t))yv(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var s=e.lastRenderedState,a=o(s,n);if(r.hasEagerState=!0,r.eagerState=a,Ft(a,s)){var l=e.interleaved;l===null?(r.next=r,Xu(e)):(r.next=l.next,l.next=r),e.interleaved=r;return}}catch{}finally{}n=ev(t,e,r,i),n!==null&&(r=et(),Mt(n,t,i,r),xv(n,e,i))}}function wv(t){var e=t.alternate;return t===Se||e!==null&&e===Se}function yv(t,e){Er=ks=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function xv(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Mu(t,n)}}var Ss={readContext:Dt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},ry={readContext:Dt,useCallback:function(t,e){return Bt().memoizedState=[t,e===void 0?null:e],t},useContext:Dt,useEffect:Hc,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,qo(4194308,4,pv.bind(null,e,t),n)},useLayoutEffect:function(t,e){return qo(4194308,4,t,e)},useInsertionEffect:function(t,e){return qo(4,2,t,e)},useMemo:function(t,e){var n=Bt();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=Bt();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=ny.bind(null,Se,t),[i.memoizedState,t]},useRef:function(t){var e=Bt();return t={current:t},e.memoizedState=t},useState:Gc,useDebugValue:sd,useDeferredValue:function(t){return Bt().memoizedState=t},useTransition:function(){var t=Gc(!1),e=t[0];return t=ty.bind(null,t[1]),Bt().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=Se,r=Bt();if(ye){if(n===void 0)throw Error(I(407));n=n()}else{if(n=e(),Ge===null)throw Error(I(349));li&30||ov(i,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,Hc(av.bind(null,i,o,t),[t]),i.flags|=2048,Xr(9,sv.bind(null,i,o,n,e),void 0,null),n},useId:function(){var t=Bt(),e=Ge.identifierPrefix;if(ye){var n=ln,i=an;n=(i&~(1<<32-Nt(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=Jr++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=ey++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},oy={readContext:Dt,useCallback:vv,useContext:Dt,useEffect:od,useImperativeHandle:fv,useInsertionEffect:cv,useLayoutEffect:hv,useMemo:mv,useReducer:Ma,useRef:dv,useState:function(){return Ma(Zr)},useDebugValue:sd,useDeferredValue:function(t){var e=zt();return gv(e,Re.memoizedState,t)},useTransition:function(){var t=Ma(Zr)[0],e=zt().memoizedState;return[t,e]},useMutableSource:iv,useSyncExternalStore:rv,useId:bv,unstable_isNewReconciler:!1},sy={readContext:Dt,useCallback:vv,useContext:Dt,useEffect:od,useImperativeHandle:fv,useInsertionEffect:cv,useLayoutEffect:hv,useMemo:mv,useReducer:Va,useRef:dv,useState:function(){return Va(Zr)},useDebugValue:sd,useDeferredValue:function(t){var e=zt();return Re===null?e.memoizedState=t:gv(e,Re.memoizedState,t)},useTransition:function(){var t=Va(Zr)[0],e=zt().memoizedState;return[t,e]},useMutableSource:iv,useSyncExternalStore:rv,useId:bv,unstable_isNewReconciler:!1};function Tt(t,e){if(t&&t.defaultProps){e=Ce({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function Vl(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:Ce({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Qs={isMounted:function(t){return(t=t._reactInternals)?pi(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var i=et(),r=Rn(t),o=dn(i,r);o.payload=e,n!=null&&(o.callback=n),e=On(t,o,r),e!==null&&(Mt(e,t,r,i),Zo(e,t,r))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=et(),r=Rn(t),o=dn(i,r);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=On(t,o,r),e!==null&&(Mt(e,t,r,i),Zo(e,t,r))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=et(),i=Rn(t),r=dn(n,i);r.tag=2,e!=null&&(r.callback=e),e=On(t,r,i),e!==null&&(Mt(e,t,i,n),Zo(e,t,i))}};function Wc(t,e,n,i,r,o,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,o,s):e.prototype&&e.prototype.isPureReactComponent?!Br(n,i)||!Br(r,o):!0}function _v(t,e,n){var i=!1,r=Fn,o=e.contextType;return typeof o=="object"&&o!==null?o=Dt(o):(r=at(e)?si:Je.current,i=e.contextTypes,o=(i=i!=null)?Ui(t,r):Fn),e=new e(n,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Qs,t.stateNode=e,e._reactInternals=t,i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=o),e}function Bc(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Qs.enqueueReplaceState(e,e.state,null)}function Fl(t,e,n,i){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs={},qu(t);var o=e.contextType;typeof o=="object"&&o!==null?r.context=Dt(o):(o=at(e)?si:Je.current,r.context=Ui(t,o)),r.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(Vl(t,e,o,n),r.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(e=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),e!==r.state&&Qs.enqueueReplaceState(r,r.state,null),xs(t,n,r,i),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308)}function Ji(t,e){try{var n="",i=e;do n+=Lb(i),i=i.return;while(i);var r=n}catch(o){r=`
|
|
39
|
-
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:t,source:e,stack:r,digest:null}}function Fa(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Gl(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var ay=typeof WeakMap=="function"?WeakMap:Map;function kv(t,e,n){n=dn(-1,n),n.tag=3,n.payload={element:null};var i=e.value;return n.callback=function(){Ds||(Ds=!0,Zl=i),Gl(t,e)},n}function Sv(t,e,n){n=dn(-1,n),n.tag=3;var i=t.type.getDerivedStateFromError;if(typeof i=="function"){var r=e.value;n.payload=function(){return i(r)},n.callback=function(){Gl(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Gl(t,e),typeof i!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}function jc(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new ay;var r=new Set;i.set(e,r)}else r=i.get(e),r===void 0&&(r=new Set,i.set(e,r));r.has(n)||(r.add(n),t=xy.bind(null,t,e,n),e.then(t,t))}function Uc(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function $c(t,e,n,i,r){return t.mode&1?(t.flags|=65536,t.lanes=r,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=dn(-1,1),e.tag=2,On(n,e,1))),n.lanes|=1),t)}var ly=vn.ReactCurrentOwner,ot=!1;function qe(t,e,n,i){e.child=t===null?Kf(e,null,n,i):Yi(e,t.child,n,i)}function Yc(t,e,n,i,r){n=n.render;var o=e.ref;return Hi(e,r),i=id(t,e,n,i,o,r),n=rd(),t!==null&&!ot?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,fn(t,e,r)):(ye&&n&&Uu(e),e.flags|=1,qe(t,e,i,r),e.child)}function Qc(t,e,n,i,r){if(t===null){var o=n.type;return typeof o=="function"&&!fd(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=o,Cv(t,e,o,i,r)):(t=ns(n.type,null,i,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&r)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Br,n(s,i)&&t.ref===e.ref)return fn(t,e,r)}return e.flags|=1,t=Nn(o,i),t.ref=e.ref,t.return=e,e.child=t}function Cv(t,e,n,i,r){if(t!==null){var o=t.memoizedProps;if(Br(o,i)&&t.ref===e.ref)if(ot=!1,e.pendingProps=i=o,(t.lanes&r)!==0)t.flags&131072&&(ot=!0);else return e.lanes=t.lanes,fn(t,e,r)}return Hl(t,e,n,i,r)}function Dv(t,e,n){var i=e.pendingProps,r=i.children,o=t!==null?t.memoizedState:null;if(i.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(Ni,ht),ht|=n;else{if(!(n&1073741824))return t=o!==null?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ve(Ni,ht),ht|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=o!==null?o.baseLanes:n,ve(Ni,ht),ht|=i}else o!==null?(i=o.baseLanes|n,e.memoizedState=null):i=n,ve(Ni,ht),ht|=i;return qe(t,e,r,n),e.child}function zv(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Hl(t,e,n,i,r){var o=at(n)?si:Je.current;return o=Ui(e,o),Hi(e,r),n=id(t,e,n,i,o,r),i=rd(),t!==null&&!ot?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,fn(t,e,r)):(ye&&i&&Uu(e),e.flags|=1,qe(t,e,n,r),e.child)}function Jc(t,e,n,i,r){if(at(n)){var o=!0;ms(e)}else o=!1;if(Hi(e,r),e.stateNode===null)Ko(t,e),_v(e,n,i),Fl(e,n,i,r),i=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Dt(u):(u=at(n)?si:Je.current,u=Ui(e,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==i||l!==u)&&Bc(e,s,i,u),kn=!1;var h=e.memoizedState;s.state=h,xs(e,i,s,r),l=e.memoizedState,a!==i||h!==l||st.current||kn?(typeof c=="function"&&(Vl(e,n,c,i),l=e.memoizedState),(a=kn||Wc(e,n,a,i,h,l,u))?(d||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"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=l),s.props=i,s.state=l,s.context=u,i=a):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{s=e.stateNode,tv(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:Tt(e.type,a),s.props=u,d=e.pendingProps,h=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Dt(l):(l=at(n)?si:Je.current,l=Ui(e,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Bc(e,s,i,l),kn=!1,h=e.memoizedState,s.state=h,xs(e,i,s,r);var v=e.memoizedState;a!==d||h!==v||st.current||kn?(typeof p=="function"&&(Vl(e,n,p,i),v=e.memoizedState),(u=kn||Wc(e,n,u,i,h,v,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(i,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(i,v,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=v),s.props=i,s.state=v,s.context=l,i=u):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),i=!1)}return Wl(t,e,n,i,o,r)}function Wl(t,e,n,i,r,o){zv(t,e);var s=(e.flags&128)!==0;if(!i&&!s)return r&&Lc(e,n,!1),fn(t,e,o);i=e.stateNode,ly.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:i.render();return e.flags|=1,t!==null&&s?(e.child=Yi(e,t.child,null,o),e.child=Yi(e,null,a,o)):qe(t,e,a,o),e.memoizedState=i.state,r&&Lc(e,n,!0),e.child}function Ev(t){var e=t.stateNode;e.pendingContext?Oc(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Oc(t,e.context,!1),Ku(t,e.containerInfo)}function Zc(t,e,n,i,r){return $i(),Yu(r),e.flags|=256,qe(t,e,n,i),e.child}var Bl={dehydrated:null,treeContext:null,retryLane:0};function jl(t){return{baseLanes:t,cachePool:null,transitions:null}}function Pv(t,e,n){var i=e.pendingProps,r=ke.current,o=!1,s=(e.flags&128)!==0,a;if((a=s)||(a=t!==null&&t.memoizedState===null?!1:(r&2)!==0),a?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(r|=1),ve(ke,r&1),t===null)return Nl(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(s=i.children,t=i.fallback,o?(i=e.mode,o=e.child,s={mode:"hidden",children:s},!(i&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Xs(s,i,0,null),t=ii(t,i,n,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=jl(n),e.memoizedState=Bl,t):ad(e,s));if(r=t.memoizedState,r!==null&&(a=r.dehydrated,a!==null))return uy(t,e,s,i,a,r,n);if(o){o=i.fallback,s=e.mode,r=t.child,a=r.sibling;var l={mode:"hidden",children:i.children};return!(s&1)&&e.child!==r?(i=e.child,i.childLanes=0,i.pendingProps=l,e.deletions=null):(i=Nn(r,l),i.subtreeFlags=r.subtreeFlags&14680064),a!==null?o=Nn(a,o):(o=ii(o,s,n,null),o.flags|=2),o.return=e,i.return=e,i.sibling=o,e.child=i,i=o,o=e.child,s=t.child.memoizedState,s=s===null?jl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=t.childLanes&~n,e.memoizedState=Bl,i}return o=t.child,t=o.sibling,i=Nn(o,{mode:"visible",children:i.children}),!(e.mode&1)&&(i.lanes=n),i.return=e,i.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=i,e.memoizedState=null,i}function ad(t,e){return e=Xs({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Po(t,e,n,i){return i!==null&&Yu(i),Yi(e,t.child,null,n),t=ad(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function uy(t,e,n,i,r,o,s){if(n)return e.flags&256?(e.flags&=-257,i=Fa(Error(I(422))),Po(t,e,s,i)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=i.fallback,r=e.mode,i=Xs({mode:"visible",children:i.children},r,0,null),o=ii(o,r,s,null),o.flags|=2,i.return=e,o.return=e,i.sibling=o,e.child=i,e.mode&1&&Yi(e,t.child,null,s),e.child.memoizedState=jl(s),e.memoizedState=Bl,o);if(!(e.mode&1))return Po(t,e,s,null);if(r.data==="$!"){if(i=r.nextSibling&&r.nextSibling.dataset,i)var a=i.dgst;return i=a,o=Error(I(419)),i=Fa(o,i,void 0),Po(t,e,s,i)}if(a=(s&t.childLanes)!==0,ot||a){if(i=Ge,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,pn(t,r),Mt(i,t,r,-1))}return pd(),i=Fa(Error(I(421))),Po(t,e,s,i)}return r.data==="$?"?(e.flags|=128,e.child=t.child,e=_y.bind(null,t),r._reactRetry=e,null):(t=o.treeContext,pt=Tn(r.nextSibling),ft=e,ye=!0,Lt=null,t!==null&&(yt[xt++]=an,yt[xt++]=ln,yt[xt++]=ai,an=t.id,ln=t.overflow,ai=e),e=ad(e,i.children),e.flags|=4096,e)}function Xc(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Ml(t.return,e,n)}function Ga(t,e,n,i,r){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=r)}function Av(t,e,n){var i=e.pendingProps,r=i.revealOrder,o=i.tail;if(qe(t,e,i.children,n),i=ke.current,i&2)i=i&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Xc(t,n,e);else if(t.tag===19)Xc(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}if(ve(ke,i),!(e.mode&1))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&_s(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),Ga(e,!1,r,n,o);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&_s(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}Ga(e,!0,n,null,o);break;case"together":Ga(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Ko(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function fn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ui|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(I(153));if(e.child!==null){for(t=e.child,n=Nn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Nn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function dy(t,e,n){switch(e.tag){case 3:Ev(e),$i();break;case 5:nv(e);break;case 1:at(e.type)&&ms(e);break;case 4:Ku(e,e.stateNode.containerInfo);break;case 10:var i=e.type._context,r=e.memoizedProps.value;ve(ws,i._currentValue),i._currentValue=r;break;case 13:if(i=e.memoizedState,i!==null)return i.dehydrated!==null?(ve(ke,ke.current&1),e.flags|=128,null):n&e.child.childLanes?Pv(t,e,n):(ve(ke,ke.current&1),t=fn(t,e,n),t!==null?t.sibling:null);ve(ke,ke.current&1);break;case 19:if(i=(n&e.childLanes)!==0,t.flags&128){if(i)return Av(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ve(ke,ke.current),i)break;return null;case 22:case 23:return e.lanes=0,Dv(t,e,n)}return fn(t,e,n)}var Iv,Ul,Tv,Ov;Iv=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ul=function(){};Tv=function(t,e,n,i){var r=t.memoizedProps;if(r!==i){t=e.stateNode,ti(Zt.current);var o=null;switch(n){case"input":r=pl(t,r),i=pl(t,i),o=[];break;case"select":r=Ce({},r,{value:void 0}),i=Ce({},i,{value:void 0}),o=[];break;case"textarea":r=ml(t,r),i=ml(t,i),o=[];break;default:typeof r.onClick!="function"&&typeof i.onClick=="function"&&(t.onclick=fs)}bl(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"&&(Nr.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"&&(Nr.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ge("scroll",t),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(e.updateQueue=u)&&(e.flags|=4)}};Ov=function(t,e,n,i){n!==i&&(e.flags|=4)};function pr(t,e){if(!ye)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function $e(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&14680064,i|=r.flags&14680064,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function cy(t,e,n){var i=e.pendingProps;switch($u(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(e),null;case 1:return at(e.type)&&vs(),$e(e),null;case 3:return i=e.stateNode,Qi(),we(st),we(Je),td(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(zo(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Lt!==null&&(Kl(Lt),Lt=null))),Ul(t,e),$e(e),null;case 5:ed(e);var r=ti(Qr.current);if(n=e.type,t!==null&&e.stateNode!=null)Tv(t,e,n,i,r),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!i){if(e.stateNode===null)throw Error(I(166));return $e(e),null}if(t=ti(Zt.current),zo(e)){i=e.stateNode,n=e.type;var o=e.memoizedProps;switch(i[Yt]=e,i[$r]=o,t=(e.mode&1)!==0,n){case"dialog":ge("cancel",i),ge("close",i);break;case"iframe":case"object":case"embed":ge("load",i);break;case"video":case"audio":for(r=0;r<_r.length;r++)ge(_r[r],i);break;case"source":ge("error",i);break;case"img":case"image":case"link":ge("error",i),ge("load",i);break;case"details":ge("toggle",i);break;case"input":sc(i,o),ge("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!o.multiple},ge("invalid",i);break;case"textarea":lc(i,o),ge("invalid",i)}bl(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&&Do(i.textContent,a,t),r=["children",a]):typeof a=="number"&&i.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Do(i.textContent,a,t),r=["children",""+a]):Nr.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&ge("scroll",i)}switch(n){case"input":bo(i),ac(i,o,!0);break;case"textarea":bo(i),uc(i);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(i.onclick=fs)}i=r,e.updateQueue=i,i!==null&&(e.flags|=4)}else{s=r.nodeType===9?r:r.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=af(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=s.createElement(n,{is:i.is}):(t=s.createElement(n),n==="select"&&(s=t,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):t=s.createElementNS(t,n),t[Yt]=e,t[$r]=i,Iv(t,e,!1,!1),e.stateNode=t;e:{switch(s=wl(n,i),n){case"dialog":ge("cancel",t),ge("close",t),r=i;break;case"iframe":case"object":case"embed":ge("load",t),r=i;break;case"video":case"audio":for(r=0;r<_r.length;r++)ge(_r[r],t);r=i;break;case"source":ge("error",t),r=i;break;case"img":case"image":case"link":ge("error",t),ge("load",t),r=i;break;case"details":ge("toggle",t),r=i;break;case"input":sc(t,i),r=pl(t,i),ge("invalid",t);break;case"option":r=i;break;case"select":t._wrapperState={wasMultiple:!!i.multiple},r=Ce({},i,{value:void 0}),ge("invalid",t);break;case"textarea":lc(t,i),r=ml(t,i),ge("invalid",t);break;default:r=i}bl(n,r),a=r;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?df(t,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&lf(t,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Mr(t,l):typeof l=="number"&&Mr(t,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Nr.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ge("scroll",t):l!=null&&Iu(t,o,l,s))}switch(n){case"input":bo(t),ac(t,i,!1);break;case"textarea":bo(t),uc(t);break;case"option":i.value!=null&&t.setAttribute("value",""+Vn(i.value));break;case"select":t.multiple=!!i.multiple,o=i.value,o!=null?Mi(t,!!i.multiple,o,!1):i.defaultValue!=null&&Mi(t,!!i.multiple,i.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=fs)}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&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return $e(e),null;case 6:if(t&&e.stateNode!=null)Ov(t,e,t.memoizedProps,i);else{if(typeof i!="string"&&e.stateNode===null)throw Error(I(166));if(n=ti(Qr.current),ti(Zt.current),zo(e)){if(i=e.stateNode,n=e.memoizedProps,i[Yt]=e,(o=i.nodeValue!==n)&&(t=ft,t!==null))switch(t.tag){case 3:Do(i.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Do(i.nodeValue,n,(t.mode&1)!==0)}o&&(e.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Yt]=e,e.stateNode=i}return $e(e),null;case 13:if(we(ke),i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(ye&&pt!==null&&e.mode&1&&!(e.flags&128))Xf(),$i(),e.flags|=98560,o=!1;else if(o=zo(e),i!==null&&i.dehydrated!==null){if(t===null){if(!o)throw Error(I(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(I(317));o[Yt]=e}else $i(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;$e(e),o=!1}else Lt!==null&&(Kl(Lt),Lt=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(i=i!==null,i!==(t!==null&&t.memoizedState!==null)&&i&&(e.child.flags|=8192,e.mode&1&&(t===null||ke.current&1?Ne===0&&(Ne=3):pd())),e.updateQueue!==null&&(e.flags|=4),$e(e),null);case 4:return Qi(),Ul(t,e),t===null&&jr(e.stateNode.containerInfo),$e(e),null;case 10:return Zu(e.type._context),$e(e),null;case 17:return at(e.type)&&vs(),$e(e),null;case 19:if(we(ke),o=e.memoizedState,o===null)return $e(e),null;if(i=(e.flags&128)!==0,s=o.rendering,s===null)if(i)pr(o,!1);else{if(Ne!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(s=_s(t),s!==null){for(e.flags|=128,pr(o,!1),i=s.updateQueue,i!==null&&(e.updateQueue=i,e.flags|=4),e.subtreeFlags=0,i=n,n=e.child;n!==null;)o=n,t=i,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=t,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,t=s.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ve(ke,ke.current&1|2),e.child}t=t.sibling}o.tail!==null&&Ee()>Zi&&(e.flags|=128,i=!0,pr(o,!1),e.lanes=4194304)}else{if(!i)if(t=_s(s),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),pr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ye)return $e(e),null}else 2*Ee()-o.renderingStartTime>Zi&&n!==1073741824&&(e.flags|=128,i=!0,pr(o,!1),e.lanes=4194304);o.isBackwards?(s.sibling=e.child,e.child=s):(n=o.last,n!==null?n.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ee(),e.sibling=null,n=ke.current,ve(ke,i?n&1|2:n&1),e):($e(e),null);case 22:case 23:return hd(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?ht&1073741824&&($e(e),e.subtreeFlags&6&&(e.flags|=8192)):$e(e),null;case 24:return null;case 25:return null}throw Error(I(156,e.tag))}function hy(t,e){switch($u(e),e.tag){case 1:return at(e.type)&&vs(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qi(),we(st),we(Je),td(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return ed(e),null;case 13:if(we(ke),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(I(340));$i()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return we(ke),null;case 4:return Qi(),null;case 10:return Zu(e.type._context),null;case 22:case 23:return hd(),null;case 24:return null;default:return null}}var Ao=!1,Ye=!1,py=typeof WeakSet=="function"?WeakSet:Set,F=null;function Ri(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){ze(t,e,i)}else n.current=null}function $l(t,e,n){try{n()}catch(i){ze(t,e,i)}}var qc=!1;function fy(t,e){if(Pl=cs,t=Vf(),ju(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.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,c=0,d=t,h=null;t:for(;;){for(var p;d!==n||r!==0&&d.nodeType!==3||(a=s+r),d!==o||i!==0&&d.nodeType!==3||(l=s+i),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===t)break t;if(h===n&&++u===r&&(a=s),h===o&&++c===i&&(l=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Al={focusedElem:t,selectionRange:n},cs=!1,F=e;F!==null;)if(e=F,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,F=t;else for(;F!==null;){e=F;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var m=v.memoizedProps,y=v.memoizedState,f=e.stateNode,g=f.getSnapshotBeforeUpdate(e.elementType===e.type?m:Tt(e.type,m),y);f.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=e.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(I(163))}}catch(k){ze(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,F=t;break}F=e.return}return v=qc,qc=!1,v}function Pr(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&t)===t){var o=r.destroy;r.destroy=void 0,o!==void 0&&$l(e,n,o)}r=r.next}while(r!==i)}}function Js(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function Yl(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function Lv(t){var e=t.alternate;e!==null&&(t.alternate=null,Lv(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Yt],delete e[$r],delete e[Ol],delete e[Zw],delete e[Xw])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Rv(t){return t.tag===5||t.tag===3||t.tag===4}function Kc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Rv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ql(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=fs));else if(i!==4&&(t=t.child,t!==null))for(Ql(t,e,n),t=t.sibling;t!==null;)Ql(t,e,n),t=t.sibling}function Jl(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(Jl(t,e,n),t=t.sibling;t!==null;)Jl(t,e,n),t=t.sibling}var He=null,Ot=!1;function gn(t,e,n){for(n=n.child;n!==null;)Nv(t,e,n),n=n.sibling}function Nv(t,e,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(Hs,n)}catch{}switch(n.tag){case 5:Ye||Ri(n,e);case 6:var i=He,r=Ot;He=null,gn(t,e,n),He=i,Ot=r,He!==null&&(Ot?(t=He,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Ot?(t=He,n=n.stateNode,t.nodeType===8?Oa(t.parentNode,n):t.nodeType===1&&Oa(t,n),Hr(t)):Oa(He,n.stateNode));break;case 4:i=He,r=Ot,He=n.stateNode.containerInfo,Ot=!0,gn(t,e,n),He=i,Ot=r;break;case 0:case 11:case 14:case 15:if(!Ye&&(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)&&$l(n,e,s),r=r.next}while(r!==i)}gn(t,e,n);break;case 1:if(!Ye&&(Ri(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){ze(n,e,a)}gn(t,e,n);break;case 21:gn(t,e,n);break;case 22:n.mode&1?(Ye=(i=Ye)||n.memoizedState!==null,gn(t,e,n),Ye=i):gn(t,e,n);break;default:gn(t,e,n)}}function eh(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new py),e.forEach(function(i){var r=ky.bind(null,t,i);n.has(i)||(n.add(i),i.then(r,r))})}}function At(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i];try{var o=t,s=e,a=s;e:for(;a!==null;){switch(a.tag){case 5:He=a.stateNode,Ot=!1;break e;case 3:He=a.stateNode.containerInfo,Ot=!0;break e;case 4:He=a.stateNode.containerInfo,Ot=!0;break e}a=a.return}if(He===null)throw Error(I(160));Nv(o,s,r),He=null,Ot=!1;var l=r.alternate;l!==null&&(l.return=null),r.return=null}catch(u){ze(r,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Mv(e,t),e=e.sibling}function Mv(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(At(e,t),Wt(t),i&4){try{Pr(3,t,t.return),Js(3,t)}catch(m){ze(t,t.return,m)}try{Pr(5,t,t.return)}catch(m){ze(t,t.return,m)}}break;case 1:At(e,t),Wt(t),i&512&&n!==null&&Ri(n,n.return);break;case 5:if(At(e,t),Wt(t),i&512&&n!==null&&Ri(n,n.return),t.flags&32){var r=t.stateNode;try{Mr(r,"")}catch(m){ze(t,t.return,m)}}if(i&4&&(r=t.stateNode,r!=null)){var o=t.memoizedProps,s=n!==null?n.memoizedProps:o,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&of(r,o),wl(a,s);var u=wl(a,o);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?df(r,d):c==="dangerouslySetInnerHTML"?lf(r,d):c==="children"?Mr(r,d):Iu(r,c,d,u)}switch(a){case"input":fl(r,o);break;case"textarea":sf(r,o);break;case"select":var h=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Mi(r,!!o.multiple,p,!1):h!==!!o.multiple&&(o.defaultValue!=null?Mi(r,!!o.multiple,o.defaultValue,!0):Mi(r,!!o.multiple,o.multiple?[]:"",!1))}r[$r]=o}catch(m){ze(t,t.return,m)}}break;case 6:if(At(e,t),Wt(t),i&4){if(t.stateNode===null)throw Error(I(162));r=t.stateNode,o=t.memoizedProps;try{r.nodeValue=o}catch(m){ze(t,t.return,m)}}break;case 3:if(At(e,t),Wt(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Hr(e.containerInfo)}catch(m){ze(t,t.return,m)}break;case 4:At(e,t),Wt(t);break;case 13:At(e,t),Wt(t),r=t.child,r.flags&8192&&(o=r.memoizedState!==null,r.stateNode.isHidden=o,!o||r.alternate!==null&&r.alternate.memoizedState!==null||(dd=Ee())),i&4&&eh(t);break;case 22:if(c=n!==null&&n.memoizedState!==null,t.mode&1?(Ye=(u=Ye)||c,At(e,t),Ye=u):At(e,t),Wt(t),i&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!c&&t.mode&1)for(F=t,c=t.child;c!==null;){for(d=F=c;F!==null;){switch(h=F,p=h.child,h.tag){case 0:case 11:case 14:case 15:Pr(4,h,h.return);break;case 1:Ri(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){i=h,n=h.return;try{e=i,v.props=e.memoizedProps,v.state=e.memoizedState,v.componentWillUnmount()}catch(m){ze(i,n,m)}}break;case 5:Ri(h,h.return);break;case 22:if(h.memoizedState!==null){nh(d);continue}}p!==null?(p.return=h,F=p):nh(d)}c=c.sibling}e:for(c=null,d=t;;){if(d.tag===5){if(c===null){c=d;try{r=d.stateNode,u?(o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=uf("display",s))}catch(m){ze(t,t.return,m)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(m){ze(t,t.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:At(e,t),Wt(t),i&4&&eh(t);break;case 21:break;default:At(e,t),Wt(t)}}function Wt(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(Rv(n)){var i=n;break e}n=n.return}throw Error(I(160))}switch(i.tag){case 5:var r=i.stateNode;i.flags&32&&(Mr(r,""),i.flags&=-33);var o=Kc(t);Jl(t,o,r);break;case 3:case 4:var s=i.stateNode.containerInfo,a=Kc(t);Ql(t,a,s);break;default:throw Error(I(161))}}catch(l){ze(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function vy(t,e,n){F=t,Vv(t)}function Vv(t,e,n){for(var i=(t.mode&1)!==0;F!==null;){var r=F,o=r.child;if(r.tag===22&&i){var s=r.memoizedState!==null||Ao;if(!s){var a=r.alternate,l=a!==null&&a.memoizedState!==null||Ye;a=Ao;var u=Ye;if(Ao=s,(Ye=l)&&!u)for(F=r;F!==null;)s=F,l=s.child,s.tag===22&&s.memoizedState!==null?ih(r):l!==null?(l.return=s,F=l):ih(r);for(;o!==null;)F=o,Vv(o),o=o.sibling;F=r,Ao=a,Ye=u}th(t)}else r.subtreeFlags&8772&&o!==null?(o.return=r,F=o):th(t)}}function th(t){for(;F!==null;){var e=F;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Ye||Js(5,e);break;case 1:var i=e.stateNode;if(e.flags&4&&!Ye)if(n===null)i.componentDidMount();else{var r=e.elementType===e.type?n.memoizedProps:Tt(e.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&Fc(e,o,i);break;case 3:var s=e.updateQueue;if(s!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Fc(e,s,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.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(e.memoizedState===null){var u=e.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Hr(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}Ye||e.flags&512&&Yl(e)}catch(h){ze(e,e.return,h)}}if(e===t){F=null;break}if(n=e.sibling,n!==null){n.return=e.return,F=n;break}F=e.return}}function nh(t){for(;F!==null;){var e=F;if(e===t){F=null;break}var n=e.sibling;if(n!==null){n.return=e.return,F=n;break}F=e.return}}function ih(t){for(;F!==null;){var e=F;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{Js(4,e)}catch(l){ze(e,n,l)}break;case 1:var i=e.stateNode;if(typeof i.componentDidMount=="function"){var r=e.return;try{i.componentDidMount()}catch(l){ze(e,r,l)}}var o=e.return;try{Yl(e)}catch(l){ze(e,o,l)}break;case 5:var s=e.return;try{Yl(e)}catch(l){ze(e,s,l)}}}catch(l){ze(e,e.return,l)}if(e===t){F=null;break}var a=e.sibling;if(a!==null){a.return=e.return,F=a;break}F=e.return}}var my=Math.ceil,Cs=vn.ReactCurrentDispatcher,ld=vn.ReactCurrentOwner,Ct=vn.ReactCurrentBatchConfig,le=0,Ge=null,Ae=null,Be=0,ht=0,Ni=Hn(0),Ne=0,qr=null,ui=0,Zs=0,ud=0,Ar=null,rt=null,dd=0,Zi=1/0,on=null,Ds=!1,Zl=null,Ln=null,Io=!1,zn=null,zs=0,Ir=0,Xl=null,es=-1,ts=0;function et(){return le&6?Ee():es!==-1?es:es=Ee()}function Rn(t){return t.mode&1?le&2&&Be!==0?Be&-Be:Kw.transition!==null?(ts===0&&(ts=_f()),ts):(t=de,t!==0||(t=window.event,t=t===void 0?16:Pf(t.type)),t):1}function Mt(t,e,n,i){if(50<Ir)throw Ir=0,Xl=null,Error(I(185));so(t,n,i),(!(le&2)||t!==Ge)&&(t===Ge&&(!(le&2)&&(Zs|=n),Ne===4&&Cn(t,Be)),lt(t,i),n===1&&le===0&&!(e.mode&1)&&(Zi=Ee()+500,$s&&Wn()))}function lt(t,e){var n=t.callbackNode;Kb(t,e);var i=ds(t,t===Ge?Be:0);if(i===0)n!==null&&hc(n),t.callbackNode=null,t.callbackPriority=0;else if(e=i&-i,t.callbackPriority!==e){if(n!=null&&hc(n),e===1)t.tag===0?qw(rh.bind(null,t)):Qf(rh.bind(null,t)),Qw(function(){!(le&6)&&Wn()}),n=null;else{switch(kf(i)){case 1:n=Nu;break;case 4:n=yf;break;case 16:n=us;break;case 536870912:n=xf;break;default:n=us}n=$v(n,Fv.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function Fv(t,e){if(es=-1,ts=0,le&6)throw Error(I(327));var n=t.callbackNode;if(Wi()&&t.callbackNode!==n)return null;var i=ds(t,t===Ge?Be:0);if(i===0)return null;if(i&30||i&t.expiredLanes||e)e=Es(t,i);else{e=i;var r=le;le|=2;var o=Hv();(Ge!==t||Be!==e)&&(on=null,Zi=Ee()+500,ni(t,e));do try{wy();break}catch(a){Gv(t,a)}while(!0);Ju(),Cs.current=o,le=r,Ae!==null?e=0:(Ge=null,Be=0,e=Ne)}if(e!==0){if(e===2&&(r=Sl(t),r!==0&&(i=r,e=ql(t,r))),e===1)throw n=qr,ni(t,0),Cn(t,i),lt(t,Ee()),n;if(e===6)Cn(t,i);else{if(r=t.current.alternate,!(i&30)&&!gy(r)&&(e=Es(t,i),e===2&&(o=Sl(t),o!==0&&(i=o,e=ql(t,o))),e===1))throw n=qr,ni(t,0),Cn(t,i),lt(t,Ee()),n;switch(t.finishedWork=r,t.finishedLanes=i,e){case 0:case 1:throw Error(I(345));case 2:Xn(t,rt,on);break;case 3:if(Cn(t,i),(i&130023424)===i&&(e=dd+500-Ee(),10<e)){if(ds(t,0)!==0)break;if(r=t.suspendedLanes,(r&i)!==i){et(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=Tl(Xn.bind(null,t,rt,on),e);break}Xn(t,rt,on);break;case 4:if(Cn(t,i),(i&4194240)===i)break;for(e=t.eventTimes,r=-1;0<i;){var s=31-Nt(i);o=1<<s,s=e[s],s>r&&(r=s),i&=~o}if(i=r,i=Ee()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*my(i/1960))-i,10<i){t.timeoutHandle=Tl(Xn.bind(null,t,rt,on),i);break}Xn(t,rt,on);break;case 5:Xn(t,rt,on);break;default:throw Error(I(329))}}}return lt(t,Ee()),t.callbackNode===n?Fv.bind(null,t):null}function ql(t,e){var n=Ar;return t.current.memoizedState.isDehydrated&&(ni(t,e).flags|=256),t=Es(t,e),t!==2&&(e=rt,rt=n,e!==null&&Kl(e)),t}function Kl(t){rt===null?rt=t:rt.push.apply(rt,t)}function gy(t){for(var e=t;;){if(e.flags&16384){var n=e.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(!Ft(o(),r))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Cn(t,e){for(e&=~ud,e&=~Zs,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Nt(e),i=1<<n;t[n]=-1,e&=~i}}function rh(t){if(le&6)throw Error(I(327));Wi();var e=ds(t,0);if(!(e&1))return lt(t,Ee()),null;var n=Es(t,e);if(t.tag!==0&&n===2){var i=Sl(t);i!==0&&(e=i,n=ql(t,i))}if(n===1)throw n=qr,ni(t,0),Cn(t,e),lt(t,Ee()),n;if(n===6)throw Error(I(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Xn(t,rt,on),lt(t,Ee()),null}function cd(t,e){var n=le;le|=1;try{return t(e)}finally{le=n,le===0&&(Zi=Ee()+500,$s&&Wn())}}function di(t){zn!==null&&zn.tag===0&&!(le&6)&&Wi();var e=le;le|=1;var n=Ct.transition,i=de;try{if(Ct.transition=null,de=1,t)return t()}finally{de=i,Ct.transition=n,le=e,!(le&6)&&Wn()}}function hd(){ht=Ni.current,we(Ni)}function ni(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,Yw(n)),Ae!==null)for(n=Ae.return;n!==null;){var i=n;switch($u(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&vs();break;case 3:Qi(),we(st),we(Je),td();break;case 5:ed(i);break;case 4:Qi();break;case 13:we(ke);break;case 19:we(ke);break;case 10:Zu(i.type._context);break;case 22:case 23:hd()}n=n.return}if(Ge=t,Ae=t=Nn(t.current,null),Be=ht=e,Ne=0,qr=null,ud=Zs=ui=0,rt=Ar=null,ei!==null){for(e=0;e<ei.length;e++)if(n=ei[e],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}ei=null}return t}function Gv(t,e){do{var n=Ae;try{if(Ju(),Xo.current=Ss,ks){for(var i=Se.memoizedState;i!==null;){var r=i.queue;r!==null&&(r.pending=null),i=i.next}ks=!1}if(li=0,Fe=Re=Se=null,Er=!1,Jr=0,ld.current=null,n===null||n.return===null){Ne=1,qr=e,Ae=null;break}e:{var o=t,s=n.return,a=n,l=e;if(e=Be,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Uc(s);if(p!==null){p.flags&=-257,$c(p,s,a,o,e),p.mode&1&&jc(o,u,e),e=p,l=u;var v=e.updateQueue;if(v===null){var m=new Set;m.add(l),e.updateQueue=m}else v.add(l);break e}else{if(!(e&1)){jc(o,u,e),pd();break e}l=Error(I(426))}}else if(ye&&a.mode&1){var y=Uc(s);if(y!==null){!(y.flags&65536)&&(y.flags|=256),$c(y,s,a,o,e),Yu(Ji(l,a));break e}}o=l=Ji(l,a),Ne!==4&&(Ne=2),Ar===null?Ar=[o]:Ar.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var f=kv(o,l,e);Vc(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"&&(Ln===null||!Ln.has(b)))){o.flags|=65536,e&=-e,o.lanes|=e;var k=Sv(o,a,e);Vc(o,k);break e}}o=o.return}while(o!==null)}Bv(n)}catch(D){e=D,Ae===n&&n!==null&&(Ae=n=n.return);continue}break}while(!0)}function Hv(){var t=Cs.current;return Cs.current=Ss,t===null?Ss:t}function pd(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),Ge===null||!(ui&268435455)&&!(Zs&268435455)||Cn(Ge,Be)}function Es(t,e){var n=le;le|=2;var i=Hv();(Ge!==t||Be!==e)&&(on=null,ni(t,e));do try{by();break}catch(r){Gv(t,r)}while(!0);if(Ju(),le=n,Cs.current=i,Ae!==null)throw Error(I(261));return Ge=null,Be=0,Ne}function by(){for(;Ae!==null;)Wv(Ae)}function wy(){for(;Ae!==null&&!jb();)Wv(Ae)}function Wv(t){var e=Uv(t.alternate,t,ht);t.memoizedProps=t.pendingProps,e===null?Bv(t):Ae=e,ld.current=null}function Bv(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=hy(n,e),n!==null){n.flags&=32767,Ae=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ne=6,Ae=null;return}}else if(n=cy(n,e,ht),n!==null){Ae=n;return}if(e=e.sibling,e!==null){Ae=e;return}Ae=e=t}while(e!==null);Ne===0&&(Ne=5)}function Xn(t,e,n){var i=de,r=Ct.transition;try{Ct.transition=null,de=1,yy(t,e,n,i)}finally{Ct.transition=r,de=i}return null}function yy(t,e,n,i){do Wi();while(zn!==null);if(le&6)throw Error(I(327));n=t.finishedWork;var r=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(I(177));t.callbackNode=null,t.callbackPriority=0;var o=n.lanes|n.childLanes;if(ew(t,o),t===Ge&&(Ae=Ge=null,Be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Io||(Io=!0,$v(us,function(){return Wi(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ct.transition,Ct.transition=null;var s=de;de=1;var a=le;le|=4,ld.current=null,fy(t,n),Mv(n,t),Gw(Al),cs=!!Pl,Al=Pl=null,t.current=n,vy(n),Ub(),le=a,de=s,Ct.transition=o}else t.current=n;if(Io&&(Io=!1,zn=t,zs=r),o=t.pendingLanes,o===0&&(Ln=null),Qb(n.stateNode),lt(t,Ee()),e!==null)for(i=t.onRecoverableError,n=0;n<e.length;n++)r=e[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(Ds)throw Ds=!1,t=Zl,Zl=null,t;return zs&1&&t.tag!==0&&Wi(),o=t.pendingLanes,o&1?t===Xl?Ir++:(Ir=0,Xl=t):Ir=0,Wn(),null}function Wi(){if(zn!==null){var t=kf(zs),e=Ct.transition,n=de;try{if(Ct.transition=null,de=16>t?16:t,zn===null)var i=!1;else{if(t=zn,zn=null,zs=0,le&6)throw Error(I(331));var r=le;for(le|=4,F=t.current;F!==null;){var o=F,s=o.child;if(F.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(F=u;F!==null;){var c=F;switch(c.tag){case 0:case 11:case 15:Pr(8,c,o)}var d=c.child;if(d!==null)d.return=c,F=d;else for(;F!==null;){c=F;var h=c.sibling,p=c.return;if(Lv(c),c===u){F=null;break}if(h!==null){h.return=p,F=h;break}F=p}}}var v=o.alternate;if(v!==null){var m=v.child;if(m!==null){v.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(m!==null)}}F=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,F=s;else e:for(;F!==null;){if(o=F,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Pr(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,F=f;break e}F=o.return}}var g=t.current;for(F=g;F!==null;){s=F;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,F=b;else e:for(s=g;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Js(9,a)}}catch(D){ze(a,a.return,D)}if(a===s){F=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,F=k;break e}F=a.return}}if(le=r,Wn(),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(Hs,t)}catch{}i=!0}return i}finally{de=n,Ct.transition=e}}return!1}function oh(t,e,n){e=Ji(n,e),e=kv(t,e,1),t=On(t,e,1),e=et(),t!==null&&(so(t,1,e),lt(t,e))}function ze(t,e,n){if(t.tag===3)oh(t,t,n);else for(;e!==null;){if(e.tag===3){oh(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ln===null||!Ln.has(i))){t=Ji(n,t),t=Sv(e,t,1),e=On(e,t,1),t=et(),e!==null&&(so(e,1,t),lt(e,t));break}}e=e.return}}function xy(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),e=et(),t.pingedLanes|=t.suspendedLanes&n,Ge===t&&(Be&n)===n&&(Ne===4||Ne===3&&(Be&130023424)===Be&&500>Ee()-dd?ni(t,0):ud|=n),lt(t,e)}function jv(t,e){e===0&&(t.mode&1?(e=xo,xo<<=1,!(xo&130023424)&&(xo=4194304)):e=1);var n=et();t=pn(t,e),t!==null&&(so(t,e,n),lt(t,n))}function _y(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),jv(t,n)}function ky(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(I(314))}i!==null&&i.delete(e),jv(t,n)}var Uv;Uv=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||st.current)ot=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return ot=!1,dy(t,e,n);ot=!!(t.flags&131072)}else ot=!1,ye&&e.flags&1048576&&Jf(e,bs,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;Ko(t,e),t=e.pendingProps;var r=Ui(e,Je.current);Hi(e,n),r=id(null,e,i,t,r,n);var o=rd();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,at(i)?(o=!0,ms(e)):o=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,qu(e),r.updater=Qs,e.stateNode=r,r._reactInternals=e,Fl(e,i,t,n),e=Wl(null,e,i,!0,o,n)):(e.tag=0,ye&&o&&Uu(e),qe(null,e,r,n),e=e.child),e;case 16:i=e.elementType;e:{switch(Ko(t,e),t=e.pendingProps,r=i._init,i=r(i._payload),e.type=i,r=e.tag=Cy(i),t=Tt(i,t),r){case 0:e=Hl(null,e,i,t,n);break e;case 1:e=Jc(null,e,i,t,n);break e;case 11:e=Yc(null,e,i,t,n);break e;case 14:e=Qc(null,e,i,Tt(i.type,t),n);break e}throw Error(I(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Tt(i,r),Hl(t,e,i,r,n);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Tt(i,r),Jc(t,e,i,r,n);case 3:e:{if(Ev(e),t===null)throw Error(I(387));i=e.pendingProps,o=e.memoizedState,r=o.element,tv(t,e),xs(e,i,null,n);var s=e.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){r=Ji(Error(I(423)),e),e=Zc(t,e,i,n,r);break e}else if(i!==r){r=Ji(Error(I(424)),e),e=Zc(t,e,i,n,r);break e}else for(pt=Tn(e.stateNode.containerInfo.firstChild),ft=e,ye=!0,Lt=null,n=Kf(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($i(),i===r){e=fn(t,e,n);break e}qe(t,e,i,n)}e=e.child}return e;case 5:return nv(e),t===null&&Nl(e),i=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,s=r.children,Il(i,r)?s=null:o!==null&&Il(i,o)&&(e.flags|=32),zv(t,e),qe(t,e,s,n),e.child;case 6:return t===null&&Nl(e),null;case 13:return Pv(t,e,n);case 4:return Ku(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Yi(e,null,i,n):qe(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Tt(i,r),Yc(t,e,i,r,n);case 7:return qe(t,e,e.pendingProps,n),e.child;case 8:return qe(t,e,e.pendingProps.children,n),e.child;case 12:return qe(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(i=e.type._context,r=e.pendingProps,o=e.memoizedProps,s=r.value,ve(ws,i._currentValue),i._currentValue=s,o!==null)if(Ft(o.value,s)){if(o.children===r.children&&!st.current){e=fn(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);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=dn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Ml(o.return,n,e),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===e.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(I(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ml(s,n,e),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===e){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}qe(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,Hi(e,n),r=Dt(r),i=i(r),e.flags|=1,qe(t,e,i,n),e.child;case 14:return i=e.type,r=Tt(i,e.pendingProps),r=Tt(i.type,r),Qc(t,e,i,r,n);case 15:return Cv(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Tt(i,r),Ko(t,e),e.tag=1,at(i)?(t=!0,ms(e)):t=!1,Hi(e,n),_v(e,i,r),Fl(e,i,r,n),Wl(null,e,i,!0,t,n);case 19:return Av(t,e,n);case 22:return Dv(t,e,n)}throw Error(I(156,e.tag))};function $v(t,e){return wf(t,e)}function Sy(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 kt(t,e,n,i){return new Sy(t,e,n,i)}function fd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Cy(t){if(typeof t=="function")return fd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Ou)return 11;if(t===Lu)return 14}return 2}function Nn(t,e){var n=t.alternate;return n===null?(n=kt(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function ns(t,e,n,i,r,o){var s=2;if(i=t,typeof t=="function")fd(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case Di:return ii(n.children,r,o,e);case Tu:s=8,r|=8;break;case ul:return t=kt(12,n,e,r|2),t.elementType=ul,t.lanes=o,t;case dl:return t=kt(13,n,e,r),t.elementType=dl,t.lanes=o,t;case cl:return t=kt(19,n,e,r),t.elementType=cl,t.lanes=o,t;case tf:return Xs(n,r,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Kp:s=10;break e;case ef:s=9;break e;case Ou:s=11;break e;case Lu:s=14;break e;case _n:s=16,i=null;break e}throw Error(I(130,t==null?t:typeof t,""))}return e=kt(s,n,e,r),e.elementType=t,e.type=i,e.lanes=o,e}function ii(t,e,n,i){return t=kt(7,t,i,e),t.lanes=n,t}function Xs(t,e,n,i){return t=kt(22,t,i,e),t.elementType=tf,t.lanes=n,t.stateNode={isHidden:!1},t}function Ha(t,e,n){return t=kt(6,t,null,e),t.lanes=n,t}function Wa(t,e,n){return e=kt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Dy(t,e,n,i,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_a(0),this.expirationTimes=_a(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_a(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function vd(t,e,n,i,r,o,s,a,l){return t=new Dy(t,e,n,a,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=kt(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qu(o),t}function zy(t,e,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ci,key:i==null?null:""+i,children:t,containerInfo:e,implementation:n}}function Yv(t){if(!t)return Fn;t=t._reactInternals;e:{if(pi(t)!==t||t.tag!==1)throw Error(I(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(at(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(I(171))}if(t.tag===1){var n=t.type;if(at(n))return Yf(t,n,e)}return e}function Qv(t,e,n,i,r,o,s,a,l){return t=vd(n,i,!0,t,r,o,s,a,l),t.context=Yv(null),n=t.current,i=et(),r=Rn(n),o=dn(i,r),o.callback=e??null,On(n,o,r),t.current.lanes=r,so(t,r,i),lt(t,i),t}function qs(t,e,n,i){var r=e.current,o=et(),s=Rn(r);return n=Yv(n),e.context===null?e.context=n:e.pendingContext=n,e=dn(o,s),e.payload={element:t},i=i===void 0?null:i,i!==null&&(e.callback=i),t=On(r,e,s),t!==null&&(Mt(t,r,s,o),Zo(t,r,s)),s}function Ps(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function sh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function md(t,e){sh(t,e),(t=t.alternate)&&sh(t,e)}function Ey(){return null}var Jv=typeof reportError=="function"?reportError:function(t){console.error(t)};function gd(t){this._internalRoot=t}Ks.prototype.render=gd.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(I(409));qs(t,e,null,null)};Ks.prototype.unmount=gd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;di(function(){qs(null,t,null,null)}),e[hn]=null}};function Ks(t){this._internalRoot=t}Ks.prototype.unstable_scheduleHydration=function(t){if(t){var e=Df();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Sn.length&&e!==0&&e<Sn[n].priority;n++);Sn.splice(n,0,t),n===0&&Ef(t)}};function bd(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ea(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function ah(){}function Py(t,e,n,i,r){if(r){if(typeof i=="function"){var o=i;i=function(){var u=Ps(s);o.call(u)}}var s=Qv(e,i,t,0,null,!1,!1,"",ah);return t._reactRootContainer=s,t[hn]=s.current,jr(t.nodeType===8?t.parentNode:t),di(),s}for(;r=t.lastChild;)t.removeChild(r);if(typeof i=="function"){var a=i;i=function(){var u=Ps(l);a.call(u)}}var l=vd(t,0,!1,null,null,!1,!1,"",ah);return t._reactRootContainer=l,t[hn]=l.current,jr(t.nodeType===8?t.parentNode:t),di(function(){qs(e,l,n,i)}),l}function ta(t,e,n,i,r){var o=n._reactRootContainer;if(o){var s=o;if(typeof r=="function"){var a=r;r=function(){var l=Ps(s);a.call(l)}}qs(e,s,t,r)}else s=Py(n,e,t,r,i);return Ps(s)}Sf=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=xr(e.pendingLanes);n!==0&&(Mu(e,n|1),lt(e,Ee()),!(le&6)&&(Zi=Ee()+500,Wn()))}break;case 13:di(function(){var i=pn(t,1);if(i!==null){var r=et();Mt(i,t,1,r)}}),md(t,1)}};Vu=function(t){if(t.tag===13){var e=pn(t,134217728);if(e!==null){var n=et();Mt(e,t,134217728,n)}md(t,134217728)}};Cf=function(t){if(t.tag===13){var e=Rn(t),n=pn(t,e);if(n!==null){var i=et();Mt(n,t,e,i)}md(t,e)}};Df=function(){return de};zf=function(t,e){var n=de;try{return de=t,e()}finally{de=n}};xl=function(t,e,n){switch(e){case"input":if(fl(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var r=Us(i);if(!r)throw Error(I(90));rf(i),fl(i,r)}}}break;case"textarea":sf(t,n);break;case"select":e=n.value,e!=null&&Mi(t,!!n.multiple,e,!1)}};pf=cd;ff=di;var Ay={usingClientEntryPoint:!1,Events:[lo,Ai,Us,cf,hf,cd]},fr={findFiberByHostInstance:Kn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Iy={bundleType:fr.bundleType,version:fr.version,rendererPackageName:fr.rendererPackageName,rendererConfig:fr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:vn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=gf(t),t===null?null:t.stateNode},findFiberByHostInstance:fr.findFiberByHostInstance||Ey,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 To=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!To.isDisabled&&To.supportsFiber)try{Hs=To.inject(Iy),Jt=To}catch{}}gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ay;gt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bd(e))throw Error(I(200));return zy(t,e,null,n)};gt.createRoot=function(t,e){if(!bd(t))throw Error(I(299));var n=!1,i="",r=Jv;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onRecoverableError!==void 0&&(r=e.onRecoverableError)),e=vd(t,1,!1,null,null,n,!1,i,r),t[hn]=e.current,jr(t.nodeType===8?t.parentNode:t),new gd(e)};gt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(I(188)):(t=Object.keys(t).join(","),Error(I(268,t)));return t=gf(e),t=t===null?null:t.stateNode,t};gt.flushSync=function(t){return di(t)};gt.hydrate=function(t,e,n){if(!ea(e))throw Error(I(200));return ta(null,t,e,!0,n)};gt.hydrateRoot=function(t,e,n){if(!bd(t))throw Error(I(405));var i=n!=null&&n.hydratedSources||null,r=!1,o="",s=Jv;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),e=Qv(e,null,t,1,n??null,r,!1,o,s),t[hn]=e.current,jr(t),i)for(t=0;t<i.length;t++)n=i[t],r=n._getVersion,r=r(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,r]:e.mutableSourceEagerHydrationData.push(n,r);return new Ks(e)};gt.render=function(t,e,n){if(!ea(e))throw Error(I(200));return ta(null,t,e,!1,n)};gt.unmountComponentAtNode=function(t){if(!ea(t))throw Error(I(40));return t._reactRootContainer?(di(function(){ta(null,null,t,!1,function(){t._reactRootContainer=null,t[hn]=null})}),!0):!1};gt.unstable_batchedUpdates=cd;gt.unstable_renderSubtreeIntoContainer=function(t,e,n,i){if(!ea(n))throw Error(I(200));if(t==null||t._reactInternals===void 0)throw Error(I(38));return ta(t,e,n,!1,i)};gt.version="18.3.1-next-f1338f8080-20240426";function Zv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zv)}catch(t){console.error(t)}}Zv(),Jp.exports=gt;var Xv=Jp.exports;const Ty=Fs(Xv);var Oy,lh=Xv;Oy=lh.createRoot,lh.hydrateRoot;function Ly(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ry=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ny=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,My={};function uh(t,e){return(My.jsx?Ny:Ry).test(t)}const Vy=/[ \t\n\f\r]/g;function Fy(t){return typeof t=="object"?t.type==="text"?dh(t.value):!1:dh(t)}function dh(t){return t.replace(Vy,"")===""}class co{constructor(e,n,i){this.normal=n,this.property=e,i&&(this.space=i)}}co.prototype.normal={};co.prototype.property={};co.prototype.space=void 0;function qv(t,e){const n={},i={};for(const r of t)Object.assign(n,r.property),Object.assign(i,r.normal);return new co(n,i,e)}function eu(t){return t.toLowerCase()}class ut{constructor(e,n){this.attribute=n,this.property=e}}ut.prototype.attribute="";ut.prototype.booleanish=!1;ut.prototype.boolean=!1;ut.prototype.commaOrSpaceSeparated=!1;ut.prototype.commaSeparated=!1;ut.prototype.defined=!1;ut.prototype.mustUseProperty=!1;ut.prototype.number=!1;ut.prototype.overloadedBoolean=!1;ut.prototype.property="";ut.prototype.spaceSeparated=!1;ut.prototype.space=void 0;let Gy=0;const te=fi(),Pe=fi(),tu=fi(),T=fi(),fe=fi(),Bi=fi(),ct=fi();function fi(){return 2**++Gy}const nu=Object.freeze(Object.defineProperty({__proto__:null,boolean:te,booleanish:Pe,commaOrSpaceSeparated:ct,commaSeparated:Bi,number:T,overloadedBoolean:tu,spaceSeparated:fe},Symbol.toStringTag,{value:"Module"})),Ba=Object.keys(nu);class wd extends ut{constructor(e,n,i,r){let o=-1;if(super(e,n),ch(this,"space",r),typeof i=="number")for(;++o<Ba.length;){const s=Ba[o];ch(this,Ba[o],(i&nu[s])===nu[s])}}}wd.prototype.defined=!0;function ch(t,e,n){n&&(t[e]=n)}function tr(t){const e={},n={};for(const[i,r]of Object.entries(t.properties)){const o=new wd(i,t.transform(t.attributes||{},i),r,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),e[i]=o,n[eu(i)]=i,n[eu(o.attribute)]=i}return new co(e,n,t.space)}const Kv=tr({properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControls:fe,ariaCurrent:null,ariaDescribedBy:fe,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:fe,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:fe,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fe,ariaLevel:T,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:fe,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:fe,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:Pe,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function em(t,e){return e in t?t[e]:e}function tm(t,e){return em(t,e.toLowerCase())}const Hy=tr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Bi,acceptCharset:fe,accessKey:fe,action:null,allow:null,allowFullScreen:te,allowPaymentRequest:te,allowUserMedia:te,alt:null,as:null,async:te,autoCapitalize:null,autoComplete:fe,autoFocus:te,autoPlay:te,blocking:fe,capture:null,charSet:null,checked:te,cite:null,className:fe,cols:T,colSpan:null,content:null,contentEditable:Pe,controls:te,controlsList:fe,coords:T|Bi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:te,defer:te,dir:null,dirName:null,disabled:te,download:tu,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:te,formTarget:null,headers:fe,height:T,hidden:tu,high:T,href:null,hrefLang:null,htmlFor:fe,httpEquiv:fe,id:null,imageSizes:null,imageSrcSet:null,inert:te,inputMode:null,integrity:null,is:null,isMap:te,itemId:null,itemProp:fe,itemRef:fe,itemScope:te,itemType:fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:te,low:T,manifest:null,max:null,maxLength:T,media:null,method:null,min:null,minLength:T,multiple:te,muted:te,name:null,nonce:null,noModule:te,noValidate:te,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:te,optimum:T,pattern:null,ping:fe,placeholder:null,playsInline:te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:te,referrerPolicy:null,rel:fe,required:te,reversed:te,rows:T,rowSpan:T,sandbox:fe,scope:null,scoped:te,seamless:te,selected:te,shadowRootClonable:te,shadowRootDelegatesFocus:te,shadowRootMode:null,shape:null,size:T,sizes:null,slot:null,span:T,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T,step:null,style:null,tabIndex:T,target:null,title:null,translate:null,type:null,typeMustMatch:te,useMap:null,value:Pe,width:T,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fe,axis:null,background:null,bgColor:null,border:T,borderColor:null,bottomMargin:T,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:te,declare:te,event:null,face:null,frame:null,frameBorder:null,hSpace:T,leftMargin:T,link:null,longDesc:null,lowSrc:null,marginHeight:T,marginWidth:T,noResize:te,noHref:te,noShade:te,noWrap:te,object:null,profile:null,prompt:null,rev:null,rightMargin:T,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:T,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:te,disableRemotePlayback:te,prefix:null,property:null,results:T,security:null,unselectable:null},space:"html",transform:tm}),Wy=tr({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:ct,accentHeight:T,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T,amplitude:T,arabicForm:null,ascent:T,attributeName:null,attributeType:null,azimuth:T,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T,by:null,calcMode:null,capHeight:T,className:fe,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:T,diffuseConstant:T,direction:null,display:null,dur:null,divisor:T,dominantBaseline:null,download:te,dx:null,dy:null,edgeMode:null,editable:null,elevation:T,enableBackground:null,end:null,event:null,exponent:T,externalResourcesRequired:null,fill:null,fillOpacity:T,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:Bi,g2:Bi,glyphName:Bi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T,horizOriginX:T,horizOriginY:T,id:null,ideographic:T,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T,k:T,k1:T,k2:T,k3:T,k4:T,kernelMatrix:ct,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T,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:T,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:T,overlineThickness:T,paintOrder:null,panose1:null,path:null,pathLength:T,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T,pointsAtY:T,pointsAtZ:T,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ct,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ct,rev:ct,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ct,requiredFeatures:ct,requiredFonts:ct,requiredFormats:ct,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:T,specularExponent:T,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T,strikethroughThickness:T,string:null,stroke:null,strokeDashArray:ct,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T,strokeOpacity:T,strokeWidth:null,style:null,surfaceScale:T,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ct,tabIndex:T,tableValues:null,target:null,targetX:T,targetY:T,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ct,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:T,underlineThickness:T,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T,values:null,vAlphabetic:T,vMathematical:T,vectorEffect:null,vHanging:T,vIdeographic:T,version:null,vertAdvY:T,vertOriginX:T,vertOriginY:T,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:em}),nm=tr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),im=tr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tm}),rm=tr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),By={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"},jy=/[A-Z]/g,hh=/-[a-z]/g,Uy=/^data[-\w.:]+$/i;function $y(t,e){const n=eu(e);let i=e,r=ut;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Uy.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(hh,Qy);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!hh.test(o)){let s=o.replace(jy,Yy);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}r=wd}return new r(i,e)}function Yy(t){return"-"+t.toLowerCase()}function Qy(t){return t.charAt(1).toUpperCase()}const Jy=qv([Kv,Hy,nm,im,rm],"html"),yd=qv([Kv,Wy,nm,im,rm],"svg");function Zy(t){return t.join(" ").trim()}var xd={},ph=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xy=/\n/g,qy=/^\s*/,Ky=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,e0=/^:\s*/,t0=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,n0=/^[;\s]*/,i0=/^\s+|\s+$/g,r0=`
|
|
41
|
-
`,fh="/",vh="*",qn="",o0="comment",s0="declaration";function a0(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,i=1;function r(v){var m=v.match(Xy);m&&(n+=m.length);var y=v.lastIndexOf(r0);i=~y?v.length-y:i+v.length}function o(){var v={line:n,column:i};return function(m){return m.position=new s(v),u(),m}}function s(v){this.start=v,this.end={line:n,column:i},this.source=e.source}s.prototype.content=t;function a(v){var m=new Error(e.source+":"+n+":"+i+": "+v);if(m.reason=v,m.filename=e.source,m.line=n,m.column=i,m.source=t,!e.silent)throw m}function l(v){var m=v.exec(t);if(m){var y=m[0];return r(y),t=t.slice(y.length),m}}function u(){l(qy)}function c(v){var m;for(v=v||[];m=d();)m!==!1&&v.push(m);return v}function d(){var v=o();if(!(fh!=t.charAt(0)||vh!=t.charAt(1))){for(var m=2;qn!=t.charAt(m)&&(vh!=t.charAt(m)||fh!=t.charAt(m+1));)++m;if(m+=2,qn===t.charAt(m-1))return a("End of comment missing");var y=t.slice(2,m-2);return i+=2,r(y),t=t.slice(m),i+=2,v({type:o0,comment:y})}}function h(){var v=o(),m=l(Ky);if(m){if(d(),!l(e0))return a("property missing ':'");var y=l(t0),f=v({type:s0,property:mh(m[0].replace(ph,qn)),value:y?mh(y[0].replace(ph,qn)):qn});return l(n0),f}}function p(){var v=[];c(v);for(var m;m=h();)m!==!1&&(v.push(m),c(v));return v}return u(),p()}function mh(t){return t?t.replace(i0,qn):qn}var l0=a0,u0=os&&os.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xd,"__esModule",{value:!0});xd.default=c0;const d0=u0(l0);function c0(t,e){let n=null;if(!t||typeof t!="string")return n;const i=(0,d0.default)(t),r=typeof e=="function";return i.forEach(o=>{if(o.type!=="declaration")return;const{property:s,value:a}=o;r?e(s,a,o):a&&(n=n||{},n[s]=a)}),n}var na={};Object.defineProperty(na,"__esModule",{value:!0});na.camelCase=void 0;var h0=/^--[a-zA-Z0-9_-]+$/,p0=/-([a-z])/g,f0=/^[^-]+$/,v0=/^-(webkit|moz|ms|o|khtml)-/,m0=/^-(ms)-/,g0=function(t){return!t||f0.test(t)||h0.test(t)},b0=function(t,e){return e.toUpperCase()},gh=function(t,e){return"".concat(e,"-")},w0=function(t,e){return e===void 0&&(e={}),g0(t)?t:(t=t.toLowerCase(),e.reactCompat?t=t.replace(m0,gh):t=t.replace(v0,gh),t.replace(p0,b0))};na.camelCase=w0;var y0=os&&os.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},x0=y0(xd),_0=na;function iu(t,e){var n={};return!t||typeof t!="string"||(0,x0.default)(t,function(i,r){i&&r&&(n[(0,_0.camelCase)(i,e)]=r)}),n}iu.default=iu;var k0=iu;const S0=Fs(k0),om=sm("end"),_d=sm("start");function sm(t){return e;function e(n){const i=n&&n.position&&n.position[t]||{};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 C0(t){const e=_d(t),n=om(t);if(e&&n)return{start:e,end:n}}function Tr(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?bh(t.position):"start"in t||"end"in t?bh(t):"line"in t||"column"in t?ru(t):""}function ru(t){return wh(t&&t.line)+":"+wh(t&&t.column)}function bh(t){return ru(t&&t.start)+"-"+ru(t&&t.end)}function wh(t){return t&&typeof t=="number"?t:1}class Ze extends Error{constructor(e,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 e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!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=Tr(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}}Ze.prototype.file="";Ze.prototype.name="";Ze.prototype.reason="";Ze.prototype.message="";Ze.prototype.stack="";Ze.prototype.column=void 0;Ze.prototype.line=void 0;Ze.prototype.ancestors=void 0;Ze.prototype.cause=void 0;Ze.prototype.fatal=void 0;Ze.prototype.place=void 0;Ze.prototype.ruleId=void 0;Ze.prototype.source=void 0;const kd={}.hasOwnProperty,D0=new Map,z0=/[A-Z]/g,E0=new Set(["table","tbody","thead","tfoot","tr"]),P0=new Set(["td","th"]),am="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function A0(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let i;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=V0(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=M0(n,e.jsx,e.jsxs)}const r={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:i,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?yd:Jy,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},o=lm(r,t,void 0);return o&&typeof o!="string"?o:r.create(t,r.Fragment,{children:o||void 0},void 0)}function lm(t,e,n){if(e.type==="element")return I0(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return T0(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return L0(t,e,n);if(e.type==="mdxjsEsm")return O0(t,e);if(e.type==="root")return R0(t,e,n);if(e.type==="text")return N0(t,e)}function I0(t,e,n){const i=t.schema;let r=i;e.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=yd,t.schema=r),t.ancestors.push(e);const o=dm(t,e.tagName,!1),s=F0(t,e);let a=Cd(t,e);return E0.has(e.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Fy(l):!0})),um(t,s,o,e),Sd(s,a),t.ancestors.pop(),t.schema=i,t.create(e,o,s,n)}function T0(t,e){if(e.data&&e.data.estree&&t.evaluater){const i=e.data.estree.body[0];return i.type,t.evaluater.evaluateExpression(i.expression)}Kr(t,e.position)}function O0(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Kr(t,e.position)}function L0(t,e,n){const i=t.schema;let r=i;e.name==="svg"&&i.space==="html"&&(r=yd,t.schema=r),t.ancestors.push(e);const o=e.name===null?t.Fragment:dm(t,e.name,!0),s=G0(t,e),a=Cd(t,e);return um(t,s,o,e),Sd(s,a),t.ancestors.pop(),t.schema=i,t.create(e,o,s,n)}function R0(t,e,n){const i={};return Sd(i,Cd(t,e)),t.create(e,t.Fragment,i,n)}function N0(t,e){return e.value}function um(t,e,n,i){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=i)}function Sd(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function M0(t,e,n){return i;function i(r,o,s,a){const u=Array.isArray(s.children)?n:e;return a?u(o,s,a):u(o,s)}}function V0(t,e){return n;function n(i,r,o,s){const a=Array.isArray(o.children),l=_d(i);return e(r,o,s,a,{columnNumber:l?l.column-1:void 0,fileName:t,lineNumber:l?l.line:void 0},void 0)}}function F0(t,e){const n={};let i,r;for(r in e.properties)if(r!=="children"&&kd.call(e.properties,r)){const o=H0(t,r,e.properties[r]);if(o){const[s,a]=o;t.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&P0.has(e.tagName)?i=a:n[s]=a}}if(i){const o=n.style||(n.style={});o[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function G0(t,e){const n={};for(const i of e.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&t.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,t.evaluater.evaluateExpression(a.argument))}else Kr(t,e.position);else{const r=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&t.evaluater){const a=i.value.data.estree.body[0];a.type,o=t.evaluater.evaluateExpression(a.expression)}else Kr(t,e.position);else o=i.value===null?!0:i.value;n[r]=o}return n}function Cd(t,e){const n=[];let i=-1;const r=t.passKeys?new Map:D0;for(;++i<e.children.length;){const o=e.children[i];let s;if(t.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=lm(t,o,s);a!==void 0&&n.push(a)}return n}function H0(t,e,n){const i=$y(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Ly(n):Zy(n)),i.property==="style"){let r=typeof n=="object"?n:W0(t,String(n));return t.stylePropertyNameCase==="css"&&(r=B0(r)),["style",r]}return[t.elementAttributeNameCase==="react"&&i.space?By[i.property]||i.property:i.attribute,n]}}function W0(t,e){try{return S0(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const i=n,r=new Ze("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=am+"#cannot-parse-style-attribute",r}}function dm(t,e,n){let i;if(!n)i={type:"Literal",value:e};else if(e.includes(".")){const r=e.split(".");let o=-1,s;for(;++o<r.length;){const a=uh(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=uh(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(i.type==="Literal"){const r=i.value;return kd.call(t.components,r)?t.components[r]:r}if(t.evaluater)return t.evaluater.evaluateExpression(i);Kr(t)}function Kr(t,e){const n=new Ze("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=am+"#cannot-handle-mdx-estrees-without-createevaluater",n}function B0(t){const e={};let n;for(n in t)kd.call(t,n)&&(e[j0(n)]=t[n]);return e}function j0(t){let e=t.replace(z0,U0);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function U0(t){return"-"+t.toLowerCase()}const ja={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"]},$0={};function Dd(t,e){const n=$0,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return cm(t,i,r)}function cm(t,e,n){if(Y0(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return yh(t.children,e,n)}return Array.isArray(t)?yh(t,e,n):""}function yh(t,e,n){const i=[];let r=-1;for(;++r<t.length;)i[r]=cm(t[r],e,n);return i.join("")}function Y0(t){return!!(t&&typeof t=="object")}const xh=document.createElement("i");function zd(t){const e="&"+t+";";xh.innerHTML=e;const n=xh.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function vt(t,e,n,i){const r=t.length;let o=0,s;if(e<0?e=-e>r?0:r+e:e=e>r?r:e,n=n>0?n:0,i.length<1e4)s=Array.from(i),s.unshift(e,n),t.splice(...s);else for(n&&t.splice(e,n);o<i.length;)s=i.slice(o,o+1e4),s.unshift(e,0),t.splice(...s),o+=1e4,e+=1e4}function _t(t,e){return t.length>0?(vt(t,t.length,0,e),t):e}const _h={}.hasOwnProperty;function hm(t){const e={};let n=-1;for(;++n<t.length;)Q0(e,t[n]);return e}function Q0(t,e){let n;for(n in e){const r=(_h.call(t,n)?t[n]:void 0)||(t[n]={}),o=e[n];let s;if(o)for(s in o){_h.call(r,s)||(r[s]=[]);const a=o[s];J0(r[s],Array.isArray(a)?a:a?[a]:[])}}}function J0(t,e){let n=-1;const i=[];for(;++n<e.length;)(e[n].add==="after"?t:i).push(e[n]);vt(t,0,0,i)}function pm(t,e){const n=Number.parseInt(t,e);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 Vt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ke=Bn(/[A-Za-z]/),Qe=Bn(/[\dA-Za-z]/),Z0=Bn(/[#-'*+\--9=?A-Z^-~]/);function As(t){return t!==null&&(t<32||t===127)}const ou=Bn(/\d/),X0=Bn(/[\dA-Fa-f]/),q0=Bn(/[!-/:-@[-`{-~]/);function J(t){return t!==null&&t<-2}function pe(t){return t!==null&&(t<0||t===32)}function ie(t){return t===-2||t===-1||t===32}const ia=Bn(new RegExp("\\p{P}|\\p{S}","u")),ci=Bn(/\s/);function Bn(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function nr(t){const e=[];let n=-1,i=0,r=0;for(;++n<t.length;){const o=t.charCodeAt(n);let s="";if(o===37&&Qe(t.charCodeAt(n+1))&&Qe(t.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=t.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),r=1):s="�"}else s=String.fromCharCode(o);s&&(e.push(t.slice(i,n),encodeURIComponent(s)),i=n+r+1,s=""),r&&(n+=r,r=0)}return e.join("")+t.slice(i)}function ae(t,e,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return ie(l)?(t.enter(n),a(l)):e(l)}function a(l){return ie(l)&&o++<r?(t.consume(l),a):(t.exit(n),e(l))}}const K0={tokenize:ex};function ex(t){const e=t.attempt(this.parser.constructs.contentInitial,i,r);let n;return e;function i(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),ae(t,e,"linePrefix")}function r(a){return t.enter("paragraph"),o(a)}function o(a){const l=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(a);return}return J(a)?(t.consume(a),t.exit("chunkText"),o):(t.consume(a),s)}}const tx={tokenize:nx},kh={tokenize:ix};function nx(t){const e=this,n=[];let i=0,r,o,s;return a;function a(b){if(i<n.length){const k=n[i];return e.containerState=k[1],t.attempt(k[0].continuation,l,u)(b)}return u(b)}function l(b){if(i++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,r&&g();const k=e.events.length;let D=k,x;for(;D--;)if(e.events[D][0]==="exit"&&e.events[D][1].type==="chunkFlow"){x=e.events[D][1].end;break}f(i);let z=k;for(;z<e.events.length;)e.events[z][1].end={...x},z++;return vt(e.events,D+1,0,e.events.slice(k)),e.events.length=z,u(b)}return a(b)}function u(b){if(i===n.length){if(!r)return h(b);if(r.currentConstruct&&r.currentConstruct.concrete)return v(b);e.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(kh,c,d)(b)}function c(b){return r&&g(),f(i),h(b)}function d(b){return e.parser.lazy[e.now().line]=i!==n.length,s=e.now().offset,v(b)}function h(b){return e.containerState={},t.attempt(kh,p,v)(b)}function p(b){return i++,n.push([e.currentConstruct,e.containerState]),h(b)}function v(b){if(b===null){r&&g(),f(0),t.consume(b);return}return r=r||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(b)}function m(b){if(b===null){y(t.exit("chunkFlow"),!0),f(0),t.consume(b);return}return J(b)?(t.consume(b),y(t.exit("chunkFlow")),i=0,e.interrupt=void 0,a):(t.consume(b),m)}function y(b,k){const D=e.sliceStream(b);if(k&&D.push(null),b.previous=o,o&&(o.next=b),o=b,r.defineSkip(b.start),r.write(D),e.parser.lazy[b.start.line]){let x=r.events.length;for(;x--;)if(r.events[x][1].start.offset<s&&(!r.events[x][1].end||r.events[x][1].end.offset>s))return;const z=e.events.length;let C=z,R,S;for(;C--;)if(e.events[C][0]==="exit"&&e.events[C][1].type==="chunkFlow"){if(R){S=e.events[C][1].end;break}R=!0}for(f(i),x=z;x<e.events.length;)e.events[x][1].end={...S},x++;vt(e.events,C+1,0,e.events.slice(z)),e.events.length=x}}function f(b){let k=n.length;for(;k-- >b;){const D=n[k];e.containerState=D[1],D[0].exit.call(e,t)}n.length=b}function g(){r.write([null]),o=void 0,r=void 0,e.containerState._closeFlow=void 0}}function ix(t,e,n){return ae(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xi(t){if(t===null||pe(t)||ci(t))return 1;if(ia(t))return 2}function ra(t,e,n){const i=[];let r=-1;for(;++r<t.length;){const o=t[r].resolveAll;o&&!i.includes(o)&&(e=o(e,n),i.push(o))}return e}const su={name:"attention",resolveAll:rx,tokenize:ox};function rx(t,e){let n=-1,i,r,o,s,a,l,u,c;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(i=n;i--;)if(t[i][0]==="exit"&&t[i][1].type==="attentionSequence"&&t[i][1]._open&&e.sliceSerialize(t[i][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[i][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;l=t[i][1].end.offset-t[i][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const d={...t[i][1].end},h={...t[n][1].start};Sh(d,-l),Sh(h,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...t[i][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:h},o={type:l>1?"strongText":"emphasisText",start:{...t[i][1].end},end:{...t[n][1].start}},r={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},t[i][1].end={...s.start},t[n][1].start={...a.end},u=[],t[i][1].end.offset-t[i][1].start.offset&&(u=_t(u,[["enter",t[i][1],e],["exit",t[i][1],e]])),u=_t(u,[["enter",r,e],["enter",s,e],["exit",s,e],["enter",o,e]]),u=_t(u,ra(e.parser.constructs.insideSpan.null,t.slice(i+1,n),e)),u=_t(u,[["exit",o,e],["enter",a,e],["exit",a,e],["exit",r,e]]),t[n][1].end.offset-t[n][1].start.offset?(c=2,u=_t(u,[["enter",t[n][1],e],["exit",t[n][1],e]])):c=0,vt(t,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function ox(t,e){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Xi(i);let o;return s;function s(l){return o=l,t.enter("attentionSequence"),a(l)}function a(l){if(l===o)return t.consume(l),a;const u=t.exit("attentionSequence"),c=Xi(l),d=!c||c===2&&r||n.includes(l),h=!r||r===2&&c||n.includes(i);return u._open=!!(o===42?d:d&&(r||!h)),u._close=!!(o===42?h:h&&(c||!d)),e(l)}}function Sh(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const sx={name:"autolink",tokenize:ax};function ax(t,e,n){let i=0;return r;function r(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(p){return Ke(p)?(t.consume(p),s):p===64?n(p):u(p)}function s(p){return p===43||p===45||p===46||Qe(p)?(i=1,a(p)):u(p)}function a(p){return p===58?(t.consume(p),i=0,l):(p===43||p===45||p===46||Qe(p))&&i++<32?(t.consume(p),a):(i=0,u(p))}function l(p){return p===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):p===null||p===32||p===60||As(p)?n(p):(t.consume(p),l)}function u(p){return p===64?(t.consume(p),c):Z0(p)?(t.consume(p),u):n(p)}function c(p){return Qe(p)?d(p):n(p)}function d(p){return p===46?(t.consume(p),i=0,c):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):h(p)}function h(p){if((p===45||Qe(p))&&i++<63){const v=p===45?h:d;return t.consume(p),v}return n(p)}}const ho={partial:!0,tokenize:lx};function lx(t,e,n){return i;function i(o){return ie(o)?ae(t,r,"linePrefix")(o):r(o)}function r(o){return o===null||J(o)?e(o):n(o)}}const fm={continuation:{tokenize:dx},exit:cx,name:"blockQuote",tokenize:ux};function ux(t,e,n){const i=this;return r;function r(s){if(s===62){const a=i.containerState;return a.open||(t.enter("blockQuote",{_container:!0}),a.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),o}return n(s)}function o(s){return ie(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(s))}}function dx(t,e,n){const i=this;return r;function r(s){return ie(s)?ae(t,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return t.attempt(fm,e,n)(s)}}function cx(t){t.exit("blockQuote")}const vm={name:"characterEscape",tokenize:hx};function hx(t,e,n){return i;function i(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),r}function r(o){return q0(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(o)}}const mm={name:"characterReference",tokenize:px};function px(t,e,n){const i=this;let r=0,o,s;return a;function a(d){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),l}function l(d){return d===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(d),t.exit("characterReferenceMarkerNumeric"),u):(t.enter("characterReferenceValue"),o=31,s=Qe,c(d))}function u(d){return d===88||d===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(d),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,s=X0,c):(t.enter("characterReferenceValue"),o=7,s=ou,c(d))}function c(d){if(d===59&&r){const h=t.exit("characterReferenceValue");return s===Qe&&!zd(i.sliceSerialize(h))?n(d):(t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return s(d)&&r++<o?(t.consume(d),c):n(d)}}const Ch={partial:!0,tokenize:vx},Dh={concrete:!0,name:"codeFenced",tokenize:fx};function fx(t,e,n){const i=this,r={partial:!0,tokenize:D};let o=0,s=0,a;return l;function l(x){return u(x)}function u(x){const z=i.events[i.events.length-1];return o=z&&z[1].type==="linePrefix"?z[2].sliceSerialize(z[1],!0).length:0,a=x,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(x)}function c(x){return x===a?(s++,t.consume(x),c):s<3?n(x):(t.exit("codeFencedFenceSequence"),ie(x)?ae(t,d,"whitespace")(x):d(x))}function d(x){return x===null||J(x)?(t.exit("codeFencedFence"),i.interrupt?e(x):t.check(Ch,m,k)(x)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===null||J(x)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),d(x)):ie(x)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ae(t,p,"whitespace")(x)):x===96&&x===a?n(x):(t.consume(x),h)}function p(x){return x===null||J(x)?d(x):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),v(x))}function v(x){return x===null||J(x)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),d(x)):x===96&&x===a?n(x):(t.consume(x),v)}function m(x){return t.attempt(r,k,y)(x)}function y(x){return t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),f}function f(x){return o>0&&ie(x)?ae(t,g,"linePrefix",o+1)(x):g(x)}function g(x){return x===null||J(x)?t.check(Ch,m,k)(x):(t.enter("codeFlowValue"),b(x))}function b(x){return x===null||J(x)?(t.exit("codeFlowValue"),g(x)):(t.consume(x),b)}function k(x){return t.exit("codeFenced"),e(x)}function D(x,z,C){let R=0;return S;function S(P){return x.enter("lineEnding"),x.consume(P),x.exit("lineEnding"),O}function O(P){return x.enter("codeFencedFence"),ie(P)?ae(x,V,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):V(P)}function V(P){return P===a?(x.enter("codeFencedFenceSequence"),$(P)):C(P)}function $(P){return P===a?(R++,x.consume(P),$):R>=s?(x.exit("codeFencedFenceSequence"),ie(P)?ae(x,Q,"whitespace")(P):Q(P)):C(P)}function Q(P){return P===null||J(P)?(x.exit("codeFencedFence"),z(P)):C(P)}}}function vx(t,e,n){const i=this;return r;function r(s){return s===null?n(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o)}function o(s){return i.parser.lazy[i.now().line]?n(s):e(s)}}const Ua={name:"codeIndented",tokenize:gx},mx={partial:!0,tokenize:bx};function gx(t,e,n){const i=this;return r;function r(u){return t.enter("codeIndented"),ae(t,o,"linePrefix",5)(u)}function o(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):J(u)?t.attempt(mx,s,l)(u):(t.enter("codeFlowValue"),a(u))}function a(u){return u===null||J(u)?(t.exit("codeFlowValue"),s(u)):(t.consume(u),a)}function l(u){return t.exit("codeIndented"),e(u)}}function bx(t,e,n){const i=this;return r;function r(s){return i.parser.lazy[i.now().line]?n(s):J(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r):ae(t,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?e(s):J(s)?r(s):n(s)}}const wx={name:"codeText",previous:xx,resolve:yx,tokenize:_x};function yx(t){let e=t.length-4,n=3,i,r;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(i=n;++i<e;)if(t[i][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(i=n-1,e++;++i<=e;)r===void 0?i!==e&&t[i][1].type!=="lineEnding"&&(r=i):(i===e||t[i][1].type==="lineEnding")&&(t[r][1].type="codeTextData",i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),e-=i-r-2,i=r+2),r=void 0);return t}function xx(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function _x(t,e,n){let i=0,r,o;return s;function s(d){return t.enter("codeText"),t.enter("codeTextSequence"),a(d)}function a(d){return d===96?(t.consume(d),i++,a):(t.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(t.enter("space"),t.consume(d),t.exit("space"),l):d===96?(o=t.enter("codeTextSequence"),r=0,c(d)):J(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),l):(t.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||J(d)?(t.exit("codeTextData"),l(d)):(t.consume(d),u)}function c(d){return d===96?(t.consume(d),r++,c):r===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(d)):(o.type="codeTextData",u(d))}}class kx{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(e,i):e>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(e,n,i){const r=n||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&vr(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),vr(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),vr(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);vr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);vr(this.left,n.reverse())}}}function vr(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function gm(t){const e={};let n=-1,i,r,o,s,a,l,u;const c=new kx(t);for(;++n<c.length;){for(;n in e;)n=e[n];if(i=c.get(n),n&&i[1].type==="chunkFlow"&&c.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(e,Sx(c,n)),n=e[n],u=!0);else if(i[1]._container){for(o=n,r=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(r&&(c.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={...c.get(r)[1].start},a=c.slice(r,n),a.unshift(i),c.splice(r,n-r+1,a))}}return vt(t,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Sx(t,e){const n=t.get(e)[1],i=t.get(e)[2];let r=e-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 c,d,h=-1,p=n,v=0,m=0;const y=[m];for(;p;){for(;t.get(++r)[1]!==p;);o.push(r),p._tokenizer||(c=i.sliceStream(p),p.next||c.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=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&&(m=h+1,y.push(m),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]),t.splice(g,2,f)}for(l.reverse(),h=-1;++h<l.length;)u[v+l[h][0]]=v+l[h][1],v+=l[h][1]-l[h][0]-1;return u}const Cx={resolve:zx,tokenize:Ex},Dx={partial:!0,tokenize:Px};function zx(t){return gm(t),t}function Ex(t,e){let n;return i;function i(a){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),r(a)}function r(a){return a===null?o(a):J(a)?t.check(Dx,s,o)(a):(t.consume(a),r)}function o(a){return t.exit("chunkContent"),t.exit("content"),e(a)}function s(a){return t.consume(a),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function Px(t,e,n){const i=this;return r;function r(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),ae(t,o,"linePrefix")}function o(s){if(s===null||J(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?e(s):t.interrupt(i.parser.constructs.flow,n,e)(s)}}function bm(t,e,n,i,r,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(f){return f===60?(t.enter(i),t.enter(r),t.enter(o),t.consume(f),t.exit(o),h):f===null||f===32||f===41||As(f)?n(f):(t.enter(i),t.enter(s),t.enter(a),t.enter("chunkString",{contentType:"string"}),m(f))}function h(f){return f===62?(t.enter(o),t.consume(f),t.exit(o),t.exit(r),t.exit(i),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===62?(t.exit("chunkString"),t.exit(a),h(f)):f===null||f===60||J(f)?n(f):(t.consume(f),f===92?v:p)}function v(f){return f===60||f===62||f===92?(t.consume(f),p):p(f)}function m(f){return!c&&(f===null||f===41||pe(f))?(t.exit("chunkString"),t.exit(a),t.exit(s),t.exit(i),e(f)):c<u&&f===40?(t.consume(f),c++,m):f===41?(t.consume(f),c--,m):f===null||f===32||f===40||As(f)?n(f):(t.consume(f),f===92?y:m)}function y(f){return f===40||f===41||f===92?(t.consume(f),m):m(f)}}function wm(t,e,n,i,r,o){const s=this;let a=0,l;return u;function u(p){return t.enter(i),t.enter(r),t.consume(p),t.exit(r),t.enter(o),c}function c(p){return a>999||p===null||p===91||p===93&&!l||p===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(t.exit(o),t.enter(r),t.consume(p),t.exit(r),t.exit(i),e):J(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||J(p)||a++>999?(t.exit("chunkString"),c(p)):(t.consume(p),l||(l=!ie(p)),p===92?h:d)}function h(p){return p===91||p===92||p===93?(t.consume(p),a++,d):d(p)}}function ym(t,e,n,i,r,o){let s;return a;function a(h){return h===34||h===39||h===40?(t.enter(i),t.enter(r),t.consume(h),t.exit(r),s=h===40?41:h,l):n(h)}function l(h){return h===s?(t.enter(r),t.consume(h),t.exit(r),t.exit(i),e):(t.enter(o),u(h))}function u(h){return h===s?(t.exit(o),l(s)):h===null?n(h):J(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),ae(t,u,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||J(h)?(t.exit("chunkString"),u(h)):(t.consume(h),h===92?d:c)}function d(h){return h===s||h===92?(t.consume(h),c):c(h)}}function Or(t,e){let n;return i;function i(r){return J(r)?(t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),n=!0,i):ie(r)?ae(t,i,n?"linePrefix":"lineSuffix")(r):e(r)}}const Ax={name:"definition",tokenize:Tx},Ix={partial:!0,tokenize:Ox};function Tx(t,e,n){const i=this;let r;return o;function o(p){return t.enter("definition"),s(p)}function s(p){return wm.call(i,t,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return r=Vt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),p===58?(t.enter("definitionMarker"),t.consume(p),t.exit("definitionMarker"),l):n(p)}function l(p){return pe(p)?Or(t,u)(p):u(p)}function u(p){return bm(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return t.attempt(Ix,d,d)(p)}function d(p){return ie(p)?ae(t,h,"whitespace")(p):h(p)}function h(p){return p===null||J(p)?(t.exit("definition"),i.parser.defined.push(r),e(p)):n(p)}}function Ox(t,e,n){return i;function i(a){return pe(a)?Or(t,r)(a):n(a)}function r(a){return ym(t,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return ie(a)?ae(t,s,"whitespace")(a):s(a)}function s(a){return a===null||J(a)?e(a):n(a)}}const Lx={name:"hardBreakEscape",tokenize:Rx};function Rx(t,e,n){return i;function i(o){return t.enter("hardBreakEscape"),t.consume(o),r}function r(o){return J(o)?(t.exit("hardBreakEscape"),e(o)):n(o)}}const Nx={name:"headingAtx",resolve:Mx,tokenize:Vx};function Mx(t,e){let n=t.length-2,i=3,r,o;return t[i][1].type==="whitespace"&&(i+=2),n-2>i&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&t[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:t[i][1].start,end:t[n][1].end},o={type:"chunkText",start:t[i][1].start,end:t[n][1].end,contentType:"text"},vt(t,i,n-i+1,[["enter",r,e],["enter",o,e],["exit",o,e],["exit",r,e]])),t}function Vx(t,e,n){let i=0;return r;function r(c){return t.enter("atxHeading"),o(c)}function o(c){return t.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&i++<6?(t.consume(c),s):c===null||pe(c)?(t.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(t.enter("atxHeadingSequence"),l(c)):c===null||J(c)?(t.exit("atxHeading"),e(c)):ie(c)?ae(t,a,"whitespace")(c):(t.enter("atxHeadingText"),u(c))}function l(c){return c===35?(t.consume(c),l):(t.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||pe(c)?(t.exit("atxHeadingText"),a(c)):(t.consume(c),u)}}const Fx=["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"],zh=["pre","script","style","textarea"],Gx={concrete:!0,name:"htmlFlow",resolveTo:Bx,tokenize:jx},Hx={partial:!0,tokenize:$x},Wx={partial:!0,tokenize:Ux};function Bx(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function jx(t,e,n){const i=this;let r,o,s,a,l;return u;function u(_){return c(_)}function c(_){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(_),d}function d(_){return _===33?(t.consume(_),h):_===47?(t.consume(_),o=!0,m):_===63?(t.consume(_),r=3,i.interrupt?e:w):Ke(_)?(t.consume(_),s=String.fromCharCode(_),y):n(_)}function h(_){return _===45?(t.consume(_),r=2,p):_===91?(t.consume(_),r=5,a=0,v):Ke(_)?(t.consume(_),r=4,i.interrupt?e:w):n(_)}function p(_){return _===45?(t.consume(_),i.interrupt?e:w):n(_)}function v(_){const xe="CDATA[";return _===xe.charCodeAt(a++)?(t.consume(_),a===xe.length?i.interrupt?e:V:v):n(_)}function m(_){return Ke(_)?(t.consume(_),s=String.fromCharCode(_),y):n(_)}function y(_){if(_===null||_===47||_===62||pe(_)){const xe=_===47,ce=s.toLowerCase();return!xe&&!o&&zh.includes(ce)?(r=1,i.interrupt?e(_):V(_)):Fx.includes(s.toLowerCase())?(r=6,xe?(t.consume(_),f):i.interrupt?e(_):V(_)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(_):o?g(_):b(_))}return _===45||Qe(_)?(t.consume(_),s+=String.fromCharCode(_),y):n(_)}function f(_){return _===62?(t.consume(_),i.interrupt?e:V):n(_)}function g(_){return ie(_)?(t.consume(_),g):S(_)}function b(_){return _===47?(t.consume(_),S):_===58||_===95||Ke(_)?(t.consume(_),k):ie(_)?(t.consume(_),b):S(_)}function k(_){return _===45||_===46||_===58||_===95||Qe(_)?(t.consume(_),k):D(_)}function D(_){return _===61?(t.consume(_),x):ie(_)?(t.consume(_),D):b(_)}function x(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(t.consume(_),l=_,z):ie(_)?(t.consume(_),x):C(_)}function z(_){return _===l?(t.consume(_),l=null,R):_===null||J(_)?n(_):(t.consume(_),z)}function C(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||pe(_)?D(_):(t.consume(_),C)}function R(_){return _===47||_===62||ie(_)?b(_):n(_)}function S(_){return _===62?(t.consume(_),O):n(_)}function O(_){return _===null||J(_)?V(_):ie(_)?(t.consume(_),O):n(_)}function V(_){return _===45&&r===2?(t.consume(_),N):_===60&&r===1?(t.consume(_),X):_===62&&r===4?(t.consume(_),oe):_===63&&r===3?(t.consume(_),w):_===93&&r===5?(t.consume(_),Y):J(_)&&(r===6||r===7)?(t.exit("htmlFlowData"),t.check(Hx,ue,$)(_)):_===null||J(_)?(t.exit("htmlFlowData"),$(_)):(t.consume(_),V)}function $(_){return t.check(Wx,Q,ue)(_)}function Q(_){return t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),P}function P(_){return _===null||J(_)?$(_):(t.enter("htmlFlowData"),V(_))}function N(_){return _===45?(t.consume(_),w):V(_)}function X(_){return _===47?(t.consume(_),s="",L):V(_)}function L(_){if(_===62){const xe=s.toLowerCase();return zh.includes(xe)?(t.consume(_),oe):V(_)}return Ke(_)&&s.length<8?(t.consume(_),s+=String.fromCharCode(_),L):V(_)}function Y(_){return _===93?(t.consume(_),w):V(_)}function w(_){return _===62?(t.consume(_),oe):_===45&&r===2?(t.consume(_),w):V(_)}function oe(_){return _===null||J(_)?(t.exit("htmlFlowData"),ue(_)):(t.consume(_),oe)}function ue(_){return t.exit("htmlFlow"),e(_)}}function Ux(t,e,n){const i=this;return r;function r(s){return J(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o):n(s)}function o(s){return i.parser.lazy[i.now().line]?n(s):e(s)}}function $x(t,e,n){return i;function i(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),t.attempt(ho,e,n)}}const Yx={name:"htmlText",tokenize:Qx};function Qx(t,e,n){const i=this;let r,o,s;return a;function a(w){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(w),l}function l(w){return w===33?(t.consume(w),u):w===47?(t.consume(w),D):w===63?(t.consume(w),b):Ke(w)?(t.consume(w),C):n(w)}function u(w){return w===45?(t.consume(w),c):w===91?(t.consume(w),o=0,v):Ke(w)?(t.consume(w),g):n(w)}function c(w){return w===45?(t.consume(w),p):n(w)}function d(w){return w===null?n(w):w===45?(t.consume(w),h):J(w)?(s=d,X(w)):(t.consume(w),d)}function h(w){return w===45?(t.consume(w),p):d(w)}function p(w){return w===62?N(w):w===45?h(w):d(w)}function v(w){const oe="CDATA[";return w===oe.charCodeAt(o++)?(t.consume(w),o===oe.length?m:v):n(w)}function m(w){return w===null?n(w):w===93?(t.consume(w),y):J(w)?(s=m,X(w)):(t.consume(w),m)}function y(w){return w===93?(t.consume(w),f):m(w)}function f(w){return w===62?N(w):w===93?(t.consume(w),f):m(w)}function g(w){return w===null||w===62?N(w):J(w)?(s=g,X(w)):(t.consume(w),g)}function b(w){return w===null?n(w):w===63?(t.consume(w),k):J(w)?(s=b,X(w)):(t.consume(w),b)}function k(w){return w===62?N(w):b(w)}function D(w){return Ke(w)?(t.consume(w),x):n(w)}function x(w){return w===45||Qe(w)?(t.consume(w),x):z(w)}function z(w){return J(w)?(s=z,X(w)):ie(w)?(t.consume(w),z):N(w)}function C(w){return w===45||Qe(w)?(t.consume(w),C):w===47||w===62||pe(w)?R(w):n(w)}function R(w){return w===47?(t.consume(w),N):w===58||w===95||Ke(w)?(t.consume(w),S):J(w)?(s=R,X(w)):ie(w)?(t.consume(w),R):N(w)}function S(w){return w===45||w===46||w===58||w===95||Qe(w)?(t.consume(w),S):O(w)}function O(w){return w===61?(t.consume(w),V):J(w)?(s=O,X(w)):ie(w)?(t.consume(w),O):R(w)}function V(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(t.consume(w),r=w,$):J(w)?(s=V,X(w)):ie(w)?(t.consume(w),V):(t.consume(w),Q)}function $(w){return w===r?(t.consume(w),r=void 0,P):w===null?n(w):J(w)?(s=$,X(w)):(t.consume(w),$)}function Q(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||pe(w)?R(w):(t.consume(w),Q)}function P(w){return w===47||w===62||pe(w)?R(w):n(w)}function N(w){return w===62?(t.consume(w),t.exit("htmlTextData"),t.exit("htmlText"),e):n(w)}function X(w){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),L}function L(w){return ie(w)?ae(t,Y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):Y(w)}function Y(w){return t.enter("htmlTextData"),s(w)}}const Ed={name:"labelEnd",resolveAll:qx,resolveTo:Kx,tokenize:e_},Jx={tokenize:t_},Zx={tokenize:n_},Xx={tokenize:i_};function qx(t){let e=-1;const n=[];for(;++e<t.length;){const i=t[e][1];if(n.push(t[e]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",e+=r}}return t.length!==n.length&&vt(t,0,t.length,n),t}function Kx(t,e){let n=t.length,i=0,r,o,s,a;for(;n--;)if(r=t[n][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;t[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(s){if(t[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:t[o][1].type==="labelLink"?"link":"image",start:{...t[o][1].start},end:{...t[t.length-1][1].end}},u={type:"label",start:{...t[o][1].start},end:{...t[s][1].end}},c={type:"labelText",start:{...t[o+i+2][1].end},end:{...t[s-2][1].start}};return a=[["enter",l,e],["enter",u,e]],a=_t(a,t.slice(o+1,o+i+3)),a=_t(a,[["enter",c,e]]),a=_t(a,ra(e.parser.constructs.insideSpan.null,t.slice(o+i+4,s-3),e)),a=_t(a,[["exit",c,e],t[s-2],t[s-1],["exit",u,e]]),a=_t(a,t.slice(s+1)),a=_t(a,[["exit",l,e]]),vt(t,o,t.length,a),t}function e_(t,e,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?d(h):(s=i.parser.defined.includes(Vt(i.sliceSerialize({start:o.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelEnd"),l):n(h)}function l(h){return h===40?t.attempt(Jx,c,s?c:d)(h):h===91?t.attempt(Zx,c,s?u:d)(h):s?c(h):d(h)}function u(h){return t.attempt(Xx,c,d)(h)}function c(h){return e(h)}function d(h){return o._balanced=!0,n(h)}}function t_(t,e,n){return i;function i(d){return t.enter("resource"),t.enter("resourceMarker"),t.consume(d),t.exit("resourceMarker"),r}function r(d){return pe(d)?Or(t,o)(d):o(d)}function o(d){return d===41?c(d):bm(t,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return pe(d)?Or(t,l)(d):c(d)}function a(d){return n(d)}function l(d){return d===34||d===39||d===40?ym(t,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return pe(d)?Or(t,c)(d):c(d)}function c(d){return d===41?(t.enter("resourceMarker"),t.consume(d),t.exit("resourceMarker"),t.exit("resource"),e):n(d)}}function n_(t,e,n){const i=this;return r;function r(a){return wm.call(i,t,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return i.parser.defined.includes(Vt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?e(a):n(a)}function s(a){return n(a)}}function i_(t,e,n){return i;function i(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),r}function r(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),e):n(o)}}const r_={name:"labelStartImage",resolveAll:Ed.resolveAll,tokenize:o_};function o_(t,e,n){const i=this;return r;function r(a){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(a),t.exit("labelImageMarker"),o}function o(a){return a===91?(t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(a):e(a)}}const s_={name:"labelStartLink",resolveAll:Ed.resolveAll,tokenize:a_};function a_(t,e,n){const i=this;return r;function r(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(s):e(s)}}const $a={name:"lineEnding",tokenize:l_};function l_(t,e){return n;function n(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),ae(t,e,"linePrefix")}}const is={name:"thematicBreak",tokenize:u_};function u_(t,e,n){let i=0,r;return o;function o(u){return t.enter("thematicBreak"),s(u)}function s(u){return r=u,a(u)}function a(u){return u===r?(t.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||J(u))?(t.exit("thematicBreak"),e(u)):n(u)}function l(u){return u===r?(t.consume(u),i++,l):(t.exit("thematicBreakSequence"),ie(u)?ae(t,a,"whitespace")(u):a(u))}}const it={continuation:{tokenize:p_},exit:v_,name:"list",tokenize:h_},d_={partial:!0,tokenize:m_},c_={partial:!0,tokenize:f_};function h_(t,e,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 v=i.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||p===i.containerState.marker:ou(p)){if(i.containerState.type||(i.containerState.type=v,t.enter(v,{_container:!0})),v==="listUnordered")return t.enter("listItemPrefix"),p===42||p===45?t.check(is,n,u)(p):u(p);if(!i.interrupt||p===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(p)}return n(p)}function l(p){return ou(p)&&++s<10?(t.consume(p),l):(!i.interrupt||s<2)&&(i.containerState.marker?p===i.containerState.marker:p===41||p===46)?(t.exit("listItemValue"),u(p)):n(p)}function u(p){return t.enter("listItemMarker"),t.consume(p),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||p,t.check(ho,i.interrupt?n:c,t.attempt(d_,h,d))}function c(p){return i.containerState.initialBlankLine=!0,o++,h(p)}function d(p){return ie(p)?(t.enter("listItemPrefixWhitespace"),t.consume(p),t.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return i.containerState.size=o+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(p)}}function p_(t,e,n){const i=this;return i.containerState._closeFlow=void 0,t.check(ho,r,o);function r(a){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ae(t,e,"listItemIndent",i.containerState.size+1)(a)}function o(a){return i.containerState.furtherBlankLines||!ie(a)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(a)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,t.attempt(c_,e,s)(a))}function s(a){return i.containerState._closeFlow=!0,i.interrupt=void 0,ae(t,t.attempt(it,e,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function f_(t,e,n){const i=this;return ae(t,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?e(o):n(o)}}function v_(t){t.exit(this.containerState.type)}function m_(t,e,n){const i=this;return ae(t,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){const s=i.events[i.events.length-1];return!ie(o)&&s&&s[1].type==="listItemPrefixWhitespace"?e(o):n(o)}}const Eh={name:"setextUnderline",resolveTo:g_,tokenize:b_};function g_(t,e){let n=t.length,i,r,o;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){i=n;break}t[n][1].type==="paragraph"&&(r=n)}else t[n][1].type==="content"&&t.splice(n,1),!o&&t[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...t[i][1].start},end:{...t[t.length-1][1].end}};return t[r][1].type="setextHeadingText",o?(t.splice(r,0,["enter",s,e]),t.splice(o+1,0,["exit",t[i][1],e]),t[i][1].end={...t[o][1].end}):t[i][1]=s,t.push(["exit",s,e]),t}function b_(t,e,n){const i=this;let r;return o;function o(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(t.enter("setextHeadingLine"),r=u,s(u)):n(u)}function s(u){return t.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===r?(t.consume(u),a):(t.exit("setextHeadingLineSequence"),ie(u)?ae(t,l,"lineSuffix")(u):l(u))}function l(u){return u===null||J(u)?(t.exit("setextHeadingLine"),e(u)):n(u)}}const w_={tokenize:y_};function y_(t){const e=this,n=t.attempt(ho,i,t.attempt(this.parser.constructs.flowInitial,r,ae(t,t.attempt(this.parser.constructs.flow,r,t.attempt(Cx,r)),"linePrefix")));return n;function i(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function r(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const x_={resolveAll:_m()},__=xm("string"),k_=xm("text");function xm(t){return{resolveAll:_m(t==="text"?S_:void 0),tokenize:e};function e(n){const i=this,r=this.parser.constructs[t],o=n.attempt(r,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=r[c];let h=-1;if(d)for(;++h<d.length;){const p=d[h];if(!p.previous||p.previous.call(i,i.previous))return!0}return!1}}}function _m(t){return e;function e(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 t?t(n,i):n}}function S_(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const i=t[n-1][1],r=e.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(e._contentTypeTextTrailing&&n===t.length&&(a=0),a){const u={type:n===t.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):(t.splice(n,0,["enter",u,e],["exit",u,e]),n+=2)}n++}return t}const C_={42:it,43:it,45:it,48:it,49:it,50:it,51:it,52:it,53:it,54:it,55:it,56:it,57:it,62:fm},D_={91:Ax},z_={[-2]:Ua,[-1]:Ua,32:Ua},E_={35:Nx,42:is,45:[Eh,is],60:Gx,61:Eh,95:is,96:Dh,126:Dh},P_={38:mm,92:vm},A_={[-5]:$a,[-4]:$a,[-3]:$a,33:r_,38:mm,42:su,60:[sx,Yx],91:s_,92:[Lx,vm],93:Ed,95:su,96:wx},I_={null:[su,x_]},T_={null:[42,95]},O_={null:[]},L_=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:T_,contentInitial:D_,disable:O_,document:C_,flow:E_,flowInitial:z_,insideSpan:I_,string:P_,text:A_},Symbol.toStringTag,{value:"Module"}));function R_(t,e,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:z(D),check:z(x),consume:g,enter:b,exit:k,interrupt:z(x,{interrupt:!0})},u={code:null,containerState:{},defineSkip:m,events:[],now:v,parser:t,previous:null,sliceSerialize:h,sliceStream:p,write:d};let c=e.tokenize.call(u,l);return e.resolveAll&&o.push(e),u;function d(O){return s=_t(s,O),y(),s[s.length-1]!==null?[]:(C(e,0),u.events=ra(o,u.events,u),u.events)}function h(O,V){return M_(p(O),V)}function p(O){return N_(s,O)}function v(){const{_bufferIndex:O,_index:V,line:$,column:Q,offset:P}=i;return{_bufferIndex:O,_index:V,line:$,column:Q,offset:P}}function m(O){r[O.line]=O.column,S()}function y(){let O;for(;i._index<s.length;){const V=s[i._index];if(typeof V=="string")for(O=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===O&&i._bufferIndex<V.length;)f(V.charCodeAt(i._bufferIndex));else f(V)}}function f(O){c=c(O)}function g(O){J(O)?(i.line++,i.column=1,i.offset+=O===-3?2:1,S()):O!==-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=O}function b(O,V){const $=V||{};return $.type=O,$.start=v(),u.events.push(["enter",$,u]),a.push($),$}function k(O){const V=a.pop();return V.end=v(),u.events.push(["exit",V,u]),V}function D(O,V){C(O,V.from)}function x(O,V){V.restore()}function z(O,V){return $;function $(Q,P,N){let X,L,Y,w;return Array.isArray(Q)?ue(Q):"tokenize"in Q?ue([Q]):oe(Q);function oe(ee){return Xe;function Xe(Et){const me=Et!==null&&ee[Et],Kt=Et!==null&&ee.null,en=[...Array.isArray(me)?me:me?[me]:[],...Array.isArray(Kt)?Kt:Kt?[Kt]:[]];return ue(en)(Et)}}function ue(ee){return X=ee,L=0,ee.length===0?N:_(ee[L])}function _(ee){return Xe;function Xe(Et){return w=R(),Y=ee,ee.partial||(u.currentConstruct=ee),ee.name&&u.parser.constructs.disable.null.includes(ee.name)?ce():ee.tokenize.call(V?Object.assign(Object.create(u),V):u,l,xe,ce)(Et)}}function xe(ee){return O(Y,w),P}function ce(ee){return w.restore(),++L<X.length?_(X[L]):N}}}function C(O,V){O.resolveAll&&!o.includes(O)&&o.push(O),O.resolve&&vt(u.events,V,u.events.length-V,O.resolve(u.events.slice(V),u)),O.resolveTo&&(u.events=O.resolveTo(u.events,u))}function R(){const O=v(),V=u.previous,$=u.currentConstruct,Q=u.events.length,P=Array.from(a);return{from:Q,restore:N};function N(){i=O,u.previous=V,u.currentConstruct=$,u.events.length=Q,a=P,S()}}function S(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function N_(t,e){const n=e.start._index,i=e.start._bufferIndex,r=e.end._index,o=e.end._bufferIndex;let s;if(n===r)s=[t[n].slice(i,o)];else{if(s=t.slice(n,r),i>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(i):s.shift()}o>0&&s.push(t[r].slice(0,o))}return s}function M_(t,e){let n=-1;const i=[];let r;for(;++n<t.length;){const o=t[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=e?" ":" ";break}case-1:{if(!e&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,i.push(s)}return i.join("")}function V_(t){const i={constructs:hm([L_,...(t||{}).extensions||[]]),content:r(K0),defined:[],document:r(tx),flow:r(w_),lazy:{},string:r(__),text:r(k_)};return i;function r(o){return s;function s(a){return R_(i,o,a)}}}function F_(t){for(;!gm(t););return t}const Ph=/[\0\t\n\r]/g;function G_(){let t=1,e="",n=!0,i;return r;function r(o,s,a){const l=[];let u,c,d,h,p;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),d=0,e="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Ph.lastIndex=d,u=Ph.exec(o),h=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(h),!u){e=o.slice(d);break}if(p===10&&d===h&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),d<h&&(l.push(o.slice(d,h)),t+=h-d),p){case 0:{l.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:i=!0,t=1}d=h+1}return a&&(i&&l.push(-5),e&&l.push(e),l.push(null)),l}}const H_=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function W_(t){return t.replace(H_,B_)}function B_(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return pm(n.slice(o?2:1),o?16:10)}return zd(n)||t}const km={}.hasOwnProperty;function j_(t,e,n){return e&&typeof e=="object"&&(n=e,e=void 0),U_(n)(F_(V_(n).document().write(G_()(t,e,!0))))}function U_(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(qd),autolinkProtocol:R,autolinkEmail:R,atxHeading:o(Jd),blockQuote:o(Kt),characterEscape:R,characterReference:R,codeFenced:o(en),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(en,s),codeText:o(gi,s),codeTextData:R,data:R,codeFlowValue:R,definition:o(rr),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(bi),hardBreakEscape:o(Zd),hardBreakTrailing:o(Zd),htmlFlow:o(Xd,s),htmlFlowData:R,htmlText:o(Xd,s),htmlTextData:R,image:o(Kg),label:s,link:o(qd),listItem:o(eb),listItemValue:h,listOrdered:o(Kd,d),listUnordered:o(Kd),paragraph:o(tb),reference:_,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Jd),strong:o(nb),thematicBreak:o(rb)},exit:{atxHeading:l(),atxHeadingSequence:D,autolink:l(),autolinkEmail:me,autolinkProtocol:Et,blockQuote:l(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:ee,characterReference:Xe,codeFenced:l(y),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:v,codeFlowValue:S,codeIndented:l(f),codeText:l(P),codeTextData:S,data:S,definition:l(),definitionDestinationString:k,definitionLabelString:g,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(V),hardBreakTrailing:l(V),htmlFlow:l($),htmlFlowData:S,htmlText:l(Q),htmlTextData:S,image:l(X),label:Y,labelText:L,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:xe,resourceDestinationString:w,resourceTitleString:oe,resource:ue,setextHeading:l(C),setextHeadingLineSequence:z,setextHeadingText:x,strong:l(),thematicBreak:l()}};Sm(e,(t||{}).mdastExtensions||[]);const n={};return i;function i(A){let M={type:"root",children:[]};const K={stack:[M],tokenStack:[],config:e,enter:a,exit:u,buffer:s,resume:c,data:n},se=[];let he=-1;for(;++he<A.length;)if(A[he][1].type==="listOrdered"||A[he][1].type==="listUnordered")if(A[he][0]==="enter")se.push(he);else{const Pt=se.pop();he=r(A,Pt,he)}for(he=-1;++he<A.length;){const Pt=e[A[he][0]];km.call(Pt,A[he][1].type)&&Pt[A[he][1].type].call(Object.assign({sliceSerialize:A[he][2].sliceSerialize},K),A[he][1])}if(K.tokenStack.length>0){const Pt=K.tokenStack[K.tokenStack.length-1];(Pt[1]||Ah).call(K,void 0,Pt[0])}for(M.position={start:bn(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:bn(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he<e.transforms.length;)M=e.transforms[he](M)||M;return M}function r(A,M,K){let se=M-1,he=-1,Pt=!1,$n,tn,or,sr;for(;++se<=K;){const dt=A[se];switch(dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{dt[0]==="enter"?he++:he--,sr=void 0;break}case"lineEndingBlank":{dt[0]==="enter"&&($n&&!sr&&!he&&!or&&(or=se),sr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:sr=void 0}if(!he&&dt[0]==="enter"&&dt[1].type==="listItemPrefix"||he===-1&&dt[0]==="exit"&&(dt[1].type==="listUnordered"||dt[1].type==="listOrdered")){if($n){let wi=se;for(tn=void 0;wi--;){const nn=A[wi];if(nn[1].type==="lineEnding"||nn[1].type==="lineEndingBlank"){if(nn[0]==="exit")continue;tn&&(A[tn][1].type="lineEndingBlank",Pt=!0),nn[1].type="lineEnding",tn=wi}else if(!(nn[1].type==="linePrefix"||nn[1].type==="blockQuotePrefix"||nn[1].type==="blockQuotePrefixWhitespace"||nn[1].type==="blockQuoteMarker"||nn[1].type==="listItemIndent"))break}or&&(!tn||or<tn)&&($n._spread=!0),$n.end=Object.assign({},tn?A[tn][1].start:dt[1].end),A.splice(tn||se,0,["exit",$n,dt[2]]),se++,K++}if(dt[1].type==="listItemPrefix"){const wi={type:"listItem",_spread:!1,start:Object.assign({},dt[1].start),end:void 0};$n=wi,A.splice(se,0,["enter",wi,dt[2]]),se++,K++,or=void 0,sr=!0}}}return A[M][1]._spread=Pt,K}function o(A,M){return K;function K(se){a.call(this,A(se),se),M&&M.call(this,se)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(A,M,K){this.stack[this.stack.length-1].children.push(A),this.stack.push(A),this.tokenStack.push([M,K||void 0]),A.position={start:bn(M.start),end:void 0}}function l(A){return M;function M(K){A&&A.call(this,K),u.call(this,K)}}function u(A,M){const K=this.stack.pop(),se=this.tokenStack.pop();if(se)se[0].type!==A.type&&(M?M.call(this,A,se[0]):(se[1]||Ah).call(this,A,se[0]));else throw new Error("Cannot close `"+A.type+"` ("+Tr({start:A.start,end:A.end})+"): it’s not open");K.position.end=bn(A.end)}function c(){return Dd(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(A){if(this.data.expectingFirstListItemValue){const M=this.stack[this.stack.length-2];M.start=Number.parseInt(this.sliceSerialize(A),10),this.data.expectingFirstListItemValue=void 0}}function p(){const A=this.resume(),M=this.stack[this.stack.length-1];M.lang=A}function v(){const A=this.resume(),M=this.stack[this.stack.length-1];M.meta=A}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const A=this.resume(),M=this.stack[this.stack.length-1];M.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function f(){const A=this.resume(),M=this.stack[this.stack.length-1];M.value=A.replace(/(\r?\n|\r)$/g,"")}function g(A){const M=this.resume(),K=this.stack[this.stack.length-1];K.label=M,K.identifier=Vt(this.sliceSerialize(A)).toLowerCase()}function b(){const A=this.resume(),M=this.stack[this.stack.length-1];M.title=A}function k(){const A=this.resume(),M=this.stack[this.stack.length-1];M.url=A}function D(A){const M=this.stack[this.stack.length-1];if(!M.depth){const K=this.sliceSerialize(A).length;M.depth=K}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function z(A){const M=this.stack[this.stack.length-1];M.depth=this.sliceSerialize(A).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function R(A){const K=this.stack[this.stack.length-1].children;let se=K[K.length-1];(!se||se.type!=="text")&&(se=ib(),se.position={start:bn(A.start),end:void 0},K.push(se)),this.stack.push(se)}function S(A){const M=this.stack.pop();M.value+=this.sliceSerialize(A),M.position.end=bn(A.end)}function O(A){const M=this.stack[this.stack.length-1];if(this.data.atHardBreak){const K=M.children[M.children.length-1];K.position.end=bn(A.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(M.type)&&(R.call(this,A),S.call(this,A))}function V(){this.data.atHardBreak=!0}function $(){const A=this.resume(),M=this.stack[this.stack.length-1];M.value=A}function Q(){const A=this.resume(),M=this.stack[this.stack.length-1];M.value=A}function P(){const A=this.resume(),M=this.stack[this.stack.length-1];M.value=A}function N(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=M,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function X(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=M,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function L(A){const M=this.sliceSerialize(A),K=this.stack[this.stack.length-2];K.label=W_(M),K.identifier=Vt(M).toLowerCase()}function Y(){const A=this.stack[this.stack.length-1],M=this.resume(),K=this.stack[this.stack.length-1];if(this.data.inReference=!0,K.type==="link"){const se=A.children;K.children=se}else K.alt=M}function w(){const A=this.resume(),M=this.stack[this.stack.length-1];M.url=A}function oe(){const A=this.resume(),M=this.stack[this.stack.length-1];M.title=A}function ue(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function xe(A){const M=this.resume(),K=this.stack[this.stack.length-1];K.label=M,K.identifier=Vt(this.sliceSerialize(A)).toLowerCase(),this.data.referenceType="full"}function ce(A){this.data.characterReferenceType=A.type}function ee(A){const M=this.sliceSerialize(A),K=this.data.characterReferenceType;let se;K?(se=pm(M,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):se=zd(M);const he=this.stack[this.stack.length-1];he.value+=se}function Xe(A){const M=this.stack.pop();M.position.end=bn(A.end)}function Et(A){S.call(this,A);const M=this.stack[this.stack.length-1];M.url=this.sliceSerialize(A)}function me(A){S.call(this,A);const M=this.stack[this.stack.length-1];M.url="mailto:"+this.sliceSerialize(A)}function Kt(){return{type:"blockquote",children:[]}}function en(){return{type:"code",lang:null,meta:null,value:""}}function gi(){return{type:"inlineCode",value:""}}function rr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function bi(){return{type:"emphasis",children:[]}}function Jd(){return{type:"heading",depth:0,children:[]}}function Zd(){return{type:"break"}}function Xd(){return{type:"html",value:""}}function Kg(){return{type:"image",title:null,url:"",alt:null}}function qd(){return{type:"link",title:null,url:"",children:[]}}function Kd(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function eb(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function tb(){return{type:"paragraph",children:[]}}function nb(){return{type:"strong",children:[]}}function ib(){return{type:"text",value:""}}function rb(){return{type:"thematicBreak"}}}function bn(t){return{line:t.line,column:t.column,offset:t.offset}}function Sm(t,e){let n=-1;for(;++n<e.length;){const i=e[n];Array.isArray(i)?Sm(t,i):$_(t,i)}}function $_(t,e){let n;for(n in e)if(km.call(e,n))switch(n){case"canContainEols":{const i=e[n];i&&t[n].push(...i);break}case"transforms":{const i=e[n];i&&t[n].push(...i);break}case"enter":case"exit":{const i=e[n];i&&Object.assign(t[n],i);break}}}function Ah(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Tr({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Tr({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Tr({start:e.start,end:e.end})+") is still open")}function Y_(t){const e=this;e.parser=n;function n(i){return j_(i,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function Q_(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function J_(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
|
|
44
|
-
`}]}function Z_(t,e){const n=e.value?e.value+`
|
|
45
|
-
`:"",i={},r=e.lang?e.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 e.meta&&(o.data={meta:e.meta}),t.patch(e,o),o=t.applyData(e,o),o={type:"element",tagName:"pre",properties:{},children:[o]},t.patch(e,o),o}function X_(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function q_(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function K_(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),r=nr(i.toLowerCase()),o=t.footnoteOrder.indexOf(i);let s,a=t.footnoteCounts.get(i);a===void 0?(a=0,t.footnoteOrder.push(i),s=t.footnoteOrder.length):s=o+1,a+=1,t.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)}]};t.patch(e,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,u),t.applyData(e,u)}function ek(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function tk(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function Cm(t,e){const n=e.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const r=t.all(e),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 nk(t,e){const n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return Cm(t,e);const r={src:nr(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return t.patch(e,o),t.applyData(e,o)}function ik(t,e){const n={src:nr(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const i={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,i),t.applyData(e,i)}function rk(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,i),t.applyData(e,i)}function ok(t,e){const n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return Cm(t,e);const r={href:nr(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:t.all(e)};return t.patch(e,o),t.applyData(e,o)}function sk(t,e){const n={href:nr(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const i={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function ak(t,e,n){const i=t.all(e),r=n?lk(n):Dm(e),o={},s=[];if(typeof e.checked=="boolean"){const c=i[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},i.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const c=i[a];(r||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
46
|
-
`}),c.type==="element"&&c.tagName==="p"&&!r?s.push(...c.children):s.push(c)}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 t.patch(e,u),t.applyData(e,u)}function lk(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let i=-1;for(;!e&&++i<n.length;)e=Dm(n[i])}return e}function Dm(t){const e=t.spread;return e??t.children.length>1}function uk(t,e){const n={},i=t.all(e);let r=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.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:e.ordered?"ol":"ul",properties:n,children:t.wrap(i,!0)};return t.patch(e,o),t.applyData(e,o)}function dk(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function ck(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function hk(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function pk(t,e){const n=t.all(e),i=n.shift(),r=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:t.wrap([i],!0)};t.patch(e.children[0],s),r.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},a=_d(e.children[1]),l=om(e.children[e.children.length-1]);a&&l&&(s.position={start:a,end:l}),r.push(s)}const o={type:"element",tagName:"table",properties:{},children:t.wrap(r,!0)};return t.patch(e,o),t.applyData(e,o)}function fk(t,e,n){const i=n?n.children:void 0,o=(i?i.indexOf(e):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:e.children.length;let l=-1;const u=[];for(;++l<a;){const d=e.children[l],h={},p=s?s[l]:void 0;p&&(h.align=p);let v={type:"element",tagName:o,properties:h,children:[]};d&&(v.children=t.all(d),t.patch(d,v),v=t.applyData(d,v)),u.push(v)}const c={type:"element",tagName:"tr",properties:{},children:t.wrap(u,!0)};return t.patch(e,c),t.applyData(e,c)}function vk(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const Ih=9,Th=32;function mk(t){const e=String(t),n=/\r?\n|\r/g;let i=n.exec(e),r=0;const o=[];for(;i;)o.push(Oh(e.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(e);return o.push(Oh(e.slice(r),r>0,!1)),o.join("")}function Oh(t,e,n){let i=0,r=t.length;if(e){let o=t.codePointAt(i);for(;o===Ih||o===Th;)i++,o=t.codePointAt(i)}if(n){let o=t.codePointAt(r-1);for(;o===Ih||o===Th;)r--,o=t.codePointAt(r-1)}return r>i?t.slice(i,r):""}function gk(t,e){const n={type:"text",value:mk(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function bk(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const wk={blockquote:Q_,break:J_,code:Z_,delete:X_,emphasis:q_,footnoteReference:K_,heading:ek,html:tk,imageReference:nk,image:ik,inlineCode:rk,linkReference:ok,link:sk,listItem:ak,list:uk,paragraph:dk,root:ck,strong:hk,table:pk,tableCell:vk,tableRow:fk,text:gk,thematicBreak:bk,toml:Oo,yaml:Oo,definition:Oo,footnoteDefinition:Oo};function Oo(){}const zm=-1,oa=0,Lr=1,Is=2,Pd=3,Ad=4,Id=5,Td=6,Em=7,Pm=8,Lh=typeof self=="object"?self:globalThis,yk=(t,e)=>{const n=(r,o)=>(t.set(o,r),r),i=r=>{if(t.has(r))return t.get(r);const[o,s]=e[r];switch(o){case oa:case zm:return n(s,r);case Lr:{const a=n([],r);for(const l of s)a.push(i(l));return a}case Is:{const a=n({},r);for(const[l,u]of s)a[i(l)]=i(u);return a}case Pd:return n(new Date(s),r);case Ad:{const{source:a,flags:l}=s;return n(new RegExp(a,l),r)}case Id:{const a=n(new Map,r);for(const[l,u]of s)a.set(i(l),i(u));return a}case Td:{const a=n(new Set,r);for(const l of s)a.add(i(l));return a}case Em:{const{name:a,message:l}=s;return n(new Lh[a](l),r)}case Pm: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 Lh[o](s),r)};return i},Rh=t=>yk(new Map,t)(0),xi="",{toString:xk}={},{keys:_k}=Object,mr=t=>{const e=typeof t;if(e!=="object"||!t)return[oa,e];const n=xk.call(t).slice(8,-1);switch(n){case"Array":return[Lr,xi];case"Object":return[Is,xi];case"Date":return[Pd,xi];case"RegExp":return[Ad,xi];case"Map":return[Id,xi];case"Set":return[Td,xi];case"DataView":return[Lr,n]}return n.includes("Array")?[Lr,n]:n.includes("Error")?[Em,n]:[Is,n]},Lo=([t,e])=>t===oa&&(e==="function"||e==="symbol"),kk=(t,e,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]=mr(s);switch(a){case oa:{let c=s;switch(l){case"bigint":a=Pm,c=s.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return r([zm],s)}return r([a,c],s)}case Lr:{if(l){let h=s;return l==="DataView"?h=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(s)),r([l,[...h]],s)}const c=[],d=r([a,c],s);for(const h of s)c.push(o(h));return d}case Is:{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(e&&"toJSON"in s)return o(s.toJSON());const c=[],d=r([a,c],s);for(const h of _k(s))(t||!Lo(mr(s[h])))&&c.push([o(h),o(s[h])]);return d}case Pd:return r([a,s.toISOString()],s);case Ad:{const{source:c,flags:d}=s;return r([a,{source:c,flags:d}],s)}case Id:{const c=[],d=r([a,c],s);for(const[h,p]of s)(t||!(Lo(mr(h))||Lo(mr(p))))&&c.push([o(h),o(p)]);return d}case Td:{const c=[],d=r([a,c],s);for(const h of s)(t||!Lo(mr(h)))&&c.push(o(h));return d}}const{message:u}=s;return r([a,{name:l,message:u}],s)};return o},Nh=(t,{json:e,lossy:n}={})=>{const i=[];return kk(!(e||n),!!e,new Map,i)(t),i},Ts=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?Rh(Nh(t,e)):structuredClone(t):(t,e)=>Rh(Nh(t,e));function Sk(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function Ck(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function Dk(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||Sk,i=t.options.footnoteBackLabel||Ck,r=t.options.footnoteLabel||"Footnotes",o=t.options.footnoteLabelTagName||"h2",s=t.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<t.footnoteOrder.length;){const u=t.footnoteById.get(t.footnoteOrder[l]);if(!u)continue;const c=t.all(u),d=String(u.identifier).toUpperCase(),h=nr(d.toLowerCase());let p=0;const v=[],m=t.footnoteCounts.get(d);for(;m!==void 0&&++p<=m;){v.length>0&&v.push({type:"text",value:" "});let g=typeof n=="string"?n:n(l,p);typeof g=="string"&&(g={type:"text",value:g}),v.push({type:"element",tagName:"a",properties:{href:"#"+e+"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=c[c.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(...v)}else c.push(...v);const f={type:"element",tagName:"li",properties:{id:e+"fn-"+h},children:t.wrap(c,!0)};t.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:{...Ts(s),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
|
|
48
|
-
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(a,!0)},{type:"text",value:`
|
|
49
|
-
`}]}}const sa=function(t){if(t==null)return Ak;if(typeof t=="function")return aa(t);if(typeof t=="object")return Array.isArray(t)?zk(t):Ek(t);if(typeof t=="string")return Pk(t);throw new Error("Expected function, string, or object as test")};function zk(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=sa(t[n]);return aa(i);function i(...r){let o=-1;for(;++o<e.length;)if(e[o].apply(this,r))return!0;return!1}}function Ek(t){const e=t;return aa(n);function n(i){const r=i;let o;for(o in t)if(r[o]!==e[o])return!1;return!0}}function Pk(t){return aa(e);function e(n){return n&&n.type===t}}function aa(t){return e;function e(n,i,r){return!!(Ik(n)&&t.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function Ak(){return!0}function Ik(t){return t!==null&&typeof t=="object"&&"type"in t}const Am=[],Tk=!0,au=!1,Ok="skip";function Im(t,e,n,i){let r;typeof e=="function"&&typeof n!="function"?(i=n,n=e):r=e;const o=sa(r),s=i?-1:1;a(t,void 0,[])();function a(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=Am,v,m,y;if((!e||o(l,u,c[c.length-1]||void 0))&&(p=Lk(n(l,c)),p[0]===au))return p;if("children"in l&&l.children){const f=l;if(f.children&&p[0]!==Ok)for(m=(i?f.children.length:-1)+s,y=c.concat(f);m>-1&&m<f.children.length;){const g=f.children[m];if(v=a(g,m,y)(),v[0]===au)return v;m=typeof v[1]=="number"?v[1]:m+s}}return p}}}function Lk(t){return Array.isArray(t)?t:typeof t=="number"?[Tk,t]:t==null?Am:[t]}function la(t,e,n,i){let r,o,s;typeof e=="function"&&typeof n!="function"?(o=void 0,s=e,r=n):(o=e,s=n,r=i),Im(t,o,a,r);function a(l,u){const c=u[u.length-1],d=c?c.children.indexOf(l):void 0;return s(l,d,c)}}const lu={}.hasOwnProperty,Rk={};function Nk(t,e){const n=e||Rk,i=new Map,r=new Map,o=new Map,s={...wk,...n.handlers},a={all:u,applyData:Vk,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:Mk,wrap:Gk};return la(t,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?i:r,h=String(c.identifier).toUpperCase();d.has(h)||d.set(h,c)}}),a;function l(c,d){const h=c.type,p=a.handlers[h];if(lu.call(a.handlers,h)&&p)return p(a,c,d);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in c){const{children:m,...y}=c,f=Ts(y);return f.children=a.all(c),f}return Ts(c)}return(a.options.unknownHandler||Fk)(a,c,d)}function u(c){const d=[];if("children"in c){const h=c.children;let p=-1;for(;++p<h.length;){const v=a.one(h[p],c);if(v){if(p&&h[p-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=Mh(v.value)),!Array.isArray(v)&&v.type==="element")){const m=v.children[0];m&&m.type==="text"&&(m.value=Mh(m.value))}Array.isArray(v)?d.push(...v):d.push(v)}}}return d}}function Mk(t,e){t.position&&(e.position=C0(t))}function Vk(t,e){let n=e;if(t&&t.data){const i=t.data.hName,r=t.data.hChildren,o=t.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,Ts(o)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function Fk(t,e){const n=e.data||{},i="value"in e&&!(lu.call(n,"hProperties")||lu.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function Gk(t,e){const n=[];let i=-1;for(e&&n.push({type:"text",value:`
|
|
50
|
-
`});++i<t.length;)i&&n.push({type:"text",value:`
|
|
51
|
-
`}),n.push(t[i]);return e&&t.length>0&&n.push({type:"text",value:`
|
|
52
|
-
`}),n}function Mh(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function Vh(t,e){const n=Nk(t,e),i=n.one(t,void 0),r=Dk(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 Hk(t,e){return t&&"run"in t?async function(n,i){const r=Vh(n,{file:i,...e});await t.run(r,i)}:function(n,i){return Vh(n,{file:i,...t||e})}}function Fh(t){if(t)throw t}var rs=Object.prototype.hasOwnProperty,Tm=Object.prototype.toString,Gh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,Wh=function(e){return typeof Array.isArray=="function"?Array.isArray(e):Tm.call(e)==="[object Array]"},Bh=function(e){if(!e||Tm.call(e)!=="[object Object]")return!1;var n=rs.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&rs.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;var r;for(r in e);return typeof r>"u"||rs.call(e,r)},jh=function(e,n){Gh&&n.name==="__proto__"?Gh(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},Uh=function(e,n){if(n==="__proto__")if(rs.call(e,n)){if(Hh)return Hh(e,n).value}else return;return e[n]},Wk=function t(){var e,n,i,r,o,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(e=arguments[l],e!=null)for(n in e)i=Uh(a,n),r=Uh(e,n),a!==r&&(c&&r&&(Bh(r)||(o=Wh(r)))?(o?(o=!1,s=i&&Wh(i)?i:[]):s=i&&Bh(i)?i:{},jh(a,{name:n,newValue:t(c,s,r)})):typeof r<"u"&&jh(a,{name:n,newValue:r}));return a};const Ya=Fs(Wk);function uu(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Bk(){const t=[],e={run:n,use:i};return e;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 c=t[++o];let d=-1;if(l){s(l);return}for(;++d<r.length;)(u[d]===null||u[d]===void 0)&&(u[d]=r[d]);r=u,c?jk(c,a)(...u):s(null,...u)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return t.push(r),e}}function jk(t,e){let n;return i;function i(...s){const a=t.length>s.length;let l;a&&s.push(r);try{l=t.apply(this,s)}catch(u){const c=u;if(a&&n)throw c;return r(c)}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,e(s,...a))}function o(s){r(null,s)}}const jt={basename:Uk,dirname:$k,extname:Yk,join:Qk,sep:"/"};function Uk(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');po(t);let n=0,i=-1,r=t.length,o;if(e===void 0||e.length===0||e.length>t.length){for(;r--;)if(t.codePointAt(r)===47){if(o){n=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":t.slice(n,i)}if(e===t)return"";let s=-1,a=e.length-1;for(;r--;)if(t.codePointAt(r)===47){if(o){n=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(t.codePointAt(r)===e.codePointAt(a--)?a<0&&(i=r):(a=-1,i=s));return n===i?i=s:i<0&&(i=t.length),t.slice(n,i)}function $k(t){if(po(t),t.length===0)return".";let e=-1,n=t.length,i;for(;--n;)if(t.codePointAt(n)===47){if(i){e=n;break}}else i||(i=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function Yk(t){po(t);let e=t.length,n=-1,i=0,r=-1,o=0,s;for(;e--;){const a=t.codePointAt(e);if(a===47){if(s){i=e+1;break}continue}n<0&&(s=!0,n=e+1),a===46?r<0?r=e:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||n<0||o===0||o===1&&r===n-1&&r===i+1?"":t.slice(r,n)}function Qk(...t){let e=-1,n;for(;++e<t.length;)po(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":Jk(n)}function Jk(t){po(t);const e=t.codePointAt(0)===47;let n=Zk(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function Zk(t,e){let n="",i=0,r=-1,o=0,s=-1,a,l;for(;++s<=t.length;){if(s<t.length)a=t.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}}e&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+t.slice(r+1,s):n=t.slice(r+1,s),i=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function po(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Xk={cwd:qk};function qk(){return"/"}function du(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function Kk(t){if(typeof t=="string")t=new URL(t);else if(!du(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return e1(t)}function e1(t){if(t.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 e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const i=e.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(e)}const Qa=["history","path","basename","stem","extname","dirname"];class Om{constructor(e){let n;e?du(e)?n={path:e}:typeof e=="string"||t1(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":Xk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Qa.length;){const o=Qa[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)Qa.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?jt.basename(this.path):void 0}set basename(e){Za(e,"basename"),Ja(e,"basename"),this.path=jt.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?jt.dirname(this.path):void 0}set dirname(e){$h(this.basename,"dirname"),this.path=jt.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?jt.extname(this.path):void 0}set extname(e){if(Ja(e,"extname"),$h(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=jt.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){du(e)&&(e=Kk(e)),Za(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?jt.basename(this.path,this.extname):void 0}set stem(e){Za(e,"stem"),Ja(e,"stem"),this.path=jt.join(this.dirname||"",e+(this.extname||""))}fail(e,n,i){const r=this.message(e,n,i);throw r.fatal=!0,r}info(e,n,i){const r=this.message(e,n,i);return r.fatal=void 0,r}message(e,n,i){const r=new Ze(e,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Ja(t,e){if(t&&t.includes(jt.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+jt.sep+"`")}function Za(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function $h(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function t1(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const n1=function(t){const i=this.constructor.prototype,r=i[t],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,i),o},i1={}.hasOwnProperty;class Od extends n1{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=Bk()}copy(){const e=new Od;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];e.use(...i)}return e.data(Ya(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(Ka("data",this.frozen),this.namespace[e]=n,this):i1.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ka("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=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(e,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=Ro(e),i=this.parser||this.Parser;return Xa("parse",i),i(String(n),n)}process(e,n){const i=this;return this.freeze(),Xa("process",this.parser||this.Parser),qa("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(o,s){const a=Ro(e),l=i.parse(a);i.run(l,a,function(c,d,h){if(c||!d||!h)return u(c);const p=d,v=i.stringify(p,h);s1(v)?h.value=v:h.result=v,u(c,h)});function u(c,d){c||!d?s(c):o?o(d):n(void 0,d)}}}processSync(e){let n=!1,i;return this.freeze(),Xa("processSync",this.parser||this.Parser),qa("processSync",this.compiler||this.Compiler),this.process(e,r),Qh("processSync","process",n),i;function r(o,s){n=!0,Fh(o),i=s}}run(e,n,i){Yh(e),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=Ro(n);r.run(e,l,u);function u(c,d,h){const p=d||e;c?a(c):s?s(p):i(void 0,p,h)}}}runSync(e,n){let i=!1,r;return this.run(e,n,o),Qh("runSync","run",i),r;function o(s,a){Fh(s),r=a,i=!0}}stringify(e,n){this.freeze();const i=Ro(n),r=this.compiler||this.Compiler;return qa("stringify",r),Yh(e),r(e,i)}use(e,...n){const i=this.attachers,r=this.namespace;if(Ka("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?a(e):s(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;l(c,d)}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=Ya(!0,r.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let d=-1,h=-1;for(;++d<i.length;)if(i[d][0]===u){h=d;break}if(h===-1)i.push([u,...c]);else if(c.length>0){let[p,...v]=c;const m=i[h][1];uu(m)&&uu(p)&&(p=Ya(!0,m,p)),i[h]=[u,p,...v]}}}}const r1=new Od().freeze();function Xa(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function qa(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Ka(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Yh(t){if(!uu(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Qh(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Ro(t){return o1(t)?t:new Om(t)}function o1(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function s1(t){return typeof t=="string"||a1(t)}function a1(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const l1="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Jh=[],Zh={allowDangerousHtml:!0},u1=/^(https?|ircs?|mailto|xmpp)$/i,d1=[{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 XE(t){const e=c1(t),n=h1(t);return p1(e.runSync(e.parse(n),n),t)}function c1(t){const e=t.rehypePlugins||Jh,n=t.remarkPlugins||Jh,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Zh}:Zh;return r1().use(Y_).use(n).use(Hk,i).use(e)}function h1(t){const e=t.children||"",n=new Om;return typeof e=="string"&&(n.value=e),n}function p1(t,e){const n=e.allowedElements,i=e.allowElement,r=e.components,o=e.disallowedElements,s=e.skipHtml,a=e.unwrapDisallowed,l=e.urlTransform||f1;for(const c of d1)Object.hasOwn(e,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+l1+c.id,void 0);return e.className&&(t={type:"element",tagName:"div",properties:{className:e.className},children:t.type==="root"?t.children:[t]}),la(t,u),A0(t,{Fragment:ga.Fragment,components:r,ignoreInvalidStyle:!0,jsx:ga.jsx,jsxs:ga.jsxs,passKeys:!0,passNode:!0});function u(c,d,h){if(c.type==="raw"&&h&&typeof d=="number")return s?h.children.splice(d,1):h.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in ja)if(Object.hasOwn(ja,p)&&Object.hasOwn(c.properties,p)){const v=c.properties[p],m=ja[p];(m===null||m.includes(c.tagName))&&(c.properties[p]=l(String(v||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):o?o.includes(c.tagName):!1;if(!p&&i&&typeof d=="number"&&(p=!i(c,d,h)),p&&h&&typeof d=="number")return a&&c.children?h.children.splice(d,1,...c.children):h.children.splice(d,1),d}}}function f1(t){const e=t.indexOf(":"),n=t.indexOf("?"),i=t.indexOf("#"),r=t.indexOf("/");return e===-1||r!==-1&&e>r||n!==-1&&e>n||i!==-1&&e>i||u1.test(t.slice(0,e))?t:""}function Xh(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(e);for(;r!==-1;)i++,r=n.indexOf(e,r+e.length);return i}function v1(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Lm(t,e,n){const r=sa((n||{}).ignore||[]),o=m1(e);let s=-1;for(;++s<o.length;)Im(t,"text",a);function a(u,c){let d=-1,h;for(;++d<c.length;){const p=c[d],v=h?h.children:void 0;if(r(p,v?v.indexOf(p):void 0,h))return;h=p}if(h)return l(u,c)}function l(u,c){const d=c[c.length-1],h=o[s][0],p=o[s][1];let v=0;const y=d.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:[...c,u]};let x=p(...b,D);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x===!1?h.lastIndex=k+1:(v!==k&&g.push({type:"text",value:u.value.slice(v,k)}),Array.isArray(x)?g.push(...x):x&&g.push(x),v=k+b[0].length,f=!0),!h.global)break;b=h.exec(u.value)}return f?(v<u.value.length&&g.push({type:"text",value:u.value.slice(v)}),d.children.splice(y,1,...g)):g=[u],y+g.length}}function m1(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let i=-1;for(;++i<n.length;){const r=n[i];e.push([g1(r[0]),b1(r[1])])}return e}function g1(t){return typeof t=="string"?new RegExp(v1(t),"g"):t}function b1(t){return typeof t=="function"?t:function(){return t}}const el="phrasing",tl=["autolink","link","image","label"];function w1(){return{transforms:[D1],enter:{literalAutolink:x1,literalAutolinkEmail:nl,literalAutolinkHttp:nl,literalAutolinkWww:nl},exit:{literalAutolink:C1,literalAutolinkEmail:S1,literalAutolinkHttp:_1,literalAutolinkWww:k1}}}function y1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:el,notInConstruct:tl},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:el,notInConstruct:tl},{character:":",before:"[ps]",after:"\\/",inConstruct:el,notInConstruct:tl}]}}function x1(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function nl(t){this.config.enter.autolinkProtocol.call(this,t)}function _1(t){this.config.exit.autolinkProtocol.call(this,t)}function k1(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function S1(t){this.config.exit.autolinkEmail.call(this,t)}function C1(t){this.exit(t)}function D1(t){Lm(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,z1],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),E1]],{ignore:["link","linkReference"]})}function z1(t,e,n,i,r){let o="";if(!Rm(r)||(/^w/i.test(e)&&(n=e+n,e="",o="http://"),!P1(n)))return!1;const s=A1(n+i);if(!s[0])return!1;const a={type:"link",title:null,url:o+e+s[0],children:[{type:"text",value:e+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function E1(t,e,n,i){return!Rm(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function P1(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function A1(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],i=n.indexOf(")");const r=Xh(t,"(");let o=Xh(t,")");for(;i!==-1&&r>o;)t+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),o++;return[t,n]}function Rm(t,e){const n=t.input.charCodeAt(t.index-1);return(t.index===0||ci(n)||ia(n))&&(!e||n!==47)}Nm.peek=F1;function I1(){this.buffer()}function T1(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function O1(){this.buffer()}function L1(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function R1(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Vt(this.sliceSerialize(t)).toLowerCase(),n.label=e}function N1(t){this.exit(t)}function M1(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Vt(this.sliceSerialize(t)).toLowerCase(),n.label=e}function V1(t){this.exit(t)}function F1(){return"["}function Nm(t,e,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(t),{after:"]",before:o})),a(),s(),o+=r.move("]"),o}function G1(){return{enter:{gfmFootnoteCallString:I1,gfmFootnoteCall:T1,gfmFootnoteDefinitionLabelString:O1,gfmFootnoteDefinition:L1},exit:{gfmFootnoteCallString:R1,gfmFootnoteCall:N1,gfmFootnoteDefinitionLabelString:M1,gfmFootnoteDefinition:V1}}}function H1(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:n,footnoteReference:Nm},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"),c=o.enter("label");return l+=a.move(o.safe(o.associationId(i),{before:l,after:"]"})),c(),l+=a.move("]:"),i.children&&i.children.length>0&&(a.shift(4),l+=a.move((e?`
|
|
54
|
-
`:" ")+o.indentLines(o.containerFlow(i,a.current()),e?Mm:W1))),u(),l}}function W1(t,e,n){return e===0?t:Mm(t,e,n)}function Mm(t,e,n){return(n?"":" ")+t}const B1=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Vm.peek=Q1;function j1(){return{canContainEols:["delete"],enter:{strikethrough:$1},exit:{strikethrough:Y1}}}function U1(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:B1}],handlers:{delete:Vm}}}function $1(t){this.enter({type:"delete",children:[]},t)}function Y1(t){this.exit(t)}function Vm(t,e,n,i){const r=n.createTracker(i),o=n.enter("strikethrough");let s=r.move("~~");return s+=n.containerPhrasing(t,{...r.current(),before:s,after:"~"}),s+=r.move("~~"),o(),s}function Q1(){return"~"}function J1(t){return t.length}function Z1(t,e){const n=e||{},i=(n.align||[]).concat(),r=n.stringLength||J1,o=[],s=[],a=[],l=[];let u=0,c=-1;for(;++c<t.length;){const m=[],y=[];let f=-1;for(t[c].length>u&&(u=t[c].length);++f<t[c].length;){const g=X1(t[c][f]);if(n.alignDelimiters!==!1){const b=r(g);y[f]=b,(l[f]===void 0||b>l[f])&&(l[f]=b)}m.push(g)}s[c]=m,a[c]=y}let d=-1;if(typeof i=="object"&&"length"in i)for(;++d<u;)o[d]=qh(i[d]);else{const m=qh(i);for(;++d<u;)o[d]=m}d=-1;const h=[],p=[];for(;++d<u;){const m=o[d];let y="",f="";m===99?(y=":",f=":"):m===108?y=":":m===114&&(f=":");let g=n.alignDelimiters===!1?1:Math.max(1,l[d]-y.length-f.length);const b=y+"-".repeat(g)+f;n.alignDelimiters!==!1&&(g=y.length+g+f.length,g>l[d]&&(l[d]=g),p[d]=g),h[d]=b}s.splice(1,0,h),a.splice(1,0,p),c=-1;const v=[];for(;++c<s.length;){const m=s[c],y=a[c];d=-1;const f=[];for(;++d<u;){const g=m[d]||"";let b="",k="";if(n.alignDelimiters!==!1){const D=l[d]-(y[d]||0),x=o[d];x===114?b=" ".repeat(D):x===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&&!d&&f.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&g==="")&&(n.delimiterStart!==!1||d)&&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||d!==u-1)&&f.push("|")}v.push(n.delimiterEnd===!1?f.join("").replace(/ +$/,""):f.join(""))}return v.join(`
|
|
55
|
-
`)}function X1(t){return t==null?"":String(t)}function qh(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}function q1(t,e,n,i){const r=n.enter("blockquote"),o=n.createTracker(i);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(t,o.current()),K1);return r(),s}function K1(t,e,n){return">"+(n?"":" ")+t}function eS(t,e){return Kh(t,e.inConstruct,!0)&&!Kh(t,e.notInConstruct,!1)}function Kh(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let i=-1;for(;++i<e.length;)if(t.includes(e[i]))return!0;return!1}function ep(t,e,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
|
|
56
|
-
`&&eS(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
57
|
-
`}function tS(t,e){const n=String(t);let i=n.indexOf(e),r=i,o=0,s=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===r?++o>s&&(s=o):o=1,r=i+e.length,i=n.indexOf(e,r);return s}function nS(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function iS(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function rS(t,e,n,i){const r=iS(n),o=t.value||"",s=r==="`"?"GraveAccent":"Tilde";if(nS(t,n)){const d=n.enter("codeIndented"),h=n.indentLines(o,oS);return d(),h}const a=n.createTracker(i),l=r.repeat(Math.max(tS(o,r)+1,3)),u=n.enter("codeFenced");let c=a.move(l);if(t.lang){const d=n.enter(`codeFencedLang${s}`);c+=a.move(n.safe(t.lang,{before:c,after:" ",encode:["`"],...a.current()})),d()}if(t.lang&&t.meta){const d=n.enter(`codeFencedMeta${s}`);c+=a.move(" "),c+=a.move(n.safe(t.meta,{before:c,after:`
|
|
58
|
-
`,encode:["`"],...a.current()})),d()}return c+=a.move(`
|
|
59
|
-
`),o&&(c+=a.move(o+`
|
|
60
|
-
`)),c+=a.move(l),u(),c}function oS(t,e,n){return(n?"":" ")+t}function Ld(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function sS(t,e,n,i){const r=Ld(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(t),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!t.url||/[\0- \u007F]/.test(t.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(t.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(t.url,{before:u,after:t.title?" ":`
|
|
61
|
-
`,...l.current()}))),a(),t.title&&(a=n.enter(`title${o}`),u+=l.move(" "+r),u+=l.move(n.safe(t.title,{before:u,after:r,...l.current()})),u+=l.move(r),a()),s(),u}function aS(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function eo(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Os(t,e,n){const i=Xi(t),r=Xi(e);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}}Fm.peek=lS;function Fm(t,e,n,i){const r=aS(n),o=n.enter("emphasis"),s=n.createTracker(i),a=s.move(r);let l=s.move(n.containerPhrasing(t,{after:r,before:a,...s.current()}));const u=l.charCodeAt(0),c=Os(i.before.charCodeAt(i.before.length-1),u,r);c.inside&&(l=eo(u)+l.slice(1));const d=l.charCodeAt(l.length-1),h=Os(i.after.charCodeAt(0),d,r);h.inside&&(l=l.slice(0,-1)+eo(d));const p=s.move(r);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},a+l+p}function lS(t,e,n){return n.options.emphasis||"*"}function uS(t,e){let n=!1;return la(t,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,au}),!!((!t.depth||t.depth<3)&&Dd(t)&&(e.options.setext||n))}function dS(t,e,n,i){const r=Math.max(Math.min(6,t.depth||1),1),o=n.createTracker(i);if(uS(t,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),h=n.containerPhrasing(t,{...o.current(),before:`
|
|
62
|
-
`,after:`
|
|
63
|
-
`});return d(),c(),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(t,{before:"# ",after:`
|
|
66
|
-
`,...o.current()});return/^[\t ]/.test(u)&&(u=eo(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),a(),u}Gm.peek=cS;function Gm(t){return t.value||""}function cS(){return"<"}Hm.peek=hS;function Hm(t,e,n,i){const r=Ld(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(t.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(t.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(t.url,{before:u,after:t.title?" ":")",...l.current()}))),a(),t.title&&(a=n.enter(`title${o}`),u+=l.move(" "+r),u+=l.move(n.safe(t.title,{before:u,after:r,...l.current()})),u+=l.move(r),a()),u+=l.move(")"),s(),u}function hS(){return"!"}Wm.peek=pS;function Wm(t,e,n,i){const r=t.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(i);let l=a.move("![");const u=n.safe(t.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(t),{before:l,after:"]",...a.current()});return s(),n.stack=c,o(),r==="full"||!u||u!==d?l+=a.move(d+"]"):r==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function pS(){return"!"}Bm.peek=fS;function Bm(t,e,n){let i=t.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 fS(){return"`"}function jm(t,e){const n=Dd(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Um.peek=vS;function Um(t,e,n,i){const r=Ld(n),o=r==='"'?"Quote":"Apostrophe",s=n.createTracker(i);let a,l;if(jm(t,n)){const c=n.stack;n.stack=[],a=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(t,{before:d,after:">",...s.current()})),d+=s.move(">"),a(),n.stack=c,d}a=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(t,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(t.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(t.url,{before:u,after:t.title?" ":")",...s.current()}))),l(),t.title&&(l=n.enter(`title${o}`),u+=s.move(" "+r),u+=s.move(n.safe(t.title,{before:u,after:r,...s.current()})),u+=s.move(r),l()),u+=s.move(")"),a(),u}function vS(t,e,n){return jm(t,n)?"<":"["}$m.peek=mS;function $m(t,e,n,i){const r=t.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(i);let l=a.move("[");const u=n.containerPhrasing(t,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(t),{before:l,after:"]",...a.current()});return s(),n.stack=c,o(),r==="full"||!u||u!==d?l+=a.move(d+"]"):r==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function mS(){return"["}function Rd(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function gS(t){const e=Rd(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function bS(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function Ym(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function wS(t,e,n,i){const r=n.enter("list"),o=n.bulletCurrent;let s=t.ordered?bS(n):Rd(n);const a=t.ordered?s==="."?")":".":gS(n);let l=e&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!t.ordered){const c=t.children?t.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.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),Ym(n)===s&&c){let d=-1;for(;++d<t.children.length;){const h=t.children[d];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(t,i);return n.bulletLastUsed=s,n.bulletCurrent=o,r(),u}function yS(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function xS(t,e,n,i){const r=yS(n);let o=n.bulletCurrent||Rd(n);e&&e.type==="list"&&e.ordered&&(o=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+o);let s=o.length+1;(r==="tab"||r==="mixed"&&(e&&e.type==="list"&&e.spread||t.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(t,a.current()),c);return l(),u;function c(d,h,p){return h?(p?"":" ".repeat(s))+d:(p?o:o+" ".repeat(s-o.length))+d}}function _S(t,e,n,i){const r=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(t,i);return o(),r(),s}const kS=sa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function SS(t,e,n,i){return(t.children.some(function(s){return kS(s)})?n.containerPhrasing:n.containerFlow).call(n,t,i)}function CS(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}Qm.peek=DS;function Qm(t,e,n,i){const r=CS(n),o=n.enter("strong"),s=n.createTracker(i),a=s.move(r+r);let l=s.move(n.containerPhrasing(t,{after:r,before:a,...s.current()}));const u=l.charCodeAt(0),c=Os(i.before.charCodeAt(i.before.length-1),u,r);c.inside&&(l=eo(u)+l.slice(1));const d=l.charCodeAt(l.length-1),h=Os(i.after.charCodeAt(0),d,r);h.inside&&(l=l.slice(0,-1)+eo(d));const p=s.move(r+r);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},a+l+p}function DS(t,e,n){return n.options.strong||"*"}function zS(t,e,n,i){return n.safe(t.value,i)}function ES(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function PS(t,e,n){const i=(Ym(n)+(n.options.ruleSpaces?" ":"")).repeat(ES(n));return n.options.ruleSpaces?i.slice(0,-1):i}const Jm={blockquote:q1,break:ep,code:rS,definition:sS,emphasis:Fm,hardBreak:ep,heading:dS,html:Gm,image:Hm,imageReference:Wm,inlineCode:Bm,link:Um,linkReference:$m,list:wS,listItem:xS,paragraph:_S,root:SS,strong:Qm,text:zS,thematicBreak:PS};function AS(){return{enter:{table:IS,tableData:tp,tableHeader:tp,tableRow:OS},exit:{codeText:LS,table:TS,tableData:il,tableHeader:il,tableRow:il}}}function IS(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function TS(t){this.exit(t),this.data.inTable=void 0}function OS(t){this.enter({type:"tableRow",children:[]},t)}function il(t){this.exit(t)}function tp(t){this.enter({type:"tableCell",children:[]},t)}function LS(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,RS));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function RS(t,e){return e==="|"?e:t}function NS(t){const e=t||{},n=e.tableCellPadding,i=e.tablePipeAlign,r=e.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,v,m,y){return u(c(p,m,y),p.align)}function a(p,v,m,y){const f=d(p,m,y),g=u([f]);return g.slice(0,g.indexOf(`
|
|
68
|
-
`))}function l(p,v,m,y){const f=m.enter("tableCell"),g=m.enter("phrasing"),b=m.containerPhrasing(p,{...y,before:o,after:o});return g(),f(),b}function u(p,v){return Z1(p,{align:v,alignDelimiters:i,padding:n,stringLength:r})}function c(p,v,m){const y=p.children;let f=-1;const g=[],b=v.enter("table");for(;++f<y.length;)g[f]=d(y[f],v,m);return b(),g}function d(p,v,m){const y=p.children;let f=-1;const g=[],b=v.enter("tableRow");for(;++f<y.length;)g[f]=l(y[f],p,v,m);return b(),g}function h(p,v,m){let y=Jm.inlineCode(p,v,m);return m.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function MS(){return{exit:{taskListCheckValueChecked:np,taskListCheckValueUnchecked:np,paragraph:FS}}}function VS(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:GS}}}function np(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function FS(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const r=e.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(t)}function GS(t,e,n,i){const r=t.children[0],o=typeof t.checked=="boolean"&&r&&r.type==="paragraph",s="["+(t.checked?"x":" ")+"] ",a=n.createTracker(i);o&&a.move(s);let l=Jm.listItem(t,e,n,{...i,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function HS(){return[w1(),G1(),j1(),AS(),MS()]}function WS(t){return{extensions:[y1(),H1(t),U1(),NS(t),VS()]}}const BS={tokenize:JS,partial:!0},Zm={tokenize:ZS,partial:!0},Xm={tokenize:XS,partial:!0},qm={tokenize:qS,partial:!0},jS={tokenize:KS,partial:!0},Km={name:"wwwAutolink",tokenize:YS,previous:tg},eg={name:"protocolAutolink",tokenize:QS,previous:ng},mn={name:"emailAutolink",tokenize:$S,previous:ig},qt={};function US(){return{text:qt}}let Yn=48;for(;Yn<123;)qt[Yn]=mn,Yn++,Yn===58?Yn=65:Yn===91&&(Yn=97);qt[43]=mn;qt[45]=mn;qt[46]=mn;qt[95]=mn;qt[72]=[mn,eg];qt[104]=[mn,eg];qt[87]=[mn,Km];qt[119]=[mn,Km];function $S(t,e,n){const i=this;let r,o;return s;function s(d){return!cu(d)||!ig.call(i,i.previous)||Nd(i.events)?n(d):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),a(d))}function a(d){return cu(d)?(t.consume(d),a):d===64?(t.consume(d),l):n(d)}function l(d){return d===46?t.check(jS,c,u)(d):d===45||d===95||Qe(d)?(o=!0,t.consume(d),l):c(d)}function u(d){return t.consume(d),r=!0,l}function c(d){return o&&r&&Ke(i.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(d)):n(d)}}function YS(t,e,n){const i=this;return r;function r(s){return s!==87&&s!==119||!tg.call(i,i.previous)||Nd(i.events)?n(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(BS,t.attempt(Zm,t.attempt(Xm,o),n),n)(s))}function o(s){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(s)}}function QS(t,e,n){const i=this;let r="",o=!1;return s;function s(d){return(d===72||d===104)&&ng.call(i,i.previous)&&!Nd(i.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),t.consume(d),a):n(d)}function a(d){if(Ke(d)&&r.length<5)return r+=String.fromCodePoint(d),t.consume(d),a;if(d===58){const h=r.toLowerCase();if(h==="http"||h==="https")return t.consume(d),l}return n(d)}function l(d){return d===47?(t.consume(d),o?u:(o=!0,l)):n(d)}function u(d){return d===null||As(d)||pe(d)||ci(d)||ia(d)?n(d):t.attempt(Zm,t.attempt(Xm,c),n)(d)}function c(d){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(d)}}function JS(t,e,n){let i=0;return r;function r(s){return(s===87||s===119)&&i<3?(i++,t.consume(s),r):s===46&&i===3?(t.consume(s),o):n(s)}function o(s){return s===null?n(s):e(s)}}function ZS(t,e,n){let i,r,o;return s;function s(u){return u===46||u===95?t.check(qm,l,a)(u):u===null||pe(u)||ci(u)||u!==45&&ia(u)?l(u):(o=!0,t.consume(u),s)}function a(u){return u===95?i=!0:(r=i,i=void 0),t.consume(u),s}function l(u){return r||i||!o?n(u):e(u)}}function XS(t,e){let n=0,i=0;return r;function r(s){return s===40?(n++,t.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?t.check(qm,e,o)(s):s===null||pe(s)||ci(s)?e(s):(t.consume(s),r)}function o(s){return s===41&&i++,t.consume(s),r}}function qS(t,e,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?(t.consume(a),i):a===38?(t.consume(a),o):a===93?(t.consume(a),r):a===60||a===null||pe(a)||ci(a)?e(a):n(a)}function r(a){return a===null||a===40||a===91||pe(a)||ci(a)?e(a):i(a)}function o(a){return Ke(a)?s(a):n(a)}function s(a){return a===59?(t.consume(a),i):Ke(a)?(t.consume(a),s):n(a)}}function KS(t,e,n){return i;function i(o){return t.consume(o),r}function r(o){return Qe(o)?n(o):e(o)}}function tg(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||pe(t)}function ng(t){return!Ke(t)}function ig(t){return!(t===47||cu(t))}function cu(t){return t===43||t===45||t===46||t===95||Qe(t)}function Nd(t){let e=t.length,n=!1;for(;e--;){const i=t[e][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const eC={tokenize:lC,partial:!0};function tC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:oC,continuation:{tokenize:sC},exit:aC}},text:{91:{name:"gfmFootnoteCall",tokenize:rC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:nC,resolveTo:iC}}}}function nC(t,e,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=Vt(i.sliceSerialize({start:s.end,end:i.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function iC(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[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({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[t[n+1],t[n+2],["enter",i,e],t[n+3],t[n+4],["enter",r,e],["exit",r,e],["enter",o,e],["enter",s,e],["exit",s,e],["exit",o,e],t[t.length-2],t[t.length-1],["exit",i,e]];return t.splice(n,t.length-n+1,...a),t}function rC(t,e,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o=0,s;return a;function a(d){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(t.enter("gfmFootnoteCallMarker"),t.consume(d),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!s||d===null||d===91||pe(d))return n(d);if(d===93){t.exit("chunkString");const h=t.exit("gfmFootnoteCallString");return r.includes(Vt(i.sliceSerialize(h)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(d)}return pe(d)||(s=!0),o++,t.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(t.consume(d),o++,u):u(d)}}function oC(t,e,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o,s=0,a;return l;function l(v){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(v),t.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(v){return v===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(v),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",c):n(v)}function c(v){if(s>999||v===93&&!a||v===null||v===91||pe(v))return n(v);if(v===93){t.exit("chunkString");const m=t.exit("gfmFootnoteDefinitionLabelString");return o=Vt(i.sliceSerialize(m)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(v),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),h}return pe(v)||(a=!0),s++,t.consume(v),v===92?d:c}function d(v){return v===91||v===92||v===93?(t.consume(v),s++,c):c(v)}function h(v){return v===58?(t.enter("definitionMarker"),t.consume(v),t.exit("definitionMarker"),r.includes(o)||r.push(o),ae(t,p,"gfmFootnoteDefinitionWhitespace")):n(v)}function p(v){return e(v)}}function sC(t,e,n){return t.check(ho,e,t.attempt(eC,e,n))}function aC(t){t.exit("gfmFootnoteDefinition")}function lC(t,e,n){const i=this;return ae(t,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?e(o):n(o)}}function uC(t){let n=(t||{}).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 c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},h=[["enter",c,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",d,a]],p=a.parser.constructs.insideSpan.null;p&&vt(h,h.length,0,ra(p,s.slice(u+1,l),a)),vt(h,h.length,0,[["exit",d,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),vt(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,c=this.events;let d=0;return h;function h(v){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(v):(s.enter("strikethroughSequenceTemporary"),p(v))}function p(v){const m=Xi(u);if(v===126)return d>1?l(v):(s.consume(v),d++,p);if(d<2&&!n)return l(v);const y=s.exit("strikethroughSequenceTemporary"),f=Xi(v);return y._open=!f||f===2&&!!m,y._close=!m||m===2&&!!f,a(v)}}}class dC{constructor(){this.map=[]}add(e,n,i){cC(this,e,n,i)}consume(e){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(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];i.push(e.slice()),e.length=0;let r=i.pop();for(;r;){for(const o of r)e.push(o);r=i.pop()}this.map.length=0}}function cC(t,e,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<t.map.length;){if(t.map[r][0]===e){t.map[r][1]+=n,t.map[r][2].push(...i);return}r+=1}t.map.push([e,n,i])}}function hC(t,e){let n=!1;const i=[];for(;e<t.length;){const r=t[e];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(t[e-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);e+=1}return i}function pC(){return{flow:{null:{name:"table",tokenize:fC,resolveAll:vC}}}}function fC(t,e,n){const i=this;let r=0,o=0,s;return a;function a(S){let O=i.events.length-1;for(;O>-1;){const Q=i.events[O][1].type;if(Q==="lineEnding"||Q==="linePrefix")O--;else break}const V=O>-1?i.events[O][1].type:null,$=V==="tableHead"||V==="tableRow"?x:l;return $===x&&i.parser.lazy[i.now().line]?n(S):$(S)}function l(S){return t.enter("tableHead"),t.enter("tableRow"),u(S)}function u(S){return S===124||(s=!0,o+=1),c(S)}function c(S){return S===null?n(S):J(S)?o>1?(o=0,i.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),p):n(S):ie(S)?ae(t,c,"whitespace")(S):(o+=1,s&&(s=!1,r+=1),S===124?(t.enter("tableCellDivider"),t.consume(S),t.exit("tableCellDivider"),s=!0,c):(t.enter("data"),d(S)))}function d(S){return S===null||S===124||pe(S)?(t.exit("data"),c(S)):(t.consume(S),S===92?h:d)}function h(S){return S===92||S===124?(t.consume(S),d):d(S)}function p(S){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(S):(t.enter("tableDelimiterRow"),s=!1,ie(S)?ae(t,v,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):v(S))}function v(S){return S===45||S===58?y(S):S===124?(s=!0,t.enter("tableCellDivider"),t.consume(S),t.exit("tableCellDivider"),m):D(S)}function m(S){return ie(S)?ae(t,y,"whitespace")(S):y(S)}function y(S){return S===58?(o+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(S),t.exit("tableDelimiterMarker"),f):S===45?(o+=1,f(S)):S===null||J(S)?k(S):D(S)}function f(S){return S===45?(t.enter("tableDelimiterFiller"),g(S)):D(S)}function g(S){return S===45?(t.consume(S),g):S===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(S),t.exit("tableDelimiterMarker"),b):(t.exit("tableDelimiterFiller"),b(S))}function b(S){return ie(S)?ae(t,k,"whitespace")(S):k(S)}function k(S){return S===124?v(S):S===null||J(S)?!s||r!==o?D(S):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(S)):D(S)}function D(S){return n(S)}function x(S){return t.enter("tableRow"),z(S)}function z(S){return S===124?(t.enter("tableCellDivider"),t.consume(S),t.exit("tableCellDivider"),z):S===null||J(S)?(t.exit("tableRow"),e(S)):ie(S)?ae(t,z,"whitespace")(S):(t.enter("data"),C(S))}function C(S){return S===null||S===124||pe(S)?(t.exit("data"),z(S)):(t.consume(S),S===92?R:C)}function R(S){return S===92||S===124?(t.consume(S),C):C(S)}}function vC(t,e){let n=-1,i=!0,r=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,d;const h=new dC;for(;++n<t.length;){const p=t[n],v=p[1];p[0]==="enter"?v.type==="tableHead"?(a=!1,l!==0&&(ip(h,e,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},h.add(n,0,[["enter",u,e]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(i=!0,d=void 0,o=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},h.add(n,0,[["enter",c,e]])),r=v.type==="tableDelimiterRow"?2:c?3:1):r&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],d=No(h,e,o,r,void 0,d),o=[0,0,0,0]),s[2]=n)):v.type==="tableCellDivider"&&(i?i=!1:(o[1]!==0&&(s[0]=s[1],d=No(h,e,o,r,void 0,d)),o=s,s=[o[1],n,0,0])):v.type==="tableHead"?(a=!0,l=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(l=n,o[1]!==0?(s[0]=s[1],d=No(h,e,o,r,n,d)):s[1]!==0&&(d=No(h,e,s,r,n,d)),r=0):r&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&ip(h,e,l,u,c),h.consume(e.events),n=-1;++n<e.events.length;){const p=e.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=hC(e.events,n))}return t}function No(t,e,n,i,r,o){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},ki(e.events,n[0])),t.add(n[0],0,[["exit",o,e]]));const l=ki(e.events,n[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},t.add(n[1],0,[["enter",o,e]]),n[2]!==0){const u=ki(e.events,n[2]),c=ki(e.events,n[3]),d={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(t.add(n[2],0,[["enter",d,e]]),i!==2){const h=e.events[n[2]],p=e.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 v=n[2]+1,m=n[3]-n[2]-1;t.add(v,m,[])}}t.add(n[3]+1,0,[["exit",d,e]])}return r!==void 0&&(o.end=Object.assign({},ki(e.events,r)),t.add(r,0,[["exit",o,e]]),o=void 0),o}function ip(t,e,n,i,r){const o=[],s=ki(e.events,n);r&&(r.end=Object.assign({},s),o.push(["exit",r,e])),i.end=Object.assign({},s),o.push(["exit",i,e]),t.add(n+1,0,o)}function ki(t,e){const n=t[e],i=n[0]==="enter"?"start":"end";return n[1][i]}const mC={name:"tasklistCheck",tokenize:bC};function gC(){return{text:{91:mC}}}function bC(t,e,n){const i=this;return r;function r(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),o)}function o(l){return pe(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),a):n(l)}function a(l){return J(l)?e(l):ie(l)?t.check({tokenize:wC},e,n)(l):n(l)}}function wC(t,e,n){return ae(t,i,"whitespace");function i(r){return r===null?n(r):e(r)}}function yC(t){return hm([US(),tC(),uC(t),pC(),gC()])}const xC={};function qE(t){const e=this,n=t||xC,i=e.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(yC(n)),o.push(HS()),s.push(WS(n))}const _C=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,kC=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,KE=({legacyTitle:t=!1,tagName:e="div",classNames:n=""}={})=>i=>{la(i,"blockquote",(r,o,s)=>{let a="",l="",u=!0,c=r.children.map(d=>{if(u&&d.type==="paragraph"){const h=d.children[0],p=h.type==="text"?h.value:"",v=t?kC:_C,m=p.match(v);if(m&&(u=!1,a=m[1].toLocaleLowerCase(),l=t&&m[2]||a.toLocaleUpperCase(),p.includes(`
|
|
69
|
-
`)&&(d.children[0]={type:"text",value:p.replace(v,"").replace(/^\n+/,"")}),!p.includes(`
|
|
70
|
-
`))){const y=[];d.children.forEach((f,g)=>{g!=0&&(g==1&&f.type==="break"||y.push(f))}),d.children=[...y]}}return d});a&&(r.data={hName:e,hProperties:{className:["markdown-alert",`markdown-alert-${a}`,...n.split(" ").filter(d=>d.length)],dir:"auto"}},c.unshift({type:"paragraph",children:[SC(a),{type:"text",value:l.replace(/^\//,"")}],data:{hProperties:{className:"markdown-alert-title",dir:"auto"}}})),r.children=[...c]})};function SC(t){let e=CC[t]??"";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:e}},children:[]}]}}const CC={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 DC(t){Lm(t,[/\r?\n|\r/g,zC])}function zC(){return{type:"break"}}function eP(){return function(t){DC(t)}}function rg(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=rg(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function tP(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=rg(t))&&(i&&(i+=" "),i+=e);return i}const EC=(t,e)=>{const n=new Array(t.length+e.length);for(let i=0;i<t.length;i++)n[i]=t[i];for(let i=0;i<e.length;i++)n[t.length+i]=e[i];return n},PC=(t,e)=>({classGroupId:t,validator:e}),og=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Ls="-",rp=[],AC="arbitrary..",IC=t=>{const e=OC(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return TC(s);const a=s.split(Ls),l=a[0]===""&&a.length>1?1:0;return sg(a,l,e)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=i[s],u=n[s];return l?u?EC(u,l):l:u||rp}return n[s]||rp}}},sg=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const r=t[e],o=n.nextPart.get(r);if(o){const u=sg(t,e+1,o);if(u)return u}const s=n.validators;if(s===null)return;const a=e===0?t.join(Ls):t.slice(e).join(Ls),l=s.length;for(let u=0;u<l;u++){const c=s[u];if(c.validator(a))return c.classGroupId}},TC=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),i=e.slice(0,n);return i?AC+i:void 0})(),OC=t=>{const{theme:e,classGroups:n}=t;return LC(n,e)},LC=(t,e)=>{const n=og();for(const i in t){const r=t[i];Md(r,n,i,e)}return n},Md=(t,e,n,i)=>{const r=t.length;for(let o=0;o<r;o++){const s=t[o];RC(s,e,n,i)}},RC=(t,e,n,i)=>{if(typeof t=="string"){NC(t,e,n);return}if(typeof t=="function"){MC(t,e,n,i);return}VC(t,e,n,i)},NC=(t,e,n)=>{const i=t===""?e:ag(e,t);i.classGroupId=n},MC=(t,e,n,i)=>{if(FC(t)){Md(t(i),e,n,i);return}e.validators===null&&(e.validators=[]),e.validators.push(PC(n,t))},VC=(t,e,n,i)=>{const r=Object.entries(t),o=r.length;for(let s=0;s<o;s++){const[a,l]=r[s];Md(l,ag(e,a),n,i)}},ag=(t,e)=>{let n=t;const i=e.split(Ls),r=i.length;for(let o=0;o<r;o++){const s=i[o];let a=n.nextPart.get(s);a||(a=og(),n.nextPart.set(s,a)),n=a}return n},FC=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,GC=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),i=Object.create(null);const r=(o,s)=>{n[o]=s,e++,e>t&&(e=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)}}},hu="!",op=":",HC=[],sp=(t,e,n,i,r)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:i,isExternal:r}),WC=t=>{const{prefix:e,experimentalParseClassName:n}=t;let i=r=>{const o=[];let s=0,a=0,l=0,u;const c=r.length;for(let m=0;m<c;m++){const y=r[m];if(s===0&&a===0){if(y===op){o.push(r.slice(l,m)),l=m+1;continue}if(y==="/"){u=m;continue}}y==="["?s++:y==="]"?s--:y==="("?a++:y===")"&&a--}const d=o.length===0?r:r.slice(l);let h=d,p=!1;d.endsWith(hu)?(h=d.slice(0,-1),p=!0):d.startsWith(hu)&&(h=d.slice(1),p=!0);const v=u&&u>l?u-l:void 0;return sp(o,p,h,v)};if(e){const r=e+op,o=i;i=s=>s.startsWith(r)?o(s.slice(r.length)):sp(HC,!1,s,void 0,!0)}if(n){const r=i;i=o=>n({className:o,parseClassName:r})}return i},BC=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,i)=>{e.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=e.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}},jC=t=>({cache:GC(t.cacheSize),parseClassName:WC(t),sortModifiers:BC(t),...IC(t)}),UC=/\s+/,$C=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r,sortModifiers:o}=e,s=[],a=t.trim().split(UC);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:d,modifiers:h,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:m}=n(c);if(d){l=c+(l.length>0?" "+l:l);continue}let y=!!m,f=i(y?v.substring(0,m):v);if(!f){if(!y){l=c+(l.length>0?" "+l:l);continue}if(f=i(v),!f){l=c+(l.length>0?" "+l:l);continue}y=!1}const g=h.length===0?"":h.length===1?h[0]:o(h).join(":"),b=p?g+hu:g,k=b+f;if(s.indexOf(k)>-1)continue;s.push(k);const D=r(f,y);for(let x=0;x<D.length;++x){const z=D[x];s.push(b+z)}l=c+(l.length>0?" "+l:l)}return l},YC=(...t)=>{let e=0,n,i,r="";for(;e<t.length;)(n=t[e++])&&(i=lg(n))&&(r&&(r+=" "),r+=i);return r},lg=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=lg(t[i]))&&(n&&(n+=" "),n+=e);return n},QC=(t,...e)=>{let n,i,r,o;const s=l=>{const u=e.reduce((c,d)=>d(c),t());return n=jC(u),i=n.cache.get,r=n.cache.set,o=a,a(l)},a=l=>{const u=i(l);if(u)return u;const c=$C(l,n);return r(l,c),c};return o=s,(...l)=>o(YC(...l))},JC=[],Oe=t=>{const e=n=>n[t]||JC;return e.isThemeGetter=!0,e},ug=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ZC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,XC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qC=/\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$/,KC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wn=t=>ZC.test(t),ne=t=>!!t&&!Number.isNaN(Number(t)),yn=t=>!!t&&Number.isInteger(Number(t)),rl=t=>t.endsWith("%")&&ne(t.slice(0,-1)),rn=t=>XC.test(t),cg=()=>!0,nD=t=>qC.test(t)&&!KC.test(t),Vd=()=>!1,iD=t=>eD.test(t),rD=t=>tD.test(t),oD=t=>!G(t)&&!W(t),sD=t=>jn(t,fg,Vd),G=t=>ug.test(t),Qn=t=>jn(t,vg,nD),ap=t=>jn(t,fD,ne),aD=t=>jn(t,gg,cg),lD=t=>jn(t,mg,Vd),lp=t=>jn(t,hg,Vd),uD=t=>jn(t,pg,rD),Mo=t=>jn(t,bg,iD),W=t=>dg.test(t),gr=t=>vi(t,vg),dD=t=>vi(t,mg),up=t=>vi(t,hg),cD=t=>vi(t,fg),hD=t=>vi(t,pg),Vo=t=>vi(t,bg,!0),pD=t=>vi(t,gg,!0),jn=(t,e,n)=>{const i=ug.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},vi=(t,e,n=!1)=>{const i=dg.exec(t);return i?i[1]?e(i[1]):n:!1},hg=t=>t==="position"||t==="percentage",pg=t=>t==="image"||t==="url",fg=t=>t==="length"||t==="size"||t==="bg-size",vg=t=>t==="length",fD=t=>t==="number",mg=t=>t==="family-name",gg=t=>t==="number"||t==="weight",bg=t=>t==="shadow",vD=()=>{const t=Oe("color"),e=Oe("font"),n=Oe("text"),i=Oe("font-weight"),r=Oe("tracking"),o=Oe("leading"),s=Oe("breakpoint"),a=Oe("container"),l=Oe("spacing"),u=Oe("radius"),c=Oe("shadow"),d=Oe("inset-shadow"),h=Oe("text-shadow"),p=Oe("drop-shadow"),v=Oe("blur"),m=Oe("perspective"),y=Oe("aspect"),f=Oe("ease"),g=Oe("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(),W,G],x=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],C=()=>[W,G,l],R=()=>[wn,"full","auto",...C()],S=()=>[yn,"none","subgrid",W,G],O=()=>["auto",{span:["full",yn,W,G]},yn,W,G],V=()=>[yn,"auto",W,G],$=()=>["auto","min","max","fr",W,G],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...C()],X=()=>[wn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],L=()=>[wn,"screen","full","dvw","lvw","svw","min","max","fit",...C()],Y=()=>[wn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],w=()=>[t,W,G],oe=()=>[...k(),up,lp,{position:[W,G]}],ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],_=()=>["auto","cover","contain",cD,sD,{size:[W,G]}],xe=()=>[rl,gr,Qn],ce=()=>["","none","full",u,W,G],ee=()=>["",ne,gr,Qn],Xe=()=>["solid","dashed","dotted","double"],Et=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[ne,rl,up,lp],Kt=()=>["","none",v,W,G],en=()=>["none",ne,W,G],gi=()=>["none",ne,W,G],rr=()=>[ne,W,G],bi=()=>[wn,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[rn],breakpoint:[rn],color:[cg],container:[rn],"drop-shadow":[rn],ease:["in","out","in-out"],font:[oD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[rn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[rn],shadow:[rn],spacing:["px",ne],text:[rn],"text-shadow":[rn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wn,G,W,y]}],container:["container"],columns:[{columns:[ne,G,W,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:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[yn,"auto",W,G]}],basis:[{basis:[wn,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ne,wn,"auto","initial","none",G]}],grow:[{grow:["",ne,W,G]}],shrink:[{shrink:["",ne,W,G]}],order:[{order:[yn,"first","last","none",W,G]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],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:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...L()]}],"min-inline-size":[{"min-inline":["auto",...L()]}],"max-inline-size":[{"max-inline":["none",...L()]}],"block-size":[{block:["auto",...Y()]}],"min-block-size":[{"min-block":["auto",...Y()]}],"max-block-size":[{"max-block":["none",...Y()]}],w:[{w:[a,"screen",...X()]}],"min-w":[{"min-w":[a,"screen","none",...X()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,gr,Qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,pD,aD]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rl,G]}],"font-family":[{font:[dD,lD,e]}],"font-features":[{"font-features":[G]}],"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,W,G]}],"line-clamp":[{"line-clamp":[ne,"none",W,ap]}],leading:[{leading:[o,...C()]}],"list-image":[{"list-image":["none",W,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,G]}],"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:[...Xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ne,"from-font","auto",W,Qn]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[ne,"auto",W,G]}],"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",W,G]}],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",W,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:_()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},yn,W,G],radial:["",W,G],conic:[yn,W,G]},hD,uD]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-bs":[{"border-bs":ee()}],"border-w-be":[{"border-be":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Xe(),"hidden","none"]}],"divide-style":[{divide:[...Xe(),"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:[...Xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ne,W,G]}],"outline-w":[{outline:["",ne,gr,Qn]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",c,Vo,Mo]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",d,Vo,Mo]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[ne,Qn]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",h,Vo,Mo]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[ne,W,G]}],"mix-blend":[{"mix-blend":[...Et(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Et()}],"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":[ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"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":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"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":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"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":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"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":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"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":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"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":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[W,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"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":[ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"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:oe()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:_()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,G]}],filter:[{filter:["","none",W,G]}],blur:[{blur:Kt()}],brightness:[{brightness:[ne,W,G]}],contrast:[{contrast:[ne,W,G]}],"drop-shadow":[{"drop-shadow":["","none",p,Vo,Mo]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",ne,W,G]}],"hue-rotate":[{"hue-rotate":[ne,W,G]}],invert:[{invert:["",ne,W,G]}],saturate:[{saturate:[ne,W,G]}],sepia:[{sepia:["",ne,W,G]}],"backdrop-filter":[{"backdrop-filter":["","none",W,G]}],"backdrop-blur":[{"backdrop-blur":Kt()}],"backdrop-brightness":[{"backdrop-brightness":[ne,W,G]}],"backdrop-contrast":[{"backdrop-contrast":[ne,W,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ne,W,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ne,W,G]}],"backdrop-invert":[{"backdrop-invert":["",ne,W,G]}],"backdrop-opacity":[{"backdrop-opacity":[ne,W,G]}],"backdrop-saturate":[{"backdrop-saturate":[ne,W,G]}],"backdrop-sepia":[{"backdrop-sepia":["",ne,W,G]}],"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",W,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ne,"initial",W,G]}],ease:[{ease:["linear","initial",f,W,G]}],delay:[{delay:[ne,W,G]}],animate:[{animate:["none",g,W,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,W,G]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:en()}],"rotate-x":[{"rotate-x":en()}],"rotate-y":[{"rotate-y":en()}],"rotate-z":[{"rotate-z":en()}],scale:[{scale:gi()}],"scale-x":[{"scale-x":gi()}],"scale-y":[{"scale-y":gi()}],"scale-z":[{"scale-z":gi()}],"scale-3d":["scale-3d"],skew:[{skew:rr()}],"skew-x":[{"skew-x":rr()}],"skew-y":[{"skew-y":rr()}],transform:[{transform:[W,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:bi()}],"translate-x":[{"translate-x":bi()}],"translate-y":[{"translate-y":bi()}],"translate-z":[{"translate-z":bi()}],"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",W,G]}],"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",W,G]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[ne,gr,Qn,ap]}],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"]}},nP=QC(vD);/**
|
|
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 to(){return to=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},to.apply(this,arguments)}var En;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(En||(En={}));const dp="popstate";function mD(t){t===void 0&&(t={});function e(i,r){let{pathname:o,search:s,hash:a}=i.location;return pu("",{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:wg(r)}return bD(e,n,null,t)}function Te(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Fd(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function gD(){return Math.random().toString(36).substr(2,8)}function cp(t,e){return{usr:t.state,key:t.key,idx:e}}function pu(t,e,n,i){return n===void 0&&(n=null),to({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?ir(e):e,{state:n,key:e&&e.key||i||gD()})}function wg(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function ir(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function bD(t,e,n,i){i===void 0&&(i={});let{window:r=document.defaultView,v5Compat:o=!1}=i,s=r.history,a=En.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(to({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=En.Pop;let y=c(),f=y==null?null:y-u;u=y,l&&l({action:a,location:m.location,delta:f})}function h(y,f){a=En.Push;let g=pu(m.location,y,f);u=c()+1;let b=cp(g,u),k=m.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:m.location,delta:1})}function p(y,f){a=En.Replace;let g=pu(m.location,y,f);u=c();let b=cp(g,u),k=m.createHref(g);s.replaceState(b,"",k),o&&l&&l({action:a,location:m.location,delta:0})}function v(y){let f=r.location.origin!=="null"?r.location.origin:r.location.href,g=typeof y=="string"?y:wg(y);return g=g.replace(/ $/,"%20"),Te(f,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,f)}let m={get action(){return a},get location(){return t(r,s)},listen(y){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(dp,d),l=y,()=>{r.removeEventListener(dp,d),l=null}},createHref(y){return e(r,y)},createURL:v,encodeLocation(y){let f=v(y);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:h,replace:p,go(y){return s.go(y)}};return m}var hp;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(hp||(hp={}));function wD(t,e,n){return n===void 0&&(n="/"),yD(t,e,n)}function yD(t,e,n,i){let r=typeof e=="string"?ir(e):e,o=_g(r.pathname||"/",n);if(o==null)return null;let s=yg(t);xD(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=OD(o);a=AD(s[l],u)}return a}function yg(t,e,n,i){e===void 0&&(e=[]),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("/")&&(Te(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=ri([i,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Te(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),yg(o.children,e,c,u)),!(o.path==null&&!o.index)&&e.push({path:u,score:ED(u,o.index),routesMeta:c})};return t.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))r(o,s);else for(let l of xg(o.path))r(o,s,l)}),e}function xg(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(i.length===0)return r?[o,""]:[o];let s=xg(i.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),r&&a.push(...s),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function xD(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:PD(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const _D=/^:[\w-]+$/,kD=3,SD=2,CD=1,DD=10,zD=-2,pp=t=>t==="*";function ED(t,e){let n=t.split("/"),i=n.length;return n.some(pp)&&(i+=zD),e&&(i+=SD),n.filter(r=>!pp(r)).reduce((r,o)=>r+(_D.test(o)?kD:o===""?CD:DD),i)}function PD(t,e){return t.length===e.length&&t.slice(0,-1).every((i,r)=>i===e[r])?t[t.length-1]-e[e.length-1]:0}function AD(t,e,n){let{routesMeta:i}=t,r={},o="/",s=[];for(let a=0;a<i.length;++a){let l=i[a],u=a===i.length-1,c=o==="/"?e:e.slice(o.length)||"/",d=ID({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),h=l.route;if(!d)return null;Object.assign(r,d.params),s.push({params:r,pathname:ri([o,d.pathname]),pathnameBase:VD(ri([o,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(o=ri([o,d.pathnameBase]))}return s}function ID(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=TD(t.path,t.caseSensitive,t.end),r=e.match(n);if(!r)return null;let o=r[0],s=o.replace(/(.)\/+$/,"$1"),a=r.slice(1);return{params:i.reduce((u,c,d)=>{let{paramName:h,isOptional:p}=c;if(h==="*"){let m=a[d]||"";s=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const v=a[d];return p&&!v?u[h]=void 0:u[h]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:t}}function TD(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Fd(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(i.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),r+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":t!==""&&t!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),i]}function OD(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Fd(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function _g(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}const LD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RD=t=>LD.test(t);function ND(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:r=""}=typeof t=="string"?ir(t):t,o;if(n)if(RD(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),Fd(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=fp(n.substring(1),"/"):o=fp(n,e)}else o=e;return{pathname:o,search:FD(i),hash:GD(r)}}function fp(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function ol(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 MD(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function kg(t,e){let n=MD(t);return e?n.map((i,r)=>r===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function Sg(t,e,n,i){i===void 0&&(i=!1);let r;typeof t=="string"?r=ir(t):(r=to({},t),Te(!r.pathname||!r.pathname.includes("?"),ol("?","pathname","search",r)),Te(!r.pathname||!r.pathname.includes("#"),ol("#","pathname","hash",r)),Te(!r.search||!r.search.includes("#"),ol("#","search","hash",r)));let o=t===""||r.pathname==="",s=o?"/":r.pathname,a;if(s==null)a=n;else{let d=e.length-1;if(!i&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;r.pathname=h.join("/")}a=d>=0?e[d]:"/"}let l=ND(r,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const ri=t=>t.join("/").replace(/\/\/+/g,"/"),VD=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),FD=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,GD=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function HD(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Cg=["post","put","patch","delete"];new Set(Cg);const WD=["get",...Cg];new Set(WD);/**
|
|
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 no(){return no=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},no.apply(this,arguments)}const Gd=H.createContext(null),BD=H.createContext(null),fo=H.createContext(null),ua=H.createContext(null),Un=H.createContext({outlet:null,matches:[],isDataRoute:!1}),Dg=H.createContext(null);function vo(){return H.useContext(ua)!=null}function da(){return vo()||Te(!1),H.useContext(ua).location}function zg(t){H.useContext(fo).static||H.useLayoutEffect(t)}function Eg(){let{isDataRoute:t}=H.useContext(Un);return t?nz():jD()}function jD(){vo()||Te(!1);let t=H.useContext(Gd),{basename:e,future:n,navigator:i}=H.useContext(fo),{matches:r}=H.useContext(Un),{pathname:o}=da(),s=JSON.stringify(kg(r,n.v7_relativeSplatPath)),a=H.useRef(!1);return zg(()=>{a.current=!0}),H.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){i.go(u);return}let d=Sg(u,JSON.parse(s),o,c.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:ri([e,d.pathname])),(c.replace?i.replace:i.push)(d,c.state,c)},[e,i,s,o,t])}function iP(){let{matches:t}=H.useContext(Un),e=t[t.length-1];return e?e.params:{}}function UD(t,e){return $D(t,e)}function $D(t,e,n,i){vo()||Te(!1);let{navigator:r}=H.useContext(fo),{matches:o}=H.useContext(Un),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=da(),c;if(e){var d;let y=typeof e=="string"?ir(e):e;l==="/"||(d=y.pathname)!=null&&d.startsWith(l)||Te(!1),c=y}else c=u;let h=c.pathname||"/",p=h;if(l!=="/"){let y=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(y.length).join("/")}let v=wD(t,{pathname:p}),m=XD(v&&v.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:ri([l,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:ri([l,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n,i);return e&&m?H.createElement(ua.Provider,{value:{location:no({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:En.Pop}},m):m}function YD(){let t=tz(),e=HD(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return H.createElement(H.Fragment,null,H.createElement("h2",null,"Unexpected Application Error!"),H.createElement("h3",{style:{fontStyle:"italic"}},e),n?H.createElement("pre",{style:r},n):null,null)}const QD=H.createElement(YD,null);class JD extends H.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?H.createElement(Un.Provider,{value:this.props.routeContext},H.createElement(Dg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ZD(t){let{routeContext:e,match:n,children:i}=t,r=H.useContext(Gd);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),H.createElement(Un.Provider,{value:e},i)}function XD(t,e,n,i){var r;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=i)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let s=t,a=(r=n)==null?void 0:r.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||Te(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&i&&i.v7_partialHydration)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:h,errors:p}=n,v=d.route.loader&&h[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||v){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,h)=>{let p,v=!1,m=null,y=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||QD,l&&(u<0&&h===0?(iz("route-fallback"),v=!0,y=null):u===h&&(v=!0,y=d.route.hydrateFallbackElement||null)));let f=e.concat(s.slice(0,h+1)),g=()=>{let b;return p?b=m:v?b=y:d.route.Component?b=H.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=c,H.createElement(ZD,{match:d,routeContext:{outlet:c,matches:f,isDataRoute:n!=null},children:b})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?H.createElement(JD,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:g(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):g()},null)}var Pg=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Pg||{}),Ag=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Ag||{});function qD(t){let e=H.useContext(Gd);return e||Te(!1),e}function KD(t){let e=H.useContext(BD);return e||Te(!1),e}function ez(t){let e=H.useContext(Un);return e||Te(!1),e}function Ig(t){let e=ez(),n=e.matches[e.matches.length-1];return n.route.id||Te(!1),n.route.id}function tz(){var t;let e=H.useContext(Dg),n=KD(),i=Ig();return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}function nz(){let{router:t}=qD(Pg.UseNavigateStable),e=Ig(Ag.UseNavigateStable),n=H.useRef(!1);return zg(()=>{n.current=!0}),H.useCallback(function(r,o){o===void 0&&(o={}),n.current&&(typeof r=="number"?t.navigate(r):t.navigate(r,no({fromRouteId:e},o)))},[t,e])}const vp={};function iz(t,e,n){vp[t]||(vp[t]=!0)}function rz(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function rP(t){let{to:e,replace:n,state:i,relative:r}=t;vo()||Te(!1);let{future:o,static:s}=H.useContext(fo),{matches:a}=H.useContext(Un),{pathname:l}=da(),u=Eg(),c=Sg(e,kg(a,o.v7_relativeSplatPath),l,r==="path"),d=JSON.stringify(c);return H.useEffect(()=>u(JSON.parse(d),{replace:n,state:i,relative:r}),[u,d,r,n,i]),null}function oz(t){Te(!1)}function sz(t){let{basename:e="/",children:n=null,location:i,navigationType:r=En.Pop,navigator:o,static:s=!1,future:a}=t;vo()&&Te(!1);let l=e.replace(/^\/*/,"/"),u=H.useMemo(()=>({basename:l,navigator:o,static:s,future:no({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof i=="string"&&(i=ir(i));let{pathname:c="/",search:d="",hash:h="",state:p=null,key:v="default"}=i,m=H.useMemo(()=>{let y=_g(c,l);return y==null?null:{location:{pathname:y,search:d,hash:h,state:p,key:v},navigationType:r}},[l,c,d,h,p,v,r]);return m==null?null:H.createElement(fo.Provider,{value:u},H.createElement(ua.Provider,{children:n,value:m}))}function oP(t){let{children:e,location:n}=t;return UD(fu(e),n)}new Promise(()=>{});function fu(t,e){e===void 0&&(e=[]);let n=[];return H.Children.forEach(t,(i,r)=>{if(!H.isValidElement(i))return;let o=[...e,r];if(i.type===H.Fragment){n.push.apply(n,fu(i.props.children,o));return}i.type!==oz&&Te(!1),!i.props.index||!i.props.children||Te(!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=fu(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 vu(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let i=t[n];return e.concat(Array.isArray(i)?i.map(r=>[n,r]):[[n,i]])},[]))}function az(t,e){let n=vu(t);return e&&e.forEach((i,r)=>{n.has(r)||e.getAll(r).forEach(o=>{n.append(r,o)})}),n}const lz="6";try{window.__reactRouterVersion=lz}catch{}const uz="startTransition",mp=xb[uz];function sP(t){let{basename:e,children:n,future:i,window:r}=t,o=H.useRef();o.current==null&&(o.current=mD({window:r,v5Compat:!0}));let s=o.current,[a,l]=H.useState({action:s.action,location:s.location}),{v7_startTransition:u}=i||{},c=H.useCallback(d=>{u&&mp?mp(()=>l(d)):l(d)},[l,u]);return H.useLayoutEffect(()=>s.listen(c),[s,c]),H.useEffect(()=>rz(i),[i]),H.createElement(sz,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:s,future:i})}var gp;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(gp||(gp={}));var bp;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(bp||(bp={}));function aP(t){let e=H.useRef(vu(t)),n=H.useRef(!1),i=da(),r=H.useMemo(()=>az(i.search,n.current?null:e.current),[i.search]),o=Eg(),s=H.useCallback((a,l)=>{const u=vu(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 dz(t,e){e===void 0&&(e={});var n=e.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=t:r.appendChild(document.createTextNode(t))}}var cz=`.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
|
-
}`;dz(cz);class Tg{}class Mn extends Tg{constructor(e,n,i){super(),this.viewId=e,this.groupId=n,this.panelId=i}}class Rr extends Tg{constructor(e,n){super(),this.viewId=e,this.paneId=n}}class Xt{constructor(){}static getInstance(){return Xt.INSTANCE}hasData(e){return e&&e===this.proto}clearData(e){this.hasData(e)&&(this.proto=void 0,this.data=void 0)}getData(e){if(this.hasData(e))return this.data}setData(e,n){n&&(this.data=e,this.proto=n)}}Xt.INSTANCE=new Xt;function We(){const t=Xt.getInstance();if(t.hasData(Mn.prototype))return t.getData(Mn.prototype)[0]}function br(){const t=Xt.getInstance();if(t.hasData(Rr.prototype))return t.getData(Rr.prototype)[0]}var oi;(function(t){t.any=(...e)=>n=>{const i=e.map(r=>r(n));return{dispose:()=>{i.forEach(r=>{r.dispose()})}}}})(oi||(oi={}));class Hd{constructor(){this._defaultPrevented=!1}get defaultPrevented(){return this._defaultPrevented}preventDefault(){this._defaultPrevented=!0}}class Og{constructor(){this._isAccepted=!1}get isAccepted(){return this._isAccepted}accept(){this._isAccepted=!0}}class hz{constructor(){this.events=new Map}get size(){return this.events.size}add(e,n){this.events.set(e,n)}delete(e){this.events.delete(e)}clear(){this.events.clear()}}class Rs{static create(){var e;return new Rs((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn("dockview: stacktrace",this.value)}}class pz{constructor(e,n){this.callback=e,this.stacktrace=n}}class E{static setLeakageMonitorEnabled(e){e!==E.ENABLE_TRACKING&&E.MEMORY_LEAK_WATCHER.clear(),E.ENABLE_TRACKING=e}get value(){return this._last}constructor(e){this.options=e,this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>{var n;!((n=this.options)===null||n===void 0)&&n.replay&&this._last!==void 0&&e(this._last);const i=new pz(e,E.ENABLE_TRACKING?Rs.create():void 0);return this._listeners.push(i),{dispose:()=>{const r=this._listeners.indexOf(i);r>-1&&this._listeners.splice(r,1)}}},E.ENABLE_TRACKING&&E.MEMORY_LEAK_WATCHER.add(this._event,Rs.create())),this._event}fire(e){var n;!((n=this.options)===null||n===void 0)&&n.replay&&(this._last=e);for(const i of this._listeners)i.callback(e)}dispose(){this._disposed||(this._disposed=!0,this._listeners.length>0&&(E.ENABLE_TRACKING&&queueMicrotask(()=>{var e;for(const n of this._listeners)console.warn("dockview: stacktrace",(e=n.stacktrace)===null||e===void 0?void 0:e.print())}),this._listeners=[]),E.ENABLE_TRACKING&&this._event&&E.MEMORY_LEAK_WATCHER.delete(this._event))}}E.ENABLE_TRACKING=!1;E.MEMORY_LEAK_WATCHER=new hz;function q(t,e,n,i){return t.addEventListener(e,n,i),{dispose:()=>{t.removeEventListener(e,n,i)}}}class wp{constructor(){this._onFired=new E,this._currentFireCount=0,this._queued=!1,this.onEvent=e=>{const n=this._currentFireCount;return this._onFired.event(()=>{this._currentFireCount>n&&e()})}}fire(){this._currentFireCount++,!this._queued&&(this._queued=!0,queueMicrotask(()=>{this._queued=!1,this._onFired.fire()}))}dispose(){this._onFired.dispose()}}var Ie;(function(t){t.NONE={dispose:()=>{}};function e(n){return{dispose:()=>{n()}}}t.from=e})(Ie||(Ie={}));class Z{get isDisposed(){return this._isDisposed}constructor(...e){this._isDisposed=!1,this._disposables=new Set(e)}addDisposables(...e){e.forEach(n=>this._disposables.add(n))}removeDisposable(e){this._disposables.delete(e)}dispose(){this._isDisposed||(this._isDisposed=!0,this._disposables.forEach(e=>e.dispose()),this._disposables.clear())}}class Me{constructor(){this._disposable=Ie.NONE}set value(e){this._disposable&&this._disposable.dispose(),this._disposable=e}dispose(){this._disposable&&(this._disposable.dispose(),this._disposable=Ie.NONE)}}class fz extends Z{constructor(e){super(),this._onDidChange=new E,this.onDidChange=this._onDidChange.event,this._value=null,this.addDisposables(this._onDidChange,ca(e,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 ca(t,e){const n=new ResizeObserver(i=>{requestAnimationFrame(()=>{const r=i[0];e(r)})});return n.observe(t),{dispose:()=>{n.unobserve(t),n.disconnect()}}}const Gt=(t,...e)=>{for(const n of e)t.classList.contains(n)&&t.classList.remove(n)},Ht=(t,...e)=>{for(const n of e)t.classList.contains(n)||t.classList.add(n)},B=(t,e,n)=>{const i=t.classList.contains(e);n&&!i&&t.classList.add(e),!n&&i&&t.classList.remove(e)};function mu(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Lg(t){return new vz(t)}class vz extends Z{constructor(e){super(),this._onDidFocus=new E,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new E,this.onDidBlur=this._onDidBlur.event,this.addDisposables(this._onDidFocus,this._onDidBlur);let n=mu(document.activeElement,e),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=()=>{mu(document.activeElement,e)!==n&&(n?o():r())},this.addDisposables(q(e,"focus",r,!0)),this.addDisposables(q(e,"blur",o,!0))}refreshState(){this._refreshStateHandler()}}const Rg="dv-quasiPreventDefault";function mz(t){t[Rg]=!0}function yp(t){return t[Rg]}function gz(t,e){const n=Array.from(e);for(const i of n){if(i.href){const o=t.createElement("link");o.href=i.href,o.type=i.type,o.rel="stylesheet",t.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=t.createElement("style");s.appendChild(t.createTextNode(o)),t.head.appendChild(s)}}}function gu(t){const{left:e,top:n,width:i,height:r}=t.getBoundingClientRect();return{left:e+window.scrollX,top:n+window.scrollY,width:i,height:r}}function bz(t){let e=t;for(;e!=null&&e.parentNode;){if(e.parentNode===document)return!0;e.parentNode instanceof DocumentFragment?e=e.parentNode.host:e=e.parentNode}return!1}function wz(t,e){t.setAttribute("data-testid",e)}function yz(t){const e=[];function n(i){if(i.nodeType===Node.ELEMENT_NODE){t.includes(i.tagName)&&e.push(i),i.shadowRoot&&n(i.shadowRoot);for(const r of i.children)n(r)}}return n(document.documentElement),e}function Ns(t=document){const e=yz(["IFRAME","WEBVIEW"]),n=new WeakMap;for(const i of e)n.set(i,i.style.pointerEvents),i.style.pointerEvents="none";return{release:()=>{var i;for(const r of e)r.style.pointerEvents=(i=n.get(r))!==null&&i!==void 0?i:"auto";e.splice(0,e.length)}}}function xz(t){function e(r){const o=[];for(let s=0;s<r.classList.length;s++)o.push(r.classList.item(s));return o}let n,i=t;for(;i!==null&&(n=e(i).find(r=>r.startsWith("dockview-theme-")),typeof n!="string");)i=i.parentElement;return n}class ha{constructor(e){this.element=e,this._classNames=[]}setClassNames(e){for(const n of this._classNames)B(this.element,n,!1);this._classNames=e.split(" ").filter(n=>n.trim().length>0);for(const n of this._classNames)B(this.element,n,!0)}}const Ng=100;function _z(t,e){const n=gu(t),i=gu(e);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 kz(t){const e=new E;let n=t.screenX,i=t.screenY,r;const o=()=>{if(t.closed)return;const s=t.screenX,a=t.screenY;(s!==n||a!==i)&&(clearTimeout(r),r=setTimeout(()=>{e.fire()},Ng),n=s,i=a),requestAnimationFrame(o)};return o(),e}function Sz(t,e){let n;return new Z(q(t,"resize",()=>{clearTimeout(n),n=setTimeout(()=>{e()},Ng)}))}function Cz(t,e,n={buffer:10}){const i=n.buffer,r=t.getBoundingClientRect(),o=e.getBoundingClientRect();let s=0,a=0;const l=r.left-o.left,u=r.top-o.top,c=r.bottom-o.bottom,d=r.right-o.right;l<i?s=i-l:d>i&&(s=-i-d),u<i?a=i-u:c>i&&(a=-c-i),(s!==0||a!==0)&&(t.style.transform=`translate(${s}px, ${a}px)`)}function Dz(t){let e=t;for(;e&&(e.style.zIndex==="auto"||e.style.zIndex==="");)e=e.parentElement;return e}function un(t){if(t.length===0)throw new Error("Invalid tail call");return[t.slice(0,t.length-1),t[t.length-1]]}function Mg(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function sl(t,e){const n=t.indexOf(e);n>-1&&(t.splice(n,1),t.unshift(e))}function Fo(t,e){const n=t.indexOf(e);n>-1&&(t.splice(n,1),t.push(e))}function zz(t,e){for(let n=0;n<t.length;n++){const i=t[n];if(e(i))return n}return-1}function al(t,e){const n=t.findIndex(i=>i===e);return n>-1?(t.splice(n,1),!0):!1}const be=(t,e,n)=>e>n?e:Math.min(n,Math.max(t,e)),Wd=()=>{let t=1;return{next:()=>(t++).toString()}},It=(t,e)=>{const n=[];if(typeof e!="number"&&(e=t,t=0),t<=e)for(let i=t;i<e;i++)n.push(i);else for(let i=t;i>e;i--)n.push(i);return n};class Ez{set size(e){this._size=e}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(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,n,i,r){this.container=e,this.view=n,this.disposable=r,this._cachedVisibleSize=void 0,typeof i=="number"?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}setVisible(e,n){var i;e!==this.visible&&(e?(this.size=be((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",e),this.view.setVisible&&this.view.setVisible(e))}dispose(){return this.disposable.dispose(),this.view}}var U;(function(t){t.HORIZONTAL="HORIZONTAL",t.VERTICAL="VERTICAL"})(U||(U={}));var wt;(function(t){t[t.MAXIMUM=0]="MAXIMUM",t[t.MINIMUM=1]="MINIMUM",t[t.DISABLED=2]="DISABLED",t[t.ENABLED=3]="ENABLED"})(wt||(wt={}));var Le;(function(t){t.Low="low",t.High="high",t.Normal="normal"})(Le||(Le={}));var St;(function(t){t.Distribute={type:"distribute"};function e(i){return{type:"split",index:i}}t.Split=e;function n(i){return{type:"invisible",cachedVisibleSize:i}}t.Invisible=n})(St||(St={}));class io{get contentSize(){return this._contentSize}get size(){return this._size}set size(e){this._size=e}get orthogonalSize(){return this._orthogonalSize}set orthogonalSize(e){this._orthogonalSize=e}get length(){return this.viewItems.length}get proportions(){return this._proportions?[...this._proportions]:void 0}get orientation(){return this._orientation}set orientation(e){this._orientation=e;const n=this.size;this.size=this.orthogonalSize,this.orthogonalSize=n,Gt(this.element,"dv-horizontal","dv-vertical"),this.element.classList.add(this.orientation==U.HORIZONTAL?"dv-horizontal":"dv-vertical")}get minimumSize(){return this.viewItems.reduce((e,n)=>e+n.minimumSize,0)}get maximumSize(){return this.length===0?Number.POSITIVE_INFINITY:this.viewItems.reduce((e,n)=>e+n.maximumSize,0)}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}get disabled(){return this._disabled}set disabled(e){this._disabled=e,B(this.element,"dv-splitview-disabled",e)}get margin(){return this._margin}set margin(e){this._margin=e,B(this.element,"dv-splitview-has-margin",e!==0)}constructor(e,n){var i,r;this.container=e,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 E,this.onDidSashEnd=this._onDidSashEnd.event,this._onDidAddView=new E,this.onDidAddView=this._onDidAddView.event,this._onDidRemoveView=new E,this.onDidRemoveView=this._onDidRemoveView.event,this.resize=(o,s,a=this.viewItems.map(v=>v.size),l,u,c=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY,h,p)=>{if(o<0||o>this.viewItems.length)return 0;const v=It(o,-1),m=It(o+1,this.viewItems.length);if(u)for(const P of u)sl(v,P),sl(m,P);if(l)for(const P of l)Fo(v,P),Fo(m,P);const y=v.map(P=>this.viewItems[P]),f=v.map(P=>a[P]),g=m.map(P=>this.viewItems[P]),b=m.map(P=>a[P]),k=v.reduce((P,N)=>P+this.viewItems[N].minimumSize-a[N],0),D=v.reduce((P,N)=>P+this.viewItems[N].maximumSize-a[N],0),x=m.length===0?Number.POSITIVE_INFINITY:m.reduce((P,N)=>P+a[N]-this.viewItems[N].minimumSize,0),z=m.length===0?Number.NEGATIVE_INFINITY:m.reduce((P,N)=>P+a[N]-this.viewItems[N].maximumSize,0),C=Math.max(k,z),R=Math.min(x,D);let S=!1;if(h){const P=this.viewItems[h.index],N=s>=h.limitDelta;S=N!==P.visible,P.setVisible(N,h.size)}if(!S&&p){const P=this.viewItems[p.index],N=s<p.limitDelta;S=N!==P.visible,P.setVisible(N,p.size)}if(S)return this.resize(o,s,a,l,u,c,d);const O=be(s,C,R);let V=0,$=O;for(let P=0;P<y.length;P++){const N=y[P],X=be(f[P]+$,N.minimumSize,N.maximumSize),L=X-f[P];V+=L,$-=L,N.size=X}let Q=V;for(let P=0;P<g.length;P++){const N=g[P],X=be(b[P]-Q,N.minimumSize,N.maximumSize),L=X-b[P];Q+=L,N.size=X}return s},this._orientation=(i=n.orientation)!==null&&i!==void 0?i:U.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(e){(e==null?void 0:e.separatorBorder)==="transparent"?(Gt(this.element,"dv-separator-border"),this.element.style.removeProperty("--dv-separator-border")):(Ht(this.element,"dv-separator-border"),e!=null&&e.separatorBorder&&this.element.style.setProperty("--dv-separator-border",e.separatorBorder))}isViewVisible(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].visible}setViewVisible(e,n){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");const i=this.viewItems[e];i.setVisible(n,i.size),this.distributeEmptySpace(e),this.layoutViews(),this.saveProportions()}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}resizeView(e,n){if(e<0||e>=this.viewItems.length)return;const i=It(this.viewItems.length).filter(a=>a!==e),r=[...i.filter(a=>this.viewItems[a].priority===Le.Low),e],o=i.filter(a=>this.viewItems[a].priority===Le.High),s=this.viewItems[e];n=Math.round(n),n=be(n,s.minimumSize,Math.min(s.maximumSize,this._size)),s.size=n,this.relayout(r,o)}getViews(){return this.viewItems.map(e=>e.view)}onDidChange(e,n){const i=this.viewItems.indexOf(e);if(i<0||i>=this.viewItems.length)return;n=typeof n=="number"?n:e.size,n=be(n,e.minimumSize,e.maximumSize),e.size=n;const r=It(this.viewItems.length).filter(a=>a!==i),o=[...r.filter(a=>this.viewItems[a].priority===Le.Low),i],s=r.filter(a=>this.viewItems[a].priority===Le.High);this.relayout([...o,i],s)}addView(e,n={type:"distribute"},i=this.viewItems.length,r){const o=document.createElement("div");o.className="dv-view",o.appendChild(e.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=e.minimumSize;const a=e.onDidChange(u=>this.onDidChange(l,u.size)),l=new Ez(o,e,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 c=h=>{for(const P of this.viewItems)P.enabled=!1;const p=Ns(),v=this._orientation===U.HORIZONTAL?h.clientX:h.clientY,m=zz(this.sashes,P=>P.container===u),y=this.viewItems.map(P=>P.size);let f,g;const b=It(m,-1),k=It(m+1,this.viewItems.length),D=b.reduce((P,N)=>P+(this.viewItems[N].minimumSize-y[N]),0),x=b.reduce((P,N)=>P+(this.viewItems[N].viewMaximumSize-y[N]),0),z=k.length===0?Number.POSITIVE_INFINITY:k.reduce((P,N)=>P+(y[N]-this.viewItems[N].minimumSize),0),C=k.length===0?Number.NEGATIVE_INFINITY:k.reduce((P,N)=>P+(y[N]-this.viewItems[N].viewMaximumSize),0),R=Math.max(D,C),S=Math.min(z,x),O=this.findFirstSnapIndex(b),V=this.findFirstSnapIndex(k);if(typeof O=="number"){const P=this.viewItems[O],N=Math.floor(P.viewMinimumSize/2);f={index:O,limitDelta:P.visible?R-N:R+N,size:P.size}}if(typeof V=="number"){const P=this.viewItems[V],N=Math.floor(P.viewMinimumSize/2);g={index:V,limitDelta:P.visible?S+N:S-N,size:P.size}}const $=P=>{const X=(this._orientation===U.HORIZONTAL?P.clientX:P.clientY)-v;this.resize(m,X,y,void 0,void 0,R,S,f,g),this.distributeEmptySpace(),this.layoutViews()},Q=()=>{for(const P of this.viewItems)P.enabled=!0;p.release(),this.saveProportions(),document.removeEventListener("pointermove",$),document.removeEventListener("pointerup",Q),document.removeEventListener("pointercancel",Q),document.removeEventListener("contextmenu",Q),this._onDidSashEnd.fire(void 0)};document.addEventListener("pointermove",$),document.addEventListener("pointerup",Q),document.addEventListener("pointercancel",Q),document.addEventListener("contextmenu",Q)};u.addEventListener("pointerdown",c);const d={container:u,disposable:()=>{u.removeEventListener("pointerdown",c),this.sashContainer.removeChild(u)}};this.sashContainer.appendChild(u),this.sashes.push(d)}r||this.relayout([i]),!r&&typeof n!="number"&&n.type==="distribute"&&this.distributeViewSizes(),this._onDidAddView.fire(e)}distributeViewSizes(){const e=[];let n=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(e.push(a),n+=a.size);const i=Math.floor(n/e.length);for(const a of e)a.size=be(i,a.minimumSize,a.maximumSize);const r=It(this.viewItems.length),o=r.filter(a=>this.viewItems[a].priority===Le.Low),s=r.filter(a=>this.viewItems[a].priority===Le.High);this.relayout(o,s)}removeView(e,n,i=!1){const r=this.viewItems.splice(e,1)[0];if(r.dispose(),this.viewItems.length>=1){const o=Math.max(e-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(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].cachedVisibleSize}moveView(e,n){const i=this.getViewCachedVisibleSize(e),r=typeof i>"u"?this.getViewSize(e):St.Invisible(i),o=this.removeView(e,void 0,!0);this.addView(o,r,n)}layout(e,n){const i=Math.max(this.size,this._contentSize);if(this.size=e,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:e-=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=be(Math.round(a*e/r),s.minimumSize,s.maximumSize))}}else{const r=It(this.viewItems.length),o=r.filter(a=>this.viewItems[a].priority===Le.Low),s=r.filter(a=>this.viewItems[a].priority===Le.High);this.resize(this.viewItems.length-1,e-i,void 0,o,s)}this.distributeEmptySpace(),this.layoutViews()}relayout(e,n){const i=this.viewItems.reduce((r,o)=>r+o.size,0);this.resize(this.viewItems.length-1,this._size-i,void 0,e,n),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}distributeEmptySpace(e){const n=this.viewItems.reduce((a,l)=>a+l.size,0);let i=this.size-n;const r=It(this.viewItems.length-1,-1),o=r.filter(a=>this.viewItems[a].priority===Le.Low),s=r.filter(a=>this.viewItems[a].priority===Le.High);for(const a of s)sl(r,a);for(const a of o)Fo(r,a);typeof e=="number"&&Fo(r,e);for(let a=0;i!==0&&a<r.length;a++){const l=this.viewItems[r[a]],u=be(l.size+i,l.minimumSize,l.maximumSize),c=u-l.size;i-=c,l.size=u}}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this._proportions=this.viewItems.map(e=>e.visible?e.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 e=this.viewItems.filter(l=>l.visible),n=Math.max(0,e.length-1),i=this.margin*n/Math.max(1,e.length);let r=0;const o=[],s=4,a=this.viewItems.reduce((l,u,c)=>{const d=u.visible?1:0;return c===0?l.push(d):l.push(l[c-1]+d),l},[]);this.viewItems.forEach((l,u)=>{r+=this.viewItems[u].size,o.push(r);const c=l.visible?l.size-i:0,d=Math.max(0,a[u]-1),h=u===0||d===0?0:o[u-1]+d/n*i;if(u<this.viewItems.length-1){const p=l.visible?h+c-s/2+this.margin/2:h;this._orientation===U.HORIZONTAL&&(this.sashes[u].container.style.left=`${p}px`,this.sashes[u].container.style.top="0px"),this._orientation===U.VERTICAL&&(this.sashes[u].container.style.left="0px",this.sashes[u].container.style.top=`${p}px`)}this._orientation===U.HORIZONTAL&&(l.container.style.width=`${c}px`,l.container.style.left=`${h}px`,l.container.style.top="",l.container.style.height=""),this._orientation===U.VERTICAL&&(l.container.style.height=`${c}px`,l.container.style.top=`${h}px`,l.container.style.width="",l.container.style.left=""),l.view.layout(l.size-i,this._orthogonalSize)})}findFirstSnapIndex(e){for(const n of e){const i=this.viewItems[n];if(i.visible&&i.snap)return n}for(const n of e){const i=this.viewItems[n];if(i.visible&&i.maximumSize-i.minimumSize>0)return;if(!i.visible&&i.snap)return n}}updateSashEnablement(){let e=!1;const n=this.viewItems.map(l=>e=l.size-l.minimumSize>0||e);e=!1;const i=this.viewItems.map(l=>e=l.maximumSize-l.size>0||e),r=[...this.viewItems].reverse();e=!1;const o=r.map(l=>e=l.size-l.minimumSize>0||e).reverse();e=!1;const s=r.map(l=>e=l.maximumSize-l.size>0||e).reverse();let a=0;for(let l=0;l<this.sashes.length;l++){const u=this.sashes[l],c=this.viewItems[l];a+=c.size;const d=!(n[l]&&s[l+1]),h=!(i[l]&&o[l+1]);if(d&&h){const p=It(l,-1),v=It(l+1,this.viewItems.length),m=this.findFirstSnapIndex(p),y=this.findFirstSnapIndex(v),f=typeof m=="number"&&!this.viewItems[m].visible,g=typeof y=="number"&&!this.viewItems[y].visible;f&&o[l]&&(a>0||this.startSnappingEnabled)?this.updateSash(u,wt.MINIMUM):g&&n[l]&&(a<this._contentSize||this.endSnappingEnabled)?this.updateSash(u,wt.MAXIMUM):this.updateSash(u,wt.DISABLED)}else d&&!h?this.updateSash(u,wt.MINIMUM):!d&&h?this.updateSash(u,wt.MAXIMUM):this.updateSash(u,wt.ENABLED)}}updateSash(e,n){B(e.container,"dv-disabled",n===wt.DISABLED),B(e.container,"dv-enabled",n===wt.ENABLED),B(e.container,"dv-maximum",n===wt.MAXIMUM),B(e.container,"dv-minimum",n===wt.MINIMUM)}createViewContainer(){const e=document.createElement("div");return e.className="dv-view-container",e}createSashContainer(){const e=document.createElement("div");return e.className="dv-sash-container",e}createContainer(){const e=document.createElement("div"),n=this._orientation===U.HORIZONTAL?"dv-horizontal":"dv-vertical";return e.className=`dv-split-view-container ${n}`,e}dispose(){this._onDidSashEnd.dispose(),this._onDidAddView.dispose(),this._onDidRemoveView.dispose();for(let e=0;e<this.element.children.length;e++)if(this.element.children.item(e)===this.element){this.element.removeChild(this.element);break}for(const e of this.viewItems)e.dispose();this.element.remove()}}const bu=Object.keys({orientation:void 0,descriptor:void 0,proportionalLayout:void 0,styles:void 0,margin:void 0,disableAutoResizing:void 0,className:void 0});class xp extends Z{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(e,n){var i;super(),this.paneItems=[],this.skipAnimation=!1,this._onDidChange=new E,this.onDidChange=this._onDidChange.event,this._orientation=(i=n.orientation)!==null&&i!==void 0?i:U.VERTICAL,this.element=document.createElement("div"),this.element.className="dv-pane-container",e.appendChild(this.element),this.splitview=new io(this.element,{orientation:this._orientation,proportionalLayout:!1,descriptor:n.descriptor}),this.getPanes().forEach(r=>{const o=new Z(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(e,n){this.splitview.setViewVisible(e,n)}addPane(e,n,i=this.splitview.length,r=!1){const o=e.onDidChangeExpansionState(()=>{this.setupAnimation(),this._onDidChange.fire(void 0)}),s={pane:e,disposable:{dispose:()=>{o.dispose()}}};this.paneItems.splice(i,0,s),e.orthogonalSize=this.splitview.orthogonalSize,this.splitview.addView(e,n,i,r)}getViewSize(e){return this.splitview.getViewSize(e)}getPanes(){return this.splitview.getViews()}removePane(e,n={skipDispose:!1}){const i=this.paneItems.splice(e,1)[0];return this.splitview.removeView(e),n.skipDispose||(i.disposable.dispose(),i.pane.dispose()),i}moveView(e,n){if(e===n)return;const i=this.removePane(e,{skipDispose:!0});this.skipAnimation=!0;try{this.addPane(i.pane,i.pane.size,n,!1)}finally{this.skipAnimation=!1}}layout(e,n){this.splitview.layout(e,n)}setupAnimation(){this.skipAnimation||(this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=void 0),Ht(this.element,"dv-animated"),this.animationTimer=setTimeout(()=>{this.animationTimer=void 0,Gt(this.element,"dv-animated")},200))}dispose(){super.dispose(),this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=void 0),this.paneItems.forEach(e=>{e.disposable.dispose(),e.pane.dispose()}),this.paneItems=[],this.splitview.dispose(),this.element.remove()}}class Ve{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===U.HORIZONTAL?this.minimumHeight:this.minimumWidth}get maximumSize(){return this.orientation===U.HORIZONTAL?this.maximumHeight:this.maximumWidth}get minimumOrthogonalSize(){return this.orientation===U.HORIZONTAL?this.minimumWidth:this.minimumHeight}get maximumOrthogonalSize(){return this.orientation===U.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===U.HORIZONTAL?this.orthogonalSize:this.size}get height(){return this.orientation===U.HORIZONTAL?this.size:this.orthogonalSize}constructor(e,n,i,r=0){this.view=e,this.orientation=n,this._onDidChange=new E,this.onDidChange=this._onDidChange.event,this._orthogonalSize=i,this._size=r,this._disposable=this.view.onDidChange(o=>{o?this._onDidChange.fire({size:this.orientation===U.VERTICAL?o.width:o.height,orthogonalSize:this.orientation===U.VERTICAL?o.height:o.width}):this._onDidChange.fire({})})}setVisible(e){this.view.setVisible&&this.view.setVisible(e)}layout(e,n){this._size=e,this._orthogonalSize=n,this.view.layout(this.width,this.height)}dispose(){this._onDidChange.dispose(),this._disposable.dispose()}}class De extends Z{get width(){return this.orientation===U.HORIZONTAL?this.size:this.orthogonalSize}get height(){return this.orientation===U.HORIZONTAL?this.orthogonalSize:this.size}get minimumSize(){return this.children.length===0?0:Math.max(...this.children.map((e,n)=>this.splitview.isViewVisible(n)?e.minimumOrthogonalSize:0))}get maximumSize(){return Math.min(...this.children.map((e,n)=>this.splitview.isViewVisible(n)?e.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===U.HORIZONTAL?this.minimumOrthogonalSize:this.minimumSize}get minimumHeight(){return this.orientation===U.HORIZONTAL?this.minimumSize:this.minimumOrthogonalSize}get maximumWidth(){return this.orientation===U.HORIZONTAL?this.maximumOrthogonalSize:this.maximumSize}get maximumHeight(){return this.orientation===U.HORIZONTAL?this.maximumSize:this.maximumOrthogonalSize}get priority(){if(this.children.length===0)return Le.Normal;const e=this.children.map(n=>typeof n.priority>"u"?Le.Normal:n.priority);return e.some(n=>n===Le.High)?Le.High:e.some(n=>n===Le.Low)?Le.Low:Le.Normal}get disabled(){return this.splitview.disabled}set disabled(e){this.splitview.disabled=e}get margin(){return this.splitview.margin}set margin(e){this.splitview.margin=e,this.children.forEach(n=>{n instanceof De&&(n.margin=e)})}constructor(e,n,i,r,o,s,a,l){if(super(),this.orientation=e,this.proportionalLayout=n,this.styles=i,this._childrenDisposable=Ie.NONE,this.children=[],this._onDidChange=new E,this.onDidChange=this._onDidChange.event,this._onDidVisibilityChange=new E,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 io(this.element,{orientation:this.orientation,proportionalLayout:n,styles:i,margin:a}),this.splitview.layout(this.size,this.orthogonalSize);else{const u={views:l.map(c=>({view:c.node,size:c.node.size,visible:c.node instanceof Ve&&c.visible!==void 0?c.visible:!0})),size:this.orthogonalSize};this.children=l.map(c=>c.node),this.splitview=new io(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(e){}isChildVisible(e){if(e<0||e>=this.children.length)throw new Error("Invalid index");return this.splitview.isViewVisible(e)}setChildVisible(e,n){if(e<0||e>=this.children.length)throw new Error("Invalid index");if(this.splitview.isViewVisible(e)===n)return;const i=this.splitview.contentSize===0;this.splitview.setViewVisible(e,n);const r=this.splitview.contentSize===0;(n&&i||!n&&r)&&this._onDidVisibilityChange.fire({visible:n})}moveChild(e,n){if(e===n)return;if(e<0||e>=this.children.length)throw new Error("Invalid from index");e<n&&n--,this.splitview.moveView(e,n);const i=this._removeChild(e);this._addChild(i,n)}getChildSize(e){if(e<0||e>=this.children.length)throw new Error("Invalid index");return this.splitview.getViewSize(e)}resizeChild(e,n){if(e<0||e>=this.children.length)throw new Error("Invalid index");this.splitview.resizeView(e,n)}layout(e,n){this._size=n,this._orthogonalSize=e,this.splitview.layout(n,e)}addChild(e,n,i,r){if(i<0||i>this.children.length)throw new Error("Invalid index");this.splitview.addView(e,n,i,r),this._addChild(e,i)}getChildCachedVisibleSize(e){if(e<0||e>=this.children.length)throw new Error("Invalid index");return this.splitview.getViewCachedVisibleSize(e)}removeChild(e,n){if(e<0||e>=this.children.length)throw new Error("Invalid index");return this.splitview.removeView(e,n),this._removeChild(e)}_addChild(e,n){this.children.splice(n,0,e),this.setupChildrenEvents()}_removeChild(e){const[n]=this.children.splice(e,1);return this.setupChildrenEvents(),n}setupChildrenEvents(){this._childrenDisposable.dispose(),this._childrenDisposable=new Z(oi.any(...this.children.map(e=>e.onDidChange))(e=>{this._onDidChange.fire({size:e.orthogonalSize})}),...this.children.map((e,n)=>e instanceof De?e.onDidVisibilityChange(({visible:i})=>{this.setChildVisible(n,i)}):Ie.NONE))}dispose(){this._childrenDisposable.dispose(),this.splitview.dispose(),this.children.forEach(e=>e.dispose()),super.dispose()}}function wu(t,e){if(t instanceof Ve)return t;if(t instanceof De)return wu(t.children[e?t.children.length-1:0],e);throw new Error("invalid node")}function Vg(t,e,n){if(t instanceof De){const i=new De(t.orientation,t.proportionalLayout,t.styles,e,n,t.disabled,t.margin);for(let r=t.children.length-1;r>=0;r--){const o=t.children[r];i.addChild(Vg(o,o.size,o.orthogonalSize),o.size,0,!0)}return i}else return new Ve(t.view,t.orientation,n)}function yu(t,e,n){if(t instanceof De){const i=new De(Qt(t.orientation),t.proportionalLayout,t.styles,e,n,t.disabled,t.margin);let r=0;for(let o=t.children.length-1;o>=0;o--){const s=t.children[o],a=s instanceof De?s.orthogonalSize:s.size;let l=t.size===0?0:Math.round(e*a/t.size);r+=l,o===0&&(l+=e-r),i.addChild(yu(s,n,l),l,0,!0)}return i}else return new Ve(t.view,Qt(t.orientation),n)}function Pz(t){const e=t.parentElement;if(!e)throw new Error("Invalid grid element");let n=e.firstElementChild,i=0;for(;n!==t&&n!==e.lastElementChild&&n;)n=n.nextElementSibling,i++;return i}function _e(t){const e=t.parentElement;if(!e)throw new Error("Invalid grid element");if(/\bdv-grid-view\b/.test(e.className))return[];const n=Pz(e),i=e.parentElement.parentElement.parentElement;return[..._e(i),n]}function Ut(t,e,n){const i=Iz(t,e),r=Az(n);if(i===r){const[o,s]=un(e);let a=s;return(n==="right"||n==="bottom")&&(a+=1),[...o,a]}else{const o=n==="right"||n==="bottom"?1:0;return[...e,o]}}function Az(t){return t==="top"||t==="bottom"?U.VERTICAL:U.HORIZONTAL}function Iz(t,e){return e.length%2===0?Qt(t):t}const Qt=t=>t===U.HORIZONTAL?U.VERTICAL:U.HORIZONTAL;function Tz(t){return!!t.children}const xu=(t,e)=>{const n=e===U.VERTICAL?t.box.width:t.box.height;return Tz(t)?{type:"branch",data:t.children.map(i=>xu(i,Qt(e))),size:n}:typeof t.cachedVisibleSize=="number"?{type:"leaf",data:t.view.toJSON(),size:t.cachedVisibleSize,visible:!1}:{type:"leaf",data:t.view.toJSON(),size:n}};class Oz{get length(){return this._root?this._root.children.length:0}get orientation(){return this.root.orientation}set orientation(e){if(this.root.orientation===e)return;const{size:n,orthogonalSize:i}=this.root;this.root=yu(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(e){this._locked=e;const n=[this.root];for(;n.length>0;){const i=n.pop();i instanceof De&&(i.disabled=e,n.push(...i.children))}}get margin(){return this._margin}set margin(e){this._margin=e,this.root.margin=e}maximizedView(){var e;return(e=this._maximizedNode)===null||e===void 0?void 0:e.leaf.view}hasMaximizedView(){return this._maximizedNode!==void 0}maximizeView(e){var n;const i=_e(e.element),[r,o]=this.getNode(i);if(!(o instanceof Ve)||((n=this._maximizedNode)===null||n===void 0?void 0:n.leaf)===o)return;this.hasMaximizedView()&&this.exitMaximizedView(),xu(this.getView(),this.orientation);const s=[];function a(l,u){for(let c=0;c<l.children.length;c++){const d=l.children[c];d instanceof Ve?d!==u&&(l.isChildVisible(c)?l.setChildVisible(c,!1):s.push(d)):a(d,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 e=this._maximizedNode.hiddenOnMaximize;function n(r){for(let o=r.children.length-1;o>=0;o--){const s=r.children[o];s instanceof Ve?e.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 e=this.maximizedView();let n;e&&(n=_e(e.element)),this.hasMaximizedView()&&this.exitMaximizedView();const r={root:xu(this.getView(),this.orientation),width:this.width,height:this.height,orientation:this.orientation};return n&&(r.maximizedNode={location:n}),e&&this.maximizeView(e),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 e=this.root.orientation;this.root=new De(e,this.proportionalLayout,this.styles,this.root.size,this.root.orthogonalSize,this.locked,this.margin)}deserialize(e,n){const i=e.orientation,r=i===U.VERTICAL?e.height:e.width;if(this._deserialize(e.root,i,n,r),this.layout(e.width,e.height),e.maximizedNode){const o=e.maximizedNode.location,[s,a]=this.getNode(o);if(!(a instanceof Ve))return;this.maximizeView(a.view)}}_deserialize(e,n,i,r){this.root=this._deserializeNode(e,n,i,r)}_deserializeNode(e,n,i,r){var o;let s;if(e.type==="branch"){const l=e.data.map(u=>({node:this._deserializeNode(u,Qt(n),i,e.size),visible:u.visible}));s=new De(n,this.proportionalLayout,this.styles,e.size,r,this.locked,this.margin,l)}else{const a=i.fromJSON(e);typeof e.visible=="boolean"&&((o=a.setVisible)===null||o===void 0||o.call(a,e.visible)),s=new Ve(a,n,r,e.size)}return s}get root(){return this._root}set root(e){const n=this._root;n&&(n.dispose(),this._maximizedNode=void 0,this.element.removeChild(n.element)),this._root=e,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 e=this.root,n=e.children[0];if(n instanceof Ve)return;e.element.remove();const i=e.removeChild(0);e.dispose(),i.dispose(),this._root=Vg(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 e=this.root;if(e.element.remove(),this._root=new De(Qt(e.orientation),this.proportionalLayout,this.styles,this.root.orthogonalSize,this.root.size,this.locked,this.margin),e.children.length!==0)if(e.children.length===1){const n=e.children[0];e.removeChild(0).dispose(),e.dispose(),this._root.addChild(yu(n,n.orthogonalSize,n.size),St.Distribute,0)}else this._root.addChild(e,St.Distribute,0);this.element.appendChild(this._root.element),this.disposable.value=this._root.onDidChange(n=>{this._onDidChange.fire(n)})}next(e){return this.progmaticSelect(e)}previous(e){return this.progmaticSelect(e,!0)}getView(e){const n=e?this.getNode(e)[1]:this.root;return this._getViews(n,this.orientation)}_getViews(e,n,i){const r={height:e.height,width:e.width};if(e instanceof Ve)return{box:r,view:e.view,cachedVisibleSize:i};const o=[];for(let s=0;s<e.children.length;s++){const a=e.children[s],l=e.getChildCachedVisibleSize(s);o.push(this._getViews(a,Qt(n),l))}return{box:r,children:o}}progmaticSelect(e,n=!1){const[i,r]=this.getNode(e);if(!(r instanceof Ve))throw new Error("invalid location");for(let o=i.length-1;o>-1;o--){const s=i[o],a=e[o]||0;if(n?a-1>-1:a+1<s.children.length)return wu(s.children[n?a-1:a+1],n)}return wu(this.root,n)}constructor(e,n,i,r,o){this.proportionalLayout=e,this.styles=n,this._locked=!1,this._margin=0,this._maximizedNode=void 0,this.disposable=new Me,this._onDidChange=new E,this.onDidChange=this._onDidChange.event,this._onDidViewVisibilityChange=new E,this.onDidViewVisibilityChange=this._onDidViewVisibilityChange.event,this._onDidMaximizedNodeChange=new E,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 De(i,e,n,0,0,this.locked,this.margin)}isViewVisible(e){const[n,i]=un(e),[,r]=this.getNode(n);if(!(r instanceof De))throw new Error("Invalid from location");return r.isChildVisible(i)}setViewVisible(e,n){this.hasMaximizedView()&&this.exitMaximizedView();const[i,r]=un(e),[,o]=this.getNode(i);if(!(o instanceof De))throw new Error("Invalid from location");this._onDidViewVisibilityChange.fire(),o.setChildVisible(r,n)}moveView(e,n,i){this.hasMaximizedView()&&this.exitMaximizedView();const[,r]=this.getNode(e);if(!(r instanceof De))throw new Error("Invalid location");r.moveChild(n,i)}addView(e,n,i){this.hasMaximizedView()&&this.exitMaximizedView();const[r,o]=un(i),[s,a]=this.getNode(r);if(a instanceof De){const l=new Ve(e,Qt(a.orientation),a.orthogonalSize);a.addChild(l,n,o)}else{const[l,...u]=[...s].reverse(),[c,...d]=[...r].reverse();let h=0;const p=l.getChildCachedVisibleSize(c);typeof p=="number"&&(h=St.Invisible(p)),l.removeChild(c).dispose();const m=new De(a.orientation,this.proportionalLayout,this.styles,a.size,a.orthogonalSize,this.locked,this.margin);l.addChild(m,a.size,c);const y=new Ve(a.view,l.orientation,a.size);m.addChild(y,h,0),typeof n!="number"&&n.type==="split"&&(n={type:"split",index:0});const f=new Ve(e,l.orientation,a.size);m.addChild(f,n,o)}}remove(e,n){const i=_e(e.element);return this.removeView(i,n)}removeView(e,n){this.hasMaximizedView()&&this.exitMaximizedView();const[i,r]=un(e),[o,s]=this.getNode(i);if(!(s instanceof De))throw new Error("Invalid location");const a=s.children[r];if(!(a instanceof Ve))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 Ve||(s.removeChild(0,n),this.root=l),a.view;const[u,...c]=[...o].reverse(),[d,...h]=[...i].reverse(),p=s.isChildVisible(0);s.removeChild(0,n);const v=u.children.map((m,y)=>u.getChildSize(y));if(u.removeChild(d,n).dispose(),l instanceof De){v.splice(d,1,...l.children.map(m=>m.size));for(let m=0;m<l.children.length;m++){const y=l.children[m];u.addChild(y,y.size,d+m)}for(;l.children.length>0;)l.removeChild(0)}else{const m=new Ve(l.view,Qt(l.orientation),l.size),y=p?l.orthogonalSize:St.Invisible(l.orthogonalSize);u.addChild(m,y,d)}l.dispose();for(let m=0;m<v.length;m++)u.resizeChild(m,v[m]);return a.view}layout(e,n){const[i,r]=this.root.orientation===U.HORIZONTAL?[n,e]:[e,n];this.root.layout(i,r)}getNode(e,n=this.root,i=[]){if(e.length===0)return[i,n];if(!(n instanceof De))throw new Error("Invalid location");const[r,...o]=e;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 _u=Object.keys({disableAutoResizing:void 0,proportionalLayout:void 0,orientation:void 0,hideBorders:void 0,className:void 0});class Bd extends Z{get element(){return this._element}get disableResizing(){return this._disableResizing}set disableResizing(e){this._disableResizing=e}constructor(e,n=!1){super(),this._disableResizing=n,this._element=e,this.addDisposables(ca(this._element,i=>{if(this.isDisposed||this.disableResizing||!this._element.offsetParent||!bz(this._element))return;const{width:r,height:o}=i.contentRect;this.layout(r,o)}))}}const Lz=Wd();function Ms(t){switch(t){case"left":return"left";case"right":return"right";case"above":return"top";case"below":return"bottom";case"within":default:return"center"}}class Fg extends Bd{get id(){return this._id}get size(){return this._groups.size}get groups(){return Array.from(this._groups.values()).map(e=>e.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(e){this.gridview.locked=e}constructor(e,n){var i;super(document.createElement("div"),n.disableAutoResizing),this._id=Lz.next(),this._groups=new Map,this._onDidRemove=new E,this.onDidRemove=this._onDidRemove.event,this._onDidAdd=new E,this.onDidAdd=this._onDidAdd.event,this._onDidMaximizedChange=new E,this.onDidMaximizedChange=this._onDidMaximizedChange.event,this._onDidActiveChange=new E,this.onDidActiveChange=this._onDidActiveChange.event,this._bufferOnDidLayoutChange=new wp,this.onDidLayoutChange=this._bufferOnDidLayoutChange.onEvent,this._onDidViewVisibilityChangeMicroTaskQueue=new wp,this.onDidViewVisibilityChangeMicroTaskQueue=this._onDidViewVisibilityChangeMicroTaskQueue.onEvent,this.element.style.height="100%",this.element.style.width="100%",this._classNames=new ha(this.element),this._classNames.setClassNames((i=n.className)!==null&&i!==void 0?i:""),e.appendChild(this.element),this.gridview=new Oz(!!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)}),Ie.from(()=>{var r;(r=this.element.parentElement)===null||r===void 0||r.removeChild(this.element)}),this.gridview.onDidChange(()=>{this._bufferOnDidLayoutChange.fire()}),oi.any(this.onDidAdd,this.onDidRemove,this.onDidActiveChange)(()=>{this._bufferOnDidLayoutChange.fire()}),this._onDidMaximizedChange,this._onDidViewVisibilityChangeMicroTaskQueue,this._bufferOnDidLayoutChange)}setVisible(e,n){this.gridview.setViewVisible(_e(e.element),n),this._bufferOnDidLayoutChange.fire()}isVisible(e){return this.gridview.isViewVisible(_e(e.element))}updateOptions(e){var n,i,r,o;e.proportionalLayout,e.orientation&&(this.gridview.orientation=e.orientation),"disableResizing"in e&&(this.disableResizing=(n=e.disableAutoResizing)!==null&&n!==void 0?n:!1),"locked"in e&&(this.locked=(i=e.locked)!==null&&i!==void 0?i:!1),"margin"in e&&(this.gridview.margin=(r=e.margin)!==null&&r!==void 0?r:0),"className"in e&&this._classNames.setClassNames((o=e.className)!==null&&o!==void 0?o:"")}maximizeGroup(e){this.gridview.maximizeView(e),this.doSetGroupActive(e)}isMaximizedGroup(e){return this.gridview.maximizedView()===e}exitMaximizedGroup(){this.gridview.exitMaximizedView()}hasMaximizedGroup(){return this.gridview.hasMaximizedView()}doAddGroup(e,n=[0],i){this.gridview.addView(e,i??St.Distribute,n),this._onDidAdd.fire(e)}doRemoveGroup(e,n){if(!this._groups.has(e.id))throw new Error("invalid operation");const i=this._groups.get(e.id),r=this.gridview.remove(e,St.Distribute);if(i&&!(n!=null&&n.skipDispose)&&(i.disposable.dispose(),i.value.dispose(),this._groups.delete(e.id),this._onDidRemove.fire(e)),!(n!=null&&n.skipActive)&&this._activeGroup===e){const o=Array.from(this._groups.values());this.doSetGroupActive(o.length>0?o[0].value:void 0)}return r}getPanel(e){var n;return(n=this._groups.get(e))===null||n===void 0?void 0:n.value}doSetGroupActive(e){this._activeGroup!==e&&(this._activeGroup&&this._activeGroup.setActive(!1),e&&e.setActive(!0),this._activeGroup=e,this._onDidActiveChange.fire(e))}removeGroup(e){this.doRemoveGroup(e)}moveToNext(e){var n;if(e||(e={}),!e.group){if(!this.activeGroup)return;e.group=this.activeGroup}const i=_e(e.group.element),r=(n=this.gridview.next(i))===null||n===void 0?void 0:n.view;this.doSetGroupActive(r)}moveToPrevious(e){var n;if(e||(e={}),!e.group){if(!this.activeGroup)return;e.group=this.activeGroup}const i=_e(e.group.element),r=(n=this.gridview.previous(i))===null||n===void 0?void 0:n.view;this.doSetGroupActive(r)}layout(e,n,i){(i||e!==this.width||n!==this.height)&&(this.gridview.element.style.height=`${n}px`,this.gridview.element.style.width=`${e}px`,this.gridview.layout(e,n))}dispose(){this._onDidActiveChange.dispose(),this._onDidAdd.dispose(),this._onDidRemove.dispose();for(const e of this.groups)e.dispose();this.gridview.dispose(),super.dispose()}}class Gg{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(e){this.component=e}removePanel(e,n){this.component.removePanel(e,n)}focus(){this.component.focus()}getPanel(e){return this.component.getPanel(e)}layout(e,n){return this.component.layout(e,n)}addPanel(e){return this.component.addPanel(e)}movePanel(e,n){this.component.movePanel(e,n)}fromJSON(e){this.component.fromJSON(e)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}updateOptions(e){this.component.updateOptions(e)}dispose(){this.component.dispose()}}class ro{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(e){this.component=e}removePanel(e){this.component.removePanel(e)}getPanel(e){return this.component.getPanel(e)}movePanel(e,n){this.component.movePanel(e,n)}focus(){this.component.focus()}layout(e,n){this.component.layout(e,n)}addPanel(e){return this.component.addPanel(e)}fromJSON(e){this.component.fromJSON(e)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}updateOptions(e){this.component.updateOptions(e)}dispose(){this.component.dispose()}}class Hg{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(e){this.component.updateOptions({orientation:e})}constructor(e){this.component=e}focus(){this.component.focus()}layout(e,n,i=!1){this.component.layout(e,n,i)}addPanel(e){return this.component.addPanel(e)}removePanel(e,n){this.component.removePanel(e,n)}movePanel(e,n){this.component.movePanel(e,n)}getPanel(e){return this.component.getPanel(e)}fromJSON(e){return this.component.fromJSON(e)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}updateOptions(e){this.component.updateOptions(e)}dispose(){this.component.dispose()}}class Vs{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(e){this.component=e}focus(){this.component.focus()}getPanel(e){return this.component.getGroupPanel(e)}layout(e,n,i=!1){this.component.layout(e,n,i)}addPanel(e){return this.component.addPanel(e)}removePanel(e){this.component.removePanel(e)}addGroup(e){return this.component.addGroup(e)}closeAllGroups(){return this.component.closeAllGroups()}removeGroup(e){this.component.removeGroup(e)}getGroup(e){return this.component.getPanel(e)}addFloatingGroup(e,n){return this.component.addFloatingGroup(e,n)}fromJSON(e,n){this.component.fromJSON(e,n)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}moveToNext(e){this.component.moveToNext(e)}moveToPrevious(e){this.component.moveToPrevious(e)}maximizeGroup(e){this.component.maximizeGroup(e.group)}hasMaximizedGroup(){return this.component.hasMaximizedGroup()}exitMaximizedGroup(){this.component.exitMaximizedGroup()}get onDidMaximizedGroupChange(){return this.component.onDidMaximizedGroupChange}addPopoutGroup(e,n){return this.component.addPopoutGroup(e,n)}updateOptions(e){this.component.updateOptions(e)}dispose(){this.component.dispose()}}class jd extends Z{constructor(e,n){super(),this.el=e,this.disabled=n,this.dataDisposable=new Me,this.pointerEventsDisposable=new Me,this._onDragStart=new E,this.onDragStart=this._onDragStart.event,this.addDisposables(this._onDragStart,this.dataDisposable,this.pointerEventsDisposable),this.configure()}setDisabled(e){this.disabled=e}isCancelled(e){return!1}configure(){this.addDisposables(this._onDragStart,q(this.el,"dragstart",e=>{if(e.defaultPrevented||this.isCancelled(e)||this.disabled){e.preventDefault();return}const n=Ns();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(e),this._onDragStart.fire(e),e.dataTransfer&&(e.dataTransfer.effectAllowed="move",e.dataTransfer.items.length>0||e.dataTransfer.setData("text/plain",""))}),q(this.el,"dragend",()=>{this.pointerEventsDisposable.dispose(),setTimeout(()=>{this.dataDisposable.dispose()},0)}))}}class Wg extends Z{constructor(e,n){super(),this.element=e,this.callbacks=n,this.target=null,this.registerListeners()}onDragEnter(e){this.target=e.target,this.callbacks.onDragEnter(e)}onDragOver(e){e.preventDefault(),this.callbacks.onDragOver&&this.callbacks.onDragOver(e)}onDragLeave(e){this.target===e.target&&(this.target=null,this.callbacks.onDragLeave(e))}onDragEnd(e){this.target=null,this.callbacks.onDragEnd(e)}onDrop(e){this.callbacks.onDrop(e)}registerListeners(){this.addDisposables(q(this.element,"dragenter",e=>{this.onDragEnter(e)},!0)),this.addDisposables(q(this.element,"dragover",e=>{this.onDragOver(e)},!0)),this.addDisposables(q(this.element,"dragleave",e=>{this.onDragLeave(e)})),this.addDisposables(q(this.element,"dragend",e=>{this.onDragEnd(e)})),this.addDisposables(q(this.element,"drop",e=>{this.onDrop(e)}))}}function Rz(t,e){const{top:n,left:i,width:r,height:o}=e,s=`${Math.round(n)}px`,a=`${Math.round(i)}px`,l=`${Math.round(r)}px`,u=`${Math.round(o)}px`;t.style.top=s,t.style.left=a,t.style.width=l,t.style.height=u,t.style.visibility="visible",(!t.style.transform||t.style.transform==="")&&(t.style.transform="translate3d(0, 0, 0)")}function Nz(t,e){const{top:n,left:i,width:r,height:o}=e;t.style.top=n,t.style.left=i,t.style.width=r,t.style.height=o,t.style.visibility="visible",(!t.style.transform||t.style.transform==="")&&(t.style.transform="translate3d(0, 0, 0)")}function Mz(t,e){const{top:n,left:i,width:r,height:o}=e,s=`${Math.round(n)}px`,a=`${Math.round(i)}px`,l=`${Math.round(r)}px`,u=`${Math.round(o)}px`;return t.style.top!==s||t.style.left!==a||t.style.width!==l||t.style.height!==u}class Vz extends Hd{get nativeEvent(){return this.options.nativeEvent}get position(){return this.options.position}constructor(e){super(),this.options=e}}function _p(t){switch(t){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 '${t}'`)}}function Fz(t){switch(t){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 '${t}'`)}}const Gz={value:20,type:"percentage"},Hz={value:50,type:"percentage"},Wz=100,Bz=100;class Rt extends Z{get disabled(){return this._disabled}set disabled(e){this._disabled=e}get state(){return this._state}constructor(e,n){super(),this.element=e,this.options=n,this._onDrop=new E,this.onDrop=this._onDrop.event,this._onWillShowOverlay=new E,this.onWillShowOverlay=this._onWillShowOverlay.event,this._disabled=!1,this._acceptedTargetZonesSet=new Set(this.options.acceptedTargetZones),this.dnd=new Wg(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,c;Rt.ACTUAL_TARGET=this;const d=(o=(r=this.options).getOverrideTarget)===null||o===void 0?void 0:o.call(r);if(this._acceptedTargetZonesSet.size===0){if(d)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,v=h.offsetHeight;if(p===0||v===0)return;const m=i.currentTarget.getBoundingClientRect(),y=((u=i.clientX)!==null&&u!==void 0?u:0)-m.left,f=((c=i.clientY)!==null&&c!==void 0?c:0)-m.top,g=this.calculateQuadrant(this._acceptedTargetZonesSet,y,f,p,v);if(this.isAlreadyUsed(i)||g===null){this.removeDropTarget();return}if(!this.options.canDisplayOverlay(i,g)){if(d)return;this.removeDropTarget();return}const b=new Vz({nativeEvent:i,position:g});if(this._onWillShowOverlay.fire(b),b.defaultPrevented){this.removeDropTarget();return}this.markAsUsed(i),d||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,v),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&&Rt.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(e){this._acceptedTargetZonesSet=new Set(e)}setOverlayModel(e){this.options.overlayModel=e}dispose(){this.removeDropTarget(),super.dispose()}markAsUsed(e){e[Rt.USED_EVENT_ID]=!0}isAlreadyUsed(e){const n=e[Rt.USED_EVENT_ID];return typeof n=="boolean"&&n}toggleClasses(e,n,i){var r,o,s,a,l,u,c;const d=(o=(r=this.options).getOverrideTarget)===null||o===void 0?void 0:o.call(r);if(!d&&!this.overlayElement)return;const h=n<Wz,p=i<Bz,v=e==="left",m=e==="right",y=e==="top",f=e==="bottom",g=!h&&m,b=!h&&v,k=!p&&y,D=!p&&f;let x=1;const z=(a=(s=this.options.overlayModel)===null||s===void 0?void 0:s.size)!==null&&a!==void 0?a:Hz;if(z.type==="percentage"?x=be(z.value,0,100)/100:((g||b)&&(x=be(0,z.value,n)/n),(k||D)&&(x=be(0,z.value,i)/i)),d){const R=(c=(u=(l=this.options).getOverlayOutline)===null||u===void 0?void 0:u.call(l))!==null&&c!==void 0?c:this.element,S=R.getBoundingClientRect(),O=d.getElements(void 0,R),V=O.root,$=O.overlay,Q=V.getBoundingClientRect(),P=S.top-Q.top,N=S.left-Q.left,X={top:P,left:N,width:n,height:i};if(g?(X.left=N+n*(1-x),X.width=n*x):b?X.width=n*x:k?X.height=i*x:D&&(X.top=P+i*(1-x),X.height=i*x),h&&v&&(X.width=4),h&&m&&(X.left=N+n-4,X.width=4),!Mz($,X))return;Rz($,X),$.className=`dv-drop-target-anchor${this.options.className?` ${this.options.className}`:""}`,B($,"dv-drop-target-left",v),B($,"dv-drop-target-right",m),B($,"dv-drop-target-top",y),B($,"dv-drop-target-bottom",f),B($,"dv-drop-target-center",e==="center"),O.changed&&(B($,"dv-drop-target-anchor-container-changed",!0),setTimeout(()=>{B($,"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-x)}%`,C.width=`${100*x}%`):b?C.width=`${100*x}%`:k?C.height=`${100*x}%`:D&&(C.top=`${100*(1-x)}%`,C.height=`${100*x}%`),Nz(this.overlayElement,C),B(this.overlayElement,"dv-drop-target-small-vertical",p),B(this.overlayElement,"dv-drop-target-small-horizontal",h),B(this.overlayElement,"dv-drop-target-left",v),B(this.overlayElement,"dv-drop-target-right",m),B(this.overlayElement,"dv-drop-target-top",y),B(this.overlayElement,"dv-drop-target-bottom",f),B(this.overlayElement,"dv-drop-target-center",e==="center")}calculateQuadrant(e,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:Gz;return l.type==="percentage"?jz(e,n,i,r,o,l.value):Uz(e,n,i,r,o,l.value)}removeDropTarget(){var e;this.targetElement&&(this._state=void 0,(e=this.targetElement.parentElement)===null||e===void 0||e.classList.remove("dv-drop-target"),this.targetElement.remove(),this.targetElement=void 0,this.overlayElement=void 0)}}Rt.USED_EVENT_ID="__dockview_droptarget_event_is_used__";function jz(t,e,n,i,r,o){const s=100*e/i,a=100*n/r;return t.has("left")&&s<o?"left":t.has("right")&&s>100-o?"right":t.has("top")&&a<o?"top":t.has("bottom")&&a>100-o?"bottom":t.has("center")?"center":null}function Uz(t,e,n,i,r,o){return t.has("left")&&e<o?"left":t.has("right")&&e>i-o?"right":t.has("top")&&n<o?"top":t.has("bottom")&&n>r-o?"bottom":t.has("center")?"center":null}const ku=Object.keys({disableAutoResizing:void 0,disableDnd:void 0,className:void 0});class $z extends Og{constructor(e,n,i,r){super(),this.nativeEvent=e,this.position=n,this.getData=i,this.panel=r}}class Bg extends Hd{constructor(){super()}}class jg extends Z{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(e,n){super(),this.id=e,this.component=n,this._isFocused=!1,this._isActive=!1,this._isVisible=!0,this._width=0,this._height=0,this._parameters={},this.panelUpdatesDisposable=new Me,this._onDidDimensionChange=new E,this.onDidDimensionsChange=this._onDidDimensionChange.event,this._onDidChangeFocus=new E,this.onDidFocusChange=this._onDidChangeFocus.event,this._onWillFocus=new E,this.onWillFocus=this._onWillFocus.event,this._onDidVisibilityChange=new E,this.onDidVisibilityChange=this._onDidVisibilityChange.event,this._onWillVisibilityChange=new E,this.onWillVisibilityChange=this._onWillVisibilityChange.event,this._onDidActiveChange=new E,this.onDidActiveChange=this._onDidActiveChange.event,this._onActiveChange=new E,this.onActiveChange=this._onActiveChange.event,this._onDidParametersChange=new E,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(e){this.panelUpdatesDisposable.value=this._onDidParametersChange.event(n=>{this._parameters=n,e.update({params:n})})}setVisible(e){this._onWillVisibilityChange.fire({isVisible:e})}setActive(){this._onActiveChange.fire()}updateParameters(e){this._onDidParametersChange.fire(e)}}class Ug extends jg{constructor(e,n){super(e,n),this._onDidConstraintsChangeInternal=new E,this.onDidConstraintsChangeInternal=this._onDidConstraintsChangeInternal.event,this._onDidConstraintsChange=new E({replay:!0}),this.onDidConstraintsChange=this._onDidConstraintsChange.event,this._onDidSizeChange=new E,this.onDidSizeChange=this._onDidSizeChange.event,this.addDisposables(this._onDidConstraintsChangeInternal,this._onDidConstraintsChange,this._onDidSizeChange)}setConstraints(e){this._onDidConstraintsChangeInternal.fire(e)}setSize(e){this._onDidSizeChange.fire(e)}}class Yz extends Ug{set pane(e){this._pane=e}constructor(e,n){super(e,n),this._onDidExpansionChange=new E({replay:!0}),this.onDidExpansionChange=this._onDidExpansionChange.event,this._onMouseEnter=new E({}),this.onMouseEnter=this._onMouseEnter.event,this._onMouseLeave=new E({}),this.onMouseLeave=this._onMouseLeave.event,this.addDisposables(this._onDidExpansionChange,this._onMouseEnter,this._onMouseLeave)}setExpanded(e){var n;(n=this._pane)===null||n===void 0||n.setExpanded(e)}get isExpanded(){var e;return!!(!((e=this._pane)===null||e===void 0)&&e.isExpanded())}}class Ud extends Z{get element(){return this._element}get width(){return this._width}get height(){return this._height}get params(){var e;return(e=this._params)===null||e===void 0?void 0:e.params}constructor(e,n,i){super(),this.id=e,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=Lg(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 e=new Bg;this.api._onWillFocus.fire(e),!e.defaultPrevented&&this._element.focus()}layout(e,n){this._width=e,this._height=n,this.api._onDidDimensionChange.fire({width:e,height:n}),this.part&&this._params&&this.part.update(this._params.params)}init(e){this._params=e,this.part=this.getComponent()}update(e){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),e.params)});for(const r of Object.keys(e.params))e.params[r]===void 0&&delete this._params.params[r];(i=this.part)===null||i===void 0||i.update({params:this._params.params})}toJSON(){var e,n;const i=(n=(e=this._params)===null||e===void 0?void 0:e.params)!==null&&n!==void 0?n:{};return{id:this.id,component:this.component,params:Object.keys(i).length>0?i:void 0}}dispose(){var e;this.api.dispose(),(e=this.part)===null||e===void 0||e.dispose(),super.dispose()}}class Qz extends Ud{set orientation(e){this._orientation=e}get orientation(){return this._orientation}get minimumSize(){const e=this.headerSize,i=this.isExpanded()?this._minimumBodySize:0;return e+i}get maximumSize(){const e=this.headerSize,i=this.isExpanded()?this._maximumBodySize:0;return e+i}get size(){return this._size}get orthogonalSize(){return this._orthogonalSize}set orthogonalSize(e){this._orthogonalSize=e}get minimumBodySize(){return this._minimumBodySize}set minimumBodySize(e){this._minimumBodySize=typeof e=="number"?e:0}get maximumBodySize(){return this._maximumBodySize}set maximumBodySize(e){this._maximumBodySize=typeof e=="number"?e:Number.POSITIVE_INFINITY}get headerVisible(){return this._headerVisible}set headerVisible(e){this._headerVisible=e,this.header.style.display=e?"":"none"}constructor(e){super(e.id,e.component,new Yz(e.id,e.component)),this._onDidChangeExpansionState=new E({replay:!0}),this.onDidChangeExpansionState=this._onDidChangeExpansionState.event,this._onDidChange=new E,this.onDidChange=this._onDidChange.event,this._orthogonalSize=0,this._size=0,this._isExpanded=!1,this.api.pane=this,this.api.initialize(this),this.headerSize=e.headerSize,this.headerComponent=e.headerComponent,this._minimumBodySize=e.minimumBodySize,this._maximumBodySize=e.maximumBodySize,this._isExpanded=e.isExpanded,this._headerVisible=e.isHeaderVisible,this._onDidChangeExpansionState.fire(this.isExpanded()),this._orientation=e.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})}),q(this.element,"mouseenter",n=>{this.api._onMouseEnter.fire(n)}),q(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?Ht(this.header,"focused"):Gt(this.header,"focused"))})),this.renderOnce()}setVisible(e){this.api._onDidVisibilityChange.fire({isVisible:e})}setActive(e){this.api._onDidActiveChange.fire({isActive:e})}isExpanded(){return this._isExpanded}setExpanded(e){this._isExpanded!==e&&(this._isExpanded=e,e?(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(e?{size:this.width}:{}),this._onDidChangeExpansionState.fire(e))}layout(e,n){this._size=e,this._orthogonalSize=n;const[i,r]=this.orientation===U.HORIZONTAL?[e,n]:[n,e];super.layout(i,r)}init(e){var n,i;super.init(e),typeof e.minimumBodySize=="number"&&(this.minimumBodySize=e.minimumBodySize),typeof e.maximumBodySize=="number"&&(this.maximumBodySize=e.maximumBodySize),this.bodyPart=this.getBodyComponent(),this.headerPart=this.getHeaderComponent(),this.bodyPart.init(Object.assign(Object.assign({},e),{api:this.api})),this.headerPart.init(Object.assign(Object.assign({},e),{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 e.isExpanded=="boolean"&&this.setExpanded(e.isExpanded)}toJSON(){const e=this._params;return Object.assign(Object.assign({},super.toJSON()),{headerComponent:this.headerComponent,title:e.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:e=>{var n,i;(n=this.bodyPart)===null||n===void 0||n.update({params:e}),(i=this.headerPart)===null||i===void 0||i.update({params:e})},dispose:()=>{var e,n;(e=this.bodyPart)===null||e===void 0||e.dispose(),(n=this.headerPart)===null||n===void 0||n.dispose()}}}}class Jz extends Qz{constructor(e){super({id:e.id,component:e.component,headerComponent:e.headerComponent,orientation:e.orientation,isExpanded:e.isExpanded,isHeaderVisible:!0,headerSize:e.headerSize,minimumBodySize:e.minimumBodySize,maximumBodySize:e.maximumBodySize}),this._onDidDrop=new E,this.onDidDrop=this._onDidDrop.event,this._onUnhandledDragOverEvent=new E,this.onUnhandledDragOverEvent=this._onUnhandledDragOverEvent.event,this.accessor=e.accessor,this.addDisposables(this._onDidDrop,this._onUnhandledDragOverEvent),e.disableDnd||this.initDragFeatures()}initDragFeatures(){if(!this.header)return;const e=this.id,n=this.accessor.id;this.header.draggable=!0,this.handler=new class extends jd{getData(){return Xt.getInstance().setData([new Rr(n,e)],Rr.prototype),{dispose:()=>{Xt.getInstance().clearData(Rr.prototype)}}}}(this.header),this.target=new Rt(this.element,{acceptedTargetZones:["top","bottom"],overlayModel:{activationSize:{type:"percentage",value:50}},canDisplayOverlay:(i,r)=>{const o=br();if(o&&o.paneId!==this.id&&o.viewId===this.accessor.id)return!0;const s=new $z(i,r,br,this);return this._onUnhandledDragOverEvent.fire(s),s.isAccepted}}),this.addDisposables(this._onDidDrop,this.handler,this.target,this.target.onDrop(i=>{this.onDrop(i)}))}onDrop(e){const n=br();if(!n||n.viewId!==this.accessor.id){this._onDidDrop.fire(Object.assign(Object.assign({},e),{panel:this,api:new ro(this.accessor),getData:br}));return}const i=this._params.containerApi,r=n.paneId,o=i.getPanel(r);if(!o){this._onDidDrop.fire(Object.assign(Object.assign({},e),{panel:this,getData:br,api:new ro(this.accessor)}));return}const s=i.panels,a=s.indexOf(o);let l=i.panels.indexOf(this);(e.position==="left"||e.position==="top")&&(l=Math.max(0,l-1)),(e.position==="right"||e.position==="bottom")&&(a>l&&l++,l=Math.min(s.length-1,l)),i.movePanel(a,l)}}class Zz extends Z{get element(){return this._element}constructor(e,n){super(),this.accessor=e,this.group=n,this.disposable=new Me,this._onDidFocus=new E,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new E,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 Rt(this.element,{getOverlayOutline:()=>{var r;return((r=e.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=We();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(e,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=e;let r;switch(e.api.renderer){case"onlyWhenVisible":this.group.renderContainer.detatch(e),this.panel&&i&&this._element.appendChild(this.panel.view.content.element),r=this._element;break;case"always":e.view.content.element.parentElement===this._element&&this._element.removeChild(e.view.content.element),r=this.group.renderContainer.attach({panel:e,referenceContainer:this});break;default:throw new Error(`dockview: invalid renderer type '${e.api.renderer}'`)}if(i){const o=Lg(r);this.focusTracker=o;const s=new Z;s.addDisposables(o,o.onDidFocus(()=>this._onDidFocus.fire()),o.onDidBlur(()=>this._onDidBlur.fire())),this.disposable.value=s}}openPanel(e){this.panel!==e&&this.renderPanel(e)}layout(e,n){}closePanel(){var e;this.panel&&this.panel.api.renderer==="onlyWhenVisible"&&((e=this.panel.view.content.element.parentElement)===null||e===void 0||e.removeChild(this.panel.view.content.element)),this.panel=void 0}dispose(){this.disposable.dispose(),super.dispose()}refreshFocusState(){var e;!((e=this.focusTracker)===null||e===void 0)&&e.refreshState&&this.focusTracker.refreshState()}}function $g(t,e,n){var i,r;Ht(e,"dv-dragged"),e.style.top="-9999px",document.body.appendChild(e),t.setDragImage(e,(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(()=>{Gt(e,"dv-dragged"),e.remove()},0)}class Xz extends jd{constructor(e,n,i,r,o){super(e,o),this.accessor=n,this.group=i,this.panel=r,this.panelTransfer=Xt.getInstance()}getData(e){return this.panelTransfer.setData([new Mn(this.accessor.id,this.group.id,this.panel.id)],Mn.prototype),{dispose:()=>{this.panelTransfer.clearData(Mn.prototype)}}}}class qz extends Z{get element(){return this._element}constructor(e,n,i){super(),this.panel=e,this.accessor=n,this.group=i,this.content=void 0,this._onPointDown=new E,this.onPointerDown=this._onPointDown.event,this._onDropped=new E,this.onDrop=this._onDropped.event,this._onDragStart=new E,this.onDragStart=this._onDragStart.event,this._onDragEnd=new E,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,B(this.element,"dv-inactive-tab",!0),this.dragHandler=new Xz(this._element,this.accessor,this.group,this.panel,!!this.accessor.options.disableDnd),this.dropTarget=new Rt(this._element,{acceptedTargetZones:["left","right"],overlayModel:{activationSize:{value:50,type:"percentage"}},canDisplayOverlay:(r,o)=>{if(this.group.locked)return!1;const s=We();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",$g(r.dataTransfer,s,{y:-10,x:30})}this._onDragStart.fire(r),this.accessor.options.tabAnimation==="smooth"&&requestAnimationFrame(()=>{B(this.element,"dv-tab--dragging",!0)})}),q(this._element,"dragend",r=>{B(this.element,"dv-tab--dragging",!1),this._onDragEnd.fire(r)}),this.dragHandler,q(this._element,"pointerdown",r=>{this._onPointDown.fire(r)}),this.dropTarget.onDrop(r=>{this._onDropped.fire(r)}),this.dropTarget)}setActive(e){B(this.element,"dv-active-tab",e),B(this.element,"dv-inactive-tab",!e)}setContent(e){this.content&&this._element.removeChild(this.content.element),this.content=e,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 pa{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(e,n){this.event=e,this.options=n}}class Kz extends jd{constructor(e,n,i,r){super(e,r),this.accessor=n,this.group=i,this.panelTransfer=Xt.getInstance(),this.addDisposables(q(e,"pointerdown",o=>{o.shiftKey&&mz(o)},!0))}isCancelled(e){return this.group.api.location.type==="floating"&&!e.shiftKey}getData(e){const n=e.dataTransfer;this.panelTransfer.setData([new Mn(this.accessor.id,this.group.id,null)],Mn.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})`,$g(n,s,{y:-10,x:30})}return{dispose:()=>{this.panelTransfer.clearData(Mn.prototype)}}}}class eE extends Z{get element(){return this._element}constructor(e,n){super(),this.accessor=e,this.group=n,this._onDrop=new E,this.onDrop=this._onDrop.event,this._onDragStart=new E,this.onDragStart=this._onDragStart.event,this._element=document.createElement("div"),this._element.className="dv-void-container",this._element.draggable=!this.accessor.options.disableDnd,B(this._element,"dv-draggable",!this.accessor.options.disableDnd),this.addDisposables(this._onDrop,this._onDragStart,q(this._element,"pointerdown",()=>{this.accessor.doSetGroupActive(this.group)})),this.handler=new Kz(this._element,e,n,!!this.accessor.options.disableDnd),this.dropTarget=new Rt(this._element,{acceptedTargetZones:["center"],canDisplayOverlay:(i,r)=>{const o=We();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,B(this._element,"dv-draggable",!this.accessor.options.disableDnd),this.handler.setDisabled(!!this.accessor.options.disableDnd)}}class fa extends Z{get element(){return this._element}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._scrollOffset=0,this._orientation=e,Gt(this._scrollbar,"dv-scrollbar-vertical","dv-scrollbar-horizontal"),e==="vertical"?Ht(this._scrollbar,"dv-scrollbar-vertical"):Ht(this._scrollbar,"dv-scrollbar-horizontal"))}constructor(e){super(),this.scrollableElement=e,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(e),this.element.appendChild(this._scrollbar),this.addDisposables(q(this.element,"wheel",n=>{this._scrollOffset+=n.deltaY*fa.MouseWheelSpeed,this.calculateScrollbarStyles()}),q(this._scrollbar,"pointerdown",n=>{n.preventDefault(),B(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,c=this._orientation==="horizontal"?this.scrollableElement.scrollWidth:this.scrollableElement.scrollHeight,d=u/c;this._scrollOffset=r+l/d,this.calculateScrollbarStyles()},s=()=>{B(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)}),q(this.element,"scroll",()=>{this.calculateScrollbarStyles()}),q(this.scrollableElement,"scroll",()=>{this._scrollOffset=this._orientation==="horizontal"?this.scrollableElement.scrollLeft:this.scrollableElement.scrollTop,this.calculateScrollbarStyles()}),ca(this.element,()=>{B(this.element,"dv-scrollable-resizing",!0),this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(()=>{clearTimeout(this._animationTimer),B(this.element,"dv-scrollable-resizing",!1)},500),this.calculateScrollbarStyles()}))}calculateScrollbarStyles(){const e=this._orientation==="horizontal"?this.element.clientWidth:this.element.clientHeight,n=this._orientation==="horizontal"?this.scrollableElement.scrollWidth:this.scrollableElement.scrollHeight;if(n>e){const r=e*(e/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=be(this._scrollOffset,0,n-e),this._orientation==="horizontal"?this.scrollableElement.scrollLeft=this._scrollOffset:this.scrollableElement.scrollTop=this._scrollOffset;const o=this._scrollOffset/(n-e);this._orientation==="horizontal"?(this._scrollbar.style.left=`${(e-r)*o}px`,this._scrollbar.style.top=""):(this._scrollbar.style.top=`${(e-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}}fa.MouseWheelSpeed=1;class tE extends Z{get showTabsOverflowControl(){return this._showTabsOverflowControl}set showTabsOverflowControl(e){if(this._showTabsOverflowControl!=e&&(this._showTabsOverflowControl=e,e)){const n=new fz(this._tabsList);this._observerDisposable.value=new Z(n,n.onDidChange(i=>{const r=i.hasScrollX||i.hasScrollY;this.toggleDropdown({reset:!r})}),q(this._tabsList,"scroll",()=>{this.toggleDropdown({reset:!1})}))}}get element(){return this._element}get panels(){return this._tabs.map(e=>e.value.panel.id)}get size(){return this._tabs.length}get tabs(){return this._tabs.map(e=>e.value)}get direction(){return this._direction}set direction(e){this._direction!==e&&(this._direction=e,this._scrollbar&&(this._scrollbar.orientation=e),Gt(this._tabsList,"dv-horizontal","dv-vertical"),e==="vertical"?Ht(this._tabsList,"dv-tabs-container-vertical","dv-vertical"):(Gt(this._tabsList,"dv-tabs-container-vertical"),Ht(this._tabsList,"dv-horizontal")))}constructor(e,n,i){super(),this.group=e,this.accessor=n,this._observerDisposable=new Me,this._scrollbar=null,this._tabs=[],this.selectedIndex=-1,this._showTabsOverflowControl=!1,this._direction="horizontal",this._animState=null,this._onTabDragStart=new E,this.onTabDragStart=this._onTabDragStart.event,this._onDrop=new E,this.onDrop=this._onDrop.event,this._onWillShowOverlay=new E,this.onWillShowOverlay=this._onWillShowOverlay.event,this._onOverflowTabsChange=new E,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 fa(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,q(this.element,"pointerdown",r=>{if(r.defaultPrevented)return;r.button===0&&this.accessor.doSetGroupActive(this.group)}),q(this._tabsList,"dragover",r=>{if(!this._animState){if(this.accessor.options.tabAnimation!=="smooth"||this.accessor.options.disableDnd)return;const o=We();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),q(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),q(this._tabsList,"dragend",()=>{this.resetDragAnimation()}),q(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),Ie.from(()=>{this.resetDragAnimation();for(const{value:r,disposable:o}of this._tabs)o.dispose(),r.dispose();this._tabs=[]}))}indexOf(e){return this._tabs.findIndex(n=>n.value.panel.id===e)}isActive(e){return this.selectedIndex>-1&&this._tabs[this.selectedIndex].value===e}setActivePanel(e){let n=0;for(const i of this._tabs){const r=e.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(e,n=this._tabs.length){if(this._tabs.find(s=>s.value.panel.id===e.id))return;const i=new qz(e,this.accessor,this.group);i.setContent(e.view.tab);const r=new Z(i.onDragStart(s=>{this._onTabDragStart.fire({nativeEvent:s,panel:e}),this.accessor.options.tabAnimation==="smooth"&&(this._animState={sourceTabId:e.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:c,left:d}=i.element.getBoundingClientRect(),{top:h,left:p}=this.accessor.element.getBoundingClientRect();this.accessor.addFloatingGroup(u,{x:d-p,y:c-h,inDragMode:!0});return}switch(s.button){case 0:this.group.activePanel!==e&&this.group.model.openPanel(e);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 pa(s,{kind:"tab",panel:this.group.activePanel,api:this.accessor.api,group:this.group,getData:We}))})),o={value:i,disposable:r};this.addTab(o,n),this._animState&&(this._animState.tabPositions=this.snapshotTabPositions(),this.applyDragOverTransforms())}delete(e){var n;((n=this._animState)===null||n===void 0?void 0:n.sourceTabId)===e&&(this.resetTabTransforms(),this._animState=null);const i=this.indexOf(e),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(e,n=this._tabs.length){if(n<0||n>this._tabs.length)throw new Error("invalid location");this._tabsList.insertBefore(e.value.element,this._tabsList.children[n]),this._tabs=[...this._tabs.slice(0,n),e,...this._tabs.slice(n)],this.selectedIndex<0&&(this.selectedIndex=n)}toggleDropdown(e){const n=e.reset?[]:this._tabs.filter(i=>!_z(i.value.element,this._tabsList)).map(i=>i.value.panel.id);this._onOverflowTabsChange.fire({tabs:n,reset:e.reset})}updateDragAndDropState(){for(const e of this._tabs)e.value.updateDragAndDropState()}snapshotTabPositions(){const e=new Map;for(const n of this._tabs)e.set(n.value.panel.id,n.value.element.getBoundingClientRect());return e}getAverageTabWidth(){if(this._tabs.length===0)return 0;let e=0;for(const n of this._tabs)e+=n.value.element.getBoundingClientRect().width;return e/this._tabs.length}handleDragOver(e){if(!this._animState)return;const n=e.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 e=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>=e)s.element.style.marginLeft=`${i}px`,B(s.element,"dv-tab--shifting",!0),r=!0;else if(s.element.style.marginLeft){s.element.style.marginLeft="0px",B(s.element,"dv-tab--shifting",!0);const a=()=>{s.element.style.removeProperty("margin-left"),B(s.element,"dv-tab--shifting",!1),s.element.removeEventListener("transitionend",a)};s.element.addEventListener("transitionend",a)}else B(s.element,"dv-tab--shifting",!1)}}resetTabTransforms(){for(const e of this._tabs)e.value.element.style.removeProperty("margin-left"),e.value.element.style.removeProperty("transform"),B(e.value.element,"dv-tab--shifting",!1)}resetDragAnimation(){this.resetTabTransforms(),this._animState=null;for(const e of this._tabs)B(e.value.element,"dv-tab--dragging",!1)}runFlipAnimation(e,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)`,B(a.value.element,"dv-tab--shifting",!0),o=!0}continue}if(r!==void 0&&(s<r.from||s>r.to))continue;const u=e.get(l);if(!u)continue;const c=a.value.element.getBoundingClientRect(),d=u.left-c.left;Math.abs(d)<1||(a.value.element.style.transform=`translateX(${d}px)`,B(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)B(l.value.element,"dv-tab--shifting",!1)}};this._tabsList.addEventListener("transitionend",s)})}}const $d=t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"height",t.height),e.setAttributeNS(null,"width",t.width),e.setAttributeNS(null,"viewBox",t.viewbox),e.setAttributeNS(null,"aria-hidden","false"),e.setAttributeNS(null,"focusable","false"),e.classList.add("dv-svg");const n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d",t.path),e.appendChild(n),e},nE=()=>$d({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"}),iE=()=>$d({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"}),Yg=()=>$d({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 rE(){const t=document.createElement("div");t.className="dv-tabs-overflow-dropdown-default";const e=document.createElement("span");e.textContent="";const n=Yg();return t.appendChild(n),t.appendChild(e),{element:t,update:i=>{e.textContent=`${i.tabs}`}}}class oE extends Z{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(e){this._hidden=e,this.element.style.display=e?"none":""}get direction(){return this._direction}set direction(e){this._direction=e,e==="vertical"?(Ht(this._element,"dv-groupview-header-vertical"),Ht(this.rightActionsContainer,"dv-right-actions-container-vertical"),this.tabs.direction=e):(Gt(this._element,"dv-groupview-header-vertical"),Gt(this.rightActionsContainer,"dv-right-actions-container-vertical"),this.tabs.direction=e)}get element(){return this._element}constructor(e,n){super(),this.accessor=e,this.group=n,this._hidden=!1,this._direction="horizontal",this.dropdownPart=null,this._overflowTabs=[],this._dropdownDisposable=new Me,this._onDrop=new E,this.onDrop=this._onDrop.event,this._onGroupDragStart=new E,this.onGroupDragStart=this._onGroupDragStart.event,this._onWillShowOverlay=new E,this.onWillShowOverlay=this._onWillShowOverlay.event,this._element=document.createElement("div"),this._element.className="dv-tabs-and-actions-container",B(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 tE(n,e,{showTabsOverflowControl:!e.options.disableTabsOverflowList}),this.voidContainer=new eE(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)),e.onDidOptionsChange(()=>{this.tabs.showTabsOverflowControl=!e.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 pa(i,{kind:"header_space",panel:this.group.activePanel,api:this.accessor.api,group:this.group,getData:We}))}),q(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(e){this.rightActions!==e&&(this.rightActions&&(this.rightActions.remove(),this.rightActions=void 0),e&&(this.rightActionsContainer.appendChild(e),this.rightActions=e))}setLeftActionsElement(e){this.leftActions!==e&&(this.leftActions&&(this.leftActions.remove(),this.leftActions=void 0),e&&(this.leftActionsContainer.appendChild(e),this.leftActions=e))}setPrefixActionsElement(e){this.preActions!==e&&(this.preActions&&(this.preActions.remove(),this.preActions=void 0),e&&(this.preActionsContainer.appendChild(e),this.preActions=e))}isActive(e){return this.tabs.isActive(e)}indexOf(e){return this.tabs.indexOf(e)}setActive(e){}delete(e){this.tabs.delete(e),this.updateClassnames()}setActivePanel(e){this.tabs.setActivePanel(e)}openPanel(e,n=this.tabs.size){this.tabs.openPanel(e,n),this.updateClassnames()}closePanel(e){this.delete(e.id)}updateClassnames(){B(this._element,"dv-single-tab",this.size===1)}toggleDropdown(e){const n=e.reset?[]:e.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=rE();r.update({tabs:n.length}),this.dropdownPart=r,i.appendChild(r.element),this.rightActionsContainer.prepend(i),this._dropdownDisposable.value=new Z(Ie.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}),q(i,"pointerdown",o=>{o.preventDefault()},{capture:!0}),q(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),d=u.view.createTabRenderer("headerOverflow").element,h=document.createElement("div");B(h,"dv-tab",!0),B(h,"dv-active-tab",u.api.isActive),B(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(d),s.appendChild(h)}const a=Dz(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 Qg extends Og{constructor(e,n,i,r,o){super(),this.nativeEvent=e,this.target=n,this.position=i,this.getData=r,this.group=o}}const Su=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 sE(t){return!!t.referencePanel}function aE(t){return!!t.referenceGroup}function lE(t){return!!t.referencePanel}function uE(t){return!!t.referenceGroup}class Yd extends Hd{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(e){super(),this.options=e}getData(){return this.options.getData()}}class Jg extends Yd{get kind(){return this._kind}constructor(e){super(e),this._kind=e.kind}}class dE extends Z{get element(){throw new Error("dockview: not supported")}get activePanel(){return this._activePanel}get locked(){return this._locked}set locked(e){this._locked=e,B(this.container,"dv-locked-groupview",e==="no-drop-target"||e)}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?mu(document.activeElement,this.contentContainer.element):!1}get headerPosition(){var e;return(e=this._headerPosition)!==null&&e!==void 0?e:"top"}set headerPosition(e){var n;this._headerPosition=e,Gt(this.container,"dv-groupview-header-top","dv-groupview-header-bottom","dv-groupview-header-left","dv-groupview-header-right"),Ht(this.container,`dv-groupview-header-${e}`);const i=e==="top"||e==="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(e){switch(this._location=e,B(this.container,"dv-groupview-floating",!1),B(this.container,"dv-groupview-popout",!1),e.type){case"grid":this.contentContainer.dropTarget.setTargetZones(["top","bottom","left","right","center"]);break;case"floating":this.contentContainer.dropTarget.setTargetZones(["center"]),this.contentContainer.dropTarget.setTargetZones(e?["center"]:["top","bottom","left","right","center"]),B(this.container,"dv-groupview-floating",!0);break;case"popout":this.contentContainer.dropTarget.setTargetZones(["center"]),B(this.container,"dv-groupview-popout",!0);break}this.groupPanel.api._onDidLocationChange.fire({location:this.location})}constructor(e,n,i,r,o){var s,a;super(),this.container=e,this.accessor=n,this.id=i,this.options=r,this.groupPanel=o,this._isGroupActive=!1,this._locked=!1,this._rightHeaderActionsDisposable=new Me,this._leftHeaderActionsDisposable=new Me,this._prefixHeaderActionsDisposable=new Me,this._location={type:"grid"},this.mostRecentlyUsed=[],this._overwriteRenderContainer=null,this._overwriteDropTargetContainer=null,this._onDidChange=new E,this.onDidChange=this._onDidChange.event,this._width=0,this._height=0,this._panels=[],this._panelDisposables=new Map,this._onMove=new E,this.onMove=this._onMove.event,this._onDidDrop=new E,this.onDidDrop=this._onDidDrop.event,this._onWillDrop=new E,this.onWillDrop=this._onWillDrop.event,this._onWillShowOverlay=new E,this.onWillShowOverlay=this._onWillShowOverlay.event,this._onTabDragStart=new E,this.onTabDragStart=this._onTabDragStart.event,this._onGroupDragStart=new E,this.onGroupDragStart=this._onGroupDragStart.event,this._onDidAddPanel=new E,this.onDidAddPanel=this._onDidAddPanel.event,this._onDidPanelTitleChange=new E,this.onDidPanelTitleChange=this._onDidPanelTitleChange.event,this._onDidPanelParametersChange=new E,this.onDidPanelParametersChange=this._onDidPanelParametersChange.event,this._onDidRemovePanel=new E,this.onDidRemovePanel=this._onDidRemovePanel.event,this._onDidActivePanelChange=new E,this.onDidActivePanelChange=this._onDidActivePanelChange.event,this._onUnhandledDragOverEvent=new E,this.onUnhandledDragOverEvent=this._onUnhandledDragOverEvent.event,B(this.container,"dv-groupview",!0),this._api=new Vs(this.accessor),this.tabsContainer=new oE(this.accessor,this.groupPanel),this.contentContainer=new Zz(this.accessor,this),e.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 pa(l,{kind:"content",panel:this.activePanel,api:this._api,group:this.groupPanel,getData:We}))}),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(e){this.panels.forEach(n=>{this.renderContainer.detatch(n)}),this._overwriteRenderContainer=e,this.panels.forEach(n=>{this.rerender(n)})}get renderContainer(){var e;return(e=this._overwriteRenderContainer)!==null&&e!==void 0?e:this.accessor.overlayRenderContainer}set dropTargetContainer(e){this._overwriteDropTargetContainer=e}get dropTargetContainer(){var e;return(e=this._overwriteDropTargetContainer)!==null&&e!==void 0?e:this.accessor.rootDropTargetContainer}initialize(){this.options.panels&&this.options.panels.forEach(e=>{this.doAddPanel(e)}),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(e){this.contentContainer.renderPanel(e,{asActive:!1})}indexOf(e){return this.tabsContainer.indexOf(e.id)}toJSON(){var e;const n={views:this.tabsContainer.panels,activeView:(e=this._activePanel)===null||e===void 0?void 0:e.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(e){e||(e={}),e.panel||(e.panel=this.activePanel);const n=e.panel?this.panels.indexOf(e.panel):-1;let i;if(n<this.panels.length-1)i=n+1;else if(!e.suppressRoll)i=0;else return;this.openPanel(this.panels[i])}moveToPrevious(e){if(e||(e={}),e.panel||(e.panel=this.activePanel),!e.panel)return;const n=this.panels.indexOf(e.panel);let i;if(n>0)i=n-1;else if(!e.suppressRoll)i=this.panels.length-1;else return;this.openPanel(this.panels[i])}containsPanel(e){return this.panels.includes(e)}init(e){}update(e){}focus(){var e;(e=this._activePanel)===null||e===void 0||e.focus()}openPanel(e,n={}){(typeof n.index!="number"||n.index>this.panels.length)&&(n.index=this.panels.length);const i=!!n.skipSetActive;if(e.updateParentGroup(this.groupPanel,{skipSetActive:n.skipSetActive}),this.doAddPanel(e,n.index,{skipSetActive:i}),this._activePanel===e){this.contentContainer.renderPanel(e,{asActive:!0});return}i||this.doSetActivePanel(e),n.skipSetGroupActive||this.accessor.doSetGroupActive(this.groupPanel),n.skipSetActive||this.updateContainer()}removePanel(e,n={skipSetActive:!1}){const i=typeof e=="string"?e:e.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 e=[...this.panels];for(const n of e)this.doClose(n)}else this.accessor.removeGroup(this.groupPanel)}closePanel(e){this.doClose(e)}doClose(e){const n=this.panels.length===1&&this.accessor.groups.length===1;this.accessor.removePanel(e,n&&this.accessor.options.noPanelsOverlay==="emptyGroup"?{removeEmptyGroup:!1}:void 0)}isPanelActive(e){return this._activePanel===e}updateActions(e){this.tabsContainer.setRightActionsElement(e)}setActive(e,n=!1){!n&&this.isActive===e||(this._isGroupActive=e,B(this.container,"dv-active-group",e),B(this.container,"dv-inactive-group",!e),this.tabsContainer.setActive(this.isActive),!this._activePanel&&this.panels.length>0&&this.doSetActivePanel(this.panels[0]),this.updateContainer())}layout(e,n){var i;this._width=e,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(e,n){const i=this._activePanel===e;if(this.doRemovePanel(e),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(),e}doRemovePanel(e){const n=this.panels.indexOf(e);if(this._activePanel===e&&this.contentContainer.closePanel(),this.tabsContainer.delete(e.id),this._panels.splice(n,1),this.mostRecentlyUsed.includes(e)){const r=this.mostRecentlyUsed.indexOf(e);this.mostRecentlyUsed.splice(r,1)}const i=this._panelDisposables.get(e.id);i&&(i.dispose(),this._panelDisposables.delete(e.id)),this._onDidRemovePanel.fire({panel:e})}doAddPanel(e,n=this.panels.length,i={skipSetActive:!1}){const o=this._panels.indexOf(e)>-1;this.tabsContainer.show(),this.contentContainer.show(),this.tabsContainer.openPanel(e,n),i.skipSetActive?e.api.renderer==="always"&&this.contentContainer.renderPanel(e,{asActive:!1}):this.contentContainer.openPanel(e),!o&&(this.updateMru(e),this.panels.splice(n,0,e),this._panelDisposables.set(e.id,new Z(e.api.onDidTitleChange(s=>this._onDidPanelTitleChange.fire(s)),e.api.onDidParametersChange(s=>this._onDidPanelParametersChange.fire(s)))),this._onDidAddPanel.fire({panel:e}))}doSetActivePanel(e){this._activePanel!==e&&(this._activePanel=e,e&&(this.tabsContainer.setActivePanel(e),this.contentContainer.openPanel(e),e.layout(this._width,this._height),this.updateMru(e),this.contentContainer.refreshFocusState(),this._onDidActivePanelChange.fire({panel:e})))}updateMru(e){this.mostRecentlyUsed.includes(e)&&this.mostRecentlyUsed.splice(this.mostRecentlyUsed.indexOf(e),1),this.mostRecentlyUsed=[e,...this.mostRecentlyUsed]}updateContainer(){var e,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,q(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=(e=this.watermark).dispose)===null||n===void 0||n.call(e),this.watermark=void 0)}canDisplayOverlay(e,n,i){const r=new Qg(e,i,n,We,this.accessor.getPanel(this.id));return this._onUnhandledDragOverEvent.fire(r),r.isAccepted}handleDropEvent(e,n,i,r){if(this.locked==="no-drop-target")return;function o(){switch(e){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 Jg({nativeEvent:n,position:i,panel:s,getData:()=>We(),kind:o(),group:this.groupPanel,api:this._api});if(this._onWillDrop.fire(a),a.defaultPrevented)return;const l=We();if(l&&l.viewId===this.accessor.id){if(e==="content"&&l.groupId===this.id&&(i==="center"||l.panelId===null)||e==="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:c,panelId:d}=l;if(this.id===c&&!i&&this.tabsContainer.indexOf(d)===r)return;this._onMove.fire({target:i,groupId:l.groupId,itemId:l.panelId,index:r})}else this._onDidDrop.fire(new Yd({nativeEvent:n,position:i,panel:s,getData:()=>We(),group:this.groupPanel,api:this._api}))}updateDragAndDropState(){this.tabsContainer.updateDragAndDropState()}dispose(){var e,n,i;super.dispose(),(e=this.watermark)===null||e===void 0||e.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 Qd extends jg{constructor(e,n,i){super(e,n),this._onDidConstraintsChangeInternal=new E,this.onDidConstraintsChangeInternal=this._onDidConstraintsChangeInternal.event,this._onDidConstraintsChange=new E,this.onDidConstraintsChange=this._onDidConstraintsChange.event,this._onDidSizeChange=new E,this.onDidSizeChange=this._onDidSizeChange.event,this.addDisposables(this._onDidConstraintsChangeInternal,this._onDidConstraintsChange,this._onDidSizeChange),i&&this.initialize(i)}setConstraints(e){this._onDidConstraintsChangeInternal.fire(e)}setSize(e){this._onDidSizeChange.fire(e)}}class Zg extends Ud{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 e=typeof this._minimumWidth=="function"?this._minimumWidth():this._minimumWidth;return e!==this._evaluatedMinimumWidth&&(this._evaluatedMinimumWidth=e,this.updateConstraints()),e}__maximumWidth(){const e=typeof this._maximumWidth=="function"?this._maximumWidth():this._maximumWidth;return e!==this._evaluatedMaximumWidth&&(this._evaluatedMaximumWidth=e,this.updateConstraints()),e}__minimumHeight(){const e=typeof this._minimumHeight=="function"?this._minimumHeight():this._minimumHeight;return e!==this._evaluatedMinimumHeight&&(this._evaluatedMinimumHeight=e,this.updateConstraints()),e}__maximumHeight(){const e=typeof this._maximumHeight=="function"?this._maximumHeight():this._maximumHeight;return e!==this._evaluatedMaximumHeight&&(this._evaluatedMaximumHeight=e,this.updateConstraints()),e}get isActive(){return this.api.isActive}get isVisible(){return this.api.isVisible}constructor(e,n,i,r){super(e,n,r??new Qd(e,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 E,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(e){this.api._onDidVisibilityChange.fire({isVisible:e})}setActive(e){this.api._onDidActiveChange.fire({isActive:e})}init(e){e.maximumHeight&&(this._maximumHeight=e.maximumHeight),e.minimumHeight&&(this._minimumHeight=e.minimumHeight),e.maximumWidth&&(this._maximumWidth=e.maximumWidth),e.minimumWidth&&(this._minimumWidth=e.minimumWidth),this._priority=e.priority,this._snap=!!e.snap,super.init(e),typeof e.isVisible=="boolean"&&this.setVisible(e.isVisible)}updateConstraints(){this.api._onDidConstraintsChange.fire({minimumWidth:this._evaluatedMinimumWidth,maximumWidth:this._evaluatedMaximumWidth,minimumHeight:this._evaluatedMinimumHeight,maximumHeight:this._evaluatedMaximumHeight})}toJSON(){const e=super.toJSON(),n=r=>r===Number.MAX_SAFE_INTEGER?void 0:r,i=r=>r<=0?void 0:r;return Object.assign(Object.assign({},e),{minimumHeight:i(this.minimumHeight),maximumHeight:n(this.maximumHeight),minimumWidth:i(this.minimumWidth),maximumWidth:n(this.maximumWidth),snap:this.snap,priority:this.priority})}}const Jn="dockview: DockviewGroupPanelApiImpl not initialized";class cE extends Qd{get location(){if(!this._group)throw new Error(Jn);return this._group.model.location}constructor(e,n){super(e,"__dockviewgroup__"),this.accessor=n,this._onDidLocationChange=new E,this.onDidLocationChange=this._onDidLocationChange.event,this._onDidActivePanelChange=new E,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(e){this._pendingSize=Object.assign({},e),super.setSize(e)}close(){if(this._group)return this.accessor.removeGroup(this._group)}getWindow(){return this.location.type==="popout"?this.location.getWindow():window}setHeaderPosition(e){if(!this._group)throw new Error(Jn);this._group.model.headerPosition=e}getHeaderPosition(){if(!this._group)throw new Error(Jn);return this._group.model.headerPosition}moveTo(e){var n,i,r,o;if(!this._group)throw new Error(Jn);const s=(n=e.group)!==null&&n!==void 0?n:this.accessor.addGroup({direction:Fz((i=e.position)!==null&&i!==void 0?i:"right"),skipSetActive:(r=e.skipSetActive)!==null&&r!==void 0?r:!1});this.accessor.moveGroupOrPanel({from:{groupId:this._group.id},to:{group:s,position:e.group&&(o=e.position)!==null&&o!==void 0?o:"center",index:e.index},skipSetActive:e.skipSetActive})}maximize(){if(!this._group)throw new Error(Jn);this.location.type==="grid"&&this.accessor.maximizeGroup(this._group)}isMaximized(){if(!this._group)throw new Error(Jn);return this.accessor.isMaximizedGroup(this._group)}exitMaximized(){if(!this._group)throw new Error(Jn);this.isMaximized()&&this.accessor.exitMaximizedGroup()}initialize(e){this._group=e}}const hE=100,pE=100;class kp extends Zg{get minimumWidth(){var e;if(typeof this._explicitConstraints.minimumWidth=="number")return this._explicitConstraints.minimumWidth;const n=(e=this.activePanel)===null||e===void 0?void 0:e.minimumWidth;return typeof n=="number"?n:super.__minimumWidth()}get minimumHeight(){var e;if(typeof this._explicitConstraints.minimumHeight=="number")return this._explicitConstraints.minimumHeight;const n=(e=this.activePanel)===null||e===void 0?void 0:e.minimumHeight;return typeof n=="number"?n:super.__minimumHeight()}get maximumWidth(){var e;if(typeof this._explicitConstraints.maximumWidth=="number")return this._explicitConstraints.maximumWidth;const n=(e=this.activePanel)===null||e===void 0?void 0:e.maximumWidth;return typeof n=="number"?n:super.__maximumWidth()}get maximumHeight(){var e;if(typeof this._explicitConstraints.maximumHeight=="number")return this._explicitConstraints.maximumHeight;const n=(e=this.activePanel)===null||e===void 0?void 0:e.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(e){this._model.locked=e}get header(){return this._model.header}constructor(e,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:pE,minimumWidth:(a=(s=i.constraints)===null||s===void 0?void 0:s.minimumWidth)!==null&&a!==void 0?a:hE,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 cE(n,e)),this._explicitConstraints={},this.api.initialize(this),this._model=new dE(this.element,e,n,i,this),this.addDisposables(this.model.onDidActivePanelChange(c=>{this.api._onDidActivePanelChange.fire(c)}),this.api.onDidConstraintsChangeInternal(c=>{c.minimumWidth!==void 0&&(this._explicitConstraints.minimumWidth=typeof c.minimumWidth=="function"?c.minimumWidth():c.minimumWidth),c.minimumHeight!==void 0&&(this._explicitConstraints.minimumHeight=typeof c.minimumHeight=="function"?c.minimumHeight():c.minimumHeight),c.maximumWidth!==void 0&&(this._explicitConstraints.maximumWidth=typeof c.maximumWidth=="function"?c.maximumWidth():c.maximumWidth),c.maximumHeight!==void 0&&(this._explicitConstraints.maximumHeight=typeof c.maximumHeight=="function"?c.maximumHeight():c.maximumHeight)}))}focus(){this.api.isActive||this.api.setActive(),super.focus()}initialize(){this._model.initialize()}setActive(e){super.setActive(e),this.model.setActive(e)}layout(e,n){super.layout(e,n),this.model.layout(e,n)}getComponent(){return this._model}toJSON(){return this.model.toJSON()}}const uP={name:"dark",className:"dockview-theme-dark"},dP={name:"light",className:"dockview-theme-light"},fE={className:"dockview-theme-abyss"};class vE extends Qd{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(e){const n=this._group;this._group!==e&&(this._group=e,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(e,n,i,r,o){super(e.id,r),this.panel=e,this.accessor=i,this._onDidTitleChange=new E,this.onDidTitleChange=this._onDidTitleChange.event,this._onDidActiveGroupChange=new E,this.onDidActiveGroupChange=this._onDidActiveGroupChange.event,this._onDidGroupChange=new E,this.onDidGroupChange=this._onDidGroupChange.event,this._onDidRendererChange=new E,this.onDidRendererChange=this._onDidRendererChange.event,this._onDidLocationChange=new E,this.onDidLocationChange=this._onDidLocationChange.event,this.groupEventsDisposable=new Me,this._tabComponent=o,this.initialize(e),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(e){var n,i;this.accessor.moveGroupOrPanel({from:{groupId:this._group.id,panelId:this.panel.id},to:{group:(n=e.group)!==null&&n!==void 0?n:this._group,position:e.group&&(i=e.position)!==null&&i!==void 0?i:"center",index:e.index},skipSetActive:e.skipSetActive})}setTitle(e){this.panel.setTitle(e)}setRenderer(e){this.panel.setRenderer(e)}close(){this.group.model.closePanel(this.panel)}maximize(){this.group.api.maximize()}isMaximized(){return this.group.api.isMaximized()}exitMaximized(){this.group.api.exitMaximized()}setupGroupEventListeners(e){var n;let i=(n=e==null?void 0:e.isActive)!==null&&n!==void 0?n:!1;this.groupEventsDisposable.value=new Z(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 Si extends Z{get params(){return this._params}get title(){return this._title}get group(){return this._group}get renderer(){var e;return(e=this._renderer)!==null&&e!==void 0?e:this.accessor.renderer}get minimumWidth(){return this._minimumWidth}get minimumHeight(){return this._minimumHeight}get maximumWidth(){return this._maximumWidth}get maximumHeight(){return this._maximumHeight}constructor(e,n,i,r,o,s,a,l){super(),this.id=e,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 vE(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(e){this._params=e.params,this.view.init(Object.assign(Object.assign({},e),{api:this.api,containerApi:this.containerApi})),this.setTitle(e.title)}focus(){const e=new Bg;this.api._onWillFocus.fire(e),!e.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(e){e!==this.title&&(this._title=e,this.api._onDidTitleChange.fire({title:e}))}setRenderer(e){e!==this.renderer&&(this._renderer=e,this.api._onDidRendererChange.fire({renderer:e}))}update(e){var n;this._params=Object.assign(Object.assign({},(n=this._params)!==null&&n!==void 0?n:{}),e.params);for(const i of Object.keys(e.params))e.params[i]===void 0&&delete this._params[i];this.view.update({params:this._params})}updateFromStateModel(e){var n,i,r;this._maximumHeight=e.maximumHeight,this._minimumHeight=e.minimumHeight,this._maximumWidth=e.maximumWidth,this._minimumWidth=e.minimumWidth,this.update({params:(n=e.params)!==null&&n!==void 0?n:{}}),this.setTitle((i=e.title)!==null&&i!==void 0?i:this.id),this.setRenderer((r=e.renderer)!==null&&r!==void 0?r:this.accessor.renderer)}updateParentGroup(e,n){this._group=e,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 e=this._group.model.isPanelActive(this),n=this.group.api.isActive&&e;this.api.isActive!==n&&this.api._onDidActiveChange.fire({isActive:this.group.api.isActive&&e}),this.api.isVisible!==e&&this.api._onDidVisibilityChange.fire({isVisible:e})}layout(e,n){this.api._onDidDimensionChange.fire({width:e,height:n}),this.view.layout(e,n)}dispose(){this.api.dispose(),this.view.dispose()}}class Sp extends Z{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(nE()),this._element.appendChild(this._content),this._element.appendChild(this.action),this.render()}init(e){this._title=e.title,this.addDisposables(e.api.onDidTitleChange(n=>{this._title=n.title,this.render()}),q(this.action,"pointerdown",n=>{n.preventDefault()}),q(this.action,"click",n=>{n.defaultPrevented||(n.preventDefault(),e.api.close())})),this.render()}render(){var e;this._content.textContent!==this._title&&(this._content.textContent=(e=this._title)!==null&&e!==void 0?e:"")}}class Xg{get content(){return this._content}get tab(){return this._tab}constructor(e,n,i,r){this.accessor=e,this.id=n,this.contentComponent=i,this.tabComponent=r,this._content=this.createContentComponent(this.id,i),this._tab=this.createTabComponent(this.id,r)}createTabRenderer(e){var n;const i=this.createTabComponent(this.id,this.tabComponent);return this._params&&i.init(Object.assign(Object.assign({},this._params),{tabLocation:e})),this._updateEvent&&((n=i.update)===null||n===void 0||n.call(i,this._updateEvent)),i}init(e){this._params=e,this.content.init(e),this.tab.init(Object.assign(Object.assign({},e),{tabLocation:"header"}))}layout(e,n){var i,r;(r=(i=this.content).layout)===null||r===void 0||r.call(i,e,n)}update(e){var n,i,r,o;this._updateEvent=e,(i=(n=this.content).update)===null||i===void 0||i.call(n,e),(o=(r=this.tab).update)===null||o===void 0||o.call(r,e)}dispose(){var e,n,i,r;(n=(e=this.content).dispose)===null||n===void 0||n.call(e),(r=(i=this.tab).dispose)===null||r===void 0||r.call(i)}createContentComponent(e,n){return this.accessor.options.createComponent({id:e,name:n})}createTabComponent(e,n){const i=n??this.accessor.options.defaultTabComponent;if(i){if(this.accessor.options.createTabComponent){const r=this.accessor.options.createTabComponent({id:e,name:i});return r||new Sp}console.warn(`dockview: tabComponent '${n}' was not found. falling back to the default tab.`)}return new Sp}}class mE{constructor(e){this.accessor=e}fromJSON(e,n){var i,r;const o=e.id,s=e.params,a=e.title,l=e.view,u=l?l.content.id:(i=e.contentComponent)!==null&&i!==void 0?i:"unknown",c=l?(r=l.tab)===null||r===void 0?void 0:r.id:e.tabComponent,d=new Xg(this.accessor,o,u,c),h=new Si(o,u,c,this.accessor,new Vs(this.accessor),n,d,{renderer:e.renderer,minimumWidth:e.minimumWidth,minimumHeight:e.minimumHeight,maximumWidth:e.maximumWidth,maximumHeight:e.maximumHeight});return h.init({title:a??o,params:s??{}}),h}}class gE extends Z{get element(){return this._element}constructor(){super(),this._element=document.createElement("div"),this._element.className="dv-watermark"}init(e){}}class bE{constructor(){this._orderedList=[]}push(e){this._orderedList=[...this._orderedList.filter(n=>n!==e),e],this.update()}destroy(e){this._orderedList=this._orderedList.filter(n=>n!==e),this.update()}update(){for(let e=0;e<this._orderedList.length;e++)this._orderedList[e].setAttribute("aria-level",`${e}`),this._orderedList[e].style.zIndex=`calc(var(--dv-overlay-z-index, 999) + ${e*2})`}}const Go=new bE;class $t extends Z{set minimumInViewportWidth(e){this.options.minimumInViewportWidth=e}set minimumInViewportHeight(e){this.options.minimumInViewportHeight=e}get element(){return this._element}get isVisible(){return this._isVisible}constructor(e){super(),this.options=e,this._element=document.createElement("div"),this._onDidChange=new E,this.onDidChange=this._onDidChange.event,this._onDidChangeEnd=new E,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})),Go.push(this._element)}setVisible(e){e!==this.isVisible&&(this._isVisible=e,B(this.element,"dv-hidden",!this.isVisible))}bringToFront(){Go.push(this._element)}setBounds(e={}){typeof e.height=="number"&&(this._element.style.height=`${e.height}px`),typeof e.width=="number"&&(this._element.style.width=`${e.width}px`),"top"in e&&typeof e.top=="number"&&(this._element.style.top=`${e.top}px`,this._element.style.bottom="auto",this.verticalAlignment="top"),"bottom"in e&&typeof e.bottom=="number"&&(this._element.style.bottom=`${e.bottom}px`,this._element.style.top="auto",this.verticalAlignment="bottom"),"left"in e&&typeof e.left=="number"&&(this._element.style.left=`${e.left}px`,this._element.style.right="auto",this.horiziontalAlignment="left"),"right"in e&&typeof e.right=="number"&&(this._element.style.right=`${e.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=be(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=be(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=be(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=be(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 e=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-e.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-e.left,i.width=n.width,i.height=n.height,i}setupDrag(e,n={inDragMode:!1}){const i=new Me,r=()=>{let o=null;const s=Ns();i.value=new Z({dispose:()=>{s.release()}},q(window,"pointermove",a=>{const l=this.options.container.getBoundingClientRect(),u=a.clientX-l.left,c=a.clientY-l.top;B(this._element,"dv-resize-container-dragging",!0);const d=this._element.getBoundingClientRect();o===null&&(o={x:a.clientX-d.left,y:a.clientY-d.top});const h=Math.max(0,this.getMinimumWidth(d.width)),p=Math.max(0,this.getMinimumHeight(d.height)),v=be(c-o.y,-p,Math.max(0,l.height-d.height+p)),m=be(o.y-c+l.height-d.height,-p,Math.max(0,l.height-d.height+p)),y=be(u-o.x,-h,Math.max(0,l.width-d.width+h)),f=be(o.x-u+l.width-d.width,-h,Math.max(0,l.width-d.width+h)),g={};v<=m?g.top=v:g.bottom=m,y<=f?g.left=y:g.right=f,this.setBounds(g)}),q(window,"pointerup",()=>{B(this._element,"dv-resize-container-dragging",!1),i.dispose(),this._onDidChangeEnd.fire()}))};this.addDisposables(i,q(e,"pointerdown",o=>{if(o.defaultPrevented){o.preventDefault();return}yp(o)||r()}),q(this.options.content,"pointerdown",o=>{o.defaultPrevented||yp(o)||o.shiftKey&&r()}),q(this.options.content,"pointerdown",()=>{Go.push(this._element)},!0)),n.inDragMode&&r()}setupResize(e){const n=document.createElement("div");n.className=`dv-resize-handle-${e}`,this._element.appendChild(n);const i=new Me;this.addDisposables(i,q(n,"pointerdown",r=>{r.preventDefault();let o=null;const s=Ns();i.value=new Z(q(window,"pointermove",a=>{const l=this.options.container.getBoundingClientRect(),u=this._element.getBoundingClientRect(),c=a.clientY-l.top,d=a.clientX-l.left;o===null&&(o={originalY:c,originalHeight:u.height,originalX:d,originalWidth:u.width});let h,p,v,m,y,f;const g=()=>{const z=o.originalY+o.originalHeight>l.height?Math.max(0,l.height-$t.MINIMUM_HEIGHT):Math.max(0,o.originalY+o.originalHeight-$t.MINIMUM_HEIGHT);h=be(c,0,z),v=o.originalY+o.originalHeight-h,p=l.height-h-v},b=()=>{h=o.originalY-o.originalHeight;const z=h<0&&typeof this.options.minimumInViewportHeight=="number"?-h+this.options.minimumInViewportHeight:$t.MINIMUM_HEIGHT,C=l.height-Math.max(0,h);v=be(c-h,z,C),p=l.height-h-v},k=()=>{const z=o.originalX+o.originalWidth>l.width?Math.max(0,l.width-$t.MINIMUM_WIDTH):Math.max(0,o.originalX+o.originalWidth-$t.MINIMUM_WIDTH);m=be(d,0,z),f=o.originalX+o.originalWidth-m,y=l.width-m-f},D=()=>{m=o.originalX-o.originalWidth;const z=m<0&&typeof this.options.minimumInViewportWidth=="number"?-m+this.options.minimumInViewportWidth:$t.MINIMUM_WIDTH,C=l.width-Math.max(0,m);f=be(d-m,z,C),y=l.width-m-f};switch(e){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 x={};h<=p?x.top=h:x.bottom=p,m<=y?x.left=m:x.right=y,x.height=v,x.width=f,this.setBounds(x)}),{dispose:()=>{s.release()}},q(window,"pointerup",()=>{i.dispose(),this._onDidChangeEnd.fire()}))}))}getMinimumWidth(e){return typeof this.options.minimumInViewportWidth=="number"?e-this.options.minimumInViewportWidth:0}getMinimumHeight(e){return typeof this.options.minimumInViewportHeight=="number"?e-this.options.minimumInViewportHeight:0}dispose(){Go.destroy(this._element),this._element.remove(),super.dispose()}}$t.MINIMUM_HEIGHT=20;$t.MINIMUM_WIDTH=20;class wE extends Z{constructor(e,n){super(),this.group=e,this.overlay=n,this.addDisposables(n)}position(e){this.overlay.setBounds(e)}}const Ho=100,xn={left:100,top:100,width:300,height:300},yE=100;class xE{constructor(){this.cache=new Map,this.currentFrameId=0,this.rafId=null}getPosition(e){const n=this.cache.get(e);if(n&&n.frameId===this.currentFrameId)return n.rect;this.scheduleFrameUpdate();const i=gu(e);return this.cache.set(e,{rect:i,frameId:this.currentFrameId}),i}invalidate(){this.currentFrameId++}scheduleFrameUpdate(){this.rafId||(this.rafId=requestAnimationFrame(()=>{this.currentFrameId++,this.rafId=null}))}}function _E(){const t=document.createElement("div");return t.tabIndex=-1,t}class Cp extends Z{constructor(e,n){super(),this.element=e,this.accessor=n,this.map={},this._disposed=!1,this.positionCache=new xE,this.pendingUpdates=new Set,this.addDisposables(Ie.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 e of Object.values(this.map))e.panel.api.isVisible&&e.resize&&e.resize()}}detatch(e){if(this.map[e.api.id]){const{disposable:n,destroy:i}=this.map[e.api.id];return n.dispose(),i.dispose(),delete this.map[e.api.id],!0}return!1}attach(e){const{panel:n,referenceContainer:i}=e;if(!this.map[n.api.id]){const c=_E();c.className="dv-render-overlay",c.style.visibility="hidden",this.map[n.api.id]={panel:n,disposable:Ie.NONE,destroy:Ie.NONE,element:c}}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 c=n.api.id;this.pendingUpdates.has(c)||(this.pendingUpdates.add(c),requestAnimationFrame(()=>{if(this.pendingUpdates.delete(c),this.isDisposed||!this.map[c])return;const d=this.positionCache.getPosition(i.element),h=this.positionCache.getPosition(this.element),p=d.left-h.left,v=d.top-h.top,m=d.width,y=d.height;r.style.left=`${p}px`,r.style.top=`${v}px`,r.style.width=`${m}px`,r.style.height=`${y}px`,r.style.visibility==="hidden"&&(r.style.visibility=""),B(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 Me,l=()=>{n.api.location.type==="floating"?queueMicrotask(()=>{const c=this.accessor.floatingGroups.find(v=>v.group===n.api.group);if(!c)return;const d=c.overlay.element,h=()=>{const v=Number(d.getAttribute("aria-level"));r.style.zIndex=`calc(var(--dv-overlay-z-index, 999) + ${v*2+1})`},p=new MutationObserver(()=>{h()});a.value=Ie.from(()=>p.disconnect()),p.observe(d,{attributeFilter:["aria-level"],attributes:!0}),h()}):r.style.zIndex=""},u=new Z(a,new Wg(r,{onDragEnd:c=>{i.dropTarget.dnd.onDragEnd(c)},onDragEnter:c=>{i.dropTarget.dnd.onDragEnter(c)},onDragLeave:c=>{i.dropTarget.dnd.onDragLeave(c)},onDrop:c=>{i.dropTarget.dnd.onDrop(c)},onDragOver:c=>{i.dropTarget.dnd.onDragOver(c)}}),n.api.onDidVisibilityChange(()=>{s()}),n.api.onDidDimensionsChange(()=>{n.api.isVisible&&o()}),n.api.onDidLocationChange(()=>{l()}));return this.map[n.api.id].destroy=Ie.from(()=>{var c;n.view.content.element.parentElement===r&&r.removeChild(n.view.content.element),(c=r.parentElement)===null||c===void 0||c.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 kE(t,e,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(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):r(c.value).then(a,l)}u((i=i.apply(t,[])).next())})}class SE extends Z{get window(){var e,n;return(n=(e=this._window)===null||e===void 0?void 0:e.value)!==null&&n!==void 0?n:null}constructor(e,n,i){super(),this.target=e,this.className=n,this.options=i,this._onWillClose=new E,this.onWillClose=this._onWillClose.event,this._onDidClose=new E,this.onDidClose=this._onDidClose.event,this._window=null,this.addDisposables(this._onWillClose,this._onDidClose,{dispose:()=>{this.close()}})}dimensions(){if(!this._window)return null;const e=this._window.value.screenX,n=this._window.value.screenY,i=this._window.value.innerWidth,r=this._window.value.innerHeight;return{top:n,left:e,width:i,height:r}}close(){var e,n;this._window&&(this._onWillClose.fire(),(n=(e=this.options).onWillClose)===null||n===void 0||n.call(e,{id:this.target,window:this._window.value}),this._window.disposable.dispose(),this._window=null,this._onDidClose.fire())}open(){var e,n;return kE(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 Z;this._window={value:o,disposable:s},s.addDisposables(Ie.from(()=>{o.close()}),q(window,"beforeunload",()=>{this.close()}));const a=this.createPopoutWindowContainer();return this.className&&a.classList.add(this.className),(n=(e=this.options).onDidOpen)===null||n===void 0||n.call(e,{id:this.target,window:o}),new Promise((l,u)=>{o.addEventListener("unload",c=>{}),o.addEventListener("load",()=>{try{const c=o.document;c.title=document.title,c.body.appendChild(a),gz(c,window.document.styleSheets),q(o,"beforeunload",()=>{this.close()}),l(a)}catch(c){u(c)}})})})}createPopoutWindowContainer(){const e=document.createElement("div");return e.classList.add("dv-popout-window"),e.id="dv-popout-window",e.style.position="absolute",e.style.width="100%",e.style.height="100%",e.style.top="0px",e.style.left="0px",e}}class CE extends Z{constructor(e){super(),this.accessor=e,this.init()}init(){const e=new Set,n=new Set;this.addDisposables(this.accessor.onDidAddPanel(i=>{if(e.has(i.api.id))throw new Error(`dockview: Invalid event sequence. [onDidAddPanel] called for panel ${i.api.id} but panel already exists`);e.add(i.api.id)}),this.accessor.onDidRemovePanel(i=>{if(e.has(i.api.id))e.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 DE extends Z{constructor(e){super(),this.root=e,this._active=null,this._activeDisposable=new Me,this._element=document.createElement("div"),this._element.className="dv-popover-anchor",this._element.style.position="relative",this.root.prepend(this._element),this.addDisposables(Ie.from(()=>{this.close()}),this._activeDisposable)}openPopover(e,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(e);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 Z(q(window,"pointerdown",l=>{var u;const c=l.target;if(!(c instanceof HTMLElement))return;let d=c;for(;d&&d!==r;)d=(u=d==null?void 0:d.parentElement)!==null&&u!==void 0?u:null;d||this.close()}),q(window,"resize",()=>{this.close()})),requestAnimationFrame(()=>{Cz(r,this.root)})}close(){this._active&&(this._active.remove(),this._activeDisposable.dispose(),this._active=null)}}class Dp extends Z{get disabled(){return this._disabled}set disabled(e){var n;this.disabled!==e&&(this._disabled=e,e&&((n=this.model)===null||n===void 0||n.clear()))}get model(){if(!this.disabled)return{clear:()=>{var e;this._model&&((e=this._model.root.parentElement)===null||e===void 0||e.removeChild(this._model.root)),this._model=void 0},exists:()=>!!this._model,getElements:(e,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),(e==null?void 0:e.target)instanceof HTMLElement){const s=e.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(e,n){super(),this.element=e,this._disabled=!1,this._disabled=n.disabled,this.addDisposables(Ie.from(()=>{var i;(i=this.model)===null||i===void 0||i.clear()}))}createContainer(){const e=document.createElement("div");return e.className="dv-drop-target-container",e}createAnchor(){const e=document.createElement("div");return e.className="dv-drop-target-anchor",e.style.visibility="hidden",e}}const zp={activationSize:{type:"pixels",value:10},size:{type:"pixels",value:20}};function Wo(t){const e=t.from.activePanel;[...t.from.panels].map(i=>{const r=t.from.model.removePanel(i);return t.from.model.renderContainer.detatch(i),r}).forEach(i=>{t.to.model.openPanel(i,{skipSetActive:e!==i,skipSetGroupActive:!0})})}class zE extends Fg{get orientation(){return this.gridview.orientation}get totalPanels(){return this.panels.length}get panels(){return this.groups.flatMap(e=>e.panels)}get options(){return this._options}get activePanel(){const e=this.activeGroup;if(e)return e.activePanel}get renderer(){var e;return(e=this.options.defaultRenderer)!==null&&e!==void 0?e:"onlyWhenVisible"}get defaultHeaderPosition(){var e;return(e=this.options.defaultHeaderPosition)!==null&&e!==void 0?e:"top"}get api(){return this._api}get floatingGroups(){return this._floatingGroups}get popoutRestorationPromise(){return this._popoutRestorationPromise}constructor(e,n){var i,r,o;super(e,{proportionalLayout:!0,orientation:U.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=Wd(),this._deserializer=new mE(this),this._watermark=null,this._onWillDragPanel=new E,this.onWillDragPanel=this._onWillDragPanel.event,this._onWillDragGroup=new E,this.onWillDragGroup=this._onWillDragGroup.event,this._onDidDrop=new E,this.onDidDrop=this._onDidDrop.event,this._onWillDrop=new E,this.onWillDrop=this._onWillDrop.event,this._onWillShowOverlay=new E,this.onWillShowOverlay=this._onWillShowOverlay.event,this._onUnhandledDragOverEvent=new E,this.onUnhandledDragOverEvent=this._onUnhandledDragOverEvent.event,this._onDidRemovePanel=new E,this.onDidRemovePanel=this._onDidRemovePanel.event,this._onDidAddPanel=new E,this.onDidAddPanel=this._onDidAddPanel.event,this._onDidPopoutGroupSizeChange=new E,this.onDidPopoutGroupSizeChange=this._onDidPopoutGroupSizeChange.event,this._onDidPopoutGroupPositionChange=new E,this.onDidPopoutGroupPositionChange=this._onDidPopoutGroupPositionChange.event,this._onDidOpenPopoutWindowFail=new E,this.onDidOpenPopoutWindowFail=this._onDidOpenPopoutWindowFail.event,this._onDidLayoutFromJSON=new E,this.onDidLayoutFromJSON=this._onDidLayoutFromJSON.event,this._onDidActivePanelChange=new E({replay:!0}),this.onDidActivePanelChange=this._onDidActivePanelChange.event,this._onDidMovePanel=new E,this.onDidMovePanel=this._onDidMovePanel.event,this._onDidMaximizedGroupChange=new E,this.onDidMaximizedGroupChange=this._onDidMaximizedGroupChange.event,this._floatingGroups=[],this._popoutGroups=[],this._popoutRestorationPromise=Promise.resolve(),this._onDidRemoveGroup=new E,this.onDidRemoveGroup=this._onDidRemoveGroup.event,this._onDidAddGroup=new E,this.onDidAddGroup=this._onDidAddGroup.event,this._onDidOptionsChange=new E,this.onDidOptionsChange=this._onDidOptionsChange.event,this._onDidActiveGroupChange=new E,this.onDidActiveGroupChange=this._onDidActiveGroupChange.event,this._moving=!1,this._options=n,this.popupService=new DE(this.element),this._themeClassnames=new ha(this.element),this._api=new Vs(this),this.rootDropTargetContainer=new Dp(this.element,{disabled:!0}),this.overlayRenderContainer=new Cp(this.gridview.element,this),this._rootDropTarget=new Rt(this.element,{className:"dv-drop-target-edge",canDisplayOverlay:(s,a)=>{const l=We();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 Qg(s,"edge",a,We);return this._onUnhandledDragOverEvent.fire(u),u.isAccepted},acceptedTargetZones:["top","bottom","left","right","center"],overlayModel:(o=n.rootOverlayModel)!==null&&o!==void 0?o:zp,getOverrideTarget:()=>{var s;return(s=this.rootDropTargetContainer)===null||s===void 0?void 0:s.model}}),this.updateDropTargetModel(n),B(this.gridview.element,"dv-dockview",!0),B(this.element,"dv-debug",!!n.debug),this.updateTheme(),this.updateWatermark(),n.debug&&this.addDisposables(new CE(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})}),oi.any(this.onDidAdd,this.onDidRemove)(()=>{this.updateWatermark()}),oi.any(this.onDidAddPanel,this.onDidRemovePanel,this.onDidAddGroup,this.onDidRemove,this.onDidMovePanel,this.onDidActivePanelChange,this.onDidPopoutGroupPositionChange,this.onDidPopoutGroupSizeChange)(()=>{this._bufferOnDidLayoutChange.fire()}),Ie.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 pa(s,{kind:"edge",panel:void 0,api:this._api,group:void 0,getData:We}))}),this._rootDropTarget.onDrop(s=>{var a;const l=new Jg({nativeEvent:s.nativeEvent,position:s.position,panel:void 0,api:this._api,group:void 0,getData:We,kind:"edge"});if(this._onWillDrop.fire(l),l.defaultPrevented)return;const u=We();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 Yd({nativeEvent:s.nativeEvent,position:s.position,panel:void 0,api:this._api,group:void 0,getData:We}))}),this._rootDropTarget)}setVisible(e,n){switch(e.api.location.type){case"grid":super.setVisible(e,n);break;case"floating":{const i=this.floatingGroups.find(r=>r.group===e);i&&(i.overlay.setVisible(n),e.api._onDidVisibilityChange.fire({isVisible:n}));break}case"popout":console.warn("dockview: You cannot hide a group that is in a popout window");break}}addPopoutGroup(e,n){var i,r,o,s,a;if(e instanceof Si&&e.group.size===1)return this.addPopoutGroup(e.group,n);const l=xz(this.gridview.element),u=this.element;function c(){return n!=null&&n.position?n.position:e instanceof kp?e.element.getBoundingClientRect():e.group?e.group.element.getBoundingClientRect():u.getBoundingClientRect()}const d=c(),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 SE(`${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+d.left,top:window.screenY+d.top,width:d.width,height:d.height,onDidOpen:n==null?void 0:n.onDidOpen,onWillClose:n==null?void 0:n.onWillClose}),v=new Z(p,p.onDidClose(()=>{v.dispose()}));return p.open().then(m=>{var y;if(p.isDisposed)return!1;const f=n!=null&&n.referenceGroup?n.referenceGroup:e instanceof Si?e.group:e,g=e.api.location.type,b=f.element.parentElement!==null;let k;if(b?n!=null&&n.overridePopoutGroup?k=n.overridePopoutGroup:(k=this.createGroup({id:h}),m&&this._onDidAddGroup.fire(k)):k=f,m===null)return console.error("dockview: failed to create popout. perhaps you need to allow pop-ups for this website"),v.dispose(),this._onDidOpenPopoutWindowFail.fire(),this.movingLock(()=>Wo({from:k,to:f})),f.api.isVisible||f.api.setVisible(!0),!1;const D=document.createElement("div");D.className="dv-overlay-render-container";const x=new Cp(D,this);k.model.renderContainer=x,k.layout(p.window.innerWidth,p.window.innerHeight);let z;if(!(n!=null&&n.overridePopoutGroup)&&b)if(e instanceof Si)this.movingLock(()=>{const Q=f.model.removePanel(e);k.model.openPanel(Q)});else switch(this.movingLock(()=>Wo({from:f,to:k})),g){case"grid":f.api.setVisible(!1);break;case"floating":case"popout":z=(y=this._floatingGroups.find(Q=>Q.group.api.id===e.api.id))===null||y===void 0?void 0:y.overlay.toJSON(),this.removeGroup(f);break}m.classList.add("dv-dockview"),m.style.overflow="hidden",m.appendChild(D),m.appendChild(k.element);const C=document.createElement("div"),R=new Dp(C,{disabled:this.rootDropTargetContainer.disabled});m.appendChild(C),k.model.dropTargetContainer=R,k.model.location={type:"popout",getWindow:()=>p.window,popoutUrl:n==null?void 0:n.popoutUrl},b&&e.api.location.type==="grid"&&e.api.setVisible(!1),this.doSetGroupAndPanelActive(k),v.addDisposables(k.api.onDidActiveChange(Q=>{var P;Q.isActive&&((P=p.window)===null||P===void 0||P.focus())}),k.api.onWillFocus(()=>{var Q;(Q=p.window)===null||Q===void 0||Q.focus()}));let S;const O=b&&f&&this.getPanel(f.id),V={window:p,popoutGroup:k,referenceGroup:O?f.id:void 0,disposable:{dispose:()=>(v.dispose(),S)}},$=kz(p.window);return v.addDisposables($,Sz(p.window,()=>{this._onDidPopoutGroupSizeChange.fire({width:p.window.innerWidth,height:p.window.innerHeight,group:k})}),$.event(()=>{this._onDidPopoutGroupPositionChange.fire({screenX:p.window.screenX,screenY:p.window.screenX,group:k})}),q(p.window,"resize",()=>{k.layout(p.window.innerWidth,p.window.innerHeight)}),x,Ie.from(()=>{if(!this.isDisposed){if(b&&this.getPanel(f.id))this.movingLock(()=>Wo({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,S=k,!this._popoutGroups.find(P=>P.popoutGroup===k))return;z?this.addFloatingGroup(k,{height:z.height,width:z.width,position:z}):(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(V),this.updateWatermark(),!0}).catch(m=>(console.error("dockview: failed to create popout.",m),!1))}addFloatingGroup(e,n){var i,r,o,s,a;let l;if(e instanceof Si)l=this.createGroup(),this._onDidAddGroup.fire(l),this.movingLock(()=>this.removePanel(e,{removeEmptyGroup:!0,skipDispose:!0,skipSetActiveGroup:!0})),this.movingLock(()=>l.model.openPanel(e,{skipSetGroupActive:!0}));else{l=e;const m=(i=this._popoutGroups.find(g=>g.popoutGroup===l))===null||i===void 0?void 0:i.referenceGroup,y=m?this.getPanel(m):void 0;typeof(n==null?void 0:n.skipRemoveGroup)=="boolean"&&n.skipRemoveGroup||(y?(this.movingLock(()=>Wo({from:e,to:y})),this.doRemoveGroup(e,{skipPopoutReturn:!0,skipPopoutAssociated:!0}),this.doRemoveGroup(y,{skipDispose:!0}),l=y):this.doRemoveGroup(e,{skipDispose:!0,skipPopoutReturn:!0,skipPopoutAssociated:!1}))}function u(){if(n!=null&&n.position){const m={};return"left"in n.position?m.left=Math.max(n.position.left,0):"right"in n.position?m.right=Math.max(n.position.right,0):m.left=xn.left,"top"in n.position?m.top=Math.max(n.position.top,0):"bottom"in n.position?m.bottom=Math.max(n.position.bottom,0):m.top=xn.top,typeof n.width=="number"?m.width=Math.max(n.width,0):m.width=xn.width,typeof n.height=="number"?m.height=Math.max(n.height,0):m.height=xn.height,m}return{left:typeof(n==null?void 0:n.x)=="number"?Math.max(n.x,0):xn.left,top:typeof(n==null?void 0:n.y)=="number"?Math.max(n.y,0):xn.top,width:typeof(n==null?void 0:n.width)=="number"?Math.max(n.width,0):xn.width,height:typeof(n==null?void 0:n.height)=="number"?Math.max(n.height,0):xn.height}}const c=u(),d=new $t(Object.assign(Object.assign({container:this.gridview.element,content:l.element},c),{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:Ho,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:Ho})),h=l.element.querySelector(".dv-void-container");if(!h)throw new Error("dockview: failed to find drag handle");d.setupDrag(h,{inDragMode:typeof(n==null?void 0:n.inDragMode)=="boolean"?n.inDragMode:!1});const p=new wE(l,d),v=new Z(l.api.onDidActiveChange(m=>{m.isActive&&d.bringToFront()}),ca(l.element,m=>{const{width:y,height:f}=m.contentRect;l.layout(y,f)}));p.addDisposables(d.onDidChange(()=>{l.layout(l.width,l.height)}),d.onDidChangeEnd(()=>{this._bufferOnDidLayoutChange.fire()}),l.onDidChange(m=>{d.setBounds({height:m==null?void 0:m.height,width:m==null?void 0:m.width})}),{dispose:()=>{v.dispose(),al(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(e,n){switch(this.gridview.normalize(),e){case"top":case"bottom":this.gridview.orientation===U.HORIZONTAL&&this.gridview.insertOrthogonalSplitviewAtRoot();break;case"left":case"right":this.gridview.orientation===U.VERTICAL&&this.gridview.insertOrthogonalSplitviewAtRoot();break}switch(e){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 ${e}`)}}updateOptions(e){var n,i;if(super.updateOptions(e),"floatingGroupBounds"in e)for(const s of this._floatingGroups){switch(e.floatingGroupBounds){case"boundedWithinViewport":s.overlay.minimumInViewportHeight=void 0,s.overlay.minimumInViewportWidth=void 0;break;case void 0:s.overlay.minimumInViewportHeight=Ho,s.overlay.minimumInViewportWidth=Ho;break;default:s.overlay.minimumInViewportHeight=(n=e.floatingGroupBounds)===null||n===void 0?void 0:n.minimumHeightWithinViewport,s.overlay.minimumInViewportWidth=(i=e.floatingGroupBounds)===null||i===void 0?void 0:i.minimumWidthWithinViewport}s.overlay.setBounds()}this.updateDropTargetModel(e);const r=this.options.disableDnd;this._options=Object.assign(Object.assign({},this.options),e);const o=this.options.disableDnd;if(r!==o&&this.updateDragAndDropState(),"theme"in e&&this.updateTheme(),"createRightHeaderActionComponent"in e||"createLeftHeaderActionComponent"in e||"createPrefixHeaderActionComponent"in e)for(const s of this.groups)s.model.updateHeaderActions();this.layout(this.gridview.width,this.gridview.height,!0)}layout(e,n,i){if(super.layout(e,n,i),this._floatingGroups)for(const r of this._floatingGroups)r.overlay.setBounds()}updateDragAndDropState(){for(const e of this.groups)e.model.updateDragAndDropState()}focus(){var e;(e=this.activeGroup)===null||e===void 0||e.focus()}getGroupPanel(e){return this.panels.find(n=>n.id===e)}setActivePanel(e){e.group.model.openPanel(e),this.doSetGroupAndPanelActive(e.group)}moveToNext(e={}){var n;if(!e.group){if(!this.activeGroup)return;e.group=this.activeGroup}if(e.includePanel&&e.group&&e.group.activePanel!==e.group.panels[e.group.panels.length-1]){e.group.model.moveToNext({suppressRoll:!0});return}const i=_e(e.group.element),r=(n=this.gridview.next(i))===null||n===void 0?void 0:n.view;this.doSetGroupAndPanelActive(r)}moveToPrevious(e={}){var n;if(!e.group){if(!this.activeGroup)return;e.group=this.activeGroup}if(e.includePanel&&e.group&&e.group.activePanel!==e.group.panels[0]){e.group.model.moveToPrevious({suppressRoll:!0});return}const i=_e(e.group.element),r=(n=this.gridview.previous(i))===null||n===void 0?void 0:n.view;r&&this.doSetGroupAndPanelActive(r)}toJSON(){var e;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:(e=this.activeGroup)===null||e===void 0?void 0:e.id};return r.length>0&&(s.floatingGroups=r),o.length>0&&(s.popoutGroups=o),s}fromJSON(e,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 c=Object.keys(e.panels);for(const d of this.panels)c.includes(d.api.id)&&o.set(d.api.id,d);this.movingLock(()=>{Array.from(o.values()).forEach(d=>{this.moveGroupOrPanel({from:{groupId:d.api.group.api.id,panelId:d.api.id},to:{group:s,position:"center"},keepEmptyGroups:!0})})})}if(this.clear(),typeof e!="object"||e===null)throw new Error("dockview: serialized layout must be a non-null object");const{grid:a,panels:l,activeGroup:u}=e;if(a.root.type!=="branch"||!Array.isArray(a.root.data))throw new Error("dockview: root must be of type branch");try{const c=this.width,d=this.height,h=y=>{const{id:f,locked:g,hideHeader:b,headerPosition:k,views:D,activeView:x}=y;if(typeof f!="string")throw new Error("dockview: group id must be of type string");const z=this.createGroup({id:f,locked:!!g,hideHeader:!!b,headerPosition:k});this._onDidAddGroup.fire(z);const C=[];for(const R of D){const S=o.get(R);if(s&&S)this.movingLock(()=>{s.model.removePanel(S)}),C.push(S),S.updateFromStateModel(l[R]);else{const O=this._deserializer.fromJSON(l[R],z);C.push(O)}}for(let R=0;R<D.length;R++){const S=C[R],O=typeof x=="string"&&x===S.id;o.has(S.api.id)?this.movingLock(()=>{z.model.openPanel(S,{skipSetActive:!O,skipSetGroupActive:!0})}):z.model.openPanel(S,{skipSetActive:!O,skipSetGroupActive:!0})}return!z.activePanel&&z.panels.length>0&&z.model.openPanel(z.panels[z.panels.length-1],{skipSetGroupActive:!0}),z};this.gridview.deserialize(a,{fromJSON:y=>h(y.data)}),this.layout(c,d,!0);const p=(i=e.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 v=(r=e.popoutGroups)!==null&&r!==void 0?r:[],m=[];v.forEach((y,f)=>{const{data:g,position:b,gridReferenceGroup:k,url:D}=y,x=h(g),z=new Promise(C=>{setTimeout(()=>{this.addPopoutGroup(x,{position:b??void 0,overridePopoutGroup:k?x:void 0,referenceGroup:k?this.getPanel(k):void 0,popoutUrl:D}),C()},f*yE)});m.push(z)}),this._popoutRestorationPromise=Promise.all(m).then(()=>{});for(const y of this._floatingGroups)y.overlay.setBounds();if(typeof u=="string"){const y=this.getPanel(u);y&&this.doSetGroupAndPanelActive(y)}}catch(c){console.error("dockview: failed to deserialize layout. Reverting changes",c);for(const d of this.groups)for(const h of d.panels)this.removePanel(h,{removeEmptyGroup:!1,skipDispose:!1});for(const d of this.groups)d.dispose(),this._groups.delete(d.id),this._onDidRemoveGroup.fire(d);for(const d of[...this._floatingGroups])d.dispose();throw this.clear(),c}this.updateWatermark(),this.debouncedUpdateAllPositions(),this._onDidLayoutFromJSON.fire()}clear(){const e=Array.from(this._groups.values()).map(i=>i.value),n=!!this.activeGroup;for(const i of e)this.removeGroup(i,{skipActive:!0});n&&this.doSetGroupAndPanelActive(void 0),this.gridview.clear()}closeAllGroups(){for(const e of this._groups.entries()){const[n,i]=e;i.value.model.closeAllPanels()}}addPanel(e){var n,i;if(this.panels.find(l=>l.id===e.id))throw new Error(`dockview: panel with id ${e.id} already exists`);let r;if(e.position&&e.floating)throw new Error("dockview: you can only provide one of: position, floating as arguments to .addPanel(...)");const o={width:e.initialWidth,height:e.initialHeight};let s;if(e.position)if(sE(e.position)){const l=typeof e.position.referencePanel=="string"?this.getGroupPanel(e.position.referencePanel):e.position.referencePanel;if(s=e.position.index,!l)throw new Error(`dockview: referencePanel '${e.position.referencePanel}' does not exist`);r=this.findGroup(l)}else if(aE(e.position)){if(r=typeof e.position.referenceGroup=="string"?(n=this._groups.get(e.position.referenceGroup))===null||n===void 0?void 0:n.value:e.position.referenceGroup,s=e.position.index,!r)throw new Error(`dockview: referenceGroup '${e.position.referenceGroup}' does not exist`)}else{const l=this.orthogonalize(_p(e.position.direction)),u=this.createPanel(e,l);return l.model.openPanel(u,{skipSetActive:e.inactive,skipSetGroupActive:e.inactive,index:s}),e.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=Ms(((i=e.position)===null||i===void 0?void 0:i.direction)||"within");if(e.floating){const u=this.createGroup();this._onDidAddGroup.fire(u);const c=typeof e.floating=="object"&&e.floating!==null?e.floating:{};this.addFloatingGroup(u,Object.assign(Object.assign({},c),{inDragMode:!1,skipRemoveGroup:!0,skipActiveGroup:!0})),a=this.createPanel(e,u),u.model.openPanel(a,{skipSetActive:e.inactive,skipSetGroupActive:e.inactive,index:s})}else if(r.api.location.type==="floating"||l==="center")a=this.createPanel(e,r),r.model.openPanel(a,{skipSetActive:e.inactive,skipSetGroupActive:e.inactive,index:s}),r.api.setSize({width:o==null?void 0:o.width,height:o==null?void 0:o.height}),e.inactive||this.doSetGroupAndPanelActive(r);else{const u=_e(r.element),c=Ut(this.gridview.orientation,u,l),d=this.createGroupAtLocation(c,this.orientationAtLocation(c)===U.VERTICAL?o==null?void 0:o.height:o==null?void 0:o.width);a=this.createPanel(e,d),d.model.openPanel(a,{skipSetActive:e.inactive,skipSetGroupActive:e.inactive,index:s}),e.inactive||this.doSetGroupAndPanelActive(d)}}else if(e.floating){const l=this.createGroup();this._onDidAddGroup.fire(l);const u=typeof e.floating=="object"&&e.floating!==null?e.floating:{};this.addFloatingGroup(l,Object.assign(Object.assign({},u),{inDragMode:!1,skipRemoveGroup:!0,skipActiveGroup:!0})),a=this.createPanel(e,l),l.model.openPanel(a,{skipSetActive:e.inactive,skipSetGroupActive:e.inactive,index:s})}else{const l=this.createGroupAtLocation([0],this.gridview.orientation===U.VERTICAL?o==null?void 0:o.height:o==null?void 0:o.width);a=this.createPanel(e,l),l.model.openPanel(a,{skipSetActive:e.inactive,skipSetGroupActive:e.inactive,index:s}),e.inactive||this.doSetGroupAndPanelActive(l)}return a}removePanel(e,n={removeEmptyGroup:!0}){const i=e.group;if(!i)throw new Error(`dockview: cannot remove panel ${e.id}. it's missing a group.`);i.model.removePanel(e,{skipSetActiveGroup:n.skipSetActiveGroup}),n.skipDispose||(e.group.model.renderContainer.detatch(e),e.dispose()),i.size===0&&n.removeEmptyGroup&&this.removeGroup(i,{skipActive:n.skipSetActiveGroup})}createWatermarkComponent(){return this.options.createWatermarkComponent?this.options.createWatermarkComponent():new gE}updateWatermark(){var e,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 Vs(this)});const i=document.createElement("div");i.className="dv-watermark-container",wz(i,"watermark-component"),i.appendChild(this._watermark.element),this.gridview.element.appendChild(i)}}else this._watermark&&(this._watermark.element.parentElement.remove(),(n=(e=this._watermark).dispose)===null||n===void 0||n.call(e),this._watermark=null)}addGroup(e){var n;if(e){let i;if(lE(e)){const u=typeof e.referencePanel=="string"?this.panels.find(c=>c.id===e.referencePanel):e.referencePanel;if(!u)throw new Error(`dockview: reference panel ${e.referencePanel} does not exist`);if(i=this.findGroup(u),!i)throw new Error(`dockview: reference group for reference panel ${e.referencePanel} does not exist`)}else if(uE(e)){if(i=typeof e.referenceGroup=="string"?(n=this._groups.get(e.referenceGroup))===null||n===void 0?void 0:n.value:e.referenceGroup,!i)throw new Error(`dockview: reference group ${e.referenceGroup} does not exist`)}else{const u=this.orthogonalize(_p(e.direction),e);return e.skipSetActive||this.doSetGroupAndPanelActive(u),u}const r=Ms(e.direction||"within"),o=_e(i.element),s=Ut(this.gridview.orientation,o,r),a=this.createGroup(e),l=this.getLocationOrientation(s)===U.VERTICAL?e.initialHeight:e.initialWidth;return this.doAddGroup(a,s,l),e.skipSetActive||this.doSetGroupAndPanelActive(a),a}else{const i=this.createGroup(e);return this.doAddGroup(i),this.doSetGroupAndPanelActive(i),i}}getLocationOrientation(e){return e.length%2==0&&this.gridview.orientation===U.HORIZONTAL?U.HORIZONTAL:U.VERTICAL}removeGroup(e,n){this.doRemoveGroup(e,n)}doRemoveGroup(e,n){var i;const r=[...e.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(e.api.location.type==="floating"){const a=this._floatingGroups.find(l=>l.group===e);if(a){if(n!=null&&n.skipDispose||(a.group.dispose(),this._groups.delete(e.id),this._onDidRemoveGroup.fire(e)),al(this._floatingGroups,a),a.dispose(),!(n!=null&&n.skipActive)&&this._activeGroup===e){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(e.api.location.type==="popout"){const a=this._popoutGroups.find(l=>l.popoutGroup===e);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(e.id),this._onDidRemoveGroup.fire(e)}al(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===e){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(e,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(e){const n=this._moving;try{return this._moving=!0,e()}finally{this._moving=n}}moveGroupOrPanel(e){var n;const i=e.to.group,r=e.from.groupId,o=e.from.panelId,s=e.to.position,a=e.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:e.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}`);!e.keepEmptyGroups&&l.model.size===0&&this.doRemoveGroup(l,{skipActive:!0});const c=i.model.size===0;this.movingLock(()=>{var d;return i.model.openPanel(u,{index:a,skipSetActive:((d=e.skipSetActive)!==null&&d!==void 0?d:!1)&&!c,skipSetGroupActive:!0})}),e.skipSetActive||this.doSetGroupAndPanelActive(i),this._onDidMovePanel.fire({panel:u,from:l})}else{const u=_e(i.element),c=Ut(this.gridview.orientation,u,s);if(l.size<2){const[d,h]=un(c);if(l.api.location.type==="grid"){const y=_e(l.element),[f,g]=un(y);if(Mg(f,d)){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(c);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})),v=_e(i.element),m=Ut(this.gridview.orientation,v,s);this.movingLock(()=>this.doAddGroup(p,m)),this.doSetGroupAndPanelActive(p),this._onDidMovePanel.fire({panel:this.getGroupPanel(o),from:l})}else{const d=this.movingLock(()=>l.model.removePanel(o,{skipSetActive:!1,skipSetActiveGroup:!0}));if(!d)throw new Error(`dockview: No panel with id ${o}`);const h=Ut(this.gridview.orientation,u,s),p=this.createGroupAtLocation(h);this.movingLock(()=>p.model.openPanel(d,{skipSetGroupActive:!0})),this.doSetGroupAndPanelActive(p),this._onDidMovePanel.fire({panel:d,from:l})}}}moveGroup(e){const n=e.from.group,i=e.to.group,r=e.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})}),e.skipSetActive!==!0?this.doSetGroupAndPanelActive(i):this.activePanel||this.doSetGroupAndPanelActive(i)}else{switch(n.api.location.type){case"grid":this.gridview.removeView(_e(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=_e(i.element),s=Ut(this.gridview.orientation,o,r);let a;switch(this.gridview.orientation){case U.VERTICAL:a=o.length%2==0?n.api.width:n.api.height;break;case U.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(),e.skipSetActive===!1){const o=i??n;this.doSetGroupAndPanelActive(o)}}doSetGroupActive(e){super.doSetGroupActive(e);const n=this.activePanel;!this._moving&&n!==this._onDidActivePanelChange.value&&this._onDidActivePanelChange.fire(n)}doSetGroupAndPanelActive(e){super.doSetGroupActive(e);const n=this.activePanel;e&&this.hasMaximizedGroup()&&!this.isMaximizedGroup(e)&&this.exitMaximizedGroup(),!this._moving&&n!==this._onDidActivePanelChange.value&&this._onDidActivePanelChange.fire(n)}getNextGroupId(){let e=this.nextGroupId.next();for(;this._groups.has(e);)e=this.nextGroupId.next();return e}createGroup(e){e||(e={});let n=e==null?void 0:e.id;if(n&&this._groups.has(e.id)&&(console.warn(`dockview: Duplicate group id ${e==null?void 0:e.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 kp(this,n,e);if(i.init({params:{},accessor:this}),!this._groups.has(i.id)){const r=new Z(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)}),oi.any(i.model.onDidPanelTitleChange,i.model.onDidPanelParametersChange)(()=>{this._bufferOnDidLayoutChange.fire()}));this._groups.set(i.id,{value:i,disposable:r})}return i.initialize(),i}createPanel(e,n){var i,r,o;const s=e.component,a=(i=e.tabComponent)!==null&&i!==void 0?i:this.options.defaultTabComponent,l=new Xg(this,e.id,s,a),u=new Si(e.id,s,a,this,this._api,n,l,{renderer:e.renderer,minimumWidth:e.minimumWidth,minimumHeight:e.minimumHeight,maximumWidth:e.maximumWidth,maximumHeight:e.maximumHeight});return u.init({title:(r=e.title)!==null&&r!==void 0?r:e.id,params:(o=e==null?void 0:e.params)!==null&&o!==void 0?o:{}}),u}createGroupAtLocation(e,n,i){const r=this.createGroup(i);return this.doAddGroup(r,e,n),r}findGroup(e){var n;return(n=Array.from(this._groups.values()).find(i=>i.value.model.containsPanel(e)))===null||n===void 0?void 0:n.value}orientationAtLocation(e){const n=this.gridview.orientation;return e.length%2==1?n:Qt(n)}updateDropTargetModel(e){"dndEdges"in e&&(this._rootDropTarget.disabled=typeof e.dndEdges=="boolean"&&e.dndEdges===!1,typeof e.dndEdges=="object"&&e.dndEdges!==null?this._rootDropTarget.setOverlayModel(e.dndEdges):this._rootDropTarget.setOverlayModel(zp)),"rootOverlayModel"in e&&this.updateDropTargetModel({dndEdges:e.dndEdges})}updateTheme(){var e,n;const i=(e=this._options.theme)!==null&&e!==void 0?e:fE;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 EE extends Fg{get orientation(){return this.gridview.orientation}set orientation(e){this.gridview.orientation=e}get options(){return this._options}get deserializer(){return this._deserializer}set deserializer(e){this._deserializer=e}constructor(e,n){var i;super(e,{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 E,this.onDidLayoutFromJSON=this._onDidLayoutfromJSON.event,this._onDidRemoveGroup=new E,this.onDidRemoveGroup=this._onDidRemoveGroup.event,this._onDidAddGroup=new E,this.onDidAddGroup=this._onDidAddGroup.event,this._onDidActiveGroupChange=new E,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(e){super.updateOptions(e);const n=typeof e.orientation=="string"&&this.gridview.orientation!==e.orientation;this._options=Object.assign(Object.assign({},this.options),e),n&&(this.gridview.orientation=e.orientation),this.layout(this.gridview.width,this.gridview.height,!0)}removePanel(e){this.removeGroup(e)}toJSON(){var e;return{grid:this.gridview.serialize(),activePanel:(e=this.activeGroup)===null||e===void 0?void 0:e.id}}setVisible(e,n){this.gridview.setViewVisible(_e(e.element),n)}setActive(e){this._groups.forEach((n,i)=>{n.value.setActive(e===n.value)})}focus(){var e;(e=this.activeGroup)===null||e===void 0||e.focus()}fromJSON(e){this.clear();const{grid:n,activePanel:i}=e;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 e=this.activeGroup,n=Array.from(this._groups.values());for(const i of n)i.disposable.dispose(),this.doRemoveGroup(i.value,{skipActive:!0});e&&this.doSetGroupActive(void 0),this.gridview.clear()}movePanel(e,n){var i;let r;const o=this.gridview.remove(e),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=Ms(n.direction);if(a==="center")throw new Error(`${a} not supported as an option`);{const l=_e(s.element);r=Ut(this.gridview.orientation,l,a)}this.doAddGroup(o,r,n.size)}addPanel(e){var n,i,r,o;let s=(n=e.location)!==null&&n!==void 0?n:[0];if(!((i=e.position)===null||i===void 0)&&i.referencePanel){const l=(r=this._groups.get(e.position.referencePanel))===null||r===void 0?void 0:r.value;if(!l)throw new Error(`reference group ${e.position.referencePanel} does not exist`);const u=Ms(e.position.direction);if(u==="center")throw new Error(`${u} not supported as an option`);{const c=_e(l.element);s=Ut(this.gridview.orientation,c,u)}}const a=this.options.createComponent({id:e.id,name:e.component});return a.init({params:(o=e.params)!==null&&o!==void 0?o:{},minimumWidth:e.minimumWidth,maximumWidth:e.maximumWidth,minimumHeight:e.minimumHeight,maximumHeight:e.maximumHeight,priority:e.priority,snap:!!e.snap,accessor:this,isVisible:!0}),this.doAddGroup(a,s,e.size),this.registerPanel(a),this.doSetGroupActive(a),a}registerPanel(e){const n=new Z(e.api.onDidFocusChange(i=>{i.isFocused&&this._groups.forEach(r=>{const o=r.value;o!==e?o.setActive(!1):o.setActive(!0)})}));this._groups.set(e.id,{value:e,disposable:n})}moveGroup(e,n,i){const r=this.getPanel(n);if(!r)throw new Error("invalid operation");const o=_e(e.element),s=Ut(this.gridview.orientation,o,i),[a,l]=un(s),u=_e(r.element),[c,d]=un(u);if(Mg(c,a)){this.gridview.moveView(c,d,l);return}const h=this.doRemoveGroup(r,{skipActive:!0,skipDispose:!0}),p=_e(e.element),v=Ut(this.gridview.orientation,p,i);this.doAddGroup(h,v)}removeGroup(e){super.removeGroup(e)}dispose(){super.dispose(),this._onDidLayoutfromJSON.dispose()}}class PE extends Bd{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(e){this._splitview&&this._splitview.dispose(),this._splitview=e,this._splitviewChangeDisposable.value=new Z(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===U.HORIZONTAL?this.splitview.orthogonalSize:this.splitview.size}get width(){return this.splitview.orientation===U.HORIZONTAL?this.splitview.size:this.splitview.orthogonalSize}constructor(e,n){var i;super(document.createElement("div"),n.disableAutoResizing),this._splitviewChangeDisposable=new Me,this._panels=new Map,this._onDidLayoutfromJSON=new E,this.onDidLayoutFromJSON=this._onDidLayoutfromJSON.event,this._onDidAddView=new E,this.onDidAddView=this._onDidAddView.event,this._onDidRemoveView=new E,this.onDidRemoveView=this._onDidRemoveView.event,this._onDidLayoutChange=new E,this.onDidLayoutChange=this._onDidLayoutChange.event,this.element.style.height="100%",this.element.style.width="100%",this._classNames=new ha(this.element),this._classNames.setClassNames((i=n.className)!==null&&i!==void 0?i:""),e.appendChild(this.element),this._options=n,this.splitview=new io(this.element,n),this.addDisposables(this._onDidAddView,this._onDidLayoutfromJSON,this._onDidRemoveView,this._onDidLayoutChange)}updateOptions(e){var n,i;"className"in e&&this._classNames.setClassNames((n=e.className)!==null&&n!==void 0?n:""),"disableResizing"in e&&(this.disableResizing=(i=e.disableAutoResizing)!==null&&i!==void 0?i:!1),typeof e.orientation=="string"&&(this.splitview.orientation=e.orientation),this._options=Object.assign(Object.assign({},this.options),e),this.splitview.layout(this.splitview.size,this.splitview.orthogonalSize)}focus(){var e;(e=this._activePanel)===null||e===void 0||e.focus()}movePanel(e,n){this.splitview.moveView(e,n)}setVisible(e,n){const i=this.panels.indexOf(e);this.splitview.setViewVisible(i,n)}setActive(e,n){this._activePanel=e,this.panels.filter(i=>i!==e).forEach(i=>{i.api._onDidActiveChange.fire({isActive:!1}),n||i.focus()}),e.api._onDidActiveChange.fire({isActive:!0}),n||e.focus()}removePanel(e,n){const i=this._panels.get(e.id);if(!i)throw new Error(`unknown splitview panel ${e.id}`);i.dispose(),this._panels.delete(e.id);const r=this.panels.findIndex(a=>a===e);this.splitview.removeView(r,n).dispose();const s=this.panels;s.length>0&&this.setActive(s[s.length-1])}getPanel(e){return this.panels.find(n=>n.id===e)}addPanel(e){var n;if(this._panels.has(e.id))throw new Error(`panel ${e.id} already exists`);const i=this.options.createComponent({id:e.id,name:e.component});i.orientation=this.splitview.orientation,i.init({params:(n=e.params)!==null&&n!==void 0?n:{},minimumSize:e.minimumSize,maximumSize:e.maximumSize,snap:e.snap,priority:e.priority,accessor:this});const r=typeof e.size=="number"?e.size:St.Distribute,o=typeof e.index=="number"?e.index:void 0;return this.splitview.addView(i,r,o),this.doAddView(i),this.setActive(i),i}layout(e,n){const[i,r]=this.splitview.orientation===U.HORIZONTAL?[e,n]:[n,e];this.splitview.layout(i,r)}doAddView(e){const n=e.api.onDidFocusChange(i=>{i.isFocused&&this.setActive(e,!0)});this._panels.set(e.id,n)}toJSON(){var e;return{views:this.splitview.getViews().map((i,r)=>({size:this.splitview.getViewSize(r),data:i.toJSON(),snap:!!i.snap,priority:i.priority})),activeView:(e=this._activePanel)===null||e===void 0?void 0:e.id,size:this.splitview.size,orientation:this.splitview.orientation}}fromJSON(e){this.clear();const{views:n,orientation:i,size:r,activeView:o}=e,s=[],a=this.width,l=this.height;if(this.splitview=new io(this.element,{orientation:i,proportionalLayout:this.options.proportionalLayout,descriptor:{size:r,views:n.map(u=>{const c=u.data;if(this._panels.has(c.id))throw new Error(`panel ${c.id} already exists`);const d=this.options.createComponent({id:c.id,name:c.component});return s.push(()=>{var h;d.init({params:(h=c.params)!==null&&h!==void 0?h:{},minimumSize:c.minimumSize,maximumSize:c.maximumSize,snap:u.snap,priority:u.priority,accessor:this})}),d.orientation=i,this.doAddView(d),setTimeout(()=>{this._onDidAddView.fire(d)},0),{size:u.size,view:d}})}}),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 e of this._panels.values())e.dispose();for(this._panels.clear();this.splitview.length>0;)this.splitview.removeView(0,St.Distribute,!0).dispose()}dispose(){for(const n of this._panels.values())n.dispose();this._panels.clear();const e=this.splitview.getViews();this._splitviewChangeDisposable.dispose(),this.splitview.dispose();for(const n of e)n.dispose();this.element.remove(),super.dispose()}}class Ep extends Z{get element(){return this._element}constructor(){super(),this._expandedIcon=iE(),this._collapsedIcon=Yg(),this.disposable=new Me,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(q(this._element,"click",()=>{var e;(e=this.apiRef.api)===null||e===void 0||e.setExpanded(!this.apiRef.api.isExpanded)}))}init(e){this.apiRef.api=e.api,this._content.textContent=e.title,this.updateIcon(),this.disposable.value=e.api.onDidExpansionChange(()=>{this.updateIcon()})}updateIcon(){var e;const n=!!(!((e=this.apiRef.api)===null||e===void 0)&&e.isExpanded);B(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(e){}dispose(){this.disposable.dispose(),super.dispose()}}const AE=Wd(),Pp=22,Ap=0,Ip=Number.MAX_SAFE_INTEGER;class Tp extends Jz{constructor(e){super({accessor:e.accessor,id:e.id,component:e.component,headerComponent:e.headerComponent,orientation:e.orientation,isExpanded:e.isExpanded,disableDnd:e.disableDnd,headerSize:e.headerSize,minimumBodySize:e.minimumBodySize,maximumBodySize:e.maximumBodySize}),this.options=e}getBodyComponent(){return this.options.body}getHeaderComponent(){return this.options.header}}class IE extends Bd{get id(){return this._id}get panels(){return this.paneview.getPanes()}set paneview(e){this._paneview=e,this._disposable.value=new Z(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===U.HORIZONTAL?this.paneview.orthogonalSize:this.paneview.size}get width(){return this.paneview.orientation===U.HORIZONTAL?this.paneview.size:this.paneview.orthogonalSize}get options(){return this._options}constructor(e,n){var i;super(document.createElement("div"),n.disableAutoResizing),this._id=AE.next(),this._disposable=new Me,this._viewDisposables=new Map,this._onDidLayoutfromJSON=new E,this.onDidLayoutFromJSON=this._onDidLayoutfromJSON.event,this._onDidLayoutChange=new E,this.onDidLayoutChange=this._onDidLayoutChange.event,this._onDidDrop=new E,this.onDidDrop=this._onDidDrop.event,this._onDidAddView=new E,this.onDidAddView=this._onDidAddView.event,this._onDidRemoveView=new E,this.onDidRemoveView=this._onDidRemoveView.event,this._onUnhandledDragOverEvent=new E,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 ha(this.element),this._classNames.setClassNames((i=n.className)!==null&&i!==void 0?i:""),e.appendChild(this.element),this._options=n,this.paneview=new xp(this.element,{orientation:U.VERTICAL}),this.addDisposables(this._disposable)}setVisible(e,n){const i=this.panels.indexOf(e);this.paneview.setViewVisible(i,n)}focus(){}updateOptions(e){var n,i;"className"in e&&this._classNames.setClassNames((n=e.className)!==null&&n!==void 0?n:""),"disableResizing"in e&&(this.disableResizing=(i=e.disableAutoResizing)!==null&&i!==void 0?i:!1),this._options=Object.assign(Object.assign({},this.options),e)}addPanel(e){var n,i;const r=this.options.createComponent({id:e.id,name:e.component});let o;e.headerComponent&&this.options.createHeaderComponent&&(o=this.options.createHeaderComponent({id:e.id,name:e.headerComponent})),o||(o=new Ep);const s=new Tp({id:e.id,component:e.component,headerComponent:e.headerComponent,header:o,body:r,orientation:U.VERTICAL,isExpanded:!!e.isExpanded,disableDnd:!!this.options.disableDnd,accessor:this,headerSize:(n=e.headerSize)!==null&&n!==void 0?n:Pp,minimumBodySize:Ap,maximumBodySize:Ip});this.doAddPanel(s);const a=typeof e.size=="number"?e.size:St.Distribute,l=typeof e.index=="number"?e.index:void 0;return s.init({params:(i=e.params)!==null&&i!==void 0?i:{},minimumBodySize:e.minimumBodySize,maximumBodySize:e.maximumBodySize,isExpanded:e.isExpanded,title:e.title,containerApi:new ro(this),accessor:this}),this.paneview.addPane(s,a,l),s.orientation=this.paneview.orientation,s}removePanel(e){const i=this.panels.findIndex(r=>r===e);this.paneview.removePane(i),this.doRemovePanel(e)}movePanel(e,n){this.paneview.moveView(e,n)}getPanel(e){return this.panels.find(n=>n.id===e)}layout(e,n){const[i,r]=this.paneview.orientation===U.HORIZONTAL?[e,n]:[n,e];this.paneview.layout(i,r)}toJSON(){const e=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:e(r.maximumBodySize),headerSize:r.headerSize,expanded:r.isExpanded()})),size:this.paneview.size}}fromJSON(e){this.clear();const{views:n,size:i}=e,r=[],o=this.width,s=this.height;this.paneview=new xp(this.element,{orientation:U.VERTICAL,descriptor:{size:i,views:n.map(a=>{var l,u,c;const d=a.data,h=this.options.createComponent({id:d.id,name:d.component});let p;d.headerComponent&&this.options.createHeaderComponent&&(p=this.options.createHeaderComponent({id:d.id,name:d.headerComponent})),p||(p=new Ep);const v=new Tp({id:d.id,component:d.component,headerComponent:d.headerComponent,header:p,body:h,orientation:U.VERTICAL,isExpanded:!!a.expanded,disableDnd:!!this.options.disableDnd,accessor:this,headerSize:(l=a.headerSize)!==null&&l!==void 0?l:Pp,minimumBodySize:(u=a.minimumSize)!==null&&u!==void 0?u:Ap,maximumBodySize:(c=a.maximumSize)!==null&&c!==void 0?c:Ip});return this.doAddPanel(v),r.push(()=>{var m;v.init({params:(m=d.params)!==null&&m!==void 0?m:{},minimumBodySize:a.minimumSize,maximumBodySize:a.maximumSize,title:d.title,isExpanded:!!a.expanded,containerApi:new ro(this),accessor:this}),v.orientation=this.paneview.orientation}),setTimeout(()=>{this._onDidAddView.fire(v)},0),{size:a.size,view:v}})}}),this.layout(o,s),r.forEach(a=>a()),this._onDidLayoutfromJSON.fire()}clear(){for(const[e,n]of this._viewDisposables.entries())n.dispose();this._viewDisposables.clear(),this.paneview.dispose()}doAddPanel(e){const n=new Z(e.onDidDrop(i=>{this._onDidDrop.fire(i)}),e.onUnhandledDragOverEvent(i=>{this._onUnhandledDragOverEvent.fire(i)}));this._viewDisposables.set(e.id,n)}doRemovePanel(e){const n=this._viewDisposables.get(e.id);n&&(n.dispose(),this._viewDisposables.delete(e.id))}dispose(){super.dispose();for(const[e,n]of this._viewDisposables.entries())n.dispose();this._viewDisposables.clear(),this.element.remove(),this.paneview.dispose()}}class TE extends Ud{get priority(){return this._priority}set orientation(e){this._orientation=e}get orientation(){return this._orientation}get minimumSize(){const e=typeof this._minimumSize=="function"?this._minimumSize():this._minimumSize;return e!==this._evaluatedMinimumSize&&(this._evaluatedMinimumSize=e,this.updateConstraints()),e}get maximumSize(){const e=typeof this._maximumSize=="function"?this._maximumSize():this._maximumSize;return e!==this._evaluatedMaximumSize&&(this._evaluatedMaximumSize=e,this.updateConstraints()),e}get snap(){return this._snap}constructor(e,n){super(e,n,new Ug(e,n)),this._evaluatedMinimumSize=0,this._evaluatedMaximumSize=Number.POSITIVE_INFINITY,this._minimumSize=0,this._maximumSize=Number.POSITIVE_INFINITY,this._snap=!1,this._onDidChange=new E,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(e){this.api._onDidVisibilityChange.fire({isVisible:e})}setActive(e){this.api._onDidActiveChange.fire({isActive:e})}layout(e,n){const[i,r]=this.orientation===U.HORIZONTAL?[e,n]:[n,e];super.layout(i,r)}init(e){super.init(e),this._priority=e.priority,e.minimumSize&&(this._minimumSize=e.minimumSize),e.maximumSize&&(this._maximumSize=e.maximumSize),e.snap&&(this._snap=e.snap)}toJSON(){const e=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:e(this.maximumSize)})}updateConstraints(){this.api._onDidConstraintsChange.fire({maximumSize:this._evaluatedMaximumSize,minimumSize:this._evaluatedMinimumSize})}}function OE(t,e){return new zE(t,e).api}function LE(t,e){const n=new PE(t,e);return new Gg(n)}function RE(t,e){const n=new EE(t,e);return new Hg(n)}function NE(t,e){const n=new IE(t,e);return new ro(n)}/**
|
|
1411
|
-
* dockview
|
|
1412
|
-
* @version 5.2.0
|
|
1413
|
-
* @link https://github.com/mathuo/dockview
|
|
1414
|
-
* @license MIT
|
|
1415
|
-
*/function ME(t,e){e===void 0&&(e={});var n=e.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=t:r.appendChild(document.createTextNode(t))}}var VE=`.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
|
-
}`;ME(VE);const qg=(t,e)=>{const[n,i]=j.useState(),r=j.useRef(t.componentProps);return j.useImperativeHandle(e,()=>({update:o=>{r.current=Object.assign(Object.assign({},r.current),o),i(Date.now())}}),[]),j.createElement(t.component,r.current)};qg.displayName="DockviewReactJsBridge";const FE=(()=>{let t=1;return{next:()=>`dockview_react_portal_key_${(t++).toString()}`}})(),GE=j.createContext({});class mi{constructor(e,n,i,r,o){this.parent=e,this.portalStore=n,this.component=i,this.parameters=r,this.context=o,this._initialProps={},this.disposed=!1,this.createPortal()}update(e){if(this.disposed)throw new Error("invalid operation: resource is already disposed");this.componentInstance?this.componentInstance.update(e):this._initialProps=Object.assign(Object.assign({},this._initialProps),e)}createPortal(){if(this.disposed)throw new Error("invalid operation: resource is already disposed");if(!HE(this.component))throw new Error("Dockview: Only React.memo(...), React.ForwardRef(...) and functional components are accepted as components");const e=j.createElement(j.forwardRef(qg),{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?j.createElement(GE.Provider,{value:this.context},e):e,i=Ty.createPortal(n,this.parent,FE.next());this.ref={portal:i,disposable:this.portalStore.addPortal(i)}}dispose(){var e;(e=this.ref)===null||e===void 0||e.disposable.dispose(),this.disposed=!0}}const va=()=>{const[t,e]=j.useState([]);j.useDebugValue(`Portal count: ${t.length}`);const n=j.useCallback(i=>{e(o=>[...o,i]);let r=!1;return Ie.from(()=>{if(r)throw new Error("invalid operation: resource already disposed");r=!0,e(o=>o.filter(s=>s!==i))})},[]);return[t,n]};function HE(t){return typeof t=="function"||!!(t!=null&&t.$$typeof)}class Op{get element(){return this._element}constructor(e,n,i){this.id=e,this.component=n,this.reactPortalStore=i,this._onDidFocus=new E,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new E,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(e){this.part=new mi(this.element,this.reactPortalStore,this.component,{params:e.params,api:e.api,containerApi:e.containerApi})}update(e){var n;(n=this.part)===null||n===void 0||n.update({params:e.params})}layout(e,n){}dispose(){var e;this._onDidFocus.dispose(),this._onDidBlur.dispose(),(e=this.part)===null||e===void 0||e.dispose()}}class Lp{get element(){return this._element}constructor(e,n,i){this.id=e,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(e){this.part=new mi(this.element,this.reactPortalStore,this.component,{params:e.params,api:e.api,containerApi:e.containerApi,tabLocation:e.tabLocation})}update(e){var n;(n=this.part)===null||n===void 0||n.update({params:e.params})}layout(e,n){}dispose(){var e;(e=this.part)===null||e===void 0||e.dispose()}}class Rp{get element(){return this._element}constructor(e,n,i){this.id=e,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(e){this.part=new mi(this.element,this.reactPortalStore,this.component,{group:e.group,containerApi:e.containerApi})}focus(){}update(e){var n,i,r;this.parameters&&(this.parameters.params=e.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(e,n){}dispose(){var e;(e=this.part)===null||e===void 0||e.dispose()}}class WE{get element(){return this._element}get part(){return this._part}constructor(e,n,i){this.component=e,this.reactPortalStore=n,this._group=i,this.mutableDisposable=new Me,this._element=document.createElement("div"),this._element.className="dv-react-part",this._element.style.height="100%",this._element.style.width="100%"}init(e){this.mutableDisposable.value=new Z(this._group.model.onDidAddPanel(()=>{this.updatePanels()}),this._group.model.onDidRemovePanel(()=>{this.updatePanels()}),this._group.model.onDidActivePanelChange(()=>{this.updateActivePanel()}),e.api.onDidActiveChange(()=>{this.updateGroupActive()})),this._part=new mi(this.element,this.reactPortalStore,this.component,{api:e.api,containerApi:e.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 e;this.mutableDisposable.dispose(),(e=this._part)===null||e===void 0||e.dispose()}update(e){var n;(n=this._part)===null||n===void 0||n.update(e.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 _i(t,e){return t?n=>new WE(t,e,n):void 0}const Bo="props.defaultTabComponent";function BE(t){return Su.reduce((n,i)=>(i in t&&(n[i]=t[i]),n),{})}const jE=j.forwardRef((t,e)=>{const n=j.useRef(null),i=j.useRef(),[r,o]=va();j.useImperativeHandle(e,()=>n.current,[]);const s=j.useRef({});return j.useEffect(()=>{const a={};Su.forEach(l=>{const u=l,c=t[u];u in t&&c!==s.current[u]&&(a[u]=c)}),i.current&&i.current.updateOptions(a),s.current=t},Su.map(a=>t[a])),j.useEffect(()=>{var a;if(!n.current)return;const l=(a=t.tabComponents)!==null&&a!==void 0?a:{};t.defaultTabComponent&&(l[Bo]=t.defaultTabComponent);const u={createLeftHeaderActionComponent:_i(t.leftHeaderActionsComponent,{addPortal:o}),createRightHeaderActionComponent:_i(t.rightHeaderActionsComponent,{addPortal:o}),createPrefixHeaderActionComponent:_i(t.prefixHeaderActionsComponent,{addPortal:o}),createComponent:p=>new Op(p.id,t.components[p.name],{addPortal:o}),createTabComponent(p){return new Lp(p.id,l[p.name],{addPortal:o})},createWatermarkComponent:t.watermarkComponent?()=>new Rp("watermark",t.watermarkComponent,{addPortal:o}):void 0,defaultTabComponent:t.defaultTabComponent?Bo:void 0},c=OE(n.current,Object.assign(Object.assign({},BE(t)),u)),{clientWidth:d,clientHeight:h}=n.current;return c.layout(d,h),t.onReady&&t.onReady({api:c}),i.current=c,()=>{i.current=void 0,c.dispose()}},[]),j.useEffect(()=>{if(!i.current)return()=>{};const a=i.current.onDidDrop(l=>{t.onDidDrop&&t.onDidDrop(l)});return()=>{a.dispose()}},[t.onDidDrop]),j.useEffect(()=>{if(!i.current)return()=>{};const a=i.current.onWillDrop(l=>{t.onWillDrop&&t.onWillDrop(l)});return()=>{a.dispose()}},[t.onWillDrop]),j.useEffect(()=>{i.current&&i.current.updateOptions({createComponent:a=>new Op(a.id,t.components[a.name],{addPortal:o})})},[t.components]),j.useEffect(()=>{var a;if(!i.current)return;const l=(a=t.tabComponents)!==null&&a!==void 0?a:{};t.defaultTabComponent&&(l[Bo]=t.defaultTabComponent),i.current.updateOptions({defaultTabComponent:t.defaultTabComponent?Bo:void 0,createTabComponent(u){return new Lp(u.id,l[u.name],{addPortal:o})}})},[t.tabComponents,t.defaultTabComponent]),j.useEffect(()=>{i.current&&i.current.updateOptions({createWatermarkComponent:t.watermarkComponent?()=>new Rp("watermark",t.watermarkComponent,{addPortal:o}):void 0})},[t.watermarkComponent]),j.useEffect(()=>{i.current&&i.current.updateOptions({createRightHeaderActionComponent:_i(t.rightHeaderActionsComponent,{addPortal:o})})},[t.rightHeaderActionsComponent]),j.useEffect(()=>{i.current&&i.current.updateOptions({createLeftHeaderActionComponent:_i(t.leftHeaderActionsComponent,{addPortal:o})})},[t.leftHeaderActionsComponent]),j.useEffect(()=>{i.current&&i.current.updateOptions({createPrefixHeaderActionComponent:_i(t.prefixHeaderActionsComponent,{addPortal:o})})},[t.prefixHeaderActionsComponent]),j.createElement("div",{style:{height:"100%",width:"100%"},ref:n},r)});jE.displayName="DockviewComponent";class Np extends TE{constructor(e,n,i,r){super(e,n),this.reactComponent=i,this.reactPortalStore=r}getComponent(){var e,n;return new mi(this.element,this.reactPortalStore,this.reactComponent,{params:(n=(e=this._params)===null||e===void 0?void 0:e.params)!==null&&n!==void 0?n:{},api:this.api,containerApi:new Gg(this._params.accessor)})}}function UE(t){return bu.reduce((n,i)=>(i in t&&(n[i]=t[i]),n),{})}const $E=j.forwardRef((t,e)=>{const n=j.useRef(null),i=j.useRef(),[r,o]=va();j.useImperativeHandle(e,()=>n.current,[]);const s=j.useRef({});return j.useEffect(()=>{const a={};bu.forEach(l=>{const u=l,c=t[u];u in t&&c!==s.current[u]&&(a[u]=c)}),i.current&&i.current.updateOptions(a),s.current=t},bu.map(a=>t[a])),j.useEffect(()=>{if(!n.current)return()=>{};const a={createComponent:d=>new Np(d.id,d.name,t.components[d.name],{addPortal:o})},l=LE(n.current,Object.assign(Object.assign({},UE(t)),a)),{clientWidth:u,clientHeight:c}=n.current;return l.layout(u,c),t.onReady&&t.onReady({api:l}),i.current=l,()=>{i.current=void 0,l.dispose()}},[]),j.useEffect(()=>{i.current&&i.current.updateOptions({createComponent:a=>new Np(a.id,a.name,t.components[a.name],{addPortal:o})})},[t.components]),j.createElement("div",{style:{height:"100%",width:"100%"},ref:n},r)});$E.displayName="SplitviewComponent";class Mp extends Zg{constructor(e,n,i,r){super(e,n),this.reactComponent=i,this.reactPortalStore=r}getComponent(){var e,n;return new mi(this.element,this.reactPortalStore,this.reactComponent,{params:(n=(e=this._params)===null||e===void 0?void 0:e.params)!==null&&n!==void 0?n:{},api:this.api,containerApi:new Hg(this._params.accessor)})}}function YE(t){return _u.reduce((n,i)=>(i in t&&(n[i]=t[i]),n),{})}const QE=j.forwardRef((t,e)=>{const n=j.useRef(null),i=j.useRef(),[r,o]=va();j.useImperativeHandle(e,()=>n.current,[]);const s=j.useRef({});return j.useEffect(()=>{const a={};_u.forEach(l=>{const u=l,c=t[u];u in t&&c!==s.current[u]&&(a[u]=c)}),i.current&&i.current.updateOptions(a),s.current=t},_u.map(a=>t[a])),j.useEffect(()=>{if(!n.current)return()=>{};const a={createComponent:d=>new Mp(d.id,d.name,t.components[d.name],{addPortal:o})},l=RE(n.current,Object.assign(Object.assign({},YE(t)),a)),{clientWidth:u,clientHeight:c}=n.current;return l.layout(u,c),t.onReady&&t.onReady({api:l}),i.current=l,()=>{i.current=void 0,l.dispose()}},[]),j.useEffect(()=>{i.current&&i.current.updateOptions({createComponent:a=>new Mp(a.id,a.name,t.components[a.name],{addPortal:o})})},[t.components]),j.createElement("div",{style:{height:"100%",width:"100%"},ref:n},r)});QE.displayName="GridviewComponent";class jo{get element(){return this._element}constructor(e,n,i){this.id=e,this.component=n,this.reactPortalStore=i,this._element=document.createElement("div"),this._element.style.height="100%",this._element.style.width="100%"}init(e){this.part=new mi(this.element,this.reactPortalStore,this.component,{params:e.params,api:e.api,title:e.title,containerApi:e.containerApi})}toJSON(){return{id:this.id}}update(e){var n;(n=this.part)===null||n===void 0||n.update(e.params)}dispose(){var e;(e=this.part)===null||e===void 0||e.dispose()}}function JE(t){return ku.reduce((n,i)=>(i in t&&(n[i]=t[i]),n),{})}const ZE=j.forwardRef((t,e)=>{const n=j.useRef(null),i=j.useRef(),[r,o]=va();j.useImperativeHandle(e,()=>n.current,[]);const s=j.useRef({});return j.useEffect(()=>{const a={};ku.forEach(l=>{const u=l,c=t[u];u in t&&c!==s.current[u]&&(a[u]=c)}),i.current&&i.current.updateOptions(a),s.current=t},ku.map(a=>t[a])),j.useEffect(()=>{var a;if(!n.current)return()=>{};const l=(a=t.headerComponents)!==null&&a!==void 0?a:{},u={createComponent:p=>new jo(p.id,t.components[p.name],{addPortal:o}),createHeaderComponent:p=>new jo(p.id,l[p.name],{addPortal:o})},c=NE(n.current,Object.assign(Object.assign({},JE(t)),u)),{clientWidth:d,clientHeight:h}=n.current;return c.layout(d,h),t.onReady&&t.onReady({api:c}),i.current=c,()=>{i.current=void 0,c.dispose()}},[]),j.useEffect(()=>{i.current&&i.current.updateOptions({createComponent:a=>new jo(a.id,t.components[a.name],{addPortal:o})})},[t.components]),j.useEffect(()=>{var a;if(!i.current)return;const l=(a=t.headerComponents)!==null&&a!==void 0?a:{};i.current.updateOptions({createHeaderComponent:u=>new jo(u.id,l[u.name],{addPortal:o})})},[t.headerComponents]),j.useEffect(()=>{if(!i.current)return()=>{};const a=i.current.onDidDrop(l=>{t.onDidDrop&&t.onDidDrop(l)});return()=>{a.dispose()}},[t.onDidDrop]),j.createElement("div",{style:{height:"100%",width:"100%"},ref:n},r)});ZE.displayName="PaneviewComponent";export{sP as B,jE as D,XE as M,rP as N,j as R,qE as a,KE as b,eP as c,Xv as d,tP as e,dP as f,uP as g,da as h,aP as i,ga as j,iP as k,oP as l,oz as m,Oy as n,H as r,nP as t,Eg as u};
|