1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d0290b99-b842-4239-8fad-e4d2f341d386",e._sentryDebugIdIdentifier="sentry-dbid-d0290b99-b842-4239-8fad-e4d2f341d386")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4185],{94756:function(e,t,r){r.r(t),r.d(t,{DragDropContext:function(){return DragDropContext},Draggable:function(){return PublicDraggable},Droppable:function(){return eC},resetServerContext:function(){return resetServerContext},useKeyboardSensor:function(){return useKeyboardSensor},useMouseSensor:function(){return useMouseSensor},useTouchSensor:function(){return useTouchSensor}});var n=r(2784),i=r(28316),l=r(38726),a=r(1448),o=r(31118),s=r(66892),d=r(36631),c=r(26947),u=r(7896);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 bindEvents(e,t,r){let n=t.map(t=>{var n;let i=(n=t.options,{...r,...n});return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}});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(){super(...arguments),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=` 2 Press space bar to start a drag. 3 When dragging you can use the arrow keys to move the item around and escape to cancel. 4 Some screen readers may require you to be in focus mode or to use your pass through key 5`,position=e=>e+1,withLocation=(e,t)=>{let r=e.droppableId===t.droppableId,n=position(e.index),i=position(t.index);return r?` 6 You have moved the item from position ${n} 7 to position ${i} 8 `:` 9 You have moved the item from position ${n} 10 in list ${e.droppableId} 11 to list ${t.droppableId} 12 in position ${i} 13 `},withCombine=(e,t,r)=>{let n=t.droppableId===r.droppableId;return n?` 14 The item ${e} 15 has been combined with ${r.draggableId}`:` 16 The item ${e} 17 in list ${t.droppableId} 18 has been combined with ${r.draggableId} 19 in list ${r.droppableId} 20 `},returnedToStart=e=>` 21 The item has returned to its starting position 22 of ${position(e.index)} 23`;var m={dragHandleUsageInstructions:f,onDragStart:e=>` 24 You have lifted an item in position ${position(e.source.index)} 25`,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` 26 Movement cancelled. 27 ${returnedToStart(e.source)} 28 `;let t=e.destination,r=e.combine;return t?` 29 You have dropped the item. 30 ${withLocation(e.source,t)} 31 `:r?` 32 You have dropped the item. 33 ${withCombine(e.draggableId,e.source,r)} 34 `:` 35 The item has been dropped while not over a drop area. 36 ${returnedToStart(e.source)} 37 `}};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=function(e,t,r){return(void 0===r&&(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=e=>{let{page:t,withPlaceholder:r,axis:n,frame:i}=e,l=scroll$1(t.marginBox,i),a=increase(l,n,r),o=clip(a,i);return{page:t,withPlaceholder:r,active:o}},scrollDroppable=(e,t)=>
37{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)),I=(0,d.Z)(e=>Object.values(e));var y=(0,d.Z)((e,t)=>{let r=I(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=e=>{let{isMovingForward:t,draggable:r,destination:n,insideDestination:i,previousImpact:l}=e;if(!n.isCombineEnabled)return null;let a=tryGetDestination(l);if(!a)return null;function getImpact(e){let t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return{...l,at:t}}let o=l.displaced.all,s=o.length?o[0]:null;if(t)return s?getImpact(s):null;let d=x(r,i);if(!s){if(!d.length)return null;let e=d[d.length-1];return getImpact(e.descriptor.id)}let c=d.findIndex(e=>e.descriptor.id===s);-1!==c||invariant(!1);let u=c-1;if(u<0)return null;let p=d[u];return getImpact(p.descriptor.id)},isHomeOf=(e,t)=>e.descriptor.droppableId===t.descriptor.id;let E={point:b,value:0},S={invisible:{},visible:{},all:[]};var A={displaced:S,displacedBy:E,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=e=>{let{target:t,destination:r,viewport:n,withDroppableDisplacement:i,isVisibleThroughFrameFn:l}=e,a=i?getDroppableDisplaced(t,r):t;return isVisibleInDroppable(a,r,l)&&isVisibleInViewport(a,n,l)},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 getDisplacementGroups(e){let{afterDragging:t,destination:r,displacedBy:n,viewport:i,forceShouldAnimate:l,last:a}=e;return t.reduce(function(e,t){let o=function(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))}(t,n),d=t.descriptor.id;e.all.push(d);let c=isPartiallyVisible({target:o,destination:r,viewport:i,withDroppableDisplacement:!0});if(!c)return e.invisible[t.descriptor.id]=!0,e;let u=getShouldAnimate(d,a,l);return e.visible[d]={draggableId:d,shouldAnimate:u},e},{all:[],visible:{}
37,invisible:{}})}function goAtEnd(e){let{insideDestination:t,inHomeList:r,displacedBy:n,destination:i}=e,l=function(e,t){if(!e.length)return 0;let r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:S,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:l}}}}function calculateReorderImpact(e){let{draggable:t,insideDestination:r,destination:n,viewport:i,displacedBy:l,last:a,index:o,forceShouldAnimate:s}=e,d=isHomeOf(t,n);if(null==o)return goAtEnd({insideDestination:r,inHomeList:d,displacedBy:l,destination:n});let c=r.find(e=>e.descriptor.index===o);if(!c)return goAtEnd({insideDestination:r,inHomeList:d,displacedBy:l,destination:n});let u=x(t,r),p=r.indexOf(c),g=u.slice(p),f=getDisplacementGroups({afterDragging:g,destination:n,displacedBy:l,last:a,viewport:i.frame,forceShouldAnimate:s});return{displaced:f,displacedBy:l,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:o}}}}function didStartAfterCritical(e,t){return!!t.effected[e]}var fromCombine=e=>{let{isMovingForward:t,destination:r,draggables:n,combine:i,afterCritical:l}=e;if(!r.isCombineEnabled)return null;let a=i.draggableId,o=n[a],s=o.descriptor.index,d=didStartAfterCritical(a,l);return d?t?s:s-1:t?s+1:s},fromReorder=e=>{let{isMovingForward:t,isInHomeList:r,insideDestination:n,location:i}=e;if(!n.length)return null;let l=i.index,a=t?l+1:l-1,o=n[0].descriptor.index,s=n[n.length-1].descriptor.index;return a<o||a>(r?s:s+1)?null:a},moveToNextIndex=e=>{let{isMovingForward:t,isInHomeList:r,draggable:n,draggables:i,destination:l,insideDestination:a,previousImpact:o,viewport:s,afterCritical:d}=e,c=o.at;if(c||invariant(!1),"REORDER"===c.type){let e=fromReorder({isMovingForward:t,isInHomeList:r,location:c.destination,insideDestination:a});return null==e?null:calculateReorderImpact({draggable:n,insideDestination:a,destination:l,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:e})}let u=fromCombine({isMovingForward:t,destination:l,displaced:o.displaced,draggables:i,combine:c.combine,afterCritical:d});return null==u?null:calculateReorderImpact({draggable:n,insideDestination:a,destination:l,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:u})},getCombinedItemDisplacement=e=>{let{displaced:t,afterCritical:r,combineWith:n,displacedBy:i}=e,l=!!(t.visible[n]||t.invisible[n]);return didStartAfterCritical(n,r)?l?b:negate(i.point):l?i.point:b},whenCombining=e=>{let{afterCritical:t,impact:r,draggables:n}=e,i=tryGetCombine(r);i||invariant(!1);let l=i.draggableId,a=n[l].page.borderBox.center,o=getCombinedItemDisplacement({displaced:r.displaced,afterCritical:t,combineWith:l,displacedBy:r.displacedBy});return add(a,o)};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=e=>{let{axis:t,moveRelativeTo:r,isMoving:n}=e;return patch(t.line,r.marginBox[t.end]+distanceFromStartToBorderBoxCenter(t,n),getCrossAxisBorderBoxCenter(t,r.marginBox,n))},goBefore=e=>{let{axis:t,moveRelativeTo:r,isMoving:n}=e;return patch(t.line,r.marginBox[t.start]-distanceFromEndToBorderBoxCenter(t,n),getCrossAxisBorderBoxCenter(t,r.marginBox,n))},goIntoStart=e=>{let{axis:t,moveInto:r,isMoving:n}=e;return patch(t.line,r.contentBox[t.start]+distanceFromStartToBorderBoxCenter(t,n),getCrossAxisBorderBoxCenter(t,r.contentBox,n))};var whenReordering=e=>{let{impact:t,draggable:r,draggables:n,droppable:i,afterCritical:l}=e,a=y(i.descriptor.id,n),o=r.page,d=i.axis;if(!a.length)return goIntoStart({axis:d,moveInto:i.page,isMoving:o});let{displaced:c,displacedBy:u}=t,p=c.all[0];if(p){let e=n[p];if(didStartAfterCritical(p,l))return goBefore({axis:d,moveRelativeTo:e.page,isMoving:o});let t=(0,s.cv)(e.page,u.point);return goBefore({axis:d,moveRelativeTo:t,isMoving:o})}let g=a[a.length-1];if(g.descriptor.id===r.descriptor.id)return o.borderBox.center;if(didStartAfterCritical(g.descriptor.id,l)){let e=(0,s.cv)(g.page,negate(l.dis
37placedBy.point));return goAfter({axis:d,moveRelativeTo:e,isMoving:o})}return goAfter({axis:d,moveRelativeTo:g.page,isMoving:o})},withDroppableDisplacement=(e,t)=>{let r=e.frame;return r?add(t,r.scroll.diff.displacement):t};let getResultWithoutDroppableDisplacement=e=>{let{impact:t,draggable:r,droppable:n,draggables:i,afterCritical:l}=e,a=r.page.borderBox.center,o=t.at;return n&&o?"REORDER"===o.type?whenReordering({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:l}):whenCombining({impact:t,draggables:i,afterCritical:l}):a};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])}var speculativelyIncrease=e=>{let{impact:t,viewport:r,destination:n,draggables:i,maxScrollChange:l}=e,a=scrollViewport(r,add(r.scroll.current,l)),o=n.frame?scrollDroppable(n,add(n.frame.scroll.current,l)):n,s=t.displaced,d=getDisplacementGroups({afterDragging:getDraggables$1(s.all,i),destination:n,displacedBy:t.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),c=getDisplacementGroups({afterDragging:getDraggables$1(s.all,i),destination:o,displacedBy:t.displacedBy,viewport:r.frame,last:s,forceShouldAnimate:!1}),u={},p={},g=[s,d,c];s.all.forEach(e=>{let t=function(e,t){for(let r=0;r<t.length;r++){let n=t[r].visible[e];if(n)return n}return null}(e,g);if(t){p[e]=t;return}u[e]=!0});let f={...t,displaced:{all:s.all,invisible:u,visible:p}};return f},withViewportDisplacement=(e,t)=>add(e.scroll.diff.displacement,t),getClientFromPageBorderBoxCenter=e=>{let{pageBorderBoxCenter:t,draggable:r,viewport:n}=e,i=withViewportDisplacement(n,t),l=subtract(i,r.page.borderBox.center);return add(r.client.borderBox.center,l)},isTotallyVisibleInNewLocation=e=>{let{draggable:t,destination:r,newPageBorderBoxCenter:n,viewport:i,withDroppableDisplacement:l,onlyOnMainAxis:a=!1}=e,o=subtract(n,t.page.borderBox.center),s=offsetByPosition(t.page.borderBox,o),d={target:s,destination:r,withDroppableDisplacement:l,viewport:i};return a?isTotallyVisibleOnAxis(d):isTotallyVisible(d)},moveToNextPlace=e=>{let{isMovingForward:t,draggable:r,destination:n,draggables:i,previousImpact:l,viewport:a,previousPageBorderBoxCenter:o,previousClientSelection:s,afterCritical:d}=e;if(!n.isEnabled)return null;let c=y(n.descriptor.id,i),u=isHomeOf(r,n),p=moveToNextCombine({isMovingForward:t,draggable:r,destination:n,insideDestination:c,previousImpact:l})||moveToNextIndex({isMovingForward:t,isInHomeList:u,draggable:r,draggables:i,destination:n,insideDestination:c,previousImpact:l,viewport:a,afterCritical:d});if(!p)return null;let g=getPageBorderBoxCenterFromImpact({impact:p,draggable:r,droppable:n,draggables:i,afterCritical:d}),f=isTotallyVisibleInNewLocation({draggable:r,destination:n,newPageBorderBoxCenter:g,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(f){let e=getClientFromPageBorderBoxCenter({pageBorderBoxCenter:g,draggable:r,viewport:
37a});return{clientSelection:e,impact:p,scrollJumpRequest:null}}let m=subtract(g,o),b=speculativelyIncrease({impact:p,viewport:a,destination:n,draggables:i,maxScrollChange:m});return{clientSelection:s,impact:b,scrollJumpRequest:m}};let getKnownActive=e=>{let t=e.subject.active;return t||invariant(!1),t};var getBestCrossAxisDroppable=e=>{let{isMovingForward:t,pageBorderBoxCenter:r,source:n,droppables:i,viewport:l}=e,a=n.subject.active;if(!a)return null;let o=n.axis,s=isWithin(a[o.start],a[o.end]),d=D(i).filter(e=>e!==n).filter(e=>e.isEnabled).filter(e=>!!e.subject.active).filter(e=>isPartiallyVisibleThroughFrame(l.frame)(getKnownActive(e))).filter(e=>{let r=getKnownActive(e);return t?a[o.crossAxisEnd]<r[o.crossAxisEnd]:r[o.crossAxisStart]<a[o.crossAxisStart]}).filter(e=>{let t=getKnownActive(e),r=isWithin(t[o.start],t[o.end]);return s(t[o.start])||s(t[o.end])||r(a[o.start])||r(a[o.end])}).sort((e,r)=>{let n=getKnownActive(e)[o.crossAxisStart],i=getKnownActive(r)[o.crossAxisStart];return t?n-i:i-n}).filter((e,t,r)=>getKnownActive(e)[o.crossAxisStart]===getKnownActive(r[0])[o.crossAxisStart]);if(!d.length)return null;if(1===d.length)return d[0];let c=d.filter(e=>{let t=isWithin(getKnownActive(e)[o.start],getKnownActive(e)[o.end]);return t(r[o.line])});return 1===c.length?c[0]:c.length>1?c.sort((e,t)=>getKnownActive(e)[o.start]-getKnownActive(t)[o.start])[0]:d.sort((e,t)=>{let n=closest$1(r,getCorners(getKnownActive(e))),i=closest$1(r,getCorners(getKnownActive(t)));return n!==i?n-i:getKnownActive(e)[o.start]-getKnownActive(t)[o.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=e=>{let{pageBorderBoxCenter:t,viewport:r,destination:n,insideDestination:i,afterCritical:l}=e,a=i.filter(e=>isTotallyVisible({target:getCurrentPageBorderBox(e,l),destination:n,viewport:r.frame,withDroppableDisplacement:!0})).sort((e,r)=>{let i=distance(t,withDroppableDisplacement(n,getCurrentPageBorderBoxCenter(e,l))),a=distance(t,withDroppableDisplacement(n,getCurrentPageBorderBoxCenter(r,l)));return i<a?-1:a<i?1:e.descriptor.index-r.descriptor.index});return a[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=y(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=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:r,insideDestination:n,draggable:i,draggables:l,destination:a,viewport:o,afterCritical:s}=e;if(!r){if(n.length)return null;let e={displaced:S,displacedBy:E,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},t=getPageBorderBoxCenterFromImpact({impact:e,draggable:i,droppable:a,draggables:l,afterCritical:s}),r=isHomeOf(i,a)?a:addPlaceholder(a,i,l),d=isTotallyVisibleInNewLocation({draggable:i,destination:r,newPageBorderBoxCenter:t,viewport:o.frame,
37withDroppableDisplacement:!1,onlyOnMainAxis:!0});return d?e:null}let d=t[a.axis.line]<=r.page.borderBox.center[a.axis.line],c=(()=>{let e=r.descriptor.index;return r.descriptor.id===i.descriptor.id||d?e:e+1})(),u=P(a.axis,i.displaceBy);return calculateReorderImpact({draggable:i,insideDestination:n,destination:a,viewport:o,displacedBy:u,last:S,index:c})},moveCrossAxis=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:r,draggable:n,isOver:i,draggables:l,droppables:a,viewport:o,afterCritical:s}=e,d=getBestCrossAxisDroppable({isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:a,viewport:o});if(!d)return null;let c=y(d.descriptor.id,l),u=getClosestDraggable({pageBorderBoxCenter:r,viewport:o,destination:d,insideDestination:c,afterCritical:s}),p=moveToNewDroppable({previousPageBorderBoxCenter:r,destination:d,draggable:n,draggables:l,moveRelativeTo:u,insideDestination:c,viewport:o,afterCritical:s});if(!p)return null;let g=getPageBorderBoxCenterFromImpact({impact:p,draggable:n,droppable:d,draggables:l,afterCritical:s}),f=getClientFromPageBorderBoxCenter({pageBorderBoxCenter:g,draggable:n,viewport:o});return{clientSelection:f,impact:p,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=e=>{let{state:t,type:r}=e,n=getDroppableOver$1(t.impact,t.dimensions.droppables),i=!!n,l=t.dimensions.droppables[t.critical.droppable.id],a=n||l,o=a.axis.direction,s="vertical"===o&&("MOVE_UP"===r||"MOVE_DOWN"===r)||"horizontal"===o&&("MOVE_LEFT"===r||"MOVE_RIGHT"===r);if(s&&!i)return null;let d="MOVE_DOWN"===r||"MOVE_RIGHT"===r,c=t.dimensions.draggables[t.critical.draggable.id],u=t.current.page.borderBoxCenter,{draggables:p,droppables:g}=t.dimensions;return s?moveToNextPlace({isMovingForward:d,previousPageBorderBoxCenter:u,draggable:c,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):moveCrossAxis({isMovingForward:d,previousPageBorderBoxCenter:u,draggable:c,isOver:a,draggables:p,droppables:g,viewport:t.viewport,afterCritical:t.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)}}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(e){let{displaced:t,id:r}=e;return!!(t.visible[r]||t.invisible[r])}var getReorderImpact=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:r,destination:n,insideDestination:i,last:l,viewport:a,afterCritical:o}=e,s=n.axis,d=P(n.axis,r.displaceBy),c=d.value,u=t[s.start],p=t[s.end],g=x(r,i),f=g.find(e=>{let t=e.descriptor.id,r=e.page.borderBox.center[s.line],n=didStartAfterCritical(t,o),i=getIsDisplaced({displaced:l,id:t});return n?i?p<=r:u<r-c:i?p<=r+c:u<r})||null,m=function(e){let{draggable:t,closest:r,inHomeList:n}=e;return r?n&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:f,inHomeList:isHomeOf(r,n)});return calculateReorderImpact({draggable:r,insideDestination:i,destination:n,viewport:a,last:l,displacedBy:d,index:m})},getCombineImpact=e=>{let{draggable:t,pageBorderBoxWithDroppableScroll:r,previousImpact:n,destination:i,insideDestination:l,afterCritical:a}=e;if(!i.isCombineEnabled)return null;let o=i.axis,s=P(i.axis,t.displaceBy),d=s.value,c=r[o.start],u=r[o.end],p=x(t,l),g=p.find(e=>{let t=e.descriptor.id,r=e.page.borderBox,i=r[o.size],l=i/4,s=didStartAfterCritical(t,a),p=getIsDisplaced({displaced:n.displaced,id:t});return s?p?u>r[o.start]+l&&u<r[o.end]-l:c>r[o.start]-d+l&&c<r[o.end]-d-l:p?u>r[o.start]+d+l&&u<r[o.end]+d-l:c>r[o.start]+l&&c<r[o.end]-l});if(!g)return null;let f={displacedBy:s,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:g.descriptor.id,droppableId:i.descriptor.id}}};return f},getDragImpact=e=>{let{pageOffset:t,draggable:r,draggables:n,droppables:i,previousImpact:l,viewport:
37a,afterCritical:o}=e,s=offsetRectByPosition(r.page.borderBox,t),d=function(e){let{pageBorderBox:t,draggable:r,droppables:n}=e,i=D(n).filter(e=>{if(!e.isEnabled)return!1;let r=e.subject.active;if(!r||!(t.left<r.right)||!(t.right>r.left)||!(t.top<r.bottom)||!(t.bottom>r.top))return!1;if(isPositionInFrame(r)(t.center))return!0;let n=e.axis,i=r.center[n.crossAxisLine],l=t[n.crossAxisStart],a=t[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 i.length?1===i.length?i[0].descriptor.id:function(e){let{pageBorderBox:t,draggable:r,candidates:n}=e,i=r.page.borderBox.center,l=n.map(e=>{let r=e.axis,n=patch(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:distance(i,n)}}).sort((e,t)=>t.distance-e.distance);return l[0]?l[0].id:null}({pageBorderBox:t,draggable:r,candidates:i}):null}({pageBorderBox:s,draggable:r,droppables:i});if(!d)return A;let c=i[d],u=y(c.descriptor.id,n),p=withDroppableScroll(c,s);return getCombineImpact({pageBorderBoxWithDroppableScroll:p,draggable:r,previousImpact:l,destination:c,insideDestination:u,afterCritical:o})||getReorderImpact({pageBorderBoxWithDroppableScroll:p,draggable:r,destination:c,insideDestination:u,last:l.displaced,viewport:a,afterCritical:o})},patchDroppableMap=(e,t)=>({...e,[t.descriptor.id]:t});let clearUnusedPlaceholder=e=>{let{previousImpact:t,impact:r,droppables:n}=e,i=whatIsDraggedOver(t),l=whatIsDraggedOver(r);if(!i||i===l)return n;let a=n[i];if(!a.subject.withPlaceholder)return n;let o=removePlaceholder(a);return patchDroppableMap(n,o)};var recomputePlaceholders=e=>{let{draggable:t,draggables:r,droppables:n,previousImpact:i,impact:l}=e,a=clearUnusedPlaceholder({previousImpact:i,impact:l,droppables:n}),o=whatIsDraggedOver(l);if(!o)return a;let s=n[o];if(isHomeOf(t,s)||s.subject.withPlaceholder)return a;let d=addPlaceholder(s,t,r);return patchDroppableMap(a,d)},update=e=>{let{state:t,clientSelection:r,dimensions:n,viewport:i,impact:l,scrollJumpRequest:a}=e,o=i||t.viewport,s=n||t.dimensions,d=r||t.current.client.selection,c=subtract(d,t.initial.client.selection),u={offset:c,selection:d,borderBoxCenter:add(t.initial.client.borderBoxCenter,c)},p={selection:add(u.selection,o.scroll.current),borderBoxCenter:add(u.borderBoxCenter,o.scroll.current),offset:add(u.offset,o.scroll.diff.value)},g={client:u,page:p};if("COLLECTING"===t.phase)return{...t,dimensions:s,viewport:o,current:g};let f=s.draggables[t.critical.draggable.id],m=l||getDragImpact({pageOffset:p.offset,draggable:f,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:o,afterCritical:t.afterCritical}),b=recomputePlaceholders({draggable:f,impact:m,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables}),h={...t,current:g,dimensions:{draggables:s.draggables,droppables:b},impact:m,viewport:o,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null};return h},recompute=e=>{let{impact:t,viewport:r,draggables:n,destination:i,forceShouldAnimate:l}=e,a=t.displaced,o=a.all.map(e=>n[e]),s=getDisplacementGroups({afterDragging:o,destination:i,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:l,last:a});return{...t,displaced:s}},getClientBorderBoxCenter=e=>{let{impact:t,draggable:r,droppable:n,draggables:i,viewport:l,afterCritical:a}=e,o=getPageBorderBoxCenterFromImpact({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:a});return getClientFromPageBorderBoxCenter({pageBorderBoxCenter:o,draggable:r,viewport:l})},refreshSnap=e=>{let{state:t,dimensions:r,viewport:n}=e;"SNAP"!==t.movementMode&&invariant(!1);let i=t.impact,l=n||t.viewport,a=r||t.dimensions,{draggables:o,droppables:s}=a,d=o[t.critical.draggable.id],c=whatIsDraggedOver(i);c||invariant(!1);let u=s[c],p=recompute({impact:i,viewport:l,destination:u,draggables:o}),g=getClientBorderBoxCenter({impact:p,draggable:d,droppable:u,draggables:o,viewport:l,afterCritical:t.afterCritical});return update({impact:p,clientSelection:g,state:t,dimensions:a,viewport:l})},getHomeLocation=e=>({index:e.index,droppableId:e.droppableId}),getLiftEffect=e=>{let{draggable:t,home:r,draggables:n,viewport:i}=e,l=P(r.axis,t.displaceBy),a=y(r.descriptor.id,n),o=a.indexOf(t);-1!==o||invariant(!1);let s=a.slice(o+1),d=s.reduce((e,t)=>
37(e[t.descriptor.id]=!0,e),{}),c={inVirtualList:"virtual"===r.descriptor.mode,displacedBy:l,effected:d},u=getDisplacementGroups({afterDragging:s,destination:r,displacedBy:l,last:null,viewport:i.frame,forceShouldAnimate:!1}),p={displaced:u,displacedBy:l,at:{type:"REORDER",destination:getHomeLocation(t.descriptor)}};return{impact:p,afterCritical:c}},patchDimensionMap=(e,t)=>({draggables:e.draggables,droppables:patchDroppableMap(e.droppables,t)});let start=e=>{},finish=e=>{};var offsetDraggable=e=>{let{draggable:t,offset:r,initialWindowScroll:n}=e,i=(0,s.cv)(t.client,r),l=(0,s.oc)(i,n),a={...t,placeholder:{...t.placeholder,client:i},client:i,page:l};return a},getFrame=e=>{let t=e.frame;return t||invariant(!1),t},adjustAdditionsForScrollChanges=e=>{let{additions:t,updatedDroppables:r,viewport:n}=e,i=n.scroll.diff.value;return t.map(e=>{let t=e.descriptor.droppableId,l=r[t],a=getFrame(l),o=a.scroll.diff.value,s=add(i,o),d=offsetDraggable({draggable:e,offset:s,initialWindowScroll:n.scroll.initial});return d})};let B="Processing dynamic changes";var publishWhileDraggingInVirtual=e=>{let{state:t,published:r}=e;start(B);let n=r.modified.map(e=>{let r=t.dimensions.droppables[e.droppableId],n=scrollDroppable(r,e.scroll);return n}),i={...t.dimensions.droppables,...h(n)},l=v(adjustAdditionsForScrollChanges({additions:r.additions,updatedDroppables:i,viewport:t.viewport})),a={...t.dimensions.draggables,...l};r.removals.forEach(e=>{delete a[e]});let o={droppables:i,draggables:a},s=whatIsDraggedOver(t.impact),d=s?o.droppables[s]:null,c=o.draggables[t.critical.draggable.id],u=o.droppables[t.critical.droppable.id],{impact:p,afterCritical:g}=getLiftEffect({draggable:c,home:u,draggables:a,viewport:t.viewport}),f=d&&d.isCombineEnabled?t.impact:p,m=getDragImpact({pageOffset:t.current.page.offset,draggable:o.draggables[t.critical.draggable.id],draggables:o.draggables,droppables:o.droppables,previousImpact:f,viewport:t.viewport,afterCritical:g});finish(B);let b={...t,phase:"DRAGGING",impact:m,onLiftImpact:p,dimensions:o,afterCritical:g,forceShouldAnimate:!1};if("COLLECTING"===t.phase)return b;let D={...b,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1};return D};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=function(e,t){if(void 0===e&&(e=R),"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);
37let{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=>t=>{let{getState:r,dispatch:n}=t;return t=>i=>{if("LIFT"!==i.type){t(i);return}let{id:l,clientSelection:a,movementMode:o}=i.payload,s=r();"DROP_ANIMATING"===s.phase&&n(completeDrop({completed:s.completed})),"IDLE"!==r().phase&&invariant(!1),n(flush()),n(beforeInitialCapture({draggableId:l,movementMode:o}));let{critical:d,dimensions:c,viewport:u}=e.startPublishing({draggableId:l,scrollOptions:{shouldPublishImmediately:"SNAP"===o}});n(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=e=>{let{current:t,destination:r,reason:n}=e,i=distance(t,r);
37if(i<=0)return F;if(i>=1500)return $;let l=F+_*(i/1500);return Number(("CANCEL"===n?.6*l:l).toFixed(2))},getNewHomeClientOffset=e=>{let{impact:t,draggable:r,dimensions:n,viewport:i,afterCritical:l}=e,{draggables:a,droppables:o}=n,s=whatIsDraggedOver(t),d=s?o[s]:null,c=o[r.descriptor.droppableId],u=getClientBorderBoxCenter({impact:t,draggable:r,draggables:a,afterCritical:l,droppable:d||c,viewport:i}),p=subtract(u,r.client.borderBox.center);return p},getDropImpact=e=>{let{draggables:t,reason:r,lastImpact:n,home:i,viewport:l,onLiftImpact:a}=e;if(!n.at||"DROP"!==r){let e=recompute({draggables:t,impact:a,destination:i,viewport:l,forceShouldAnimate:!0});return{impact:e,didDropInsideDroppable:!1}}if("REORDER"===n.at.type)return{impact:n,didDropInsideDroppable:!0};let o={...n,displaced:S};return{impact:o,didDropInsideDroppable:!0}},drop=e=>{let{getState:t,dispatch:r}=e;return e=>n=>{if("DROP"!==n.type){e(n);return}let i=t(),l=n.payload.reason;if("COLLECTING"===i.phase){r(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){r(completeDrop({completed:h}));return}let D=getDropDuration({current:i.current.client.offset,destination:b,reason:l});r(animateDrop({newHomeClientOffset:b,dropDuration:D,completed:h}))}},getWindowScroll=()=>({x:window.pageXOffset,y:window.pageYOffset});let shouldEnd=e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type;var scrollListener$1=e=>{let t=function(e){let{onWindowScroll:t}=e,r=(0,c.Z)(function(){t(getWindowScroll())}),n={eventName:"scroll",options:{passive:!0,capture:!1},fn:e=>{(e.target===window||e.target===window.document)&&r()}},i=noop$2;function isActive(){return i!==noop$2}return{start:function(){isActive()&&invariant(!1),i=bindEvents(window,[n])},stop:function(){isActive()||invariant(!1),r.cancel(),i(),i=noop$2},isActive}}({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:()=>
37{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;return n=>i=>{if(("FLUSH"===i.type||"DROP_COMPLETE"===i.type||"DROP_ANIMATION_FINISHED"===i.type)&&(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),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=e=>{let{dimensionMarshal:t,focusMarshal:r,styleMarshal:n,getResponders:i,announce:a,autoScroller:o}=e;return(0,l.MT)(reducer,W((0,l.md)(style(n),dimensionMarshalStopper(t),lift(t),drop,dropAnimationFinish,dropAnimationFlushOnScroll,pendingDrop$1,autoScroll(o),scrollListener$1,focus(r),responders(i,a))))};let clean$1=()=>({additions:{},removals:{},modified:{}});var getMaxScroll=e=>{let{scrollHeight:t,scrollWidth:r,height:n,width:i}=e,l=subtract({x:r,y:t},{x:i,y:n}),a={x:Math.max(0,l.x),y:Math.max(0,l.y)};return a},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=e=>{let{critical:t,scrollOptions:r,registry:n}=e;start();let i=getViewport(),l=i.scroll.current,a=t.droppable,o=n.droppable.getAllByType(a.type).map(e=>e.callbacks.getDimensionAndWatchScroll(l,r)),s=n.draggable.getAllByType(t.draggable.type).map(e=>e.getDimension(l)),d={draggables:v(s),droppables:h(o)};return finish(),{dimensions:d,critical:t,viewport:i}};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=function(e){let{registry:t,callbacks:r}=e,n=clean$1(),i=null,collect=()=>{i||(r.collectionStarting(),i=requestAnimationFrame(()=>
37{i=null,start();let{additions:e,removals:l,modified:a}=n,o=Object.keys(e).map(e=>t.draggable.getById(e).getDimension(b)).sort((e,t)=>e.descriptor.index-t.descriptor.index),s=Object.keys(a).map(e=>{let r=t.droppable.getById(e),n=r.callbacks.getScrollWhileDragging();return{droppableId:e,scroll:n}}),d={additions:o,removals:Object.keys(l),modified:s};n=clean$1(),finish(),r.publish(d)}))};return{add:e=>{let t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],collect()},remove:e=>{let t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],collect()},stop:()=>{i&&(cancelAnimationFrame(i),i=null,n=clean$1())}}}({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 k=(0,d.Z)(e=>D(e).filter(e=>!!e.isEnabled&&!!e.frame)),getScrollableDroppableOver=(e,t)=>{let r=k(t).find(t=>(t.frame||invariant(!1),isPositionInFrame(t.frame.pageMarginBox)(e)))||null;return r};var getBestScrollableDroppable=e=>{let{center:t,destination:r,droppables:n}=e;if(r){let e=n[r];return e.frame?e:null}let i=getScrollableDroppableOver(t,n);return i};let V={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var getDistanceThresholds=function(e,t,r){void 0===r&&(r=()=>V);let n=r(),i=e[t.size]*n.startFromPercentage,l=e[t.size]*n.maxScrollAtPercentage;return{startScrollingFrom:i,maxScrollValueAt:l}},getPercentage=e=>{let{startOfRange:t,endOfRange:r,current:n}=e,i=r-t;return 0===i?0:(n-t)/i},getValueFromDistance=function(e,t,r){void 0===r&&(r=()=>V);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=e=>{let{distanceToEdge:t,thresholds:r,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:l}=e,a=getValueFromDistance(t,r,l);return 0===a?0:i?Math.max(dampenValueByTime(a,n,l),1):a},getScrollOnAxis=e=>{let{container:t,distanceToEdges:r,dragStartTime:n,axis:i,shouldUseTimeDampening:l,getAutoScrollerOptions:a}=e,o=getDistanceThresholds(t,i,a),s=r[i.end]<r[i.start];return s?getValue({distanceToEdge:r[i.end],thresholds:o,dragStartTime:n,shouldUseTimeDampening:l,getAutoScrollerOptions:a}):-1*getValue({distanceToEdge:r[i.start],thresholds:o,dragStartTime:n,shouldUseTimeDampening:l,getAutoScrollerOptions:a})},adjustForSizeLimits=e=>{let{container:t,subject:r,proposedScroll:n}=e,i=r.height>t.height,l=r.width>t.width;return l||i?l&&i?null:{x:l?0:n.x,y:i?0:n.y}:n};let H=apply(e=>0===e?0:e);var getScroll$1=e=>{let{dragStartTime:t,container:r,subject:n,center:i,shouldUseTimeDampening:l,getAutoScrollerOptions:a}=e,o={top:i.y-r.top,right:r.right-i.x,bottom:r.bottom-i.y,left:i.x-r.left},s=getScrollOnAxis({container:r,distanceToEdges:o,dragStartTime:t,axis:C,shouldUseTimeDampening:l,getAutoScrollerOptions:a}),d=getScrollOnAxis({container:r,distanceToEdges:o,dragStartTime:t,axis:w,shouldUseTimeDampening:l,getAutoScrollerOptions:a}),c=H({x:d,y:s}
37);if(isEqual$1(c,b))return null;let u=adjustForSizeLimits({container:r,subject:n,proposedScroll:c});return u?isEqual$1(u,b)?null:u: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 e=>{let{current:t,max:r,change:n}=e,i=add(t,n),l={x:getRemainder(i.x,r.x),y:getRemainder(i.y,r.y)};return isEqual$1(l,b)?null:l}})(),canPartiallyScroll=e=>{let{max:t,current:r,change:n}=e,i={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},l=q(n),a=U({max:i,current:r,change:l});return!a||0!==l.x&&0===a.x||0!==l.y&&0===a.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=e=>{let{viewport:t,subject:r,center:n,dragStartTime:i,shouldUseTimeDampening:l,getAutoScrollerOptions:a}=e,o=getScroll$1({dragStartTime:i,container:t.frame,subject:r,center:n,shouldUseTimeDampening:l,getAutoScrollerOptions:a});return o&&canScrollWindow(t,o)?o:null},getDroppableScrollChange=e=>{let{droppable:t,subject:r,center:n,dragStartTime:i,shouldUseTimeDampening:l,getAutoScrollerOptions:a}=e,o=t.frame;if(!o)return null;let s=getScroll$1({dragStartTime:i,container:o.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:l,getAutoScrollerOptions:a});return s&&canScrollDroppable(t,s)?s:null},scroll=e=>{let{state:t,dragStartTime:r,shouldUseTimeDampening:n,scrollWindow:i,scrollDroppable:l,getAutoScrollerOptions:a}=e,o=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id],d=s.page.marginBox;if(t.isWindowScrollAllowed){let e=t.viewport,l=getWindowScrollChange({dragStartTime:r,viewport:e,subject:d,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a});if(l){i(l);return}}let c=getBestScrollableDroppable({center:o,destination:whatIsDraggedOver(t.impact),droppables:t.dimensions.droppables});if(!c)return;let u=getDroppableScrollChange({dragStartTime:r,droppable:c,subject:d,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a});u&&l(c.descriptor.id,u)},createFluidScroller=e=>{let{scrollWindow:t,scrollDroppable:r,getAutoScrollerOptions:n=()=>V}=e,i=(0,c.Z)(t),l=(0,c.Z)(r),a=null,tryScroll=e=>{a||invariant(!1);let{shouldUseTimeDampening:t,dragStartTime:r}=a;scroll({state:e,scrollWindow:i,scrollDroppable:l,dragStartTime:r,shouldUseTimeDampening:t,getAutoScrollerOptions:n})};return{start:e=>{start(),a&&invariant(!1);let t=Date.now(),r=!1,fakeScrollCallback=()=>{r=!0};scroll({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:fakeScrollCallback,scrollDroppable:fakeScrollCallback,getAutoScrollerOptions:n}),a={dragStartTime:t,shouldUseTimeDampening:r},finish(),r&&tryScroll(e)},stop:()=>{a&&(i.cancel(),l.cancel(),a=null)},scroll:tryScroll}},createJumpScroller=e=>{let{move:t,scrollDroppable:r,scrollWindow:n}=e,moveByOffset=(e,r)=>{let n=add(e.current.client.selection,r);t({client:n})},scrollDroppableAsMuchAsItCan=(e,t)=>{if(!canScrollDroppable(e,t))return t;let n=getDroppableOverlap(e,t);if(!n)return r(e.descriptor.id,t),null;let i=subtract(t,n);r(e.descriptor.id,i);let l=subtract(t,i);return l},scrollWindowAsMuchAsItCan=(e,t,r)=>{if(!e||!canScrollWindow(t,r))return r;let i=getWindowOverlap(t,r);if(!i)return n(r),null;let l=subtract(r,i);n(l);let a=subtract(r,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=e=>{let{scrollDroppable:t,scrollWindow:r,move:n,getAutoScrollerOptions:i}=e,l=createFluidScroller({scrollWindow:r,scrollDroppable:t,getAutoScrollerOptions:i}),a=createJumpScroller({move:n,scrollWindow:r,scrollDroppable:t}),o={scroll:e=>{let t=i();if(!t.disabled&&"DRAGGING"===e.phase){if("FLUID"===e.movementMode){l.scroll(e);return}e.scrollJumpRequest&&a(e)}},start:l.start,stop:l.stop};return o};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=` 38 cursor: -webkit-grab; 39 cursor: grab; 40 `;return{selector:t(Y.contextId),styles:{always:` 41 -webkit-touch-callout: none; 42 -webkit-tap-highlight-color: rgba(0,0,0,0); 43 touch-action: manipulation; 44 `,resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),n=(()=>{let e=` 45 transition: ${G.outOfTheWay}; 46 `;return{selector:t(z.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),i={selector:t(K.contextId),styles:{always:"overflow-anchor: n
46one;"}},l={selector:"body",styles:{dragging:` 47 cursor: grabbing; 48 cursor: -webkit-grabbing; 49 user-select: none; 50 -webkit-user-select: none; 51 -moz-user-select: none; 52 -ms-user-select: none; 53 overflow-anchor: none; 54 `}},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 querySelectorAll(e,t){return Array.from(e.querySelectorAll(t))}var getWindowFromEl=e=>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 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]&¬ify({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}}}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}`,ee={separator:"::"};var useUniqueId$1=function(e,t){void 0===t&&(t=ee);let r=n.useId();return(0,o.Ye)(()=>`${e}${t.separator}${r}`,[t.separator,e,r])},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 usePrevious(e){let t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),t}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})(),el={type:"IDLE"};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=function(e){let{cancel:t,completed:r,getPhase:n,setPhase:i}=e;return[{eventName:"mousemove",fn:e=>{let{button:t,clientX:r,clientY:l}=e;if(0!==t)return;let a={x:r,y:l},o=n();if("DRAGGING"===o.type){e.preventDefault(),o.actions.move(a);return}"PENDING"!==o.type&&invariant(!1);let s=o.point;if(!(Math.abs(a.x-s.x)>=5||Math.abs(a.y-s.y)>=5))return;e.preventDefault();let d=o.actions.fluidLift(a);i({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:e=>{let i=n();if("DRAGGING"!==i.type){t();return}e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:e=>{"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:e=>{let r=n();if("PENDING"===r.type){t();return}
54if(27===e.keyCode){e.preventDefault(),t();return}preventStandardKeyEvents(e)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:e=>{let r=n();if("IDLE"!==r.type||invariant(!1),r.actions.shouldRespectForcePress()){t();return}e.preventDefault()}},{eventName:ei,fn:t}]}({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 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,function(e,t){function cancel(){t(),e.cancel()}return[{eventName:"keydown",fn:r=>{if(27===r.keyCode){r.preventDefault(),cancel();return}if(32===r.keyCode){r.preventDefault(),t(),e.drop();return}if(40===r.keyCode){r.preventDefault(),e.moveDown();return}if(38===r.keyCode){r.preventDefault(),e.moveUp();return}if(39===r.keyCode){r.preventDefault(),e.moveRight();return}if(37===r.keyCode){r.preventDefault(),e.moveLeft();return}if(ea[r.keyCode]){r.preventDefault();return}preventStandardKeyEvents(r)}},{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}]}(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 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,function(e){let{cancel:t,completed:r,getPhase:n}=e;return[{eventName:"touchmove",options:{capture:!1},fn:e=>{let r=n();if("DRAGGING"!==r.type){t();return}r.hasMoved=!0;let{clientX:i,clientY:l}=e.touches[0];e.preventDefault(),r.actions.move({x:i,y:l})}},{eventName:"touchend",fn:e=>{let i=n();if("DRAGGING"!==i.type){t();return}e.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:e=>{if("DRAGGING"!==n().type){t();return}e.preventDefault(),t()}},{eventName:"touchforcechange",fn:e=>{let r=n();"IDLE"!==r.type||invariant(!1);let i=e.touches[0];if(!i)return;let l=i.force>=.15;if(!l)return;let a=r.actions.shouldRespectForcePress();if("PENDING"===r.type){a&&t();return}if(a){if(r.hasMoved){e.preventDefault();return}t();return}e.preventDefault()}},{eventName:ei,fn:t}]}(t),e),l=bindEvents(window,function(e){let{cancel:t,getPhase:r}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:e=>{if("DRAGGING"!==r().type){t();return}27===e.keyCode&&e.preventDefault(),t()}},{eventName:ei,fn:t}]}(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},[])}let es=["input","button","textarea","select","option","optgroup","video","audio"];var getBorderBoxCenterPosition=e=>(0,s.Dz)(e.getBoundingClientRect()).center;let ed=(()=>{let e="matches";if("undefined"==typeof document)return e;
54let t=[e,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype);return t||e})();function preventDefault(e){e.preventDefault()}function isActive(e){let{expected:t,phase:r,isLockActive:n,shouldWarn:i}=e;return!!n()&&t===r}function canStart(e){let{lockAPI:t,store:r,registry:n,draggableId:i}=e;if(t.isClaimed())return!1;let l=n.draggable.findById(i);return!!(l&&l.options.isEnabled&&canStartDrag(r.getState(),i))}let ec=[useMouseSensor,useKeyboardSensor,useTouchSensor],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=>({...V,...e.autoScrollerOptions,durationDampening:{...V.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:p}=e,g=(0,n.useRef)(null),f=usePrevious(e),m=(0,o.I4)(()=>createResponders(f.current),[f]),b=(0,o.I4)(()=>createAutoScrollerOptions(f.current),[f]),h=function(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}(t),v=function(e){let{contextId:t,text:r}=e,i=useUniqueId$1("hidden-text",{separator:"-"}),l=(0,o.Ye)(()=>(function(e){let{contextId:t,uniqueId:r}=e;return`rfd-hidden-text-${t}-${r}`})({contextId:t,uniqueId:i}),[i,t]);return(0,n.useEffect)(function(){let e=document.createElement("div");return e.id=l,e.textContent=r,e.style.display="none",getBodyElement().appendChild(e),function(){let t=getBodyElement();t.contains(e)&&t.removeChild(e)}},[l,r]),l}({contextId:t,text:p}),D=function(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}(t,s),I=(0,o.I4)(e=>{getStore(g).dispatch(e)},[]),y=(0,o.Ye)(()=>(0,l.DE)({publishWhileDragging,updateDroppableScroll,updateDroppableIsEnabled,updateDroppableIsCombineEnabled,collectionStarting},I),[I]),x=function(){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}(),E=(0,o.Ye)(()=>createDimensionMarshal(x,y),[x,y]),S=(0,o.Ye)(()=>createAutoScroller({scrollWindow,scrollDroppable:E.scrollDroppable,getAutoScrollerOptions:b,...(0,l.DE)({move},I)}),[E.scrollDroppable,I,b]),A=function(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}(t),C=(0,o.Ye)(()=>createStore({announce:h,autoScroller:S,dimensionMarshal:E,focusMarshal:A,getResponders:m,styleMarshal:D}),[h,S,E,A,m,D]);g.current=C;let w=(0,o.I4)(()=>{let e=getStore(g),t=e.getState();"IDLE"!==t.phase&&e.dispatch(flush())},[]),P=(0,o.I4)(()=>{let e=getStore(g).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]),B=(0,o.Ye)(()=>({isDragging:P,tryAbort:w}),[P,w]);r(B);let R=(0,o.I4)(e=>canStartDrag(getStore(g).getState(),e),[]),O=(0,o.I4)(()=>isMovementAllowed(getStore(g).getState()),[]),N=(0,o.Ye)(()=>({marshal:E,focus:A,contextId:t,canLift:R,isMovementAllowed:O,dragHandleUsageInstructionsId:v,registry:x}),[t,E,v,A,R,O,x]);
54return!function(e){let{contextId:t,store:r,registry:i,customSensors:l,enableDefaultSensors:a}=e,s=[...a?ec:[],...l||[]],d=(0,n.useState)(()=>(function(){let e=null;function release(){e||invariant(!1),e=null}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(){e&&(e.abandon(),release())}}})())[0],u=(0,o.I4)(function(e,t){isDragging(e)&&!isDragging(t)&&d.tryAbandon()},[d]);J(function(){let e=r.getState(),t=r.subscribe(()=>{let t=r.getState();u(e,t),e=t});return t},[d,r,u]),J(()=>d.tryAbandon,[d.tryAbandon]);let p=(0,o.I4)(e=>canStart({lockAPI:d,registry:i,store:r,draggableId:e}),[d,i,r]),g=(0,o.I4)((e,n,l)=>(function(e){let{lockAPI:t,contextId:r,store:n,registry:i,draggableId:l,forceSensorStop:a,sourceEvent:o}=e,s=canStart({lockAPI:t,store:n,registry:i,draggableId:l});if(!s)return null;let d=i.draggable.getById(l),u=function(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}(r,d.descriptor.id);if(!u||o&&!d.options.canDragInteractiveElements&&function(e,t){let r=t.target;return!!isHtmlElement(r)&&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)}(e,r)}(u,o))return null;let p=t.claim(a||noop$2),g="PRE_DRAG";function getShouldRespectForcePress(){return d.options.shouldRespectForcePress}function isLockActive(){return t.isActive(p)}let f=(function(e,t){isActive({expected:e,phase:g,isLockActive,shouldWarn:!0})&&n.dispatch(t())}).bind(null,"DRAGGING");function lift(e){function completed(){t.release(),g="COMPLETED"}function finish(t,r){if(void 0===r&&(r={shouldBlockNextClick:!1}),e.cleanup(),r.shouldBlockNextClick){let e=bindEvents(window,[{eventName:"click",fn:preventDefault,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}completed(),n.dispatch(drop$1({reason:t}))}return"PRE_DRAG"!==g&&(completed(),invariant(!1)),n.dispatch(lift$1(e.liftActionArgs)),g="DRAGGING",{isActive:()=>isActive({expected:"DRAGGING",phase:g,isLockActive,shouldWarn:!1}),shouldRespectForcePress:getShouldRespectForcePress,drop:e=>finish("DROP",e),cancel:e=>finish("CANCEL",e),...e.actions}}return{isActive:()=>isActive({expected:"PRE_DRAG",phase:g,isLockActive,shouldWarn:!1}),shouldRespectForcePress:getShouldRespectForcePress,fluidLift:function(e){let t=(0,c.Z)(e=>{f(()=>move({client:e}))}),r=lift({liftActionArgs:{id:l,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}});return{...r,move:t}},snapLift:function(){return lift({liftActionArgs:{id:l,clientSelection:getBorderBoxCenterPosition(u),movementMode:"SNAP"},cleanup:noop$2,actions:{moveUp:()=>f(moveUp),moveRight:()=>f(moveRight),moveDown:()=>f(moveDown),moveLeft:()=>f(moveLeft)}})},abort:function(){let e=isActive({expected:"PRE_DRAG",phase:g,isLockActive,shouldWarn:!0});e&&t.release()}}})({lockAPI:d,registry:i,contextId:t,store:r,draggableId:e,forceSensorStop:n||null,sourceEvent:l&&l.sourceEvent?l.sourceEvent:null}),[t,d,i,r]),f=(0,o.I4)(e=>(function(e,t){let r=function(e,t){let r=t.target;if(!(r instanceof getWindowFromEl(r).Element))return null;let n=`[${Y.contextId}="${e}"]`,i=r.closest?r.closest(n):function closestPonyfill(e,t){return null==e?null:e[ed](t)?e:closestPonyfill(e.parentElement,t)}(r,n);return i&&isHtmlElement(i)?i:null}(e,t);return r?r.getAttribute(Y.draggableId):null})(t,e),[t]),m=(0,o.I4)(e=>{let t=i.draggable.findById(e);return t?t.options:null},[i.draggable]),b=(0,o.I4)(function(){d.isClaimed()&&(d.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(flush()))},[d,r]),h=(0,o.I4)(()=>d.isClaimed(),[d]),v=(0,o.Ye)(()=>({canGetLock:p,tryGetLock:g,findClosestDraggableId:f,findOptionsForDraggable:m,tryReleaseLock:b,isLockClaimed:h}),[p,g,f,m,b,h]);for(let e=0;e<s.length;e++)s[e](v)}({contextId:t,store:C,registry:x,customSensors:i||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)(()=>w,[w]),n.createElement(et.Provider,{value:N}
54,n.createElement(a.zt,{context:X,store:C},e.children))}function resetServerContext(){}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;var ep=n.createContext(null);function checkIsValidInnerRef(e){e&&isHtmlElement(e)||invariant(!1)}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 getSecondarySnapshot(e){return void 0===e&&(e=null),{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)}},ef=(0,a.$j)(()=>{let e=function(){let e=(0,d.Z)((e,t)=>({x:e,y:t})),t=(0,d.Z)(function(e,t,r,n,i){return void 0===r&&(r=null),void 0===n&&(n=null),void 0===i&&(i=null),{isDragging:!0,isClone:t,isDropAnimating:!!i,dropAnimation:i,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null}}),r=(0,d.Z)(function(e,r,n,i,l,a,o){return void 0===l&&(l=null),void 0===a&&(a=null),void 0===o&&(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}}(),t=function(){let e=(0,d.Z)((e,t)=>({x:e,y:t})),t=(0,d.Z)(getSecondarySnapshot),r=(0,d.Z)(function(e,r,n){return void 0===r&&(r=null),{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}}();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)(function(e){void 0===e&&(e=null),t.current=e},[]),l=(0,o.I4)(()=>t.current,[]),{contextId:a,dragHandleUsageInstructionsId:d,registry:c}=useRequiredContext(et),{type:u,droppableId:p}=useRequiredContext(ep),g=(0,o.Ye)(()=>({id:e.draggableId,index:e.index,type:u,droppableId:p}),[e.draggableId,e.index,u,p]),{children:f,draggableId:m,isEnabled:h,shouldRespectForcePress:v,canDragInteractiveElements:D,isClone:I,mapped:y,dropAnimationFinished:x}=e;if(()=>{let t=e.draggableId;t||invariant(!1),"string"!=typeof t&&invariant(!1),Number.isInteger(e.index)||invariant(!1),"DRAGGING"!==e.mapped.type&&(checkIsValidInnerRef(l()),e.isEnabled&&(findDragHandle(a,t)||invariant(!1)))},!I){let e=(0,o.Ye)(()=>({descriptor:g,registry:c,getDraggableRef:l,canDragInteractiveElements:D,shouldRespectForcePress:v,isEnabled:h}),[g,c,l,D,v,h]);!function(e){let t=useUniqueId$1("draggable"),{descriptor:r,registry:i,getDraggableRef:l,canDragInteractiveElements:a,shouldRespectForcePress:d,isEnabled:c}=e,u=(0,o.Ye)(()=>({canDragInteractiveElements:a,shouldRespectForcePress:d,isEnabled:c}),[a,c,d]),p=(0,o.I4)(e=>{let t=l();return t||invariant(!1),function(e,t,r){void 0===r&&(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}}(r,t,e)},[r,l]),g=(0,o.Ye)(()=>({uniqueId:t,descriptor:r,options:u,getDimension:p}),[r,p,u,t]),f=(0,n.useRef)(g),m=(0,n.useRef)(!0);J(()=>(i.draggable.register(f.current),()=>i.draggable.unregister(f.current)),[i.draggable]),J(()=>{if(m.current){m.current=!1;return}let e=f.current;f.current=g,i.draggable.update(g,e)},[g,i.draggable])}(e)}let E=(0,o.Ye)(()=>h?{tabIndex:0,role:"button","aria-describedby":d,"data-rfd-drag-handle-draggable-id":m,"data-rfd-drag-handle-context-id":a,draggable:!1,onDragStart:preventHtml5Dnd}:null,[a,d,m,h]),S=(0,o.I4)(e=>{"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&(n.version.startsWith("16")||n.version.startsWith("17")?x():(0,i.flushSync)(x))},[x,y]),A=(0,o.Ye)(()=>{let e="DRAGGING"===y.type?function(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
54: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}(y):{transform:M.moveTo(y.offset),transition:y.shouldAnimateDisplacement?void 0:"none"},t="DRAGGING"===y.type&&y.dropping?S:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":a,"data-rfd-draggable-id":m,style:e,onTransitionEnd:t},dragHandleProps:E}},[a,E,m,y,S,r]),C=(0,o.Ye)(()=>({draggableId:g.id,type:g.type,source:{index:g.index,droppableId:g.droppableId}}),[g.droppableId,g.id,g.index,g.type]);return n.createElement(n.Fragment,null,f(A,y.snapshot,C))});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=e=>{let{descriptor:t,isEnabled:r,isCombineEnabled:n,isFixedOnPage:i,direction:l,client:a,page:o,closest:s}=e,d=(()=>{if(!s)return null;let{scrollSize:e,client:t}=s,r=getMaxScroll({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:r,diff:{value:b,displacement:b}}}})(),c="vertical"===l?C:w,u=getSubject({page:o,withPlaceholder:null,axis:c,frame:d});return{descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:c,isEnabled:r,client:a,page:o,frame:d,subject:u}};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=e=>{let{ref:t,descriptor:r,env:n,windowScroll:i,direction:l,isDropDisabled:a,isCombine
54Enabled:o,shouldClipSubject:d}=e,c=n.closestScrollable,u=getClient(t,c),p=(0,s.oc)(u,i),g=(()=>{if(!c)return null;let e=(0,s.iz)(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:(0,s.oc)(e,i),scroll:getScroll(c),scrollSize:t,shouldClipSubject:d}})(),f=getDroppableDimension({descriptor:r,isEnabled:!a,isCombineEnabled:o,isFixedOnPage:n.isFixedOnPage,direction:l,client:u,page:p,closest:g});return f};let eh={passive:!1},ev={passive:!0};var getListenerOptions=e=>e.shouldPublishImmediately?eh:ev;let getClosestScrollableFromDrag=e=>e&&e.env.closestScrollable||null;function noop(){}let eD={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},getSize=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:n}=e;return t||"close"===n?eD:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},getStyle=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:n}=e,i=getSize({isAnimatingOpenOnMount:t,placeholder:r,animate:n});return{display:r.display,boxSizing:"border-box",width:i.width,height:i.height,marginTop:i.margin.top,marginRight:i.margin.right,marginBottom:i.margin.bottom,marginLeft:i.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?G.placeholder:null}};var eI=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 ey=[function(e){let{props:t}=e;t.droppableId||invariant(!1),"string"!=typeof t.droppableId&&invariant(!1)},function(e){let{props:t}=e;isBoolean(t.isDropDisabled)||invariant(!1),isBoolean(t.isCombineEnabled)||invariant(!1),isBoolean(t.ignoreContainerClipping)||invariant(!1)},function(e){let{getDroppableRef:t}=e;checkIsValidInnerRef(t())}],ex=[function(e){let{props:t,getPlaceholderRef:r}=e;if(!t.placeholder)return;let n=r();if(n)return}],eE=[function(e){let{props:t}=e;t.renderClone||invariant(!1)},function(e){let{getPlaceholderRef:t}=e;t()&&invariant(!1)}];let AnimateInOut=class AnimateInOut extends n.PureComponent{constructor(){super(...arguments),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)}};let eS={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||invariant(!1),document.body}},attachDefaultPropsToOwnProps=e=>{let t,r={...e};for(t in eS)void 0===e[t]&&(r={...r,[t]:eS[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.
54id===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=>{var t;let r=(0,n.useContext)(et);r||invariant(!1);let{contextId:l,isMovementAllowed:a}=r,s=(0,n.useRef)(null),u=(0,n.useRef)(null),{children:p,droppableId:g,type:f,mode:m,direction:h,ignoreContainerClipping:v,isDropDisabled:D,isCombineEnabled:I,snapshot:y,useClone:x,updateViewportMaxScroll:E,getContainerForClone:S}=e,A=(0,o.I4)(()=>s.current,[]),C=(0,o.I4)(function(e){void 0===e&&(e=null),s.current=e},[]),w=(0,o.I4)(()=>u.current,[]),P=(0,o.I4)(function(e){void 0===e&&(e=null),u.current=e},[]);t={props:e,getDroppableRef:A,getPlaceholderRef:w},()=>{runChecks(t,ey),"standard"===t.props.mode&&runChecks(t,ex),"virtual"===t.props.mode&&runChecks(t,eE)};let B=(0,o.I4)(()=>{a()&&E({maxScroll:getMaxWindowScroll()})},[a,E]);!function(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]),I=(0,o.I4)(()=>{let e=t.current,r=getClosestScrollableFromDrag(e);return e&&r||invariant(!1),getScroll(r)},[]),y=(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},[]),E=(0,o.Ye)(()=>({getDimensionAndWatchScroll:D,getScrollWhileDragging:I,dragStopped:y,scroll:x}),[y,D,I,x]),S=(0,o.Ye)(()=>({uniqueId:i,descriptor:u,callbacks:E}),[E,u,i]);J(()=>(p.current=S.descriptor,l.droppable.register(S),()=>{t.current&&y(),l.droppable.unregister(S)}),[E,u,y,S,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])}({droppableId:g,type:f,mode:m,direction:h,isDropDisabled:D,isCombine
54Enabled:I,ignoreContainerClipping:v,getDroppableRef:A});let R=(0,o.Ye)(()=>n.createElement(AnimateInOut,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},e=>{let{onClose:t,data:r,animate:i}=e;return n.createElement(eI,{placeholder:r,onClose:t,innerRef:P,animate:i,contextId:l,onTransitionEnd:B})}),[l,B,e.placeholder,e.shouldAnimatePlaceholder,P]),O=(0,o.Ye)(()=>({innerRef:C,placeholder:R,droppableProps:{"data-rfd-droppable-id":g,"data-rfd-droppable-context-id":l}}),[l,g,R,C]),N=x?x.dragging.draggableId:null,T=(0,o.Ye)(()=>({droppableId:g,type:f,isUsingCloneFor:N}),[g,N,f]);return n.createElement(ep.Provider,{value:T},p(O,y),function(){if(!x)return null;let{dragging:e,render:t}=x,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,S())}())});var eC=eA}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.