"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[512],{38505:function(e,t,r){r.d(t,{Z5:function(){return DragDropContext},_l:function(){return PublicDraggable},bK:function(){return eC}});var n=r(27726),i=r(47603),l=r(99412),a=r(77164),o=r(66662),s=r(95348),d=r(93656),c=r(65030),u=r(29678);let p=/[ \t]{2,}/g,g=/^[ \t]*/gm,clean$2=e=>e.replace(p," ").replace(g,"").trim();function log(e,t){}function noop$2(){}function getOptions(e,t){return{...e,...t}}function bindEvents(e,t,r){let n=t.map(t=>{let n=getOptions(r,t.options);return e.addEventListener(t.eventName,t.fn,n),function(){e.removeEventListener(t.eventName,t.fn,n)}});return function(){n.forEach(e=>{e()})}}log.bind(null,"warn"),log.bind(null,"error");let RbdInvariant=class RbdInvariant extends Error{};function invariant(e,t){if(!e)throw new RbdInvariant("Invariant failed")}RbdInvariant.prototype.toString=function(){return this.message};let ErrorBoundary=class ErrorBoundary extends n.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=noop$2,this.onWindowError=e=>{let t=this.getCallbacks();t.isDragging()&&t.tryAbort();let r=e.error;r instanceof RbdInvariant&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=bindEvents(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(e instanceof RbdInvariant){this.setState({});return}throw e}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}};let f=`
  Press space bar to start a drag.
  When dragging you can use the arrow keys to move the item around and escape to cancel.
  Some screen readers may require you to be in focus mode or to use your pass through key
`,position=e=>e+1,withLocation=(e,t)=>{let r=e.droppableId===t.droppableId,n=position(e.index),i=position(t.index);return r?`
      You have moved the item from position ${n}
      to position ${i}
    `:`
    You have moved the item from position ${n}
    in list ${e.droppableId}
    to list ${t.droppableId}
    in position ${i}
  `},withCombine=(e,t,r)=>{let n=t.droppableId===r.droppableId;return n?`
      The item ${e}
      has been combined with ${r.draggableId}`:`
      The item ${e}
      in list ${t.droppableId}
      has been combined with ${r.draggableId}
      in list ${r.droppableId}
    `},returnedToStart=e=>`
  The item has returned to its starting position
  of ${position(e.index)}
`;var m={dragHandleUsageInstructions:f,onDragStart:e=>`
  You have lifted an item in position ${position(e.source.index)}
`,onDragUpdate:e=>{let t=e.destination;if(t)return withLocation(e.source,t);let r=e.combine;return r?withCombine(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return`
      Movement cancelled.
      ${returnedToStart(e.source)}
    `;let t=e.destination,r=e.combine;return t?`
      You have dropped the item.
      ${withLocation(e.source,t)}
    `:r?`
      You have dropped the item.
      ${withCombine(e.draggableId,e.source,r)}
    `:`
    The item has been dropped while not over a drop area.
    ${returnedToStart(e.source)}
  `}};let b={x:0,y:0},add=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),subtract=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),isEqual$1=(e,t)=>e.x===t.x&&e.y===t.y,negate=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),patch=(e,t,r=0)=>"x"===e?{x:t,y:r}:{x:r,y:t},distance=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),closest$1=(e,t)=>Math.min(...t.map(t=>distance(e,t))),apply=e=>t=>({x:e(t.x),y:e(t.y)});var executeClip=(e,t)=>{let r=(0,s.Dz)({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r};let offsetByPosition=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),getCorners=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],scroll$1=(e,t)=>t?offsetByPosition(e,t.scroll.diff.displacement):e,increase=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,clip=(e,t)=>t&&t.shouldClipSubject?executeClip(t.pageMarginBox,e):(0,s.Dz)(e);var getSubject=({page:e,withPlaceholder:t,axis:r,frame:n})=>{let i=scroll$1(e.marginBox,n),l=increase(i,r,t),a=clip(l,n);return{page:e,withPlaceholder:t,active:a}},scrollDroppable=(e,t)=>{e.frame||invariant(!1);let r=e.frame,n=subtract(t,r.scroll.initial),i=negate(n),l={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}},a=getSubject({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:l}),o={...e,frame:l,subject:a};return o};let h=(0,d.Z)(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),v=(0,d.Z)(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),D=(0,d.Z)(e=>Object.values(e)),y=(0,d.Z)(e=>Object.values(e));var I=(0,d.Z)((e,t)=>{let r=y(t).filter(t=>e===t.descriptor.droppableId).sort((e,t)=>e.descriptor.index-t.descriptor.index);return r});function tryGetDestination(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function tryGetCombine(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var x=(0,d.Z)((e,t)=>t.filter(t=>t.descriptor.id!==e.descriptor.id)),moveToNextCombine=({isMovingForward:e,draggable:t,destination:r,insideDestination:n,previousImpact:i})=>{if(!r.isCombineEnabled)return null;let l=tryGetDestination(i);if(!l)return null;function getImpact(e){let t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return{...i,at:t}}let a=i.displaced.all,o=a.length?a[0]:null;if(e)return o?getImpact(o):null;let s=x(t,n);if(!o){if(!s.length)return null;let e=s[s.length-1];return getImpact(e.descriptor.id)}let d=s.findIndex(e=>e.descriptor.id===o);-1!==d||invariant(!1);let c=d-1;if(c<0)return null;let u=s[c];return getImpact(u.descriptor.id)},isHomeOf=(e,t)=>e.descriptor.droppableId===t.descriptor.id;let S={point:b,value:0},E={invisible:{},visible:{},all:[]};var A={displaced:E,displacedBy:S,at:null},isWithin=(e,t)=>r=>e<=r&&r<=t,isPartiallyVisibleThroughFrame=e=>{let t=isWithin(e.top,e.bottom),r=isWithin(e.left,e.right);return n=>{let i=t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right);if(i)return!0;let l=t(n.top)||t(n.bottom),a=r(n.left)||r(n.right);if(l&&a)return!0;let o=n.top<e.top&&n.bottom>e.bottom,s=n.left<e.left&&n.right>e.right;return!!o&&!!s||o&&a||s&&l}},isTotallyVisibleThroughFrame=e=>{let t=isWithin(e.top,e.bottom),r=isWithin(e.left,e.right);return e=>{let n=t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right);return n}};let C={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},w={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var isTotallyVisibleThroughFrameOnAxis=e=>t=>{let r=isWithin(t.top,t.bottom),n=isWithin(t.left,t.right);return t=>e===C?r(t.top)&&r(t.bottom):n(t.left)&&n(t.right)};let getDroppableDisplaced=(e,t)=>{let r=t.frame?t.frame.scroll.diff.displacement:b;return offsetByPosition(e,r)},isVisibleInDroppable=(e,t,r)=>!!t.subject.active&&r(t.subject.active)(e),isVisibleInViewport=(e,t,r)=>r(t)(e),isVisible$1=({target:e,destination:t,viewport:r,withDroppableDisplacement:n,isVisibleThroughFrameFn:i})=>{let l=n?getDroppableDisplaced(e,t):e;return isVisibleInDroppable(l,t,i)&&isVisibleInViewport(l,r,i)},isPartiallyVisible=e=>isVisible$1({...e,isVisibleThroughFrameFn:isPartiallyVisibleThroughFrame}),isTotallyVisible=e=>isVisible$1({...e,isVisibleThroughFrameFn:isTotallyVisibleThroughFrame}),isTotallyVisibleOnAxis=e=>isVisible$1({...e,isVisibleThroughFrameFn:isTotallyVisibleThroughFrameOnAxis(e.destination.axis)}),getShouldAnimate=(e,t,r)=>{if("boolean"==typeof r)return r;if(!t)return!0;let{invisible:n,visible:i}=t;if(n[e])return!1;let l=i[e];return!l||l.shouldAnimate};function getTarget(e,t){let r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return(0,s.Dz)((0,s.jn)(r,n))}function getDisplacementGroups({afterDragging:e,destination:t,displacedBy:r,viewport:n,forceShouldAnimate:i,last:l}){return e.reduce(function(e,a){let o=getTarget(a,r),s=a.descriptor.id;e.all.push(s);let d=isPartiallyVisible({target:o,destination:t,viewport:n,withDroppableDisplacement:!0});if(!d)return e.invisible[a.descriptor.id]=!0,e;let c=getShouldAnimate(s,l,i);return e.visible[s]={draggableId:s,shouldAnimate:c},e},{all:[],visible:{},invisible:{}})}function getIndexOfLastItem(e,t){if(!e.length)return 0;let r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function goAtEnd({insideDestination:e,inHomeList:t,displacedBy:r,destination:n}){let i=getIndexOfLastItem(e,{inHomeList:t});return{displaced:E,displacedBy:r,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:i}}}}function calculateReorderImpact({draggable:e,insideDestination:t,destination:r,viewport:n,displacedBy:i,last:l,index:a,forceShouldAnimate:o}){let s=isHomeOf(e,r);if(null==a)return goAtEnd({insideDestination:t,inHomeList:s,displacedBy:i,destination:r});let d=t.find(e=>e.descriptor.index===a);if(!d)return goAtEnd({insideDestination:t,inHomeList:s,displacedBy:i,destination:r});let c=x(e,t),u=t.indexOf(d),p=c.slice(u),g=getDisplacementGroups({afterDragging:p,destination:r,displacedBy:i,last:l,viewport:n.frame,forceShouldAnimate:o});return{displaced:g,displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function didStartAfterCritical(e,t){return!!t.effected[e]}var fromCombine=({isMovingForward:e,destination:t,draggables:r,combine:n,afterCritical:i})=>{if(!t.isCombineEnabled)return null;let l=n.draggableId,a=r[l],o=a.descriptor.index,s=didStartAfterCritical(l,i);return s?e?o:o-1:e?o+1:o},fromReorder=({isMovingForward:e,isInHomeList:t,insideDestination:r,location:n})=>{if(!r.length)return null;let i=n.index,l=e?i+1:i-1,a=r[0].descriptor.index,o=r[r.length-1].descriptor.index;return l<a||l>(t?o:o+1)?null:l},moveToNextIndex=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:n,destination:i,insideDestination:l,previousImpact:a,viewport:o,afterCritical:s})=>{let d=a.at;if(d||invariant(!1),"REORDER"===d.type){let n=fromReorder({isMovingForward:e,isInHomeList:t,location:d.destination,insideDestination:l});return null==n?null:calculateReorderImpact({draggable:r,insideDestination:l,destination:i,viewport:o,last:a.displaced,displacedBy:a.displacedBy,index:n})}let c=fromCombine({isMovingForward:e,destination:i,displaced:a.displaced,draggables:n,combine:d.combine,afterCritical:s});return null==c?null:calculateReorderImpact({draggable:r,insideDestination:l,destination:i,viewport:o,last:a.displaced,displacedBy:a.displacedBy,index:c})},getCombinedItemDisplacement=({displaced:e,afterCritical:t,combineWith:r,displacedBy:n})=>{let i=!!(e.visible[r]||e.invisible[r]);return didStartAfterCritical(r,t)?i?b:negate(n.point):i?n.point:b},whenCombining=({afterCritical:e,impact:t,draggables:r})=>{let n=tryGetCombine(t);n||invariant(!1);let i=n.draggableId,l=r[i].page.borderBox.center,a=getCombinedItemDisplacement({displaced:t.displaced,afterCritical:e,combineWith:i,displacedBy:t.displacedBy});return add(l,a)};let distanceFromStartToBorderBoxCenter=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,distanceFromEndToBorderBoxCenter=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,getCrossAxisBorderBoxCenter=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,goAfter=({axis:e,moveRelativeTo:t,isMoving:r})=>patch(e.line,t.marginBox[e.end]+distanceFromStartToBorderBoxCenter(e,r),getCrossAxisBorderBoxCenter(e,t.marginBox,r)),goBefore=({axis:e,moveRelativeTo:t,isMoving:r})=>patch(e.line,t.marginBox[e.start]-distanceFromEndToBorderBoxCenter(e,r),getCrossAxisBorderBoxCenter(e,t.marginBox,r)),goIntoStart=({axis:e,moveInto:t,isMoving:r})=>patch(e.line,t.contentBox[e.start]+distanceFromStartToBorderBoxCenter(e,r),getCrossAxisBorderBoxCenter(e,t.contentBox,r));var whenReordering=({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i})=>{let l=I(n.descriptor.id,r),a=t.page,o=n.axis;if(!l.length)return goIntoStart({axis:o,moveInto:n.page,isMoving:a});let{displaced:d,displacedBy:c}=e,u=d.all[0];if(u){let e=r[u];if(didStartAfterCritical(u,i))return goBefore({axis:o,moveRelativeTo:e.page,isMoving:a});let t=(0,s.cv)(e.page,c.point);return goBefore({axis:o,moveRelativeTo:t,isMoving:a})}let p=l[l.length-1];if(p.descriptor.id===t.descriptor.id)return a.borderBox.center;if(didStartAfterCritical(p.descriptor.id,i)){let e=(0,s.cv)(p.page,negate(i.displacedBy.point));return goAfter({axis:o,moveRelativeTo:e,isMoving:a})}return goAfter({axis:o,moveRelativeTo:p.page,isMoving:a})},withDroppableDisplacement=(e,t)=>{let r=e.frame;return r?add(t,r.scroll.diff.displacement):t};let getResultWithoutDroppableDisplacement=({impact:e,draggable:t,droppable:r,draggables:n,afterCritical:i})=>{let l=t.page.borderBox.center,a=e.at;return r&&a?"REORDER"===a.type?whenReordering({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i}):whenCombining({impact:e,draggables:n,afterCritical:i}):l};var getPageBorderBoxCenterFromImpact=e=>{let t=getResultWithoutDroppableDisplacement(e),r=e.droppable,n=r?withDroppableDisplacement(r,t):t;return n},scrollViewport=(e,t)=>{let r=subtract(t,e.scroll.initial),n=negate(r),i=(0,s.Dz)({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),l={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}};return l};function getDraggables$1(e,t){return e.map(e=>t[e])}function tryGetVisible(e,t){for(let r=0;r<t.length;r++){let n=t[r].visible[e];if(n)return n}return null}var speculativelyIncrease=({impact:e,viewport:t,destination:r,draggables:n,maxScrollChange:i})=>{let l=scrollViewport(t,add(t.scroll.current,i)),a=r.frame?scrollDroppable(r,add(r.frame.scroll.current,i)):r,o=e.displaced,s=getDisplacementGroups({afterDragging:getDraggables$1(o.all,n),destination:r,displacedBy:e.displacedBy,viewport:l.frame,last:o,forceShouldAnimate:!1}),d=getDisplacementGroups({afterDragging:getDraggables$1(o.all,n),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:o,forceShouldAnimate:!1}),c={},u={},p=[o,s,d];o.all.forEach(e=>{let t=tryGetVisible(e,p);if(t){u[e]=t;return}c[e]=!0});let g={...e,displaced:{all:o.all,invisible:c,visible:u}};return g},withViewportDisplacement=(e,t)=>add(e.scroll.diff.displacement,t),getClientFromPageBorderBoxCenter=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{let n=withViewportDisplacement(r,e),i=subtract(n,t.page.borderBox.center);return add(t.client.borderBox.center,i)},isTotallyVisibleInNewLocation=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:n,withDroppableDisplacement:i,onlyOnMainAxis:l=!1})=>{let a=subtract(r,e.page.borderBox.center),o=offsetByPosition(e.page.borderBox,a),s={target:o,destination:t,withDroppableDisplacement:i,viewport:n};return l?isTotallyVisibleOnAxis(s):isTotallyVisible(s)},moveToNextPlace=({isMovingForward:e,draggable:t,destination:r,draggables:n,previousImpact:i,viewport:l,previousPageBorderBoxCenter:a,previousClientSelection:o,afterCritical:s})=>{if(!r.isEnabled)return null;let d=I(r.descriptor.id,n),c=isHomeOf(t,r),u=moveToNextCombine({isMovingForward:e,draggable:t,destination:r,insideDestination:d,previousImpact:i})||moveToNextIndex({isMovingForward:e,isInHomeList:c,draggable:t,draggables:n,destination:r,insideDestination:d,previousImpact:i,viewport:l,afterCritical:s});if(!u)return null;let p=getPageBorderBoxCenterFromImpact({impact:u,draggable:t,droppable:r,draggables:n,afterCritical:s}),g=isTotallyVisibleInNewLocation({draggable:t,destination:r,newPageBorderBoxCenter:p,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(g){let e=getClientFromPageBorderBoxCenter({pageBorderBoxCenter:p,draggable:t,viewport:l});return{clientSelection:e,impact:u,scrollJumpRequest:null}}let f=subtract(p,a),m=speculativelyIncrease({impact:u,viewport:l,destination:r,draggables:n,maxScrollChange:f});return{clientSelection:o,impact:m,scrollJumpRequest:f}};let getKnownActive=e=>{let t=e.subject.active;return t||invariant(!1),t};var getBestCrossAxisDroppable=({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:n,viewport:i})=>{let l=r.subject.active;if(!l)return null;let a=r.axis,o=isWithin(l[a.start],l[a.end]),s=D(n).filter(e=>e!==r).filter(e=>e.isEnabled).filter(e=>!!e.subject.active).filter(e=>isPartiallyVisibleThroughFrame(i.frame)(getKnownActive(e))).filter(t=>{let r=getKnownActive(t);return e?l[a.crossAxisEnd]<r[a.crossAxisEnd]:r[a.crossAxisStart]<l[a.crossAxisStart]}).filter(e=>{let t=getKnownActive(e),r=isWithin(t[a.start],t[a.end]);return o(t[a.start])||o(t[a.end])||r(l[a.start])||r(l[a.end])}).sort((t,r)=>{let n=getKnownActive(t)[a.crossAxisStart],i=getKnownActive(r)[a.crossAxisStart];return e?n-i:i-n}).filter((e,t,r)=>getKnownActive(e)[a.crossAxisStart]===getKnownActive(r[0])[a.crossAxisStart]);if(!s.length)return null;if(1===s.length)return s[0];let d=s.filter(e=>{let r=isWithin(getKnownActive(e)[a.start],getKnownActive(e)[a.end]);return r(t[a.line])});return 1===d.length?d[0]:d.length>1?d.sort((e,t)=>getKnownActive(e)[a.start]-getKnownActive(t)[a.start])[0]:s.sort((e,r)=>{let n=closest$1(t,getCorners(getKnownActive(e))),i=closest$1(t,getCorners(getKnownActive(r)));return n!==i?n-i:getKnownActive(e)[a.start]-getKnownActive(r)[a.start]})[0]};let getCurrentPageBorderBoxCenter=(e,t)=>{let r=e.page.borderBox.center;return didStartAfterCritical(e.descriptor.id,t)?subtract(r,t.displacedBy.point):r},getCurrentPageBorderBox=(e,t)=>{let r=e.page.borderBox;return didStartAfterCritical(e.descriptor.id,t)?offsetByPosition(r,negate(t.displacedBy.point)):r};var getClosestDraggable=({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:n,afterCritical:i})=>{let l=n.filter(e=>isTotallyVisible({target:getCurrentPageBorderBox(e,i),destination:r,viewport:t.frame,withDroppableDisplacement:!0})).sort((t,n)=>{let l=distance(e,withDroppableDisplacement(r,getCurrentPageBorderBoxCenter(t,i))),a=distance(e,withDroppableDisplacement(r,getCurrentPageBorderBoxCenter(n,i)));return l<a?-1:a<l?1:t.descriptor.index-n.descriptor.index});return l[0]||null},P=(0,d.Z)(function(e,t){let r=t[e.line];return{value:r,point:patch(e.line,r)}});let getRequiredGrowthForPlaceholder=(e,t,r)=>{let n=e.axis;if("virtual"===e.descriptor.mode)return patch(n.line,t[n.line]);let i=e.subject.page.contentBox[n.size],l=I(e.descriptor.id,r),a=l.reduce((e,t)=>e+t.client.marginBox[n.size],0),o=a+t[n.line],s=o-i;return s<=0?null:patch(n.line,s)},withMaxScroll=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),addPlaceholder=(e,t,r)=>{let n=e.frame;isHomeOf(t,e)&&invariant(!1),e.subject.withPlaceholder&&invariant(!1);let i=P(e.axis,t.displaceBy).point,l=getRequiredGrowthForPlaceholder(e,i,r),a={placeholderSize:i,increasedBy:l,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){let t=getSubject({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}let o=l?add(n.scroll.max,l):n.scroll.max,s=withMaxScroll(n,o),d=getSubject({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:s});return{...e,subject:d,frame:s}},removePlaceholder=e=>{let t=e.subject.withPlaceholder;t||invariant(!1);let r=e.frame;if(!r){let t=getSubject({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}let n=t.oldFrameMaxScroll;n||invariant(!1);let i=withMaxScroll(r,n),l=getSubject({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return{...e,subject:l,frame:i}};var moveToNewDroppable=({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:n,draggables:i,destination:l,viewport:a,afterCritical:o})=>{if(!t){if(r.length)return null;let e={displaced:E,displacedBy:S,at:{type:"REORDER",destination:{droppableId:l.descriptor.id,index:0}}},t=getPageBorderBoxCenterFromImpact({impact:e,draggable:n,droppable:l,draggables:i,afterCritical:o}),s=isHomeOf(n,l)?l:addPlaceholder(l,n,i),d=isTotallyVisibleInNewLocation({draggable:n,destination:s,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return d?e:null}let s=e[l.axis.line]<=t.page.borderBox.center[l.axis.line],d=(()=>{let e=t.descriptor.index;return t.descriptor.id===n.descriptor.id||s?e:e+1})(),c=P(l.axis,n.displaceBy);return calculateReorderImpact({draggable:n,insideDestination:r,destination:l,viewport:a,displacedBy:c,last:E,index:d})},moveCrossAxis=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:n,draggables:i,droppables:l,viewport:a,afterCritical:o})=>{let s=getBestCrossAxisDroppable({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:l,viewport:a});if(!s)return null;let d=I(s.descriptor.id,i),c=getClosestDraggable({pageBorderBoxCenter:t,viewport:a,destination:s,insideDestination:d,afterCritical:o}),u=moveToNewDroppable({previousPageBorderBoxCenter:t,destination:s,draggable:r,draggables:i,moveRelativeTo:c,insideDestination:d,viewport:a,afterCritical:o});if(!u)return null;let p=getPageBorderBoxCenterFromImpact({impact:u,draggable:r,droppable:s,draggables:i,afterCritical:o}),g=getClientFromPageBorderBoxCenter({pageBorderBoxCenter:p,draggable:r,viewport:a});return{clientSelection:g,impact:u,scrollJumpRequest:null}},whatIsDraggedOver=e=>{let t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null};let getDroppableOver$1=(e,t)=>{let r=whatIsDraggedOver(e);return r?t[r]:null};var moveInDirection=({state:e,type:t})=>{let r=getDroppableOver$1(e.impact,e.dimensions.droppables),n=!!r,i=e.dimensions.droppables[e.critical.droppable.id],l=r||i,a=l.axis.direction,o="vertical"===a&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===a&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(o&&!n)return null;let s="MOVE_DOWN"===t||"MOVE_RIGHT"===t,d=e.dimensions.draggables[e.critical.draggable.id],c=e.current.page.borderBoxCenter,{draggables:u,droppables:p}=e.dimensions;return o?moveToNextPlace({isMovingForward:s,previousPageBorderBoxCenter:c,draggable:d,destination:l,draggables:u,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):moveCrossAxis({isMovingForward:s,previousPageBorderBoxCenter:c,draggable:d,isOver:l,draggables:u,droppables:p,viewport:e.viewport,afterCritical:e.afterCritical})};function isMovementAllowed(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function isPositionInFrame(e){let t=isWithin(e.top,e.bottom),r=isWithin(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function getHasOverlap(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function getFurthestAway({pageBorderBox:e,draggable:t,candidates:r}){let n=t.page.borderBox.center,i=r.map(t=>{let r=t.axis,i=patch(t.axis.line,e.center[r.line],t.page.borderBox.center[r.crossAxisLine]);return{id:t.descriptor.id,distance:distance(n,i)}}).sort((e,t)=>t.distance-e.distance);return i[0]?i[0].id:null}function getDroppableOver({pageBorderBox:e,draggable:t,droppables:r}){let n=D(r).filter(t=>{if(!t.isEnabled)return!1;let r=t.subject.active;if(!r||!getHasOverlap(e,r))return!1;if(isPositionInFrame(r)(e.center))return!0;let n=t.axis,i=r.center[n.crossAxisLine],l=e[n.crossAxisStart],a=e[n.crossAxisEnd],o=isWithin(r[n.crossAxisStart],r[n.crossAxisEnd]),s=o(l),d=o(a);return!s&&!d||(s?l<i:a>i)});return n.length?1===n.length?n[0].descriptor.id:getFurthestAway({pageBorderBox:e,draggable:t,candidates:n}):null}let offsetRectByPosition=(e,t)=>(0,s.Dz)(offsetByPosition(e,t));var withDroppableScroll=(e,t)=>{let r=e.frame;return r?offsetRectByPosition(t,r.scroll.diff.value):t};function getIsDisplaced({displaced:e,id:t}){return!!(e.visible[t]||e.invisible[t])}function atIndex({draggable:e,closest:t,inHomeList:r}){return t?r&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}var getReorderImpact=({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:n,last:i,viewport:l,afterCritical:a})=>{let o=r.axis,s=P(r.axis,t.displaceBy),d=s.value,c=e[o.start],u=e[o.end],p=x(t,n),g=p.find(e=>{let t=e.descriptor.id,r=e.page.borderBox.center[o.line],n=didStartAfterCritical(t,a),l=getIsDisplaced({displaced:i,id:t});return n?l?u<=r:c<r-d:l?u<=r+d:c<r})||null,f=atIndex({draggable:t,closest:g,inHomeList:isHomeOf(t,r)});return calculateReorderImpact({draggable:t,insideDestination:n,destination:r,viewport:l,last:i,displacedBy:s,index:f})},getCombineImpact=({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:n,insideDestination:i,afterCritical:l})=>{if(!n.isCombineEnabled)return null;let a=n.axis,o=P(n.axis,e.displaceBy),s=o.value,d=t[a.start],c=t[a.end],u=x(e,i),p=u.find(e=>{let t=e.descriptor.id,n=e.page.borderBox,i=n[a.size],o=i/4,u=didStartAfterCritical(t,l),p=getIsDisplaced({displaced:r.displaced,id:t});return u?p?c>n[a.start]+o&&c<n[a.end]-o:d>n[a.start]-s+o&&d<n[a.end]-s-o:p?c>n[a.start]+s+o&&c<n[a.end]+s-o:d>n[a.start]+o&&d<n[a.end]-o});if(!p)return null;let g={displacedBy:o,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:n.descriptor.id}}};return g},getDragImpact=({pageOffset:e,draggable:t,draggables:r,droppables:n,previousImpact:i,viewport:l,afterCritical:a})=>{let o=offsetRectByPosition(t.page.borderBox,e),s=getDroppableOver({pageBorderBox:o,draggable:t,droppables:n});if(!s)return A;let d=n[s],c=I(d.descriptor.id,r),u=withDroppableScroll(d,o);return getCombineImpact({pageBorderBoxWithDroppableScroll:u,draggable:t,previousImpact:i,destination:d,insideDestination:c,afterCritical:a})||getReorderImpact({pageBorderBoxWithDroppableScroll:u,draggable:t,destination:d,insideDestination:c,last:i.displaced,viewport:l,afterCritical:a})},patchDroppableMap=(e,t)=>({...e,[t.descriptor.id]:t});let clearUnusedPlaceholder=({previousImpact:e,impact:t,droppables:r})=>{let n=whatIsDraggedOver(e),i=whatIsDraggedOver(t);if(!n||n===i)return r;let l=r[n];if(!l.subject.withPlaceholder)return r;let a=removePlaceholder(l);return patchDroppableMap(r,a)};var recomputePlaceholders=({draggable:e,draggables:t,droppables:r,previousImpact:n,impact:i})=>{let l=clearUnusedPlaceholder({previousImpact:n,impact:i,droppables:r}),a=whatIsDraggedOver(i);if(!a)return l;let o=r[a];if(isHomeOf(e,o)||o.subject.withPlaceholder)return l;let s=addPlaceholder(o,e,t);return patchDroppableMap(l,s)},update=({state:e,clientSelection:t,dimensions:r,viewport:n,impact:i,scrollJumpRequest:l})=>{let a=n||e.viewport,o=r||e.dimensions,s=t||e.current.client.selection,d=subtract(s,e.initial.client.selection),c={offset:d,selection:s,borderBoxCenter:add(e.initial.client.borderBoxCenter,d)},u={selection:add(c.selection,a.scroll.current),borderBoxCenter:add(c.borderBoxCenter,a.scroll.current),offset:add(c.offset,a.scroll.diff.value)},p={client:c,page:u};if("COLLECTING"===e.phase)return{...e,dimensions:o,viewport:a,current:p};let g=o.draggables[e.critical.draggable.id],f=i||getDragImpact({pageOffset:u.offset,draggable:g,draggables:o.draggables,droppables:o.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),m=recomputePlaceholders({draggable:g,impact:f,previousImpact:e.impact,draggables:o.draggables,droppables:o.droppables}),b={...e,current:p,dimensions:{draggables:o.draggables,droppables:m},impact:f,viewport:a,scrollJumpRequest:l||null,forceShouldAnimate:!l&&null};return b};function getDraggables(e,t){return e.map(e=>t[e])}var recompute=({impact:e,viewport:t,draggables:r,destination:n,forceShouldAnimate:i})=>{let l=e.displaced,a=getDraggables(l.all,r),o=getDisplacementGroups({afterDragging:a,destination:n,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:i,last:l});return{...e,displaced:o}},getClientBorderBoxCenter=({impact:e,draggable:t,droppable:r,draggables:n,viewport:i,afterCritical:l})=>{let a=getPageBorderBoxCenterFromImpact({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:l});return getClientFromPageBorderBoxCenter({pageBorderBoxCenter:a,draggable:t,viewport:i})},refreshSnap=({state:e,dimensions:t,viewport:r})=>{"SNAP"!==e.movementMode&&invariant(!1);let n=e.impact,i=r||e.viewport,l=t||e.dimensions,{draggables:a,droppables:o}=l,s=a[e.critical.draggable.id],d=whatIsDraggedOver(n);d||invariant(!1);let c=o[d],u=recompute({impact:n,viewport:i,destination:c,draggables:a}),p=getClientBorderBoxCenter({impact:u,draggable:s,droppable:c,draggables:a,viewport:i,afterCritical:e.afterCritical});return update({impact:u,clientSelection:p,state:e,dimensions:l,viewport:i})},getHomeLocation=e=>({index:e.index,droppableId:e.droppableId}),getLiftEffect=({draggable:e,home:t,draggables:r,viewport:n})=>{let i=P(t.axis,e.displaceBy),l=I(t.descriptor.id,r),a=l.indexOf(e);-1!==a||invariant(!1);let o=l.slice(a+1),s=o.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),d={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:i,effected:s},c=getDisplacementGroups({afterDragging:o,destination:t,displacedBy:i,last:null,viewport:n.frame,forceShouldAnimate:!1}),u={displaced:c,displacedBy:i,at:{type:"REORDER",destination:getHomeLocation(e.descriptor)}};return{impact:u,afterCritical:d}},patchDimensionMap=(e,t)=>({draggables:e.draggables,droppables:patchDroppableMap(e.droppables,t)});let start=e=>{},finish=e=>{};var offsetDraggable=({draggable:e,offset:t,initialWindowScroll:r})=>{let n=(0,s.cv)(e.client,t),i=(0,s.oc)(n,r),l={...e,placeholder:{...e.placeholder,client:n},client:n,page:i};return l},getFrame=e=>{let t=e.frame;return t||invariant(!1),t},adjustAdditionsForScrollChanges=({additions:e,updatedDroppables:t,viewport:r})=>{let n=r.scroll.diff.value;return e.map(e=>{let i=e.descriptor.droppableId,l=t[i],a=getFrame(l),o=a.scroll.diff.value,s=add(n,o),d=offsetDraggable({draggable:e,offset:s,initialWindowScroll:r.scroll.initial});return d})};let B="Processing dynamic changes";var publishWhileDraggingInVirtual=({state:e,published:t})=>{start(B);let r=t.modified.map(t=>{let r=e.dimensions.droppables[t.droppableId],n=scrollDroppable(r,t.scroll);return n}),n={...e.dimensions.droppables,...h(r)},i=v(adjustAdditionsForScrollChanges({additions:t.additions,updatedDroppables:n,viewport:e.viewport})),l={...e.dimensions.draggables,...i};t.removals.forEach(e=>{delete l[e]});let a={droppables:n,draggables:l},o=whatIsDraggedOver(e.impact),s=o?a.droppables[o]:null,d=a.draggables[e.critical.draggable.id],c=a.droppables[e.critical.droppable.id],{impact:u,afterCritical:p}=getLiftEffect({draggable:d,home:c,draggables:l,viewport:e.viewport}),g=s&&s.isCombineEnabled?e.impact:u,f=getDragImpact({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:g,viewport:e.viewport,afterCritical:p});finish(B);let m={...e,phase:"DRAGGING",impact:f,onLiftImpact:u,dimensions:a,afterCritical:p,forceShouldAnimate:!1};if("COLLECTING"===e.phase)return m;let b={...m,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1};return b};let isSnapping=e=>"SNAP"===e.movementMode,postDroppableChange=(e,t,r)=>{let n=patchDimensionMap(e.dimensions,t);return!isSnapping(e)||r?update({state:e,dimensions:n}):refreshSnap({state:e,dimensions:n})};function removeScrollJumpRequest(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}let R={phase:"IDLE",completed:null,shouldFlush:!1};var reducer=(e=R,t)=>{if("FLUSH"===t.type)return{...R,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&invariant(!1);let{critical:r,clientSelection:n,viewport:i,dimensions:l,movementMode:a}=t.payload,o=l.draggables[r.draggable.id],s=l.droppables[r.droppable.id],d={selection:n,borderBoxCenter:o.client.borderBox.center,offset:b},c={client:d,page:{selection:add(d.selection,i.scroll.initial),borderBoxCenter:add(d.selection,i.scroll.initial),offset:add(d.selection,i.scroll.diff.value)}},u=D(l.droppables).every(e=>!e.isFixedOnPage),{impact:p,afterCritical:g}=getLiftEffect({draggable:o,home:s,draggables:l.draggables,viewport:i});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:l,initial:c,current:c,isWindowScrollAllowed:u,impact:p,afterCritical:g,onLiftImpact:p,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&invariant(!1);let t={...e,phase:"COLLECTING"};return t}if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase||invariant(!1),publishWhileDraggingInVirtual({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||invariant(!1);let{client:r}=t.payload;return isEqual$1(r,e.current.client.selection)?e:update({state:e,clientSelection:r,impact:isSnapping(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"COLLECTING"===e.phase)return removeScrollJumpRequest(e);isMovementAllowed(e)||invariant(!1);let{id:r,newScroll:n}=t.payload,i=e.dimensions.droppables[r];if(!i)return e;let l=scrollDroppable(i,n);return postDroppableChange(e,l,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||invariant(!1);let{id:r,isEnabled:n}=t.payload,i=e.dimensions.droppables[r];i||invariant(!1),i.isEnabled!==n||invariant(!1);let l={...i,isEnabled:n};return postDroppableChange(e,l,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;isMovementAllowed(e)||invariant(!1);let{id:r,isCombineEnabled:n}=t.payload,i=e.dimensions.droppables[r];i||invariant(!1),i.isCombineEnabled!==n||invariant(!1);let l={...i,isCombineEnabled:n};return postDroppableChange(e,l,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;isMovementAllowed(e)||invariant(!1),e.isWindowScrollAllowed||invariant(!1);let r=t.payload.newScroll;if(isEqual$1(e.viewport.scroll.current,r))return removeScrollJumpRequest(e);let n=scrollViewport(e.viewport,r);return isSnapping(e)?refreshSnap({state:e,viewport:n}):update({state:e,viewport:n})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!isMovementAllowed(e))return e;let r=t.payload.maxScroll;if(isEqual$1(r,e.viewport.scroll.max))return e;let n={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:n}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&invariant(!1);let r=moveInDirection({state:e,type:t.type});return r?update({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){let r=t.payload.reason;"COLLECTING"!==e.phase&&invariant(!1);let n={...e,phase:"DROP_PENDING",isWaiting:!0,reason:r};return n}if("DROP_ANIMATE"===t.type){let{completed:r,dropDuration:n,newHomeClientOffset:i}=t.payload;"DRAGGING"===e.phase||"DROP_PENDING"===e.phase||invariant(!1);let l={phase:"DROP_ANIMATING",completed:r,dropDuration:n,newHomeClientOffset:i,dimensions:e.dimensions};return l}if("DROP_COMPLETE"===t.type){let{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};let beforeInitialCapture=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),lift$1=e=>({type:"LIFT",payload:e}),initialPublish=e=>({type:"INITIAL_PUBLISH",payload:e}),publishWhileDragging=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),collectionStarting=()=>({type:"COLLECTION_STARTING",payload:null}),updateDroppableScroll=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),updateDroppableIsEnabled=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),updateDroppableIsCombineEnabled=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),move=e=>({type:"MOVE",payload:e}),moveByWindowScroll=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),moveUp=()=>({type:"MOVE_UP",payload:null}),moveDown=()=>({type:"MOVE_DOWN",payload:null}),moveRight=()=>({type:"MOVE_RIGHT",payload:null}),moveLeft=()=>({type:"MOVE_LEFT",payload:null}),flush=()=>({type:"FLUSH",payload:null}),animateDrop=e=>({type:"DROP_ANIMATE",payload:e}),completeDrop=e=>({type:"DROP_COMPLETE",payload:e}),drop$1=e=>({type:"DROP",payload:e}),dropPending=e=>({type:"DROP_PENDING",payload:e}),dropAnimationFinished=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var lift=e=>({getState:t,dispatch:r})=>n=>i=>{if("LIFT"!==i.type){n(i);return}let{id:l,clientSelection:a,movementMode:o}=i.payload,s=t();"DROP_ANIMATING"===s.phase&&r(completeDrop({completed:s.completed})),"IDLE"!==t().phase&&invariant(!1),r(flush()),r(beforeInitialCapture({draggableId:l,movementMode:o}));let{critical:d,dimensions:c,viewport:u}=e.startPublishing({draggableId:l,scrollOptions:{shouldPublishImmediately:"SNAP"===o}});r(initialPublish({critical:d,dimensions:c,clientSelection:a,movementMode:o,viewport:u}))},style=e=>()=>t=>r=>{"INITIAL_PUBLISH"===r.type&&e.dragging(),"DROP_ANIMATE"===r.type&&e.dropping(r.payload.completed.result.reason),("FLUSH"===r.type||"DROP_COMPLETE"===r.type)&&e.resting(),t(r)};let O={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},N={opacity:{drop:0,combining:.7},scale:{drop:.75}},T={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},L=`${T.outOfTheWay}s ${O.outOfTheWay}`,G={fluid:`opacity ${L}`,snap:`transform ${L}, opacity ${L}`,drop:e=>{let t=`${e}s ${O.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${L}`,placeholder:`height ${L}, width ${L}, margin ${L}`},moveTo=e=>isEqual$1(e,b)?void 0:`translate(${e.x}px, ${e.y}px)`,M={moveTo,drop:(e,t)=>{let r=moveTo(e);return r?t?`${r} scale(${N.scale.drop})`:r:void 0}},{minDropTime:F,maxDropTime:$}=T,_=$-F;var getDropDuration=({current:e,destination:t,reason:r})=>{let n=distance(e,t);if(n<=0)return F;if(n>=1500)return $;let i=F+_*(n/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))},getNewHomeClientOffset=({impact:e,draggable:t,dimensions:r,viewport:n,afterCritical:i})=>{let{draggables:l,droppables:a}=r,o=whatIsDraggedOver(e),s=o?a[o]:null,d=a[t.descriptor.droppableId],c=getClientBorderBoxCenter({impact:e,draggable:t,draggables:l,afterCritical:i,droppable:s||d,viewport:n}),u=subtract(c,t.client.borderBox.center);return u},getDropImpact=({draggables:e,reason:t,lastImpact:r,home:n,viewport:i,onLiftImpact:l})=>{if(!r.at||"DROP"!==t){let t=recompute({draggables:e,impact:l,destination:n,viewport:i,forceShouldAnimate:!0});return{impact:t,didDropInsideDroppable:!1}}if("REORDER"===r.at.type)return{impact:r,didDropInsideDroppable:!0};let a={...r,displaced:E};return{impact:a,didDropInsideDroppable:!0}},drop=({getState:e,dispatch:t})=>r=>n=>{if("DROP"!==n.type){r(n);return}let i=e(),l=n.payload.reason;if("COLLECTING"===i.phase){t(dropPending({reason:l}));return}if("IDLE"===i.phase)return;let a="DROP_PENDING"===i.phase&&i.isWaiting;a&&invariant(!1),"DRAGGING"===i.phase||"DROP_PENDING"===i.phase||invariant(!1);let o=i.critical,s=i.dimensions,d=s.draggables[i.critical.draggable.id],{impact:c,didDropInsideDroppable:u}=getDropImpact({reason:l,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),p=u?tryGetDestination(c):null,g=u?tryGetCombine(c):null,f={index:o.draggable.index,droppableId:o.droppable.id},m={draggableId:d.descriptor.id,type:d.descriptor.type,source:f,reason:l,mode:i.movementMode,destination:p,combine:g},b=getNewHomeClientOffset({impact:c,draggable:d,dimensions:s,viewport:i.viewport,afterCritical:i.afterCritical}),h={critical:i.critical,afterCritical:i.afterCritical,result:m,impact:c},v=!isEqual$1(i.current.client.offset,b)||!!m.combine;if(!v){t(completeDrop({completed:h}));return}let D=getDropDuration({current:i.current.client.offset,destination:b,reason:l});t(animateDrop({newHomeClientOffset:b,dropDuration:D,completed:h}))},getWindowScroll=()=>({x:window.pageXOffset,y:window.pageYOffset});function getWindowScrollBinding(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{(t.target===window||t.target===window.document)&&e()}}}function getScrollListener({onWindowScroll:e}){function updateScroll(){e(getWindowScroll())}let t=(0,c.Z)(updateScroll),r=getWindowScrollBinding(t),n=noop$2;function isActive(){return n!==noop$2}return{start:function(){isActive()&&invariant(!1),n=bindEvents(window,[r])},stop:function(){isActive()||invariant(!1),t.cancel(),n(),n=noop$2},isActive}}let shouldEnd=e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type;var scrollListener$1=e=>{let t=getScrollListener({onWindowScroll:t=>{e.dispatch(moveByWindowScroll({newScroll:t}))}});return e=>r=>{t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&shouldEnd(r)&&t.stop(),e(r)}},getExpiringAnnounce=e=>{let t=!1,r=!1,n=setTimeout(()=>{r=!0}),result=i=>{t||r||(t=!0,e(i),clearTimeout(n))};return result.wasCalled=()=>t,result},getAsyncMarshal=()=>{let e=[],execute=t=>{let r=e.findIndex(e=>e.timerId===t);-1!==r||invariant(!1);let[n]=e.splice(r,1);n.callback()};return{add:t=>{let r=setTimeout(()=>execute(r));e.push({timerId:r,callback:t})},flush:()=>{if(!e.length)return;let t=[...e];e.length=0,t.forEach(e=>{clearTimeout(e.timerId),e.callback()})}}};let areLocationsEqual=(e,t)=>null==e&&null==t||null!=e&&null!=t&&e.droppableId===t.droppableId&&e.index===t.index,isCombineEqual=(e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId,isCriticalEqual=(e,t)=>{if(e===t)return!0;let r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n},withTimings=(e,t)=>{start(),t(),finish()},getDragStart=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function execute(e,t,r,n){if(!e){r(n(t));return}let i=getExpiringAnnounce(r);e(t,{announce:i}),i.wasCalled()||r(n(t))}var getPublisher=(e,t)=>{let r=getAsyncMarshal(),n=null,drop=r=>{n||invariant(!1),n=null,withTimings("onDragEnd",()=>execute(e().onDragEnd,r,t,m.onDragEnd))};return{beforeCapture:(t,r)=>{n&&invariant(!1),withTimings("onBeforeCapture",()=>{let n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})})},beforeStart:(t,r)=>{n&&invariant(!1),withTimings("onBeforeDragStart",()=>{let n=e().onBeforeDragStart;n&&n(getDragStart(t,r))})},start:(i,l)=>{n&&invariant(!1);let a=getDragStart(i,l);n={mode:l,lastCritical:i,lastLocation:a.source,lastCombine:null},r.add(()=>{withTimings("onDragStart",()=>execute(e().onDragStart,a,t,m.onDragStart))})},update:(i,l)=>{let a=tryGetDestination(l),o=tryGetCombine(l);n||invariant(!1);let s=!isCriticalEqual(i,n.lastCritical);s&&(n.lastCritical=i);let d=!areLocationsEqual(n.lastLocation,a);d&&(n.lastLocation=a);let c=!isCombineEqual(n.lastCombine,o);if(c&&(n.lastCombine=o),!s&&!d&&!c)return;let u={...getDragStart(i,n.mode),combine:o,destination:a};r.add(()=>{withTimings("onDragUpdate",()=>execute(e().onDragUpdate,u,t,m.onDragUpdate))})},flush:()=>{n||invariant(!1),r.flush()},drop,abort:()=>{if(!n)return;let e={...getDragStart(n.lastCritical,n.mode),combine:null,destination:null,reason:"CANCEL"};drop(e)}}},responders=(e,t)=>{let r=getPublisher(e,t);return e=>t=>n=>{if("BEFORE_INITIAL_CAPTURE"===n.type){r.beforeCapture(n.payload.draggableId,n.payload.movementMode);return}if("INITIAL_PUBLISH"===n.type){let e=n.payload.critical;r.beforeStart(e,n.payload.movementMode),t(n),r.start(e,n.payload.movementMode);return}if("DROP_COMPLETE"===n.type){let e=n.payload.completed.result;r.flush(),t(n),r.drop(e);return}if(t(n),"FLUSH"===n.type){r.abort();return}let i=e.getState();"DRAGGING"===i.phase&&r.update(i.critical,i.impact)}},dropAnimationFinish=e=>t=>r=>{if("DROP_ANIMATION_FINISHED"!==r.type){t(r);return}let n=e.getState();"DROP_ANIMATING"!==n.phase&&invariant(!1),e.dispatch(completeDrop({completed:n.completed}))},dropAnimationFlushOnScroll=e=>{let t=null,r=null;function clear(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return n=>i=>{if(("FLUSH"===i.type||"DROP_COMPLETE"===i.type||"DROP_ANIMATION_FINISHED"===i.type)&&clear(),n(i),"DROP_ANIMATE"!==i.type)return;let l={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){let t=e.getState();"DROP_ANIMATING"===t.phase&&e.dispatch(dropAnimationFinished())}};r=requestAnimationFrame(()=>{r=null,t=bindEvents(window,[l])})}},dimensionMarshalStopper=e=>()=>t=>r=>{("DROP_COMPLETE"===r.type||"FLUSH"===r.type||"DROP_ANIMATE"===r.type)&&e.stopPublishing(),t(r)},focus=e=>{let t=!1;return()=>r=>n=>{if("INITIAL_PUBLISH"===n.type){t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),e.tryRestoreFocusRecorded();return}if(r(n),t){if("FLUSH"===n.type){t=!1,e.tryRestoreFocusRecorded();return}if("DROP_COMPLETE"===n.type){t=!1;let r=n.payload.completed.result;r.combine&&e.tryShiftRecord(r.draggableId,r.combine.draggableId),e.tryRestoreFocusRecorded()}}}};let shouldStop=e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type;var autoScroll=e=>t=>r=>n=>{if(shouldStop(n)){e.stop(),r(n);return}if("INITIAL_PUBLISH"===n.type){r(n);let i=t.getState();"DRAGGING"!==i.phase&&invariant(!1),e.start(i);return}r(n),e.scroll(t.getState())},pendingDrop$1=e=>t=>r=>{if(t(r),"PUBLISH_WHILE_DRAGGING"!==r.type)return;let n=e.getState();"DROP_PENDING"!==n.phase||n.isWaiting||e.dispatch(drop$1({reason:n.reason}))};let W=l.qC;var createStore=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:n,announce:i,autoScroller:a})=>(0,l.MT)(reducer,W((0,l.md)(style(r),dimensionMarshalStopper(e),lift(e),drop,dropAnimationFinish,dropAnimationFlushOnScroll,pendingDrop$1,autoScroll(a),scrollListener$1,focus(t),responders(n,i))));let clean$1=()=>({additions:{},removals:{},modified:{}});function createPublisher({registry:e,callbacks:t}){let r=clean$1(),n=null,collect=()=>{n||(t.collectionStarting(),n=requestAnimationFrame(()=>{n=null,start();let{additions:i,removals:l,modified:a}=r,o=Object.keys(i).map(t=>e.draggable.getById(t).getDimension(b)).sort((e,t)=>e.descriptor.index-t.descriptor.index),s=Object.keys(a).map(t=>{let r=e.droppable.getById(t),n=r.callbacks.getScrollWhileDragging();return{droppableId:t,scroll:n}}),d={additions:o,removals:Object.keys(l),modified:s};r=clean$1(),finish(),t.publish(d)}))};return{add:e=>{let t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],collect()},remove:e=>{let t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],collect()},stop:()=>{n&&(cancelAnimationFrame(n),n=null,r=clean$1())}}}var getMaxScroll=({scrollHeight:e,scrollWidth:t,height:r,width:n})=>{let i=subtract({x:t,y:e},{x:n,y:r}),l={x:Math.max(0,i.x),y:Math.max(0,i.y)};return l},getDocumentElement=()=>{let e=document.documentElement;return e||invariant(!1),e},getMaxWindowScroll=()=>{let e=getDocumentElement(),t=getMaxScroll({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t},getViewport=()=>{let e=getWindowScroll(),t=getMaxWindowScroll(),r=e.y,n=e.x,i=getDocumentElement(),l=i.clientWidth,a=i.clientHeight,o=n+l,d=r+a,c=(0,s.Dz)({top:r,left:n,right:o,bottom:d});return{frame:c,scroll:{initial:e,current:e,max:t,diff:{value:b,displacement:b}}}},getInitialPublish=({critical:e,scrollOptions:t,registry:r})=>{start();let n=getViewport(),i=n.scroll.current,l=e.droppable,a=r.droppable.getAllByType(l.type).map(e=>e.callbacks.getDimensionAndWatchScroll(i,t)),o=r.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(i)),s={draggables:v(o),droppables:h(a)};return finish(),{dimensions:s,critical:e,viewport:n}};function shouldPublishUpdate(e,t,r){if(r.descriptor.id===t.id||r.descriptor.type!==t.type)return!1;let n=e.droppable.getById(r.descriptor.droppableId);return"virtual"===n.descriptor.mode}var createDimensionMarshal=(e,t)=>{let r=null,n=createPublisher({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),subscriber=t=>{r||invariant(!1);let i=r.critical.draggable;"ADDITION"===t.type&&shouldPublishUpdate(e,i,t.value)&&n.add(t.value),"REMOVAL"===t.type&&shouldPublishUpdate(e,i,t.value)&&n.remove(t.value)};return{updateDroppableIsEnabled:(n,i)=>{e.droppable.exists(n)||invariant(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:i})},updateDroppableIsCombineEnabled:(n,i)=>{r&&(e.droppable.exists(n)||invariant(!1),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:(t,n)=>{r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:(n,i)=>{r&&(e.droppable.exists(n)||invariant(!1),t.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:t=>{r&&invariant(!1);let n=e.draggable.getById(t.draggableId),i=e.droppable.getById(n.descriptor.droppableId),l={draggable:n.descriptor,droppable:i.descriptor},a=e.subscribe(subscriber);return r={critical:l,unsubscribe:a},getInitialPublish({critical:l,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!r)return;n.stop();let t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),r.unsubscribe(),r=null}}},canStartDrag=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason,scrollWindow=e=>{window.scrollBy(e.x,e.y)};let V=(0,d.Z)(e=>D(e).filter(e=>!!e.isEnabled&&!!e.frame)),getScrollableDroppableOver=(e,t)=>{let r=V(t).find(t=>(t.frame||invariant(!1),isPositionInFrame(t.frame.pageMarginBox)(e)))||null;return r};var getBestScrollableDroppable=({center:e,destination:t,droppables:r})=>{if(t){let e=r[t];return e.frame?e:null}let n=getScrollableDroppableOver(e,r);return n};let k={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var getDistanceThresholds=(e,t,r=()=>k)=>{let n=r(),i=e[t.size]*n.startFromPercentage,l=e[t.size]*n.maxScrollAtPercentage;return{startScrollingFrom:i,maxScrollValueAt:l}},getPercentage=({startOfRange:e,endOfRange:t,current:r})=>{let n=t-e;return 0===n?0:(r-e)/n},getValueFromDistance=(e,t,r=()=>k)=>{let n=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return n.maxPixelScroll;if(e===t.startScrollingFrom)return 1;let i=getPercentage({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),l=n.maxPixelScroll*n.ease(1-i);return Math.ceil(l)},dampenValueByTime=(e,t,r)=>{let n=r(),i=n.durationDampening.accelerateAt,l=n.durationDampening.stopDampeningAt,a=Date.now(),o=a-t;if(o>=l)return e;if(o<i)return 1;let s=getPercentage({startOfRange:i,endOfRange:l,current:o}),d=e*n.ease(s);return Math.ceil(d)},getValue=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:i})=>{let l=getValueFromDistance(e,t,i);return 0===l?0:n?Math.max(dampenValueByTime(l,r,i),1):l},getScrollOnAxis=({container:e,distanceToEdges:t,dragStartTime:r,axis:n,shouldUseTimeDampening:i,getAutoScrollerOptions:l})=>{let a=getDistanceThresholds(e,n,l),o=t[n.end]<t[n.start];return o?getValue({distanceToEdge:t[n.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:l}):-1*getValue({distanceToEdge:t[n.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:l})},adjustForSizeLimits=({container:e,subject:t,proposedScroll:r})=>{let n=t.height>e.height,i=t.width>e.width;return i||n?i&&n?null:{x:i?0:r.x,y:n?0:r.y}:r};let H=apply(e=>0===e?0:e);var getScroll$1=({dragStartTime:e,container:t,subject:r,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:l})=>{let a={top:n.y-t.top,right:t.right-n.x,bottom:t.bottom-n.y,left:n.x-t.left},o=getScrollOnAxis({container:t,distanceToEdges:a,dragStartTime:e,axis:C,shouldUseTimeDampening:i,getAutoScrollerOptions:l}),s=getScrollOnAxis({container:t,distanceToEdges:a,dragStartTime:e,axis:w,shouldUseTimeDampening:i,getAutoScrollerOptions:l}),d=H({x:s,y:o});if(isEqual$1(d,b))return null;let c=adjustForSizeLimits({container:t,subject:r,proposedScroll:d});return c?isEqual$1(c,b)?null:c:null};let q=apply(e=>0===e?0:e>0?1:-1),U=(()=>{let getRemainder=(e,t)=>e<0?e:e>t?e-t:0;return({current:e,max:t,change:r})=>{let n=add(e,r),i={x:getRemainder(n.x,t.x),y:getRemainder(n.y,t.y)};return isEqual$1(i,b)?null:i}})(),canPartiallyScroll=({max:e,current:t,change:r})=>{let n={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},i=q(r),l=U({max:n,current:t,change:i});return!l||0!==i.x&&0===l.x||0!==i.y&&0===l.y},canScrollWindow=(e,t)=>canPartiallyScroll({current:e.scroll.current,max:e.scroll.max,change:t}),getWindowOverlap=(e,t)=>{if(!canScrollWindow(e,t))return null;let r=e.scroll.max,n=e.scroll.current;return U({current:n,max:r,change:t})},canScrollDroppable=(e,t)=>{let r=e.frame;return!!r&&canPartiallyScroll({current:r.scroll.current,max:r.scroll.max,change:t})},getDroppableOverlap=(e,t)=>{let r=e.frame;return r&&canScrollDroppable(e,t)?U({current:r.scroll.current,max:r.scroll.max,change:t}):null};var getWindowScrollChange=({viewport:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:l})=>{let a=getScroll$1({dragStartTime:n,container:e.frame,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:l});return a&&canScrollWindow(e,a)?a:null},getDroppableScrollChange=({droppable:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:l})=>{let a=e.frame;if(!a)return null;let o=getScroll$1({dragStartTime:n,container:a.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:l});return o&&canScrollDroppable(e,o)?o:null},scroll=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:n,scrollDroppable:i,getAutoScrollerOptions:l})=>{let a=e.current.page.borderBoxCenter,o=e.dimensions.draggables[e.critical.draggable.id],s=o.page.marginBox;if(e.isWindowScrollAllowed){let i=e.viewport,o=getWindowScrollChange({dragStartTime:t,viewport:i,subject:s,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:l});if(o){n(o);return}}let d=getBestScrollableDroppable({center:a,destination:whatIsDraggedOver(e.impact),droppables:e.dimensions.droppables});if(!d)return;let c=getDroppableScrollChange({dragStartTime:t,droppable:d,subject:s,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:l});c&&i(d.descriptor.id,c)},createFluidScroller=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>k})=>{let n=(0,c.Z)(e),i=(0,c.Z)(t),l=null,tryScroll=e=>{l||invariant(!1);let{shouldUseTimeDampening:t,dragStartTime:a}=l;scroll({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{start(),l&&invariant(!1);let t=Date.now(),n=!1,fakeScrollCallback=()=>{n=!0};scroll({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:fakeScrollCallback,scrollDroppable:fakeScrollCallback,getAutoScrollerOptions:r}),l={dragStartTime:t,shouldUseTimeDampening:n},finish(),n&&tryScroll(e)},stop:()=>{l&&(n.cancel(),i.cancel(),l=null)},scroll:tryScroll}},createJumpScroller=({move:e,scrollDroppable:t,scrollWindow:r})=>{let moveByOffset=(t,r)=>{let n=add(t.current.client.selection,r);e({client:n})},scrollDroppableAsMuchAsItCan=(e,r)=>{if(!canScrollDroppable(e,r))return r;let n=getDroppableOverlap(e,r);if(!n)return t(e.descriptor.id,r),null;let i=subtract(r,n);t(e.descriptor.id,i);let l=subtract(r,i);return l},scrollWindowAsMuchAsItCan=(e,t,n)=>{if(!e||!canScrollWindow(t,n))return n;let i=getWindowOverlap(t,n);if(!i)return r(n),null;let l=subtract(n,i);r(l);let a=subtract(n,l);return a};return e=>{let t=e.scrollJumpRequest;if(!t)return;let r=whatIsDraggedOver(e.impact);r||invariant(!1);let n=scrollDroppableAsMuchAsItCan(e.dimensions.droppables[r],t);if(!n)return;let i=e.viewport,l=scrollWindowAsMuchAsItCan(e.isWindowScrollAllowed,i,n);l&&moveByOffset(e,l)}},createAutoScroller=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:n})=>{let i=createFluidScroller({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:n}),l=createJumpScroller({move:r,scrollWindow:t,scrollDroppable:e}),a={scroll:e=>{let t=n();if(!t.disabled&&"DRAGGING"===e.phase){if("FLUID"===e.movementMode){i.scroll(e);return}e.scrollJumpRequest&&l(e)}},start:i.start,stop:i.stop};return a};let j="data-rfd",Y=(()=>{let e=`${j}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),z=(()=>{let e=`${j}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),K=(()=>{let e=`${j}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Z={contextId:`${j}-scroll-container-context-id`},makeGetSelector=e=>t=>`[${t}="${e}"]`,getStyles=(e,t)=>e.map(e=>{let r=e.styles[t];return r?`${e.selector} { ${r} }`:""}).join(" ");var getStyles$1=e=>{let t=makeGetSelector(e),r=(()=>{let e=`
      cursor: -webkit-grab;
      cursor: grab;
    `;return{selector:t(Y.contextId),styles:{always:`
          -webkit-touch-callout: none;
          -webkit-tap-highlight-color: rgba(0,0,0,0);
          touch-action: manipulation;
        `,resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),n=(()=>{let e=`
      transition: ${G.outOfTheWay};
    `;return{selector:t(z.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),i={selector:t(K.contextId),styles:{always:"overflow-anchor: none;"}},l={selector:"body",styles:{dragging:`
        cursor: grabbing;
        cursor: -webkit-grabbing;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        overflow-anchor: none;
      `}},a=[n,r,i,l];return{always:getStyles(a,"always"),resting:getStyles(a,"resting"),dragging:getStyles(a,"dragging"),dropAnimating:getStyles(a,"dropAnimating"),userCancel:getStyles(a,"userCancel")}};let J="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,getHead=()=>{let e=document.querySelector("head");return e||invariant(!1),e},createStyleEl=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function useStyleMarshal(e,t){let r=(0,o.Ye)(()=>getStyles$1(e),[e]),i=(0,n.useRef)(null),l=(0,n.useRef)(null),a=(0,o.I4)((0,d.Z)(e=>{let t=l.current;t||invariant(!1),t.textContent=e}),[]),s=(0,o.I4)(e=>{let t=i.current;t||invariant(!1),t.textContent=e},[]);J(()=>{(i.current||l.current)&&invariant(!1);let n=createStyleEl(t),o=createStyleEl(t);return i.current=n,l.current=o,n.setAttribute(`${j}-always`,e),o.setAttribute(`${j}-dynamic`,e),getHead().appendChild(n),getHead().appendChild(o),s(r.always),a(r.resting),()=>{let remove=e=>{let t=e.current;t||invariant(!1),getHead().removeChild(t),e.current=null};remove(i),remove(l)}},[t,s,a,r.always,r.resting,e]);let c=(0,o.I4)(()=>a(r.dragging),[a,r.dragging]),u=(0,o.I4)(e=>{if("DROP"===e){a(r.dropAnimating);return}a(r.userCancel)},[a,r.dropAnimating,r.userCancel]),p=(0,o.I4)(()=>{l.current&&a(r.resting)},[a,r.resting]),g=(0,o.Ye)(()=>({dragging:c,dropping:u,resting:p}),[c,u,p]);return g}function querySelectorAll(e,t){return Array.from(e.querySelectorAll(t))}var getWindowFromEl=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function isHtmlElement(e){return e instanceof getWindowFromEl(e).HTMLElement}function findDragHandle(e,t){let r=`[${Y.contextId}="${e}"]`,n=querySelectorAll(document,r);if(!n.length)return null;let i=n.find(e=>e.getAttribute(Y.draggableId)===t);return i&&isHtmlElement(i)?i:null}function useFocusMarshal(e){let t=(0,n.useRef)({}),r=(0,n.useRef)(null),i=(0,n.useRef)(null),l=(0,n.useRef)(!1),a=(0,o.I4)(function(e,r){let n={id:e,focus:r};return t.current[e]=n,function(){let r=t.current,i=r[e];i!==n&&delete r[e]}},[]),s=(0,o.I4)(function(t){let r=findDragHandle(e,t);r&&r!==document.activeElement&&r.focus()},[e]),d=(0,o.I4)(function(e,t){r.current===e&&(r.current=t)},[]),c=(0,o.I4)(function(){!i.current&&l.current&&(i.current=requestAnimationFrame(()=>{i.current=null;let e=r.current;e&&s(e)}))},[s]),u=(0,o.I4)(function(e){r.current=null;let t=document.activeElement;t&&t.getAttribute(Y.draggableId)===e&&(r.current=e)},[]);J(()=>(l.current=!0,function(){l.current=!1;let e=i.current;e&&cancelAnimationFrame(e)}),[]);let p=(0,o.Ye)(()=>({register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:d}),[a,u,c,d]);return p}function createRegistry(){let e={draggables:{},droppables:{}},t=[];function notify(e){t.length&&t.forEach(t=>t(e))}function findDraggableById(t){return e.draggables[t]||null}function findDroppableById(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,notify({type:"ADDITION",value:t})},update:(t,r)=>{let n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{let r=t.descriptor.id,n=findDraggableById(r);n&&t.uniqueId===n.uniqueId&&(delete e.draggables[r],e.droppables[t.descriptor.droppableId]&&notify({type:"REMOVAL",value:t}))},getById:function(e){let t=findDraggableById(e);return t||invariant(!1),t},findById:findDraggableById,exists:e=>!!findDraggableById(e),getAllByType:t=>Object.values(e.draggables).filter(e=>e.descriptor.type===t)},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{let r=findDroppableById(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){let t=findDroppableById(e);return t||invariant(!1),t},findById:findDroppableById,exists:e=>!!findDroppableById(e),getAllByType:t=>Object.values(e.droppables).filter(e=>e.descriptor.type===t)},subscribe:function(e){return t.push(e),function(){let r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}function useRegistry(){let e=(0,o.Ye)(createRegistry,[]);return(0,n.useEffect)(()=>function(){n.version.startsWith("16")||n.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var X=n.createContext(null),getBodyElement=()=>{let e=document.body;return e||invariant(!1),e},Q={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};let getId=e=>`rfd-announcement-${e}`;function useAnnouncer(e){let t=(0,o.Ye)(()=>getId(e),[e]),r=(0,n.useRef)(null);(0,n.useEffect)(function(){let e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,u.Z)(e.style,Q),getBodyElement().appendChild(e),function(){setTimeout(function(){let t=getBodyElement();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)})}},[t]);let i=(0,o.I4)(e=>{let t=r.current;if(t){t.textContent=e;return}},[]);return i}let ee={separator:"::"};var useUniqueId$1=function(e,t=ee){let r=n.useId();return(0,o.Ye)(()=>`${e}${t.separator}${r}`,[t.separator,e,r])};function getElementId({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}function useHiddenTextElement({contextId:e,text:t}){let r=useUniqueId$1("hidden-text",{separator:"-"}),i=(0,o.Ye)(()=>getElementId({contextId:e,uniqueId:r}),[r,e]);return(0,n.useEffect)(function(){let e=document.createElement("div");return e.id=i,e.textContent=t,e.style.display="none",getBodyElement().appendChild(e),function(){let t=getBodyElement();t.contains(e)&&t.removeChild(e)}},[i,t]),i}var et=n.createContext(null);let er=/(\d+)\.(\d+)\.(\d+)/,getVersion=e=>{let t=er.exec(e);null!=t||invariant(!1);let r=Number(t[1]),n=Number(t[2]),i=Number(t[3]);return{major:r,minor:n,patch:i,raw:e}},isSatisfied=(e,t)=>t.major>e.major||!(t.major<e.major)&&(t.minor>e.minor||!(t.minor<e.minor)&&t.patch>=e.patch);var checkReactVersion=(e,t)=>{let r=getVersion(e),n=getVersion(t);if(isSatisfied(r,n))return},checkDoctype=e=>{let t=e.doctype;t&&(t.name.toLowerCase(),t.publicId)};function useDevSetupWarning(e,t){}function useStartupValidation(){}function usePrevious(e){let t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),t}function create(){let e=null;function release(){e||invariant(!1),e=null}function tryAbandon(){e&&(e.abandon(),release())}return{isClaimed:function(){return!!e},isActive:function(t){return t===e},claim:function(t){e&&invariant(!1);let r={abandon:t};return e=r,r},release,tryAbandon}}function isDragging(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}let en={13:!0,9:!0};var preventStandardKeyEvents=e=>{en[e.keyCode]&&e.preventDefault()};let ei=(()=>{let e="visibilitychange";if("undefined"==typeof document)return e;let t=[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`],r=t.find(e=>`on${e}` in document);return r||e})();function isSloppyClickThresholdExceeded(e,t){return Math.abs(t.x-e.x)>=5||Math.abs(t.y-e.y)>=5}let el={type:"IDLE"};function getCaptureBindings({cancel:e,completed:t,getPhase:r,setPhase:n}){return[{eventName:"mousemove",fn:e=>{let{button:t,clientX:i,clientY:l}=e;if(0!==t)return;let a={x:i,y:l},o=r();if("DRAGGING"===o.type){e.preventDefault(),o.actions.move(a);return}"PENDING"!==o.type&&invariant(!1);let s=o.point;if(!isSloppyClickThresholdExceeded(s,a))return;e.preventDefault();let d=o.actions.fluidLift(a);n({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:n=>{let i=r();if("DRAGGING"!==i.type){e();return}n.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===r().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{let n=r();if("PENDING"===n.type){e();return}if(27===t.keyCode){t.preventDefault(),e();return}preventStandardKeyEvents(t)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===r().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{let n=r();if("IDLE"!==n.type||invariant(!1),n.actions.shouldRespectForcePress()){e();return}t.preventDefault()}},{eventName:ei,fn:e}]}function useMouseSensor(e){let t=(0,n.useRef)(el),r=(0,n.useRef)(noop$2),i=(0,o.Ye)(()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented||0!==t.button||t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;let n=e.findClosestDraggableId(t);if(!n)return;let i=e.tryGetLock(n,s,{sourceEvent:t});if(!i)return;t.preventDefault();let l={x:t.clientX,y:t.clientY};r.current(),u(i,l)}}),[e]),l=(0,o.Ye)(()=>({eventName:"webkitmouseforcewillbegin",fn:t=>{if(t.defaultPrevented)return;let r=e.findClosestDraggableId(t);if(!r)return;let n=e.findOptionsForDraggable(r);n&&!n.shouldRespectForcePress&&e.canGetLock(r)&&t.preventDefault()}}),[e]),a=(0,o.I4)(function(){r.current=bindEvents(window,[l,i],{passive:!1,capture:!0})},[l,i]),s=(0,o.I4)(()=>{let e=t.current;"IDLE"!==e.type&&(t.current=el,r.current(),a())},[a]),d=(0,o.I4)(()=>{let e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),c=(0,o.I4)(function(){let e=getCaptureBindings({cancel:d,completed:s,getPhase:()=>t.current,setPhase:e=>{t.current=e}});r.current=bindEvents(window,e,{capture:!0,passive:!1})},[d,s]),u=(0,o.I4)(function(e,r){"IDLE"!==t.current.type&&invariant(!1),t.current={type:"PENDING",point:r,actions:e},c()},[c]);J(function(){return a(),function(){r.current()}},[a])}function noop$1(){}let ea={34:!0,33:!0,36:!0,35:!0};function getDraggingBindings(e,t){function cancel(){t(),e.cancel()}function drop(){t(),e.drop()}return[{eventName:"keydown",fn:t=>{if(27===t.keyCode){t.preventDefault(),cancel();return}if(32===t.keyCode){t.preventDefault(),drop();return}if(40===t.keyCode){t.preventDefault(),e.moveDown();return}if(38===t.keyCode){t.preventDefault(),e.moveUp();return}if(39===t.keyCode){t.preventDefault(),e.moveRight();return}if(37===t.keyCode){t.preventDefault(),e.moveLeft();return}if(ea[t.keyCode]){t.preventDefault();return}preventStandardKeyEvents(t)}},{eventName:"mousedown",fn:cancel},{eventName:"mouseup",fn:cancel},{eventName:"click",fn:cancel},{eventName:"touchstart",fn:cancel},{eventName:"resize",fn:cancel},{eventName:"wheel",fn:cancel,options:{passive:!0}},{eventName:ei,fn:cancel}]}function useKeyboardSensor(e){let t=(0,n.useRef)(noop$1),r=(0,o.Ye)(()=>({eventName:"keydown",fn:function(r){if(r.defaultPrevented||32!==r.keyCode)return;let n=e.findClosestDraggableId(r);if(!n)return;let l=e.tryGetLock(n,stop,{sourceEvent:r});if(!l)return;r.preventDefault();let a=!0,o=l.snapLift();function stop(){a||invariant(!1),a=!1,t.current(),i()}t.current(),t.current=bindEvents(window,getDraggingBindings(o,stop),{capture:!0,passive:!1})}}),[e]),i=(0,o.I4)(function(){t.current=bindEvents(window,[r],{passive:!1,capture:!0})},[r]);J(function(){return i(),function(){t.current()}},[i])}let eo={type:"IDLE"};function getWindowBindings({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:r=>{if("DRAGGING"!==t().type){e();return}27===r.keyCode&&r.preventDefault(),e()}},{eventName:ei,fn:e}]}function getHandleBindings({cancel:e,completed:t,getPhase:r}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{let n=r();if("DRAGGING"!==n.type){e();return}n.hasMoved=!0;let{clientX:i,clientY:l}=t.touches[0];t.preventDefault(),n.actions.move({x:i,y:l})}},{eventName:"touchend",fn:n=>{let i=r();if("DRAGGING"!==i.type){e();return}n.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"touchcancel",fn:t=>{if("DRAGGING"!==r().type){e();return}t.preventDefault(),e()}},{eventName:"touchforcechange",fn:t=>{let n=r();"IDLE"!==n.type||invariant(!1);let i=t.touches[0];if(!i)return;let l=i.force>=.15;if(!l)return;let a=n.actions.shouldRespectForcePress();if("PENDING"===n.type){a&&e();return}if(a){if(n.hasMoved){t.preventDefault();return}e();return}t.preventDefault()}},{eventName:ei,fn:e}]}function useTouchSensor(e){let t=(0,n.useRef)(eo),r=(0,n.useRef)(noop$2),i=(0,o.I4)(function(){return t.current},[]),l=(0,o.I4)(function(e){t.current=e},[]),a=(0,o.Ye)(()=>({eventName:"touchstart",fn:function(t){if(t.defaultPrevented)return;let n=e.findClosestDraggableId(t);if(!n)return;let i=e.tryGetLock(n,d,{sourceEvent:t});if(!i)return;let l=t.touches[0],{clientX:a,clientY:o}=l;r.current(),g(i,{x:a,y:o})}}),[e]),s=(0,o.I4)(function(){r.current=bindEvents(window,[a],{capture:!0,passive:!1})},[a]),d=(0,o.I4)(()=>{let e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),l(eo),r.current(),s())},[s,l]),c=(0,o.I4)(()=>{let e=t.current;d(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[d]),u=(0,o.I4)(function(){let e={capture:!0,passive:!1},t={cancel:c,completed:d,getPhase:i},n=bindEvents(window,getHandleBindings(t),e),l=bindEvents(window,getWindowBindings(t),e);r.current=function(){n(),l()}},[c,i,d]),p=(0,o.I4)(function(){let e=i();"PENDING"!==e.type&&invariant(!1);let t=e.actions.fluidLift(e.point);l({type:"DRAGGING",actions:t,hasMoved:!1})},[i,l]),g=(0,o.I4)(function(e,t){"IDLE"!==i().type&&invariant(!1);let r=setTimeout(p,120);l({type:"PENDING",point:t,actions:e,longPressTimerId:r}),u()},[u,i,l,p]);J(function(){return s(),function(){r.current();let e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),l(eo))}},[i,s,l]),J(function(){let e=bindEvents(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}]);return e},[])}function useValidateSensorHooks(e){}let es=["input","button","textarea","select","option","optgroup","video","audio"];function isAnInteractiveElement(e,t){if(null==t)return!1;let r=es.includes(t.tagName.toLowerCase());if(r)return!0;let n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&isAnInteractiveElement(e,t.parentElement)}function isEventInInteractiveElement(e,t){let r=t.target;return!!isHtmlElement(r)&&isAnInteractiveElement(e,r)}var getBorderBoxCenterPosition=e=>(0,s.Dz)(e.getBoundingClientRect()).center;function isElement(e){return e instanceof getWindowFromEl(e).Element}let ed=(()=>{let e="matches";if("undefined"==typeof document)return e;let t=[e,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype);return t||e})();function closestPonyfill(e,t){return null==e?null:e[ed](t)?e:closestPonyfill(e.parentElement,t)}function closest(e,t){return e.closest?e.closest(t):closestPonyfill(e,t)}function getSelector(e){return`[${Y.contextId}="${e}"]`}function findClosestDragHandleFromEvent(e,t){let r=t.target;if(!isElement(r))return null;let n=getSelector(e),i=closest(r,n);return i&&isHtmlElement(i)?i:null}function tryGetClosestDraggableIdFromEvent(e,t){let r=findClosestDragHandleFromEvent(e,t);return r?r.getAttribute(Y.draggableId):null}function findDraggable(e,t){let r=`[${z.contextId}="${e}"]`,n=querySelectorAll(document,r),i=n.find(e=>e.getAttribute(z.id)===t);return i&&isHtmlElement(i)?i:null}function preventDefault(e){e.preventDefault()}function isActive({expected:e,phase:t,isLockActive:r,shouldWarn:n}){return!!r()&&e===t}function canStart({lockAPI:e,store:t,registry:r,draggableId:n}){if(e.isClaimed())return!1;let i=r.draggable.findById(n);return!!(i&&i.options.isEnabled&&canStartDrag(t.getState(),n))}function tryStart({lockAPI:e,contextId:t,store:r,registry:n,draggableId:i,forceSensorStop:l,sourceEvent:a}){let o=canStart({lockAPI:e,store:r,registry:n,draggableId:i});if(!o)return null;let s=n.draggable.getById(i),d=findDraggable(t,s.descriptor.id);if(!d||a&&!s.options.canDragInteractiveElements&&isEventInInteractiveElement(d,a))return null;let u=e.claim(l||noop$2),p="PRE_DRAG";function getShouldRespectForcePress(){return s.options.shouldRespectForcePress}function isLockActive(){return e.isActive(u)}function tryDispatch(e,t){isActive({expected:e,phase:p,isLockActive,shouldWarn:!0})&&r.dispatch(t())}let g=tryDispatch.bind(null,"DRAGGING");function lift(t){function completed(){e.release(),p="COMPLETED"}function finish(e,n={shouldBlockNextClick:!1}){if(t.cleanup(),n.shouldBlockNextClick){let e=bindEvents(window,[{eventName:"click",fn:preventDefault,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}completed(),r.dispatch(drop$1({reason:e}))}return"PRE_DRAG"!==p&&(completed(),invariant(!1)),r.dispatch(lift$1(t.liftActionArgs)),p="DRAGGING",{isActive:()=>isActive({expected:"DRAGGING",phase:p,isLockActive,shouldWarn:!1}),shouldRespectForcePress:getShouldRespectForcePress,drop:e=>finish("DROP",e),cancel:e=>finish("CANCEL",e),...t.actions}}return{isActive:()=>isActive({expected:"PRE_DRAG",phase:p,isLockActive,shouldWarn:!1}),shouldRespectForcePress:getShouldRespectForcePress,fluidLift:function(e){let t=(0,c.Z)(e=>{g(()=>move({client:e}))}),r=lift({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}});return{...r,move:t}},snapLift:function(){return lift({liftActionArgs:{id:i,clientSelection:getBorderBoxCenterPosition(d),movementMode:"SNAP"},cleanup:noop$2,actions:{moveUp:()=>g(moveUp),moveRight:()=>g(moveRight),moveDown:()=>g(moveDown),moveLeft:()=>g(moveLeft)}})},abort:function(){let t=isActive({expected:"PRE_DRAG",phase:p,isLockActive,shouldWarn:!0});t&&e.release()}}}let ec=[useMouseSensor,useKeyboardSensor,useTouchSensor];function useSensorMarshal({contextId:e,store:t,registry:r,customSensors:i,enableDefaultSensors:l}){let a=[...l?ec:[],...i||[]],s=(0,n.useState)(()=>create())[0],d=(0,o.I4)(function(e,t){isDragging(e)&&!isDragging(t)&&s.tryAbandon()},[s]);J(function(){let e=t.getState(),r=t.subscribe(()=>{let r=t.getState();d(e,r),e=r});return r},[s,t,d]),J(()=>s.tryAbandon,[s.tryAbandon]);let c=(0,o.I4)(e=>canStart({lockAPI:s,registry:r,store:t,draggableId:e}),[s,r,t]),u=(0,o.I4)((n,i,l)=>tryStart({lockAPI:s,registry:r,contextId:e,store:t,draggableId:n,forceSensorStop:i||null,sourceEvent:l&&l.sourceEvent?l.sourceEvent:null}),[e,s,r,t]),p=(0,o.I4)(t=>tryGetClosestDraggableIdFromEvent(e,t),[e]),g=(0,o.I4)(e=>{let t=r.draggable.findById(e);return t?t.options:null},[r.draggable]),f=(0,o.I4)(function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(flush()))},[s,t]),m=(0,o.I4)(()=>s.isClaimed(),[s]),b=(0,o.Ye)(()=>({canGetLock:c,tryGetLock:u,findClosestDraggableId:p,findOptionsForDraggable:g,tryReleaseLock:f,isLockClaimed:m}),[c,u,p,g,f,m]);for(let e=0;e<a.length;e++)a[e](b)}let createResponders=e=>({onBeforeCapture:t=>{let onBeforeCapureCallback=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};n.version.startsWith("16")||n.version.startsWith("17")?onBeforeCapureCallback():(0,i.flushSync)(onBeforeCapureCallback)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),createAutoScrollerOptions=e=>({...k,...e.autoScrollerOptions,durationDampening:{...k.durationDampening,...e.autoScrollerOptions}});function getStore(e){return e.current||invariant(!1),e.current}function App(e){let{contextId:t,setCallbacks:r,sensors:i,nonce:s,dragHandleUsageInstructions:d}=e,c=(0,n.useRef)(null);useStartupValidation();let u=usePrevious(e),p=(0,o.I4)(()=>createResponders(u.current),[u]),g=(0,o.I4)(()=>createAutoScrollerOptions(u.current),[u]),f=useAnnouncer(t),m=useHiddenTextElement({contextId:t,text:d}),b=useStyleMarshal(t,s),h=(0,o.I4)(e=>{getStore(c).dispatch(e)},[]),v=(0,o.Ye)(()=>(0,l.DE)({publishWhileDragging,updateDroppableScroll,updateDroppableIsEnabled,updateDroppableIsCombineEnabled,collectionStarting},h),[h]),D=useRegistry(),y=(0,o.Ye)(()=>createDimensionMarshal(D,v),[D,v]),I=(0,o.Ye)(()=>createAutoScroller({scrollWindow,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:g,...(0,l.DE)({move},h)}),[y.scrollDroppable,h,g]),x=useFocusMarshal(t),S=(0,o.Ye)(()=>createStore({announce:f,autoScroller:I,dimensionMarshal:y,focusMarshal:x,getResponders:p,styleMarshal:b}),[f,I,y,x,p,b]);c.current=S;let E=(0,o.I4)(()=>{let e=getStore(c),t=e.getState();"IDLE"!==t.phase&&e.dispatch(flush())},[]),A=(0,o.I4)(()=>{let e=getStore(c).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]),C=(0,o.Ye)(()=>({isDragging:A,tryAbort:E}),[A,E]);r(C);let w=(0,o.I4)(e=>canStartDrag(getStore(c).getState(),e),[]),P=(0,o.I4)(()=>isMovementAllowed(getStore(c).getState()),[]),B=(0,o.Ye)(()=>({marshal:y,focus:x,contextId:t,canLift:w,isMovementAllowed:P,dragHandleUsageInstructionsId:m,registry:D}),[t,y,m,x,w,P,D]);return useSensorMarshal({contextId:t,store:S,registry:D,customSensors:i||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)(()=>E,[E]),n.createElement(et.Provider,{value:B},n.createElement(a.zt,{context:X,store:S},e.children))}function DragDropContext(e){let t=n.useId(),r=e.dragHandleUsageInstructions||m.dragHandleUsageInstructions;return n.createElement(ErrorBoundary,null,i=>n.createElement(App,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}let eu={dragging:5e3,dropAnimating:4500},getDraggingTransition=(e,t)=>t?G.drop(t.duration):e?G.snap:G.fluid,getDraggingOpacity=(e,t)=>{if(e)return t?N.opacity.drop:N.opacity.combining},getShouldDraggingAnimate=e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode;function getDraggingStyle(e){let t=e.dimension,r=t.client,{offset:n,combineWith:i,dropping:l}=e,a=!!i,o=getShouldDraggingAnimate(e),s=!!l,d=s?M.drop(n,a):M.moveTo(n),c={position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:getDraggingTransition(o,l),transform:d,opacity:getDraggingOpacity(a,s),zIndex:s?eu.dropAnimating:eu.dragging,pointerEvents:"none"};return c}function getSecondaryStyle(e){return{transform:M.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function getStyle$1(e){return"DRAGGING"===e.type?getDraggingStyle(e):getSecondaryStyle(e)}function getDimension$1(e,t,r=b){let n=window.getComputedStyle(t),i=t.getBoundingClientRect(),l=(0,s.Oq)(i,n),a=(0,s.oc)(l,r),o={client:l,tagName:t.tagName.toLowerCase(),display:n.display},d={x:l.marginBox.width,y:l.marginBox.height};return{descriptor:e,placeholder:o,displaceBy:d,client:l,page:a}}function useDraggablePublisher(e){let t=useUniqueId$1("draggable"),{descriptor:r,registry:i,getDraggableRef:l,canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:d}=e,c=(0,o.Ye)(()=>({canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:d}),[a,d,s]),u=(0,o.I4)(e=>{let t=l();return t||invariant(!1),getDimension$1(r,t,e)},[r,l]),p=(0,o.Ye)(()=>({uniqueId:t,descriptor:r,options:c,getDimension:u}),[r,u,c,t]),g=(0,n.useRef)(p),f=(0,n.useRef)(!0);J(()=>(i.draggable.register(g.current),()=>i.draggable.unregister(g.current)),[i.draggable]),J(()=>{if(f.current){f.current=!1;return}let e=g.current;g.current=p,i.draggable.update(p,e)},[p,i.draggable])}var ep=n.createContext(null);function checkIsValidInnerRef(e){e&&isHtmlElement(e)||invariant(!1)}function useValidation$1(e,t,r){}function useClonePropValidation(e){}function useRequiredContext(e){let t=(0,n.useContext)(e);return t||invariant(!1),t}function preventHtml5Dnd(e){e.preventDefault()}var isStrictEqual=(e,t)=>e===t,whatIsDraggedOverFromResult=e=>{let{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};let getCombineWithFromResult=e=>e.combine?e.combine.draggableId:null,getCombineWithFromImpact=e=>e.at&&"COMBINE"===e.at.type?e.at.combine.draggableId:null;function getDraggableSelector(){let e=(0,d.Z)((e,t)=>({x:e,y:t})),t=(0,d.Z)((e,t,r=null,n=null,i=null)=>({isDragging:!0,isClone:t,isDropAnimating:!!i,dropAnimation:i,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null})),r=(0,d.Z)((e,r,n,i,l=null,a=null,o=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:o,snapshot:t(r,i,l,a,null)}}));return(n,i)=>{if(isDragging(n)){if(n.critical.draggable.id!==i.draggableId)return null;let t=n.current.client.offset,l=n.dimensions.draggables[i.draggableId],a=whatIsDraggedOver(n.impact),o=getCombineWithFromImpact(n.impact),s=n.forceShouldAnimate;return r(e(t.x,t.y),n.movementMode,l,i.isClone,a,o,s)}if("DROP_ANIMATING"===n.phase){let e=n.completed;if(e.result.draggableId!==i.draggableId)return null;let r=i.isClone,l=n.dimensions.draggables[i.draggableId],a=e.result,o=a.mode,s=whatIsDraggedOverFromResult(a),d=getCombineWithFromResult(a),c=n.dropDuration,u={duration:c,curve:O.drop,moveTo:n.newHomeClientOffset,opacity:d?N.opacity.drop:null,scale:d?N.scale.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:l,dropping:u,draggingOver:s,combineWith:d,mode:o,forceShouldAnimate:null,snapshot:t(o,r,s,d,u)}}}return null}}function getSecondarySnapshot(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}let eg={mapped:{type:"SECONDARY",offset:b,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:getSecondarySnapshot(null)}};function getSecondarySelector(){let e=(0,d.Z)((e,t)=>({x:e,y:t})),t=(0,d.Z)(getSecondarySnapshot),r=(0,d.Z)((e,r=null,n)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}})),getFallback=e=>e?r(b,e,!0):null,getProps=(t,n,i,l)=>{let a=i.displaced.visible[t],o=!!(l.inVirtualList&&l.effected[t]),s=tryGetCombine(i),d=s&&s.draggableId===t?n:null;if(!a){if(!o)return getFallback(d);if(i.displaced.invisible[t])return null;let n=negate(l.displacedBy.point),a=e(n.x,n.y);return r(a,d,!0)}if(o)return getFallback(d);let c=i.displacedBy.point,u=e(c.x,c.y);return r(u,d,a.shouldAnimate)};return(e,t)=>{if(isDragging(e))return e.critical.draggable.id===t.draggableId?null:getProps(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){let r=e.completed;return r.result.draggableId===t.draggableId?null:getProps(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}let ef=(0,a.$j)(()=>{let e=getDraggableSelector(),t=getSecondarySelector();return(r,n)=>e(r,n)||t(r,n)||eg},{dropAnimationFinished:dropAnimationFinished},null,{context:X,areStatePropsEqual:isStrictEqual})(e=>{let t=(0,n.useRef)(null),r=(0,o.I4)((e=null)=>{t.current=e},[]),l=(0,o.I4)(()=>t.current,[]),{contextId:a,dragHandleUsageInstructionsId:s,registry:d}=useRequiredContext(et),{type:c,droppableId:u}=useRequiredContext(ep),p=(0,o.Ye)(()=>({id:e.draggableId,index:e.index,type:c,droppableId:u}),[e.draggableId,e.index,c,u]),{children:g,draggableId:f,isEnabled:m,shouldRespectForcePress:b,canDragInteractiveElements:h,isClone:v,mapped:D,dropAnimationFinished:y}=e;if(useValidation$1(e,a,l),!v){let e=(0,o.Ye)(()=>({descriptor:p,registry:d,getDraggableRef:l,canDragInteractiveElements:h,shouldRespectForcePress:b,isEnabled:m}),[p,d,l,h,b,m]);useDraggablePublisher(e)}let I=(0,o.Ye)(()=>m?{tabIndex:0,role:"button","aria-describedby":s,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":a,draggable:!1,onDragStart:preventHtml5Dnd}:null,[a,s,f,m]),x=(0,o.I4)(e=>{"DRAGGING"===D.type&&D.dropping&&"transform"===e.propertyName&&(n.version.startsWith("16")||n.version.startsWith("17")?y():(0,i.flushSync)(y))},[y,D]),S=(0,o.Ye)(()=>{let e=getStyle$1(D),t="DRAGGING"===D.type&&D.dropping?x:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":a,"data-rfd-draggable-id":f,style:e,onTransitionEnd:t},dragHandleProps:I}},[a,I,f,D,x,r]),E=(0,o.Ye)(()=>({draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}),[p.droppableId,p.id,p.index,p.type]);return n.createElement(n.Fragment,null,g(S,D.snapshot,E))});function PrivateDraggable(e){let t=useRequiredContext(ep),r=t.isUsingCloneFor;return r!==e.draggableId||e.isClone?n.createElement(ef,e):null}function PublicDraggable(e){let t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=!!e.disableInteractiveElementBlocking,i=!!e.shouldRespectForcePress;return n.createElement(PrivateDraggable,(0,u.Z)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}let isEqual=e=>t=>e===t,em=isEqual("scroll"),eb=isEqual("auto");isEqual("visible");let isEither=(e,t)=>t(e.overflowX)||t(e.overflowY),isElementScrollable=e=>{let t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return isEither(r,em)||isEither(r,eb)},isBodyScrollable=()=>!1,getClosestScrollable=e=>null==e?null:e===document.body?isBodyScrollable()?e:null:e===document.documentElement?null:isElementScrollable(e)?e:getClosestScrollable(e.parentElement);var getScroll=e=>({x:e.scrollLeft,y:e.scrollTop});let getIsFixed=e=>{if(!e)return!1;let t=window.getComputedStyle(e);return"fixed"===t.position||getIsFixed(e.parentElement)};var getEnv=e=>{let t=getClosestScrollable(e),r=getIsFixed(e);return{closestScrollable:t,isFixedOnPage:r}},getDroppableDimension=({descriptor:e,isEnabled:t,isCombineEnabled:r,isFixedOnPage:n,direction:i,client:l,page:a,closest:o})=>{let s=(()=>{if(!o)return null;let{scrollSize:e,client:t}=o,r=getMaxScroll({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:o.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:o.shouldClipSubject,scroll:{initial:o.scroll,current:o.scroll,max:r,diff:{value:b,displacement:b}}}})(),d="vertical"===i?C:w,c=getSubject({page:a,withPlaceholder:null,axis:d,frame:s});return{descriptor:e,isCombineEnabled:r,isFixedOnPage:n,axis:d,isEnabled:t,client:l,page:a,frame:s,subject:c}};let getClient=(e,t)=>{let r=(0,s.iz)(e);if(!t||e!==t)return r;let n=r.paddingBox.top-t.scrollTop,i=r.paddingBox.left-t.scrollLeft,l=n+t.scrollHeight,a=i+t.scrollWidth,o=(0,s.jn)({top:n,right:a,bottom:l,left:i},r.border),d=(0,s.dO)({borderBox:o,margin:r.margin,border:r.border,padding:r.padding});return d};var getDimension=({ref:e,descriptor:t,env:r,windowScroll:n,direction:i,isDropDisabled:l,isCombineEnabled:a,shouldClipSubject:o})=>{let d=r.closestScrollable,c=getClient(e,d),u=(0,s.oc)(c,n),p=(()=>{if(!d)return null;let e=(0,s.iz)(d),t={scrollHeight:d.scrollHeight,scrollWidth:d.scrollWidth};return{client:e,page:(0,s.oc)(e,n),scroll:getScroll(d),scrollSize:t,shouldClipSubject:o}})(),g=getDroppableDimension({descriptor:t,isEnabled:!l,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:u,closest:p});return g};let eh={passive:!1},ev={passive:!0};var getListenerOptions=e=>e.shouldPublishImmediately?eh:ev;let getClosestScrollableFromDrag=e=>e&&e.env.closestScrollable||null;function useDroppablePublisher(e){let t=(0,n.useRef)(null),r=useRequiredContext(et),i=useUniqueId$1("droppable"),{registry:l,marshal:a}=r,s=usePrevious(e),u=(0,o.Ye)(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),p=(0,n.useRef)(u),g=(0,o.Ye)(()=>(0,d.Z)((e,r)=>{t.current||invariant(!1),a.updateDroppableScroll(u.id,{x:e,y:r})}),[u.id,a]),f=(0,o.I4)(()=>{let e=t.current;return e&&e.env.closestScrollable?getScroll(e.env.closestScrollable):b},[]),m=(0,o.I4)(()=>{let e=f();g(e.x,e.y)},[f,g]),h=(0,o.Ye)(()=>(0,c.Z)(m),[m]),v=(0,o.I4)(()=>{let e=t.current,r=getClosestScrollableFromDrag(e);e&&r||invariant(!1);let n=e.scrollOptions;if(n.shouldPublishImmediately){m();return}h()},[h,m]),D=(0,o.I4)((e,n)=>{t.current&&invariant(!1);let i=s.current,l=i.getDroppableRef();l||invariant(!1);let a=getEnv(l),o={ref:l,descriptor:u,env:a,scrollOptions:n};t.current=o;let d=getDimension({ref:l,descriptor:u,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),c=a.closestScrollable;return c&&(c.setAttribute(Z.contextId,r.contextId),c.addEventListener("scroll",v,getListenerOptions(o.scrollOptions))),d},[r.contextId,u,v,s]),y=(0,o.I4)(()=>{let e=t.current,r=getClosestScrollableFromDrag(e);return e&&r||invariant(!1),getScroll(r)},[]),I=(0,o.I4)(()=>{let e=t.current;e||invariant(!1);let r=getClosestScrollableFromDrag(e);t.current=null,r&&(h.cancel(),r.removeAttribute(Z.contextId),r.removeEventListener("scroll",v,getListenerOptions(e.scrollOptions)))},[v,h]),x=(0,o.I4)(e=>{let r=t.current;r||invariant(!1);let n=getClosestScrollableFromDrag(r);n||invariant(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x},[]),S=(0,o.Ye)(()=>({getDimensionAndWatchScroll:D,getScrollWhileDragging:y,dragStopped:I,scroll:x}),[I,D,y,x]),E=(0,o.Ye)(()=>({uniqueId:i,descriptor:u,callbacks:S}),[S,u,i]);J(()=>(p.current=E.descriptor,l.droppable.register(E),()=>{t.current&&I(),l.droppable.unregister(E)}),[S,u,I,E,a,l.droppable]),J(()=>{t.current&&a.updateDroppableIsEnabled(p.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),J(()=>{t.current&&a.updateDroppableIsCombineEnabled(p.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function noop(){}let eD={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},getSize=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||"close"===r?eD:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin},getStyle=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{let n=getSize({isAnimatingOpenOnMount:e,placeholder:t,animate:r});return{display:t.display,boxSizing:"border-box",width:n.width,height:n.height,marginTop:n.margin.top,marginRight:n.margin.right,marginBottom:n.margin.bottom,marginLeft:n.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?G.placeholder:null}};var ey=n.memo(e=>{let t=(0,n.useRef)(null),r=(0,o.I4)(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:i,onTransitionEnd:l,onClose:a,contextId:s}=e,[d,c]=(0,n.useState)("open"===e.animate);(0,n.useEffect)(()=>d?"open"!==i?(r(),c(!1),noop):t.current?noop:(t.current=setTimeout(()=>{t.current=null,c(!1)}),r):noop,[i,d,r]);let u=(0,o.I4)(e=>{"height"===e.propertyName&&(l(),"close"===i&&a())},[i,a,l]),p=getStyle({isAnimatingOpenOnMount:d,animate:e.animate,placeholder:e.placeholder});return n.createElement(e.placeholder.tagName,{style:p,"data-rfd-placeholder-context-id":s,onTransitionEnd:u,ref:e.innerRef})});function isBoolean(e){return"boolean"==typeof e}function runChecks(e,t){t.forEach(t=>t(e))}let eI=[function({props:e}){e.droppableId||invariant(!1),"string"!=typeof e.droppableId&&invariant(!1)},function({props:e}){isBoolean(e.isDropDisabled)||invariant(!1),isBoolean(e.isCombineEnabled)||invariant(!1),isBoolean(e.ignoreContainerClipping)||invariant(!1)},function({getDroppableRef:e}){checkIsValidInnerRef(e())}],ex=[function({props:e,getPlaceholderRef:t}){if(!e.placeholder)return;let r=t();if(r)return}],eS=[function({props:e}){e.renderClone||invariant(!1)},function({getPlaceholderRef:e}){e()&&invariant(!1)}];function useValidation(e){}let AnimateInOut=class AnimateInOut extends n.PureComponent{constructor(...e){super(...e),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!e.on,data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;let e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}};function getBody(){return document.body||invariant(!1),document.body}let eE={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:getBody},attachDefaultPropsToOwnProps=e=>{let t,r={...e};for(t in eE)void 0===e[t]&&(r={...r,[t]:eE[t]});return r},isMatchingType=(e,t)=>e===t.droppable.type,getDraggable=(e,t)=>t.draggables[e.draggable.id],eA=(0,a.$j)(()=>{let e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=(0,d.Z)(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),n=(0,d.Z)((n,i,l,a,o,s)=>{let d=o.descriptor.id,c=o.descriptor.droppableId===n;if(c){let e=s?{render:s,dragging:r(o.descriptor)}:null;return{placeholder:o.placeholder,shouldAnimatePlaceholder:!1,snapshot:{isDraggingOver:l,draggingOverWith:l?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0},useClone:e}}return i?a?{placeholder:o.placeholder,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:l,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0},useClone:null}:e:t});return(r,i)=>{let l=attachDefaultPropsToOwnProps(i),a=l.droppableId,o=l.type,s=!l.isDropDisabled,d=l.renderClone;if(isDragging(r)){let e=r.critical;if(!isMatchingType(o,e))return t;let i=getDraggable(e,r.dimensions),l=whatIsDraggedOver(r.impact)===a;return n(a,s,l,l,i,d)}if("DROP_ANIMATING"===r.phase){let e=r.completed;if(!isMatchingType(o,e.critical))return t;let i=getDraggable(e.critical,r.dimensions);return n(a,s,whatIsDraggedOverFromResult(e.result)===a,whatIsDraggedOver(e.impact)===a,i,d)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){let n=r.completed;if(!isMatchingType(o,n.critical))return t;let i=whatIsDraggedOver(n.impact)===a,l=!!(n.impact.at&&"COMBINE"===n.impact.at.type),s=n.critical.droppable.id===a;if(i)return l?e:t;if(s)return e}return t}},{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},(e,t,r)=>({...attachDefaultPropsToOwnProps(r),...e,...t}),{context:X,areStatePropsEqual:isStrictEqual})(e=>{let t=(0,n.useContext)(et);t||invariant(!1);let{contextId:r,isMovementAllowed:l}=t,a=(0,n.useRef)(null),s=(0,n.useRef)(null),{children:d,droppableId:c,type:u,mode:p,direction:g,ignoreContainerClipping:f,isDropDisabled:m,isCombineEnabled:b,snapshot:h,useClone:v,updateViewportMaxScroll:D,getContainerForClone:y}=e,I=(0,o.I4)(()=>a.current,[]),x=(0,o.I4)((e=null)=>{a.current=e},[]),S=(0,o.I4)(()=>s.current,[]),E=(0,o.I4)((e=null)=>{s.current=e},[]);useValidation({props:e,getDroppableRef:I,getPlaceholderRef:S});let A=(0,o.I4)(()=>{l()&&D({maxScroll:getMaxWindowScroll()})},[l,D]);useDroppablePublisher({droppableId:c,type:u,mode:p,direction:g,isDropDisabled:m,isCombineEnabled:b,ignoreContainerClipping:f,getDroppableRef:I});let C=(0,o.Ye)(()=>n.createElement(AnimateInOut,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:t,animate:i})=>n.createElement(ey,{placeholder:t,onClose:e,innerRef:E,animate:i,contextId:r,onTransitionEnd:A})),[r,A,e.placeholder,e.shouldAnimatePlaceholder,E]),w=(0,o.Ye)(()=>({innerRef:x,placeholder:C,droppableProps:{"data-rfd-droppable-id":c,"data-rfd-droppable-context-id":r}}),[r,c,C,x]),P=v?v.dragging.draggableId:null,B=(0,o.Ye)(()=>({droppableId:c,type:u,isUsingCloneFor:P}),[c,P,u]);function getClone(){if(!v)return null;let{dragging:e,render:t}=v,r=n.createElement(PrivateDraggable,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(r,n)=>t(r,n,e));return i.createPortal(r,y())}return n.createElement(ep.Provider,{value:B},d(w,h),getClone())});var eC=eA}}]);