arize-phoenix 11.6.2__py3-none-any.whl → 11.7.0__py3-none-any.whl

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.

Potentially problematic release.


This version of arize-phoenix might be problematic. Click here for more details.

@@ -908,4 +908,4 @@ function print() { __p += __j.call(arguments, '') }
908
908
  To pick up a draggable item, press the space bar.
909
909
  While dragging, use the arrow keys to move the item.
910
910
  Press space again to drop the item in its new position, or press escape to cancel.
911
- `},Ylt={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Xlt(e){let{announcements:t=Ylt,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=Glt}=e;const{announce:a,announcement:o}=Zlt(),s=Mw("DndLiveRegion"),[u,l]=F.useState(!1);if(F.useEffect(()=>{l(!0)},[]),Klt(F.useMemo(()=>({onDragStart(f){let{active:d}=f;a(t.onDragStart({active:d}))},onDragMove(f){let{active:d,over:h}=f;t.onDragMove&&a(t.onDragMove({active:d,over:h}))},onDragOver(f){let{active:d,over:h}=f;a(t.onDragOver({active:d,over:h}))},onDragEnd(f){let{active:d,over:h}=f;a(t.onDragEnd({active:d,over:h}))},onDragCancel(f){let{active:d,over:h}=f;a(t.onDragCancel({active:d,over:h}))}}),[a,t])),!u)return null;const c=Ce.createElement(Ce.Fragment,null,Ce.createElement(jlt,{id:n,value:i.draggable}),Ce.createElement(Wlt,{id:s,announcement:o}));return r?sc.createPortal(c,r):c}var os;(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"})(os||(os={}));function W$(){}function xmt(e,t){return F.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function _mt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return F.useMemo(()=>[...t].filter(n=>n!=null),[...t])}const uh=Object.freeze({x:0,y:0});function Jlt(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ect(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function tct(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function hne(e){let{left:t,top:r,height:n,width:i}=e;return[{x:t,y:r},{x:t+i,y:r},{x:t,y:r+n},{x:t+i,y:r+n}]}function O_e(e,t){if(!e||e.length===0)return null;const[r]=e;return r[t]}const rct=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=hne(t),a=[];for(const o of n){const{id:s}=o,u=r.get(s);if(u){const l=hne(u),c=i.reduce((d,h,g)=>d+Jlt(l[g],h),0),f=Number((c/4).toFixed(4));a.push({id:s,data:{droppableContainer:o,value:f}})}}return a.sort(ect)};function nct(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-n,s=a-r;if(n<i&&r<a){const u=t.width*t.height,l=e.width*e.height,c=o*s,f=c/(u+l-c);return Number(f.toFixed(4))}return 0}const ict=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=[];for(const a of n){const{id:o}=a,s=r.get(o);if(s){const u=nct(s,t);u>0&&i.push({id:o,data:{droppableContainer:a,value:u}})}}return i.sort(tct)};function act(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function x_e(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:uh}function oct(e){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((o,s)=>({...o,top:o.top+e*s.y,bottom:o.bottom+e*s.y,left:o.left+e*s.x,right:o.right+e*s.x}),{...r})}}const sct=oct(1);function uct(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 lct(e,t,r){const n=uct(t);if(!n)return e;const{scaleX:i,scaleY:a,x:o,y:s}=n,u=e.left-o-(1-i)*parseFloat(r),l=e.top-s-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?e.width/i:e.width,f=a?e.height/a:e.height;return{width:c,height:f,top:l,right:u+c,bottom:l+f,left:u}}const cct={ignoreTransform:!1};function zO(e,t){t===void 0&&(t=cct);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:l,transformOrigin:c}=yc(e).getComputedStyle(e);l&&(r=lct(r,l,c))}const{top:n,left:i,width:a,height:o,bottom:s,right:u}=r;return{top:n,left:i,width:a,height:o,bottom:s,right:u}}function pne(e){return zO(e,{ignoreTransform:!0})}function fct(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function dct(e,t){return t===void 0&&(t=yc(e).getComputedStyle(e)),t.position==="fixed"}function hct(e,t){t===void 0&&(t=yc(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const a=t[i];return typeof a=="string"?r.test(a):!1})}function iD(e,t){const r=[];function n(i){if(t!=null&&r.length>=t||!i)return r;if(LQ(i)&&i.scrollingElement!=null&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!Fw(i)||v_e(i)||r.includes(i))return r;const a=yc(e).getComputedStyle(i);return i!==e&&hct(i,a)&&r.push(i),dct(i,a)?r:n(i.parentNode)}return e?n(e):r}function __e(e){const[t]=iD(e,1);return t??null}function JI(e){return!nD||!e?null:NO(e)?e:NQ(e)?LQ(e)||e===LO(e).scrollingElement?window:Fw(e)?e:null:null}function S_e(e){return NO(e)?e.scrollX:e.scrollLeft}function w_e(e){return NO(e)?e.scrollY:e.scrollTop}function QM(e){return{x:S_e(e),y:w_e(e)}}var ws;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(ws||(ws={}));function E_e(e){return!nD||!e?!1:e===document.scrollingElement}function $_e(e){const t={x:0,y:0},r=E_e(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,o=e.scrollTop>=n.y,s=e.scrollLeft>=n.x;return{isTop:i,isLeft:a,isBottom:o,isRight:s,maxScroll:n,minScroll:t}}const pct={x:.2,y:.2};function mct(e,t,r,n,i){let{top:a,left:o,right:s,bottom:u}=r;n===void 0&&(n=10),i===void 0&&(i=pct);const{isTop:l,isBottom:c,isLeft:f,isRight:d}=$_e(e),h={x:0,y:0},g={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+m.height?(h.y=ws.Backward,g.y=n*Math.abs((t.top+m.height-a)/m.height)):!c&&u>=t.bottom-m.height&&(h.y=ws.Forward,g.y=n*Math.abs((t.bottom-m.height-u)/m.height)),!d&&s>=t.right-m.width?(h.x=ws.Forward,g.x=n*Math.abs((t.right-m.width-s)/m.width)):!f&&o<=t.left+m.width&&(h.x=ws.Backward,g.x=n*Math.abs((t.left+m.width-o)/m.width)),{direction:h,speed:g}}function gct(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:t,left:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}function C_e(e){return e.reduce((t,r)=>Nb(t,QM(r)),uh)}function vct(e){return e.reduce((t,r)=>t+S_e(r),0)}function yct(e){return e.reduce((t,r)=>t+w_e(r),0)}function bct(e,t){if(t===void 0&&(t=zO),!e)return;const{top:r,left:n,bottom:i,right:a}=t(e);__e(e)&&(i<=0||a<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Oct=[["x",["left","right"],vct],["y",["top","bottom"],yct]];class BQ{constructor(t,r){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 n=iD(r),i=C_e(n);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,s]of Oct)for(const u of o)Object.defineProperty(this,u,{get:()=>{const l=s(n),c=i[a]-l;return this.rect[u]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class z_{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...r)})},this.target=t}add(t,r,n){var i;(i=this.target)==null||i.addEventListener(t,r,n),this.listeners.push([t,r,n])}}function xct(e){const{EventTarget:t}=yc(e);return e instanceof t?e:LO(e)}function e7(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t?n>t.y:!1}var Ff;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ff||(Ff={}));function mne(e){e.preventDefault()}function _ct(e){e.stopPropagation()}var Jn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Jn||(Jn={}));const D_e={start:[Jn.Space,Jn.Enter],cancel:[Jn.Esc],end:[Jn.Space,Jn.Enter]},Sct=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case Jn.Right:return{...r,x:r.x+25};case Jn.Left:return{...r,x:r.x-25};case Jn.Down:return{...r,y:r.y+25};case Jn.Up:return{...r,y:r.y-25}}};class P_e{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:r}}=t;this.props=t,this.listeners=new z_(LO(r)),this.windowListeners=new z_(yc(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ff.Resize,this.handleCancel),this.windowListeners.add(Ff.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ff.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,n=t.node.current;n&&bct(n),r(uh)}handleKeyDown(t){if(QQ(t)){const{active:r,context:n,options:i}=this.props,{keyboardCodes:a=D_e,coordinateGetter:o=Sct,scrollBehavior:s="smooth"}=i,{code:u}=t;if(a.end.includes(u)){this.handleEnd(t);return}if(a.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:uh;this.referenceCoordinates||(this.referenceCoordinates=c);const f=o(t,{active:r,context:n.current,currentCoordinates:c});if(f){const d=ZS(f,c),h={x:0,y:0},{scrollableAncestors:g}=n.current;for(const m of g){const v=t.code,{isTop:y,isRight:O,isLeft:_,isBottom:C,maxScroll:$,minScroll:w}=$_e(m),P=gct(m),k={x:Math.min(v===Jn.Right?P.right-P.width/2:P.right,Math.max(v===Jn.Right?P.left:P.left+P.width/2,f.x)),y:Math.min(v===Jn.Down?P.bottom-P.height/2:P.bottom,Math.max(v===Jn.Down?P.top:P.top+P.height/2,f.y))},N=v===Jn.Right&&!O||v===Jn.Left&&!_,L=v===Jn.Down&&!C||v===Jn.Up&&!y;if(N&&k.x!==f.x){const Q=m.scrollLeft+d.x,B=v===Jn.Right&&Q<=$.x||v===Jn.Left&&Q>=w.x;if(B&&!d.y){m.scrollTo({left:Q,behavior:s});return}B?h.x=m.scrollLeft-Q:h.x=v===Jn.Right?m.scrollLeft-$.x:m.scrollLeft-w.x,h.x&&m.scrollBy({left:-h.x,behavior:s});break}else if(L&&k.y!==f.y){const Q=m.scrollTop+d.y,B=v===Jn.Down&&Q<=$.y||v===Jn.Up&&Q>=w.y;if(B&&!d.x){m.scrollTo({top:Q,behavior:s});return}B?h.y=m.scrollTop-Q:h.y=v===Jn.Down?m.scrollTop-$.y:m.scrollTop-w.y,h.y&&m.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(t,Nb(ZS(f,this.referenceCoordinates),h))}}}handleMove(t,r){const{onMove:n}=this.props;t.preventDefault(),n(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}P_e.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=D_e,onActivation:i}=t,{active:a}=r;const{code:o}=e.nativeEvent;if(n.start.includes(o)){const s=a.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function gne(e){return!!(e&&"distance"in e)}function vne(e){return!!(e&&"delay"in e)}class qQ{constructor(t,r,n){var i;n===void 0&&(n=xct(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=r;const{event:a}=t,{target:o}=a;this.props=t,this.events=r,this.document=LO(o),this.documentListeners=new z_(this.document),this.listeners=new z_(n),this.windowListeners=new z_(yc(o)),this.initialCoordinates=(i=zM(a))!=null?i:uh,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:r,bypassActivationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Ff.Resize,this.handleCancel),this.windowListeners.add(Ff.DragStart,mne),this.windowListeners.add(Ff.VisibilityChange,this.handleCancel),this.windowListeners.add(Ff.ContextMenu,mne),this.documentListeners.add(Ff.Keydown,this.handleKeydown),r){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(vne(r)){this.timeoutId=setTimeout(this.handleStart,r.delay);return}if(gne(r))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ff.Click,_ct,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ff.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:n,initialCoordinates:i,props:a}=this,{onMove:o,options:{activationConstraint:s}}=a;if(!i)return;const u=(r=zM(t))!=null?r:uh,l=ZS(i,u);if(!n&&s){if(gne(s)){if(s.tolerance!=null&&e7(l,s.tolerance))return this.handleCancel();if(e7(l,s.distance))return this.handleStart()}return vne(s)&&e7(l,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),o(u)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===Jn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const wct={move:{name:"pointermove"},end:{name:"pointerup"}};class R_e extends qQ{constructor(t){const{event:r}=t,n=LO(r.target);super(t,wct,n)}}R_e.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!r.isPrimary||r.button!==0?!1:(n==null||n({event:r}),!0)}}];const Ect={move:{name:"mousemove"},end:{name:"mouseup"}};var BM;(function(e){e[e.RightClick=2]="RightClick"})(BM||(BM={}));class $ct extends qQ{constructor(t){super(t,Ect,LO(t.event.target))}}$ct.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button===BM.RightClick?!1:(n==null||n({event:r}),!0)}}];const t7={move:{name:"touchmove"},end:{name:"touchend"}};class Cct extends qQ{constructor(t){super(t,t7)}static setup(){return window.addEventListener(t7.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(t7.move.name,t)};function t(){}}}Cct.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:i}=r;return i.length>1?!1:(n==null||n({event:r}),!0)}}];var Q_;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Q_||(Q_={}));var Z$;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Z$||(Z$={}));function Dct(e){let{acceleration:t,activator:r=Q_.Pointer,canScroll:n,draggingRect:i,enabled:a,interval:o=5,order:s=Z$.TreeOrder,pointerCoordinates:u,scrollableAncestors:l,scrollableAncestorRects:c,delta:f,threshold:d}=e;const h=Rct({delta:f,disabled:!a}),[g,m]=Qlt(),v=F.useRef({x:0,y:0}),y=F.useRef({x:0,y:0}),O=F.useMemo(()=>{switch(r){case Q_.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case Q_.DraggableRect:return i}},[r,i,u]),_=F.useRef(null),C=F.useCallback(()=>{const w=_.current;if(!w)return;const P=v.current.x*y.current.x,k=v.current.y*y.current.y;w.scrollBy(P,k)},[]),$=F.useMemo(()=>s===Z$.TreeOrder?[...l].reverse():l,[s,l]);F.useEffect(()=>{if(!a||!l.length||!O){m();return}for(const w of $){if((n==null?void 0:n(w))===!1)continue;const P=l.indexOf(w),k=c[P];if(!k)continue;const{direction:N,speed:L}=mct(w,k,O,t,d);for(const Q of["x","y"])h[Q][N[Q]]||(L[Q]=0,N[Q]=0);if(L.x>0||L.y>0){m(),_.current=w,g(C,o),v.current=L,y.current=N;return}}v.current={x:0,y:0},y.current={x:0,y:0},m()},[t,C,n,m,a,o,JSON.stringify(O),JSON.stringify(h),g,l,$,c,JSON.stringify(d)])}const Pct={x:{[ws.Backward]:!1,[ws.Forward]:!1},y:{[ws.Backward]:!1,[ws.Forward]:!1}};function Rct(e){let{delta:t,disabled:r}=e;const n=LM(t);return Iw(i=>{if(r||!n||!i)return Pct;const a={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[ws.Backward]:i.x[ws.Backward]||a.x===-1,[ws.Forward]:i.x[ws.Forward]||a.x===1},y:{[ws.Backward]:i.y[ws.Backward]||a.y===-1,[ws.Forward]:i.y[ws.Forward]||a.y===1}}},[r,t,n])}function kct(e,t){const r=t!==null?e.get(t):void 0,n=r?r.node.current:null;return Iw(i=>{var a;return t===null?null:(a=n??i)!=null?a:null},[n,t])}function Tct(e,t){return F.useMemo(()=>e.reduce((r,n)=>{const{sensor:i}=n,a=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,n)}));return[...r,...a]},[]),[e,t])}var KS;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(KS||(KS={}));var qM;(function(e){e.Optimized="optimized"})(qM||(qM={}));const yne=new Map;function Act(e,t){let{dragging:r,dependencies:n,config:i}=t;const[a,o]=F.useState(null),{frequency:s,measure:u,strategy:l}=i,c=F.useRef(e),f=v(),d=WS(f),h=F.useCallback(function(y){y===void 0&&(y=[]),!d.current&&o(O=>O===null?y:O.concat(y.filter(_=>!O.includes(_))))},[d]),g=F.useRef(null),m=Iw(y=>{if(f&&!r)return yne;if(!y||y===yne||c.current!==e||a!=null){const O=new Map;for(let _ of e){if(!_)continue;if(a&&a.length>0&&!a.includes(_.id)&&_.rect.current){O.set(_.id,_.rect.current);continue}const C=_.node.current,$=C?new BQ(u(C),C):null;_.rect.current=$,$&&O.set(_.id,$)}return O}return y},[e,a,r,f,u]);return F.useEffect(()=>{c.current=e},[e]),F.useEffect(()=>{f||h()},[r,f]),F.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),F.useEffect(()=>{f||typeof s!="number"||g.current!==null||(g.current=setTimeout(()=>{h(),g.current=null},s))},[s,f,h,...n]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:a!=null};function v(){switch(l){case KS.Always:return!1;case KS.BeforeDragging:return r;default:return!r}}}function k_e(e,t){return Iw(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function Fct(e,t){return k_e(e,t)}function Ict(e){let{callback:t,disabled:r}=e;const n=zQ(t),i=F.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(n)},[n,r]);return F.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function aD(e){let{callback:t,disabled:r}=e;const n=zQ(t),i=F.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(n)},[r]);return F.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Mct(e){return new BQ(zO(e),e)}function bne(e,t,r){t===void 0&&(t=Mct);const[n,i]=F.useReducer(s,null),a=Ict({callback(u){if(e)for(const l of u){const{type:c,target:f}=l;if(c==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),o=aD({callback:i});return sh(()=>{i(),e?(o==null||o.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),a==null||a.disconnect())},[e]),n;function s(u){if(!e)return null;if(e.isConnected===!1){var l;return(l=u??r)!=null?l:null}const c=t(e);return JSON.stringify(u)===JSON.stringify(c)?u:c}}function Nct(e){const t=k_e(e);return x_e(e,t)}const One=[];function Lct(e){const t=F.useRef(e),r=Iw(n=>e?n&&n!==One&&e&&t.current&&e.parentNode===t.current.parentNode?n:iD(e):One,[e]);return F.useEffect(()=>{t.current=e},[e]),r}function zct(e){const[t,r]=F.useState(null),n=F.useRef(e),i=F.useCallback(a=>{const o=JI(a.target);o&&r(s=>s?(s.set(o,QM(o)),new Map(s)):null)},[]);return F.useEffect(()=>{const a=n.current;if(e!==a){o(a);const s=e.map(u=>{const l=JI(u);return l?(l.addEventListener("scroll",i,{passive:!0}),[l,QM(l)]):null}).filter(u=>u!=null);r(s.length?new Map(s):null),n.current=e}return()=>{o(e),o(a)};function o(s){s.forEach(u=>{const l=JI(u);l==null||l.removeEventListener("scroll",i)})}},[i,e]),F.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,o)=>Nb(a,o),uh):C_e(e):uh,[e,t])}function xne(e,t){t===void 0&&(t=[]);const r=F.useRef(null);return F.useEffect(()=>{r.current=null},t),F.useEffect(()=>{const n=e!==uh;n&&!r.current&&(r.current=e),!n&&r.current&&(r.current=null)},[e]),r.current?ZS(e,r.current):uh}function Qct(e){F.useEffect(()=>{if(!nD)return;const t=e.map(r=>{let{sensor:n}=r;return n.setup==null?void 0:n.setup()});return()=>{for(const r of t)r==null||r()}},e.map(t=>{let{sensor:r}=t;return r}))}function Bct(e,t){return F.useMemo(()=>e.reduce((r,n)=>{let{eventName:i,handler:a}=n;return r[i]=o=>{a(o,t)},r},{}),[e,t])}function T_e(e){return F.useMemo(()=>e?fct(e):null,[e])}const r7=[];function qct(e,t){t===void 0&&(t=zO);const[r]=e,n=T_e(r?yc(r):null),[i,a]=F.useReducer(s,r7),o=aD({callback:a});return e.length>0&&i===r7&&a(),sh(()=>{e.length?e.forEach(u=>o==null?void 0:o.observe(u)):(o==null||o.disconnect(),a())},[e]),i;function s(){return e.length?e.map(u=>E_e(u)?n:new BQ(t(u),u)):r7}}function Uct(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Fw(t)?t:e}function Vct(e){let{measure:t}=e;const[r,n]=F.useState(null),i=F.useCallback(l=>{for(const{target:c}of l)if(Fw(c)){n(f=>{const d=t(c);return f?{...f,width:d.width,height:d.height}:d});break}},[t]),a=aD({callback:i}),o=F.useCallback(l=>{const c=Uct(l);a==null||a.disconnect(),c&&(a==null||a.observe(c)),n(c?t(c):null)},[t,a]),[s,u]=V$(o);return F.useMemo(()=>({nodeRef:s,rect:r,setRef:u}),[r,s,u])}const jct=[{sensor:R_e,options:{}},{sensor:P_e,options:{}}],Wct={current:{}},J3={draggable:{measure:pne},droppable:{measure:pne,strategy:KS.WhileDragging,frequency:qM.Optimized},dragOverlay:{measure:zO}};class B_ extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,n;return(r=(n=this.get(t))==null?void 0:n.node.current)!=null?r:void 0}}const Zct={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new B_,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:W$},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:J3,measureDroppableContainers:W$,windowRect:null,measuringScheduled:!1},Kct={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:W$,draggableNodes:new Map,over:null,measureDroppableContainers:W$},oD=F.createContext(Kct),A_e=F.createContext(Zct);function Hct(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new B_}}}function Gct(e,t){switch(t.type){case os.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case os.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case os.DragEnd:case os.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case os.RegisterDroppable:{const{element:r}=t,{id:n}=r,i=new B_(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case os.SetDroppableDisabled:{const{id:r,key:n,disabled:i}=t,a=e.droppable.containers.get(r);if(!a||n!==a.key)return e;const o=new B_(e.droppable.containers);return o.set(r,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case os.UnregisterDroppable:{const{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;const a=new B_(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Yct(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:i}=F.useContext(oD),a=LM(n),o=LM(r==null?void 0:r.id);return F.useEffect(()=>{if(!t&&!n&&a&&o!=null){if(!QQ(a)||document.activeElement===a.target)return;const s=i.get(o);if(!s)return;const{activatorNode:u,node:l}=s;if(!u.current&&!l.current)return;requestAnimationFrame(()=>{for(const c of[u.current,l.current]){if(!c)continue;const f=Ult(c);if(f){f.focus();break}}})}},[n,t,i,o,a]),null}function Xct(e,t){let{transform:r,...n}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...n}),r):r}function Jct(e){return F.useMemo(()=>({draggable:{...J3.draggable,...e==null?void 0:e.draggable},droppable:{...J3.droppable,...e==null?void 0:e.droppable},dragOverlay:{...J3.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 eft(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e;const a=F.useRef(!1),{x:o,y:s}=typeof i=="boolean"?{x:i,y:i}:i;sh(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!n)return;const l=t==null?void 0:t.node.current;if(!l||l.isConnected===!1)return;const c=r(l),f=x_e(c,n);if(o||(f.x=0),s||(f.y=0),a.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const d=__e(l);d&&d.scrollBy({top:f.y,left:f.x})}},[t,o,s,n,r])}const F_e=F.createContext({...uh,scaleX:1,scaleY:1});var Wm;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Wm||(Wm={}));const Smt=F.memo(function(t){var r,n,i,a;let{id:o,accessibility:s,autoScroll:u=!0,children:l,sensors:c=jct,collisionDetection:f=ict,measuring:d,modifiers:h,...g}=t;const m=F.useReducer(Gct,void 0,Hct),[v,y]=m,[O,_]=Hlt(),[C,$]=F.useState(Wm.Uninitialized),w=C===Wm.Initialized,{draggable:{active:P,nodes:k,translate:N},droppable:{containers:L}}=v,Q=P?k.get(P):null,B=F.useRef({initial:null,translated:null}),I=F.useMemo(()=>{var Pt;return P!=null?{id:P,data:(Pt=Q==null?void 0:Q.data)!=null?Pt:Wct,rect:B}:null},[P,Q]),K=F.useRef(null),[T,z]=F.useState(null),[q,U]=F.useState(null),V=WS(g,Object.values(g)),A=Mw("DndDescribedBy",o),M=F.useMemo(()=>L.getEnabled(),[L]),G=Jct(d),{droppableRects:W,measureDroppableContainers:re,measuringScheduled:ie}=Act(M,{dragging:w,dependencies:[N.x,N.y],config:G.droppable}),oe=kct(k,P),be=F.useMemo(()=>q?zM(q):null,[q]),me=kt(),Oe=Fct(oe,G.draggable.measure);eft({activeNode:P?k.get(P):null,config:me.layoutShiftCompensation,initialRect:Oe,measure:G.draggable.measure});const xe=bne(oe,G.draggable.measure,Oe),he=bne(oe?oe.parentElement:null),ne=F.useRef({activatorEvent:null,active:null,activeNode:oe,collisionRect:null,collisions:null,droppableRects:W,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:L,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ae=L.getNodeFor((r=ne.current.over)==null?void 0:r.id),X=Vct({measure:G.dragOverlay.measure}),te=(n=X.nodeRef.current)!=null?n:oe,de=w?(i=X.rect)!=null?i:xe:null,pe=!!(X.nodeRef.current&&X.rect),Se=Nct(pe?null:xe),$e=T_e(te?yc(te):null),ge=Lct(w?ae??oe:null),Ee=qct(ge),Re=Xct(h,{transform:{x:N.x-Se.x,y:N.y-Se.y,scaleX:1,scaleY:1},activatorEvent:q,active:I,activeNodeRect:xe,containerNodeRect:he,draggingNodeRect:de,over:ne.current.over,overlayNodeRect:X.rect,scrollableAncestors:ge,scrollableAncestorRects:Ee,windowRect:$e}),Fe=be?Nb(be,N):null,Ue=zct(ge),ze=xne(Ue),Te=xne(Ue,[xe]),Be=Nb(Re,ze),et=de?sct(de,Re):null,pt=I&&et?f({active:I,collisionRect:et,droppableRects:W,droppableContainers:M,pointerCoordinates:Fe}):null,St=O_e(pt,"id"),[ft,Ft]=F.useState(null),Bt=pe?Re:Nb(Re,Te),Vt=act(Bt,(a=ft==null?void 0:ft.rect)!=null?a:null,xe),Le=F.useCallback((Pt,zt)=>{let{sensor:ar,options:vr}=zt;if(K.current==null)return;const Tr=k.get(K.current);if(!Tr)return;const Rn=Pt.nativeEvent,kn=new ar({active:K.current,activeNode:Tr,event:Rn,options:vr,context:ne,onStart(Ze){const tt=K.current;if(tt==null)return;const lt=k.get(tt);if(!lt)return;const{onDragStart:_t}=V.current,jt={active:{id:tt,data:lt.data,rect:B}};sc.unstable_batchedUpdates(()=>{_t==null||_t(jt),$(Wm.Initializing),y({type:os.DragStart,initialCoordinates:Ze,active:tt}),O({type:"onDragStart",event:jt})})},onMove(Ze){y({type:os.DragMove,coordinates:Ze})},onEnd:Qe(os.DragEnd),onCancel:Qe(os.DragCancel)});sc.unstable_batchedUpdates(()=>{z(kn),U(Pt.nativeEvent)});function Qe(Ze){return async function(){const{active:lt,collisions:_t,over:jt,scrollAdjustedTranslate:Jt}=ne.current;let Tt=null;if(lt&&Jt){const{cancelDrop:Ht}=V.current;Tt={activatorEvent:Rn,active:lt,collisions:_t,delta:Jt,over:jt},Ze===os.DragEnd&&typeof Ht=="function"&&await Promise.resolve(Ht(Tt))&&(Ze=os.DragCancel)}K.current=null,sc.unstable_batchedUpdates(()=>{y({type:Ze}),$(Wm.Uninitialized),Ft(null),z(null),U(null);const Ht=Ze===os.DragEnd?"onDragEnd":"onDragCancel";if(Tt){const or=V.current[Ht];or==null||or(Tt),O({type:Ht,event:Tt})}})}}},[k]),Ye=F.useCallback((Pt,zt)=>(ar,vr)=>{const Tr=ar.nativeEvent,Rn=k.get(vr);if(K.current!==null||!Rn||Tr.dndKit||Tr.defaultPrevented)return;const kn={active:Rn};Pt(ar,zt.options,kn)===!0&&(Tr.dndKit={capturedBy:zt.sensor},K.current=vr,Le(ar,zt))},[k,Le]),mt=Tct(c,Ye);Qct(c),sh(()=>{xe&&C===Wm.Initializing&&$(Wm.Initialized)},[xe,C]),F.useEffect(()=>{const{onDragMove:Pt}=V.current,{active:zt,activatorEvent:ar,collisions:vr,over:Tr}=ne.current;if(!zt||!ar)return;const Rn={active:zt,activatorEvent:ar,collisions:vr,delta:{x:Be.x,y:Be.y},over:Tr};sc.unstable_batchedUpdates(()=>{Pt==null||Pt(Rn),O({type:"onDragMove",event:Rn})})},[Be.x,Be.y]),F.useEffect(()=>{const{active:Pt,activatorEvent:zt,collisions:ar,droppableContainers:vr,scrollAdjustedTranslate:Tr}=ne.current;if(!Pt||K.current==null||!zt||!Tr)return;const{onDragOver:Rn}=V.current,kn=vr.get(St),Qe=kn&&kn.rect.current?{id:kn.id,rect:kn.rect.current,data:kn.data,disabled:kn.disabled}:null,Ze={active:Pt,activatorEvent:zt,collisions:ar,delta:{x:Tr.x,y:Tr.y},over:Qe};sc.unstable_batchedUpdates(()=>{Ft(Qe),Rn==null||Rn(Ze),O({type:"onDragOver",event:Ze})})},[St]),sh(()=>{ne.current={activatorEvent:q,active:I,activeNode:oe,collisionRect:et,collisions:pt,droppableRects:W,draggableNodes:k,draggingNode:te,draggingNodeRect:de,droppableContainers:L,over:ft,scrollableAncestors:ge,scrollAdjustedTranslate:Be},B.current={initial:de,translated:et}},[I,oe,pt,et,k,te,de,W,L,ft,ge,Be]),Dct({...me,delta:N,draggingRect:et,pointerCoordinates:Fe,scrollableAncestors:ge,scrollableAncestorRects:Ee});const xt=F.useMemo(()=>({active:I,activeNode:oe,activeNodeRect:xe,activatorEvent:q,collisions:pt,containerNodeRect:he,dragOverlay:X,draggableNodes:k,droppableContainers:L,droppableRects:W,over:ft,measureDroppableContainers:re,scrollableAncestors:ge,scrollableAncestorRects:Ee,measuringConfiguration:G,measuringScheduled:ie,windowRect:$e}),[I,oe,xe,q,pt,he,X,k,L,W,ft,re,ge,Ee,G,ie,$e]),Ct=F.useMemo(()=>({activatorEvent:q,activators:mt,active:I,activeNodeRect:xe,ariaDescribedById:{draggable:A},dispatch:y,draggableNodes:k,over:ft,measureDroppableContainers:re}),[q,mt,I,xe,y,A,k,ft,re]);return Ce.createElement(b_e.Provider,{value:_},Ce.createElement(oD.Provider,{value:Ct},Ce.createElement(A_e.Provider,{value:xt},Ce.createElement(F_e.Provider,{value:Vt},l)),Ce.createElement(Yct,{disabled:(s==null?void 0:s.restoreFocus)===!1})),Ce.createElement(Xlt,{...s,hiddenTextDescribedById:A}));function kt(){const Pt=(T==null?void 0:T.autoScrollEnabled)===!1,zt=typeof u=="object"?u.enabled===!1:u===!1,ar=w&&!Pt&&!zt;return typeof u=="object"?{...u,enabled:ar}:{enabled:ar}}}),tft=F.createContext(null),_ne="button",rft="Droppable";function nft(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e;const a=Mw(rft),{activators:o,activatorEvent:s,active:u,activeNodeRect:l,ariaDescribedById:c,draggableNodes:f,over:d}=F.useContext(oD),{role:h=_ne,roleDescription:g="draggable",tabIndex:m=0}=i??{},v=(u==null?void 0:u.id)===t,y=F.useContext(v?F_e:tft),[O,_]=V$(),[C,$]=V$(),w=Bct(o,t),P=WS(r);sh(()=>(f.set(t,{id:t,key:a,node:O,activatorNode:C,data:P}),()=>{const N=f.get(t);N&&N.key===a&&f.delete(t)}),[f,t]);const k=F.useMemo(()=>({role:h,tabIndex:m,"aria-disabled":n,"aria-pressed":v&&h===_ne?!0:void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[n,h,m,v,g,c.draggable]);return{active:u,activatorEvent:s,activeNodeRect:l,attributes:k,isDragging:v,listeners:n?void 0:w,node:O,over:d,setNodeRef:_,setActivatorNodeRef:$,transform:y}}function ift(){return F.useContext(A_e)}const aft="Droppable",oft={timeout:25};function sft(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:i}=e;const a=Mw(aft),{active:o,dispatch:s,over:u,measureDroppableContainers:l}=F.useContext(oD),c=F.useRef({disabled:r}),f=F.useRef(!1),d=F.useRef(null),h=F.useRef(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...oft,...i},y=WS(m??n),O=F.useCallback(()=>{if(!f.current){f.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{l(Array.isArray(y.current)?y.current:[y.current]),h.current=null},v)},[v]),_=aD({callback:O,disabled:g||!o}),C=F.useCallback((k,N)=>{_&&(N&&(_.unobserve(N),f.current=!1),k&&_.observe(k))},[_]),[$,w]=V$(C),P=WS(t);return F.useEffect(()=>{!_||!$.current||(_.disconnect(),f.current=!1,_.observe($.current))},[$,_]),sh(()=>(s({type:os.RegisterDroppable,element:{id:n,key:a,disabled:r,node:$,rect:d,data:P}}),()=>s({type:os.UnregisterDroppable,key:a,id:n})),[n]),F.useEffect(()=>{r!==c.current.disabled&&(s({type:os.SetDroppableDisabled,id:n,key:a,disabled:r}),c.current.disabled=r)},[n,a,r,s]),{active:o,rect:d,isOver:(u==null?void 0:u.id)===n,node:$,over:u,setNodeRef:w}}function I_e(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function uft(e,t){return e.reduce((r,n,i)=>{const a=t.get(n);return a&&(r[i]=a),r},Array(e.length))}function _3(e){return e!==null&&e>=0}function lft(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function cft(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const M_e=e=>{let{rects:t,activeIndex:r,overIndex:n,index:i}=e;const a=I_e(t,n,r),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},N_e="Sortable",L_e=Ce.createContext({activeIndex:-1,containerId:N_e,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:M_e,disabled:{draggable:!1,droppable:!1}});function wmt(e){let{children:t,id:r,items:n,strategy:i=M_e,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:u,over:l,measureDroppableContainers:c}=ift(),f=Mw(N_e,r),d=s.rect!==null,h=F.useMemo(()=>n.map(w=>typeof w=="object"&&"id"in w?w.id:w),[n]),g=o!=null,m=o?h.indexOf(o.id):-1,v=l?h.indexOf(l.id):-1,y=F.useRef(h),O=!lft(h,y.current),_=v!==-1&&m===-1||O,C=cft(a);sh(()=>{O&&g&&c(h)},[O,h,g,c]),F.useEffect(()=>{y.current=h},[h]);const $=F.useMemo(()=>({activeIndex:m,containerId:f,disabled:C,disableTransforms:_,items:h,overIndex:v,useDragOverlay:d,sortedRects:uft(h,u),strategy:i}),[m,f,C.draggable,C.droppable,_,h,v,u,d,i]);return Ce.createElement(L_e.Provider,{value:$},t)}const fft=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return I_e(r,n,i).indexOf(t)},dft=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:u,transition:l}=e;return!l||!n||s!==a&&i===o?!1:r?!0:o!==i&&t===u},hft={duration:200,easing:"ease"},z_e="transform",pft=j$.Transition.toString({property:z_e,duration:0,easing:"linear"}),mft={roleDescription:"sortable"};function gft(e){let{disabled:t,index:r,node:n,rect:i}=e;const[a,o]=F.useState(null),s=F.useRef(r);return sh(()=>{if(!t&&r!==s.current&&n.current){const u=i.current;if(u){const l=zO(n.current,{ignoreTransform:!0}),c={x:u.left-l.left,y:u.top-l.top,scaleX:u.width/l.width,scaleY:u.height/l.height};(c.x||c.y)&&o(c)}}r!==s.current&&(s.current=r)},[t,r,n,i]),F.useEffect(()=>{a&&o(null)},[a]),a}function Emt(e){let{animateLayoutChanges:t=dft,attributes:r,disabled:n,data:i,getNewIndex:a=fft,id:o,strategy:s,resizeObserverConfig:u,transition:l=hft}=e;const{items:c,containerId:f,activeIndex:d,disabled:h,disableTransforms:g,sortedRects:m,overIndex:v,useDragOverlay:y,strategy:O}=F.useContext(L_e),_=vft(n,h),C=c.indexOf(o),$=F.useMemo(()=>({sortable:{containerId:f,index:C,items:c},...i}),[f,i,C,c]),w=F.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:P,node:k,isOver:N,setNodeRef:L}=sft({id:o,data:$,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...u}}),{active:Q,activatorEvent:B,activeNodeRect:I,attributes:K,setNodeRef:T,listeners:z,isDragging:q,over:U,setActivatorNodeRef:V,transform:A}=nft({id:o,data:$,attributes:{...mft,...r},disabled:_.draggable}),M=zlt(L,T),G=!!Q,W=G&&!g&&_3(d)&&_3(v),re=!y&&q,ie=re&&W?A:null,be=W?ie??(s??O)({rects:m,activeNodeRect:I,activeIndex:d,overIndex:v,index:C}):null,me=_3(d)&&_3(v)?a({id:o,items:c,activeIndex:d,overIndex:v}):C,Oe=Q==null?void 0:Q.id,xe=F.useRef({activeId:Oe,items:c,newIndex:me,containerId:f}),he=c!==xe.current.items,ne=t({active:Q,containerId:f,isDragging:q,isSorting:G,id:o,index:C,items:c,newIndex:xe.current.newIndex,previousItems:xe.current.items,previousContainerId:xe.current.containerId,transition:l,wasDragging:xe.current.activeId!=null}),ae=gft({disabled:!ne,index:C,node:k,rect:P});return F.useEffect(()=>{G&&xe.current.newIndex!==me&&(xe.current.newIndex=me),f!==xe.current.containerId&&(xe.current.containerId=f),c!==xe.current.items&&(xe.current.items=c)},[G,me,f,c]),F.useEffect(()=>{if(Oe===xe.current.activeId)return;if(Oe&&!xe.current.activeId){xe.current.activeId=Oe;return}const te=setTimeout(()=>{xe.current.activeId=Oe},50);return()=>clearTimeout(te)},[Oe]),{active:Q,activeIndex:d,attributes:K,data:$,rect:P,index:C,newIndex:me,items:c,isOver:N,isSorting:G,isDragging:q,listeners:z,node:k,overIndex:v,over:U,setNodeRef:M,setActivatorNodeRef:V,setDroppableNodeRef:L,setDraggableNodeRef:T,transform:ae??be,transition:X()};function X(){if(ae||he&&xe.current.newIndex===C)return pft;if(!(re&&!QQ(B)||!l)&&(G||ne))return j$.Transition.toString({...l,property:z_e})}}function vft(e,t){var r,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}function K$(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 yft=[Jn.Down,Jn.Right,Jn.Up,Jn.Left],$mt=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(yft.includes(e.code)){if(e.preventDefault(),!r||!n)return;const u=[];a.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const d=i.get(f.id);if(d)switch(e.code){case Jn.Down:n.top<d.top&&u.push(f);break;case Jn.Up:n.top>d.top&&u.push(f);break;case Jn.Left:n.left>d.left&&u.push(f);break;case Jn.Right:n.left<d.left&&u.push(f);break}});const l=rct({collisionRect:n,droppableRects:i,droppableContainers:u});let c=O_e(l,"id");if(c===(o==null?void 0:o.id)&&l.length>1&&(c=l[1].id),c!=null){const f=a.get(r.id),d=a.get(c),h=d?i.get(d.id):null,g=d==null?void 0:d.node.current;if(g&&h&&f&&d){const v=iD(g).some((w,P)=>s[P]!==w),y=Q_e(f,d),O=bft(f,d),_=v||!y?{x:0,y:0}:{x:O?n.width-h.width:0,y:O?n.height-h.height:0},C={x:h.left,y:h.top};return _.x&&_.y?C:ZS(C,_)}}}};function Q_e(e,t){return!K$(e)||!K$(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function bft(e,t){return!K$(e)||!K$(t)||!Q_e(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}var Sne=Object.prototype.hasOwnProperty;function wne(e,t,r){for(r of e.keys())if(q_(r,t))return r}function q_(e,t){var r,n,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&q_(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(i=n,i&&typeof i=="object"&&(i=wne(t,i),!i)||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(i=n[0],i&&typeof i=="object"&&(i=wne(t,i),!i)||!q_(n[1],t.get(i)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Sne.call(e,r)&&++n&&!Sne.call(t,r)||!(r in t)||!q_(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Oft(e){var t=F.useRef(e),r=F.useRef(0);return q_(e,t.current)||(t.current=e,r.current+=1),F.useMemo(function(){return t.current},[r.current])}function Cmt(e,t){return F.useEffect(e,Oft(t))}export{Za as $,st as A,dht as B,Jdt as C,bht as D,EK as E,Bge as F,tDe as G,kpt as H,g9e as I,Hj as J,tpt as K,_S as L,jft as M,Xht as N,Jht as O,kht as P,ept as Q,Ce as R,Sft as S,Lht as T,Rht as U,d9e as V,Tht as W,Nht as X,Vht as Y,Zht as Z,xp as _,sht as a,Pht as a$,j9e as a0,Mht as a1,Fht as a2,npt as a3,ppt as a4,dpt as a5,hpt as a6,Uht as a7,rpt as a8,yMe as a9,cpt as aA,fpt as aB,opt as aC,ypt as aD,mdt as aE,spt as aF,Fdt as aG,rz as aH,vpt as aI,kLe as aJ,Iht as aK,Upt as aL,Bpt as aM,Qpt as aN,Npt as aO,qpt as aP,fmt as aQ,RLe as aR,AL as aS,_pt as aT,rdt as aU,Tdt as aV,Gft as aW,ymt as aX,bmt as aY,Jse as aZ,gdt as a_,lht as aa,Xge as ab,Wht as ac,jht as ad,Kht as ae,Hht as af,Ipt as ag,iw as ah,Ght as ai,Yht as aj,Apt as ak,Aht as al,Pft as am,ipt as an,apt as ao,gpt as ap,mpt as aq,Qht as ar,qht as as,Bht as at,zht as au,K4 as av,Xf as aw,ed as ax,upt as ay,lpt as az,S6e as b,$pt as b$,knt as b0,ant as b1,yQe as b2,Tpt as b3,oC as b4,J0 as b5,Ydt as b6,Vdt as b7,z4 as b8,Bdt as b9,vmt as bA,Cpt as bB,Opt as bC,m0t as bD,iht as bE,wpt as bF,Pnt as bG,Rpt as bH,_ht as bI,Sht as bJ,wht as bK,Cht as bL,Vj as bM,_mt as bN,xmt as bO,wmt as bP,I_e as bQ,Smt as bR,$mt as bS,P_e as bT,R_e as bU,Emt as bV,j$ as bW,Ept as bX,bpt as bY,Dht as bZ,Cmt as b_,Omt as ba,Hft as bb,Kft as bc,Gdt as bd,zdt as be,jdt as bf,Udt as bg,Zdt as bh,Kdt as bi,Xdt as bj,Hdt as bk,Wdt as bl,qne as bm,Oht as bn,$ht as bo,xht as bp,Eht as bq,Spt as br,Fpt as bs,xpt as bt,l0t as bu,c0t as bv,vYe as bw,kdt as bx,zpt as by,pdt as bz,aht as c,Sdt as c$,Lpt as c0,ZNe as c1,T6e as c2,nht as c3,dg as c4,$dt as c5,Z0 as c6,edt as c7,Jft as c8,kft as c9,PPe as cA,TPe as cB,Bft as cC,Vft as cD,Loe as cE,Noe as cF,Ddt as cG,Cdt as cH,h$e as cI,_dt as cJ,f7 as cK,na as cL,Qft as cM,xdt as cN,Odt as cO,vdt as cP,gN as cQ,a5e as cR,Zue as cS,Uft as cT,bdt as cU,v2 as cV,ydt as cW,dy as cX,Edt as cY,YCe as cZ,sCe as c_,Nft as ca,Ti as cb,Xft as cc,nb as cd,H0 as ce,Yft as cf,$N as cg,Qie as ch,rDe as ci,zft as cj,adt as ck,Aft as cl,uCe as cm,fdt as cn,Lft as co,qft as cp,Wft as cq,Fft as cr,udt as cs,ddt as ct,kPe as cu,ldt as cv,K_ as cw,Mft as cx,cdt as cy,hdt as cz,eht as d,K0t as d$,wdt as d0,Zft as d1,mht as d2,ght as d3,vht as d4,Sy as d5,B2 as d6,aa as d7,fc as d8,iu as d9,f0t as dA,h0t as dB,p0t as dC,d0t as dD,g0t as dE,hN as dF,P0t as dG,b0t as dH,D0t as dI,C0t as dJ,$0t as dK,E0t as dL,w0t as dM,S0t as dN,pXe as dO,V0t as dP,j0t as dQ,W0t as dR,X0t as dS,Q0t as dT,HX as dU,U0t as dV,q0t as dW,zS as dX,B0t as dY,G0t as dZ,H0t as d_,m9 as da,wFe as db,ah as dc,AFe as dd,yht as de,jpt as df,Wpt as dg,$ve as dh,MBe as di,Vpt as dj,Zpt as dk,Ia as dl,DN as dm,sg as dn,oh as dp,Gpt as dq,nf as dr,Jpt as ds,e0t as dt,Hpt as du,t0t as dv,hht as dw,r0t as dx,y0t as dy,v0t as dz,I6e as e,Y0t as e0,eQ as e1,fOe as e2,QJe as e3,Z0t as e4,J0t as e5,O0t as e6,hXe as e7,L0t as e8,z0t as e9,Dpt as eA,Mpt as eB,rLe as eC,$ft as eD,N0t as ea,M0t as eb,I0t as ec,F0t as ed,Rbe as ee,A0t as ef,_0t as eg,x0t as eh,R0t as ei,T0t as ej,k0t as ek,fQ as el,emt as em,tmt as en,rmt as eo,nmt as ep,imt as eq,smt as er,omt as es,lmt as et,umt as eu,amt as ev,cmt as ew,qdt as ex,Xpt as ey,Ppt as ez,C6e as f,oht as g,tht as h,rht as i,wft as j,uht as k,Eft as l,Idt as m,Mdt as n,Cft as o,Ndt as p,fht as q,F as r,VZ as s,zAe as t,Pdt as u,cht as v,Rdt as w,Adt as x,b9 as y,Tce as z};
911
+ `},Ylt={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Xlt(e){let{announcements:t=Ylt,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=Glt}=e;const{announce:a,announcement:o}=Zlt(),s=Mw("DndLiveRegion"),[u,l]=F.useState(!1);if(F.useEffect(()=>{l(!0)},[]),Klt(F.useMemo(()=>({onDragStart(f){let{active:d}=f;a(t.onDragStart({active:d}))},onDragMove(f){let{active:d,over:h}=f;t.onDragMove&&a(t.onDragMove({active:d,over:h}))},onDragOver(f){let{active:d,over:h}=f;a(t.onDragOver({active:d,over:h}))},onDragEnd(f){let{active:d,over:h}=f;a(t.onDragEnd({active:d,over:h}))},onDragCancel(f){let{active:d,over:h}=f;a(t.onDragCancel({active:d,over:h}))}}),[a,t])),!u)return null;const c=Ce.createElement(Ce.Fragment,null,Ce.createElement(jlt,{id:n,value:i.draggable}),Ce.createElement(Wlt,{id:s,announcement:o}));return r?sc.createPortal(c,r):c}var os;(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"})(os||(os={}));function W$(){}function xmt(e,t){return F.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function _mt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return F.useMemo(()=>[...t].filter(n=>n!=null),[...t])}const uh=Object.freeze({x:0,y:0});function Jlt(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ect(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function tct(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function hne(e){let{left:t,top:r,height:n,width:i}=e;return[{x:t,y:r},{x:t+i,y:r},{x:t,y:r+n},{x:t+i,y:r+n}]}function O_e(e,t){if(!e||e.length===0)return null;const[r]=e;return r[t]}const rct=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=hne(t),a=[];for(const o of n){const{id:s}=o,u=r.get(s);if(u){const l=hne(u),c=i.reduce((d,h,g)=>d+Jlt(l[g],h),0),f=Number((c/4).toFixed(4));a.push({id:s,data:{droppableContainer:o,value:f}})}}return a.sort(ect)};function nct(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-n,s=a-r;if(n<i&&r<a){const u=t.width*t.height,l=e.width*e.height,c=o*s,f=c/(u+l-c);return Number(f.toFixed(4))}return 0}const ict=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=[];for(const a of n){const{id:o}=a,s=r.get(o);if(s){const u=nct(s,t);u>0&&i.push({id:o,data:{droppableContainer:a,value:u}})}}return i.sort(tct)};function act(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function x_e(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:uh}function oct(e){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((o,s)=>({...o,top:o.top+e*s.y,bottom:o.bottom+e*s.y,left:o.left+e*s.x,right:o.right+e*s.x}),{...r})}}const sct=oct(1);function uct(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 lct(e,t,r){const n=uct(t);if(!n)return e;const{scaleX:i,scaleY:a,x:o,y:s}=n,u=e.left-o-(1-i)*parseFloat(r),l=e.top-s-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?e.width/i:e.width,f=a?e.height/a:e.height;return{width:c,height:f,top:l,right:u+c,bottom:l+f,left:u}}const cct={ignoreTransform:!1};function zO(e,t){t===void 0&&(t=cct);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:l,transformOrigin:c}=yc(e).getComputedStyle(e);l&&(r=lct(r,l,c))}const{top:n,left:i,width:a,height:o,bottom:s,right:u}=r;return{top:n,left:i,width:a,height:o,bottom:s,right:u}}function pne(e){return zO(e,{ignoreTransform:!0})}function fct(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function dct(e,t){return t===void 0&&(t=yc(e).getComputedStyle(e)),t.position==="fixed"}function hct(e,t){t===void 0&&(t=yc(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const a=t[i];return typeof a=="string"?r.test(a):!1})}function iD(e,t){const r=[];function n(i){if(t!=null&&r.length>=t||!i)return r;if(LQ(i)&&i.scrollingElement!=null&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!Fw(i)||v_e(i)||r.includes(i))return r;const a=yc(e).getComputedStyle(i);return i!==e&&hct(i,a)&&r.push(i),dct(i,a)?r:n(i.parentNode)}return e?n(e):r}function __e(e){const[t]=iD(e,1);return t??null}function JI(e){return!nD||!e?null:NO(e)?e:NQ(e)?LQ(e)||e===LO(e).scrollingElement?window:Fw(e)?e:null:null}function S_e(e){return NO(e)?e.scrollX:e.scrollLeft}function w_e(e){return NO(e)?e.scrollY:e.scrollTop}function QM(e){return{x:S_e(e),y:w_e(e)}}var ws;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(ws||(ws={}));function E_e(e){return!nD||!e?!1:e===document.scrollingElement}function $_e(e){const t={x:0,y:0},r=E_e(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,o=e.scrollTop>=n.y,s=e.scrollLeft>=n.x;return{isTop:i,isLeft:a,isBottom:o,isRight:s,maxScroll:n,minScroll:t}}const pct={x:.2,y:.2};function mct(e,t,r,n,i){let{top:a,left:o,right:s,bottom:u}=r;n===void 0&&(n=10),i===void 0&&(i=pct);const{isTop:l,isBottom:c,isLeft:f,isRight:d}=$_e(e),h={x:0,y:0},g={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+m.height?(h.y=ws.Backward,g.y=n*Math.abs((t.top+m.height-a)/m.height)):!c&&u>=t.bottom-m.height&&(h.y=ws.Forward,g.y=n*Math.abs((t.bottom-m.height-u)/m.height)),!d&&s>=t.right-m.width?(h.x=ws.Forward,g.x=n*Math.abs((t.right-m.width-s)/m.width)):!f&&o<=t.left+m.width&&(h.x=ws.Backward,g.x=n*Math.abs((t.left+m.width-o)/m.width)),{direction:h,speed:g}}function gct(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:t,left:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}function C_e(e){return e.reduce((t,r)=>Nb(t,QM(r)),uh)}function vct(e){return e.reduce((t,r)=>t+S_e(r),0)}function yct(e){return e.reduce((t,r)=>t+w_e(r),0)}function bct(e,t){if(t===void 0&&(t=zO),!e)return;const{top:r,left:n,bottom:i,right:a}=t(e);__e(e)&&(i<=0||a<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Oct=[["x",["left","right"],vct],["y",["top","bottom"],yct]];class BQ{constructor(t,r){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 n=iD(r),i=C_e(n);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,s]of Oct)for(const u of o)Object.defineProperty(this,u,{get:()=>{const l=s(n),c=i[a]-l;return this.rect[u]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class z_{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...r)})},this.target=t}add(t,r,n){var i;(i=this.target)==null||i.addEventListener(t,r,n),this.listeners.push([t,r,n])}}function xct(e){const{EventTarget:t}=yc(e);return e instanceof t?e:LO(e)}function e7(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t?n>t.y:!1}var Ff;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ff||(Ff={}));function mne(e){e.preventDefault()}function _ct(e){e.stopPropagation()}var Jn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Jn||(Jn={}));const D_e={start:[Jn.Space,Jn.Enter],cancel:[Jn.Esc],end:[Jn.Space,Jn.Enter]},Sct=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case Jn.Right:return{...r,x:r.x+25};case Jn.Left:return{...r,x:r.x-25};case Jn.Down:return{...r,y:r.y+25};case Jn.Up:return{...r,y:r.y-25}}};class P_e{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:r}}=t;this.props=t,this.listeners=new z_(LO(r)),this.windowListeners=new z_(yc(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ff.Resize,this.handleCancel),this.windowListeners.add(Ff.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ff.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,n=t.node.current;n&&bct(n),r(uh)}handleKeyDown(t){if(QQ(t)){const{active:r,context:n,options:i}=this.props,{keyboardCodes:a=D_e,coordinateGetter:o=Sct,scrollBehavior:s="smooth"}=i,{code:u}=t;if(a.end.includes(u)){this.handleEnd(t);return}if(a.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:uh;this.referenceCoordinates||(this.referenceCoordinates=c);const f=o(t,{active:r,context:n.current,currentCoordinates:c});if(f){const d=ZS(f,c),h={x:0,y:0},{scrollableAncestors:g}=n.current;for(const m of g){const v=t.code,{isTop:y,isRight:O,isLeft:_,isBottom:C,maxScroll:$,minScroll:w}=$_e(m),P=gct(m),k={x:Math.min(v===Jn.Right?P.right-P.width/2:P.right,Math.max(v===Jn.Right?P.left:P.left+P.width/2,f.x)),y:Math.min(v===Jn.Down?P.bottom-P.height/2:P.bottom,Math.max(v===Jn.Down?P.top:P.top+P.height/2,f.y))},N=v===Jn.Right&&!O||v===Jn.Left&&!_,L=v===Jn.Down&&!C||v===Jn.Up&&!y;if(N&&k.x!==f.x){const Q=m.scrollLeft+d.x,B=v===Jn.Right&&Q<=$.x||v===Jn.Left&&Q>=w.x;if(B&&!d.y){m.scrollTo({left:Q,behavior:s});return}B?h.x=m.scrollLeft-Q:h.x=v===Jn.Right?m.scrollLeft-$.x:m.scrollLeft-w.x,h.x&&m.scrollBy({left:-h.x,behavior:s});break}else if(L&&k.y!==f.y){const Q=m.scrollTop+d.y,B=v===Jn.Down&&Q<=$.y||v===Jn.Up&&Q>=w.y;if(B&&!d.x){m.scrollTo({top:Q,behavior:s});return}B?h.y=m.scrollTop-Q:h.y=v===Jn.Down?m.scrollTop-$.y:m.scrollTop-w.y,h.y&&m.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(t,Nb(ZS(f,this.referenceCoordinates),h))}}}handleMove(t,r){const{onMove:n}=this.props;t.preventDefault(),n(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}P_e.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=D_e,onActivation:i}=t,{active:a}=r;const{code:o}=e.nativeEvent;if(n.start.includes(o)){const s=a.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function gne(e){return!!(e&&"distance"in e)}function vne(e){return!!(e&&"delay"in e)}class qQ{constructor(t,r,n){var i;n===void 0&&(n=xct(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=r;const{event:a}=t,{target:o}=a;this.props=t,this.events=r,this.document=LO(o),this.documentListeners=new z_(this.document),this.listeners=new z_(n),this.windowListeners=new z_(yc(o)),this.initialCoordinates=(i=zM(a))!=null?i:uh,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:r,bypassActivationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Ff.Resize,this.handleCancel),this.windowListeners.add(Ff.DragStart,mne),this.windowListeners.add(Ff.VisibilityChange,this.handleCancel),this.windowListeners.add(Ff.ContextMenu,mne),this.documentListeners.add(Ff.Keydown,this.handleKeydown),r){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(vne(r)){this.timeoutId=setTimeout(this.handleStart,r.delay);return}if(gne(r))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ff.Click,_ct,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ff.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:n,initialCoordinates:i,props:a}=this,{onMove:o,options:{activationConstraint:s}}=a;if(!i)return;const u=(r=zM(t))!=null?r:uh,l=ZS(i,u);if(!n&&s){if(gne(s)){if(s.tolerance!=null&&e7(l,s.tolerance))return this.handleCancel();if(e7(l,s.distance))return this.handleStart()}return vne(s)&&e7(l,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),o(u)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===Jn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const wct={move:{name:"pointermove"},end:{name:"pointerup"}};class R_e extends qQ{constructor(t){const{event:r}=t,n=LO(r.target);super(t,wct,n)}}R_e.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!r.isPrimary||r.button!==0?!1:(n==null||n({event:r}),!0)}}];const Ect={move:{name:"mousemove"},end:{name:"mouseup"}};var BM;(function(e){e[e.RightClick=2]="RightClick"})(BM||(BM={}));class $ct extends qQ{constructor(t){super(t,Ect,LO(t.event.target))}}$ct.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button===BM.RightClick?!1:(n==null||n({event:r}),!0)}}];const t7={move:{name:"touchmove"},end:{name:"touchend"}};class Cct extends qQ{constructor(t){super(t,t7)}static setup(){return window.addEventListener(t7.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(t7.move.name,t)};function t(){}}}Cct.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:i}=r;return i.length>1?!1:(n==null||n({event:r}),!0)}}];var Q_;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Q_||(Q_={}));var Z$;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Z$||(Z$={}));function Dct(e){let{acceleration:t,activator:r=Q_.Pointer,canScroll:n,draggingRect:i,enabled:a,interval:o=5,order:s=Z$.TreeOrder,pointerCoordinates:u,scrollableAncestors:l,scrollableAncestorRects:c,delta:f,threshold:d}=e;const h=Rct({delta:f,disabled:!a}),[g,m]=Qlt(),v=F.useRef({x:0,y:0}),y=F.useRef({x:0,y:0}),O=F.useMemo(()=>{switch(r){case Q_.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case Q_.DraggableRect:return i}},[r,i,u]),_=F.useRef(null),C=F.useCallback(()=>{const w=_.current;if(!w)return;const P=v.current.x*y.current.x,k=v.current.y*y.current.y;w.scrollBy(P,k)},[]),$=F.useMemo(()=>s===Z$.TreeOrder?[...l].reverse():l,[s,l]);F.useEffect(()=>{if(!a||!l.length||!O){m();return}for(const w of $){if((n==null?void 0:n(w))===!1)continue;const P=l.indexOf(w),k=c[P];if(!k)continue;const{direction:N,speed:L}=mct(w,k,O,t,d);for(const Q of["x","y"])h[Q][N[Q]]||(L[Q]=0,N[Q]=0);if(L.x>0||L.y>0){m(),_.current=w,g(C,o),v.current=L,y.current=N;return}}v.current={x:0,y:0},y.current={x:0,y:0},m()},[t,C,n,m,a,o,JSON.stringify(O),JSON.stringify(h),g,l,$,c,JSON.stringify(d)])}const Pct={x:{[ws.Backward]:!1,[ws.Forward]:!1},y:{[ws.Backward]:!1,[ws.Forward]:!1}};function Rct(e){let{delta:t,disabled:r}=e;const n=LM(t);return Iw(i=>{if(r||!n||!i)return Pct;const a={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[ws.Backward]:i.x[ws.Backward]||a.x===-1,[ws.Forward]:i.x[ws.Forward]||a.x===1},y:{[ws.Backward]:i.y[ws.Backward]||a.y===-1,[ws.Forward]:i.y[ws.Forward]||a.y===1}}},[r,t,n])}function kct(e,t){const r=t!==null?e.get(t):void 0,n=r?r.node.current:null;return Iw(i=>{var a;return t===null?null:(a=n??i)!=null?a:null},[n,t])}function Tct(e,t){return F.useMemo(()=>e.reduce((r,n)=>{const{sensor:i}=n,a=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,n)}));return[...r,...a]},[]),[e,t])}var KS;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(KS||(KS={}));var qM;(function(e){e.Optimized="optimized"})(qM||(qM={}));const yne=new Map;function Act(e,t){let{dragging:r,dependencies:n,config:i}=t;const[a,o]=F.useState(null),{frequency:s,measure:u,strategy:l}=i,c=F.useRef(e),f=v(),d=WS(f),h=F.useCallback(function(y){y===void 0&&(y=[]),!d.current&&o(O=>O===null?y:O.concat(y.filter(_=>!O.includes(_))))},[d]),g=F.useRef(null),m=Iw(y=>{if(f&&!r)return yne;if(!y||y===yne||c.current!==e||a!=null){const O=new Map;for(let _ of e){if(!_)continue;if(a&&a.length>0&&!a.includes(_.id)&&_.rect.current){O.set(_.id,_.rect.current);continue}const C=_.node.current,$=C?new BQ(u(C),C):null;_.rect.current=$,$&&O.set(_.id,$)}return O}return y},[e,a,r,f,u]);return F.useEffect(()=>{c.current=e},[e]),F.useEffect(()=>{f||h()},[r,f]),F.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),F.useEffect(()=>{f||typeof s!="number"||g.current!==null||(g.current=setTimeout(()=>{h(),g.current=null},s))},[s,f,h,...n]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:a!=null};function v(){switch(l){case KS.Always:return!1;case KS.BeforeDragging:return r;default:return!r}}}function k_e(e,t){return Iw(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function Fct(e,t){return k_e(e,t)}function Ict(e){let{callback:t,disabled:r}=e;const n=zQ(t),i=F.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(n)},[n,r]);return F.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function aD(e){let{callback:t,disabled:r}=e;const n=zQ(t),i=F.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(n)},[r]);return F.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Mct(e){return new BQ(zO(e),e)}function bne(e,t,r){t===void 0&&(t=Mct);const[n,i]=F.useReducer(s,null),a=Ict({callback(u){if(e)for(const l of u){const{type:c,target:f}=l;if(c==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),o=aD({callback:i});return sh(()=>{i(),e?(o==null||o.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),a==null||a.disconnect())},[e]),n;function s(u){if(!e)return null;if(e.isConnected===!1){var l;return(l=u??r)!=null?l:null}const c=t(e);return JSON.stringify(u)===JSON.stringify(c)?u:c}}function Nct(e){const t=k_e(e);return x_e(e,t)}const One=[];function Lct(e){const t=F.useRef(e),r=Iw(n=>e?n&&n!==One&&e&&t.current&&e.parentNode===t.current.parentNode?n:iD(e):One,[e]);return F.useEffect(()=>{t.current=e},[e]),r}function zct(e){const[t,r]=F.useState(null),n=F.useRef(e),i=F.useCallback(a=>{const o=JI(a.target);o&&r(s=>s?(s.set(o,QM(o)),new Map(s)):null)},[]);return F.useEffect(()=>{const a=n.current;if(e!==a){o(a);const s=e.map(u=>{const l=JI(u);return l?(l.addEventListener("scroll",i,{passive:!0}),[l,QM(l)]):null}).filter(u=>u!=null);r(s.length?new Map(s):null),n.current=e}return()=>{o(e),o(a)};function o(s){s.forEach(u=>{const l=JI(u);l==null||l.removeEventListener("scroll",i)})}},[i,e]),F.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,o)=>Nb(a,o),uh):C_e(e):uh,[e,t])}function xne(e,t){t===void 0&&(t=[]);const r=F.useRef(null);return F.useEffect(()=>{r.current=null},t),F.useEffect(()=>{const n=e!==uh;n&&!r.current&&(r.current=e),!n&&r.current&&(r.current=null)},[e]),r.current?ZS(e,r.current):uh}function Qct(e){F.useEffect(()=>{if(!nD)return;const t=e.map(r=>{let{sensor:n}=r;return n.setup==null?void 0:n.setup()});return()=>{for(const r of t)r==null||r()}},e.map(t=>{let{sensor:r}=t;return r}))}function Bct(e,t){return F.useMemo(()=>e.reduce((r,n)=>{let{eventName:i,handler:a}=n;return r[i]=o=>{a(o,t)},r},{}),[e,t])}function T_e(e){return F.useMemo(()=>e?fct(e):null,[e])}const r7=[];function qct(e,t){t===void 0&&(t=zO);const[r]=e,n=T_e(r?yc(r):null),[i,a]=F.useReducer(s,r7),o=aD({callback:a});return e.length>0&&i===r7&&a(),sh(()=>{e.length?e.forEach(u=>o==null?void 0:o.observe(u)):(o==null||o.disconnect(),a())},[e]),i;function s(){return e.length?e.map(u=>E_e(u)?n:new BQ(t(u),u)):r7}}function Uct(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Fw(t)?t:e}function Vct(e){let{measure:t}=e;const[r,n]=F.useState(null),i=F.useCallback(l=>{for(const{target:c}of l)if(Fw(c)){n(f=>{const d=t(c);return f?{...f,width:d.width,height:d.height}:d});break}},[t]),a=aD({callback:i}),o=F.useCallback(l=>{const c=Uct(l);a==null||a.disconnect(),c&&(a==null||a.observe(c)),n(c?t(c):null)},[t,a]),[s,u]=V$(o);return F.useMemo(()=>({nodeRef:s,rect:r,setRef:u}),[r,s,u])}const jct=[{sensor:R_e,options:{}},{sensor:P_e,options:{}}],Wct={current:{}},J3={draggable:{measure:pne},droppable:{measure:pne,strategy:KS.WhileDragging,frequency:qM.Optimized},dragOverlay:{measure:zO}};class B_ extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,n;return(r=(n=this.get(t))==null?void 0:n.node.current)!=null?r:void 0}}const Zct={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new B_,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:W$},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:J3,measureDroppableContainers:W$,windowRect:null,measuringScheduled:!1},Kct={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:W$,draggableNodes:new Map,over:null,measureDroppableContainers:W$},oD=F.createContext(Kct),A_e=F.createContext(Zct);function Hct(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new B_}}}function Gct(e,t){switch(t.type){case os.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case os.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case os.DragEnd:case os.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case os.RegisterDroppable:{const{element:r}=t,{id:n}=r,i=new B_(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case os.SetDroppableDisabled:{const{id:r,key:n,disabled:i}=t,a=e.droppable.containers.get(r);if(!a||n!==a.key)return e;const o=new B_(e.droppable.containers);return o.set(r,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case os.UnregisterDroppable:{const{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;const a=new B_(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Yct(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:i}=F.useContext(oD),a=LM(n),o=LM(r==null?void 0:r.id);return F.useEffect(()=>{if(!t&&!n&&a&&o!=null){if(!QQ(a)||document.activeElement===a.target)return;const s=i.get(o);if(!s)return;const{activatorNode:u,node:l}=s;if(!u.current&&!l.current)return;requestAnimationFrame(()=>{for(const c of[u.current,l.current]){if(!c)continue;const f=Ult(c);if(f){f.focus();break}}})}},[n,t,i,o,a]),null}function Xct(e,t){let{transform:r,...n}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...n}),r):r}function Jct(e){return F.useMemo(()=>({draggable:{...J3.draggable,...e==null?void 0:e.draggable},droppable:{...J3.droppable,...e==null?void 0:e.droppable},dragOverlay:{...J3.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 eft(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e;const a=F.useRef(!1),{x:o,y:s}=typeof i=="boolean"?{x:i,y:i}:i;sh(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!n)return;const l=t==null?void 0:t.node.current;if(!l||l.isConnected===!1)return;const c=r(l),f=x_e(c,n);if(o||(f.x=0),s||(f.y=0),a.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const d=__e(l);d&&d.scrollBy({top:f.y,left:f.x})}},[t,o,s,n,r])}const F_e=F.createContext({...uh,scaleX:1,scaleY:1});var Wm;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Wm||(Wm={}));const Smt=F.memo(function(t){var r,n,i,a;let{id:o,accessibility:s,autoScroll:u=!0,children:l,sensors:c=jct,collisionDetection:f=ict,measuring:d,modifiers:h,...g}=t;const m=F.useReducer(Gct,void 0,Hct),[v,y]=m,[O,_]=Hlt(),[C,$]=F.useState(Wm.Uninitialized),w=C===Wm.Initialized,{draggable:{active:P,nodes:k,translate:N},droppable:{containers:L}}=v,Q=P?k.get(P):null,B=F.useRef({initial:null,translated:null}),I=F.useMemo(()=>{var Pt;return P!=null?{id:P,data:(Pt=Q==null?void 0:Q.data)!=null?Pt:Wct,rect:B}:null},[P,Q]),K=F.useRef(null),[T,z]=F.useState(null),[q,U]=F.useState(null),V=WS(g,Object.values(g)),A=Mw("DndDescribedBy",o),M=F.useMemo(()=>L.getEnabled(),[L]),G=Jct(d),{droppableRects:W,measureDroppableContainers:re,measuringScheduled:ie}=Act(M,{dragging:w,dependencies:[N.x,N.y],config:G.droppable}),oe=kct(k,P),be=F.useMemo(()=>q?zM(q):null,[q]),me=kt(),Oe=Fct(oe,G.draggable.measure);eft({activeNode:P?k.get(P):null,config:me.layoutShiftCompensation,initialRect:Oe,measure:G.draggable.measure});const xe=bne(oe,G.draggable.measure,Oe),he=bne(oe?oe.parentElement:null),ne=F.useRef({activatorEvent:null,active:null,activeNode:oe,collisionRect:null,collisions:null,droppableRects:W,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:L,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ae=L.getNodeFor((r=ne.current.over)==null?void 0:r.id),X=Vct({measure:G.dragOverlay.measure}),te=(n=X.nodeRef.current)!=null?n:oe,de=w?(i=X.rect)!=null?i:xe:null,pe=!!(X.nodeRef.current&&X.rect),Se=Nct(pe?null:xe),$e=T_e(te?yc(te):null),ge=Lct(w?ae??oe:null),Ee=qct(ge),Re=Xct(h,{transform:{x:N.x-Se.x,y:N.y-Se.y,scaleX:1,scaleY:1},activatorEvent:q,active:I,activeNodeRect:xe,containerNodeRect:he,draggingNodeRect:de,over:ne.current.over,overlayNodeRect:X.rect,scrollableAncestors:ge,scrollableAncestorRects:Ee,windowRect:$e}),Fe=be?Nb(be,N):null,Ue=zct(ge),ze=xne(Ue),Te=xne(Ue,[xe]),Be=Nb(Re,ze),et=de?sct(de,Re):null,pt=I&&et?f({active:I,collisionRect:et,droppableRects:W,droppableContainers:M,pointerCoordinates:Fe}):null,St=O_e(pt,"id"),[ft,Ft]=F.useState(null),Bt=pe?Re:Nb(Re,Te),Vt=act(Bt,(a=ft==null?void 0:ft.rect)!=null?a:null,xe),Le=F.useCallback((Pt,zt)=>{let{sensor:ar,options:vr}=zt;if(K.current==null)return;const Tr=k.get(K.current);if(!Tr)return;const Rn=Pt.nativeEvent,kn=new ar({active:K.current,activeNode:Tr,event:Rn,options:vr,context:ne,onStart(Ze){const tt=K.current;if(tt==null)return;const lt=k.get(tt);if(!lt)return;const{onDragStart:_t}=V.current,jt={active:{id:tt,data:lt.data,rect:B}};sc.unstable_batchedUpdates(()=>{_t==null||_t(jt),$(Wm.Initializing),y({type:os.DragStart,initialCoordinates:Ze,active:tt}),O({type:"onDragStart",event:jt})})},onMove(Ze){y({type:os.DragMove,coordinates:Ze})},onEnd:Qe(os.DragEnd),onCancel:Qe(os.DragCancel)});sc.unstable_batchedUpdates(()=>{z(kn),U(Pt.nativeEvent)});function Qe(Ze){return async function(){const{active:lt,collisions:_t,over:jt,scrollAdjustedTranslate:Jt}=ne.current;let Tt=null;if(lt&&Jt){const{cancelDrop:Ht}=V.current;Tt={activatorEvent:Rn,active:lt,collisions:_t,delta:Jt,over:jt},Ze===os.DragEnd&&typeof Ht=="function"&&await Promise.resolve(Ht(Tt))&&(Ze=os.DragCancel)}K.current=null,sc.unstable_batchedUpdates(()=>{y({type:Ze}),$(Wm.Uninitialized),Ft(null),z(null),U(null);const Ht=Ze===os.DragEnd?"onDragEnd":"onDragCancel";if(Tt){const or=V.current[Ht];or==null||or(Tt),O({type:Ht,event:Tt})}})}}},[k]),Ye=F.useCallback((Pt,zt)=>(ar,vr)=>{const Tr=ar.nativeEvent,Rn=k.get(vr);if(K.current!==null||!Rn||Tr.dndKit||Tr.defaultPrevented)return;const kn={active:Rn};Pt(ar,zt.options,kn)===!0&&(Tr.dndKit={capturedBy:zt.sensor},K.current=vr,Le(ar,zt))},[k,Le]),mt=Tct(c,Ye);Qct(c),sh(()=>{xe&&C===Wm.Initializing&&$(Wm.Initialized)},[xe,C]),F.useEffect(()=>{const{onDragMove:Pt}=V.current,{active:zt,activatorEvent:ar,collisions:vr,over:Tr}=ne.current;if(!zt||!ar)return;const Rn={active:zt,activatorEvent:ar,collisions:vr,delta:{x:Be.x,y:Be.y},over:Tr};sc.unstable_batchedUpdates(()=>{Pt==null||Pt(Rn),O({type:"onDragMove",event:Rn})})},[Be.x,Be.y]),F.useEffect(()=>{const{active:Pt,activatorEvent:zt,collisions:ar,droppableContainers:vr,scrollAdjustedTranslate:Tr}=ne.current;if(!Pt||K.current==null||!zt||!Tr)return;const{onDragOver:Rn}=V.current,kn=vr.get(St),Qe=kn&&kn.rect.current?{id:kn.id,rect:kn.rect.current,data:kn.data,disabled:kn.disabled}:null,Ze={active:Pt,activatorEvent:zt,collisions:ar,delta:{x:Tr.x,y:Tr.y},over:Qe};sc.unstable_batchedUpdates(()=>{Ft(Qe),Rn==null||Rn(Ze),O({type:"onDragOver",event:Ze})})},[St]),sh(()=>{ne.current={activatorEvent:q,active:I,activeNode:oe,collisionRect:et,collisions:pt,droppableRects:W,draggableNodes:k,draggingNode:te,draggingNodeRect:de,droppableContainers:L,over:ft,scrollableAncestors:ge,scrollAdjustedTranslate:Be},B.current={initial:de,translated:et}},[I,oe,pt,et,k,te,de,W,L,ft,ge,Be]),Dct({...me,delta:N,draggingRect:et,pointerCoordinates:Fe,scrollableAncestors:ge,scrollableAncestorRects:Ee});const xt=F.useMemo(()=>({active:I,activeNode:oe,activeNodeRect:xe,activatorEvent:q,collisions:pt,containerNodeRect:he,dragOverlay:X,draggableNodes:k,droppableContainers:L,droppableRects:W,over:ft,measureDroppableContainers:re,scrollableAncestors:ge,scrollableAncestorRects:Ee,measuringConfiguration:G,measuringScheduled:ie,windowRect:$e}),[I,oe,xe,q,pt,he,X,k,L,W,ft,re,ge,Ee,G,ie,$e]),Ct=F.useMemo(()=>({activatorEvent:q,activators:mt,active:I,activeNodeRect:xe,ariaDescribedById:{draggable:A},dispatch:y,draggableNodes:k,over:ft,measureDroppableContainers:re}),[q,mt,I,xe,y,A,k,ft,re]);return Ce.createElement(b_e.Provider,{value:_},Ce.createElement(oD.Provider,{value:Ct},Ce.createElement(A_e.Provider,{value:xt},Ce.createElement(F_e.Provider,{value:Vt},l)),Ce.createElement(Yct,{disabled:(s==null?void 0:s.restoreFocus)===!1})),Ce.createElement(Xlt,{...s,hiddenTextDescribedById:A}));function kt(){const Pt=(T==null?void 0:T.autoScrollEnabled)===!1,zt=typeof u=="object"?u.enabled===!1:u===!1,ar=w&&!Pt&&!zt;return typeof u=="object"?{...u,enabled:ar}:{enabled:ar}}}),tft=F.createContext(null),_ne="button",rft="Droppable";function nft(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e;const a=Mw(rft),{activators:o,activatorEvent:s,active:u,activeNodeRect:l,ariaDescribedById:c,draggableNodes:f,over:d}=F.useContext(oD),{role:h=_ne,roleDescription:g="draggable",tabIndex:m=0}=i??{},v=(u==null?void 0:u.id)===t,y=F.useContext(v?F_e:tft),[O,_]=V$(),[C,$]=V$(),w=Bct(o,t),P=WS(r);sh(()=>(f.set(t,{id:t,key:a,node:O,activatorNode:C,data:P}),()=>{const N=f.get(t);N&&N.key===a&&f.delete(t)}),[f,t]);const k=F.useMemo(()=>({role:h,tabIndex:m,"aria-disabled":n,"aria-pressed":v&&h===_ne?!0:void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[n,h,m,v,g,c.draggable]);return{active:u,activatorEvent:s,activeNodeRect:l,attributes:k,isDragging:v,listeners:n?void 0:w,node:O,over:d,setNodeRef:_,setActivatorNodeRef:$,transform:y}}function ift(){return F.useContext(A_e)}const aft="Droppable",oft={timeout:25};function sft(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:i}=e;const a=Mw(aft),{active:o,dispatch:s,over:u,measureDroppableContainers:l}=F.useContext(oD),c=F.useRef({disabled:r}),f=F.useRef(!1),d=F.useRef(null),h=F.useRef(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...oft,...i},y=WS(m??n),O=F.useCallback(()=>{if(!f.current){f.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{l(Array.isArray(y.current)?y.current:[y.current]),h.current=null},v)},[v]),_=aD({callback:O,disabled:g||!o}),C=F.useCallback((k,N)=>{_&&(N&&(_.unobserve(N),f.current=!1),k&&_.observe(k))},[_]),[$,w]=V$(C),P=WS(t);return F.useEffect(()=>{!_||!$.current||(_.disconnect(),f.current=!1,_.observe($.current))},[$,_]),sh(()=>(s({type:os.RegisterDroppable,element:{id:n,key:a,disabled:r,node:$,rect:d,data:P}}),()=>s({type:os.UnregisterDroppable,key:a,id:n})),[n]),F.useEffect(()=>{r!==c.current.disabled&&(s({type:os.SetDroppableDisabled,id:n,key:a,disabled:r}),c.current.disabled=r)},[n,a,r,s]),{active:o,rect:d,isOver:(u==null?void 0:u.id)===n,node:$,over:u,setNodeRef:w}}function I_e(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function uft(e,t){return e.reduce((r,n,i)=>{const a=t.get(n);return a&&(r[i]=a),r},Array(e.length))}function _3(e){return e!==null&&e>=0}function lft(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function cft(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const M_e=e=>{let{rects:t,activeIndex:r,overIndex:n,index:i}=e;const a=I_e(t,n,r),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},N_e="Sortable",L_e=Ce.createContext({activeIndex:-1,containerId:N_e,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:M_e,disabled:{draggable:!1,droppable:!1}});function wmt(e){let{children:t,id:r,items:n,strategy:i=M_e,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:u,over:l,measureDroppableContainers:c}=ift(),f=Mw(N_e,r),d=s.rect!==null,h=F.useMemo(()=>n.map(w=>typeof w=="object"&&"id"in w?w.id:w),[n]),g=o!=null,m=o?h.indexOf(o.id):-1,v=l?h.indexOf(l.id):-1,y=F.useRef(h),O=!lft(h,y.current),_=v!==-1&&m===-1||O,C=cft(a);sh(()=>{O&&g&&c(h)},[O,h,g,c]),F.useEffect(()=>{y.current=h},[h]);const $=F.useMemo(()=>({activeIndex:m,containerId:f,disabled:C,disableTransforms:_,items:h,overIndex:v,useDragOverlay:d,sortedRects:uft(h,u),strategy:i}),[m,f,C.draggable,C.droppable,_,h,v,u,d,i]);return Ce.createElement(L_e.Provider,{value:$},t)}const fft=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return I_e(r,n,i).indexOf(t)},dft=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:u,transition:l}=e;return!l||!n||s!==a&&i===o?!1:r?!0:o!==i&&t===u},hft={duration:200,easing:"ease"},z_e="transform",pft=j$.Transition.toString({property:z_e,duration:0,easing:"linear"}),mft={roleDescription:"sortable"};function gft(e){let{disabled:t,index:r,node:n,rect:i}=e;const[a,o]=F.useState(null),s=F.useRef(r);return sh(()=>{if(!t&&r!==s.current&&n.current){const u=i.current;if(u){const l=zO(n.current,{ignoreTransform:!0}),c={x:u.left-l.left,y:u.top-l.top,scaleX:u.width/l.width,scaleY:u.height/l.height};(c.x||c.y)&&o(c)}}r!==s.current&&(s.current=r)},[t,r,n,i]),F.useEffect(()=>{a&&o(null)},[a]),a}function Emt(e){let{animateLayoutChanges:t=dft,attributes:r,disabled:n,data:i,getNewIndex:a=fft,id:o,strategy:s,resizeObserverConfig:u,transition:l=hft}=e;const{items:c,containerId:f,activeIndex:d,disabled:h,disableTransforms:g,sortedRects:m,overIndex:v,useDragOverlay:y,strategy:O}=F.useContext(L_e),_=vft(n,h),C=c.indexOf(o),$=F.useMemo(()=>({sortable:{containerId:f,index:C,items:c},...i}),[f,i,C,c]),w=F.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:P,node:k,isOver:N,setNodeRef:L}=sft({id:o,data:$,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...u}}),{active:Q,activatorEvent:B,activeNodeRect:I,attributes:K,setNodeRef:T,listeners:z,isDragging:q,over:U,setActivatorNodeRef:V,transform:A}=nft({id:o,data:$,attributes:{...mft,...r},disabled:_.draggable}),M=zlt(L,T),G=!!Q,W=G&&!g&&_3(d)&&_3(v),re=!y&&q,ie=re&&W?A:null,be=W?ie??(s??O)({rects:m,activeNodeRect:I,activeIndex:d,overIndex:v,index:C}):null,me=_3(d)&&_3(v)?a({id:o,items:c,activeIndex:d,overIndex:v}):C,Oe=Q==null?void 0:Q.id,xe=F.useRef({activeId:Oe,items:c,newIndex:me,containerId:f}),he=c!==xe.current.items,ne=t({active:Q,containerId:f,isDragging:q,isSorting:G,id:o,index:C,items:c,newIndex:xe.current.newIndex,previousItems:xe.current.items,previousContainerId:xe.current.containerId,transition:l,wasDragging:xe.current.activeId!=null}),ae=gft({disabled:!ne,index:C,node:k,rect:P});return F.useEffect(()=>{G&&xe.current.newIndex!==me&&(xe.current.newIndex=me),f!==xe.current.containerId&&(xe.current.containerId=f),c!==xe.current.items&&(xe.current.items=c)},[G,me,f,c]),F.useEffect(()=>{if(Oe===xe.current.activeId)return;if(Oe&&!xe.current.activeId){xe.current.activeId=Oe;return}const te=setTimeout(()=>{xe.current.activeId=Oe},50);return()=>clearTimeout(te)},[Oe]),{active:Q,activeIndex:d,attributes:K,data:$,rect:P,index:C,newIndex:me,items:c,isOver:N,isSorting:G,isDragging:q,listeners:z,node:k,overIndex:v,over:U,setNodeRef:M,setActivatorNodeRef:V,setDroppableNodeRef:L,setDraggableNodeRef:T,transform:ae??be,transition:X()};function X(){if(ae||he&&xe.current.newIndex===C)return pft;if(!(re&&!QQ(B)||!l)&&(G||ne))return j$.Transition.toString({...l,property:z_e})}}function vft(e,t){var r,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}function K$(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 yft=[Jn.Down,Jn.Right,Jn.Up,Jn.Left],$mt=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(yft.includes(e.code)){if(e.preventDefault(),!r||!n)return;const u=[];a.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const d=i.get(f.id);if(d)switch(e.code){case Jn.Down:n.top<d.top&&u.push(f);break;case Jn.Up:n.top>d.top&&u.push(f);break;case Jn.Left:n.left>d.left&&u.push(f);break;case Jn.Right:n.left<d.left&&u.push(f);break}});const l=rct({collisionRect:n,droppableRects:i,droppableContainers:u});let c=O_e(l,"id");if(c===(o==null?void 0:o.id)&&l.length>1&&(c=l[1].id),c!=null){const f=a.get(r.id),d=a.get(c),h=d?i.get(d.id):null,g=d==null?void 0:d.node.current;if(g&&h&&f&&d){const v=iD(g).some((w,P)=>s[P]!==w),y=Q_e(f,d),O=bft(f,d),_=v||!y?{x:0,y:0}:{x:O?n.width-h.width:0,y:O?n.height-h.height:0},C={x:h.left,y:h.top};return _.x&&_.y?C:ZS(C,_)}}}};function Q_e(e,t){return!K$(e)||!K$(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function bft(e,t){return!K$(e)||!K$(t)||!Q_e(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}var Sne=Object.prototype.hasOwnProperty;function wne(e,t,r){for(r of e.keys())if(q_(r,t))return r}function q_(e,t){var r,n,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&q_(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(i=n,i&&typeof i=="object"&&(i=wne(t,i),!i)||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(i=n[0],i&&typeof i=="object"&&(i=wne(t,i),!i)||!q_(n[1],t.get(i)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Sne.call(e,r)&&++n&&!Sne.call(t,r)||!(r in t)||!q_(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Oft(e){var t=F.useRef(e),r=F.useRef(0);return q_(e,t.current)||(t.current=e,r.current+=1),F.useMemo(function(){return t.current},[r.current])}function Cmt(e,t){return F.useEffect(e,Oft(t))}export{vpt as $,st as A,dht as B,Jdt as C,bht as D,EK as E,Bge as F,tDe as G,kpt as H,Za as I,g9e as J,Hj as K,_S as L,tpt as M,jft as N,Xht as O,Jht as P,kht as Q,Ce as R,ept as S,Sft as T,Lht as U,Rht as V,d9e as W,Tht as X,Nht as Y,Vht as Z,Zht as _,sht as a,Pht as a$,xp as a0,j9e as a1,Mht as a2,Fht as a3,npt as a4,ppt as a5,dpt as a6,hpt as a7,Uht as a8,rpt as a9,lpt as aA,cpt as aB,fpt as aC,opt as aD,ypt as aE,mdt as aF,spt as aG,Fdt as aH,rz as aI,kLe as aJ,Iht as aK,Upt as aL,Bpt as aM,Qpt as aN,Npt as aO,qpt as aP,fmt as aQ,RLe as aR,AL as aS,_pt as aT,rdt as aU,Tdt as aV,Gft as aW,ymt as aX,bmt as aY,Jse as aZ,gdt as a_,yMe as aa,lht as ab,Xge as ac,Wht as ad,jht as ae,Kht as af,Hht as ag,Ipt as ah,iw as ai,Ght as aj,Yht as ak,Apt as al,Aht as am,Pft as an,ipt as ao,apt as ap,gpt as aq,mpt as ar,Qht as as,qht as at,Bht as au,zht as av,K4 as aw,Xf as ax,ed as ay,upt as az,S6e as b,$pt as b$,knt as b0,ant as b1,yQe as b2,Tpt as b3,oC as b4,J0 as b5,Ydt as b6,Vdt as b7,z4 as b8,Bdt as b9,vmt as bA,Cpt as bB,Opt as bC,m0t as bD,iht as bE,wpt as bF,Pnt as bG,Rpt as bH,_ht as bI,Sht as bJ,wht as bK,Cht as bL,Vj as bM,_mt as bN,xmt as bO,wmt as bP,I_e as bQ,Smt as bR,$mt as bS,P_e as bT,R_e as bU,Emt as bV,j$ as bW,Ept as bX,bpt as bY,Dht as bZ,Cmt as b_,Omt as ba,Hft as bb,Kft as bc,Gdt as bd,zdt as be,jdt as bf,Udt as bg,Zdt as bh,Kdt as bi,Xdt as bj,Hdt as bk,Wdt as bl,qne as bm,Oht as bn,$ht as bo,xht as bp,Eht as bq,Spt as br,Fpt as bs,xpt as bt,l0t as bu,c0t as bv,vYe as bw,kdt as bx,zpt as by,pdt as bz,aht as c,Sdt as c$,Lpt as c0,ZNe as c1,T6e as c2,nht as c3,dg as c4,$dt as c5,Z0 as c6,Qie as c7,Ti as c8,edt as c9,PPe as cA,TPe as cB,Bft as cC,Vft as cD,Loe as cE,Noe as cF,Ddt as cG,Cdt as cH,h$e as cI,_dt as cJ,f7 as cK,na as cL,Qft as cM,xdt as cN,Odt as cO,vdt as cP,gN as cQ,a5e as cR,Zue as cS,Uft as cT,bdt as cU,v2 as cV,ydt as cW,dy as cX,Edt as cY,YCe as cZ,sCe as c_,Jft as ca,kft as cb,Nft as cc,Xft as cd,Yft as ce,$N as cf,nb as cg,H0 as ch,rDe as ci,zft as cj,adt as ck,Aft as cl,uCe as cm,fdt as cn,Lft as co,qft as cp,Wft as cq,Fft as cr,udt as cs,ddt as ct,kPe as cu,ldt as cv,K_ as cw,Mft as cx,cdt as cy,hdt as cz,eht as d,K0t as d$,wdt as d0,Zft as d1,mht as d2,ght as d3,vht as d4,Sy as d5,B2 as d6,aa as d7,fc as d8,iu as d9,f0t as dA,h0t as dB,p0t as dC,d0t as dD,g0t as dE,hN as dF,P0t as dG,b0t as dH,D0t as dI,C0t as dJ,$0t as dK,E0t as dL,w0t as dM,S0t as dN,pXe as dO,V0t as dP,j0t as dQ,W0t as dR,X0t as dS,Q0t as dT,HX as dU,U0t as dV,q0t as dW,zS as dX,B0t as dY,G0t as dZ,H0t as d_,m9 as da,wFe as db,ah as dc,AFe as dd,yht as de,jpt as df,Wpt as dg,$ve as dh,MBe as di,Vpt as dj,Zpt as dk,Ia as dl,DN as dm,sg as dn,oh as dp,Gpt as dq,nf as dr,Jpt as ds,e0t as dt,Hpt as du,t0t as dv,hht as dw,r0t as dx,y0t as dy,v0t as dz,I6e as e,Y0t as e0,eQ as e1,fOe as e2,QJe as e3,Z0t as e4,J0t as e5,O0t as e6,hXe as e7,L0t as e8,z0t as e9,Dpt as eA,Mpt as eB,rLe as eC,$ft as eD,N0t as ea,M0t as eb,I0t as ec,F0t as ed,Rbe as ee,A0t as ef,_0t as eg,x0t as eh,R0t as ei,T0t as ej,k0t as ek,fQ as el,emt as em,tmt as en,rmt as eo,nmt as ep,imt as eq,smt as er,omt as es,lmt as et,umt as eu,amt as ev,cmt as ew,qdt as ex,Xpt as ey,Ppt as ez,C6e as f,oht as g,tht as h,rht as i,wft as j,uht as k,Eft as l,Idt as m,Mdt as n,Cft as o,Ndt as p,fht as q,F as r,VZ as s,zAe as t,Pdt as u,cht as v,Rdt as w,Adt as x,b9 as y,Tce as z};