@blockbite/libraries 0.11.7 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,15 @@
1
- (function(je,ue){typeof exports=="object"&&typeof module<"u"?ue(exports):typeof define=="function"&&define.amd?define(["exports"],ue):(je=typeof globalThis<"u"?globalThis:je||self,ue(je.BlockBiteLibraries={}))})(this,(function(je){"use strict";function ue(){return ue=Object.assign?Object.assign.bind():function(u){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)({}).hasOwnProperty.call(i,r)&&(u[r]=i[r])}return u},ue.apply(null,arguments)}var ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pe(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var It,xt={exports:{}};/*!
1
+ (function(at,ft){typeof exports=="object"&&typeof module<"u"?ft(exports):typeof define=="function"&&define.amd?define(["exports"],ft):(at=typeof globalThis<"u"?globalThis:at||self,ft(at.BlockBiteLibraries={}))})(this,(function(at){"use strict";var ft=document.createElement("style");ft.textContent=`:root{--separator-border: rgba(128, 128, 128, .35);--sash-hover-transition-duration: .1s}.allotment-module_splitView__L-yRc{height:100%;overflow:hidden;position:relative;width:100%}.allotment-module_splitView__L-yRc>.allotment-module_sashContainer__fzwJF{height:100%;pointer-events:none;position:absolute;width:100%}.allotment-module_splitView__L-yRc>.allotment-module_sashContainer__fzwJF>.allotment-module_sash__QA-2t{pointer-events:auto}.allotment-module_splitView__L-yRc>.allotment-module_splitViewContainer__rQnVa{height:100%;position:relative;white-space:nowrap;width:100%}.allotment-module_splitView__L-yRc>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O{overflow:hidden;position:absolute;white-space:initial}.allotment-module_splitView__L-yRc.allotment-module_vertical__WSwwa>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O{width:100%}.allotment-module_splitView__L-yRc.allotment-module_horizontal__7doS8>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O{height:100%}.allotment-module_splitView__L-yRc.allotment-module_separatorBorder__x-rDS>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O:not(:first-child):before{background-color:var(--separator-border);content:" ";left:0;pointer-events:none;position:absolute;top:0;z-index:5}.allotment-module_splitView__L-yRc.allotment-module_separatorBorder__x-rDS.allotment-module_vertical__WSwwa>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O:not(:first-child):before{height:1px;width:100%}.allotment-module_splitView__L-yRc.allotment-module_separatorBorder__x-rDS.allotment-module_horizontal__7doS8>.allotment-module_splitViewContainer__rQnVa>.allotment-module_splitViewView__MGZ6O:not(:first-child):before{height:100%;width:1px}:root{--focus-border: #007fd4;--sash-size: 8px;--sash-hover-size: 4px}.sash-module_sash__K-9lB{position:absolute;z-index:35;touch-action:none;pointer-events:auto;text-align:initial}.sash-module_sash__K-9lB.sash-module_disabled__Hm-wx{pointer-events:none}.sash-module_sash__K-9lB.sash-module_mac__Jf6OJ.sash-module_vertical__pB-rs{cursor:col-resize}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs.sash-module_minimum__-UKxp{cursor:e-resize}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs.sash-module_maximum__TCWxD{cursor:w-resize}.sash-module_sash__K-9lB.sash-module_mac__Jf6OJ.sash-module_horizontal__kFbiw{cursor:row-resize}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_minimum__-UKxp{cursor:s-resize}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_maximum__TCWxD{cursor:n-resize}.sash-module_sash__K-9lB.sash-module_disabled__Hm-wx{cursor:default!important;pointer-events:none!important}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs{cursor:ew-resize;top:0;width:var(--sash-size);height:100%}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw{cursor:ns-resize;left:0;width:100%;height:var(--sash-size)}.sash-module_sash__K-9lB:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-{content:" ";height:calc(var(--sash-size) * 2);width:calc(var(--sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-north__f7Noe:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk,.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-south__6ZrFC:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R{cursor:nwse-resize}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-north__f7Noe:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R,.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw.sash-module_orthogonal-edge-south__6ZrFC:not(.sash-module_disabled__Hm-wx)>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk{cursor:nesw-resize}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk{left:calc(var(--sash-size) * -.5);top:calc(var(--sash-size) * -1)}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R{left:calc(var(--sash-size) * -.5);bottom:calc(var(--sash-size) * -1)}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_start__uZEDk{top:calc(var(--sash-size) * -.5);left:calc(var(--sash-size) * -1)}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw>.sash-module_orthogonal-drag-handle__Yii2-.sash-module_end__0TP-R{top:calc(var(--sash-size) * -.5);right:calc(var(--sash-size) * -1)}.sash-module_sash__K-9lB:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;transition:background-color var(--sash-hover-transition-duration) ease-out;background:transparent}.sash-module_sash__K-9lB.sash-module_vertical__pB-rs:before{width:var(--sash-hover-size);left:calc(50% - (var(--sash-hover-size) / 2))}.sash-module_sash__K-9lB.sash-module_horizontal__kFbiw:before{height:var(--sash-hover-size);top:calc(50% - (var(--sash-hover-size) / 2))}.sash-module_sash__K-9lB.sash-module_hover__80W6I:before,.sash-module_sash__K-9lB.sash-module_active__bJspD:before{background:var(--focus-border)}
2
+ /*$vite$:1*/`,document.head.appendChild(ft);function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Dt.apply(null,arguments)}var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function It(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zn,qn={exports:{}};/*!
2
3
  Copyright (c) 2018 Jed Watson.
3
4
  Licensed under the MIT License (MIT), see
4
5
  http://jedwatson.github.io/classnames
5
- */var ot,Et,Vt,di=(It||(It=1,ot=xt,(function(){var u={}.hasOwnProperty;function e(){for(var i=[],r=0;r<arguments.length;r++){var l=arguments[r];if(l){var m=typeof l;if(m==="string"||m==="number")i.push(l);else if(Array.isArray(l)){if(l.length){var g=e.apply(null,l);g&&i.push(g)}}else if(m==="object")if(l.toString===Object.prototype.toString)for(var d in l)u.call(l,d)&&l[d]&&i.push(d);else i.push(l.toString())}}return i.join(" ")}ot.exports?(e.default=e,ot.exports=e):window.classNames=e})()),xt.exports),at=Pe(di),jt,re=Pe((function(){if(Vt)return Et;Vt=1;var u=/^\s+|\s+$/g,e=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,r=/^0o[0-7]+$/i,l=parseInt,m=Object.prototype.toString;function g(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}function d(n){if(typeof n=="number")return n;if((function(a){return typeof a=="symbol"||(function(y){return!!y&&typeof y=="object"})(a)&&m.call(a)=="[object Symbol]"})(n))return NaN;if(g(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=g(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=n.replace(u,"");var c=i.test(n);return c||r.test(n)?l(n.slice(2),c?2:8):e.test(n)?NaN:+n}return Et=function(n,o,c){return c===void 0&&(c=o,o=void 0),c!==void 0&&(c=(c=d(c))==c?c:0),o!==void 0&&(o=(o=d(o))==o?o:0),(function(a,y,w){return a==a&&(w!==void 0&&(a=a<=w?a:w),y!==void 0&&(a=a>=y?a:y)),a})(d(n),o,c)}})()),ut={exports:{}},mi=(jt||(jt=1,(function(u,e){var i="__lodash_hash_undefined__",r=9007199254740991,l="[object Arguments]",m="[object Array]",g="[object Boolean]",d="[object Date]",n="[object Error]",o="[object Function]",c="[object Map]",a="[object Number]",y="[object Object]",w="[object Promise]",v="[object RegExp]",z="[object Set]",S="[object String]",p="[object Symbol]",_="[object WeakMap]",I="[object ArrayBuffer]",E="[object DataView]",C=/^\[object .+?Constructor\]$/,X=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[l]=h[m]=h[I]=h[g]=h[E]=h[d]=h[n]=h[o]=h[c]=h[a]=h[y]=h[v]=h[z]=h[S]=h[_]=!1;var L=typeof ve=="object"&&ve&&ve.Object===Object&&ve,K=typeof self=="object"&&self&&self.Object===Object&&self,F=L||K||Function("return this")(),oe=e&&!e.nodeType&&e,O=oe&&u&&!u.nodeType&&u,D=O&&O.exports===oe,k=D&&L.process,R=(function(){try{return k&&k.binding&&k.binding("util")}catch{}})(),N=R&&R.isTypedArray;function A(t,s){for(var f=-1,b=t==null?0:t.length;++f<b;)if(s(t[f],f,t))return!0;return!1}function W(t){var s=-1,f=Array(t.size);return t.forEach(function(b,T){f[++s]=[T,b]}),f}function ze(t){var s=-1,f=Array(t.size);return t.forEach(function(b){f[++s]=b}),f}var pe,J,we,Q=Array.prototype,le=Function.prototype,ce=Object.prototype,Le=F["__core-js_shared__"],Oe=le.toString,x=ce.hasOwnProperty,V=(pe=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+pe:"",$=ce.toString,B=RegExp("^"+Oe.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kt=D?F.Buffer:void 0,Ge=F.Symbol,Zt=F.Uint8Array,Qt=ce.propertyIsEnumerable,Ci=Q.splice,Se=Ge?Ge.toStringTag:void 0,qt=Object.getOwnPropertySymbols,Ti=Kt?Kt.isBuffer:void 0,Fi=(J=Object.keys,we=Object,function(t){return J(we(t))}),vt=Re(F,"DataView"),Ce=Re(F,"Map"),pt=Re(F,"Promise"),wt=Re(F,"Set"),yt=Re(F,"WeakMap"),Te=Re(Object,"create"),ki=Ee(vt),$i=Ee(Ce),Hi=Ee(pt),Bi=Ee(wt),Yi=Ee(yt),ei=Ge?Ge.prototype:void 0,gt=ei?ei.valueOf:void 0;function Ie(t){var s=-1,f=t==null?0:t.length;for(this.clear();++s<f;){var b=t[s];this.set(b[0],b[1])}}function he(t){var s=-1,f=t==null?0:t.length;for(this.clear();++s<f;){var b=t[s];this.set(b[0],b[1])}}function xe(t){var s=-1,f=t==null?0:t.length;for(this.clear();++s<f;){var b=t[s];this.set(b[0],b[1])}}function Ue(t){var s=-1,f=t==null?0:t.length;for(this.__data__=new xe;++s<f;)this.add(t[s])}function ye(t){var s=this.__data__=new he(t);this.size=s.size}function Wi(t,s){var f=Ke(t),b=!f&&Ki(t),T=!f&&!b&&bt(t),j=!f&&!b&&!T&&li(t),H=f||b||T||j,Y=H?(function(U,ae){for(var fe=-1,Z=Array(U);++fe<U;)Z[fe]=ae(fe);return Z})(t.length,String):[],se=Y.length;for(var G in t)!x.call(t,G)||H&&(G=="length"||T&&(G=="offset"||G=="parent")||j&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||Ji(G,se))||Y.push(G);return Y}function Xe(t,s){for(var f=t.length;f--;)if(si(t[f][0],s))return f;return-1}function Fe(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Se&&Se in Object(t)?(function(s){var f=x.call(s,Se),b=s[Se];try{s[Se]=void 0;var T=!0}catch{}var j=$.call(s);return T&&(f?s[Se]=b:delete s[Se]),j})(t):(function(s){return $.call(s)})(t)}function ti(t){return ke(t)&&Fe(t)==l}function ii(t,s,f,b,T){return t===s||(t==null||s==null||!ke(t)&&!ke(s)?t!=t&&s!=s:(function(j,H,Y,se,G,U){var ae=Ke(j),fe=Ke(H),Z=ae?m:ge(j),de=fe?m:ge(H),Ne=(Z=Z==l?y:Z)==y,Ze=(de=de==l?y:de)==y,Me=Z==de;if(Me&&bt(j)){if(!bt(H))return!1;ae=!0,Ne=!1}if(Me&&!Ne)return U||(U=new ye),ae||li(j)?ni(j,H,Y,se,G,U):(function(P,M,Qe,be,_t,ne,me){switch(Qe){case E:if(P.byteLength!=M.byteLength||P.byteOffset!=M.byteOffset)return!1;P=P.buffer,M=M.buffer;case I:return!(P.byteLength!=M.byteLength||!ne(new Zt(P),new Zt(M)));case g:case d:case a:return si(+P,+M);case n:return P.name==M.name&&P.message==M.message;case v:case S:return P==M+"";case c:var _e=W;case z:var He=1&be;if(_e||(_e=ze),P.size!=M.size&&!He)return!1;var qe=me.get(P);if(qe)return qe==M;be|=2,me.set(P,M);var zt=ni(_e(P),_e(M),be,_t,ne,me);return me.delete(P),zt;case p:if(gt)return gt.call(P)==gt.call(M)}return!1})(j,H,Z,Y,se,G,U);if(!(1&Y)){var $e=Ne&&x.call(j,"__wrapped__"),ci=Ze&&x.call(H,"__wrapped__");if($e||ci){var Qi=$e?j.value():j,qi=ci?H.value():H;return U||(U=new ye),G(Qi,qi,Y,se,U)}}return!!Me&&(U||(U=new ye),(function(P,M,Qe,be,_t,ne){var me=1&Qe,_e=ri(P),He=_e.length,qe=ri(M),zt=qe.length;if(He!=zt&&!me)return!1;for(var et=He;et--;){var Ve=_e[et];if(!(me?Ve in M:x.call(M,Ve)))return!1}var hi=ne.get(P);if(hi&&ne.get(M))return hi==M;var tt=!0;ne.set(P,M),ne.set(M,P);for(var St=me;++et<He;){var it=P[Ve=_e[et]],nt=M[Ve];if(be)var fi=me?be(nt,it,Ve,M,P,ne):be(it,nt,Ve,P,M,ne);if(!(fi===void 0?it===nt||_t(it,nt,Qe,be,ne):fi)){tt=!1;break}St||(St=Ve=="constructor")}if(tt&&!St){var rt=P.constructor,st=M.constructor;rt==st||!("constructor"in P)||!("constructor"in M)||typeof rt=="function"&&rt instanceof rt&&typeof st=="function"&&st instanceof st||(tt=!1)}return ne.delete(P),ne.delete(M),tt})(j,H,Y,se,G,U))})(t,s,f,b,ii,T))}function Gi(t){return!(!ui(t)||(function(s){return!!V&&V in s})(t))&&(oi(t)?B:C).test(Ee(t))}function Ui(t){if(f=(s=t)&&s.constructor,b=typeof f=="function"&&f.prototype||ce,s!==b)return Fi(t);var s,f,b,T=[];for(var j in Object(t))x.call(t,j)&&j!="constructor"&&T.push(j);return T}function ni(t,s,f,b,T,j){var H=1&f,Y=t.length,se=s.length;if(Y!=se&&!(H&&se>Y))return!1;var G=j.get(t);if(G&&j.get(s))return G==s;var U=-1,ae=!0,fe=2&f?new Ue:void 0;for(j.set(t,s),j.set(s,t);++U<Y;){var Z=t[U],de=s[U];if(b)var Ne=H?b(de,Z,U,s,t,j):b(Z,de,U,t,s,j);if(Ne!==void 0){if(Ne)continue;ae=!1;break}if(fe){if(!A(s,function(Ze,Me){if($e=Me,!fe.has($e)&&(Z===Ze||T(Z,Ze,f,b,j)))return fe.push(Me);var $e})){ae=!1;break}}else if(Z!==de&&!T(Z,de,f,b,j)){ae=!1;break}}return j.delete(t),j.delete(s),ae}function ri(t){return(function(s,f,b){var T=f(s);return Ke(s)?T:(function(j,H){for(var Y=-1,se=H.length,G=j.length;++Y<se;)j[G+Y]=H[Y];return j})(T,b(s))})(t,Zi,Xi)}function Je(t,s){var f,b,T=t.__data__;return((b=typeof(f=s))=="string"||b=="number"||b=="symbol"||b=="boolean"?f!=="__proto__":f===null)?T[typeof s=="string"?"string":"hash"]:T.map}function Re(t,s){var f=(function(b,T){return b==null?void 0:b[T]})(t,s);return Gi(f)?f:void 0}Ie.prototype.clear=function(){this.__data__=Te?Te(null):{},this.size=0},Ie.prototype.delete=function(t){var s=this.has(t)&&delete this.__data__[t];return this.size-=s?1:0,s},Ie.prototype.get=function(t){var s=this.__data__;if(Te){var f=s[t];return f===i?void 0:f}return x.call(s,t)?s[t]:void 0},Ie.prototype.has=function(t){var s=this.__data__;return Te?s[t]!==void 0:x.call(s,t)},Ie.prototype.set=function(t,s){var f=this.__data__;return this.size+=this.has(t)?0:1,f[t]=Te&&s===void 0?i:s,this},he.prototype.clear=function(){this.__data__=[],this.size=0},he.prototype.delete=function(t){var s=this.__data__,f=Xe(s,t);return!(f<0||(f==s.length-1?s.pop():Ci.call(s,f,1),--this.size,0))},he.prototype.get=function(t){var s=this.__data__,f=Xe(s,t);return f<0?void 0:s[f][1]},he.prototype.has=function(t){return Xe(this.__data__,t)>-1},he.prototype.set=function(t,s){var f=this.__data__,b=Xe(f,t);return b<0?(++this.size,f.push([t,s])):f[b][1]=s,this},xe.prototype.clear=function(){this.size=0,this.__data__={hash:new Ie,map:new(Ce||he),string:new Ie}},xe.prototype.delete=function(t){var s=Je(this,t).delete(t);return this.size-=s?1:0,s},xe.prototype.get=function(t){return Je(this,t).get(t)},xe.prototype.has=function(t){return Je(this,t).has(t)},xe.prototype.set=function(t,s){var f=Je(this,t),b=f.size;return f.set(t,s),this.size+=f.size==b?0:1,this},Ue.prototype.add=Ue.prototype.push=function(t){return this.__data__.set(t,i),this},Ue.prototype.has=function(t){return this.__data__.has(t)},ye.prototype.clear=function(){this.__data__=new he,this.size=0},ye.prototype.delete=function(t){var s=this.__data__,f=s.delete(t);return this.size=s.size,f},ye.prototype.get=function(t){return this.__data__.get(t)},ye.prototype.has=function(t){return this.__data__.has(t)},ye.prototype.set=function(t,s){var f=this.__data__;if(f instanceof he){var b=f.__data__;if(!Ce||b.length<199)return b.push([t,s]),this.size=++f.size,this;f=this.__data__=new xe(b)}return f.set(t,s),this.size=f.size,this};var Xi=qt?function(t){return t==null?[]:(t=Object(t),(function(s,f){for(var b=-1,T=s==null?0:s.length,j=0,H=[];++b<T;){var Y=s[b];f(Y,b,s)&&(H[j++]=Y)}return H})(qt(t),function(s){return Qt.call(t,s)}))}:function(){return[]},ge=Fe;function Ji(t,s){return!!(s=s??r)&&(typeof t=="number"||X.test(t))&&t>-1&&t%1==0&&t<s}function Ee(t){if(t!=null){try{return Oe.call(t)}catch{}try{return t+""}catch{}}return""}function si(t,s){return t===s||t!=t&&s!=s}(vt&&ge(new vt(new ArrayBuffer(1)))!=E||Ce&&ge(new Ce)!=c||pt&&ge(pt.resolve())!=w||wt&&ge(new wt)!=z||yt&&ge(new yt)!=_)&&(ge=function(t){var s=Fe(t),f=s==y?t.constructor:void 0,b=f?Ee(f):"";if(b)switch(b){case ki:return E;case $i:return c;case Hi:return w;case Bi:return z;case Yi:return _}return s});var Ki=ti((function(){return arguments})())?ti:function(t){return ke(t)&&x.call(t,"callee")&&!Qt.call(t,"callee")},Ke=Array.isArray,bt=Ti||function(){return!1};function oi(t){if(!ui(t))return!1;var s=Fe(t);return s==o||s=="[object GeneratorFunction]"||s=="[object AsyncFunction]"||s=="[object Proxy]"}function ai(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}function ui(t){var s=typeof t;return t!=null&&(s=="object"||s=="function")}function ke(t){return t!=null&&typeof t=="object"}var li=N?(function(t){return function(s){return t(s)}})(N):function(t){return ke(t)&&ai(t.length)&&!!h[Fe(t)]};function Zi(t){return(s=t)!=null&&ai(s.length)&&!oi(s)?Wi(t):Ui(t);var s}u.exports=function(t,s){return ii(t,s)}})(ut,ut.exports)),ut.exports),vi=Pe(mi);function Dt(u,e,i){return u[e]?u[e][0]?u[e][0][i]:u[e][i]:e==="contentBoxSize"?u.contentRect[i==="inlineSize"?"width":"height"]:void 0}function pi(u){u===void 0&&(u={});var e=u.onResize,i=window.React.useRef(void 0);i.current=e;var r=u.round||Math.round,l=window.React.useRef(),m=window.React.useState({width:void 0,height:void 0}),g=m[0],d=m[1],n=window.React.useRef(!1);window.React.useEffect(function(){return n.current=!1,function(){n.current=!0}},[]);var o=window.React.useRef({width:void 0,height:void 0}),c=(function(a,y){var w=window.React.useRef(null),v=window.React.useRef(null);v.current=y;var z=window.React.useRef(null);window.React.useEffect(function(){S()});var S=window.React.useCallback(function(){var p=z.current,_=v.current,I=p||(_?_ instanceof Element?_:_.current:null);w.current&&w.current.element===I&&w.current.subscriber===a||(w.current&&w.current.cleanup&&w.current.cleanup(),w.current={element:I,subscriber:a,cleanup:I?a(I):void 0})},[a]);return window.React.useEffect(function(){return function(){w.current&&w.current.cleanup&&(w.current.cleanup(),w.current=null)}},[]),window.React.useCallback(function(p){z.current=p,S()},[S])})(window.React.useCallback(function(a){return l.current&&l.current.box===u.box&&l.current.round===r||(l.current={box:u.box,round:r,instance:new ResizeObserver(function(y){var w=y[0],v=u.box==="border-box"?"borderBoxSize":u.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",z=Dt(w,v,"inlineSize"),S=Dt(w,v,"blockSize"),p=z?r(z):void 0,_=S?r(S):void 0;if(o.current.width!==p||o.current.height!==_){var I={width:p,height:_};o.current.width=p,o.current.height=_,i.current?i.current(I):n.current||d(I)}})}),l.current.instance.observe(a,{box:u.box}),function(){l.current&&l.current.instance.unobserve(a)}},[u.box,r]),u.ref);return window.React.useMemo(function(){return{ref:c,width:g.width,height:g.height}},[c,g.width,g.height])}var wi="allotment-module_splitView__L-yRc",yi="allotment-module_sashContainer__fzwJF",gi="allotment-module_splitViewContainer__rQnVa",Lt="allotment-module_splitViewView__MGZ6O",bi="allotment-module_vertical__WSwwa",_i="allotment-module_horizontal__7doS8",zi="allotment-module_separatorBorder__x-rDS";let Ae,Ot=!1,Rt=!1;typeof navigator=="object"&&(Ae=navigator.userAgent,Rt=Ae.indexOf("Macintosh")>=0,Ot=(Ae.indexOf("Macintosh")>=0||Ae.indexOf("iPad")>=0||Ae.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);const Nt=Ot,Si=Rt,Mt=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?window.React.useLayoutEffect:window.React.useEffect;class Ii{constructor(){this._size=void 0}getSize(){return this._size}setSize(e){this._size=e}}function Be(u,e){const i=u.length,r=i-e.length;return r>=0&&u.slice(r,i)===e}var Pt,At={exports:{}},Ct,Tt,xi=(Pt||(Pt=1,(function(u){var e=Object.prototype.hasOwnProperty,i="~";function r(){}function l(n,o,c){this.fn=n,this.context=o,this.once=c||!1}function m(n,o,c,a,y){if(typeof c!="function")throw new TypeError("The listener must be a function");var w=new l(c,a||n,y),v=i?i+o:o;return n._events[v]?n._events[v].fn?n._events[v]=[n._events[v],w]:n._events[v].push(w):(n._events[v]=w,n._eventsCount++),n}function g(n,o){--n._eventsCount==0?n._events=new r:delete n._events[o]}function d(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(i=!1)),d.prototype.eventNames=function(){var n,o,c=[];if(this._eventsCount===0)return c;for(o in n=this._events)e.call(n,o)&&c.push(i?o.slice(1):o);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(n)):c},d.prototype.listeners=function(n){var o=i?i+n:n,c=this._events[o];if(!c)return[];if(c.fn)return[c.fn];for(var a=0,y=c.length,w=new Array(y);a<y;a++)w[a]=c[a].fn;return w},d.prototype.listenerCount=function(n){var o=i?i+n:n,c=this._events[o];return c?c.fn?1:c.length:0},d.prototype.emit=function(n,o,c,a,y,w){var v=i?i+n:n;if(!this._events[v])return!1;var z,S,p=this._events[v],_=arguments.length;if(p.fn){switch(p.once&&this.removeListener(n,p.fn,void 0,!0),_){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,o),!0;case 3:return p.fn.call(p.context,o,c),!0;case 4:return p.fn.call(p.context,o,c,a),!0;case 5:return p.fn.call(p.context,o,c,a,y),!0;case 6:return p.fn.call(p.context,o,c,a,y,w),!0}for(S=1,z=new Array(_-1);S<_;S++)z[S-1]=arguments[S];p.fn.apply(p.context,z)}else{var I,E=p.length;for(S=0;S<E;S++)switch(p[S].once&&this.removeListener(n,p[S].fn,void 0,!0),_){case 1:p[S].fn.call(p[S].context);break;case 2:p[S].fn.call(p[S].context,o);break;case 3:p[S].fn.call(p[S].context,o,c);break;case 4:p[S].fn.call(p[S].context,o,c,a);break;default:if(!z)for(I=1,z=new Array(_-1);I<_;I++)z[I-1]=arguments[I];p[S].fn.apply(p[S].context,z)}}return!0},d.prototype.on=function(n,o,c){return m(this,n,o,c,!1)},d.prototype.once=function(n,o,c){return m(this,n,o,c,!0)},d.prototype.removeListener=function(n,o,c,a){var y=i?i+n:n;if(!this._events[y])return this;if(!o)return g(this,y),this;var w=this._events[y];if(w.fn)w.fn!==o||a&&!w.once||c&&w.context!==c||g(this,y);else{for(var v=0,z=[],S=w.length;v<S;v++)(w[v].fn!==o||a&&!w[v].once||c&&w[v].context!==c)&&z.push(w[v]);z.length?this._events[y]=z.length===1?z[0]:z:g(this,y)}return this},d.prototype.removeAllListeners=function(n){var o;return n?(o=i?i+n:n,this._events[o]&&g(this,o)):(this._events=new r,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=i,d.EventEmitter=d,u.exports=d})(At)),At.exports),lt=Pe(xi);function Ft(u,e){const i=u.indexOf(e);i>-1&&(u.splice(i,1),u.unshift(e))}function ct(u,e){const i=u.indexOf(e);i>-1&&(u.splice(i,1),u.push(e))}function ee(u,e,i=1){const r=Math.max(0,Math.ceil((e-u)/i)),l=new Array(r);let m=-1;for(;++m<r;)l[m]=u+m*i;return l}var Ei=Pe((function(){if(Tt)return Ct;Tt=1;var u=/^\s+|\s+$/g,e=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,r=/^0o[0-7]+$/i,l=parseInt,m=typeof ve=="object"&&ve&&ve.Object===Object&&ve,g=typeof self=="object"&&self&&self.Object===Object&&self,d=m||g||Function("return this")(),n=Object.prototype.toString,o=Math.max,c=Math.min,a=function(){return d.Date.now()};function y(v){var z=typeof v;return!!v&&(z=="object"||z=="function")}function w(v){if(typeof v=="number")return v;if((function(p){return typeof p=="symbol"||(function(_){return!!_&&typeof _=="object"})(p)&&n.call(p)=="[object Symbol]"})(v))return NaN;if(y(v)){var z=typeof v.valueOf=="function"?v.valueOf():v;v=y(z)?z+"":z}if(typeof v!="string")return v===0?v:+v;v=v.replace(u,"");var S=i.test(v);return S||r.test(v)?l(v.slice(2),S?2:8):e.test(v)?NaN:+v}return Ct=function(v,z,S){var p,_,I,E,C,X,h=0,L=!1,K=!1,F=!0;if(typeof v!="function")throw new TypeError("Expected a function");function oe(N){var A=p,W=_;return p=_=void 0,h=N,E=v.apply(W,A)}function O(N){var A=N-X;return X===void 0||A>=z||A<0||K&&N-h>=I}function D(){var N=a();if(O(N))return k(N);C=setTimeout(D,(function(A){var W=z-(A-X);return K?c(W,I-(A-h)):W})(N))}function k(N){return C=void 0,F&&p?oe(N):(p=_=void 0,E)}function R(){var N=a(),A=O(N);if(p=arguments,_=this,X=N,A){if(C===void 0)return(function(W){return h=W,C=setTimeout(D,z),L?oe(W):E})(X);if(K)return C=setTimeout(D,z),oe(X)}return C===void 0&&(C=setTimeout(D,z)),E}return z=w(z)||0,y(S)&&(L=!!S.leading,I=(K="maxWait"in S)?o(w(S.maxWait)||0,z):I,F="trailing"in S?!!S.trailing:F),R.cancel=function(){C!==void 0&&clearTimeout(C),h=0,p=X=_=C=void 0},R.flush=function(){return C===void 0?E:k(a())},R}})()),Vi="sash-module_sash__K-9lB",ji="sash-module_disabled__Hm-wx",Di="sash-module_mac__Jf6OJ",kt="sash-module_vertical__pB-rs",Li="sash-module_minimum__-UKxp",Oi="sash-module_maximum__TCWxD",$t="sash-module_horizontal__kFbiw",ht="sash-module_hover__80W6I",ft="sash-module_active__bJspD";let te=(function(u){return u.Vertical="VERTICAL",u.Horizontal="HORIZONTAL",u})({}),q=(function(u){return u.Disabled="DISABLED",u.Minimum="MINIMUM",u.Maximum="MAXIMUM",u.Enabled="ENABLED",u})({}),Ht=Nt?20:8;const Bt=new lt;class Yt extends lt{get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle(ji,e===q.Disabled),this.el.classList.toggle("sash-disabled",e===q.Disabled),this.el.classList.toggle(Li,e===q.Minimum),this.el.classList.toggle("sash-minimum",e===q.Minimum),this.el.classList.toggle(Oi,e===q.Maximum),this.el.classList.toggle("sash-maximum",e===q.Maximum),this._state=e,this.emit("enablementChange",e))}constructor(e,i,r){var l;super(),this.el=void 0,this.layoutProvider=void 0,this.orientation=void 0,this.size=void 0,this.hoverDelay=300,this.hoverDelayer=Ei(m=>m.classList.add("sash-hover",ht),this.hoverDelay),this._state=q.Enabled,this.onPointerStart=m=>{const g=m.pageX,d=m.pageY,n={startX:g,currentX:g,startY:d,currentY:d};this.el.classList.add("sash-active",ft),this.emit("start",n),this.el.setPointerCapture(m.pointerId);const o=a=>{a.preventDefault();const y={startX:g,currentX:a.pageX,startY:d,currentY:a.pageY};this.emit("change",y)},c=a=>{a.preventDefault(),this.el.classList.remove("sash-active",ft),this.hoverDelayer.cancel(),this.emit("end"),this.el.releasePointerCapture(a.pointerId),window.removeEventListener("pointermove",o),window.removeEventListener("pointerup",c)};window.addEventListener("pointermove",o),window.addEventListener("pointerup",c)},this.onPointerDoublePress=()=>{this.emit("reset")},this.onMouseEnter=()=>{this.el.classList.contains(ft)?(this.hoverDelayer.cancel(),this.el.classList.add("sash-hover",ht)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove("sash-hover",ht)},this.el=document.createElement("div"),this.el.classList.add("sash",Vi),this.el.dataset.testid="sash",e.append(this.el),Si&&this.el.classList.add("sash-mac",Di),this.el.addEventListener("pointerdown",this.onPointerStart),this.el.addEventListener("dblclick",this.onPointerDoublePress),this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave),typeof r.size=="number"?(this.size=r.size,r.orientation===te.Vertical?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=Ht,Bt.on("onDidChangeGlobalSize",m=>{this.size=m,this.layout()})),this.layoutProvider=i,this.orientation=(l=r.orientation)!=null?l:te.Vertical,this.orientation===te.Horizontal?(this.el.classList.add("sash-horizontal",$t),this.el.classList.remove("sash-vertical",kt)):(this.el.classList.remove("sash-horizontal",$t),this.el.classList.add("sash-vertical",kt)),this.layout()}layout(){if(this.orientation===te.Vertical){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}dispose(){this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",()=>this.onMouseLeave),this.el.remove()}}let Ye;var dt;(dt=Ye||(Ye={})).Distribute={type:"distribute"},dt.Split=function(u){return{type:"split",index:u}},dt.Invisible=function(u){return{type:"invisible",cachedVisibleSize:u}};let ie=(function(u){return u.Normal="NORMAL",u.Low="LOW",u.High="HIGH",u})({});class Wt{constructor(e,i,r){this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=e,this.view=i,this.container.classList.add("split-view-view",Lt),this.container.dataset.testid="split-view-view",typeof r=="number"?(this._size=r,this._cachedVisibleSize=void 0,e.classList.add("split-view-view-visible")):(this._size=0,this._cachedVisibleSize=r.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get priority(){return this.view.priority}get snap(){return!!this.view.snap}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return this._cachedVisibleSize===void 0}setVisible(e,i){e!==this.visible&&(e?(this.size=re(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof i=="number"?i:this.size,this.size=0),this.container.classList.toggle("split-view-view-visible",e),this.view.setVisible&&this.view.setVisible(e))}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}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e){this.layoutContainer(e),this.view.layout(this.size,e)}}class Ri extends Wt{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}class Ni extends Wt{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class Mi extends lt{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())}constructor(e,i={},r,l,m){var g,d;if(super(),this.onDidChange=void 0,this.onDidDragStart=void 0,this.onDidDragEnd=void 0,this.orientation=void 0,this.sashContainer=void 0,this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.sashDragState=void 0,this.proportionalLayout=void 0,this.getSashOrthogonalSize=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onSashEnd=n=>{this.emit("sashchange",n),this.saveProportions();for(const o of this.viewItems)o.enabled=!0},this.orientation=(g=i.orientation)!=null?g:te.Vertical,this.proportionalLayout=(d=i.proportionalLayout)!=null?d:!0,this.getSashOrthogonalSize=i.getSashOrthogonalSize,r&&(this.onDidChange=r),l&&(this.onDidDragStart=l),m&&(this.onDidDragEnd=m),this.sashContainer=document.createElement("div"),this.sashContainer.classList.add("sash-container",yi),e.prepend(this.sashContainer),i.descriptor){this.size=i.descriptor.size;for(const[n,o]of i.descriptor.views.entries()){const c=o.size,a=o.container,y=o.view;this.addView(a,y,c,n,!0)}this.contentSize=this.viewItems.reduce((n,o)=>n+o.size,0),this.saveProportions()}}addView(e,i,r,l=this.viewItems.length,m){let g;g=typeof r=="number"?r:r.type==="split"?this.getViewSize(r.index)/2:r.type==="invisible"?{cachedVisibleSize:r.cachedVisibleSize}:i.minimumSize;const d=this.orientation===te.Vertical?new Ni(e,i,g):new Ri(e,i,g);if(this.viewItems.splice(l,0,d),this.viewItems.length>1){const n=this.orientation===te.Vertical?new Yt(this.sashContainer,{getHorizontalSashTop:a=>this.getSashPosition(a),getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:te.Horizontal}):new Yt(this.sashContainer,{getVerticalSashLeft:a=>this.getSashPosition(a),getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:te.Vertical}),o=this.orientation===te.Vertical?a=>({sash:n,start:a.startY,current:a.currentY}):a=>({sash:n,start:a.startX,current:a.currentX});n.on("start",a=>{var y;this.emit("sashDragStart"),this.onSashStart(o(a));const w=this.viewItems.map(v=>v.size);(y=this.onDidDragStart)==null||y.call(this,w)}),n.on("change",a=>this.onSashChange(o(a))),n.on("end",()=>{var a;this.emit("sashDragEnd"),this.onSashEnd(this.sashItems.findIndex(w=>w.sash===n));const y=this.viewItems.map(w=>w.size);(a=this.onDidDragEnd)==null||a.call(this,y)}),n.on("reset",()=>{const a=this.sashItems.findIndex(S=>S.sash===n),y=ee(a,-1,-1),w=ee(a+1,this.viewItems.length),v=this.findFirstSnapIndex(y),z=this.findFirstSnapIndex(w);(typeof v!="number"||this.viewItems[v].visible)&&(typeof z!="number"||this.viewItems[z].visible)&&this.emit("sashreset",a)});const c={sash:n};this.sashItems.splice(l-1,0,c)}m||this.relayout(),m||typeof r=="number"||r.type!=="distribute"||this.distributeViewSizes()}removeView(e,i){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");const r=this.viewItems.splice(e,1)[0].view;if(this.viewItems.length>=1){const l=Math.max(e-1,0);this.sashItems.splice(l,1)[0].sash.dispose()}return this.relayout(),i&&i.type==="distribute"&&this.distributeViewSizes(),r}moveView(e,i,r){const l=this.getViewCachedVisibleSize(i),m=l===void 0?this.getViewSize(i):Ye.Invisible(l),g=this.removeView(i);this.addView(e,g,m,r)}getViewCachedVisibleSize(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].cachedVisibleSize}layout(e=this.size){const i=Math.max(this.size,this.contentSize);if(this.size=e,this.proportions)for(let r=0;r<this.viewItems.length;r++){const l=this.viewItems[r];l.size=re(Math.round(this.proportions[r]*e),l.minimumSize,l.maximumSize)}else{const r=ee(0,this.viewItems.length),l=r.filter(g=>this.viewItems[g].priority===ie.Low),m=r.filter(g=>this.viewItems[g].priority===ie.High);this.resize(this.viewItems.length-1,e-i,void 0,l,m)}this.distributeEmptySpace(),this.layoutViews()}resizeView(e,i){if(e<0||e>=this.viewItems.length)return;const r=ee(0,this.viewItems.length).filter(d=>d!==e),l=[...r.filter(d=>this.viewItems[d].priority===ie.Low),e],m=r.filter(d=>this.viewItems[d].priority===ie.High),g=this.viewItems[e];i=Math.round(i),i=re(i,g.minimumSize,Math.min(g.maximumSize,this.size)),g.size=i,this.relayout(l,m)}resizeViews(e){for(let i=0;i<e.length;i++){const r=this.viewItems[i];let l=e[i];l=Math.round(l),l=re(l,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=l}this.contentSize=this.viewItems.reduce((i,r)=>i+r.size,0),this.saveProportions(),this.layout(this.size)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}isViewVisible(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].visible}setViewVisible(e,i){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");this.viewItems[e].setVisible(i),this.distributeEmptySpace(e),this.layoutViews(),this.saveProportions()}distributeViewSizes(){const e=[];let i=0;for(const d of this.viewItems)d.maximumSize-d.minimumSize>0&&(e.push(d),i+=d.size);const r=Math.floor(i/e.length);for(const d of e)d.size=re(r,d.minimumSize,d.maximumSize);const l=ee(0,this.viewItems.length),m=l.filter(d=>this.viewItems[d].priority===ie.Low),g=l.filter(d=>this.viewItems[d].priority===ie.High);this.relayout(m,g)}dispose(){this.sashItems.forEach(e=>e.sash.dispose()),this.sashItems=[],this.sashContainer.remove()}relayout(e,i){const r=this.viewItems.reduce((l,m)=>l+m.size,0);this.resize(this.viewItems.length-1,this.size-r,void 0,e,i),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}onSashStart({sash:e,start:i}){const r=this.sashItems.findIndex(l=>l.sash===e);(l=>{const m=this.viewItems.map(_=>_.size);let g,d,n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;const c=ee(r,-1,-1),a=ee(r+1,this.viewItems.length),y=c.reduce((_,I)=>_+(this.viewItems[I].minimumSize-m[I]),0),w=c.reduce((_,I)=>_+(this.viewItems[I].viewMaximumSize-m[I]),0),v=a.length===0?Number.POSITIVE_INFINITY:a.reduce((_,I)=>_+(m[I]-this.viewItems[I].minimumSize),0),z=a.length===0?Number.NEGATIVE_INFINITY:a.reduce((_,I)=>_+(m[I]-this.viewItems[I].viewMaximumSize),0);n=Math.max(y,z),o=Math.min(v,w);const S=this.findFirstSnapIndex(c),p=this.findFirstSnapIndex(a);if(typeof S=="number"){const _=this.viewItems[S],I=Math.floor(_.viewMinimumSize/2);g={index:S,limitDelta:_.visible?n-I:n+I,size:_.size}}if(typeof p=="number"){const _=this.viewItems[p],I=Math.floor(_.viewMinimumSize/2);d={index:p,limitDelta:_.visible?o+I:o-I,size:_.size}}this.sashDragState={start:l,current:l,index:r,sizes:m,minDelta:n,maxDelta:o,snapBefore:g,snapAfter:d}})(i)}onSashChange({current:e}){const{index:i,start:r,sizes:l,minDelta:m,maxDelta:g,snapBefore:d,snapAfter:n}=this.sashDragState;this.sashDragState.current=e;const o=e-r;this.resize(i,o,l,void 0,void 0,m,g,d,n),this.distributeEmptySpace(),this.layoutViews()}getSashPosition(e){let i=0;for(let r=0;r<this.sashItems.length;r++)if(i+=this.viewItems[r].size,this.sashItems[r].sash===e)return i;return 0}resize(e,i,r=this.viewItems.map(c=>c.size),l,m,g=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY,n,o){if(e<0||e>=this.viewItems.length)return 0;const c=ee(e,-1,-1),a=ee(e+1,this.viewItems.length);if(m)for(const h of m)Ft(c,h),Ft(a,h);if(l)for(const h of l)ct(c,h),ct(a,h);const y=c.map(h=>this.viewItems[h]),w=c.map(h=>r[h]),v=a.map(h=>this.viewItems[h]),z=a.map(h=>r[h]),S=c.reduce((h,L)=>h+(this.viewItems[L].minimumSize-r[L]),0),p=c.reduce((h,L)=>h+(this.viewItems[L].maximumSize-r[L]),0),_=a.length===0?Number.POSITIVE_INFINITY:a.reduce((h,L)=>h+(r[L]-this.viewItems[L].minimumSize),0),I=a.length===0?Number.NEGATIVE_INFINITY:a.reduce((h,L)=>h+(r[L]-this.viewItems[L].maximumSize),0),E=Math.max(S,I,g),C=Math.min(_,p,d);let X=!1;if(n){const h=this.viewItems[n.index],L=i>=n.limitDelta;X=L!==h.visible,h.setVisible(L,n.size)}if(!X&&o){const h=this.viewItems[o.index],L=i<o.limitDelta;X=L!==h.visible,h.setVisible(L,o.size)}if(X)return this.resize(e,i,r,l,m,g,d);for(let h=0,L=i=re(i,E,C);h<y.length;h++){const K=y[h],F=re(w[h]+L,K.minimumSize,K.maximumSize);L-=F-w[h],K.size=F}for(let h=0,L=i;h<v.length;h++){const K=v[h],F=re(z[h]-L,K.minimumSize,K.maximumSize);L+=F-z[h],K.size=F}return i}distributeEmptySpace(e){const i=this.viewItems.reduce((o,c)=>o+c.size,0);let r=this.size-i;const l=ee(0,this.viewItems.length),m=[],g=l.filter(o=>this.viewItems[o].priority===ie.Low),d=l.filter(o=>this.viewItems[o].priority===ie.Normal),n=l.filter(o=>this.viewItems[o].priority===ie.High);m.push(...n,...d,...g),typeof e=="number"&&ct(m,e);for(let o=0;r!==0&&o<m.length;o++){const c=this.viewItems[m[o]],a=re(c.size+r,c.minimumSize,c.maximumSize);r-=a-c.size,c.size=a}}layoutViews(){var e;this.contentSize=this.viewItems.reduce((r,l)=>r+l.size,0);let i=0;for(const r of this.viewItems)r.layout(i),i+=r.size;(e=this.onDidChange)!=null&&e.call(this,this.viewItems.map(r=>r.size)),this.sashItems.forEach(r=>r.sash.layout()),this.updateSashEnablement()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}updateSashEnablement(){let e=!1;const i=this.viewItems.map(n=>e=n.size-n.minimumSize>0||e);e=!1;const r=this.viewItems.map(n=>e=n.maximumSize-n.size>0||e),l=[...this.viewItems].reverse();e=!1;const m=l.map(n=>e=n.size-n.minimumSize>0||e).reverse();e=!1;const g=l.map(n=>e=n.maximumSize-n.size>0||e).reverse();let d=0;for(let n=0;n<this.sashItems.length;n++){const{sash:o}=this.sashItems[n];d+=this.viewItems[n].size;const c=!(i[n]&&g[n+1]),a=!(r[n]&&m[n+1]);if(c&&a){const y=ee(n,-1,-1),w=ee(n+1,this.viewItems.length),v=this.findFirstSnapIndex(y),z=this.findFirstSnapIndex(w),S=typeof v=="number"&&!this.viewItems[v].visible,p=typeof z=="number"&&!this.viewItems[z].visible;S&&m[n]&&(d>0||this.startSnappingEnabled)?o.state=q.Minimum:p&&i[n]&&(d<this.contentSize||this.endSnappingEnabled)?o.state=q.Maximum:o.state=q.Disabled}else o.state=c&&!a?q.Minimum:!c&&a?q.Maximum:q.Enabled}}findFirstSnapIndex(e){for(const i of e){const r=this.viewItems[i];if(r.visible&&r.snap)return i}for(const i of e){const r=this.viewItems[i];if(r.visible&&r.maximumSize-r.minimumSize>0)return;if(!r.visible&&r.snap)return i}}}class De{constructor(e){this.size=void 0,this.size=e}getPreferredSize(){return this.size}}class Gt{constructor(e,i){this.proportion=void 0,this.layoutService=void 0,this.proportion=e,this.layoutService=i}getPreferredSize(){return this.proportion*this.layoutService.getSize()}}class We{getPreferredSize(){}}class Ut{get preferredSize(){return this.layoutStrategy.getPreferredSize()}set preferredSize(e){if(typeof e=="number")this.layoutStrategy=new De(e);else if(typeof e=="string"){const i=e.trim();if(Be(i,"%")){const r=Number(i.slice(0,-1))/100;this.layoutStrategy=new Gt(r,this.layoutService)}else if(Be(i,"px")){const r=Number(i.slice(0,-2))/100;this.layoutStrategy=new De(r)}else if(typeof Number.parseFloat(i)=="number"){const r=Number.parseFloat(i);this.layoutStrategy=new De(r)}else this.layoutStrategy=new We}else this.layoutStrategy=new We}constructor(e,i){var r;if(this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=e,this.element=i.element,this.minimumSize=typeof i.minimumSize=="number"?i.minimumSize:30,this.maximumSize=typeof i.maximumSize=="number"?i.maximumSize:Number.POSITIVE_INFINITY,typeof i.preferredSize=="number")this.layoutStrategy=new De(i.preferredSize);else if(typeof i.preferredSize=="string"){const l=i.preferredSize.trim();if(Be(l,"%")){const m=Number(l.slice(0,-1))/100;this.layoutStrategy=new Gt(m,this.layoutService)}else if(Be(l,"px")){const m=Number(l.slice(0,-2));this.layoutStrategy=new De(m)}else if(typeof Number.parseFloat(l)=="number"){const m=Number.parseFloat(l);this.layoutStrategy=new De(m)}else this.layoutStrategy=new We}else this.layoutStrategy=new We;this.priority=(r=i.priority)!=null?r:ie.Normal,this.snap=typeof i.snap=="boolean"&&i.snap}layout(e){}}function Xt(u){return u.minSize!==void 0||u.maxSize!==void 0||u.preferredSize!==void 0||u.priority!==void 0||u.visible!==void 0}const mt=window.React.forwardRef(({className:u,children:e},i)=>window.React.createElement("div",{ref:i,className:at("split-view-view",Lt,u)},e));mt.displayName="Allotment.Pane";const Jt=window.React.forwardRef(({children:u,className:e,id:i,maxSize:r=1/0,minSize:l=30,proportionalLayout:m=!0,separator:g=!0,sizes:d,defaultSizes:n=d,snap:o=!1,vertical:c=!1,onChange:a,onReset:y,onVisibleChange:w,onDragStart:v,onDragEnd:z},S)=>{const p=window.React.useRef(null),_=window.React.useRef([]),I=window.React.useRef(new Map),E=window.React.useRef(null),C=window.React.useRef(new Map),X=window.React.useRef(new Ii),h=window.React.useRef([]),[L,K]=window.React.useState(!1),F=window.React.useMemo(()=>window.React.Children.toArray(u).filter(window.React.isValidElement),[u]),oe=window.React.useCallback(O=>{var D,k;const R=(D=h.current)==null?void 0:D[O];return typeof(R==null?void 0:R.preferredSize)=="number"&&((k=E.current)!=null&&k.resizeView(O,Math.round(R.preferredSize)),!0)},[]);return window.React.useImperativeHandle(S,()=>({reset:()=>{if(y)y();else{var O;(O=E.current)==null||O.distributeViewSizes();for(let D=0;D<h.current.length;D++)oe(D)}},resize:O=>{var D;(D=E.current)==null||D.resizeViews(O)}})),Mt(()=>{let O=!0;n&&C.current.size!==n.length&&(O=!1,console.warn(`Expected ${n.length} children based on defaultSizes but found ${C.current.size}`)),O&&n&&(_.current=F.map(R=>R.key));const D=ue({orientation:c?te.Vertical:te.Horizontal,proportionalLayout:m},O&&n&&{descriptor:{size:n.reduce((R,N)=>R+N,0),views:n.map((R,N)=>{var A,W,ze,pe;const J=I.current.get(_.current[N]),we=new Ut(X.current,ue({element:document.createElement("div"),minimumSize:(A=J==null?void 0:J.minSize)!=null?A:l,maximumSize:(W=J==null?void 0:J.maxSize)!=null?W:r,priority:(ze=J==null?void 0:J.priority)!=null?ze:ie.Normal},(J==null?void 0:J.preferredSize)&&{preferredSize:J==null?void 0:J.preferredSize},{snap:(pe=J==null?void 0:J.snap)!=null?pe:o}));return h.current.push(we),{container:[...C.current.values()][N],size:R,view:we}})}});E.current=new Mi(p.current,D,a,v,z),E.current.on("sashDragStart",()=>{var R;(R=p.current)==null||R.classList.add("split-view-sash-dragging")}),E.current.on("sashDragEnd",()=>{var R;(R=p.current)==null||R.classList.remove("split-view-sash-dragging")}),E.current.on("sashchange",R=>{if(w&&E.current){const N=F.map(A=>A.key);for(let A=0;A<N.length;A++){const W=I.current.get(N[A]);(W==null?void 0:W.visible)!==void 0&&W.visible!==E.current.isViewVisible(A)&&w(A,E.current.isViewVisible(A))}}}),E.current.on("sashreset",R=>{if(y)y();else{var N;if(oe(R)||oe(R+1))return;(N=E.current)==null||N.distributeViewSizes()}});const k=E.current;return()=>{k.dispose()}},[]),Mt(()=>{if(L){const Q=F.map(x=>x.key),le=[..._.current],ce=Q.filter(x=>!_.current.includes(x)),Le=Q.filter(x=>_.current.includes(x)),Oe=_.current.map(x=>!Q.includes(x));for(let x=Oe.length-1;x>=0;x--){var O;Oe[x]&&((O=E.current)!=null&&O.removeView(x),le.splice(x,1),h.current.splice(x,1))}for(const x of ce){var D,k,R,N,A;const V=I.current.get(x),$=new Ut(X.current,ue({element:document.createElement("div"),minimumSize:(D=V==null?void 0:V.minSize)!=null?D:l,maximumSize:(k=V==null?void 0:V.maxSize)!=null?k:r,priority:(R=V==null?void 0:V.priority)!=null?R:ie.Normal},(V==null?void 0:V.preferredSize)&&{preferredSize:V==null?void 0:V.preferredSize},{snap:(N=V==null?void 0:V.snap)!=null?N:o}));(A=E.current)!=null&&A.addView(C.current.get(x),$,Ye.Distribute,Q.findIndex(B=>B===x)),le.splice(Q.findIndex(B=>B===x),0,x),h.current.splice(Q.findIndex(B=>B===x),0,$)}for(;!vi(Q,le);)for(const[x,V]of Q.entries()){const $=le.findIndex(B=>B===V);if($!==x){var W;(W=E.current)==null||W.moveView(C.current.get(V),$,x);const B=le[$];le.splice($,1),le.splice(x,0,B);break}}for(const x of ce){var ze;const V=Q.findIndex(B=>B===x),$=h.current[V].preferredSize;$!==void 0&&((ze=E.current)==null||ze.resizeView(V,$))}for(const x of[...ce,...Le]){var pe,J;const V=I.current.get(x),$=Q.findIndex(B=>B===x);V&&Xt(V)&&V.visible!==void 0&&((pe=E.current)==null?void 0:pe.isViewVisible($))!==V.visible&&((J=E.current)==null||J.setViewVisible($,V.visible))}for(const x of Le){const V=I.current.get(x),$=Q.findIndex(B=>B===x);if(V&&Xt(V)){var we;V.preferredSize!==void 0&&h.current[$].preferredSize!==V.preferredSize&&(h.current[$].preferredSize=V.preferredSize);let B=!1;V.minSize!==void 0&&h.current[$].minimumSize!==V.minSize&&(h.current[$].minimumSize=V.minSize,B=!0),V.maxSize!==void 0&&h.current[$].maximumSize!==V.maxSize&&(h.current[$].maximumSize=V.maxSize,B=!0),B&&((we=E.current)==null||we.layout())}}(ce.length>0||Oe.length>0)&&(_.current=Q)}},[F,L,r,l,o]),window.React.useEffect(()=>{E.current&&(E.current.onDidChange=a)},[a]),window.React.useEffect(()=>{E.current&&(E.current.onDidDragStart=v)},[v]),window.React.useEffect(()=>{E.current&&(E.current.onDidDragEnd=z)},[z]),pi({ref:p,onResize:({width:O,height:D})=>{var k;O&&D&&((k=E.current)!=null&&k.layout(c?D:O),X.current.setSize(c?D:O),K(!0))}}),window.React.useEffect(()=>{Nt&&Pi(20)},[]),window.React.createElement("div",{ref:p,className:at("split-view",c?"split-view-vertical":"split-view-horizontal",{"split-view-separator-border":g},wi,c?bi:_i,{[zi]:g},e),id:i},window.React.createElement("div",{className:at("split-view-container",gi)},window.React.Children.toArray(u).map(O=>{if(!window.React.isValidElement(O))return null;const D=O.key;return O.type.displayName==="Allotment.Pane"?(I.current.set(D,O.props),window.React.cloneElement(O,{key:D,ref:k=>{const R=O.ref;R&&(R.current=k),k?C.current.set(D,k):C.current.delete(D)}})):window.React.createElement(mt,{key:D,ref:k=>{k?C.current.set(D,k):C.current.delete(D)}},O)})))});function Pi(u){const e=re(u,4,20),i=re(u,1,8);document.documentElement.style.setProperty("--sash-size",e+"px"),document.documentElement.style.setProperty("--sash-hover-size",i+"px"),(function(r){Ht=r,Bt.emit("onDidChangeGlobalSize",r)})(e)}Jt.displayName="Allotment";var Ai=Object.assign(Jt,{Pane:mt});je.Allotment=Ai,Object.defineProperty(je,Symbol.toStringTag,{value:"Module"})}));
6
+ */var Sn,Qn,ei,br=(Zn||(Zn=1,Sn=qn,(function(){var e={}.hasOwnProperty;function t(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=typeof r;if(o==="string"||o==="number")n.push(r);else if(Array.isArray(r)){if(r.length){var l=t.apply(null,r);l&&n.push(l)}}else if(o==="object")if(r.toString===Object.prototype.toString)for(var a in r)e.call(r,a)&&r[a]&&n.push(a);else n.push(r.toString())}}return n.join(" ")}Sn.exports?(t.default=t,Sn.exports=t):window.classNames=t})()),qn.exports),Rn=It(br),ti,Me=It((function(){if(ei)return Qn;ei=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,i=/^0o[0-7]+$/i,r=parseInt,o=Object.prototype.toString;function l(s){var c=typeof s;return!!s&&(c=="object"||c=="function")}function a(s){if(typeof s=="number")return s;if((function(u){return typeof u=="symbol"||(function(v){return!!v&&typeof v=="object"})(u)&&o.call(u)=="[object Symbol]"})(s))return NaN;if(l(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=l(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=s.replace(e,"");var d=n.test(s);return d||i.test(s)?r(s.slice(2),d?2:8):t.test(s)?NaN:+s}return Qn=function(s,c,d){return d===void 0&&(d=c,c=void 0),d!==void 0&&(d=(d=a(d))==d?d:0),c!==void 0&&(c=(c=a(c))==c?c:0),(function(u,v,f){return u==u&&(f!==void 0&&(u=u<=f?u:f),v!==void 0&&(u=u>=v?u:v)),u})(a(s),c,d)}})()),xn={exports:{}},yr=(ti||(ti=1,(function(e,t){var n="__lodash_hash_undefined__",i=9007199254740991,r="[object Arguments]",o="[object Array]",l="[object Boolean]",a="[object Date]",s="[object Error]",c="[object Function]",d="[object Map]",u="[object Number]",v="[object Object]",f="[object Promise]",g="[object RegExp]",w="[object Set]",b="[object String]",y="[object Symbol]",_="[object WeakMap]",S="[object ArrayBuffer]",R="[object DataView]",D=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[r]=m[o]=m[S]=m[l]=m[R]=m[a]=m[s]=m[c]=m[d]=m[u]=m[v]=m[g]=m[w]=m[b]=m[_]=!1;var z=typeof Ze=="object"&&Ze&&Ze.Object===Object&&Ze,V=typeof self=="object"&&self&&self.Object===Object&&self,N=z||V||Function("return this")(),k=t&&!t.nodeType&&t,L=k&&e&&!e.nodeType&&e,A=L&&L.exports===k,F=A&&z.process,P=(function(){try{return F&&F.binding&&F.binding("util")}catch{}})(),$=P&&P.isTypedArray;function T(h,p){for(var x=-1,I=h==null?0:h.length;++x<I;)if(p(h[x],x,h))return!0;return!1}function W(h){var p=-1,x=Array(h.size);return h.forEach(function(I,X){x[++p]=[X,I]}),x}function se(h){var p=-1,x=Array(h.size);return h.forEach(function(I){x[++p]=I}),x}var ge,G,J,U=Array.prototype,ae=Function.prototype,fe=Object.prototype,ee=N["__core-js_shared__"],Le=ae.toString,C=fe.hasOwnProperty,M=(ge=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||""))?"Symbol(src)_1."+ge:"",O=fe.toString,K=RegExp("^"+Le.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=A?N.Buffer:void 0,Ve=N.Symbol,Ee=N.Uint8Array,He=fe.propertyIsEnumerable,et=U.splice,ke=Ve?Ve.toStringTag:void 0,jt=Object.getOwnPropertySymbols,Bt=ye?ye.isBuffer:void 0,je=(G=Object.keys,J=Object,function(h){return G(J(h))}),tt=Se(N,"DataView"),Be=Se(N,"Map"),bt=Se(N,"Promise"),yt=Se(N,"Set"),Ft=Se(N,"WeakMap"),lt=Se(Object,"create"),nt=ce(tt),it=ce(Be),ct=ce(bt),hn=ce(yt),Fe=ce(Ft),$t=Ve?Ve.prototype:void 0,Yt=$t?$t.valueOf:void 0;function Xe(h){var p=-1,x=h==null?0:h.length;for(this.clear();++p<x;){var I=h[p];this.set(I[0],I[1])}}function _e(h){var p=-1,x=h==null?0:h.length;for(this.clear();++p<x;){var I=h[p];this.set(I[0],I[1])}}function $e(h){var p=-1,x=h==null?0:h.length;for(this.clear();++p<x;){var I=h[p];this.set(I[0],I[1])}}function _t(h){var p=-1,x=h==null?0:h.length;for(this.__data__=new $e;++p<x;)this.add(h[p])}function Te(h){var p=this.__data__=new _e(h);this.size=p.size}function Wn(h,p){var x=Re(h),I=!x&&dt(h),X=!x&&!I&&We(h),j=!x&&!I&&!X&&pr(h),Z=x||I||X||j,q=Z?(function(re,Ke){for(var Ue=-1,we=Array(re);++Ue<re;)we[Ue]=Ke(Ue);return we})(h.length,String):[],Pe=q.length;for(var ie in h)!C.call(h,ie)||Z&&(ie=="length"||X&&(ie=="offset"||ie=="parent")||j&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||Ce(ie,Pe))||q.push(ie);return q}function St(h,p){for(var x=h.length;x--;)if(rt(h[x][0],p))return x;return-1}function ut(h){return h==null?h===void 0?"[object Undefined]":"[object Null]":ke&&ke in Object(h)?(function(p){var x=C.call(p,ke),I=p[ke];try{p[ke]=void 0;var X=!0}catch{}var j=O.call(p);return X&&(x?p[ke]=I:delete p[ke]),j})(h):(function(p){return O.call(p)})(h)}function te(h){return Kt(h)&&ut(h)==r}function ue(h,p,x,I,X){return h===p||(h==null||p==null||!Kt(h)&&!Kt(p)?h!=h&&p!=p:(function(j,Z,q,Pe,ie,re){var Ke=Re(j),Ue=Re(Z),we=Ke?o:le(j),Ge=Ue?o:le(Z),xt=(we=we==r?v:we)==v,fn=(Ge=Ge==r?v:Ge)==v,zt=we==Ge;if(zt&&We(j)){if(!We(Z))return!1;Ke=!0,xt=!1}if(zt&&!xt)return re||(re=new Te),Ke||pr(j)?pe(j,Z,q,Pe,ie,re):(function(H,Y,vn,ot,Un,Oe,Je){switch(vn){case R:if(H.byteLength!=Y.byteLength||H.byteOffset!=Y.byteOffset)return!1;H=H.buffer,Y=Y.buffer;case S:return!(H.byteLength!=Y.byteLength||!Oe(new Ee(H),new Ee(Y)));case l:case a:case u:return rt(+H,+Y);case s:return H.name==Y.name&&H.message==Y.message;case g:case b:return H==Y+"";case d:var st=W;case w:var Xt=1&ot;if(st||(st=se),H.size!=Y.size&&!Xt)return!1;var pn=Je.get(H);if(pn)return pn==Y;ot|=2,Je.set(H,Y);var Gn=pe(st(H),st(Y),ot,Un,Oe,Je);return Je.delete(H),Gn;case y:if(Yt)return Yt.call(H)==Yt.call(Y)}return!1})(j,Z,we,q,Pe,ie,re);if(!(1&q)){var Ht=xt&&C.call(j,"__wrapped__"),mr=fn&&C.call(Z,"__wrapped__");if(Ht||mr){var Ks=Ht?j.value():j,Hs=mr?Z.value():Z;return re||(re=new Te),ie(Ks,Hs,q,Pe,re)}}return!!zt&&(re||(re=new Te),(function(H,Y,vn,ot,Un,Oe){var Je=1&vn,st=de(H),Xt=st.length,pn=de(Y),Gn=pn.length;if(Xt!=Gn&&!Je)return!1;for(var mn=Xt;mn--;){var ht=st[mn];if(!(Je?ht in Y:C.call(Y,ht)))return!1}var wr=Oe.get(H);if(wr&&Oe.get(Y))return wr==Y;var wn=!0;Oe.set(H,Y),Oe.set(Y,H);for(var Jn=Je;++mn<Xt;){var gn=H[ht=st[mn]],bn=Y[ht];if(ot)var gr=Je?ot(bn,gn,ht,Y,H,Oe):ot(gn,bn,ht,H,Y,Oe);if(!(gr===void 0?gn===bn||Un(gn,bn,vn,ot,Oe):gr)){wn=!1;break}Jn||(Jn=ht=="constructor")}if(wn&&!Jn){var yn=H.constructor,_n=Y.constructor;yn==_n||!("constructor"in H)||!("constructor"in Y)||typeof yn=="function"&&yn instanceof yn&&typeof _n=="function"&&_n instanceof _n||(wn=!1)}return Oe.delete(H),Oe.delete(Y),wn})(j,Z,q,Pe,ie,re))})(h,p,x,I,ue,X))}function ve(h){return!(!vr(h)||(function(p){return!!M&&M in p})(h))&&(Rt(h)?K:D).test(ce(h))}function Ye(h){if(x=(p=h)&&p.constructor,I=typeof x=="function"&&x.prototype||fe,p!==I)return je(h);var p,x,I,X=[];for(var j in Object(h))C.call(h,j)&&j!="constructor"&&X.push(j);return X}function pe(h,p,x,I,X,j){var Z=1&x,q=h.length,Pe=p.length;if(q!=Pe&&!(Z&&Pe>q))return!1;var ie=j.get(h);if(ie&&j.get(p))return ie==p;var re=-1,Ke=!0,Ue=2&x?new _t:void 0;for(j.set(h,p),j.set(p,h);++re<q;){var we=h[re],Ge=p[re];if(I)var xt=Z?I(Ge,we,re,p,h,j):I(we,Ge,re,h,p,j);if(xt!==void 0){if(xt)continue;Ke=!1;break}if(Ue){if(!T(p,function(fn,zt){if(Ht=zt,!Ue.has(Ht)&&(we===fn||X(we,fn,x,I,j)))return Ue.push(zt);var Ht})){Ke=!1;break}}else if(we!==Ge&&!X(we,Ge,x,I,j)){Ke=!1;break}}return j.delete(h),j.delete(p),Ke}function de(h){return(function(p,x,I){var X=x(p);return Re(p)?X:(function(j,Z){for(var q=-1,Pe=Z.length,ie=j.length;++q<Pe;)j[ie+q]=Z[q];return j})(X,I(p))})(h,Ys,ne)}function me(h,p){var x,I,X=h.__data__;return((I=typeof(x=p))=="string"||I=="number"||I=="symbol"||I=="boolean"?x!=="__proto__":x===null)?X[typeof p=="string"?"string":"hash"]:X.map}function Se(h,p){var x=(function(I,X){return I==null?void 0:I[X]})(h,p);return ve(x)?x:void 0}Xe.prototype.clear=function(){this.__data__=lt?lt(null):{},this.size=0},Xe.prototype.delete=function(h){var p=this.has(h)&&delete this.__data__[h];return this.size-=p?1:0,p},Xe.prototype.get=function(h){var p=this.__data__;if(lt){var x=p[h];return x===n?void 0:x}return C.call(p,h)?p[h]:void 0},Xe.prototype.has=function(h){var p=this.__data__;return lt?p[h]!==void 0:C.call(p,h)},Xe.prototype.set=function(h,p){var x=this.__data__;return this.size+=this.has(h)?0:1,x[h]=lt&&p===void 0?n:p,this},_e.prototype.clear=function(){this.__data__=[],this.size=0},_e.prototype.delete=function(h){var p=this.__data__,x=St(p,h);return!(x<0||(x==p.length-1?p.pop():et.call(p,x,1),--this.size,0))},_e.prototype.get=function(h){var p=this.__data__,x=St(p,h);return x<0?void 0:p[x][1]},_e.prototype.has=function(h){return St(this.__data__,h)>-1},_e.prototype.set=function(h,p){var x=this.__data__,I=St(x,h);return I<0?(++this.size,x.push([h,p])):x[I][1]=p,this},$e.prototype.clear=function(){this.size=0,this.__data__={hash:new Xe,map:new(Be||_e),string:new Xe}},$e.prototype.delete=function(h){var p=me(this,h).delete(h);return this.size-=p?1:0,p},$e.prototype.get=function(h){return me(this,h).get(h)},$e.prototype.has=function(h){return me(this,h).has(h)},$e.prototype.set=function(h,p){var x=me(this,h),I=x.size;return x.set(h,p),this.size+=x.size==I?0:1,this},_t.prototype.add=_t.prototype.push=function(h){return this.__data__.set(h,n),this},_t.prototype.has=function(h){return this.__data__.has(h)},Te.prototype.clear=function(){this.__data__=new _e,this.size=0},Te.prototype.delete=function(h){var p=this.__data__,x=p.delete(h);return this.size=p.size,x},Te.prototype.get=function(h){return this.__data__.get(h)},Te.prototype.has=function(h){return this.__data__.has(h)},Te.prototype.set=function(h,p){var x=this.__data__;if(x instanceof _e){var I=x.__data__;if(!Be||I.length<199)return I.push([h,p]),this.size=++x.size,this;x=this.__data__=new $e(I)}return x.set(h,p),this.size=x.size,this};var ne=jt?function(h){return h==null?[]:(h=Object(h),(function(p,x){for(var I=-1,X=p==null?0:p.length,j=0,Z=[];++I<X;){var q=p[I];x(q,I,p)&&(Z[j++]=q)}return Z})(jt(h),function(p){return He.call(h,p)}))}:function(){return[]},le=ut;function Ce(h,p){return!!(p=p??i)&&(typeof h=="number"||E.test(h))&&h>-1&&h%1==0&&h<p}function ce(h){if(h!=null){try{return Le.call(h)}catch{}try{return h+""}catch{}}return""}function rt(h,p){return h===p||h!=h&&p!=p}(tt&&le(new tt(new ArrayBuffer(1)))!=R||Be&&le(new Be)!=d||bt&&le(bt.resolve())!=f||yt&&le(new yt)!=w||Ft&&le(new Ft)!=_)&&(le=function(h){var p=ut(h),x=p==v?h.constructor:void 0,I=x?ce(x):"";if(I)switch(I){case nt:return R;case it:return d;case ct:return f;case hn:return w;case Fe:return _}return p});var dt=te((function(){return arguments})())?te:function(h){return Kt(h)&&C.call(h,"callee")&&!He.call(h,"callee")},Re=Array.isArray,We=Bt||function(){return!1};function Rt(h){if(!vr(h))return!1;var p=ut(h);return p==c||p=="[object GeneratorFunction]"||p=="[object AsyncFunction]"||p=="[object Proxy]"}function fr(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=i}function vr(h){var p=typeof h;return h!=null&&(p=="object"||p=="function")}function Kt(h){return h!=null&&typeof h=="object"}var pr=$?(function(h){return function(p){return h(p)}})($):function(h){return Kt(h)&&fr(h.length)&&!!m[ut(h)]};function Ys(h){return(p=h)!=null&&fr(p.length)&&!Rt(p)?Wn(h):Ye(h);var p}e.exports=function(h,p){return ue(h,p)}})(xn,xn.exports)),xn.exports),_r=It(yr);function ni(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function Sr(e){e===void 0&&(e={});var t=e.onResize,n=window.React.useRef(void 0);n.current=t;var i=e.round||Math.round,r=window.React.useRef(),o=window.React.useState({width:void 0,height:void 0}),l=o[0],a=o[1],s=window.React.useRef(!1);window.React.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var c=window.React.useRef({width:void 0,height:void 0}),d=(function(u,v){var f=window.React.useRef(null),g=window.React.useRef(null);g.current=v;var w=window.React.useRef(null);window.React.useEffect(function(){b()});var b=window.React.useCallback(function(){var y=w.current,_=g.current,S=y||(_?_ instanceof Element?_:_.current:null);f.current&&f.current.element===S&&f.current.subscriber===u||(f.current&&f.current.cleanup&&f.current.cleanup(),f.current={element:S,subscriber:u,cleanup:S?u(S):void 0})},[u]);return window.React.useEffect(function(){return function(){f.current&&f.current.cleanup&&(f.current.cleanup(),f.current=null)}},[]),window.React.useCallback(function(y){w.current=y,b()},[b])})(window.React.useCallback(function(u){return r.current&&r.current.box===e.box&&r.current.round===i||(r.current={box:e.box,round:i,instance:new ResizeObserver(function(v){var f=v[0],g=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",w=ni(f,g,"inlineSize"),b=ni(f,g,"blockSize"),y=w?i(w):void 0,_=b?i(b):void 0;if(c.current.width!==y||c.current.height!==_){var S={width:y,height:_};c.current.width=y,c.current.height=_,n.current?n.current(S):s.current||a(S)}})}),r.current.instance.observe(u,{box:e.box}),function(){r.current&&r.current.instance.unobserve(u)}},[e.box,i]),e.ref);return window.React.useMemo(function(){return{ref:d,width:l.width,height:l.height}},[d,l.width,l.height])}var Rr="allotment-module_splitView__L-yRc",xr="allotment-module_sashContainer__fzwJF",zr="allotment-module_splitViewContainer__rQnVa",ii="allotment-module_splitViewView__MGZ6O",Dr="allotment-module_vertical__WSwwa",Ir="allotment-module_horizontal__7doS8",Er="allotment-module_separatorBorder__x-rDS";let Et,ri=!1,oi=!1;typeof navigator=="object"&&(Et=navigator.userAgent,oi=Et.indexOf("Macintosh")>=0,ri=(Et.indexOf("Macintosh")>=0||Et.indexOf("iPad")>=0||Et.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);const si=ri,Cr=oi,ai=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?window.React.useLayoutEffect:window.React.useEffect;class Or{constructor(){this._size=void 0}getSize(){return this._size}setSize(t){this._size=t}}function Wt(e,t){const n=e.length,i=n-t.length;return i>=0&&e.slice(i,n)===t}var li,ci={exports:{}},ui,di,Mr=(li||(li=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(s,c,d){this.fn=s,this.context=c,this.once=d||!1}function o(s,c,d,u,v){if(typeof d!="function")throw new TypeError("The listener must be a function");var f=new r(d,u||s,v),g=n?n+c:c;return s._events[g]?s._events[g].fn?s._events[g]=[s._events[g],f]:s._events[g].push(f):(s._events[g]=f,s._eventsCount++),s}function l(s,c){--s._eventsCount==0?s._events=new i:delete s._events[c]}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1)),a.prototype.eventNames=function(){var s,c,d=[];if(this._eventsCount===0)return d;for(c in s=this._events)t.call(s,c)&&d.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(s)):d},a.prototype.listeners=function(s){var c=n?n+s:s,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var u=0,v=d.length,f=new Array(v);u<v;u++)f[u]=d[u].fn;return f},a.prototype.listenerCount=function(s){var c=n?n+s:s,d=this._events[c];return d?d.fn?1:d.length:0},a.prototype.emit=function(s,c,d,u,v,f){var g=n?n+s:s;if(!this._events[g])return!1;var w,b,y=this._events[g],_=arguments.length;if(y.fn){switch(y.once&&this.removeListener(s,y.fn,void 0,!0),_){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,c),!0;case 3:return y.fn.call(y.context,c,d),!0;case 4:return y.fn.call(y.context,c,d,u),!0;case 5:return y.fn.call(y.context,c,d,u,v),!0;case 6:return y.fn.call(y.context,c,d,u,v,f),!0}for(b=1,w=new Array(_-1);b<_;b++)w[b-1]=arguments[b];y.fn.apply(y.context,w)}else{var S,R=y.length;for(b=0;b<R;b++)switch(y[b].once&&this.removeListener(s,y[b].fn,void 0,!0),_){case 1:y[b].fn.call(y[b].context);break;case 2:y[b].fn.call(y[b].context,c);break;case 3:y[b].fn.call(y[b].context,c,d);break;case 4:y[b].fn.call(y[b].context,c,d,u);break;default:if(!w)for(S=1,w=new Array(_-1);S<_;S++)w[S-1]=arguments[S];y[b].fn.apply(y[b].context,w)}}return!0},a.prototype.on=function(s,c,d){return o(this,s,c,d,!1)},a.prototype.once=function(s,c,d){return o(this,s,c,d,!0)},a.prototype.removeListener=function(s,c,d,u){var v=n?n+s:s;if(!this._events[v])return this;if(!c)return l(this,v),this;var f=this._events[v];if(f.fn)f.fn!==c||u&&!f.once||d&&f.context!==d||l(this,v);else{for(var g=0,w=[],b=f.length;g<b;g++)(f[g].fn!==c||u&&!f[g].once||d&&f[g].context!==d)&&w.push(f[g]);w.length?this._events[v]=w.length===1?w[0]:w:l(this,v)}return this},a.prototype.removeAllListeners=function(s){var c;return s?(c=n?n+s:s,this._events[c]&&l(this,c)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(ci)),ci.exports),zn=It(Mr);function hi(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function Dn(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function xe(e,t,n=1){const i=Math.max(0,Math.ceil((t-e)/n)),r=new Array(i);let o=-1;for(;++o<i;)r[o]=e+o*n;return r}var Nr=It((function(){if(di)return ui;di=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,i=/^0o[0-7]+$/i,r=parseInt,o=typeof Ze=="object"&&Ze&&Ze.Object===Object&&Ze,l=typeof self=="object"&&self&&self.Object===Object&&self,a=o||l||Function("return this")(),s=Object.prototype.toString,c=Math.max,d=Math.min,u=function(){return a.Date.now()};function v(g){var w=typeof g;return!!g&&(w=="object"||w=="function")}function f(g){if(typeof g=="number")return g;if((function(y){return typeof y=="symbol"||(function(_){return!!_&&typeof _=="object"})(y)&&s.call(y)=="[object Symbol]"})(g))return NaN;if(v(g)){var w=typeof g.valueOf=="function"?g.valueOf():g;g=v(w)?w+"":w}if(typeof g!="string")return g===0?g:+g;g=g.replace(e,"");var b=n.test(g);return b||i.test(g)?r(g.slice(2),b?2:8):t.test(g)?NaN:+g}return ui=function(g,w,b){var y,_,S,R,D,E,m=0,z=!1,V=!1,N=!0;if(typeof g!="function")throw new TypeError("Expected a function");function k($){var T=y,W=_;return y=_=void 0,m=$,R=g.apply(W,T)}function L($){var T=$-E;return E===void 0||T>=w||T<0||V&&$-m>=S}function A(){var $=u();if(L($))return F($);D=setTimeout(A,(function(T){var W=w-(T-E);return V?d(W,S-(T-m)):W})($))}function F($){return D=void 0,N&&y?k($):(y=_=void 0,R)}function P(){var $=u(),T=L($);if(y=arguments,_=this,E=$,T){if(D===void 0)return(function(W){return m=W,D=setTimeout(A,w),z?k(W):R})(E);if(V)return D=setTimeout(A,w),k(E)}return D===void 0&&(D=setTimeout(A,w)),R}return w=f(w)||0,v(b)&&(z=!!b.leading,S=(V="maxWait"in b)?c(f(b.maxWait)||0,w):S,N="trailing"in b?!!b.trailing:N),P.cancel=function(){D!==void 0&&clearTimeout(D),m=0,y=E=_=D=void 0},P.flush=function(){return D===void 0?R:F(u())},P}})()),Ar="sash-module_sash__K-9lB",Lr="sash-module_disabled__Hm-wx",Vr="sash-module_mac__Jf6OJ",fi="sash-module_vertical__pB-rs",Tr="sash-module_minimum__-UKxp",Pr="sash-module_maximum__TCWxD",vi="sash-module_horizontal__kFbiw",In="sash-module_hover__80W6I",En="sash-module_active__bJspD";let ze=(function(e){return e.Vertical="VERTICAL",e.Horizontal="HORIZONTAL",e})({}),be=(function(e){return e.Disabled="DISABLED",e.Minimum="MINIMUM",e.Maximum="MAXIMUM",e.Enabled="ENABLED",e})({}),pi=si?20:8;const mi=new zn;class wi extends zn{get state(){return this._state}set state(t){this._state!==t&&(this.el.classList.toggle(Lr,t===be.Disabled),this.el.classList.toggle("sash-disabled",t===be.Disabled),this.el.classList.toggle(Tr,t===be.Minimum),this.el.classList.toggle("sash-minimum",t===be.Minimum),this.el.classList.toggle(Pr,t===be.Maximum),this.el.classList.toggle("sash-maximum",t===be.Maximum),this._state=t,this.emit("enablementChange",t))}constructor(t,n,i){var r;super(),this.el=void 0,this.layoutProvider=void 0,this.orientation=void 0,this.size=void 0,this.hoverDelay=300,this.hoverDelayer=Nr(o=>o.classList.add("sash-hover",In),this.hoverDelay),this._state=be.Enabled,this.onPointerStart=o=>{const l=o.pageX,a=o.pageY,s={startX:l,currentX:l,startY:a,currentY:a};this.el.classList.add("sash-active",En),this.emit("start",s),this.el.setPointerCapture(o.pointerId);const c=u=>{u.preventDefault();const v={startX:l,currentX:u.pageX,startY:a,currentY:u.pageY};this.emit("change",v)},d=u=>{u.preventDefault(),this.el.classList.remove("sash-active",En),this.hoverDelayer.cancel(),this.emit("end"),this.el.releasePointerCapture(u.pointerId),window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",d)};window.addEventListener("pointermove",c),window.addEventListener("pointerup",d)},this.onPointerDoublePress=()=>{this.emit("reset")},this.onMouseEnter=()=>{this.el.classList.contains(En)?(this.hoverDelayer.cancel(),this.el.classList.add("sash-hover",In)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove("sash-hover",In)},this.el=document.createElement("div"),this.el.classList.add("sash",Ar),this.el.dataset.testid="sash",t.append(this.el),Cr&&this.el.classList.add("sash-mac",Vr),this.el.addEventListener("pointerdown",this.onPointerStart),this.el.addEventListener("dblclick",this.onPointerDoublePress),this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave),typeof i.size=="number"?(this.size=i.size,i.orientation===ze.Vertical?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=pi,mi.on("onDidChangeGlobalSize",o=>{this.size=o,this.layout()})),this.layoutProvider=n,this.orientation=(r=i.orientation)!=null?r:ze.Vertical,this.orientation===ze.Horizontal?(this.el.classList.add("sash-horizontal",vi),this.el.classList.remove("sash-vertical",fi)):(this.el.classList.remove("sash-horizontal",vi),this.el.classList.add("sash-vertical",fi)),this.layout()}layout(){if(this.orientation===ze.Vertical){const t=this.layoutProvider;this.el.style.left=t.getVerticalSashLeft(this)-this.size/2+"px",t.getVerticalSashTop&&(this.el.style.top=t.getVerticalSashTop(this)+"px"),t.getVerticalSashHeight&&(this.el.style.height=t.getVerticalSashHeight(this)+"px")}else{const t=this.layoutProvider;this.el.style.top=t.getHorizontalSashTop(this)-this.size/2+"px",t.getHorizontalSashLeft&&(this.el.style.left=t.getHorizontalSashLeft(this)+"px"),t.getHorizontalSashWidth&&(this.el.style.width=t.getHorizontalSashWidth(this)+"px")}}dispose(){this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",()=>this.onMouseLeave),this.el.remove()}}let Ut;var Cn;(Cn=Ut||(Ut={})).Distribute={type:"distribute"},Cn.Split=function(e){return{type:"split",index:e}},Cn.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}};let De=(function(e){return e.Normal="NORMAL",e.Low="LOW",e.High="HIGH",e})({});class gi{constructor(t,n,i){this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=t,this.view=n,this.container.classList.add("split-view-view",ii),this.container.dataset.testid="split-view-view",typeof i=="number"?(this._size=i,this._cachedVisibleSize=void 0,t.classList.add("split-view-view-visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(t){this._size=t}get size(){return this._size}get priority(){return this.view.priority}get snap(){return!!this.view.snap}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return this._cachedVisibleSize===void 0}setVisible(t,n){t!==this.visible&&(t?(this.size=Me(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof n=="number"?n:this.size,this.size=0),this.container.classList.toggle("split-view-view-visible",t),this.view.setVisible&&this.view.setVisible(t))}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}set enabled(t){this.container.style.pointerEvents=t?"":"none"}layout(t){this.layoutContainer(t),this.view.layout(this.size,t)}}class kr extends gi{layoutContainer(t){this.container.style.left=`${t}px`,this.container.style.width=`${this.size}px`}}class jr extends gi{layoutContainer(t){this.container.style.top=`${t}px`,this.container.style.height=`${this.size}px`}}class Br extends zn{get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(t){this._startSnappingEnabled!==t&&(this._startSnappingEnabled=t,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(t){this._endSnappingEnabled!==t&&(this._endSnappingEnabled=t,this.updateSashEnablement())}constructor(t,n={},i,r,o){var l,a;if(super(),this.onDidChange=void 0,this.onDidDragStart=void 0,this.onDidDragEnd=void 0,this.orientation=void 0,this.sashContainer=void 0,this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.sashDragState=void 0,this.proportionalLayout=void 0,this.getSashOrthogonalSize=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onSashEnd=s=>{this.emit("sashchange",s),this.saveProportions();for(const c of this.viewItems)c.enabled=!0},this.orientation=(l=n.orientation)!=null?l:ze.Vertical,this.proportionalLayout=(a=n.proportionalLayout)!=null?a:!0,this.getSashOrthogonalSize=n.getSashOrthogonalSize,i&&(this.onDidChange=i),r&&(this.onDidDragStart=r),o&&(this.onDidDragEnd=o),this.sashContainer=document.createElement("div"),this.sashContainer.classList.add("sash-container",xr),t.prepend(this.sashContainer),n.descriptor){this.size=n.descriptor.size;for(const[s,c]of n.descriptor.views.entries()){const d=c.size,u=c.container,v=c.view;this.addView(u,v,d,s,!0)}this.contentSize=this.viewItems.reduce((s,c)=>s+c.size,0),this.saveProportions()}}addView(t,n,i,r=this.viewItems.length,o){let l;l=typeof i=="number"?i:i.type==="split"?this.getViewSize(i.index)/2:i.type==="invisible"?{cachedVisibleSize:i.cachedVisibleSize}:n.minimumSize;const a=this.orientation===ze.Vertical?new jr(t,n,l):new kr(t,n,l);if(this.viewItems.splice(r,0,a),this.viewItems.length>1){const s=this.orientation===ze.Vertical?new wi(this.sashContainer,{getHorizontalSashTop:u=>this.getSashPosition(u),getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:ze.Horizontal}):new wi(this.sashContainer,{getVerticalSashLeft:u=>this.getSashPosition(u),getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:ze.Vertical}),c=this.orientation===ze.Vertical?u=>({sash:s,start:u.startY,current:u.currentY}):u=>({sash:s,start:u.startX,current:u.currentX});s.on("start",u=>{var v;this.emit("sashDragStart"),this.onSashStart(c(u));const f=this.viewItems.map(g=>g.size);(v=this.onDidDragStart)==null||v.call(this,f)}),s.on("change",u=>this.onSashChange(c(u))),s.on("end",()=>{var u;this.emit("sashDragEnd"),this.onSashEnd(this.sashItems.findIndex(f=>f.sash===s));const v=this.viewItems.map(f=>f.size);(u=this.onDidDragEnd)==null||u.call(this,v)}),s.on("reset",()=>{const u=this.sashItems.findIndex(b=>b.sash===s),v=xe(u,-1,-1),f=xe(u+1,this.viewItems.length),g=this.findFirstSnapIndex(v),w=this.findFirstSnapIndex(f);(typeof g!="number"||this.viewItems[g].visible)&&(typeof w!="number"||this.viewItems[w].visible)&&this.emit("sashreset",u)});const d={sash:s};this.sashItems.splice(r-1,0,d)}o||this.relayout(),o||typeof i=="number"||i.type!=="distribute"||this.distributeViewSizes()}removeView(t,n){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");const i=this.viewItems.splice(t,1)[0].view;if(this.viewItems.length>=1){const r=Math.max(t-1,0);this.sashItems.splice(r,1)[0].sash.dispose()}return this.relayout(),n&&n.type==="distribute"&&this.distributeViewSizes(),i}moveView(t,n,i){const r=this.getViewCachedVisibleSize(n),o=r===void 0?this.getViewSize(n):Ut.Invisible(r),l=this.removeView(n);this.addView(t,l,o,i)}getViewCachedVisibleSize(t){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[t].cachedVisibleSize}layout(t=this.size){const n=Math.max(this.size,this.contentSize);if(this.size=t,this.proportions)for(let i=0;i<this.viewItems.length;i++){const r=this.viewItems[i];r.size=Me(Math.round(this.proportions[i]*t),r.minimumSize,r.maximumSize)}else{const i=xe(0,this.viewItems.length),r=i.filter(l=>this.viewItems[l].priority===De.Low),o=i.filter(l=>this.viewItems[l].priority===De.High);this.resize(this.viewItems.length-1,t-n,void 0,r,o)}this.distributeEmptySpace(),this.layoutViews()}resizeView(t,n){if(t<0||t>=this.viewItems.length)return;const i=xe(0,this.viewItems.length).filter(a=>a!==t),r=[...i.filter(a=>this.viewItems[a].priority===De.Low),t],o=i.filter(a=>this.viewItems[a].priority===De.High),l=this.viewItems[t];n=Math.round(n),n=Me(n,l.minimumSize,Math.min(l.maximumSize,this.size)),l.size=n,this.relayout(r,o)}resizeViews(t){for(let n=0;n<t.length;n++){const i=this.viewItems[n];let r=t[n];r=Math.round(r),r=Me(r,i.minimumSize,Math.min(i.maximumSize,this.size)),i.size=r}this.contentSize=this.viewItems.reduce((n,i)=>n+i.size,0),this.saveProportions(),this.layout(this.size)}getViewSize(t){return t<0||t>=this.viewItems.length?-1:this.viewItems[t].size}isViewVisible(t){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[t].visible}setViewVisible(t,n){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");this.viewItems[t].setVisible(n),this.distributeEmptySpace(t),this.layoutViews(),this.saveProportions()}distributeViewSizes(){const t=[];let n=0;for(const a of this.viewItems)a.maximumSize-a.minimumSize>0&&(t.push(a),n+=a.size);const i=Math.floor(n/t.length);for(const a of t)a.size=Me(i,a.minimumSize,a.maximumSize);const r=xe(0,this.viewItems.length),o=r.filter(a=>this.viewItems[a].priority===De.Low),l=r.filter(a=>this.viewItems[a].priority===De.High);this.relayout(o,l)}dispose(){this.sashItems.forEach(t=>t.sash.dispose()),this.sashItems=[],this.sashContainer.remove()}relayout(t,n){const i=this.viewItems.reduce((r,o)=>r+o.size,0);this.resize(this.viewItems.length-1,this.size-i,void 0,t,n),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}onSashStart({sash:t,start:n}){const i=this.sashItems.findIndex(r=>r.sash===t);(r=>{const o=this.viewItems.map(_=>_.size);let l,a,s=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY;const d=xe(i,-1,-1),u=xe(i+1,this.viewItems.length),v=d.reduce((_,S)=>_+(this.viewItems[S].minimumSize-o[S]),0),f=d.reduce((_,S)=>_+(this.viewItems[S].viewMaximumSize-o[S]),0),g=u.length===0?Number.POSITIVE_INFINITY:u.reduce((_,S)=>_+(o[S]-this.viewItems[S].minimumSize),0),w=u.length===0?Number.NEGATIVE_INFINITY:u.reduce((_,S)=>_+(o[S]-this.viewItems[S].viewMaximumSize),0);s=Math.max(v,w),c=Math.min(g,f);const b=this.findFirstSnapIndex(d),y=this.findFirstSnapIndex(u);if(typeof b=="number"){const _=this.viewItems[b],S=Math.floor(_.viewMinimumSize/2);l={index:b,limitDelta:_.visible?s-S:s+S,size:_.size}}if(typeof y=="number"){const _=this.viewItems[y],S=Math.floor(_.viewMinimumSize/2);a={index:y,limitDelta:_.visible?c+S:c-S,size:_.size}}this.sashDragState={start:r,current:r,index:i,sizes:o,minDelta:s,maxDelta:c,snapBefore:l,snapAfter:a}})(n)}onSashChange({current:t}){const{index:n,start:i,sizes:r,minDelta:o,maxDelta:l,snapBefore:a,snapAfter:s}=this.sashDragState;this.sashDragState.current=t;const c=t-i;this.resize(n,c,r,void 0,void 0,o,l,a,s),this.distributeEmptySpace(),this.layoutViews()}getSashPosition(t){let n=0;for(let i=0;i<this.sashItems.length;i++)if(n+=this.viewItems[i].size,this.sashItems[i].sash===t)return n;return 0}resize(t,n,i=this.viewItems.map(d=>d.size),r,o,l=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,s,c){if(t<0||t>=this.viewItems.length)return 0;const d=xe(t,-1,-1),u=xe(t+1,this.viewItems.length);if(o)for(const m of o)hi(d,m),hi(u,m);if(r)for(const m of r)Dn(d,m),Dn(u,m);const v=d.map(m=>this.viewItems[m]),f=d.map(m=>i[m]),g=u.map(m=>this.viewItems[m]),w=u.map(m=>i[m]),b=d.reduce((m,z)=>m+(this.viewItems[z].minimumSize-i[z]),0),y=d.reduce((m,z)=>m+(this.viewItems[z].maximumSize-i[z]),0),_=u.length===0?Number.POSITIVE_INFINITY:u.reduce((m,z)=>m+(i[z]-this.viewItems[z].minimumSize),0),S=u.length===0?Number.NEGATIVE_INFINITY:u.reduce((m,z)=>m+(i[z]-this.viewItems[z].maximumSize),0),R=Math.max(b,S,l),D=Math.min(_,y,a);let E=!1;if(s){const m=this.viewItems[s.index],z=n>=s.limitDelta;E=z!==m.visible,m.setVisible(z,s.size)}if(!E&&c){const m=this.viewItems[c.index],z=n<c.limitDelta;E=z!==m.visible,m.setVisible(z,c.size)}if(E)return this.resize(t,n,i,r,o,l,a);for(let m=0,z=n=Me(n,R,D);m<v.length;m++){const V=v[m],N=Me(f[m]+z,V.minimumSize,V.maximumSize);z-=N-f[m],V.size=N}for(let m=0,z=n;m<g.length;m++){const V=g[m],N=Me(w[m]-z,V.minimumSize,V.maximumSize);z+=N-w[m],V.size=N}return n}distributeEmptySpace(t){const n=this.viewItems.reduce((c,d)=>c+d.size,0);let i=this.size-n;const r=xe(0,this.viewItems.length),o=[],l=r.filter(c=>this.viewItems[c].priority===De.Low),a=r.filter(c=>this.viewItems[c].priority===De.Normal),s=r.filter(c=>this.viewItems[c].priority===De.High);o.push(...s,...a,...l),typeof t=="number"&&Dn(o,t);for(let c=0;i!==0&&c<o.length;c++){const d=this.viewItems[o[c]],u=Me(d.size+i,d.minimumSize,d.maximumSize);i-=u-d.size,d.size=u}}layoutViews(){var t;this.contentSize=this.viewItems.reduce((i,r)=>i+r.size,0);let n=0;for(const i of this.viewItems)i.layout(n),n+=i.size;(t=this.onDidChange)!=null&&t.call(this,this.viewItems.map(i=>i.size)),this.sashItems.forEach(i=>i.sash.layout()),this.updateSashEnablement()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(t=>t.size/this.contentSize))}updateSashEnablement(){let t=!1;const n=this.viewItems.map(s=>t=s.size-s.minimumSize>0||t);t=!1;const i=this.viewItems.map(s=>t=s.maximumSize-s.size>0||t),r=[...this.viewItems].reverse();t=!1;const o=r.map(s=>t=s.size-s.minimumSize>0||t).reverse();t=!1;const l=r.map(s=>t=s.maximumSize-s.size>0||t).reverse();let a=0;for(let s=0;s<this.sashItems.length;s++){const{sash:c}=this.sashItems[s];a+=this.viewItems[s].size;const d=!(n[s]&&l[s+1]),u=!(i[s]&&o[s+1]);if(d&&u){const v=xe(s,-1,-1),f=xe(s+1,this.viewItems.length),g=this.findFirstSnapIndex(v),w=this.findFirstSnapIndex(f),b=typeof g=="number"&&!this.viewItems[g].visible,y=typeof w=="number"&&!this.viewItems[w].visible;b&&o[s]&&(a>0||this.startSnappingEnabled)?c.state=be.Minimum:y&&n[s]&&(a<this.contentSize||this.endSnappingEnabled)?c.state=be.Maximum:c.state=be.Disabled}else c.state=d&&!u?be.Minimum:!d&&u?be.Maximum:be.Enabled}}findFirstSnapIndex(t){for(const n of t){const i=this.viewItems[n];if(i.visible&&i.snap)return n}for(const n of t){const i=this.viewItems[n];if(i.visible&&i.maximumSize-i.minimumSize>0)return;if(!i.visible&&i.snap)return n}}}class vt{constructor(t){this.size=void 0,this.size=t}getPreferredSize(){return this.size}}class bi{constructor(t,n){this.proportion=void 0,this.layoutService=void 0,this.proportion=t,this.layoutService=n}getPreferredSize(){return this.proportion*this.layoutService.getSize()}}class Gt{getPreferredSize(){}}class yi{get preferredSize(){return this.layoutStrategy.getPreferredSize()}set preferredSize(t){if(typeof t=="number")this.layoutStrategy=new vt(t);else if(typeof t=="string"){const n=t.trim();if(Wt(n,"%")){const i=Number(n.slice(0,-1))/100;this.layoutStrategy=new bi(i,this.layoutService)}else if(Wt(n,"px")){const i=Number(n.slice(0,-2))/100;this.layoutStrategy=new vt(i)}else if(typeof Number.parseFloat(n)=="number"){const i=Number.parseFloat(n);this.layoutStrategy=new vt(i)}else this.layoutStrategy=new Gt}else this.layoutStrategy=new Gt}constructor(t,n){var i;if(this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=t,this.element=n.element,this.minimumSize=typeof n.minimumSize=="number"?n.minimumSize:30,this.maximumSize=typeof n.maximumSize=="number"?n.maximumSize:Number.POSITIVE_INFINITY,typeof n.preferredSize=="number")this.layoutStrategy=new vt(n.preferredSize);else if(typeof n.preferredSize=="string"){const r=n.preferredSize.trim();if(Wt(r,"%")){const o=Number(r.slice(0,-1))/100;this.layoutStrategy=new bi(o,this.layoutService)}else if(Wt(r,"px")){const o=Number(r.slice(0,-2));this.layoutStrategy=new vt(o)}else if(typeof Number.parseFloat(r)=="number"){const o=Number.parseFloat(r);this.layoutStrategy=new vt(o)}else this.layoutStrategy=new Gt}else this.layoutStrategy=new Gt;this.priority=(i=n.priority)!=null?i:De.Normal,this.snap=typeof n.snap=="boolean"&&n.snap}layout(t){}}function _i(e){return e.minSize!==void 0||e.maxSize!==void 0||e.preferredSize!==void 0||e.priority!==void 0||e.visible!==void 0}const On=window.React.forwardRef(({className:e,children:t},n)=>window.React.createElement("div",{ref:n,className:Rn("split-view-view",ii,e)},t));On.displayName="Allotment.Pane";const Si=window.React.forwardRef(({children:e,className:t,id:n,maxSize:i=1/0,minSize:r=30,proportionalLayout:o=!0,separator:l=!0,sizes:a,defaultSizes:s=a,snap:c=!1,vertical:d=!1,onChange:u,onReset:v,onVisibleChange:f,onDragStart:g,onDragEnd:w},b)=>{const y=window.React.useRef(null),_=window.React.useRef([]),S=window.React.useRef(new Map),R=window.React.useRef(null),D=window.React.useRef(new Map),E=window.React.useRef(new Or),m=window.React.useRef([]),[z,V]=window.React.useState(!1),N=window.React.useMemo(()=>window.React.Children.toArray(e).filter(window.React.isValidElement),[e]),k=window.React.useCallback(L=>{var A,F;const P=(A=m.current)==null?void 0:A[L];return typeof(P==null?void 0:P.preferredSize)=="number"&&((F=R.current)!=null&&F.resizeView(L,Math.round(P.preferredSize)),!0)},[]);return window.React.useImperativeHandle(b,()=>({reset:()=>{if(v)v();else{var L;(L=R.current)==null||L.distributeViewSizes();for(let A=0;A<m.current.length;A++)k(A)}},resize:L=>{var A;(A=R.current)==null||A.resizeViews(L)}})),ai(()=>{let L=!0;s&&D.current.size!==s.length&&(L=!1,console.warn(`Expected ${s.length} children based on defaultSizes but found ${D.current.size}`)),L&&s&&(_.current=N.map(P=>P.key));const A=Dt({orientation:d?ze.Vertical:ze.Horizontal,proportionalLayout:o},L&&s&&{descriptor:{size:s.reduce((P,$)=>P+$,0),views:s.map((P,$)=>{var T,W,se,ge;const G=S.current.get(_.current[$]),J=new yi(E.current,Dt({element:document.createElement("div"),minimumSize:(T=G==null?void 0:G.minSize)!=null?T:r,maximumSize:(W=G==null?void 0:G.maxSize)!=null?W:i,priority:(se=G==null?void 0:G.priority)!=null?se:De.Normal},(G==null?void 0:G.preferredSize)&&{preferredSize:G==null?void 0:G.preferredSize},{snap:(ge=G==null?void 0:G.snap)!=null?ge:c}));return m.current.push(J),{container:[...D.current.values()][$],size:P,view:J}})}});R.current=new Br(y.current,A,u,g,w),R.current.on("sashDragStart",()=>{var P;(P=y.current)==null||P.classList.add("split-view-sash-dragging")}),R.current.on("sashDragEnd",()=>{var P;(P=y.current)==null||P.classList.remove("split-view-sash-dragging")}),R.current.on("sashchange",P=>{if(f&&R.current){const $=N.map(T=>T.key);for(let T=0;T<$.length;T++){const W=S.current.get($[T]);(W==null?void 0:W.visible)!==void 0&&W.visible!==R.current.isViewVisible(T)&&f(T,R.current.isViewVisible(T))}}}),R.current.on("sashreset",P=>{if(v)v();else{var $;if(k(P)||k(P+1))return;($=R.current)==null||$.distributeViewSizes()}});const F=R.current;return()=>{F.dispose()}},[]),ai(()=>{if(z){const U=N.map(C=>C.key),ae=[..._.current],fe=U.filter(C=>!_.current.includes(C)),ee=U.filter(C=>_.current.includes(C)),Le=_.current.map(C=>!U.includes(C));for(let C=Le.length-1;C>=0;C--){var L;Le[C]&&((L=R.current)!=null&&L.removeView(C),ae.splice(C,1),m.current.splice(C,1))}for(const C of fe){var A,F,P,$,T;const M=S.current.get(C),O=new yi(E.current,Dt({element:document.createElement("div"),minimumSize:(A=M==null?void 0:M.minSize)!=null?A:r,maximumSize:(F=M==null?void 0:M.maxSize)!=null?F:i,priority:(P=M==null?void 0:M.priority)!=null?P:De.Normal},(M==null?void 0:M.preferredSize)&&{preferredSize:M==null?void 0:M.preferredSize},{snap:($=M==null?void 0:M.snap)!=null?$:c}));(T=R.current)!=null&&T.addView(D.current.get(C),O,Ut.Distribute,U.findIndex(K=>K===C)),ae.splice(U.findIndex(K=>K===C),0,C),m.current.splice(U.findIndex(K=>K===C),0,O)}for(;!_r(U,ae);)for(const[C,M]of U.entries()){const O=ae.findIndex(K=>K===M);if(O!==C){var W;(W=R.current)==null||W.moveView(D.current.get(M),O,C);const K=ae[O];ae.splice(O,1),ae.splice(C,0,K);break}}for(const C of fe){var se;const M=U.findIndex(K=>K===C),O=m.current[M].preferredSize;O!==void 0&&((se=R.current)==null||se.resizeView(M,O))}for(const C of[...fe,...ee]){var ge,G;const M=S.current.get(C),O=U.findIndex(K=>K===C);M&&_i(M)&&M.visible!==void 0&&((ge=R.current)==null?void 0:ge.isViewVisible(O))!==M.visible&&((G=R.current)==null||G.setViewVisible(O,M.visible))}for(const C of ee){const M=S.current.get(C),O=U.findIndex(K=>K===C);if(M&&_i(M)){var J;M.preferredSize!==void 0&&m.current[O].preferredSize!==M.preferredSize&&(m.current[O].preferredSize=M.preferredSize);let K=!1;M.minSize!==void 0&&m.current[O].minimumSize!==M.minSize&&(m.current[O].minimumSize=M.minSize,K=!0),M.maxSize!==void 0&&m.current[O].maximumSize!==M.maxSize&&(m.current[O].maximumSize=M.maxSize,K=!0),K&&((J=R.current)==null||J.layout())}}(fe.length>0||Le.length>0)&&(_.current=U)}},[N,z,i,r,c]),window.React.useEffect(()=>{R.current&&(R.current.onDidChange=u)},[u]),window.React.useEffect(()=>{R.current&&(R.current.onDidDragStart=g)},[g]),window.React.useEffect(()=>{R.current&&(R.current.onDidDragEnd=w)},[w]),Sr({ref:y,onResize:({width:L,height:A})=>{var F;L&&A&&((F=R.current)!=null&&F.layout(d?A:L),E.current.setSize(d?A:L),V(!0))}}),window.React.useEffect(()=>{si&&Fr(20)},[]),window.React.createElement("div",{ref:y,className:Rn("split-view",d?"split-view-vertical":"split-view-horizontal",{"split-view-separator-border":l},Rr,d?Dr:Ir,{[Er]:l},t),id:n},window.React.createElement("div",{className:Rn("split-view-container",zr)},window.React.Children.toArray(e).map(L=>{if(!window.React.isValidElement(L))return null;const A=L.key;return L.type.displayName==="Allotment.Pane"?(S.current.set(A,L.props),window.React.cloneElement(L,{key:A,ref:F=>{const P=L.ref;P&&(P.current=F),F?D.current.set(A,F):D.current.delete(A)}})):window.React.createElement(On,{key:A,ref:F=>{F?D.current.set(A,F):D.current.delete(A)}},L)})))});function Fr(e){const t=Me(e,4,20),n=Me(e,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",n+"px"),(function(i){pi=i,mi.emit("onDidChangeGlobalSize",i)})(t)}Si.displayName="Allotment";var $r=Object.assign(Si,{Pane:On});function Yr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return window.React.useMemo(()=>i=>{t.forEach(r=>r(i))},t)}const Jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function pt(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Mn(e){return"nodeType"in e}function he(e){var t,n;return e?pt(e)?e:Mn(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Nn(e){const{Document:t}=he(e);return e instanceof t}function Ct(e){return pt(e)?!1:e instanceof he(e).HTMLElement}function Ri(e){return e instanceof he(e).SVGElement}function mt(e){return e?pt(e)?e.document:Mn(e)?Nn(e)?e:Ct(e)||Ri(e)?e.ownerDocument:document:document:document}const Ne=Jt?window.React.useLayoutEffect:window.React.useEffect;function Zt(e){const t=window.React.useRef(e);return Ne(()=>{t.current=e}),window.React.useCallback(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.current==null?void 0:t.current(...i)},[])}function Kr(){const e=window.React.useRef(null),t=window.React.useCallback((i,r)=>{e.current=setInterval(i,r)},[]),n=window.React.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Ot(e,t){t===void 0&&(t=[e]);const n=window.React.useRef(e);return Ne(()=>{n.current!==e&&(n.current=e)},t),n}function Mt(e,t){const n=window.React.useRef();return window.React.useMemo(()=>{const i=e(n.current);return n.current=i,i},[...t])}function qt(e){const t=Zt(e),n=window.React.useRef(null),i=window.React.useCallback(r=>{r!==n.current&&(t==null||t(r,n.current)),n.current=r},[]);return[n,i]}function Qt(e){const t=window.React.useRef();return window.React.useEffect(()=>{t.current=e},[e]),t.current}let An={};function Nt(e,t){return window.React.useMemo(()=>{if(t)return t;const n=An[e]==null?0:An[e]+1;return An[e]=n,e+"-"+n},[e,t])}function xi(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.reduce((o,l)=>{const a=Object.entries(l);for(const[s,c]of a){const d=o[s];d!=null&&(o[s]=d+e*c)}return o},{...t})}}const wt=xi(1),At=xi(-1);function Hr(e){return"clientX"in e&&"clientY"in e}function en(e){if(!e)return!1;const{KeyboardEvent:t}=he(e.target);return t&&e instanceof t}function Xr(e){if(!e)return!1;const{TouchEvent:t}=he(e.target);return t&&e instanceof t}function tn(e){if(Xr(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Hr(e)?{x:e.clientX,y:e.clientY}:null}const qe=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[qe.Translate.toString(e),qe.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:i}=e;return t+" "+n+"ms "+i}}}),zi="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Wr(e){return e.matches(zi)?e:e.querySelector(zi)}const Ur={display:"none"};function Gr(e){let{id:t,value:n}=e;return window.React.createElement("div",{id:t,style:Ur},n)}function Jr(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return window.React.createElement("div",{id:t,style:r,role:"status","aria-live":i,"aria-atomic":!0},n)}function Zr(){const[e,t]=window.React.useState("");return{announce:window.React.useCallback(i=>{i!=null&&t(i)},[]),announcement:e}}const Di=window.React.createContext(null);function qr(e){const t=window.React.useContext(Di);window.React.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Qr(){const[e]=window.React.useState(()=>new Set),t=window.React.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[window.React.useCallback(i=>{let{type:r,event:o}=i;e.forEach(l=>{var a;return(a=l[r])==null?void 0:a.call(l,o)})},[e]),t]}const eo={draggable:`
7
+ To pick up a draggable item, press the space bar.
8
+ While dragging, use the arrow keys to move the item.
9
+ Press space again to drop the item in its new position, or press escape to cancel.
10
+ `},to={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function no(e){let{announcements:t=to,container:n,hiddenTextDescribedById:i,screenReaderInstructions:r=eo}=e;const{announce:o,announcement:l}=Zr(),a=Nt("DndLiveRegion"),[s,c]=window.React.useState(!1);if(window.React.useEffect(()=>{c(!0)},[]),qr(window.React.useMemo(()=>({onDragStart(u){let{active:v}=u;o(t.onDragStart({active:v}))},onDragMove(u){let{active:v,over:f}=u;t.onDragMove&&o(t.onDragMove({active:v,over:f}))},onDragOver(u){let{active:v,over:f}=u;o(t.onDragOver({active:v,over:f}))},onDragEnd(u){let{active:v,over:f}=u;o(t.onDragEnd({active:v,over:f}))},onDragCancel(u){let{active:v,over:f}=u;o(t.onDragCancel({active:v,over:f}))}}),[o,t])),!s)return null;const d=window.React.createElement(window.React.Fragment,null,window.React.createElement(Gr,{id:i,value:r.draggable}),window.React.createElement(Jr,{id:a,announcement:l}));return n?window.ReactDOM.createPortal(d,n):d}var Q;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Q||(Q={}));function nn(){}function Ii(e,t){return window.React.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function io(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return window.React.useMemo(()=>[...t].filter(i=>i!=null),[...t])}const Ae=Object.freeze({x:0,y:0});function Ei(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ro(e,t){const n=tn(e);if(!n)return"0 0";const i={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return i.x+"% "+i.y+"%"}function Ci(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return n-i}function oo(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return i-n}function Oi(e){let{left:t,top:n,height:i,width:r}=e;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+i},{x:t+r,y:n+i}]}function Mi(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Ni(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const so=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const r=Ni(t,t.left,t.top),o=[];for(const l of i){const{id:a}=l,s=n.get(a);if(s){const c=Ei(Ni(s),r);o.push({id:a,data:{droppableContainer:l,value:c}})}}return o.sort(Ci)},ao=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const r=Oi(t),o=[];for(const l of i){const{id:a}=l,s=n.get(a);if(s){const c=Oi(s),d=r.reduce((v,f,g)=>v+Ei(c[g],f),0),u=Number((d/4).toFixed(4));o.push({id:a,data:{droppableContainer:l,value:u}})}}return o.sort(Ci)};function lo(e,t){const n=Math.max(t.top,e.top),i=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),l=r-i,a=o-n;if(i<r&&n<o){const s=t.width*t.height,c=e.width*e.height,d=l*a,u=d/(s+c-d);return Number(u.toFixed(4))}return 0}const co=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const r=[];for(const o of i){const{id:l}=o,a=n.get(l);if(a){const s=lo(a,t);s>0&&r.push({id:l,data:{droppableContainer:o,value:s}})}}return r.sort(oo)};function uo(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Ai(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ae}function ho(e){return function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((l,a)=>({...l,top:l.top+e*a.y,bottom:l.bottom+e*a.y,left:l.left+e*a.x,right:l.right+e*a.x}),{...n})}}const fo=ho(1);function Li(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function vo(e,t,n){const i=Li(t);if(!i)return e;const{scaleX:r,scaleY:o,x:l,y:a}=i,s=e.left-l-(1-r)*parseFloat(n),c=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=r?e.width/r:e.width,u=o?e.height/o:e.height;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s}}const po={ignoreTransform:!1};function gt(e,t){t===void 0&&(t=po);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:d}=he(e).getComputedStyle(e);c&&(n=vo(n,c,d))}const{top:i,left:r,width:o,height:l,bottom:a,right:s}=n;return{top:i,left:r,width:o,height:l,bottom:a,right:s}}function Vi(e){return gt(e,{ignoreTransform:!0})}function mo(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function wo(e,t){return t===void 0&&(t=he(e).getComputedStyle(e)),t.position==="fixed"}function go(e,t){t===void 0&&(t=he(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=t[r];return typeof o=="string"?n.test(o):!1})}function rn(e,t){const n=[];function i(r){if(t!=null&&n.length>=t||!r)return n;if(Nn(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!Ct(r)||Ri(r)||n.includes(r))return n;const o=he(e).getComputedStyle(r);return r!==e&&go(r,o)&&n.push(r),wo(r,o)?n:i(r.parentNode)}return e?i(e):n}function Ti(e){const[t]=rn(e,1);return t??null}function Ln(e){return!Jt||!e?null:pt(e)?e:Mn(e)?Nn(e)||e===mt(e).scrollingElement?window:Ct(e)?e:null:null}function Pi(e){return pt(e)?e.scrollX:e.scrollLeft}function ki(e){return pt(e)?e.scrollY:e.scrollTop}function Vn(e){return{x:Pi(e),y:ki(e)}}var oe;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(oe||(oe={}));function ji(e){return!Jt||!e?!1:e===document.scrollingElement}function Bi(e){const t={x:0,y:0},n=ji(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},r=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,l=e.scrollTop>=i.y,a=e.scrollLeft>=i.x;return{isTop:r,isLeft:o,isBottom:l,isRight:a,maxScroll:i,minScroll:t}}const bo={x:.2,y:.2};function yo(e,t,n,i,r){let{top:o,left:l,right:a,bottom:s}=n;i===void 0&&(i=10),r===void 0&&(r=bo);const{isTop:c,isBottom:d,isLeft:u,isRight:v}=Bi(e),f={x:0,y:0},g={x:0,y:0},w={height:t.height*r.y,width:t.width*r.x};return!c&&o<=t.top+w.height?(f.y=oe.Backward,g.y=i*Math.abs((t.top+w.height-o)/w.height)):!d&&s>=t.bottom-w.height&&(f.y=oe.Forward,g.y=i*Math.abs((t.bottom-w.height-s)/w.height)),!v&&a>=t.right-w.width?(f.x=oe.Forward,g.x=i*Math.abs((t.right-w.width-a)/w.width)):!u&&l<=t.left+w.width&&(f.x=oe.Backward,g.x=i*Math.abs((t.left+w.width-l)/w.width)),{direction:f,speed:g}}function _o(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:l}=window;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}const{top:t,left:n,right:i,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:i,bottom:r,width:e.clientWidth,height:e.clientHeight}}function Fi(e){return e.reduce((t,n)=>wt(t,Vn(n)),Ae)}function So(e){return e.reduce((t,n)=>t+Pi(n),0)}function Ro(e){return e.reduce((t,n)=>t+ki(n),0)}function $i(e,t){if(t===void 0&&(t=gt),!e)return;const{top:n,left:i,bottom:r,right:o}=t(e);Ti(e)&&(r<=0||o<=0||n>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const xo=[["x",["left","right"],So],["y",["top","bottom"],Ro]];class Tn{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=rn(n),r=Fi(i);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,l,a]of xo)for(const s of l)Object.defineProperty(this,s,{get:()=>{const c=a(i),d=r[o]-c;return this.rect[s]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Lt{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...n)})},this.target=t}add(t,n,i){var r;(r=this.target)==null||r.addEventListener(t,n,i),this.listeners.push([t,n,i])}}function zo(e){const{EventTarget:t}=he(e);return e instanceof t?e:mt(e)}function Pn(e,t){const n=Math.abs(e.x),i=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+i**2)>t:"x"in t&&"y"in t?n>t.x&&i>t.y:"x"in t?n>t.x:"y"in t?i>t.y:!1}var Ie;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ie||(Ie={}));function Yi(e){e.preventDefault()}function Do(e){e.stopPropagation()}var B;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(B||(B={}));const Ki={start:[B.Space,B.Enter],cancel:[B.Esc],end:[B.Space,B.Enter,B.Tab]},Io=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case B.Right:return{...n,x:n.x+25};case B.Left:return{...n,x:n.x-25};case B.Down:return{...n,y:n.y+25};case B.Up:return{...n,y:n.y-25}}};class kn{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Lt(mt(n)),this.windowListeners=new Lt(he(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ie.Resize,this.handleCancel),this.windowListeners.add(Ie.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ie.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,i=t.node.current;i&&$i(i),n(Ae)}handleKeyDown(t){if(en(t)){const{active:n,context:i,options:r}=this.props,{keyboardCodes:o=Ki,coordinateGetter:l=Io,scrollBehavior:a="smooth"}=r,{code:s}=t;if(o.end.includes(s)){this.handleEnd(t);return}if(o.cancel.includes(s)){this.handleCancel(t);return}const{collisionRect:c}=i.current,d=c?{x:c.left,y:c.top}:Ae;this.referenceCoordinates||(this.referenceCoordinates=d);const u=l(t,{active:n,context:i.current,currentCoordinates:d});if(u){const v=At(u,d),f={x:0,y:0},{scrollableAncestors:g}=i.current;for(const w of g){const b=t.code,{isTop:y,isRight:_,isLeft:S,isBottom:R,maxScroll:D,minScroll:E}=Bi(w),m=_o(w),z={x:Math.min(b===B.Right?m.right-m.width/2:m.right,Math.max(b===B.Right?m.left:m.left+m.width/2,u.x)),y:Math.min(b===B.Down?m.bottom-m.height/2:m.bottom,Math.max(b===B.Down?m.top:m.top+m.height/2,u.y))},V=b===B.Right&&!_||b===B.Left&&!S,N=b===B.Down&&!R||b===B.Up&&!y;if(V&&z.x!==u.x){const k=w.scrollLeft+v.x,L=b===B.Right&&k<=D.x||b===B.Left&&k>=E.x;if(L&&!v.y){w.scrollTo({left:k,behavior:a});return}L?f.x=w.scrollLeft-k:f.x=b===B.Right?w.scrollLeft-D.x:w.scrollLeft-E.x,f.x&&w.scrollBy({left:-f.x,behavior:a});break}else if(N&&z.y!==u.y){const k=w.scrollTop+v.y,L=b===B.Down&&k<=D.y||b===B.Up&&k>=E.y;if(L&&!v.x){w.scrollTo({top:k,behavior:a});return}L?f.y=w.scrollTop-k:f.y=b===B.Down?w.scrollTop-D.y:w.scrollTop-E.y,f.y&&w.scrollBy({top:-f.y,behavior:a});break}}this.handleMove(t,wt(At(u,this.referenceCoordinates),f))}}}handleMove(t,n){const{onMove:i}=this.props;t.preventDefault(),i(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}kn.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:i=Ki,onActivation:r}=t,{active:o}=n;const{code:l}=e.nativeEvent;if(i.start.includes(l)){const a=o.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),r==null||r({event:e.nativeEvent}),!0)}return!1}}];function Hi(e){return!!(e&&"distance"in e)}function Xi(e){return!!(e&&"delay"in e)}class jn{constructor(t,n,i){var r;i===void 0&&(i=zo(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:l}=o;this.props=t,this.events=n,this.document=mt(l),this.documentListeners=new Lt(this.document),this.listeners=new Lt(i),this.windowListeners=new Lt(he(l)),this.initialCoordinates=(r=tn(o))!=null?r:Ae,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:i}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Ie.Resize,this.handleCancel),this.windowListeners.add(Ie.DragStart,Yi),this.windowListeners.add(Ie.VisibilityChange,this.handleCancel),this.windowListeners.add(Ie.ContextMenu,Yi),this.documentListeners.add(Ie.Keydown,this.handleKeydown),n){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Xi(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Hi(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:i,onPending:r}=this.props;r(i,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ie.Click,Do,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ie.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:i,initialCoordinates:r,props:o}=this,{onMove:l,options:{activationConstraint:a}}=o;if(!r)return;const s=(n=tn(t))!=null?n:Ae,c=At(r,s);if(!i&&a){if(Hi(a)){if(a.tolerance!=null&&Pn(c,a.tolerance))return this.handleCancel();if(Pn(c,a.distance))return this.handleStart()}if(Xi(a)&&Pn(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}t.cancelable&&t.preventDefault(),l(s)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===B.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Eo={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Bn extends jn{constructor(t){const{event:n}=t,i=mt(n.target);super(t,Eo,i)}}Bn.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return!n.isPrimary||n.button!==0?!1:(i==null||i({event:n}),!0)}}];const Co={move:{name:"mousemove"},end:{name:"mouseup"}};var Fn;(function(e){e[e.RightClick=2]="RightClick"})(Fn||(Fn={}));class Oo extends jn{constructor(t){super(t,Co,mt(t.event.target))}}Oo.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return n.button===Fn.RightClick?!1:(i==null||i({event:n}),!0)}}];const $n={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Mo extends jn{constructor(t){super(t,$n)}static setup(){return window.addEventListener($n.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener($n.move.name,t)};function t(){}}}Mo.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;const{touches:r}=n;return r.length>1?!1:(i==null||i({event:n}),!0)}}];var Vt;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Vt||(Vt={}));var on;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(on||(on={}));function No(e){let{acceleration:t,activator:n=Vt.Pointer,canScroll:i,draggingRect:r,enabled:o,interval:l=5,order:a=on.TreeOrder,pointerCoordinates:s,scrollableAncestors:c,scrollableAncestorRects:d,delta:u,threshold:v}=e;const f=Lo({delta:u,disabled:!o}),[g,w]=Kr(),b=window.React.useRef({x:0,y:0}),y=window.React.useRef({x:0,y:0}),_=window.React.useMemo(()=>{switch(n){case Vt.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case Vt.DraggableRect:return r}},[n,r,s]),S=window.React.useRef(null),R=window.React.useCallback(()=>{const E=S.current;if(!E)return;const m=b.current.x*y.current.x,z=b.current.y*y.current.y;E.scrollBy(m,z)},[]),D=window.React.useMemo(()=>a===on.TreeOrder?[...c].reverse():c,[a,c]);window.React.useEffect(()=>{if(!o||!c.length||!_){w();return}for(const E of D){if((i==null?void 0:i(E))===!1)continue;const m=c.indexOf(E),z=d[m];if(!z)continue;const{direction:V,speed:N}=yo(E,z,_,t,v);for(const k of["x","y"])f[k][V[k]]||(N[k]=0,V[k]=0);if(N.x>0||N.y>0){w(),S.current=E,g(R,l),b.current=N,y.current=V;return}}b.current={x:0,y:0},y.current={x:0,y:0},w()},[t,R,i,w,o,l,JSON.stringify(_),JSON.stringify(f),g,c,D,d,JSON.stringify(v)])}const Ao={x:{[oe.Backward]:!1,[oe.Forward]:!1},y:{[oe.Backward]:!1,[oe.Forward]:!1}};function Lo(e){let{delta:t,disabled:n}=e;const i=Qt(t);return Mt(r=>{if(n||!i||!r)return Ao;const o={x:Math.sign(t.x-i.x),y:Math.sign(t.y-i.y)};return{x:{[oe.Backward]:r.x[oe.Backward]||o.x===-1,[oe.Forward]:r.x[oe.Forward]||o.x===1},y:{[oe.Backward]:r.y[oe.Backward]||o.y===-1,[oe.Forward]:r.y[oe.Forward]||o.y===1}}},[n,t,i])}function Vo(e,t){const n=t!=null?e.get(t):void 0,i=n?n.node.current:null;return Mt(r=>{var o;return t==null?null:(o=i??r)!=null?o:null},[i,t])}function To(e,t){return window.React.useMemo(()=>e.reduce((n,i)=>{const{sensor:r}=i,o=r.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,i)}));return[...n,...o]},[]),[e,t])}var Tt;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Tt||(Tt={}));var Yn;(function(e){e.Optimized="optimized"})(Yn||(Yn={}));const Wi=new Map;function Po(e,t){let{dragging:n,dependencies:i,config:r}=t;const[o,l]=window.React.useState(null),{frequency:a,measure:s,strategy:c}=r,d=window.React.useRef(e),u=b(),v=Ot(u),f=window.React.useCallback(function(y){y===void 0&&(y=[]),!v.current&&l(_=>_===null?y:_.concat(y.filter(S=>!_.includes(S))))},[v]),g=window.React.useRef(null),w=Mt(y=>{if(u&&!n)return Wi;if(!y||y===Wi||d.current!==e||o!=null){const _=new Map;for(let S of e){if(!S)continue;if(o&&o.length>0&&!o.includes(S.id)&&S.rect.current){_.set(S.id,S.rect.current);continue}const R=S.node.current,D=R?new Tn(s(R),R):null;S.rect.current=D,D&&_.set(S.id,D)}return _}return y},[e,o,n,u,s]);return window.React.useEffect(()=>{d.current=e},[e]),window.React.useEffect(()=>{u||f()},[n,u]),window.React.useEffect(()=>{o&&o.length>0&&l(null)},[JSON.stringify(o)]),window.React.useEffect(()=>{u||typeof a!="number"||g.current!==null||(g.current=setTimeout(()=>{f(),g.current=null},a))},[a,u,f,...i]),{droppableRects:w,measureDroppableContainers:f,measuringScheduled:o!=null};function b(){switch(c){case Tt.Always:return!1;case Tt.BeforeDragging:return n;default:return!n}}}function Kn(e,t){return Mt(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function ko(e,t){return Kn(e,t)}function jo(e){let{callback:t,disabled:n}=e;const i=Zt(t),r=window.React.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(i)},[i,n]);return window.React.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function sn(e){let{callback:t,disabled:n}=e;const i=Zt(t),r=window.React.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(i)},[n]);return window.React.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function Bo(e){return new Tn(gt(e),e)}function Ui(e,t,n){t===void 0&&(t=Bo);const[i,r]=window.React.useState(null);function o(){r(s=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=s??n)!=null?c:null}const d=t(e);return JSON.stringify(s)===JSON.stringify(d)?s:d})}const l=jo({callback(s){if(e)for(const c of s){const{type:d,target:u}=c;if(d==="childList"&&u instanceof HTMLElement&&u.contains(e)){o();break}}}}),a=sn({callback:o});return Ne(()=>{o(),e?(a==null||a.observe(e),l==null||l.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),l==null||l.disconnect())},[e]),i}function Fo(e){const t=Kn(e);return Ai(e,t)}const Gi=[];function $o(e){const t=window.React.useRef(e),n=Mt(i=>e?i&&i!==Gi&&e&&t.current&&e.parentNode===t.current.parentNode?i:rn(e):Gi,[e]);return window.React.useEffect(()=>{t.current=e},[e]),n}function Yo(e){const[t,n]=window.React.useState(null),i=window.React.useRef(e),r=window.React.useCallback(o=>{const l=Ln(o.target);l&&n(a=>a?(a.set(l,Vn(l)),new Map(a)):null)},[]);return window.React.useEffect(()=>{const o=i.current;if(e!==o){l(o);const a=e.map(s=>{const c=Ln(s);return c?(c.addEventListener("scroll",r,{passive:!0}),[c,Vn(c)]):null}).filter(s=>s!=null);n(a.length?new Map(a):null),i.current=e}return()=>{l(e),l(o)};function l(a){a.forEach(s=>{const c=Ln(s);c==null||c.removeEventListener("scroll",r)})}},[r,e]),window.React.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,l)=>wt(o,l),Ae):Fi(e):Ae,[e,t])}function Ji(e,t){t===void 0&&(t=[]);const n=window.React.useRef(null);return window.React.useEffect(()=>{n.current=null},t),window.React.useEffect(()=>{const i=e!==Ae;i&&!n.current&&(n.current=e),!i&&n.current&&(n.current=null)},[e]),n.current?At(e,n.current):Ae}function Ko(e){window.React.useEffect(()=>{if(!Jt)return;const t=e.map(n=>{let{sensor:i}=n;return i.setup==null?void 0:i.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function Ho(e,t){return window.React.useMemo(()=>e.reduce((n,i)=>{let{eventName:r,handler:o}=i;return n[r]=l=>{o(l,t)},n},{}),[e,t])}function Zi(e){return window.React.useMemo(()=>e?mo(e):null,[e])}const qi=[];function Xo(e,t){t===void 0&&(t=gt);const[n]=e,i=Zi(n?he(n):null),[r,o]=window.React.useState(qi);function l(){o(()=>e.length?e.map(s=>ji(s)?i:new Tn(t(s),s)):qi)}const a=sn({callback:l});return Ne(()=>{a==null||a.disconnect(),l(),e.forEach(s=>a==null?void 0:a.observe(s))},[e]),r}function Qi(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ct(t)?t:e}function Wo(e){let{measure:t}=e;const[n,i]=window.React.useState(null),r=window.React.useCallback(c=>{for(const{target:d}of c)if(Ct(d)){i(u=>{const v=t(d);return u?{...u,width:v.width,height:v.height}:v});break}},[t]),o=sn({callback:r}),l=window.React.useCallback(c=>{const d=Qi(c);o==null||o.disconnect(),d&&(o==null||o.observe(d)),i(d?t(d):null)},[t,o]),[a,s]=qt(l);return window.React.useMemo(()=>({nodeRef:a,rect:n,setRef:s}),[n,a,s])}const Uo=[{sensor:Bn,options:{}},{sensor:kn,options:{}}],Go={current:{}},an={draggable:{measure:Vi},droppable:{measure:Vi,strategy:Tt.WhileDragging,frequency:Yn.Optimized},dragOverlay:{measure:gt}};class Pt extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,i;return(n=(i=this.get(t))==null?void 0:i.node.current)!=null?n:void 0}}const Jo={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Pt,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:nn},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:an,measureDroppableContainers:nn,windowRect:null,measuringScheduled:!1},er={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:nn,draggableNodes:new Map,over:null,measureDroppableContainers:nn},kt=window.React.createContext(er),tr=window.React.createContext(Jo);function Zo(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Pt}}}function qo(e,t){switch(t.type){case Q.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Q.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Q.DragEnd:case Q.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Q.RegisterDroppable:{const{element:n}=t,{id:i}=n,r=new Pt(e.droppable.containers);return r.set(i,n),{...e,droppable:{...e.droppable,containers:r}}}case Q.SetDroppableDisabled:{const{id:n,key:i,disabled:r}=t,o=e.droppable.containers.get(n);if(!o||i!==o.key)return e;const l=new Pt(e.droppable.containers);return l.set(n,{...o,disabled:r}),{...e,droppable:{...e.droppable,containers:l}}}case Q.UnregisterDroppable:{const{id:n,key:i}=t,r=e.droppable.containers.get(n);if(!r||i!==r.key)return e;const o=new Pt(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Qo(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:r}=window.React.useContext(kt),o=Qt(i),l=Qt(n==null?void 0:n.id);return window.React.useEffect(()=>{if(!t&&!i&&o&&l!=null){if(!en(o)||document.activeElement===o.target)return;const a=r.get(l);if(!a)return;const{activatorNode:s,node:c}=a;if(!s.current&&!c.current)return;requestAnimationFrame(()=>{for(const d of[s.current,c.current]){if(!d)continue;const u=Wr(d);if(u){u.focus();break}}})}},[i,t,r,l,o]),null}function nr(e,t){let{transform:n,...i}=t;return e!=null&&e.length?e.reduce((r,o)=>o({transform:r,...i}),n):n}function es(e){return window.React.useMemo(()=>({draggable:{...an.draggable,...e==null?void 0:e.draggable},droppable:{...an.droppable,...e==null?void 0:e.droppable},dragOverlay:{...an.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function ts(e){let{activeNode:t,measure:n,initialRect:i,config:r=!0}=e;const o=window.React.useRef(!1),{x:l,y:a}=typeof r=="boolean"?{x:r,y:r}:r;Ne(()=>{if(!l&&!a||!t){o.current=!1;return}if(o.current||!i)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const d=n(c),u=Ai(d,i);if(l||(u.x=0),a||(u.y=0),o.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){const v=Ti(c);v&&v.scrollBy({top:u.y,left:u.x})}},[t,l,a,i,n])}const ln=window.React.createContext({...Ae,scaleX:1,scaleY:1});var Qe;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Qe||(Qe={}));const ns=window.React.memo(function(t){var n,i,r,o;let{id:l,accessibility:a,autoScroll:s=!0,children:c,sensors:d=Uo,collisionDetection:u=co,measuring:v,modifiers:f,...g}=t;const w=window.React.useReducer(qo,void 0,Zo),[b,y]=w,[_,S]=Qr(),[R,D]=window.React.useState(Qe.Uninitialized),E=R===Qe.Initialized,{draggable:{active:m,nodes:z,translate:V},droppable:{containers:N}}=b,k=m!=null?z.get(m):null,L=window.React.useRef({initial:null,translated:null}),A=window.React.useMemo(()=>{var te;return m!=null?{id:m,data:(te=k==null?void 0:k.data)!=null?te:Go,rect:L}:null},[m,k]),F=window.React.useRef(null),[P,$]=window.React.useState(null),[T,W]=window.React.useState(null),se=Ot(g,Object.values(g)),ge=Nt("DndDescribedBy",l),G=window.React.useMemo(()=>N.getEnabled(),[N]),J=es(v),{droppableRects:U,measureDroppableContainers:ae,measuringScheduled:fe}=Po(G,{dragging:E,dependencies:[V.x,V.y],config:J.droppable}),ee=Vo(z,m),Le=window.React.useMemo(()=>T?tn(T):null,[T]),C=ut(),M=ko(ee,J.draggable.measure);ts({activeNode:m!=null?z.get(m):null,config:C.layoutShiftCompensation,initialRect:M,measure:J.draggable.measure});const O=Ui(ee,J.draggable.measure,M),K=Ui(ee?ee.parentElement:null),ye=window.React.useRef({activatorEvent:null,active:null,activeNode:ee,collisionRect:null,collisions:null,droppableRects:U,draggableNodes:z,draggingNode:null,draggingNodeRect:null,droppableContainers:N,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ve=N.getNodeFor((n=ye.current.over)==null?void 0:n.id),Ee=Wo({measure:J.dragOverlay.measure}),He=(i=Ee.nodeRef.current)!=null?i:ee,et=E?(r=Ee.rect)!=null?r:O:null,ke=!!(Ee.nodeRef.current&&Ee.rect),jt=Fo(ke?null:O),Bt=Zi(He?he(He):null),je=$o(E?Ve??ee:null),tt=Xo(je),Be=nr(f,{transform:{x:V.x-jt.x,y:V.y-jt.y,scaleX:1,scaleY:1},activatorEvent:T,active:A,activeNodeRect:O,containerNodeRect:K,draggingNodeRect:et,over:ye.current.over,overlayNodeRect:Ee.rect,scrollableAncestors:je,scrollableAncestorRects:tt,windowRect:Bt}),bt=Le?wt(Le,V):null,yt=Yo(je),Ft=Ji(yt),lt=Ji(yt,[O]),nt=wt(Be,Ft),it=et?fo(et,Be):null,ct=A&&it?u({active:A,collisionRect:it,droppableRects:U,droppableContainers:G,pointerCoordinates:bt}):null,hn=Mi(ct,"id"),[Fe,$t]=window.React.useState(null),Yt=ke?Be:wt(Be,lt),Xe=uo(Yt,(o=Fe==null?void 0:Fe.rect)!=null?o:null,O),_e=window.React.useRef(null),$e=window.React.useCallback((te,ue)=>{let{sensor:ve,options:Ye}=ue;if(F.current==null)return;const pe=z.get(F.current);if(!pe)return;const de=te.nativeEvent,me=new ve({active:F.current,activeNode:pe,event:de,options:Ye,context:ye,onAbort(ne){if(!z.get(ne))return;const{onDragAbort:Ce}=se.current,ce={id:ne};Ce==null||Ce(ce),_({type:"onDragAbort",event:ce})},onPending(ne,le,Ce,ce){if(!z.get(ne))return;const{onDragPending:dt}=se.current,Re={id:ne,constraint:le,initialCoordinates:Ce,offset:ce};dt==null||dt(Re),_({type:"onDragPending",event:Re})},onStart(ne){const le=F.current;if(le==null)return;const Ce=z.get(le);if(!Ce)return;const{onDragStart:ce}=se.current,rt={activatorEvent:de,active:{id:le,data:Ce.data,rect:L}};window.ReactDOM.unstable_batchedUpdates(()=>{ce==null||ce(rt),D(Qe.Initializing),y({type:Q.DragStart,initialCoordinates:ne,active:le}),_({type:"onDragStart",event:rt}),$(_e.current),W(de)})},onMove(ne){y({type:Q.DragMove,coordinates:ne})},onEnd:Se(Q.DragEnd),onCancel:Se(Q.DragCancel)});_e.current=me;function Se(ne){return async function(){const{active:Ce,collisions:ce,over:rt,scrollAdjustedTranslate:dt}=ye.current;let Re=null;if(Ce&&dt){const{cancelDrop:We}=se.current;Re={activatorEvent:de,active:Ce,collisions:ce,delta:dt,over:rt},ne===Q.DragEnd&&typeof We=="function"&&await Promise.resolve(We(Re))&&(ne=Q.DragCancel)}F.current=null,window.ReactDOM.unstable_batchedUpdates(()=>{y({type:ne}),D(Qe.Uninitialized),$t(null),$(null),W(null),_e.current=null;const We=ne===Q.DragEnd?"onDragEnd":"onDragCancel";if(Re){const Rt=se.current[We];Rt==null||Rt(Re),_({type:We,event:Re})}})}}},[z]),_t=window.React.useCallback((te,ue)=>(ve,Ye)=>{const pe=ve.nativeEvent,de=z.get(Ye);if(F.current!==null||!de||pe.dndKit||pe.defaultPrevented)return;const me={active:de};te(ve,ue.options,me)===!0&&(pe.dndKit={capturedBy:ue.sensor},F.current=Ye,$e(ve,ue))},[z,$e]),Te=To(d,_t);Ko(d),Ne(()=>{O&&R===Qe.Initializing&&D(Qe.Initialized)},[O,R]),window.React.useEffect(()=>{const{onDragMove:te}=se.current,{active:ue,activatorEvent:ve,collisions:Ye,over:pe}=ye.current;if(!ue||!ve)return;const de={active:ue,activatorEvent:ve,collisions:Ye,delta:{x:nt.x,y:nt.y},over:pe};window.ReactDOM.unstable_batchedUpdates(()=>{te==null||te(de),_({type:"onDragMove",event:de})})},[nt.x,nt.y]),window.React.useEffect(()=>{const{active:te,activatorEvent:ue,collisions:ve,droppableContainers:Ye,scrollAdjustedTranslate:pe}=ye.current;if(!te||F.current==null||!ue||!pe)return;const{onDragOver:de}=se.current,me=Ye.get(hn),Se=me&&me.rect.current?{id:me.id,rect:me.rect.current,data:me.data,disabled:me.disabled}:null,ne={active:te,activatorEvent:ue,collisions:ve,delta:{x:pe.x,y:pe.y},over:Se};window.ReactDOM.unstable_batchedUpdates(()=>{$t(Se),de==null||de(ne),_({type:"onDragOver",event:ne})})},[hn]),Ne(()=>{ye.current={activatorEvent:T,active:A,activeNode:ee,collisionRect:it,collisions:ct,droppableRects:U,draggableNodes:z,draggingNode:He,draggingNodeRect:et,droppableContainers:N,over:Fe,scrollableAncestors:je,scrollAdjustedTranslate:nt},L.current={initial:et,translated:it}},[A,ee,ct,it,z,He,et,U,N,Fe,je,nt]),No({...C,delta:V,draggingRect:it,pointerCoordinates:bt,scrollableAncestors:je,scrollableAncestorRects:tt});const Wn=window.React.useMemo(()=>({active:A,activeNode:ee,activeNodeRect:O,activatorEvent:T,collisions:ct,containerNodeRect:K,dragOverlay:Ee,draggableNodes:z,droppableContainers:N,droppableRects:U,over:Fe,measureDroppableContainers:ae,scrollableAncestors:je,scrollableAncestorRects:tt,measuringConfiguration:J,measuringScheduled:fe,windowRect:Bt}),[A,ee,O,T,ct,K,Ee,z,N,U,Fe,ae,je,tt,J,fe,Bt]),St=window.React.useMemo(()=>({activatorEvent:T,activators:Te,active:A,activeNodeRect:O,ariaDescribedById:{draggable:ge},dispatch:y,draggableNodes:z,over:Fe,measureDroppableContainers:ae}),[T,Te,A,O,y,ge,z,Fe,ae]);return window.React.createElement(Di.Provider,{value:S},window.React.createElement(kt.Provider,{value:St},window.React.createElement(tr.Provider,{value:Wn},window.React.createElement(ln.Provider,{value:Xe},c)),window.React.createElement(Qo,{disabled:(a==null?void 0:a.restoreFocus)===!1})),window.React.createElement(no,{...a,hiddenTextDescribedById:ge}));function ut(){const te=(P==null?void 0:P.autoScrollEnabled)===!1,ue=typeof s=="object"?s.enabled===!1:s===!1,ve=E&&!te&&!ue;return typeof s=="object"?{...s,enabled:ve}:{enabled:ve}}}),is=window.React.createContext(null),ir="button",rs="Draggable";function os(e){let{id:t,data:n,disabled:i=!1,attributes:r}=e;const o=Nt(rs),{activators:l,activatorEvent:a,active:s,activeNodeRect:c,ariaDescribedById:d,draggableNodes:u,over:v}=window.React.useContext(kt),{role:f=ir,roleDescription:g="draggable",tabIndex:w=0}=r??{},b=(s==null?void 0:s.id)===t,y=window.React.useContext(b?ln:is),[_,S]=qt(),[R,D]=qt(),E=Ho(l,t),m=Ot(n);Ne(()=>(u.set(t,{id:t,key:o,node:_,activatorNode:R,data:m}),()=>{const V=u.get(t);V&&V.key===o&&u.delete(t)}),[u,t]);const z=window.React.useMemo(()=>({role:f,tabIndex:w,"aria-disabled":i,"aria-pressed":b&&f===ir?!0:void 0,"aria-roledescription":g,"aria-describedby":d.draggable}),[i,f,w,b,g,d.draggable]);return{active:s,activatorEvent:a,activeNodeRect:c,attributes:z,isDragging:b,listeners:i?void 0:E,node:_,over:v,setNodeRef:S,setActivatorNodeRef:D,transform:y}}function rr(){return window.React.useContext(tr)}const ss="Droppable",as={timeout:25};function ls(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:r}=e;const o=Nt(ss),{active:l,dispatch:a,over:s,measureDroppableContainers:c}=window.React.useContext(kt),d=window.React.useRef({disabled:n}),u=window.React.useRef(!1),v=window.React.useRef(null),f=window.React.useRef(null),{disabled:g,updateMeasurementsFor:w,timeout:b}={...as,...r},y=Ot(w??i),_=window.React.useCallback(()=>{if(!u.current){u.current=!0;return}f.current!=null&&clearTimeout(f.current),f.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),f.current=null},b)},[b]),S=sn({callback:_,disabled:g||!l}),R=window.React.useCallback((z,V)=>{S&&(V&&(S.unobserve(V),u.current=!1),z&&S.observe(z))},[S]),[D,E]=qt(R),m=Ot(t);return window.React.useEffect(()=>{!S||!D.current||(S.disconnect(),u.current=!1,S.observe(D.current))},[D,S]),window.React.useEffect(()=>(a({type:Q.RegisterDroppable,element:{id:i,key:o,disabled:n,node:D,rect:v,data:m}}),()=>a({type:Q.UnregisterDroppable,key:o,id:i})),[i]),window.React.useEffect(()=>{n!==d.current.disabled&&(a({type:Q.SetDroppableDisabled,id:i,key:o,disabled:n}),d.current.disabled=n)},[i,o,n,a]),{active:l,rect:v,isOver:(s==null?void 0:s.id)===i,node:D,over:s,setNodeRef:E}}function cs(e){let{animation:t,children:n}=e;const[i,r]=window.React.useState(null),[o,l]=window.React.useState(null),a=Qt(n);return!n&&!i&&a&&r(a),Ne(()=>{if(!o)return;const s=i==null?void 0:i.key,c=i==null?void 0:i.props.id;if(s==null||c==null){r(null);return}Promise.resolve(t(c,o)).then(()=>{r(null)})},[t,i,o]),window.React.createElement(window.React.Fragment,null,n,i?window.React.cloneElement(i,{ref:l}):null)}const us={x:0,y:0,scaleX:1,scaleY:1};function ds(e){let{children:t}=e;return window.React.createElement(kt.Provider,{value:er},window.React.createElement(ln.Provider,{value:us},t))}const hs={position:"fixed",touchAction:"none"},fs=e=>en(e)?"transform 250ms ease":void 0,vs=window.React.forwardRef((e,t)=>{let{as:n,activatorEvent:i,adjustScale:r,children:o,className:l,rect:a,style:s,transform:c,transition:d=fs}=e;if(!a)return null;const u=r?c:{...c,scaleX:1,scaleY:1},v={...hs,width:a.width,height:a.height,top:a.top,left:a.left,transform:qe.Transform.toString(u),transformOrigin:r&&i?ro(i,a):void 0,transition:typeof d=="function"?d(i):d,...s};return window.React.createElement(n,{className:l,style:v,ref:t},o)}),ps={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:qe.Transform.toString(t)},{transform:qe.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:i}=t;const r={},{styles:o,className:l}=e;if(o!=null&&o.active)for(const[a,s]of Object.entries(o.active))s!==void 0&&(r[a]=n.node.style.getPropertyValue(a),n.node.style.setProperty(a,s));if(o!=null&&o.dragOverlay)for(const[a,s]of Object.entries(o.dragOverlay))s!==void 0&&i.node.style.setProperty(a,s);return l!=null&&l.active&&n.node.classList.add(l.active),l!=null&&l.dragOverlay&&i.node.classList.add(l.dragOverlay),function(){for(const[s,c]of Object.entries(r))n.node.style.setProperty(s,c);l!=null&&l.active&&n.node.classList.remove(l.active)}})({styles:{active:{opacity:"0"}}})};function ms(e){let{config:t,draggableNodes:n,droppableContainers:i,measuringConfiguration:r}=e;return Zt((o,l)=>{if(t===null)return;const a=n.get(o);if(!a)return;const s=a.node.current;if(!s)return;const c=Qi(l);if(!c)return;const{transform:d}=he(l).getComputedStyle(l),u=Li(d);if(!u)return;const v=typeof t=="function"?t:ws(t);return $i(s,r.draggable.measure),v({active:{id:o,data:a.data,node:s,rect:r.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:l,rect:r.dragOverlay.measure(c)},droppableContainers:i,measuringConfiguration:r,transform:u})})}function ws(e){const{duration:t,easing:n,sideEffects:i,keyframes:r}={...ps,...e};return o=>{let{active:l,dragOverlay:a,transform:s,...c}=o;if(!t)return;const d={x:a.rect.left-l.rect.left,y:a.rect.top-l.rect.top},u={scaleX:s.scaleX!==1?l.rect.width*s.scaleX/a.rect.width:1,scaleY:s.scaleY!==1?l.rect.height*s.scaleY/a.rect.height:1},v={x:s.x-d.x,y:s.y-d.y,...u},f=r({...c,active:l,dragOverlay:a,transform:{initial:s,final:v}}),[g]=f,w=f[f.length-1];if(JSON.stringify(g)===JSON.stringify(w))return;const b=i==null?void 0:i({active:l,dragOverlay:a,...c}),y=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(_=>{y.onfinish=()=>{b==null||b(),_()}})}}let or=0;function gs(e){return window.React.useMemo(()=>{if(e!=null)return or++,or},[e])}const bs=window.React.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:r,transition:o,modifiers:l,wrapperElement:a="div",className:s,zIndex:c=999}=e;const{activatorEvent:d,active:u,activeNodeRect:v,containerNodeRect:f,draggableNodes:g,droppableContainers:w,dragOverlay:b,over:y,measuringConfiguration:_,scrollableAncestors:S,scrollableAncestorRects:R,windowRect:D}=rr(),E=window.React.useContext(ln),m=gs(u==null?void 0:u.id),z=nr(l,{activatorEvent:d,active:u,activeNodeRect:v,containerNodeRect:f,draggingNodeRect:b.rect,over:y,overlayNodeRect:b.rect,scrollableAncestors:S,scrollableAncestorRects:R,transform:E,windowRect:D}),V=Kn(v),N=ms({config:i,draggableNodes:g,droppableContainers:w,measuringConfiguration:_}),k=V?b.setRef:void 0;return window.React.createElement(ds,null,window.React.createElement(cs,{animation:N},u&&m?window.React.createElement(vs,{key:m,id:u.id,ref:k,as:a,activatorEvent:d,adjustScale:t,className:s,transition:o,rect:V,style:{zIndex:c,...r},transform:z},n):null))});function Hn(e,t,n){const i=e.slice();return i.splice(n<0?i.length+n:n,0,i.splice(t,1)[0]),i}function ys(e,t){return e.reduce((n,i,r)=>{const o=t.get(i);return o&&(n[r]=o),n},Array(e.length))}function cn(e){return e!==null&&e>=0}function _s(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Ss(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const sr=e=>{let{rects:t,activeIndex:n,overIndex:i,index:r}=e;const o=Hn(t,i,n),l=t[r],a=o[r];return!a||!l?null:{x:a.left-l.left,y:a.top-l.top,scaleX:a.width/l.width,scaleY:a.height/l.height}},un={scaleX:1,scaleY:1},Rs=e=>{var t;let{activeIndex:n,activeNodeRect:i,index:r,rects:o,overIndex:l}=e;const a=(t=o[n])!=null?t:i;if(!a)return null;if(r===n){const c=o[l];return c?{x:0,y:n<l?c.top+c.height-(a.top+a.height):c.top-a.top,...un}:null}const s=xs(o,r,n);return r>n&&r<=l?{x:0,y:-a.height-s,...un}:r<n&&r>=l?{x:0,y:a.height+s,...un}:{x:0,y:0,...un}};function xs(e,t,n){const i=e[t],r=e[t-1],o=e[t+1];return i?n<t?r?i.top-(r.top+r.height):o?o.top-(i.top+i.height):0:o?o.top-(i.top+i.height):r?i.top-(r.top+r.height):0:0}const ar="Sortable",lr=window.React.createContext({activeIndex:-1,containerId:ar,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:sr,disabled:{draggable:!1,droppable:!1}});function zs(e){let{children:t,id:n,items:i,strategy:r=sr,disabled:o=!1}=e;const{active:l,dragOverlay:a,droppableRects:s,over:c,measureDroppableContainers:d}=rr(),u=Nt(ar,n),v=a.rect!==null,f=window.React.useMemo(()=>i.map(E=>typeof E=="object"&&"id"in E?E.id:E),[i]),g=l!=null,w=l?f.indexOf(l.id):-1,b=c?f.indexOf(c.id):-1,y=window.React.useRef(f),_=!_s(f,y.current),S=b!==-1&&w===-1||_,R=Ss(o);Ne(()=>{_&&g&&d(f)},[_,f,g,d]),window.React.useEffect(()=>{y.current=f},[f]);const D=window.React.useMemo(()=>({activeIndex:w,containerId:u,disabled:R,disableTransforms:S,items:f,overIndex:b,useDragOverlay:v,sortedRects:ys(f,s),strategy:r}),[w,u,R.draggable,R.droppable,S,f,b,s,v,r]);return window.React.createElement(lr.Provider,{value:D},t)}const Ds=e=>{let{id:t,items:n,activeIndex:i,overIndex:r}=e;return Hn(n,i,r).indexOf(t)},Is=e=>{let{containerId:t,isSorting:n,wasDragging:i,index:r,items:o,newIndex:l,previousItems:a,previousContainerId:s,transition:c}=e;return!c||!i||a!==o&&r===l?!1:n?!0:l!==r&&t===s},Es={duration:200,easing:"ease"},cr="transform",Cs=qe.Transition.toString({property:cr,duration:0,easing:"linear"}),Os={roleDescription:"sortable"};function Ms(e){let{disabled:t,index:n,node:i,rect:r}=e;const[o,l]=window.React.useState(null),a=window.React.useRef(n);return Ne(()=>{if(!t&&n!==a.current&&i.current){const s=r.current;if(s){const c=gt(i.current,{ignoreTransform:!0}),d={x:s.left-c.left,y:s.top-c.top,scaleX:s.width/c.width,scaleY:s.height/c.height};(d.x||d.y)&&l(d)}}n!==a.current&&(a.current=n)},[t,n,i,r]),window.React.useEffect(()=>{o&&l(null)},[o]),o}function Ns(e){let{animateLayoutChanges:t=Is,attributes:n,disabled:i,data:r,getNewIndex:o=Ds,id:l,strategy:a,resizeObserverConfig:s,transition:c=Es}=e;const{items:d,containerId:u,activeIndex:v,disabled:f,disableTransforms:g,sortedRects:w,overIndex:b,useDragOverlay:y,strategy:_}=window.React.useContext(lr),S=As(i,f),R=d.indexOf(l),D=window.React.useMemo(()=>({sortable:{containerId:u,index:R,items:d},...r}),[u,r,R,d]),E=window.React.useMemo(()=>d.slice(d.indexOf(l)),[d,l]),{rect:m,node:z,isOver:V,setNodeRef:N}=ls({id:l,data:D,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...s}}),{active:k,activatorEvent:L,activeNodeRect:A,attributes:F,setNodeRef:P,listeners:$,isDragging:T,over:W,setActivatorNodeRef:se,transform:ge}=os({id:l,data:D,attributes:{...Os,...n},disabled:S.draggable}),G=Yr(N,P),J=!!k,U=J&&!g&&cn(v)&&cn(b),ae=!y&&T,fe=ae&&U?ge:null,Le=U?fe??(a??_)({rects:w,activeNodeRect:A,activeIndex:v,overIndex:b,index:R}):null,C=cn(v)&&cn(b)?o({id:l,items:d,activeIndex:v,overIndex:b}):R,M=k==null?void 0:k.id,O=window.React.useRef({activeId:M,items:d,newIndex:C,containerId:u}),K=d!==O.current.items,ye=t({active:k,containerId:u,isDragging:T,isSorting:J,id:l,index:R,items:d,newIndex:O.current.newIndex,previousItems:O.current.items,previousContainerId:O.current.containerId,transition:c,wasDragging:O.current.activeId!=null}),Ve=Ms({disabled:!ye,index:R,node:z,rect:m});return window.React.useEffect(()=>{J&&O.current.newIndex!==C&&(O.current.newIndex=C),u!==O.current.containerId&&(O.current.containerId=u),d!==O.current.items&&(O.current.items=d)},[J,C,u,d]),window.React.useEffect(()=>{if(M===O.current.activeId)return;if(M!=null&&O.current.activeId==null){O.current.activeId=M;return}const He=setTimeout(()=>{O.current.activeId=M},50);return()=>clearTimeout(He)},[M]),{active:k,activeIndex:v,attributes:F,data:D,rect:m,index:R,newIndex:C,items:d,isOver:V,isSorting:J,isDragging:T,listeners:$,node:z,overIndex:b,over:W,setNodeRef:G,setActivatorNodeRef:se,setDroppableNodeRef:N,setDraggableNodeRef:P,transform:Ve??Le,transition:Ee()};function Ee(){if(Ve||K&&O.current.newIndex===R)return Cs;if(!(ae&&!en(L)||!c)&&(J||ye))return qe.Transition.toString({...c,property:cr})}}function As(e,t){var n,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:t.droppable}}function dn(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Ls=[B.Down,B.Right,B.Up,B.Left],Vs=(e,t)=>{let{context:{active:n,collisionRect:i,droppableRects:r,droppableContainers:o,over:l,scrollableAncestors:a}}=t;if(Ls.includes(e.code)){if(e.preventDefault(),!n||!i)return;const s=[];o.getEnabled().forEach(u=>{if(!u||u!=null&&u.disabled)return;const v=r.get(u.id);if(v)switch(e.code){case B.Down:i.top<v.top&&s.push(u);break;case B.Up:i.top>v.top&&s.push(u);break;case B.Left:i.left>v.left&&s.push(u);break;case B.Right:i.left<v.left&&s.push(u);break}});const c=ao({collisionRect:i,droppableRects:r,droppableContainers:s});let d=Mi(c,"id");if(d===(l==null?void 0:l.id)&&c.length>1&&(d=c[1].id),d!=null){const u=o.get(n.id),v=o.get(d),f=v?r.get(v.id):null,g=v==null?void 0:v.node.current;if(g&&f&&u&&v){const b=rn(g).some((E,m)=>a[m]!==E),y=ur(u,v),_=Ts(u,v),S=b||!y?{x:0,y:0}:{x:_?i.width-f.width:0,y:_?i.height-f.height:0},R={x:f.left,y:f.top};return S.x&&S.y?R:At(R,S)}}}};function ur(e,t){return!dn(e)||!dn(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Ts(e,t){return!dn(e)||!dn(t)||!ur(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}function Ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xn={exports:{}};/*!
11
+ Copyright (c) 2018 Jed Watson.
12
+ Licensed under the MIT License (MIT), see
13
+ http://jedwatson.github.io/classnames
14
+ */var dr;function ks(){return dr||(dr=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",l=0;l<arguments.length;l++){var a=arguments[l];a&&(o=r(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var a in o)t.call(o,a)&&o[a]&&(l=r(l,a));return l}function r(o,l){return l?o?o+" "+l:o+l:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Xn)),Xn.exports}var js=ks();const hr=Ps(js);function Bs({id:e,item:t,renderItem:n,disabled:i,itemWrapperClassName:r,activeId:o}){const{attributes:l,listeners:a,setNodeRef:s,setActivatorNodeRef:c,transform:d,transition:u,isDragging:v,over:f}=Ns({id:e,disabled:i}),g={transform:qe.Transform.toString(d),transition:u,opacity:v?.5:1,zIndex:v?1:0},w=(f==null?void 0:f.id)===e&&o!==e,b={ref:c,...a,...l};return React.createElement("div",{ref:s,style:g,className:hr(r),"data-sortable-wrapper":"true"},n(t,{dragHandleProps:b,isDragging:v,isDragOver:w}))}function Fs({item:e,renderItem:t,itemWrapperClassName:n}){const i={};return React.createElement("div",{className:hr(n,"bg-white"),style:{boxShadow:"0 4px 12px rgba(0,0,0,0.15)",transform:"scale(1.02)",cursor:"grabbing"}},t(e,{dragHandleProps:i,isDragging:!0,isDragOver:!1}))}function $s(e){const{items:t,onChange:n,getId:i,renderItem:r,validateReorder:o,renderError:l,disabled:a=!1,className:s,itemWrapperClassName:c}=e,[d,u]=window.wp.element.useState(null),[v,f]=window.wp.element.useState(null),g=window.wp.element.useMemo(()=>t.map(i),[t,i]),w=io(Ii(Bn,{activationConstraint:{distance:5}}),Ii(kn,{coordinateGetter:Vs})),b=R=>{u(R.active.id),f(null)},y=R=>{const{active:D,over:E}=R;if(u(null),!E||D.id===E.id)return;const m=g.indexOf(D.id),z=g.indexOf(E.id);if(m===-1||z===-1)return;const V=Hn(t,m,z);if(o){const N=o(V);if(N){f(N);return}}f(null),n(V)},_=()=>{u(null)},S=d!==null?t.find(R=>i(R)===d):null;return React.createElement("div",{className:s},v&&l?l(v):null,React.createElement(ns,{sensors:w,collisionDetection:so,onDragStart:b,onDragEnd:y,onDragCancel:_},React.createElement(zs,{items:g,strategy:Rs},React.createElement("div",{className:"flex flex-col gap-2"},t.map(R=>{const D=i(R);return React.createElement(Bs,{key:D,id:D,item:R,renderItem:r,disabled:a,itemWrapperClassName:c,activeId:d})}))),React.createElement(bs,null,S?React.createElement(Fs,{item:S,renderItem:r,itemWrapperClassName:c}):null)))}at.Allotment=$r,at.SortableList=$s,Object.defineProperty(at,Symbol.toStringTag,{value:"Module"})}));
6
15
  //# sourceMappingURL=libraries.umd.cjs.map