@nocobase/app 1.7.0-alpha.14 → 1.7.0-alpha.15

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