-
Notifications
You must be signed in to change notification settings - Fork 0
/
45587.5dd6d2a9.async.js
6 lines (6 loc) · 52 KB
/
45587.5dd6d2a9.async.js
1
2
3
4
5
6
!(function(){"use strict";var Nr=Object.defineProperty,Tr=Object.defineProperties;var Lr=Object.getOwnPropertyDescriptors;var Ht=Object.getOwnPropertySymbols;var Kn=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable;var ln=Math.pow,Xn=(_,H,M)=>H in _?Nr(_,H,{enumerable:!0,configurable:!0,writable:!0,value:M}):_[H]=M,x=(_,H)=>{for(var M in H||(H={}))Kn.call(H,M)&&Xn(_,M,H[M]);if(Ht)for(var M of Ht(H))$n.call(H,M)&&Xn(_,M,H[M]);return _},K=(_,H)=>Tr(_,Lr(H));var _t=(_,H)=>{var M={};for(var s in _)Kn.call(_,s)&&H.indexOf(s)<0&&(M[s]=_[s]);if(_!=null&&Ht)for(var s of Ht(_))H.indexOf(s)<0&&$n.call(_,s)&&(M[s]=_[s]);return M};var Yn=(_,H,M)=>new Promise((s,Q)=>{var d=ne=>{try{De(M.next(ne))}catch(de){Q(de)}},ge=ne=>{try{De(M.throw(ne))}catch(de){Q(de)}},De=ne=>ne.done?s(ne.value):Promise.resolve(ne.value).then(d,ge);De((M=M.apply(_,H)).next())});(self.webpackChunkantd=self.webpackChunkantd||[]).push([[45587],{960887:function(_,H,M){M.d(H,{LB:function(){return fr},g4:function(){return T},we:function(){return ct},pE:function(){return mt},VK:function(){return b},Cj:function(){return pr},O1:function(){return vr},Zj:function(){return yr},VT:function(){return gt},Dy:function(){return vt}});var s=M(667294),Q=M(973935),d=M(724285);const ge={display:"none"};function De(e){let{id:t,value:n}=e;return s.createElement("div",{id:t,style:ge},n)}function ne(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return s.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function de(){const[e,t]=(0,s.useState)("");return{announce:(0,s.useCallback)(r=>{r!=null&&t(r)},[]),announcement:e}}const $e=(0,s.createContext)(null);function Ze(e){const t=(0,s.useContext)($e);(0,s.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Pe(){const[e]=(0,s.useState)(()=>new Set),t=(0,s.useCallback)(r=>(e.add(r),()=>e.delete(r)),[e]);return[(0,s.useCallback)(r=>{let{type:i,event:o}=r;e.forEach(a=>{var c;return(c=a[i])==null?void 0:c.call(a,o)})},[e]),t]}const Ye={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},Qe={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 et(e){let{announcements:t=Qe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Ye}=e;const{announce:o,announcement:a}=de(),c=(0,d.Ld)("DndLiveRegion"),[u,f]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{f(!0)},[]),Ze((0,s.useMemo)(()=>({onDragStart(g){let{active:S}=g;o(t.onDragStart({active:S}))},onDragMove(g){let{active:S,over:R}=g;t.onDragMove&&o(t.onDragMove({active:S,over:R}))},onDragOver(g){let{active:S,over:R}=g;o(t.onDragOver({active:S,over:R}))},onDragEnd(g){let{active:S,over:R}=g;o(t.onDragEnd({active:S,over:R}))},onDragCancel(g){let{active:S,over:R}=g;o(t.onDragCancel({active:S,over:R}))}}),[o,t])),!u)return null;const m=s.createElement(s.Fragment,null,s.createElement(De,{id:r,value:i.draggable}),s.createElement(ne,{id:c,announcement:a}));return n?(0,Q.createPortal)(m,n):m}var J;(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"})(J||(J={}));function pe(){}function gt(e,t){return(0,s.useMemo)(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.useMemo)(()=>[...t].filter(r=>r!=null),[...t])}const re=Object.freeze({x:0,y:0});function ze(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function pt(e,t){const n=getEventCoordinates(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function Ue(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function bt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function We(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function tt(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function nt(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 mt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=nt(t,t.left,t.top),o=[];for(const a of r){const{id:c}=a,u=n.get(c);if(u){const f=ze(nt(u),i);o.push({id:c,data:{droppableContainer:a,value:f}})}}return o.sort(Ue)},rt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=We(t),o=[];for(const a of r){const{id:c}=a,u=n.get(c);if(u){const f=We(u),m=i.reduce((S,R,F)=>S+ze(f[F],R),0),g=Number((m/4).toFixed(4));o.push({id:c,data:{droppableContainer:a,value:g}})}}return o.sort(Ue)};function ot(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,c=o-n;if(r<i&&n<o){const u=t.width*t.height,f=e.width*e.height,m=a*c,g=m/(u+f-m);return Number(g.toFixed(4))}return 0}const yt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:a}=o,c=n.get(a);if(c){const u=ot(c,t);u>0&&i.push({id:a,data:{droppableContainer:o,value:u}})}}return i.sort(bt)};function l(e,t){const{top:n,left:r,bottom:i,right:o}=t;return n<=e.y&&e.y<=i&&r<=e.x&&e.x<=o}const w=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const o of t){const{id:a}=o,c=n.get(a);if(c&&l(r,c)){const f=We(c).reduce((g,S)=>g+ze(r,S),0),m=Number((f/4).toFixed(4));i.push({id:a,data:{droppableContainer:o,value:m}})}}return i.sort(Ue)};function E(e,t,n){return K(x({},e),{scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1})}function G(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:re}function Z(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((a,c)=>K(x({},a),{top:a.top+e*c.y,bottom:a.bottom+e*c.y,left:a.left+e*c.x,right:a.right+e*c.x}),x({},n))}}const h=Z(1);function v(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 y(e,t,n){const r=v(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:c}=r,u=e.left-a-(1-i)*parseFloat(n),f=e.top-c-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),m=i?e.width/i:e.width,g=o?e.height/o:e.height;return{width:m,height:g,top:f,right:u+m,bottom:f+g,left:u}}const p={ignoreTransform:!1};function b(e,t){t===void 0&&(t=p);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:f,transformOrigin:m}=(0,d.Jj)(e).getComputedStyle(e);f&&(n=y(n,f,m))}const{top:r,left:i,width:o,height:a,bottom:c,right:u}=n;return{top:r,left:i,width:o,height:a,bottom:c,right:u}}function C(e){return b(e,{ignoreTransform:!0})}function D(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function O(e,t){return t===void 0&&(t=(0,d.Jj)(e).getComputedStyle(e)),t.position==="fixed"}function $(e,t){t===void 0&&(t=(0,d.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function N(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if((0,d.qk)(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,d.Re)(i)||(0,d.vZ)(i)||n.includes(i))return n;const o=(0,d.Jj)(e).getComputedStyle(i);return i!==e&&$(i,o)&&n.push(i),O(i,o)?n:r(i.parentNode)}return e?r(e):n}function z(e){const[t]=N(e,1);return t!=null?t:null}function B(e){return!d.Nq||!e?null:(0,d.FJ)(e)?e:(0,d.UG)(e)?(0,d.qk)(e)||e===(0,d.r3)(e).scrollingElement?window:(0,d.Re)(e)?e:null:null}function Y(e){return(0,d.FJ)(e)?e.scrollX:e.scrollLeft}function V(e){return(0,d.FJ)(e)?e.scrollY:e.scrollTop}function be(e){return{x:Y(e),y:V(e)}}var U;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(U||(U={}));function le(e){return!d.Nq||!e?!1:e===document.scrollingElement}function Oe(e){const t={x:0,y:0},n=le(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:a,isRight:c,maxScroll:r,minScroll:t}}const Se={x:.2,y:.2};function me(e,t,n,r,i){let{top:o,left:a,right:c,bottom:u}=n;r===void 0&&(r=10),i===void 0&&(i=Se);const{isTop:f,isBottom:m,isLeft:g,isRight:S}=Oe(e),R={x:0,y:0},F={x:0,y:0},I={height:t.height*i.y,width:t.width*i.x};return!f&&o<=t.top+I.height?(R.y=U.Backward,F.y=r*Math.abs((t.top+I.height-o)/I.height)):!m&&u>=t.bottom-I.height&&(R.y=U.Forward,F.y=r*Math.abs((t.bottom-I.height-u)/I.height)),!S&&c>=t.right-I.width?(R.x=U.Forward,F.x=r*Math.abs((t.right-I.width-c)/I.width)):!g&&a<=t.left+I.width&&(R.x=U.Backward,F.x=r*Math.abs((t.left+I.width-a)/I.width)),{direction:R,speed:F}}function ie(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:a}=window;return{top:0,left:0,right:o,bottom:a,width:o,height:a}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Me(e){return e.reduce((t,n)=>(0,d.IH)(t,be(n)),re)}function Ee(e){return e.reduce((t,n)=>t+Y(n),0)}function it(e){return e.reduce((t,n)=>t+V(n),0)}function wt(e,t){if(t===void 0&&(t=b),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);z(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Jt=[["x",["left","right"],Ee],["y",["top","bottom"],it]];class st{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 r=N(n),i=Me(r);this.rect=x({},t),this.width=t.width,this.height=t.height;for(const[o,a,c]of Jt)for(const u of a)Object.defineProperty(this,u,{get:()=>{const f=c(r),m=i[o]-f;return this.rect[u]+m},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ye{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Gt(e){const{EventTarget:t}=(0,d.Jj)(e);return e instanceof t?e:(0,d.r3)(e)}function xt(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(ln(n,2)+ln(r,2))>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var ue;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ue||(ue={}));function Ct(e){e.preventDefault()}function Vt(e){e.stopPropagation()}var T;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(T||(T={}));const kt={start:[T.Space,T.Enter],cancel:[T.Esc],end:[T.Space,T.Enter]},qt=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case T.Right:return K(x({},n),{x:n.x+25});case T.Left:return K(x({},n),{x:n.x-25});case T.Down:return K(x({},n),{y:n.y+25});case T.Up:return K(x({},n),{y:n.y-25})}};class Pt{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 ye((0,d.r3)(n)),this.windowListeners=new ye((0,d.Jj)(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ue.Resize,this.handleCancel),this.windowListeners.add(ue.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ue.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&wt(r),n(re)}handleKeyDown(t){if((0,d.vd)(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=kt,coordinateGetter:a=qt,scrollBehavior:c="smooth"}=i,{code:u}=t;if(o.end.includes(u)){this.handleEnd(t);return}if(o.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:f}=r.current,m=f?{x:f.left,y:f.top}:re;this.referenceCoordinates||(this.referenceCoordinates=m);const g=a(t,{active:n,context:r.current,currentCoordinates:m});if(g){const S=(0,d.$X)(g,m),R={x:0,y:0},{scrollableAncestors:F}=r.current;for(const I of F){const A=t.code,{isTop:k,isRight:X,isLeft:L,isBottom:se,maxScroll:W,minScroll:q}=Oe(I),P=ie(I),j={x:Math.min(A===T.Right?P.right-P.width/2:P.right,Math.max(A===T.Right?P.left:P.left+P.width/2,g.x)),y:Math.min(A===T.Down?P.bottom-P.height/2:P.bottom,Math.max(A===T.Down?P.top:P.top+P.height/2,g.y))},ee=A===T.Right&&!X||A===T.Left&&!L,ce=A===T.Down&&!se||A===T.Up&&!k;if(ee&&j.x!==g.x){const te=I.scrollLeft+S.x,Te=A===T.Right&&te<=W.x||A===T.Left&&te>=q.x;if(Te&&!S.y){I.scrollTo({left:te,behavior:c});return}Te?R.x=I.scrollLeft-te:R.x=A===T.Right?I.scrollLeft-W.x:I.scrollLeft-q.x,R.x&&I.scrollBy({left:-R.x,behavior:c});break}else if(ce&&j.y!==g.y){const te=I.scrollTop+S.y,Te=A===T.Down&&te<=W.y||A===T.Up&&te>=q.y;if(Te&&!S.x){I.scrollTo({top:te,behavior:c});return}Te?R.y=I.scrollTop-te:R.y=A===T.Down?I.scrollTop-W.y:I.scrollTop-q.y,R.y&&I.scrollBy({top:-R.y,behavior:c});break}}this.handleMove(t,(0,d.IH)((0,d.$X)(g,this.referenceCoordinates),R))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(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()}}Pt.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=kt,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const c=o.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function zt(e){return!!(e&&"distance"in e)}function Ne(e){return!!(e&&"delay"in e)}class at{constructor(t,n,r){var i;r===void 0&&(r=Gt(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:a}=o;this.props=t,this.events=n,this.document=(0,d.r3)(a),this.documentListeners=new ye(this.document),this.listeners=new ye(r),this.windowListeners=new ye((0,d.Jj)(a)),this.initialCoordinates=(i=(0,d.DC)(o))!=null?i:re,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:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(ue.Resize,this.handleCancel),this.windowListeners.add(ue.DragStart,Ct),this.windowListeners.add(ue.VisibilityChange,this.handleCancel),this.windowListeners.add(ue.ContextMenu,Ct),this.documentListeners.add(ue.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ne(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(zt(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)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ue.Click,Vt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ue.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:a,options:{activationConstraint:c}}=o;if(!i)return;const u=(n=(0,d.DC)(t))!=null?n:re,f=(0,d.$X)(i,u);if(!r&&c){if(zt(c)){if(c.tolerance!=null&&xt(f,c.tolerance))return this.handleCancel();if(xt(f,c.distance))return this.handleStart()}return Ne(c)&&xt(f,c.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),a(u)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===T.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const jt={move:{name:"pointermove"},end:{name:"pointerup"}};class ct extends at{constructor(t){const{event:n}=t,r=(0,d.r3)(n.target);super(t,jt,r)}}ct.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const Zt={move:{name:"mousemove"},end:{name:"mouseup"}};var Rt;(function(e){e[e.RightClick=2]="RightClick"})(Rt||(Rt={}));class He extends at{constructor(t){super(t,Zt,(0,d.r3)(t.event.target))}}He.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Rt.RightClick?!1:(r==null||r({event:n}),!0)}}];const Ie={move:{name:"touchmove"},end:{name:"touchend"}};class oe extends at{constructor(t){super(t,Ie)}static setup(){return window.addEventListener(Ie.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Ie.move.name,t)};function t(){}}}oe.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var _e;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(_e||(_e={}));var Je;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Je||(Je={}));function Dt(e){let{acceleration:t,activator:n=_e.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:c=Je.TreeOrder,pointerCoordinates:u,scrollableAncestors:f,scrollableAncestorRects:m,delta:g,threshold:S}=e;const R=en({delta:g,disabled:!o}),[F,I]=(0,d.Yz)(),A=(0,s.useRef)({x:0,y:0}),k=(0,s.useRef)({x:0,y:0}),X=(0,s.useMemo)(()=>{switch(n){case _e.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case _e.DraggableRect:return i}},[n,i,u]),L=(0,s.useRef)(null),se=(0,s.useCallback)(()=>{const q=L.current;if(!q)return;const P=A.current.x*k.current.x,j=A.current.y*k.current.y;q.scrollBy(P,j)},[]),W=(0,s.useMemo)(()=>c===Je.TreeOrder?[...f].reverse():f,[c,f]);(0,s.useEffect)(()=>{if(!o||!f.length||!X){I();return}for(const q of W){if((r==null?void 0:r(q))===!1)continue;const P=f.indexOf(q),j=m[P];if(!j)continue;const{direction:ee,speed:ce}=me(q,j,X,t,S);for(const te of["x","y"])R[te][ee[te]]||(ce[te]=0,ee[te]=0);if(ce.x>0||ce.y>0){I(),L.current=q,F(se,a),A.current=ce,k.current=ee;return}}A.current={x:0,y:0},k.current={x:0,y:0},I()},[t,se,r,I,o,a,JSON.stringify(X),JSON.stringify(R),F,f,W,m,JSON.stringify(S)])}const Qt={x:{[U.Backward]:!1,[U.Forward]:!1},y:{[U.Backward]:!1,[U.Forward]:!1}};function en(e){let{delta:t,disabled:n}=e;const r=(0,d.D9)(t);return(0,d.Gj)(i=>{if(n||!r||!i)return Qt;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[U.Backward]:i.x[U.Backward]||o.x===-1,[U.Forward]:i.x[U.Forward]||o.x===1},y:{[U.Backward]:i.y[U.Backward]||o.y===-1,[U.Forward]:i.y[U.Forward]||o.y===1}}},[n,t,r])}function Un(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return(0,d.Gj)(i=>{var o;return t===null?null:(o=r!=null?r:i)!=null?o:null},[r,t])}function Wn(e,t){return(0,s.useMemo)(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...o]},[]),[e,t])}var St;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(St||(St={}));var tn;(function(e){e.Optimized="optimized"})(tn||(tn={}));const un=new Map;function Hn(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,a]=(0,s.useState)(null),{frequency:c,measure:u,strategy:f}=i,m=(0,s.useRef)(e),g=A(),S=(0,d.Ey)(g),R=(0,s.useCallback)(function(k){k===void 0&&(k=[]),!S.current&&a(X=>X===null?k:X.concat(k.filter(L=>!X.includes(L))))},[S]),F=(0,s.useRef)(null),I=(0,d.Gj)(k=>{if(g&&!n)return un;if(!k||k===un||m.current!==e||o!=null){const X=new Map;for(let L of e){if(!L)continue;if(o&&o.length>0&&!o.includes(L.id)&&L.rect.current){X.set(L.id,L.rect.current);continue}const se=L.node.current,W=se?new st(u(se),se):null;L.rect.current=W,W&&X.set(L.id,W)}return X}return k},[e,o,n,g,u]);return(0,s.useEffect)(()=>{m.current=e},[e]),(0,s.useEffect)(()=>{g||R()},[n,g]),(0,s.useEffect)(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),(0,s.useEffect)(()=>{g||typeof c!="number"||F.current!==null||(F.current=setTimeout(()=>{R(),F.current=null},c))},[c,g,R,...r]),{droppableRects:I,measureDroppableContainers:R,measuringScheduled:o!=null};function A(){switch(f){case St.Always:return!1;case St.BeforeDragging:return n;default:return!n}}}function dn(e,t){return(0,d.Gj)(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function _n(e,t){return dn(e,t)}function Jn(e){let{callback:t,disabled:n}=e;const r=(0,d.zX)(t),i=(0,s.useMemo)(()=>{if(n||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return(0,s.useEffect)(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Bt(e){let{callback:t,disabled:n}=e;const r=(0,d.zX)(t),i=(0,s.useMemo)(()=>{if(n||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return(0,s.useEffect)(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Gn(e){return new st(b(e),e)}function fn(e,t,n){t===void 0&&(t=Gn);const[r,i]=(0,s.useReducer)(c,null),o=Jn({callback(u){if(e)for(const f of u){const{type:m,target:g}=f;if(m==="childList"&&g instanceof HTMLElement&&g.contains(e)){i();break}}}}),a=Bt({callback:i});return(0,d.LI)(()=>{i(),e?(a==null||a.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),o==null||o.disconnect())},[e]),r;function c(u){if(!e)return null;if(e.isConnected===!1){var f;return(f=u!=null?u:n)!=null?f:null}const m=t(e);return JSON.stringify(u)===JSON.stringify(m)?u:m}}function Vn(e){const t=dn(e);return G(e,t)}const hn=[];function qn(e){const t=(0,s.useRef)(e),n=(0,d.Gj)(r=>e?r&&r!==hn&&e&&t.current&&e.parentNode===t.current.parentNode?r:N(e):hn,[e]);return(0,s.useEffect)(()=>{t.current=e},[e]),n}function Zn(e){const[t,n]=(0,s.useState)(null),r=(0,s.useRef)(e),i=(0,s.useCallback)(o=>{const a=B(o.target);a&&n(c=>c?(c.set(a,be(a)),new Map(c)):null)},[]);return(0,s.useEffect)(()=>{const o=r.current;if(e!==o){a(o);const c=e.map(u=>{const f=B(u);return f?(f.addEventListener("scroll",i,{passive:!0}),[f,be(f)]):null}).filter(u=>u!=null);n(c.length?new Map(c):null),r.current=e}return()=>{a(e),a(o)};function a(c){c.forEach(u=>{const f=B(u);f==null||f.removeEventListener("scroll",i)})}},[i,e]),(0,s.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((o,a)=>(0,d.IH)(o,a),re):Me(e):re,[e,t])}function gn(e,t){t===void 0&&(t=[]);const n=(0,s.useRef)(null);return(0,s.useEffect)(()=>{n.current=null},t),(0,s.useEffect)(()=>{const r=e!==re;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?(0,d.$X)(e,n.current):re}function Qn(e){(0,s.useEffect)(()=>{if(!d.Nq)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function er(e,t){return(0,s.useMemo)(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=a=>{o(a,t)},n},{}),[e,t])}function vn(e){return(0,s.useMemo)(()=>e?D(e):null,[e])}const nn=[];function tr(e,t){t===void 0&&(t=b);const[n]=e,r=vn(n?(0,d.Jj)(n):null),[i,o]=(0,s.useReducer)(c,nn),a=Bt({callback:o});return e.length>0&&i===nn&&o(),(0,d.LI)(()=>{e.length?e.forEach(u=>a==null?void 0:a.observe(u)):(a==null||a.disconnect(),o())},[e]),i;function c(){return e.length?e.map(u=>le(u)?r:new st(t(u),u)):nn}}function pn(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,d.Re)(t)?t:e}function nr(e){let{measure:t}=e;const[n,r]=(0,s.useState)(null),i=(0,s.useCallback)(f=>{for(const{target:m}of f)if((0,d.Re)(m)){r(g=>{const S=t(m);return g?K(x({},g),{width:S.width,height:S.height}):S});break}},[t]),o=Bt({callback:i}),a=(0,s.useCallback)(f=>{const m=pn(f);o==null||o.disconnect(),m&&(o==null||o.observe(m)),r(m?t(m):null)},[t,o]),[c,u]=(0,d.wm)(a);return(0,s.useMemo)(()=>({nodeRef:c,rect:n,setRef:u}),[n,c,u])}const rr=[{sensor:ct,options:{}},{sensor:Pt,options:{}}],or={current:{}},Ft={draggable:{measure:C},droppable:{measure:C,strategy:St.WhileDragging,frequency:tn.Optimized},dragOverlay:{measure:b}};class Et 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,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const ir={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Et,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:pe},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ft,measureDroppableContainers:pe,windowRect:null,measuringScheduled:!1},bn={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:pe,draggableNodes:new Map,over:null,measureDroppableContainers:pe},It=(0,s.createContext)(bn),mn=(0,s.createContext)(ir);function sr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Et}}}function ar(e,t){switch(t.type){case J.DragStart:return K(x({},e),{draggable:K(x({},e.draggable),{initialCoordinates:t.initialCoordinates,active:t.active})});case J.DragMove:return e.draggable.active?K(x({},e),{draggable:K(x({},e.draggable),{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})}):e;case J.DragEnd:case J.DragCancel:return K(x({},e),{draggable:K(x({},e.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case J.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Et(e.droppable.containers);return i.set(r,n),K(x({},e),{droppable:K(x({},e.droppable),{containers:i})})}case J.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new Et(e.droppable.containers);return a.set(n,K(x({},o),{disabled:i})),K(x({},e),{droppable:K(x({},e.droppable),{containers:a})})}case J.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Et(e.droppable.containers);return o.delete(n),K(x({},e),{droppable:K(x({},e.droppable),{containers:o})})}default:return e}}function cr(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=(0,s.useContext)(It),o=(0,d.D9)(r),a=(0,d.D9)(n==null?void 0:n.id);return(0,s.useEffect)(()=>{if(!t&&!r&&o&&a!=null){if(!(0,d.vd)(o)||document.activeElement===o.target)return;const c=i.get(a);if(!c)return;const{activatorNode:u,node:f}=c;if(!u.current&&!f.current)return;requestAnimationFrame(()=>{for(const m of[u.current,f.current]){if(!m)continue;const g=(0,d.so)(m);if(g){g.focus();break}}})}},[r,t,i,a,o]),null}function lr(e,t){let i=t,{transform:n}=i,r=_t(i,["transform"]);return e!=null&&e.length?e.reduce((o,a)=>a(x({transform:o},r)),n):n}function ur(e){return(0,s.useMemo)(()=>({draggable:x(x({},Ft.draggable),e==null?void 0:e.draggable),droppable:x(x({},Ft.droppable),e==null?void 0:e.droppable),dragOverlay:x(x({},Ft.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 dr(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=(0,s.useRef)(!1),{x:a,y:c}=typeof i=="boolean"?{x:i,y:i}:i;(0,d.LI)(()=>{if(!a&&!c||!t){o.current=!1;return}if(o.current||!r)return;const f=t==null?void 0:t.node.current;if(!f||f.isConnected===!1)return;const m=n(f),g=G(m,r);if(a||(g.x=0),c||(g.y=0),o.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const S=z(f);S&&S.scrollBy({top:g.y,left:g.x})}},[t,a,c,r,n])}const rn=(0,s.createContext)(K(x({},re),{scaleX:1,scaleY:1}));var je;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(je||(je={}));const fr=(0,s.memo)(function(t){var n,r,i,o;let Bn=t,{id:a,accessibility:c,autoScroll:u=!0,children:f,sensors:m=rr,collisionDetection:g=yt,measuring:S,modifiers:R}=Bn,F=_t(Bn,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const I=(0,s.useReducer)(ar,void 0,sr),[A,k]=I,[X,L]=Pe(),[se,W]=(0,s.useState)(je.Uninitialized),q=se===je.Initialized,{draggable:{active:P,nodes:j,translate:ee},droppable:{containers:ce}}=A,te=P?j.get(P):null,Te=(0,s.useRef)({initial:null,translated:null}),Le=(0,s.useMemo)(()=>{var ae;return P!=null?{id:P,data:(ae=te==null?void 0:te.data)!=null?ae:or,rect:Te}:null},[P,te]),Be=(0,s.useRef)(null),[xn,Cn]=(0,s.useState)(null),[ke,Rn]=(0,s.useState)(null),At=(0,d.Ey)(F,Object.values(F)),on=(0,d.Ld)("DndDescribedBy",a),Dn=(0,s.useMemo)(()=>ce.getEnabled(),[ce]),Ge=ur(S),{droppableRects:lt,measureDroppableContainers:Xt,measuringScheduled:Sn}=Hn(Dn,{dragging:q,dependencies:[ee.x,ee.y],config:Ge.droppable}),we=Un(j,P),En=(0,s.useMemo)(()=>ke?(0,d.DC)(ke):null,[ke]),In=Mr(),An=_n(we,Ge.draggable.measure);dr({activeNode:P?j.get(P):null,config:In.layoutShiftCompensation,initialRect:An,measure:Ge.draggable.measure});const xe=fn(we,Ge.draggable.measure,An),sn=fn(we?we.parentElement:null),Ve=(0,s.useRef)({activatorEvent:null,active:null,activeNode:we,collisionRect:null,collisions:null,droppableRects:lt,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:ce,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),On=ce.getNodeFor((n=Ve.current.over)==null?void 0:n.id),qe=nr({measure:Ge.dragOverlay.measure}),Kt=(r=qe.nodeRef.current)!=null?r:we,ut=q?(i=qe.rect)!=null?i:xe:null,Mn=!!(qe.nodeRef.current&&qe.rect),Nn=Vn(Mn?null:xe),an=vn(Kt?(0,d.Jj)(Kt):null),Fe=qn(q?On!=null?On:we:null),$t=tr(Fe),Yt=lr(R,{transform:{x:ee.x-Nn.x,y:ee.y-Nn.y,scaleX:1,scaleY:1},activatorEvent:ke,active:Le,activeNodeRect:xe,containerNodeRect:sn,draggingNodeRect:ut,over:Ve.current.over,overlayNodeRect:qe.rect,scrollableAncestors:Fe,scrollableAncestorRects:$t,windowRect:an}),Tn=En?(0,d.IH)(En,ee):null,Ln=Zn(Fe),Rr=gn(Ln),Dr=gn(Ln,[xe]),dt=(0,d.IH)(Yt,Rr),ft=ut?h(ut,Yt):null,Ot=Le&&ft?g({active:Le,collisionRect:ft,droppableRects:lt,droppableContainers:Dn,pointerCoordinates:Tn}):null,kn=tt(Ot,"id"),[Xe,Pn]=(0,s.useState)(null),Sr=Mn?Yt:(0,d.IH)(Yt,Dr),Er=E(Sr,(o=Xe==null?void 0:Xe.rect)!=null?o:null,xe),zn=(0,s.useCallback)((ae,fe)=>{let{sensor:he,options:Ke}=fe;if(Be.current==null)return;const ve=j.get(Be.current);if(!ve)return;const Ce=ae.nativeEvent,Ae=new he({active:Be.current,activeNode:ve,event:Ce,options:Ke,context:Ve,onStart(Re){const Mt=Be.current;if(Mt==null)return;const Nt=j.get(Mt);if(!Nt)return;const{onDragStart:Ut}=At.current,Wt={active:{id:Mt,data:Nt.data,rect:Te}};(0,Q.unstable_batchedUpdates)(()=>{Ut==null||Ut(Wt),W(je.Initializing),k({type:J.DragStart,initialCoordinates:Re,active:Mt}),X({type:"onDragStart",event:Wt})})},onMove(Re){k({type:J.DragMove,coordinates:Re})},onEnd:ht(J.DragEnd),onCancel:ht(J.DragCancel)});(0,Q.unstable_batchedUpdates)(()=>{Cn(Ae),Rn(ae.nativeEvent)});function ht(Re){return function(){return Yn(this,null,function*(){const{active:Nt,collisions:Ut,over:Wt,scrollAdjustedTranslate:Fn}=Ve.current;let Tt=null;if(Nt&&Fn){const{cancelDrop:Lt}=At.current;Tt={activatorEvent:Ce,active:Nt,collisions:Ut,delta:Fn,over:Wt},Re===J.DragEnd&&typeof Lt=="function"&&(yield Promise.resolve(Lt(Tt)))&&(Re=J.DragCancel)}Be.current=null,(0,Q.unstable_batchedUpdates)(()=>{k({type:Re}),W(je.Uninitialized),Pn(null),Cn(null),Rn(null);const Lt=Re===J.DragEnd?"onDragEnd":"onDragCancel";if(Tt){const cn=At.current[Lt];cn==null||cn(Tt),X({type:Lt,event:Tt})}})})}}},[j]),Ir=(0,s.useCallback)((ae,fe)=>(he,Ke)=>{const ve=he.nativeEvent,Ce=j.get(Ke);if(Be.current!==null||!Ce||ve.dndKit||ve.defaultPrevented)return;const Ae={active:Ce};ae(he,fe.options,Ae)===!0&&(ve.dndKit={capturedBy:fe.sensor},Be.current=Ke,zn(he,fe))},[j,zn]),jn=Wn(m,Ir);Qn(m),(0,d.LI)(()=>{xe&&se===je.Initializing&&W(je.Initialized)},[xe,se]),(0,s.useEffect)(()=>{const{onDragMove:ae}=At.current,{active:fe,activatorEvent:he,collisions:Ke,over:ve}=Ve.current;if(!fe||!he)return;const Ce={active:fe,activatorEvent:he,collisions:Ke,delta:{x:dt.x,y:dt.y},over:ve};(0,Q.unstable_batchedUpdates)(()=>{ae==null||ae(Ce),X({type:"onDragMove",event:Ce})})},[dt.x,dt.y]),(0,s.useEffect)(()=>{const{active:ae,activatorEvent:fe,collisions:he,droppableContainers:Ke,scrollAdjustedTranslate:ve}=Ve.current;if(!ae||Be.current==null||!fe||!ve)return;const{onDragOver:Ce}=At.current,Ae=Ke.get(kn),ht=Ae&&Ae.rect.current?{id:Ae.id,rect:Ae.rect.current,data:Ae.data,disabled:Ae.disabled}:null,Re={active:ae,activatorEvent:fe,collisions:he,delta:{x:ve.x,y:ve.y},over:ht};(0,Q.unstable_batchedUpdates)(()=>{Pn(ht),Ce==null||Ce(Re),X({type:"onDragOver",event:Re})})},[kn]),(0,d.LI)(()=>{Ve.current={activatorEvent:ke,active:Le,activeNode:we,collisionRect:ft,collisions:Ot,droppableRects:lt,draggableNodes:j,draggingNode:Kt,draggingNodeRect:ut,droppableContainers:ce,over:Xe,scrollableAncestors:Fe,scrollAdjustedTranslate:dt},Te.current={initial:ut,translated:ft}},[Le,we,Ot,ft,j,Kt,ut,lt,ce,Xe,Fe,dt]),Dt(K(x({},In),{delta:ee,draggingRect:ft,pointerCoordinates:Tn,scrollableAncestors:Fe,scrollableAncestorRects:$t}));const Ar=(0,s.useMemo)(()=>({active:Le,activeNode:we,activeNodeRect:xe,activatorEvent:ke,collisions:Ot,containerNodeRect:sn,dragOverlay:qe,draggableNodes:j,droppableContainers:ce,droppableRects:lt,over:Xe,measureDroppableContainers:Xt,scrollableAncestors:Fe,scrollableAncestorRects:$t,measuringConfiguration:Ge,measuringScheduled:Sn,windowRect:an}),[Le,we,xe,ke,Ot,sn,qe,j,ce,lt,Xe,Xt,Fe,$t,Ge,Sn,an]),Or=(0,s.useMemo)(()=>({activatorEvent:ke,activators:jn,active:Le,activeNodeRect:xe,ariaDescribedById:{draggable:on},dispatch:k,draggableNodes:j,over:Xe,measureDroppableContainers:Xt}),[ke,jn,Le,xe,k,on,j,Xe,Xt]);return s.createElement($e.Provider,{value:L},s.createElement(It.Provider,{value:Or},s.createElement(mn.Provider,{value:Ar},s.createElement(rn.Provider,{value:Er},f)),s.createElement(cr,{disabled:(c==null?void 0:c.restoreFocus)===!1})),s.createElement(et,K(x({},c),{hiddenTextDescribedById:on})));function Mr(){const ae=(xn==null?void 0:xn.autoScrollEnabled)===!1,fe=typeof u=="object"?u.enabled===!1:u===!1,he=q&&!ae&&!fe;return typeof u=="object"?K(x({},u),{enabled:he}):{enabled:he}}}),hr=(0,s.createContext)(null),yn="button",gr="Droppable";function vr(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=(0,d.Ld)(gr),{activators:a,activatorEvent:c,active:u,activeNodeRect:f,ariaDescribedById:m,draggableNodes:g,over:S}=(0,s.useContext)(It),{role:R=yn,roleDescription:F="draggable",tabIndex:I=0}=i!=null?i:{},A=(u==null?void 0:u.id)===t,k=(0,s.useContext)(A?rn:hr),[X,L]=(0,d.wm)(),[se,W]=(0,d.wm)(),q=er(a,t),P=(0,d.Ey)(n);(0,d.LI)(()=>(g.set(t,{id:t,key:o,node:X,activatorNode:se,data:P}),()=>{const ee=g.get(t);ee&&ee.key===o&&g.delete(t)}),[g,t]);const j=(0,s.useMemo)(()=>({role:R,tabIndex:I,"aria-disabled":r,"aria-pressed":A&&R===yn?!0:void 0,"aria-roledescription":F,"aria-describedby":m.draggable}),[r,R,I,A,F,m.draggable]);return{active:u,activatorEvent:c,activeNodeRect:f,attributes:j,isDragging:A,listeners:r?void 0:q,node:X,over:S,setNodeRef:L,setActivatorNodeRef:W,transform:k}}function pr(){return(0,s.useContext)(mn)}const br="Droppable",mr={timeout:25};function yr(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=(0,d.Ld)(br),{active:a,dispatch:c,over:u,measureDroppableContainers:f}=(0,s.useContext)(It),m=(0,s.useRef)({disabled:n}),g=(0,s.useRef)(!1),S=(0,s.useRef)(null),R=(0,s.useRef)(null),{disabled:F,updateMeasurementsFor:I,timeout:A}=x(x({},mr),i),k=(0,d.Ey)(I!=null?I:r),X=(0,s.useCallback)(()=>{if(!g.current){g.current=!0;return}R.current!=null&&clearTimeout(R.current),R.current=setTimeout(()=>{f(Array.isArray(k.current)?k.current:[k.current]),R.current=null},A)},[A]),L=Bt({callback:X,disabled:F||!a}),se=(0,s.useCallback)((j,ee)=>{L&&(ee&&(L.unobserve(ee),g.current=!1),j&&L.observe(j))},[L]),[W,q]=(0,d.wm)(se),P=(0,d.Ey)(t);return(0,s.useEffect)(()=>{!L||!W.current||(L.disconnect(),g.current=!1,L.observe(W.current))},[W,L]),(0,d.LI)(()=>(c({type:J.RegisterDroppable,element:{id:r,key:o,disabled:n,node:W,rect:S,data:P}}),()=>c({type:J.UnregisterDroppable,key:o,id:r})),[r]),(0,s.useEffect)(()=>{n!==m.current.disabled&&(c({type:J.SetDroppableDisabled,id:r,key:o,disabled:n}),m.current.disabled=n)},[r,o,n,c]),{active:a,rect:S,isOver:(u==null?void 0:u.id)===r,node:W,over:u,setNodeRef:q}}function kr(e){let{animation:t,children:n}=e;const[r,i]=useState(null),[o,a]=useState(null),c=usePrevious(n);return!n&&!r&&c&&i(c),useIsomorphicLayoutEffect(()=>{if(!o)return;const u=r==null?void 0:r.key,f=r==null?void 0:r.props.id;if(u==null||f==null){i(null);return}Promise.resolve(t(f,o)).then(()=>{i(null)})},[t,r,o]),React.createElement(React.Fragment,null,n,r?cloneElement(r,{ref:a}):null)}const wr={x:0,y:0,scaleX:1,scaleY:1};function Pr(e){let{children:t}=e;return React.createElement(It.Provider,{value:bn},React.createElement(rn.Provider,{value:wr},t))}const zr={position:"fixed",touchAction:"none"},jr=e=>isKeyboardEvent(e)?"transform 250ms ease":void 0,Br=null,xr={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:d.ux.Transform.toString(t)},{transform:d.ux.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(o!=null&&o.active)for(const[c,u]of Object.entries(o.active))u!==void 0&&(i[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,u));if(o!=null&&o.dragOverlay)for(const[c,u]of Object.entries(o.dragOverlay))u!==void 0&&r.node.style.setProperty(c,u);return a!=null&&a.active&&n.node.classList.add(a.active),a!=null&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[u,f]of Object.entries(i))n.node.style.setProperty(u,f);a!=null&&a.active&&n.node.classList.remove(a.active)}})({styles:{active:{opacity:"0"}}})};function Kr(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return useEvent((o,a)=>{if(t===null)return;const c=n.get(o);if(!c)return;const u=c.node.current;if(!u)return;const f=pn(a);if(!f)return;const{transform:m}=getWindow(a).getComputedStyle(a),g=v(m);if(!g)return;const S=typeof t=="function"?t:Cr(t);return wt(u,i.draggable.measure),S({active:{id:o,data:c.data,node:u,rect:i.draggable.measure(u)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(f)},droppableContainers:r,measuringConfiguration:i,transform:g})})}function Cr(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}=x(x({},xr),e);return o=>{let X=o,{active:a,dragOverlay:c,transform:u}=X,f=_t(X,["active","dragOverlay","transform"]);if(!t)return;const m={x:c.rect.left-a.rect.left,y:c.rect.top-a.rect.top},g={scaleX:u.scaleX!==1?a.rect.width*u.scaleX/c.rect.width:1,scaleY:u.scaleY!==1?a.rect.height*u.scaleY/c.rect.height:1},S=x({x:u.x-m.x,y:u.y-m.y},g),R=i(K(x({},f),{active:a,dragOverlay:c,transform:{initial:u,final:S}})),[F]=R,I=R[R.length-1];if(JSON.stringify(F)===JSON.stringify(I))return;const A=r==null?void 0:r(x({active:a,dragOverlay:c},f)),k=c.node.animate(R,{duration:t,easing:n,fill:"forwards"});return new Promise(L=>{k.onfinish=()=>{A==null||A(),L()}})}}let wn=0;function $r(e){return useMemo(()=>{if(e!=null)return wn++,wn},[e])}const Yr=null},245587:function(_,H,M){M.d(H,{Fo:function(){return pt},PG:function(){return Ye},Rp:function(){return ge},nB:function(){return ot},qw:function(){return gt}});var s=M(667294),Q=M(960887),d=M(724285);function ge(h,v,y){const p=h.slice();return p.splice(y<0?p.length+y:y,0,p.splice(v,1)[0]),p}function De(h,v,y){const p=h.slice();return p[v]=h[y],p[y]=h[v],p}function ne(h,v){return h.reduce((y,p,b)=>{const C=v.get(p);return C&&(y[b]=C),y},Array(h.length))}function de(h){return h!==null&&h>=0}function $e(h,v){if(h===v)return!0;if(h.length!==v.length)return!1;for(let y=0;y<h.length;y++)if(h[y]!==v[y])return!1;return!0}function Ze(h){return typeof h=="boolean"?{draggable:h,droppable:h}:h}const Pe={scaleX:1,scaleY:1},Ye=h=>{var v;let{rects:y,activeNodeRect:p,activeIndex:b,overIndex:C,index:D}=h;const O=(v=y[b])!=null?v:p;if(!O)return null;const $=Qe(y,D,b);if(D===b){const N=y[C];return N?x({x:b<C?N.left+N.width-(O.left+O.width):N.left-O.left,y:0},Pe):null}return D>b&&D<=C?x({x:-O.width-$,y:0},Pe):D<b&&D>=C?x({x:O.width+$,y:0},Pe):x({x:0,y:0},Pe)};function Qe(h,v,y){const p=h[v],b=h[v-1],C=h[v+1];return!p||!b&&!C?0:y<v?b?p.left-(b.left+b.width):C.left-(p.left+p.width):C?C.left-(p.left+p.width):p.left-(b.left+b.width)}const et=h=>{let{rects:v,activeIndex:y,overIndex:p,index:b}=h;const C=ge(v,p,y),D=v[b],O=C[b];return!O||!D?null:{x:O.left-D.left,y:O.top-D.top,scaleX:O.width/D.width,scaleY:O.height/D.height}},J=h=>{let{activeIndex:v,index:y,rects:p,overIndex:b}=h,C,D;return y===v&&(C=p[y],D=p[b]),y===b&&(C=p[y],D=p[v]),!D||!C?null:{x:D.left-C.left,y:D.top-C.top,scaleX:D.width/C.width,scaleY:D.height/C.height}},pe={scaleX:1,scaleY:1},gt=h=>{var v;let{activeIndex:y,activeNodeRect:p,index:b,rects:C,overIndex:D}=h;const O=(v=C[y])!=null?v:p;if(!O)return null;if(b===y){const N=C[D];return N?x({x:0,y:y<D?N.top+N.height-(O.top+O.height):N.top-O.top},pe):null}const $=vt(C,b,y);return b>y&&b<=D?x({x:0,y:-O.height-$},pe):b<y&&b>=D?x({x:0,y:O.height+$},pe):x({x:0,y:0},pe)};function vt(h,v,y){const p=h[v],b=h[v-1],C=h[v+1];return p?y<v?b?p.top-(b.top+b.height):C?C.top-(p.top+p.height):0:C?C.top-(p.top+p.height):b?p.top-(b.top+b.height):0:0}const re="Sortable",ze=s.createContext({activeIndex:-1,containerId:re,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:et,disabled:{draggable:!1,droppable:!1}});function pt(h){let{children:v,id:y,items:p,strategy:b=et,disabled:C=!1}=h;const{active:D,dragOverlay:O,droppableRects:$,over:N,measureDroppableContainers:z}=(0,Q.Cj)(),B=(0,d.Ld)(re,y),Y=O.rect!==null,V=(0,s.useMemo)(()=>p.map(Ee=>typeof Ee=="object"&&"id"in Ee?Ee.id:Ee),[p]),be=D!=null,U=D?V.indexOf(D.id):-1,le=N?V.indexOf(N.id):-1,Oe=(0,s.useRef)(V),Se=!$e(V,Oe.current),me=le!==-1&&U===-1||Se,ie=Ze(C);(0,d.LI)(()=>{Se&&be&&z(V)},[Se,V,be,z]),(0,s.useEffect)(()=>{Oe.current=V},[V]);const Me=(0,s.useMemo)(()=>({activeIndex:U,containerId:B,disabled:ie,disableTransforms:me,items:V,overIndex:le,useDragOverlay:Y,sortedRects:ne(V,$),strategy:b}),[U,B,ie.draggable,ie.droppable,me,V,le,$,Y,b]);return s.createElement(ze.Provider,{value:Me},v)}const Ue=h=>{let{id:v,items:y,activeIndex:p,overIndex:b}=h;return ge(y,p,b).indexOf(v)},bt=h=>{let{containerId:v,isSorting:y,wasDragging:p,index:b,items:C,newIndex:D,previousItems:O,previousContainerId:$,transition:N}=h;return!N||!p||O!==C&&b===D?!1:y?!0:D!==b&&v===$},We={duration:200,easing:"ease"},tt="transform",nt=d.ux.Transition.toString({property:tt,duration:0,easing:"linear"}),mt={roleDescription:"sortable"};function rt(h){let{disabled:v,index:y,node:p,rect:b}=h;const[C,D]=(0,s.useState)(null),O=(0,s.useRef)(y);return(0,d.LI)(()=>{if(!v&&y!==O.current&&p.current){const $=b.current;if($){const N=(0,Q.VK)(p.current,{ignoreTransform:!0}),z={x:$.left-N.left,y:$.top-N.top,scaleX:$.width/N.width,scaleY:$.height/N.height};(z.x||z.y)&&D(z)}}y!==O.current&&(O.current=y)},[v,y,p,b]),(0,s.useEffect)(()=>{C&&D(null)},[C]),C}function ot(h){let{animateLayoutChanges:v=bt,attributes:y,disabled:p,data:b,getNewIndex:C=Ue,id:D,strategy:O,resizeObserverConfig:$,transition:N=We}=h;const{items:z,containerId:B,activeIndex:Y,disabled:V,disableTransforms:be,sortedRects:U,overIndex:le,useDragOverlay:Oe,strategy:Se}=(0,s.useContext)(ze),me=yt(p,V),ie=z.indexOf(D),Me=(0,s.useMemo)(()=>x({sortable:{containerId:B,index:ie,items:z}},b),[B,b,ie,z]),Ee=(0,s.useMemo)(()=>z.slice(z.indexOf(D)),[z,D]),{rect:it,node:wt,isOver:Jt,setNodeRef:st}=(0,Q.Zj)({id:D,data:Me,disabled:me.droppable,resizeObserverConfig:x({updateMeasurementsFor:Ee},$)}),{active:ye,activatorEvent:Gt,activeNodeRect:xt,attributes:ue,setNodeRef:Ct,listeners:Vt,isDragging:T,over:kt,setActivatorNodeRef:qt,transform:Pt}=(0,Q.O1)({id:D,data:Me,attributes:x(x({},mt),y),disabled:me.draggable}),zt=(0,d.HB)(st,Ct),Ne=!!ye,at=Ne&&!be&&de(Y)&&de(le),jt=!Oe&&T,ct=jt&&at?Pt:null,Zt=O!=null?O:Se,Rt=at?ct!=null?ct:Zt({rects:U,activeNodeRect:xt,activeIndex:Y,overIndex:le,index:ie}):null,He=de(Y)&&de(le)?C({id:D,items:z,activeIndex:Y,overIndex:le}):ie,Ie=ye==null?void 0:ye.id,oe=(0,s.useRef)({activeId:Ie,items:z,newIndex:He,containerId:B}),_e=z!==oe.current.items,Je=v({active:ye,containerId:B,isDragging:T,isSorting:Ne,id:D,index:ie,items:z,newIndex:oe.current.newIndex,previousItems:oe.current.items,previousContainerId:oe.current.containerId,transition:N,wasDragging:oe.current.activeId!=null}),Dt=rt({disabled:!Je,index:ie,node:wt,rect:it});return(0,s.useEffect)(()=>{Ne&&oe.current.newIndex!==He&&(oe.current.newIndex=He),B!==oe.current.containerId&&(oe.current.containerId=B),z!==oe.current.items&&(oe.current.items=z)},[Ne,He,B,z]),(0,s.useEffect)(()=>{if(Ie===oe.current.activeId)return;if(Ie&&!oe.current.activeId){oe.current.activeId=Ie;return}const en=setTimeout(()=>{oe.current.activeId=Ie},50);return()=>clearTimeout(en)},[Ie]),{active:ye,activeIndex:Y,attributes:ue,data:Me,rect:it,index:ie,newIndex:He,items:z,isOver:Jt,isSorting:Ne,isDragging:T,listeners:Vt,node:wt,overIndex:le,over:kt,setNodeRef:zt,setActivatorNodeRef:qt,setDroppableNodeRef:st,setDraggableNodeRef:Ct,transform:Dt!=null?Dt:Rt,transition:Qt()};function Qt(){if(Dt||_e&&oe.current.newIndex===ie)return nt;if(!(jt&&!(0,d.vd)(Gt)||!N)&&(Ne||Je))return d.ux.Transition.toString(K(x({},N),{property:tt}))}}function yt(h,v){var y,p;return typeof h=="boolean"?{draggable:h,droppable:!1}:{draggable:(y=h==null?void 0:h.draggable)!=null?y:v.draggable,droppable:(p=h==null?void 0:h.droppable)!=null?p:v.droppable}}function l(h){if(!h)return!1;const v=h.data.current;return!!(v&&"sortable"in v&&typeof v.sortable=="object"&&"containerId"in v.sortable&&"items"in v.sortable&&"index"in v.sortable)}const w=[Q.g4.Down,Q.g4.Right,Q.g4.Up,Q.g4.Left],E=(h,v)=>{let{context:{active:y,collisionRect:p,droppableRects:b,droppableContainers:C,over:D,scrollableAncestors:O}}=v;if(w.includes(h.code)){if(h.preventDefault(),!y||!p)return;const $=[];C.getEnabled().forEach(B=>{if(!B||B!=null&&B.disabled)return;const Y=b.get(B.id);if(Y)switch(h.code){case KeyboardCode.Down:p.top<Y.top&&$.push(B);break;case KeyboardCode.Up:p.top>Y.top&&$.push(B);break;case KeyboardCode.Left:p.left>Y.left&&$.push(B);break;case KeyboardCode.Right:p.left<Y.left&&$.push(B);break}});const N=closestCorners({active:y,collisionRect:p,droppableRects:b,droppableContainers:$,pointerCoordinates:null});let z=getFirstCollision(N,"id");if(z===(D==null?void 0:D.id)&&N.length>1&&(z=N[1].id),z!=null){const B=C.get(y.id),Y=C.get(z),V=Y?b.get(Y.id):null,be=Y==null?void 0:Y.node.current;if(be&&V&&B&&Y){const le=getScrollableAncestors(be).some((Ee,it)=>O[it]!==Ee),Oe=G(B,Y),Se=Z(B,Y),me=le||!Oe?{x:0,y:0}:{x:Se?p.width-V.width:0,y:Se?p.height-V.height:0},ie={x:V.left,y:V.top};return me.x&&me.y?ie:subtract(ie,me)}}}};function G(h,v){return!l(h)||!l(v)?!1:h.data.current.sortable.containerId===v.data.current.sortable.containerId}function Z(h,v){return!l(h)||!l(v)||!G(h,v)?!1:h.data.current.sortable.index<v.data.current.sortable.index}},724285:function(_,H,M){M.d(H,{$X:function(){return bt},D9:function(){return vt},DC:function(){return mt},Ey:function(){return J},FJ:function(){return ge},Gj:function(){return pe},HB:function(){return Q},IH:function(){return Ue},Jj:function(){return ne},LI:function(){return Ye},Ld:function(){return ze},Nq:function(){return d},Re:function(){return $e},UG:function(){return De},Yz:function(){return et},qk:function(){return de},r3:function(){return Pe},so:function(){return yt},ux:function(){return rt},vZ:function(){return Ze},vd:function(){return tt},wm:function(){return gt},zX:function(){return Qe}});var s=M(667294);function Q(){for(var l=arguments.length,w=new Array(l),E=0;E<l;E++)w[E]=arguments[E];return(0,s.useMemo)(()=>G=>{w.forEach(Z=>Z(G))},w)}const d=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function ge(l){const w=Object.prototype.toString.call(l);return w==="[object Window]"||w==="[object global]"}function De(l){return"nodeType"in l}function ne(l){var w,E;return l?ge(l)?l:De(l)&&(w=(E=l.ownerDocument)==null?void 0:E.defaultView)!=null?w:window:window}function de(l){const{Document:w}=ne(l);return l instanceof w}function $e(l){return ge(l)?!1:l instanceof ne(l).HTMLElement}function Ze(l){return l instanceof ne(l).SVGElement}function Pe(l){return l?ge(l)?l.document:De(l)?de(l)?l:$e(l)||Ze(l)?l.ownerDocument:document:document:document}const Ye=d?s.useLayoutEffect:s.useEffect;function Qe(l){const w=(0,s.useRef)(l);return Ye(()=>{w.current=l}),(0,s.useCallback)(function(){for(var E=arguments.length,G=new Array(E),Z=0;Z<E;Z++)G[Z]=arguments[Z];return w.current==null?void 0:w.current(...G)},[])}function et(){const l=(0,s.useRef)(null),w=(0,s.useCallback)((G,Z)=>{l.current=setInterval(G,Z)},[]),E=(0,s.useCallback)(()=>{l.current!==null&&(clearInterval(l.current),l.current=null)},[]);return[w,E]}function J(l,w){w===void 0&&(w=[l]);const E=(0,s.useRef)(l);return Ye(()=>{E.current!==l&&(E.current=l)},w),E}function pe(l,w){const E=(0,s.useRef)();return(0,s.useMemo)(()=>{const G=l(E.current);return E.current=G,G},[...w])}function gt(l){const w=Qe(l),E=(0,s.useRef)(null),G=(0,s.useCallback)(Z=>{Z!==E.current&&(w==null||w(Z,E.current)),E.current=Z},[]);return[E,G]}function vt(l){const w=(0,s.useRef)();return(0,s.useEffect)(()=>{w.current=l},[l]),w.current}let re={};function ze(l,w){return(0,s.useMemo)(()=>{if(w)return w;const E=re[l]==null?0:re[l]+1;return re[l]=E,l+"-"+E},[l,w])}function pt(l){return function(w){for(var E=arguments.length,G=new Array(E>1?E-1:0),Z=1;Z<E;Z++)G[Z-1]=arguments[Z];return G.reduce((h,v)=>{const y=Object.entries(v);for(const[p,b]of y){const C=h[p];C!=null&&(h[p]=C+l*b)}return h},x({},w))}}const Ue=pt(1),bt=pt(-1);function We(l){return"clientX"in l&&"clientY"in l}function tt(l){if(!l)return!1;const{KeyboardEvent:w}=ne(l.target);return w&&l instanceof w}function nt(l){if(!l)return!1;const{TouchEvent:w}=ne(l.target);return w&&l instanceof w}function mt(l){if(nt(l)){if(l.touches&&l.touches.length){const{clientX:w,clientY:E}=l.touches[0];return{x:w,y:E}}else if(l.changedTouches&&l.changedTouches.length){const{clientX:w,clientY:E}=l.changedTouches[0];return{x:w,y:E}}}return We(l)?{x:l.clientX,y:l.clientY}:null}const rt=Object.freeze({Translate:{toString(l){if(!l)return;const{x:w,y:E}=l;return"translate3d("+(w?Math.round(w):0)+"px, "+(E?Math.round(E):0)+"px, 0)"}},Scale:{toString(l){if(!l)return;const{scaleX:w,scaleY:E}=l;return"scaleX("+w+") scaleY("+E+")"}},Transform:{toString(l){if(l)return[rt.Translate.toString(l),rt.Scale.toString(l)].join(" ")}},Transition:{toString(l){let{property:w,duration:E,easing:G}=l;return w+" "+E+"ms "+G}}}),ot="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function yt(l){return l.matches(ot)?l:l.querySelector(ot)}}}]);
}());